@forgerock/login-widget 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- var ForgeRockLoginWidget=function(Bt){"use strict";"use strict";var I4=Object.defineProperty;var n1=Bt=>{throw TypeError(Bt)};var A4=(Bt,Qt,Lt)=>Qt in Bt?I4(Bt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Bt[Qt]=Lt;var Je=(Bt,Qt,Lt)=>A4(Bt,typeof Qt!="symbol"?Qt+"":Qt,Lt),ph=(Bt,Qt,Lt)=>Qt.has(Bt)||n1("Cannot "+Lt);var ue=(Bt,Qt,Lt)=>(ph(Bt,Qt,"read from private field"),Lt?Lt.call(Bt):Qt.get(Bt)),At=(Bt,Qt,Lt)=>Qt.has(Bt)?n1("Cannot add the same private member more than once"):Qt instanceof WeakSet?Qt.add(Bt):Qt.set(Bt,Lt),bt=(Bt,Qt,Lt,bi)=>(ph(Bt,Qt,"write to private field"),bi?bi.call(Bt,Lt):Qt.set(Bt,Lt),Lt),pn=(Bt,Qt,Lt)=>(ph(Bt,Qt,"access private method"),Lt);var B_,Ca,$s,ls,Zs,Ys,Js,Ia,mi,Xs,nr,mh,vh,yh,_h,mr,hl,vi,cs,rr,yi,vr,$r,zi,us,Aa,Qs,eo,to,Vi,gu,hn,r1,i1,a1,wh,bu,Su,bh,z_,Hi,Dr,V_,Zr,_i,yr,ds,gl,pl,pu,ml,H_,j_;function Qt(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(r,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Lt=2,bi=4,Pa=8,Eu=1<<24,Wi=16,xr=32,Ra=64,ku=128,br=512,En=1024,Tn=2048,Sr=4096,zn=8192,ai=16384,Ma=32768,La=65536,Sh=1<<17,s1=1<<18,gs=1<<19,Eh=1<<20,si=1<<25,Da=65536,Cu=1<<21,Iu=1<<22,Ki=1<<23,$i=Symbol("$state"),Au=Symbol("legacy props"),o1=Symbol(""),Na=new class extends Error{constructor(){super(...arguments);Je(this,"name","StaleReactionError");Je(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},kh=!!((B_=globalThis.document)!=null&&B_.contentType)&&globalThis.document.contentType.includes("xml"),co=3,ps=8,Tu=!1;var Ch=Array.isArray,l1=Array.prototype.indexOf,ms=Array.prototype.includes,Sl=Array.from,Ou=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,Ih=Object.getOwnPropertyDescriptors,c1=Object.prototype,u1=Array.prototype,Pu=Object.getPrototypeOf,Ah=Object.isExtensible;function uo(e){return typeof e=="function"}const oi=()=>{};function d1(e){return e()}function El(e){for(var t=0;t<e.length;t++)e[t]()}function Th(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function Oh(e){return e===this.v}function Ph(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Rh(e){return!Ph(e,this.v)}function Ru(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function f1(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function h1(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function g1(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function p1(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function m1(e){throw new Error("https://svelte.dev/e/effect_orphan")}function v1(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function y1(){throw new Error("https://svelte.dev/e/hydration_failed")}function _1(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function w1(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function b1(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function S1(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function E1(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function k1(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}let vs=!1,C1=!1;function I1(){vs=!0}const A1=1,T1=2,Mh=4,O1=8,P1=16,R1=1,M1=2,L1=4,D1=8,N1=16,x1=1,U1=2,Mu="[",Lu="[!",Lh="[?",Du="]",xa={},On=Symbol(),Dh="http://www.w3.org/1999/xhtml",F1="http://www.w3.org/2000/svg",B1="http://www.w3.org/1998/Math/MathML";let Kt=null;function ys(e){Kt=e}function He(e,t=!1,n){Kt={p:Kt,i:!1,c:null,e:null,s:e,x:null,l:vs&&!t?{s:null,u:null,$:[]}:null}}function je(e){var t=Kt,n=t.e;if(n!==null){t.e=null;for(var r of n)hg(r)}return e!==void 0&&(t.x=e),t.i=!0,Kt=t.p,e??{}}function _s(){return!vs||Kt!==null&&Kt.l===null}let Ua=[];function Nh(){var e=Ua;Ua=[],El(e)}function li(e){if(Ua.length===0&&!go){var t=Ua;queueMicrotask(()=>{t===Ua&&Nh()})}Ua.push(e)}function z1(){for(;Ua.length>0;)Nh()}function fo(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function V1(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let St=!1;function Ur(e){St=e}let _t;function Pn(e){if(e===null)throw fo(),xa;return _t=e}function Ei(){return Pn(Fr(_t))}function ce(e){if(St){if(Fr(_t)!==null)throw fo(),xa;_t=e}}function Wt(e=1){if(St){for(var t=e,n=_t;t--;)n=Fr(n);_t=n}}function ho(e=!0){for(var t=0,n=_t;;){if(n.nodeType===ps){var r=n.data;if(r===Du){if(t===0)return n;t-=1}else(r===Mu||r===Lu||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Fr(n);e&&n.remove(),n=i}}function Nu(e){if(!e||e.nodeType!==ps)throw fo(),xa;return e.data}function ws(e){if(typeof e!="object"||e===null||$i in e)return e;const t=Pu(e);if(t!==c1&&t!==u1)return e;var n=new Map,r=Ch(e),i=Qi(0),l=za,d=g=>{if(za===l)return g();var p=Rt,_=za;kr(null),sg(l);var S=g();return kr(p),sg(_),S};return r&&n.set("length",Qi(e.length)),new Proxy(e,{defineProperty(g,p,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&b1();var S=n.get(p);return S===void 0?d(()=>{var k=Qi(_.value);return n.set(p,k),k}):Y(S,_.value,!0),!0},deleteProperty(g,p){var _=n.get(p);if(_===void 0){if(p in g){const S=d(()=>Qi(On));n.set(p,S),mo(i)}}else Y(_,On),mo(i);return!0},get(g,p,_){var y;if(p===$i)return e;var S=n.get(p),k=p in g;if(S===void 0&&(!k||(y=Si(g,p))!=null&&y.writable)&&(S=d(()=>{var b=ws(k?g[p]:On),c=Qi(b);return c}),n.set(p,S)),S!==void 0){var h=C(S);return h===On?void 0:h}return Reflect.get(g,p,_)},getOwnPropertyDescriptor(g,p){var _=Reflect.getOwnPropertyDescriptor(g,p);if(_&&"value"in _){var S=n.get(p);S&&(_.value=C(S))}else if(_===void 0){var k=n.get(p),h=k==null?void 0:k.v;if(k!==void 0&&h!==On)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return _},has(g,p){var h;if(p===$i)return!0;var _=n.get(p),S=_!==void 0&&_.v!==On||Reflect.has(g,p);if(_!==void 0||Dt!==null&&(!S||(h=Si(g,p))!=null&&h.writable)){_===void 0&&(_=d(()=>{var y=S?ws(g[p]):On,b=Qi(y);return b}),n.set(p,_));var k=C(_);if(k===On)return!1}return S},set(g,p,_,S){var o;var k=n.get(p),h=p in g;if(r&&p==="length")for(var y=_;y<k.v;y+=1){var b=n.get(y+"");b!==void 0?Y(b,On):y in g&&(b=d(()=>Qi(On)),n.set(y+"",b))}if(k===void 0)(!h||(o=Si(g,p))!=null&&o.writable)&&(k=d(()=>Qi(void 0)),Y(k,ws(_)),n.set(p,k));else{h=k.v!==On;var c=d(()=>ws(_));Y(k,c)}var u=Reflect.getOwnPropertyDescriptor(g,p);if(u!=null&&u.set&&u.set.call(S,_),!h){if(r&&typeof p=="string"){var f=n.get("length"),s=Number(p);Number.isInteger(s)&&s>=f.v&&Y(f,s+1)}mo(i)}return!0},ownKeys(g){C(i);var p=Reflect.ownKeys(g).filter(k=>{var h=n.get(k);return h===void 0||h.v!==On});for(var[_,S]of n)S.v!==On&&!(_ in g)&&p.push(_);return p},setPrototypeOf(){S1()}})}var xh,Uh,Fh,Bh;function xu(){if(xh===void 0){xh=window,Uh=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Fh=Si(t,"firstChild").get,Bh=Si(t,"nextSibling").get,Ah(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ah(n)&&(n.__t=void 0)}}function Wn(e=""){return document.createTextNode(e)}function Er(e){return Fh.call(e)}function Fr(e){return Bh.call(e)}function de(e,t){if(!St)return Er(e);var n=Er(_t);if(n===null)n=_t.appendChild(Wn());else if(t&&n.nodeType!==co){var r=Wn();return n==null||n.before(r),Pn(r),r}return t&&kl(n),Pn(n),n}function qe(e,t=!1){if(!St){var n=Er(e);return n instanceof Comment&&n.data===""?Fr(n):n}if(t){if((_t==null?void 0:_t.nodeType)!==co){var r=Wn();return _t==null||_t.before(r),Pn(r),r}kl(_t)}return _t}function pe(e,t=1,n=!1){let r=St?_t:e;for(var i;t--;)i=r,r=Fr(r);if(!St)return r;if(n){if((r==null?void 0:r.nodeType)!==co){var l=Wn();return r===null?i==null||i.after(l):r.before(l),Pn(l),l}kl(r)}return Pn(r),r}function zh(e){e.textContent=""}function Vh(){return!1}function Hh(e,t,n){return document.createElementNS(t??Dh,e,void 0)}function kl(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===co;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function jh(e){var t=Dt;if(t===null)return Rt.f|=Ki,e;if(!(t.f&Ma)&&!(t.f&bi))throw e;Zi(e,t)}function Zi(e,t){for(;t!==null;){if(t.f&ku){if(!(t.f&Ma))throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const H1=-7169;function dn(e,t){e.f=e.f&H1|t}function Uu(e){e.f&br||e.deps===null?dn(e,En):dn(e,Sr)}function qh(e){if(e!==null)for(const t of e)!(t.f&Lt)||!(t.f&Da)||(t.f^=Da,qh(t.deps))}function Gh(e,t,n){e.f&Tn?t.add(e):e.f&Sr&&n.add(e),qh(e.deps),dn(e,En)}const Cl=new Set;let It=null,Fu=null,Rn=null,Kn=[],Il=null,go=!1,bs=null,j1=1;const lh=class lh{constructor(){At(this,nr);Je(this,"id",j1++);Je(this,"current",new Map);Je(this,"previous",new Map);At(this,Ca,new Set);At(this,$s,new Set);At(this,ls,0);At(this,Zs,0);At(this,Ys,null);At(this,Js,new Set);At(this,Ia,new Set);At(this,mi,new Map);Je(this,"is_fork",!1);At(this,Xs,!1)}skip_effect(t){ue(this,mi).has(t)||ue(this,mi).set(t,{d:[],m:[]})}unskip_effect(t){var n=ue(this,mi).get(t);if(n){ue(this,mi).delete(t);for(var r of n.d)dn(r,Tn),ci(r);for(r of n.m)dn(r,Sr),ci(r)}}process(t){var i;Kn=[],this.apply();var n=bs=[],r=[];for(const l of t)pn(this,nr,vh).call(this,l,n,r);if(bs=null,pn(this,nr,mh).call(this)){pn(this,nr,yh).call(this,r),pn(this,nr,yh).call(this,n);for(const[l,d]of ue(this,mi))Yh(l,d)}else{Fu=this,It=null;for(const l of ue(this,Ca))l(this);ue(this,Ca).clear(),ue(this,ls)===0&&pn(this,nr,_h).call(this),Kh(r),Kh(n),ue(this,Js).clear(),ue(this,Ia).clear(),Fu=null,(i=ue(this,Ys))==null||i.resolve()}Rn=null}capture(t,n){n!==On&&!this.previous.has(t)&&this.previous.set(t,n),t.f&Ki||(this.current.set(t,t.v),Rn==null||Rn.set(t,t.v))}activate(){It=this,this.apply()}deactivate(){It===this&&(It=null,Rn=null)}flush(){var t;if(Kn.length>0)It=this,Wh();else if(ue(this,ls)===0&&!this.is_fork){for(const n of ue(this,Ca))n(this);ue(this,Ca).clear(),pn(this,nr,_h).call(this),(t=ue(this,Ys))==null||t.resolve()}this.deactivate()}discard(){for(const t of ue(this,$s))t(this);ue(this,$s).clear()}increment(t){bt(this,ls,ue(this,ls)+1),t&&bt(this,Zs,ue(this,Zs)+1)}decrement(t){bt(this,ls,ue(this,ls)-1),t&&bt(this,Zs,ue(this,Zs)-1),!ue(this,Xs)&&(bt(this,Xs,!0),li(()=>{bt(this,Xs,!1),pn(this,nr,mh).call(this)?Kn.length>0&&this.flush():this.revive()}))}revive(){for(const t of ue(this,Js))ue(this,Ia).delete(t),dn(t,Tn),ci(t);for(const t of ue(this,Ia))dn(t,Sr),ci(t);this.flush()}oncommit(t){ue(this,Ca).add(t)}ondiscard(t){ue(this,$s).add(t)}settled(){return(ue(this,Ys)??bt(this,Ys,Th())).promise}static ensure(){if(It===null){const t=It=new lh;Cl.add(It),go||li(()=>{It===t&&t.flush()})}return It}apply(){}};Ca=new WeakMap,$s=new WeakMap,ls=new WeakMap,Zs=new WeakMap,Ys=new WeakMap,Js=new WeakMap,Ia=new WeakMap,mi=new WeakMap,Xs=new WeakMap,nr=new WeakSet,mh=function(){return this.is_fork||ue(this,Zs)>0},vh=function(t,n,r){t.f^=En;for(var i=t.first;i!==null;){var l=i.f,d=(l&(xr|Ra))!==0,g=d&&(l&En)!==0,p=(l&zn)!==0,_=g||ue(this,mi).has(i);if(!_&&i.fn!==null){d?p||(i.f^=En):l&bi?n.push(i):l&(Pa|Eu)&&p?r.push(i):Es(i)&&(Va(i),l&Wi&&(ue(this,Ia).add(i),p&&dn(i,Tn)));var S=i.first;if(S!==null){i=S;continue}}for(;i!==null;){var k=i.next;if(k!==null){i=k;break}i=i.parent}}},yh=function(t){for(var n=0;n<t.length;n+=1)Gh(t[n],ue(this,Js),ue(this,Ia))},_h=function(){var l;if(Cl.size>1){this.previous.clear();var t=It,n=Rn,r=!0;for(const d of Cl){if(d===this){r=!1;continue}const g=[];for(const[_,S]of this.current){if(d.current.has(_))if(r&&S!==d.current.get(_))d.current.set(_,S);else continue;g.push(_)}if(g.length===0)continue;const p=[...d.current.keys()].filter(_=>!this.current.has(_));if(p.length>0){var i=Kn;Kn=[];const _=new Set,S=new Map;for(const k of g)$h(k,p,_,S);if(Kn.length>0){It=d,d.apply();for(const k of Kn)pn(l=d,nr,vh).call(l,k,[],[]);d.deactivate()}Kn=i}}It=t,Rn=n}ue(this,mi).clear(),Cl.delete(this)};let Yi=lh;function B(e){var t=go;go=!0;try{for(var n;;){if(z1(),Kn.length===0&&(It==null||It.flush(),Kn.length===0))return Il=null,n;Wh()}}finally{go=t}}function Wh(){var e=null;try{for(var t=0;Kn.length>0;){var n=Yi.ensure();if(t++>1e3){var r,i;q1()}n.process(Kn),Xi.clear()}}finally{Kn=[],Il=null,bs=null}}function q1(){try{v1()}catch(e){Zi(e,Il)}}let Br=null;function Kh(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(ai|zn))&&Es(r)&&(Br=new Set,Va(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&mg(r),(Br==null?void 0:Br.size)>0)){Xi.clear();for(const i of Br){if(i.f&(ai|zn))continue;const l=[i];let d=i.parent;for(;d!==null;)Br.has(d)&&(Br.delete(d),l.push(d)),d=d.parent;for(let g=l.length-1;g>=0;g--){const p=l[g];p.f&(ai|zn)||Va(p)}}Br.clear()}}Br=null}}function $h(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const l=i.f;l&Lt?$h(i,t,n,r):l&(Iu|Wi)&&!(l&Tn)&&Zh(i,t,r)&&(dn(i,Tn),ci(i))}}function Zh(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(ms.call(t,i))return!0;if(i.f&Lt&&Zh(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ci(e){var t=Il=e,n=t.b;if(n!=null&&n.is_pending&&e.f&(bi|Pa|Eu)&&!(e.f&Ma)){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(bs!==null&&t===Dt&&!(e.f&Pa))return;if(r&(Ra|xr)){if(!(r&En))return;t.f^=En}}Kn.push(t)}function Yh(e,t){if(!(e.f&xr&&e.f&En)){e.f&Tn?t.d.push(e):e.f&Sr&&t.m.push(e),dn(e,En);for(var n=e.first;n!==null;)Yh(n,t),n=n.next}}function G1(e){let t=0,n=Fa(0),r;return()=>{ju()&&(C(n),yo(()=>(t===0&&(r=Z(()=>e(()=>mo(n)))),t+=1,()=>{li(()=>{t-=1,t===0&&(r==null||r(),r=void 0,mo(n))})})))}}var W1=La|gs;function K1(e,t,n,r){new $1(e,t,n,r)}class $1{constructor(t,n,r,i){At(this,hn);Je(this,"parent");Je(this,"is_pending",!1);Je(this,"transform_error");At(this,mr);At(this,hl,St?_t:null);At(this,vi);At(this,cs);At(this,rr);At(this,yi,null);At(this,vr,null);At(this,$r,null);At(this,zi,null);At(this,us,0);At(this,Aa,0);At(this,Qs,!1);At(this,eo,new Set);At(this,to,new Set);At(this,Vi,null);At(this,gu,G1(()=>(bt(this,Vi,Fa(ue(this,us))),()=>{bt(this,Vi,null)})));var l;bt(this,mr,t),bt(this,vi,n),bt(this,cs,d=>{var g=Dt;g.b=this,g.f|=ku,r(d)}),this.parent=Dt.b,this.transform_error=i??((l=this.parent)==null?void 0:l.transform_error)??(d=>d),bt(this,rr,_o(()=>{if(St){const d=ue(this,hl);Ei();const g=d.data===Lu;if(d.data.startsWith(Lh)){const _=JSON.parse(d.data.slice(Lh.length));pn(this,hn,i1).call(this,_)}else g?pn(this,hn,a1).call(this):pn(this,hn,r1).call(this)}else pn(this,hn,wh).call(this)},W1)),St&&bt(this,mr,_t)}defer_effect(t){Gh(t,ue(this,eo),ue(this,to))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!ue(this,vi).pending}update_pending_count(t){pn(this,hn,bh).call(this,t),bt(this,us,ue(this,us)+t),!(!ue(this,Vi)||ue(this,Qs))&&(bt(this,Qs,!0),li(()=>{bt(this,Qs,!1),ue(this,Vi)&&Ss(ue(this,Vi),ue(this,us))}))}get_effect_pending(){return ue(this,gu).call(this),C(ue(this,Vi))}error(t){var n=ue(this,vi).onerror;let r=ue(this,vi).failed;if(!n&&!r)throw t;ue(this,yi)&&(Zn(ue(this,yi)),bt(this,yi,null)),ue(this,vr)&&(Zn(ue(this,vr)),bt(this,vr,null)),ue(this,$r)&&(Zn(ue(this,$r)),bt(this,$r,null)),St&&(Pn(ue(this,hl)),Wt(),Pn(ho()));var i=!1,l=!1;const d=()=>{if(i){V1();return}i=!0,l&&k1(),ue(this,$r)!==null&&Ha(ue(this,$r),()=>{bt(this,$r,null)}),pn(this,hn,Su).call(this,()=>{Yi.ensure(),pn(this,hn,wh).call(this)})},g=p=>{try{l=!0,n==null||n(p,d),l=!1}catch(_){Zi(_,ue(this,rr)&&ue(this,rr).parent)}r&&bt(this,$r,pn(this,hn,Su).call(this,()=>{Yi.ensure();try{return Ar(()=>{var _=Dt;_.b=this,_.f|=ku,r(ue(this,mr),()=>p,()=>d)})}catch(_){return Zi(_,ue(this,rr).parent),null}}))};li(()=>{var p;try{p=this.transform_error(t)}catch(_){Zi(_,ue(this,rr)&&ue(this,rr).parent);return}p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(g,_=>Zi(_,ue(this,rr)&&ue(this,rr).parent)):g(p)})}}mr=new WeakMap,hl=new WeakMap,vi=new WeakMap,cs=new WeakMap,rr=new WeakMap,yi=new WeakMap,vr=new WeakMap,$r=new WeakMap,zi=new WeakMap,us=new WeakMap,Aa=new WeakMap,Qs=new WeakMap,eo=new WeakMap,to=new WeakMap,Vi=new WeakMap,gu=new WeakMap,hn=new WeakSet,r1=function(){try{bt(this,yi,Ar(()=>ue(this,cs).call(this,ue(this,mr))))}catch(t){this.error(t)}},i1=function(t){const n=ue(this,vi).failed;n&&bt(this,$r,Ar(()=>{n(ue(this,mr),()=>t,()=>()=>{})}))},a1=function(){const t=ue(this,vi).pending;t&&(this.is_pending=!0,bt(this,vr,Ar(()=>t(ue(this,mr)))),li(()=>{var n=bt(this,zi,document.createDocumentFragment()),r=Wn();n.append(r),bt(this,yi,pn(this,hn,Su).call(this,()=>(Yi.ensure(),Ar(()=>ue(this,cs).call(this,r))))),ue(this,Aa)===0&&(ue(this,mr).before(n),bt(this,zi,null),Ha(ue(this,vr),()=>{bt(this,vr,null)}),pn(this,hn,bu).call(this))}))},wh=function(){try{if(this.is_pending=this.has_pending_snippet(),bt(this,Aa,0),bt(this,us,0),bt(this,yi,Ar(()=>{ue(this,cs).call(this,ue(this,mr))})),ue(this,Aa)>0){var t=bt(this,zi,document.createDocumentFragment());Ku(ue(this,yi),t);const n=ue(this,vi).pending;bt(this,vr,Ar(()=>n(ue(this,mr))))}else pn(this,hn,bu).call(this)}catch(n){this.error(n)}},bu=function(){this.is_pending=!1;for(const t of ue(this,eo))dn(t,Tn),ci(t);for(const t of ue(this,to))dn(t,Sr),ci(t);ue(this,eo).clear(),ue(this,to).clear()},Su=function(t){var n=Dt,r=Rt,i=Kt;ui(ue(this,rr)),kr(ue(this,rr)),ys(ue(this,rr).ctx);try{return t()}catch(l){return jh(l),null}finally{ui(n),kr(r),ys(i)}},bh=function(t){var n;if(!this.has_pending_snippet()){this.parent&&pn(n=this.parent,hn,bh).call(n,t);return}bt(this,Aa,ue(this,Aa)+t),ue(this,Aa)===0&&(pn(this,hn,bu).call(this),ue(this,vr)&&Ha(ue(this,vr),()=>{bt(this,vr,null)}),ue(this,zi)&&(ue(this,mr).before(ue(this,zi)),bt(this,zi,null)))};function Z1(e,t,n,r){const i=_s()?po:me;var l=e.filter(k=>!k.settled);if(n.length===0&&l.length===0){r(t.map(i));return}var d=Dt,g=Y1(),p=l.length===1?l[0].promise:l.length>1?Promise.all(l.map(k=>k.promise)):null;function _(k){g();try{r(k)}catch(h){d.f&ai||Zi(h,d)}Bu()}if(n.length===0){p.then(()=>_(t.map(i)));return}function S(){g(),Promise.all(n.map(k=>X1(k))).then(k=>_([...t.map(i),...k])).catch(k=>Zi(k,d))}p?p.then(S):S()}function Y1(){var e=Dt,t=Rt,n=Kt,r=It;return function(l=!0){ui(e),kr(t),ys(n),l&&(r==null||r.activate())}}function Bu(e=!0){ui(null),kr(null),ys(null),e&&(It==null||It.deactivate())}function J1(){var e=Dt.b,t=It,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function po(e){var t=Lt|Tn,n=Rt!==null&&Rt.f&Lt?Rt:null;return Dt!==null&&(Dt.f|=gs),{ctx:Kt,deps:null,effects:null,equals:Oh,f:t,fn:e,reactions:null,rv:0,v:On,wv:0,parent:n??Dt,ac:null}}function X1(e,t,n){Dt===null&&f1();var i=void 0,l=Fa(On),d=!Rt,g=new Map;return dw(()=>{var h;var p=Th();i=p.promise;try{Promise.resolve(e()).then(p.resolve,p.reject).finally(Bu)}catch(y){p.reject(y),Bu()}var _=It;if(d){var S=J1();(h=g.get(_))==null||h.reject(Na),g.delete(_),g.set(_,p)}const k=(y,b=void 0)=>{if(_.activate(),b)b!==Na&&(l.f|=Ki,Ss(l,b));else{l.f&Ki&&(l.f^=Ki),Ss(l,y);for(const[c,u]of g){if(g.delete(c),c===_)break;u.reject(Na)}}S&&S()};p.promise.then(k,y=>k(null,y||"unknown"))}),Ol(()=>{for(const p of g.values())p.reject(Na)}),new Promise(p=>{function _(S){function k(){S===i?p(l):_(i)}S.then(k,k)}_(i)})}function Ji(e){const t=po(e);return ig(t),t}function me(e){const t=po(e);return t.equals=Rh,t}function Q1(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Zn(t[n])}}function ew(e){for(var t=e.parent;t!==null;){if(!(t.f&Lt))return t.f&ai?null:t;t=t.parent}return null}function zu(e){var t,n=Dt;ui(ew(e));try{e.f&=~Da,Q1(e),t=cg(e)}finally{ui(n)}return t}function Jh(e){var t=zu(e);if(!e.equals(t)&&(e.wv=og(),(!(It!=null&&It.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){dn(e,En);return}ea||(Rn!==null?(ju()||It!=null&&It.is_fork)&&Rn.set(e,t):Uu(e))}function tw(e){var t,n;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((t=r.teardown)==null||t.call(r),(n=r.ac)==null||n.abort(Na),r.teardown=oi,r.ac=null,vo(r,0),Gu(r))}function Xh(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Va(t)}let Vu=new Set;const Xi=new Map;let Qh=!1;function Fa(e,t){var n={f:0,v:e,reactions:null,equals:Oh,rv:0,wv:0};return n}function Qi(e,t){const n=Fa(e);return ig(n),n}function re(e,t=!1,n=!0){var i;const r=Fa(e);return t||(r.equals=Rh),vs&&n&&Kt!==null&&Kt.l!==null&&((i=Kt.l).s??(i.s=[])).push(r),r}function Y(e,t,n=!1){Rt!==null&&(!zr||Rt.f&Sh)&&_s()&&Rt.f&(Lt|Wi|Iu|Sh)&&(Cr===null||!ms.call(Cr,e))&&E1();let r=n?ws(t):t;return Ss(e,r)}function Ss(e,t){if(!e.equals(t)){var n=e.v;ea?Xi.set(e,t):Xi.set(e,n),e.v=t;var r=Yi.ensure();if(r.capture(e,n),e.f&Lt){const i=e;e.f&Tn&&zu(i),Uu(i)}e.wv=og(),eg(e,Tn),_s()&&Dt!==null&&Dt.f&En&&!(Dt.f&(xr|Ra))&&(Ir===null?iw([e]):Ir.push(e)),!r.is_fork&&Vu.size>0&&!Qh&&nw()}return t}function nw(){Qh=!1;for(const e of Vu)e.f&En&&dn(e,Sr),Es(e)&&Va(e);Vu.clear()}function mo(e){Y(e,e.v+1)}function eg(e,t){var n=e.reactions;if(n!==null)for(var r=_s(),i=n.length,l=0;l<i;l++){var d=n[l],g=d.f;if(!(!r&&d===Dt)){var p=(g&Tn)===0;if(p&&dn(d,t),g&Lt){var _=d;Rn==null||Rn.delete(_),g&Da||(g&br&&(d.f|=Da),eg(_,Sr))}else p&&(g&Wi&&Br!==null&&Br.add(d),ci(d))}}}let tg=!1;function ng(){tg||(tg=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function Al(e){var t=Rt,n=Dt;kr(null),ui(null);try{return e()}finally{kr(t),ui(n)}}function rw(e,t,n,r=n){e.addEventListener(t,()=>Al(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),ng()}let Tl=!1,ea=!1;function rg(e){ea=e}let Rt=null,zr=!1;function kr(e){Rt=e}let Dt=null;function ui(e){Dt=e}let Cr=null;function ig(e){Rt!==null&&(Cr===null?Cr=[e]:Cr.push(e))}let $n=null,ar=0,Ir=null;function iw(e){Ir=e}let ag=1,Ba=0,za=Ba;function sg(e){za=e}function og(){return++ag}function Es(e){var t=e.f;if(t&Tn)return!0;if(t&Lt&&(e.f&=~Da),t&Sr){for(var n=e.deps,r=n.length,i=0;i<r;i++){var l=n[i];if(Es(l)&&Jh(l),l.wv>e.wv)return!0}t&br&&Rn===null&&dn(e,En)}return!1}function lg(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Cr!==null&&ms.call(Cr,e)))for(var i=0;i<r.length;i++){var l=r[i];l.f&Lt?lg(l,t,!1):t===l&&(n?dn(l,Tn):l.f&En&&dn(l,Sr),ci(l))}}function cg(e){var c;var t=$n,n=ar,r=Ir,i=Rt,l=Cr,d=Kt,g=zr,p=za,_=e.f;$n=null,ar=0,Ir=null,Rt=_&(xr|Ra)?null:e,Cr=null,ys(e.ctx),zr=!1,za=++Ba,e.ac!==null&&(Al(()=>{e.ac.abort(Na)}),e.ac=null);try{e.f|=Cu;var S=e.fn,k=S();e.f|=Ma;var h=e.deps,y=It==null?void 0:It.is_fork;if($n!==null){var b;if(y||vo(e,ar),h!==null&&ar>0)for(h.length=ar+$n.length,b=0;b<$n.length;b++)h[ar+b]=$n[b];else e.deps=h=$n;if(ju()&&e.f&br)for(b=ar;b<h.length;b++)((c=h[b]).reactions??(c.reactions=[])).push(e)}else!y&&h!==null&&ar<h.length&&(vo(e,ar),h.length=ar);if(_s()&&Ir!==null&&!zr&&h!==null&&!(e.f&(Lt|Sr|Tn)))for(b=0;b<Ir.length;b++)lg(Ir[b],e);if(i!==null&&i!==e){if(Ba++,i.deps!==null)for(let u=0;u<n;u+=1)i.deps[u].rv=Ba;if(t!==null)for(const u of t)u.rv=Ba;Ir!==null&&(r===null?r=Ir:r.push(...Ir))}return e.f&Ki&&(e.f^=Ki),k}catch(u){return jh(u)}finally{e.f^=Cu,$n=t,ar=n,Ir=r,Rt=i,Cr=l,ys(d),zr=g,za=p}}function aw(e,t){let n=t.reactions;if(n!==null){var r=l1.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&Lt&&($n===null||!ms.call($n,t))){var l=t;l.f&br&&(l.f^=br,l.f&=~Da),Uu(l),tw(l),vo(l,0)}}function vo(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)aw(e,n[r])}function Va(e){var t=e.f;if(!(t&ai)){dn(e,En);var n=Dt,r=Tl;Dt=e,Tl=!0;try{t&(Wi|Eu)?fw(e):Gu(e),gg(e);var i=cg(e);e.teardown=typeof i=="function"?i:null,e.wv=ag;var l;Tu&&C1&&e.f&Tn&&e.deps}finally{Tl=r,Dt=n}}}async function sw(){await Promise.resolve(),B()}function C(e){var t=e.f,n=(t&Lt)!==0;if(Rt!==null&&!zr){var r=Dt!==null&&(Dt.f&ai)!==0;if(!r&&(Cr===null||!ms.call(Cr,e))){var i=Rt.deps;if(Rt.f&Cu)e.rv<Ba&&(e.rv=Ba,$n===null&&i!==null&&i[ar]===e?ar++:$n===null?$n=[e]:$n.push(e));else{(Rt.deps??(Rt.deps=[])).push(e);var l=e.reactions;l===null?e.reactions=[Rt]:ms.call(l,Rt)||l.push(Rt)}}}if(ea&&Xi.has(e))return Xi.get(e);if(n){var d=e;if(ea){var g=d.v;return(!(d.f&En)&&d.reactions!==null||dg(d))&&(g=zu(d)),Xi.set(d,g),g}var p=(d.f&br)===0&&!zr&&Rt!==null&&(Tl||(Rt.f&br)!==0),_=(d.f&Ma)===0;Es(d)&&(p&&(d.f|=br),Jh(d)),p&&!_&&(Xh(d),ug(d))}if(Rn!=null&&Rn.has(e))return Rn.get(e);if(e.f&Ki)throw e.v;return e.v}function ug(e){if(e.f|=br,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&Lt&&!(t.f&br)&&(Xh(t),ug(t))}function dg(e){if(e.v===On)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Xi.has(t)||t.f&Lt&&dg(t))return!0;return!1}function Z(e){var t=zr;try{return zr=!0,e()}finally{zr=t}}function G(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if($i in e)Hu(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&$i in n&&Hu(n)}}}function Hu(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Hu(e[r],t)}catch{}const n=Pu(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Ih(n);for(let i in r){const l=r[i].get;if(l)try{l.call(e)}catch{}}}}}function fg(e){Dt===null&&(Rt===null&&m1(),p1()),ea&&g1()}function ow(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function di(e,t){var n=Dt;n!==null&&n.f&zn&&(e|=zn);var r={ctx:Kt,deps:null,nodes:null,f:e|Tn|br,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&bi)bs!==null?bs.push(r):ci(r);else if(t!==null){try{Va(r)}catch(d){throw Zn(r),d}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&gs)&&(i=i.first,e&Wi&&e&La&&i!==null&&(i.f|=La))}if(i!==null&&(i.parent=n,n!==null&&ow(i,n),Rt!==null&&Rt.f&Lt&&!(e&Ra))){var l=Rt;(l.effects??(l.effects=[])).push(i)}return r}function ju(){return Rt!==null&&!zr}function Ol(e){const t=di(Pa,null);return dn(t,En),t.teardown=e,t}function qu(e){fg();var t=Dt.f,n=!Rt&&(t&xr)!==0&&(t&Ma)===0;if(n){var r=Kt;(r.e??(r.e=[])).push(e)}else return hg(e)}function hg(e){return di(bi|Eh,e)}function lw(e){return fg(),di(Pa|Eh,e)}function cw(e){Yi.ensure();const t=di(Ra|gs,e);return(n={})=>new Promise(r=>{n.outro?Ha(t,()=>{Zn(t),r(void 0)}):(Zn(t),r(void 0))})}function uw(e){return di(bi,e)}function vt(e,t){var n=Kt,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=yo(()=>{e(),!r.ran&&(r.ran=!0,Z(t))})}function Tt(){var e=Kt;yo(()=>{for(var t of e.l.$){t.deps();var n=t.effect;n.f&En&&n.deps!==null&&dn(n,Sr),Es(n)&&Va(n),t.ran=!1}})}function dw(e){return di(Iu|gs,e)}function yo(e,t=0){return di(Pa|t,e)}function Pe(e,t=[],n=[],r=[]){Z1(r,t,n,i=>{di(Pa,()=>e(...i.map(C)))})}function _o(e,t=0){var n=di(Wi|t,e);return n}function Ar(e){return di(xr|gs,e)}function gg(e){var t=e.teardown;if(t!==null){const n=ea,r=Rt;rg(!0),kr(null);try{t.call(null)}finally{rg(n),kr(r)}}}function Gu(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Al(()=>{i.abort(Na)});var r=n.next;n.f&Ra?n.parent=null:Zn(n,t),n=r}}function fw(e){for(var t=e.first;t!==null;){var n=t.next;t.f&xr||Zn(t),t=n}}function Zn(e,t=!0){var n=!1;(t||e.f&s1)&&e.nodes!==null&&e.nodes.end!==null&&(pg(e.nodes.start,e.nodes.end),n=!0),Gu(e,t&&!n),vo(e,0),dn(e,ai);var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)l.stop();gg(e);var i=e.parent;i!==null&&i.first!==null&&mg(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function pg(e,t){for(;e!==null;){var n=e===t?null:Fr(e);e.remove(),e=n}}function mg(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ha(e,t,n=!0){var r=[];vg(e,r,!0);var i=()=>{n&&Zn(e),t&&t()},l=r.length;if(l>0){var d=()=>--l||i();for(var g of r)g.out(d)}else i()}function vg(e,t,n){if(!(e.f&zn)){e.f^=zn;var r=e.nodes&&e.nodes.t;if(r!==null)for(const g of r)(g.is_global||n)&&t.push(g);for(var i=e.first;i!==null;){var l=i.next,d=(i.f&La)!==0||(i.f&xr)!==0&&(e.f&Wi)!==0;vg(i,t,d?n:!1),i=l}}}function Wu(e){yg(e,!0)}function yg(e,t){if(e.f&zn){e.f^=zn;for(var n=e.first;n!==null;){var r=n.next,i=(n.f&La)!==0||(n.f&xr)!==0;yg(n,i?t:!1),n=r}var l=e.nodes&&e.nodes.t;if(l!==null)for(const d of l)(d.is_global||t)&&d.in()}}function Ku(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Fr(n);t.append(n),n=i}}const Pl=Symbol("events"),hw=new Set,_g=new Set;function gw(e,t,n,r={}){function i(l){if(r.capture||$u.call(t,l),!l.cancelBubble)return Al(()=>n==null?void 0:n.call(this,l))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?li(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function mn(e,t,n,r,i){var l={capture:r,passive:i},d=gw(e,t,n,l);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ol(()=>{t.removeEventListener(e,d,l)})}let wg=null;function $u(e){var u,f;var t=this,n=t.ownerDocument,r=e.type,i=((u=e.composedPath)==null?void 0:u.call(e))||[],l=i[0]||e.target;wg=e;var d=0,g=wg===e&&e[Pl];if(g){var p=i.indexOf(g);if(p!==-1&&(t===document||t===window)){e[Pl]=t;return}var _=i.indexOf(t);if(_===-1)return;p<=_&&(d=p)}if(l=i[d]||e.target,l!==t){Ou(e,"currentTarget",{configurable:!0,get(){return l||n}});var S=Rt,k=Dt;kr(null),ui(null);try{for(var h,y=[];l!==null;){var b=l.assignedSlot||l.parentNode||l.host||null;try{var c=(f=l[Pl])==null?void 0:f[r];c!=null&&(!l.disabled||e.target===l)&&c.call(l,e)}catch(s){h?y.push(s):h=s}if(e.cancelBubble||b===t||b===null)break;l=b}if(h){for(let s of y)queueMicrotask(()=>{throw s});throw h}}finally{e[Pl]=t,delete e.currentTarget,kr(S),ui(k)}}}const Zu=((z_=globalThis==null?void 0:globalThis.window)==null?void 0:z_.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function pw(e){return(Zu==null?void 0:Zu.createHTML(e))??e}function bg(e){var t=Hh("template");return t.innerHTML=pw(e.replaceAll("<!>","<!---->")),t.content}function Tr(e,t){var n=Dt;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ce(e,t){var n=(t&x1)!==0,r=(t&U1)!==0,i,l=!e.startsWith("<!>");return()=>{if(St)return Tr(_t,null),_t;i===void 0&&(i=bg(l?e:"<!>"+e),n||(i=Er(i)));var d=r||Uh?document.importNode(i,!0):i.cloneNode(!0);if(n){var g=Er(d),p=d.lastChild;Tr(g,p)}else Tr(d,d);return d}}function mw(e,t,n="svg"){var r=!e.startsWith("<!>"),i=`<${n}>${r?e:"<!>"+e}</${n}>`,l;return()=>{if(St)return Tr(_t,null),_t;if(!l){var d=bg(i),g=Er(d);l=Er(g)}var p=l.cloneNode(!0);return Tr(p,p),p}}function kn(e,t){return mw(e,t,"svg")}function Vt(e=""){if(!St){var t=Wn(e+"");return Tr(t,t),t}var n=_t;return n.nodeType!==co?(n.before(n=Wn()),Pn(n)):kl(n),Tr(n,n),n}function mt(){if(St)return Tr(_t,null),_t;var e=document.createDocumentFragment(),t=document.createComment(""),n=Wn();return e.append(t,n),Tr(t,n),e}function Q(e,t){if(St){var n=Dt;(!(n.f&Ma)||n.nodes.end===null)&&(n.nodes.end=_t),Ei();return}e!==null&&e.before(t)}const vw=["touchstart","touchmove"];function yw(e){return vw.includes(e)}function wt(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=`${n}`)}function Sg(e,t){return Eg(e,t)}function _w(e,t){xu(),t.intro=t.intro??!1;const n=t.target,r=St,i=_t;try{for(var l=Er(n);l&&(l.nodeType!==ps||l.data!==Mu);)l=Fr(l);if(!l)throw xa;Ur(!0),Pn(l);const d=Eg(e,{...t,anchor:l});return Ur(!1),d}catch(d){if(d instanceof Error&&d.message.split(`
2
- `).some(g=>g.startsWith("https://svelte.dev/e/")))throw d;return d!==xa&&console.warn("Failed to hydrate: ",d),t.recover===!1&&y1(),xu(),zh(n),Ur(!1),Sg(e,t)}finally{Ur(r),Pn(i)}}const Rl=new Map;function Eg(e,{target:t,anchor:n,props:r={},events:i,context:l,intro:d=!0,transformError:g}){xu();var p=void 0,_=cw(()=>{var S=n??t.appendChild(Wn());K1(S,{pending:()=>{}},y=>{He({});var b=Kt;if(l&&(b.c=l),i&&(r.$$events=i),St&&Tr(y,null),p=e(y,r)||{},St&&(Dt.nodes.end=_t,_t===null||_t.nodeType!==ps||_t.data!==Du))throw fo(),xa;je()},g);var k=new Set,h=y=>{for(var b=0;b<y.length;b++){var c=y[b];if(!k.has(c)){k.add(c);var u=yw(c);for(const o of[t,document]){var f=Rl.get(o);f===void 0&&(f=new Map,Rl.set(o,f));var s=f.get(c);s===void 0?(o.addEventListener(c,$u,{passive:u}),f.set(c,1)):f.set(c,s+1)}}}};return h(Sl(hw)),_g.add(h),()=>{var u;for(var y of k)for(const f of[t,document]){var b=Rl.get(f),c=b.get(y);--c==0?(f.removeEventListener(y,$u),b.delete(y),b.size===0&&Rl.delete(f)):b.set(y,c)}_g.delete(h),S!==n&&((u=S.parentNode)==null||u.removeChild(S))}});return Yu.set(p,_),p}let Yu=new WeakMap;function ww(e,t){const n=Yu.get(e);return n?(Yu.delete(e),n(t)):Promise.resolve()}function Ml(e){return function(...t){var n=t[0];return n.preventDefault(),e==null?void 0:e.apply(this,t)}}function Ge(e){return new bw(e)}class bw{constructor(t){At(this,Hi);At(this,Dr);var l;var n=new Map,r=(d,g)=>{var p=re(g,!1,!1);return n.set(d,p),p};const i=new Proxy({...t.props||{},$$events:{}},{get(d,g){return C(n.get(g)??r(g,Reflect.get(d,g)))},has(d,g){return g===Au?!0:(C(n.get(g)??r(g,Reflect.get(d,g))),Reflect.has(d,g))},set(d,g,p){return Y(n.get(g)??r(g,p),p),Reflect.set(d,g,p)}});bt(this,Dr,(t.hydrate?_w:Sg)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((l=t==null?void 0:t.props)!=null&&l.$$host)||t.sync===!1)&&B(),bt(this,Hi,i.$$events);for(const d of Object.keys(ue(this,Dr)))d==="$set"||d==="$destroy"||d==="$on"||Ou(this,d,{get(){return ue(this,Dr)[d]},set(g){ue(this,Dr)[d]=g},enumerable:!0});ue(this,Dr).$set=d=>{Object.assign(i,d)},ue(this,Dr).$destroy=()=>{ww(ue(this,Dr))}}$set(t){ue(this,Dr).$set(t)}$on(t,n){ue(this,Hi)[t]=ue(this,Hi)[t]||[];const r=(...i)=>n.call(this,...i);return ue(this,Hi)[t].push(r),()=>{ue(this,Hi)[t]=ue(this,Hi)[t].filter(i=>i!==r)}}$destroy(){ue(this,Dr).$destroy()}}Hi=new WeakMap,Dr=new WeakMap;const Sw="5";typeof window<"u"&&((V_=window.__svelte??(window.__svelte={})).v??(V_.v=new Set)).add(Sw),I1();class Ju{constructor(t,n=!0){Je(this,"anchor");At(this,Zr,new Map);At(this,_i,new Map);At(this,yr,new Map);At(this,ds,new Set);At(this,gl,!0);At(this,pl,t=>{if(ue(this,Zr).has(t)){var n=ue(this,Zr).get(t),r=ue(this,_i).get(n);if(r)Wu(r),ue(this,ds).delete(n);else{var i=ue(this,yr).get(n);i&&!(i.effect.f&zn)&&(ue(this,_i).set(n,i.effect),ue(this,yr).delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[l,d]of ue(this,Zr)){if(ue(this,Zr).delete(l),l===t)break;const g=ue(this,yr).get(d);g&&(Zn(g.effect),ue(this,yr).delete(d))}for(const[l,d]of ue(this,_i)){if(l===n||ue(this,ds).has(l)||d.f&zn)continue;const g=()=>{if(Array.from(ue(this,Zr).values()).includes(l)){var _=document.createDocumentFragment();Ku(d,_),_.append(Wn()),ue(this,yr).set(l,{effect:d,fragment:_})}else Zn(d);ue(this,ds).delete(l),ue(this,_i).delete(l)};ue(this,gl)||!r?(ue(this,ds).add(l),Ha(d,g,!1)):g()}}});At(this,pu,t=>{ue(this,Zr).delete(t);const n=Array.from(ue(this,Zr).values());for(const[r,i]of ue(this,yr))n.includes(r)||(Zn(i.effect),ue(this,yr).delete(r))});this.anchor=t,bt(this,gl,n)}ensure(t,n){var r=It,i=Vh();if(n&&!ue(this,_i).has(t)&&!ue(this,yr).has(t))if(i){var l=document.createDocumentFragment(),d=Wn();l.append(d),ue(this,yr).set(t,{effect:Ar(()=>n(d)),fragment:l})}else ue(this,_i).set(t,Ar(()=>n(this.anchor)));if(ue(this,Zr).set(r,t),i){for(const[g,p]of ue(this,_i))g===t?r.unskip_effect(p):r.skip_effect(p);for(const[g,p]of ue(this,yr))g===t?r.unskip_effect(p.effect):r.skip_effect(p.effect);r.oncommit(ue(this,pl)),r.ondiscard(ue(this,pu))}else St&&(this.anchor=_t),ue(this,pl).call(this,r)}}Zr=new WeakMap,_i=new WeakMap,yr=new WeakMap,ds=new WeakMap,gl=new WeakMap,pl=new WeakMap,pu=new WeakMap;function Ze(e,t,n=!1){var r;St&&(r=_t,Ei());var i=new Ju(e),l=n?La:0;function d(g,p){if(St){var _=Nu(r);if(g!==parseInt(_.substring(1))){var S=ho();Pn(S),i.anchor=S,Ur(!1),i.ensure(g,p),Ur(!0);return}}i.ensure(g,p)}_o(()=>{var g=!1;t((p,_=0)=>{g=!0,d(_,p)}),g||d(-1,null)},l)}const Ew=Symbol("NaN");function ja(e,t,n){St&&Ei();var r=new Ju(e),i=!_s();_o(()=>{var l=t();l!==l&&(l=Ew),i&&l!==null&&typeof l=="object"&&(l={}),r.ensure(l,n)})}function Yn(e,t){return t}function kw(e,t,n){for(var r=[],i=t.length,l,d=t.length,g=0;g<i;g++){let k=t[g];Ha(k,()=>{if(l){if(l.pending.delete(k),l.done.add(k),l.pending.size===0){var h=e.outrogroups;Xu(e,Sl(l.done)),h.delete(l),h.size===0&&(e.outrogroups=null)}}else d-=1},!1)}if(d===0){var p=r.length===0&&n!==null;if(p){var _=n,S=_.parentNode;zh(S),S.append(_),e.items.clear()}Xu(e,t,!p)}else l={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(l)}function Xu(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const d of e.pending.values())for(const g of d)r.add(e.items.get(g).e)}for(var i=0;i<t.length;i++){var l=t[i];if(r!=null&&r.has(l)){l.f|=si;const d=document.createDocumentFragment();Ku(l,d)}else Zn(t[i],n)}}var kg;function Jn(e,t,n,r,i,l=null){var d=e,g=new Map,p=(t&Mh)!==0;if(p){var _=e;d=St?Pn(Er(_)):_.appendChild(Wn())}St&&Ei();var S=null,k=me(()=>{var o=n();return Ch(o)?o:o==null?[]:Sl(o)}),h,y=new Map,b=!0;function c(o){s.effect.f&ai||(s.pending.delete(o),s.fallback=S,Cw(s,h,d,t,r),S!==null&&(h.length===0?S.f&si?(S.f^=si,bo(S,null,d)):Wu(S):Ha(S,()=>{S=null})))}function u(o){s.pending.delete(o)}var f=_o(()=>{h=C(k);var o=h.length;let a=!1;if(St){var m=Nu(d)===Lu;m!==(o===0)&&(d=ho(),Pn(d),Ur(!1),a=!0)}for(var v=new Set,w=It,A=Vh(),E=0;E<o;E+=1){St&&_t.nodeType===ps&&_t.data===Du&&(d=_t,a=!0,Ur(!1));var O=h[E],T=r(O,E),M=b?null:g.get(T);M?(M.v&&Ss(M.v,O),M.i&&Ss(M.i,E),A&&w.unskip_effect(M.e)):(M=Iw(g,b?d:kg??(kg=Wn()),O,T,E,i,t,n),b||(M.e.f|=si),g.set(T,M)),v.add(T)}if(o===0&&l&&!S&&(b?S=Ar(()=>l(d)):(S=Ar(()=>l(kg??(kg=Wn()))),S.f|=si)),o>v.size&&h1(),St&&o>0&&Pn(ho()),!b)if(y.set(w,v),A){for(const[P,x]of g)v.has(P)||w.skip_effect(x.e);w.oncommit(c),w.ondiscard(u)}else c(w);a&&Ur(!0),C(k)}),s={effect:f,items:g,pending:y,outrogroups:null,fallback:S};b=!1,St&&(d=_t)}function wo(e){for(;e!==null&&!(e.f&xr);)e=e.next;return e}function Cw(e,t,n,r,i){var O,T,M,P,x,I,D,V,j;var l=(r&O1)!==0,d=t.length,g=e.items,p=wo(e.effect.first),_,S=null,k,h=[],y=[],b,c,u,f;if(l)for(f=0;f<d;f+=1)b=t[f],c=i(b,f),u=g.get(c).e,u.f&si||((T=(O=u.nodes)==null?void 0:O.a)==null||T.measure(),(k??(k=new Set)).add(u));for(f=0;f<d;f+=1){if(b=t[f],c=i(b,f),u=g.get(c).e,e.outrogroups!==null)for(const L of e.outrogroups)L.pending.delete(u),L.done.delete(u);if(u.f&si)if(u.f^=si,u===p)bo(u,null,n);else{var s=S?S.next:p;u===e.effect.last&&(e.effect.last=u.prev),u.prev&&(u.prev.next=u.next),u.next&&(u.next.prev=u.prev),ta(e,S,u),ta(e,u,s),bo(u,s,n),S=u,h=[],y=[],p=wo(S.next);continue}if(u.f&zn&&(Wu(u),l&&((P=(M=u.nodes)==null?void 0:M.a)==null||P.unfix(),(k??(k=new Set)).delete(u))),u!==p){if(_!==void 0&&_.has(u)){if(h.length<y.length){var o=y[0],a;S=o.prev;var m=h[0],v=h[h.length-1];for(a=0;a<h.length;a+=1)bo(h[a],o,n);for(a=0;a<y.length;a+=1)_.delete(y[a]);ta(e,m.prev,v.next),ta(e,S,m),ta(e,v,o),p=o,S=v,f-=1,h=[],y=[]}else _.delete(u),bo(u,p,n),ta(e,u.prev,u.next),ta(e,u,S===null?e.effect.first:S.next),ta(e,S,u),S=u;continue}for(h=[],y=[];p!==null&&p!==u;)(_??(_=new Set)).add(p),y.push(p),p=wo(p.next);if(p===null)continue}u.f&si||h.push(u),S=u,p=wo(u.next)}if(e.outrogroups!==null){for(const L of e.outrogroups)L.pending.size===0&&(Xu(e,Sl(L.done)),(x=e.outrogroups)==null||x.delete(L));e.outrogroups.size===0&&(e.outrogroups=null)}if(p!==null||_!==void 0){var w=[];if(_!==void 0)for(u of _)u.f&zn||w.push(u);for(;p!==null;)!(p.f&zn)&&p!==e.fallback&&w.push(p),p=wo(p.next);var A=w.length;if(A>0){var E=r&Mh&&d===0?n:null;if(l){for(f=0;f<A;f+=1)(D=(I=w[f].nodes)==null?void 0:I.a)==null||D.measure();for(f=0;f<A;f+=1)(j=(V=w[f].nodes)==null?void 0:V.a)==null||j.fix()}kw(e,w,E)}}l&&li(()=>{var L,U;if(k!==void 0)for(u of k)(U=(L=u.nodes)==null?void 0:L.a)==null||U.apply()})}function Iw(e,t,n,r,i,l,d,g){var p=d&A1?d&P1?Fa(n):re(n,!1,!1):null,_=d&T1?Fa(i):null;return{v:p,i:_,e:Ar(()=>(l(t,p??n,_??i,g),()=>{e.delete(r)}))}}function bo(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,l=t&&!(t.f&si)?t.nodes.start:n;r!==null;){var d=Fr(r);if(l.before(r),r===i)return;r=d}}function ta(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Ll(e,t,n=!1,r=!1,i=!1){var l=e,d="";Pe(()=>{var g=Dt;if(d===(d=t()??"")){St&&Ei();return}if(g.nodes!==null&&(pg(g.nodes.start,g.nodes.end),g.nodes=null),d!==""){if(St){_t.data;for(var p=Ei(),_=p;p!==null&&(p.nodeType!==ps||p.data!=="");)_=p,p=Fr(p);if(p===null)throw fo(),xa;Tr(_t,_),l=Pn(p);return}var S=n?F1:r?B1:void 0,k=Hh(n?"svg":r?"math":"template",S);k.innerHTML=d;var h=n||r?k:k.content;if(Tr(Er(h),h.lastChild),n||r)for(;Er(h);)l.before(Er(h));else l.before(h)}})}function xt(e,t,n,r,i){var g;St&&Ei();var l=(g=t.$$slots)==null?void 0:g[n],d=!1;l===!0&&(l=t[n==="default"?"children":n],d=!0),l===void 0?i!==null&&i(e):l(e,d?()=>r:r)}function Cg(e,t,n){var r;St&&(r=_t,Ei());var i=new Ju(e);_o(()=>{var l=t()??null;if(St){var d=Nu(r),g=d===Mu,p=l!==null;if(g!==p){var _=ho();Pn(_),i.anchor=_,Ur(!1),i.ensure(l,l&&(S=>n(S,l))),Ur(!0);return}}i.ensure(l,l&&(S=>n(S,l)))},La)}function Ig(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ig(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Aw(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ig(e))&&(r&&(r+=" "),r+=t);return r}function Cn(e){return typeof e=="object"?Aw(e):e??""}function Tw(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function Ow(e,t){return e==null?null:String(e)}function Ot(e,t,n,r,i,l){var d=e.__className;if(St||d!==n||d===void 0){var g=Tw(n);(!St||g!==e.getAttribute("class"))&&(g==null?e.removeAttribute("class"):t?e.className=g:e.setAttribute("class",g)),e.__className=n}return l}function Dl(e,t,n,r){var i=e.__style;if(St||i!==t){var l=Ow(t);(!St||l!==e.getAttribute("style"))&&(l==null?e.removeAttribute("style"):e.style.cssText=l),e.__style=t}return r}const Pw=Symbol("is custom element"),Rw=Symbol("is html"),Mw=kh?"link":"LINK",Lw=kh?"progress":"PROGRESS";function Vr(e){if(St){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;be(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;be(e,"checked",null),e.checked=i}}};e.__on_r=n,li(n),ng()}}function Qu(e,t){var n=ed(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Lw)||(e.value=t??"")}function Nl(e,t){var n=ed(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function Dw(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function be(e,t,n,r){var i=ed(e);St&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Mw)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[o1]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Nw(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ed(e){return e.__attributes??(e.__attributes={[Pw]:e.nodeName.includes("-"),[Rw]:e.namespaceURI===Dh})}var Ag=new Map;function Nw(e){var t=e.getAttribute("is")||e.nodeName,n=Ag.get(t);if(n)return n;Ag.set(t,n=[]);for(var r,i=e,l=Element.prototype;l!==i;){r=Ih(i);for(var d in r)r[d].set&&n.push(d);i=Pu(i)}return n}function ks(e,t,n=t){var r=new WeakSet;rw(e,"input",async i=>{var l=i?e.defaultValue:e.value;if(l=td(e)?nd(l):l,n(l),It!==null&&r.add(It),await sw(),l!==(l=t())){var d=e.selectionStart,g=e.selectionEnd,p=e.value.length;if(e.value=l??"",g!==null){var _=e.value.length;d===g&&g===p&&_>p?(e.selectionStart=_,e.selectionEnd=_):(e.selectionStart=d,e.selectionEnd=Math.min(g,_))}}}),(St&&e.defaultValue!==e.value||Z(t)==null&&e.value)&&(n(td(e)?nd(e.value):e.value),It!==null&&r.add(It)),yo(()=>{var i=t();if(e===document.activeElement){var l=Fu??It;if(r.has(l))return}td(e)&&i===nd(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function td(e){var t=e.type;return t==="number"||t==="range"}function nd(e){return e===""?null:+e}function lt(e,t,n){var r=Si(e,t);r&&r.set&&(e[t]=n,Ol(()=>{e[t]=null}))}function Tg(e,t){return e===t||(e==null?void 0:e[$i])===t}function an(e={},t,n,r){return uw(()=>{var i,l;return yo(()=>{i=l,l=[],Z(()=>{e!==n(...l)&&(t(e,...l),i&&Tg(n(...i),e)&&t(null,...i))})}),()=>{li(()=>{l&&Tg(n(...l),e)&&t(null,...l)})}}),e}function ut(e=!1){const t=Kt,n=t.l.u;if(!n)return;let r=()=>G(t.s);if(e){let i=0,l={};const d=po(()=>{let g=!1;const p=t.s;for(const _ in p)p[_]!==l[_]&&(l[_]=p[_],g=!0);return g&&i++,i});r=()=>C(d)}n.b.length&&lw(()=>{Og(t,r),El(n.b)}),qu(()=>{const i=Z(()=>n.m.map(d1));return()=>{for(const l of i)typeof l=="function"&&l()}}),n.a.length&&qu(()=>{Og(t,r),El(n.a)})}function Og(e,t){if(e.l.s)for(const n of e.l.s)C(n);t()}function We(e,t,n){var r;e.$$events||(e.$$events={}),(r=e.$$events)[t]||(r[t]=[]),e.$$events[t].push(n)}function Ke(e){for(var t in e)t in this&&(this[t]=e[t])}let So=!1,rd=Symbol();function sr(e,t,n){const r=n[t]??(n[t]={store:null,source:re(void 0),unsubscribe:oi});if(r.store!==e&&!(rd in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=oi;else{var i=!0;r.unsubscribe=id(e,l=>{i?r.source.v=l:Y(r.source,l)}),i=!1}return e&&rd in n?sn(e):C(r.source)}function xw(e,t,n){let r=n[t];return r&&r.store!==e&&(r.unsubscribe(),r.unsubscribe=oi),e}function Uw(e,t){return e.set(t),t}function Or(){const e={};function t(){Ol(()=>{for(var n in e)e[n].unsubscribe();Ou(e,rd,{enumerable:!1,value:!0})})}return[e,t]}function Fw(){So=!0}function Bw(e){var t=So;try{return So=!1,[e(),So]}finally{So=t}}const zw={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(uo(r)&&(r=r()),typeof r=="object"&&r!==null&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];uo(i)&&(i=i());const l=Si(i,t);if(l&&l.set)return l.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(uo(r)&&(r=r()),typeof r=="object"&&r!==null&&t in r){const i=Si(r,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===$i||t===Au)return!1;for(let n of e.props)if(uo(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props)if(uo(n)&&(n=n()),!!n){for(const r in n)t.includes(r)||t.push(r);for(const r of Object.getOwnPropertySymbols(n))t.includes(r)||t.push(r)}return t}};function Zt(...e){return new Proxy({props:e},zw)}function z(e,t,n,r){var o;var i=!vs||(n&M1)!==0,l=(n&D1)!==0,d=(n&N1)!==0,g=r,p=!0,_=()=>(p&&(p=!1,g=d?Z(r):r),g),S;if(l){var k=$i in e||Au in e;S=((o=Si(e,t))==null?void 0:o.set)??(k&&t in e?a=>e[t]=a:void 0)}var h,y=!1;l?[h,y]=Bw(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=_(),S&&(i&&w1(),S(h)));var b;if(i?b=()=>{var a=e[t];return a===void 0?_():(p=!0,a)}:b=()=>{var a=e[t];return a!==void 0&&(g=void 0),a===void 0?g:a},i&&!(n&L1))return b;if(S){var c=e.$$legacy;return function(a,m){return arguments.length>0?((!i||!m||c||y)&&S(m?b():a),a):b()}}var u=!1,f=(n&R1?po:me)(()=>(u=!1,b()));l&&C(f);var s=Dt;return function(a,m){if(arguments.length>0){const v=m?C(f):i&&l?ws(a):a;return Y(f,v),u=!0,g!==void 0&&(g=v),a}return ea&&u||s.f&ai?f.v:C(f)}}function Hr(e){Kt===null&&Ru(),vs&&Kt.l!==null?Pg(Kt).m.push(e):qu(()=>{const t=Z(e);if(typeof t=="function")return t})}function Vw(e){Kt===null&&Ru(),Hr(()=>()=>Z(e))}function Vn(e){Kt===null&&Ru(),Kt.l===null&&_1(),Pg(Kt).a.push(e)}function Pg(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function id(e,t,n){if(e==null)return t(void 0),n&&n(void 0),oi;const r=Z(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const Cs=[];function Hw(e,t){return{subscribe:or(e,t).subscribe}}function or(e,t=oi){let n=null;const r=new Set;function i(g){if(Ph(e,g)&&(e=g,n)){const p=!Cs.length;for(const _ of r)_[1](),Cs.push(_,e);if(p){for(let _=0;_<Cs.length;_+=2)Cs[_][0](Cs[_+1]);Cs.length=0}}}function l(g){i(g(e))}function d(g,p=oi){const _=[g,p];return r.add(_),r.size===1&&(n=t(i,l)||oi),g(e),()=>{r.delete(_),r.size===0&&n&&(n(),n=null)}}return{set:i,update:l,subscribe:d}}function Rg(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=t.length<2;return Hw(n,(d,g)=>{let p=!1;const _=[];let S=0,k=oi;const h=()=>{if(S)return;k();const b=t(r?_[0]:_,d,g);l?d(b):k=typeof b=="function"?b:oi},y=i.map((b,c)=>id(b,u=>{_[c]=u,S&=~(1<<c),p&&h()},()=>{S|=1<<c}));return p=!0,h(),function(){El(y),k(),p=!1}})}function sn(e){let t;return id(e,n=>t=n)(),t}const Eo=or({lastAction:null,error:null,modal:null,mounted:!1,open:null,reason:null,type:null});function Mg(e,t){Eo.update(n=>{var r;return n.type==="inline"?(console.warn('Component type of "inline" has no `close` method'),n):(r=n.modal)!=null&&r.component?(t&&n.modal.component.closeDialog(),{...n,lastAction:"close",open:!1,reason:(e==null?void 0:e.reason)||null}):(console.warn("Modal component is not mounted. Please instantiate the Widget before use."),n)})}function jw(e,t){Eo.update(n=>({...n,lastAction:"mount",modal:{...e&&{component:e,element:t}},mounted:!0,type:e?"modal":"inline",reason:null}))}const Lg=()=>{const{update:e}=Eo,{subscribe:t}=Rg([Eo],([n],r)=>{r({error:n.error,lastAction:n.lastAction,mounted:n.mounted,open:n.open,reason:n.reason})});return{close:n=>{Mg(n,!0)},open:()=>{e(n=>{var r;return n.type==="inline"?(console.warn('Component type of "inline" has no `open` method'),n):(r=n.modal)!=null&&r.component?(n.modal.element.showModal(),{...n,lastAction:"open",open:!0,reason:null}):(console.warn("Modal component is not mounted. Please instantiate the Widget before use."),n)})},subscribe:t}};function xl(e){{const t="Error: missing configuration.";throw console.error(t),console.error(`Import \`configure\` and \`await\` it before using the journey, user, or protect APIs. Example:
1
+ var ForgeRockLoginWidget=function(Bt){"use strict";"use strict";var jR=Object.defineProperty;var c1=Bt=>{throw TypeError(Bt)};var qR=(Bt,en,Lt)=>en in Bt?jR(Bt,en,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Bt[en]=Lt;var Je=(Bt,en,Lt)=>qR(Bt,typeof en!="symbol"?en+"":en,Lt),_h=(Bt,en,Lt)=>en.has(Bt)||c1("Cannot "+Lt);var ue=(Bt,en,Lt)=>(_h(Bt,en,"read from private field"),Lt?Lt.call(Bt):en.get(Bt)),Tt=(Bt,en,Lt)=>en.has(Bt)?c1("Cannot add the same private member more than once"):en instanceof WeakSet?en.add(Bt):en.set(Bt,Lt),bt=(Bt,en,Lt,ki)=>(_h(Bt,en,"write to private field"),ki?ki.call(Bt,Lt):en.set(Bt,Lt),Lt),pn=(Bt,en,Lt)=>(_h(Bt,en,"access private method"),Lt);var G_,As,Za,ca,Ya,Ja,Xa,Ts,_i,Qa,rr,wh,bh,Sh,Eh,vr,ml,wi,ua,ir,bi,yr,Zr,Hi,da,Os,eo,to,no,ji,_u,hn,u1,d1,f1,kh,Iu,Au,Ch,K_,qi,xr,$_,Yr,Si,_r,fa,vl,yl,wu,_l,Z_,Y_;function en(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(r,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Lt=2,ki=4,Ms=8,Tu=1<<24,$i=16,Ur=32,Ls=64,Ou=128,Sr=512,In=1024,Pn=2048,Er=4096,Vn=8192,ai=16384,Ds=32768,xs=65536,Ih=1<<17,h1=1<<18,pa=1<<19,Ah=1<<20,oi=1<<25,Ns=65536,Pu=1<<21,Ru=1<<22,Zi=1<<23,Yi=Symbol("$state"),Mu=Symbol("legacy props"),g1=Symbol(""),Us=new class extends Error{constructor(){super(...arguments);Je(this,"name","StaleReactionError");Je(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Th=!!((G_=globalThis.document)!=null&&G_.contentType)&&globalThis.document.contentType.includes("xml"),uo=3,ma=8,Lu=!1;var Oh=Array.isArray,p1=Array.prototype.indexOf,va=Array.prototype.includes,Cl=Array.from,Du=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor,Ph=Object.getOwnPropertyDescriptors,m1=Object.prototype,v1=Array.prototype,xu=Object.getPrototypeOf,Rh=Object.isExtensible;function fo(e){return typeof e=="function"}const li=()=>{};function y1(e){return e()}function Il(e){for(var t=0;t<e.length;t++)e[t]()}function Mh(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function Lh(e){return e===this.v}function Dh(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function xh(e){return!Dh(e,this.v)}function Nu(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function _1(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function w1(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function b1(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function S1(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function E1(e){throw new Error("https://svelte.dev/e/effect_orphan")}function k1(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function C1(){throw new Error("https://svelte.dev/e/hydration_failed")}function I1(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function A1(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function T1(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function O1(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function P1(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function R1(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}let ya=!1,M1=!1;function L1(){ya=!0}const D1=1,x1=2,Nh=4,N1=8,U1=16,F1=1,B1=2,z1=4,V1=8,H1=16,j1=1,q1=2,Uu="[",Fu="[!",Uh="[?",Bu="]",Fs={},Rn=Symbol(),Fh="http://www.w3.org/1999/xhtml",W1="http://www.w3.org/2000/svg",G1="http://www.w3.org/1998/Math/MathML";let Kt=null;function _a(e){Kt=e}function Ve(e,t=!1,n){Kt={p:Kt,i:!1,c:null,e:null,s:e,x:null,l:ya&&!t?{s:null,u:null,$:[]}:null}}function He(e){var t=Kt,n=t.e;if(n!==null){t.e=null;for(var r of n)vg(r)}return e!==void 0&&(t.x=e),t.i=!0,Kt=t.p,e??{}}function wa(){return!ya||Kt!==null&&Kt.l===null}let Bs=[];function Bh(){var e=Bs;Bs=[],Il(e)}function ci(e){if(Bs.length===0&&!po){var t=Bs;queueMicrotask(()=>{t===Bs&&Bh()})}Bs.push(e)}function K1(){for(;Bs.length>0;)Bh()}function ho(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function $1(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let St=!1;function Fr(e){St=e}let wt;function Mn(e){if(e===null)throw ho(),Fs;return wt=e}function Ii(){return Mn(Br(wt))}function ce(e){if(St){if(Br(wt)!==null)throw ho(),Fs;wt=e}}function Gt(e=1){if(St){for(var t=e,n=wt;t--;)n=Br(n);wt=n}}function go(e=!0){for(var t=0,n=wt;;){if(n.nodeType===ma){var r=n.data;if(r===Bu){if(t===0)return n;t-=1}else(r===Uu||r===Fu||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Br(n);e&&n.remove(),n=i}}function zu(e){if(!e||e.nodeType!==ma)throw ho(),Fs;return e.data}function ba(e){if(typeof e!="object"||e===null||Yi in e)return e;const t=xu(e);if(t!==m1&&t!==v1)return e;var n=new Map,r=Oh(e),i=es(0),l=Hs,d=g=>{if(Hs===l)return g();var p=Rt,_=Hs;Cr(null),ug(l);var S=g();return Cr(p),ug(_),S};return r&&n.set("length",es(e.length)),new Proxy(e,{defineProperty(g,p,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&T1();var S=n.get(p);return S===void 0?d(()=>{var k=es(_.value);return n.set(p,k),k}):Y(S,_.value,!0),!0},deleteProperty(g,p){var _=n.get(p);if(_===void 0){if(p in g){const S=d(()=>es(Rn));n.set(p,S),vo(i)}}else Y(_,Rn),vo(i);return!0},get(g,p,_){var y;if(p===Yi)return e;var S=n.get(p),k=p in g;if(S===void 0&&(!k||(y=Ci(g,p))!=null&&y.writable)&&(S=d(()=>{var b=ba(k?g[p]:Rn),c=es(b);return c}),n.set(p,S)),S!==void 0){var h=C(S);return h===Rn?void 0:h}return Reflect.get(g,p,_)},getOwnPropertyDescriptor(g,p){var _=Reflect.getOwnPropertyDescriptor(g,p);if(_&&"value"in _){var S=n.get(p);S&&(_.value=C(S))}else if(_===void 0){var k=n.get(p),h=k==null?void 0:k.v;if(k!==void 0&&h!==Rn)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return _},has(g,p){var h;if(p===Yi)return!0;var _=n.get(p),S=_!==void 0&&_.v!==Rn||Reflect.has(g,p);if(_!==void 0||Dt!==null&&(!S||(h=Ci(g,p))!=null&&h.writable)){_===void 0&&(_=d(()=>{var y=S?ba(g[p]):Rn,b=es(y);return b}),n.set(p,_));var k=C(_);if(k===Rn)return!1}return S},set(g,p,_,S){var o;var k=n.get(p),h=p in g;if(r&&p==="length")for(var y=_;y<k.v;y+=1){var b=n.get(y+"");b!==void 0?Y(b,Rn):y in g&&(b=d(()=>es(Rn)),n.set(y+"",b))}if(k===void 0)(!h||(o=Ci(g,p))!=null&&o.writable)&&(k=d(()=>es(void 0)),Y(k,ba(_)),n.set(p,k));else{h=k.v!==Rn;var c=d(()=>ba(_));Y(k,c)}var u=Reflect.getOwnPropertyDescriptor(g,p);if(u!=null&&u.set&&u.set.call(S,_),!h){if(r&&typeof p=="string"){var f=n.get("length"),a=Number(p);Number.isInteger(a)&&a>=f.v&&Y(f,a+1)}vo(i)}return!0},ownKeys(g){C(i);var p=Reflect.ownKeys(g).filter(k=>{var h=n.get(k);return h===void 0||h.v!==Rn});for(var[_,S]of n)S.v!==Rn&&!(_ in g)&&p.push(_);return p},setPrototypeOf(){O1()}})}var zh,Vh,Hh,jh;function Vu(){if(zh===void 0){zh=window,Vh=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Hh=Ci(t,"firstChild").get,jh=Ci(t,"nextSibling").get,Rh(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Rh(n)&&(n.__t=void 0)}}function $n(e=""){return document.createTextNode(e)}function kr(e){return Hh.call(e)}function Br(e){return jh.call(e)}function de(e,t){if(!St)return kr(e);var n=kr(wt);if(n===null)n=wt.appendChild($n());else if(t&&n.nodeType!==uo){var r=$n();return n==null||n.before(r),Mn(r),r}return t&&Al(n),Mn(n),n}function qe(e,t=!1){if(!St){var n=kr(e);return n instanceof Comment&&n.data===""?Br(n):n}if(t){if((wt==null?void 0:wt.nodeType)!==uo){var r=$n();return wt==null||wt.before(r),Mn(r),r}Al(wt)}return wt}function pe(e,t=1,n=!1){let r=St?wt:e;for(var i;t--;)i=r,r=Br(r);if(!St)return r;if(n){if((r==null?void 0:r.nodeType)!==uo){var l=$n();return r===null?i==null||i.after(l):r.before(l),Mn(l),l}Al(r)}return Mn(r),r}function qh(e){e.textContent=""}function Wh(){return!1}function Gh(e,t,n){return document.createElementNS(t??Fh,e,void 0)}function Al(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===uo;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Kh(e){var t=Dt;if(t===null)return Rt.f|=Zi,e;if(!(t.f&Ds)&&!(t.f&ki))throw e;Ji(e,t)}function Ji(e,t){for(;t!==null;){if(t.f&Ou){if(!(t.f&Ds))throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Z1=-7169;function dn(e,t){e.f=e.f&Z1|t}function Hu(e){e.f&Sr||e.deps===null?dn(e,In):dn(e,Er)}function $h(e){if(e!==null)for(const t of e)!(t.f&Lt)||!(t.f&Ns)||(t.f^=Ns,$h(t.deps))}function Zh(e,t,n){e.f&Pn?t.add(e):e.f&Er&&n.add(e),$h(e.deps),dn(e,In)}const Tl=new Set;let At=null,ju=null,Ln=null,Zn=[],Ol=null,po=!1,Sa=null,Y1=1;const fh=class fh{constructor(){Tt(this,rr);Je(this,"id",Y1++);Je(this,"current",new Map);Je(this,"previous",new Map);Tt(this,As,new Set);Tt(this,Za,new Set);Tt(this,ca,0);Tt(this,Ya,0);Tt(this,Ja,null);Tt(this,Xa,new Set);Tt(this,Ts,new Set);Tt(this,_i,new Map);Je(this,"is_fork",!1);Tt(this,Qa,!1)}skip_effect(t){ue(this,_i).has(t)||ue(this,_i).set(t,{d:[],m:[]})}unskip_effect(t){var n=ue(this,_i).get(t);if(n){ue(this,_i).delete(t);for(var r of n.d)dn(r,Pn),ui(r);for(r of n.m)dn(r,Er),ui(r)}}process(t){var i;Zn=[],this.apply();var n=Sa=[],r=[];for(const l of t)pn(this,rr,bh).call(this,l,n,r);if(Sa=null,pn(this,rr,wh).call(this)){pn(this,rr,Sh).call(this,r),pn(this,rr,Sh).call(this,n);for(const[l,d]of ue(this,_i))eg(l,d)}else{ju=this,At=null;for(const l of ue(this,As))l(this);ue(this,As).clear(),ue(this,ca)===0&&pn(this,rr,Eh).call(this),Jh(r),Jh(n),ue(this,Xa).clear(),ue(this,Ts).clear(),ju=null,(i=ue(this,Ja))==null||i.resolve()}Ln=null}capture(t,n){n!==Rn&&!this.previous.has(t)&&this.previous.set(t,n),t.f&Zi||(this.current.set(t,t.v),Ln==null||Ln.set(t,t.v))}activate(){At=this,this.apply()}deactivate(){At===this&&(At=null,Ln=null)}flush(){var t;if(Zn.length>0)At=this,Yh();else if(ue(this,ca)===0&&!this.is_fork){for(const n of ue(this,As))n(this);ue(this,As).clear(),pn(this,rr,Eh).call(this),(t=ue(this,Ja))==null||t.resolve()}this.deactivate()}discard(){for(const t of ue(this,Za))t(this);ue(this,Za).clear()}increment(t){bt(this,ca,ue(this,ca)+1),t&&bt(this,Ya,ue(this,Ya)+1)}decrement(t){bt(this,ca,ue(this,ca)-1),t&&bt(this,Ya,ue(this,Ya)-1),!ue(this,Qa)&&(bt(this,Qa,!0),ci(()=>{bt(this,Qa,!1),pn(this,rr,wh).call(this)?Zn.length>0&&this.flush():this.revive()}))}revive(){for(const t of ue(this,Xa))ue(this,Ts).delete(t),dn(t,Pn),ui(t);for(const t of ue(this,Ts))dn(t,Er),ui(t);this.flush()}oncommit(t){ue(this,As).add(t)}ondiscard(t){ue(this,Za).add(t)}settled(){return(ue(this,Ja)??bt(this,Ja,Mh())).promise}static ensure(){if(At===null){const t=At=new fh;Tl.add(At),po||ci(()=>{At===t&&t.flush()})}return At}apply(){}};As=new WeakMap,Za=new WeakMap,ca=new WeakMap,Ya=new WeakMap,Ja=new WeakMap,Xa=new WeakMap,Ts=new WeakMap,_i=new WeakMap,Qa=new WeakMap,rr=new WeakSet,wh=function(){return this.is_fork||ue(this,Ya)>0},bh=function(t,n,r){t.f^=In;for(var i=t.first;i!==null;){var l=i.f,d=(l&(Ur|Ls))!==0,g=d&&(l&In)!==0,p=(l&Vn)!==0,_=g||ue(this,_i).has(i);if(!_&&i.fn!==null){d?p||(i.f^=In):l&ki?n.push(i):l&(Ms|Tu)&&p?r.push(i):ka(i)&&(js(i),l&$i&&(ue(this,Ts).add(i),p&&dn(i,Pn)));var S=i.first;if(S!==null){i=S;continue}}for(;i!==null;){var k=i.next;if(k!==null){i=k;break}i=i.parent}}},Sh=function(t){for(var n=0;n<t.length;n+=1)Zh(t[n],ue(this,Xa),ue(this,Ts))},Eh=function(){var l;if(Tl.size>1){this.previous.clear();var t=At,n=Ln,r=!0;for(const d of Tl){if(d===this){r=!1;continue}const g=[];for(const[_,S]of this.current){if(d.current.has(_))if(r&&S!==d.current.get(_))d.current.set(_,S);else continue;g.push(_)}if(g.length===0)continue;const p=[...d.current.keys()].filter(_=>!this.current.has(_));if(p.length>0){var i=Zn;Zn=[];const _=new Set,S=new Map;for(const k of g)Xh(k,p,_,S);if(Zn.length>0){At=d,d.apply();for(const k of Zn)pn(l=d,rr,bh).call(l,k,[],[]);d.deactivate()}Zn=i}}At=t,Ln=n}ue(this,_i).clear(),Tl.delete(this)};let Xi=fh;function B(e){var t=po;po=!0;try{for(var n;;){if(K1(),Zn.length===0&&(At==null||At.flush(),Zn.length===0))return Ol=null,n;Yh()}}finally{po=t}}function Yh(){var e=null;try{for(var t=0;Zn.length>0;){var n=Xi.ensure();if(t++>1e3){var r,i;J1()}n.process(Zn),Qi.clear()}}finally{Zn=[],Ol=null,Sa=null}}function J1(){try{k1()}catch(e){Ji(e,Ol)}}let zr=null;function Jh(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(ai|Vn))&&ka(r)&&(zr=new Set,js(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&wg(r),(zr==null?void 0:zr.size)>0)){Qi.clear();for(const i of zr){if(i.f&(ai|Vn))continue;const l=[i];let d=i.parent;for(;d!==null;)zr.has(d)&&(zr.delete(d),l.push(d)),d=d.parent;for(let g=l.length-1;g>=0;g--){const p=l[g];p.f&(ai|Vn)||js(p)}}zr.clear()}}zr=null}}function Xh(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const l=i.f;l&Lt?Xh(i,t,n,r):l&(Ru|$i)&&!(l&Pn)&&Qh(i,t,r)&&(dn(i,Pn),ui(i))}}function Qh(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(va.call(t,i))return!0;if(i.f&Lt&&Qh(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ui(e){var t=Ol=e,n=t.b;if(n!=null&&n.is_pending&&e.f&(ki|Ms|Tu)&&!(e.f&Ds)){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(Sa!==null&&t===Dt&&!(e.f&Ms))return;if(r&(Ls|Ur)){if(!(r&In))return;t.f^=In}}Zn.push(t)}function eg(e,t){if(!(e.f&Ur&&e.f&In)){e.f&Pn?t.d.push(e):e.f&Er&&t.m.push(e),dn(e,In);for(var n=e.first;n!==null;)eg(n,t),n=n.next}}function X1(e){let t=0,n=zs(0),r;return()=>{$u()&&(C(n),_o(()=>(t===0&&(r=Z(()=>e(()=>vo(n)))),t+=1,()=>{ci(()=>{t-=1,t===0&&(r==null||r(),r=void 0,vo(n))})})))}}var Q1=xs|pa;function ew(e,t,n,r){new tw(e,t,n,r)}class tw{constructor(t,n,r,i){Tt(this,hn);Je(this,"parent");Je(this,"is_pending",!1);Je(this,"transform_error");Tt(this,vr);Tt(this,ml,St?wt:null);Tt(this,wi);Tt(this,ua);Tt(this,ir);Tt(this,bi,null);Tt(this,yr,null);Tt(this,Zr,null);Tt(this,Hi,null);Tt(this,da,0);Tt(this,Os,0);Tt(this,eo,!1);Tt(this,to,new Set);Tt(this,no,new Set);Tt(this,ji,null);Tt(this,_u,X1(()=>(bt(this,ji,zs(ue(this,da))),()=>{bt(this,ji,null)})));var l;bt(this,vr,t),bt(this,wi,n),bt(this,ua,d=>{var g=Dt;g.b=this,g.f|=Ou,r(d)}),this.parent=Dt.b,this.transform_error=i??((l=this.parent)==null?void 0:l.transform_error)??(d=>d),bt(this,ir,wo(()=>{if(St){const d=ue(this,ml);Ii();const g=d.data===Fu;if(d.data.startsWith(Uh)){const _=JSON.parse(d.data.slice(Uh.length));pn(this,hn,d1).call(this,_)}else g?pn(this,hn,f1).call(this):pn(this,hn,u1).call(this)}else pn(this,hn,kh).call(this)},Q1)),St&&bt(this,vr,wt)}defer_effect(t){Zh(t,ue(this,to),ue(this,no))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!ue(this,wi).pending}update_pending_count(t){pn(this,hn,Ch).call(this,t),bt(this,da,ue(this,da)+t),!(!ue(this,ji)||ue(this,eo))&&(bt(this,eo,!0),ci(()=>{bt(this,eo,!1),ue(this,ji)&&Ea(ue(this,ji),ue(this,da))}))}get_effect_pending(){return ue(this,_u).call(this),C(ue(this,ji))}error(t){var n=ue(this,wi).onerror;let r=ue(this,wi).failed;if(!n&&!r)throw t;ue(this,bi)&&(Jn(ue(this,bi)),bt(this,bi,null)),ue(this,yr)&&(Jn(ue(this,yr)),bt(this,yr,null)),ue(this,Zr)&&(Jn(ue(this,Zr)),bt(this,Zr,null)),St&&(Mn(ue(this,ml)),Gt(),Mn(go()));var i=!1,l=!1;const d=()=>{if(i){$1();return}i=!0,l&&R1(),ue(this,Zr)!==null&&qs(ue(this,Zr),()=>{bt(this,Zr,null)}),pn(this,hn,Au).call(this,()=>{Xi.ensure(),pn(this,hn,kh).call(this)})},g=p=>{try{l=!0,n==null||n(p,d),l=!1}catch(_){Ji(_,ue(this,ir)&&ue(this,ir).parent)}r&&bt(this,Zr,pn(this,hn,Au).call(this,()=>{Xi.ensure();try{return Tr(()=>{var _=Dt;_.b=this,_.f|=Ou,r(ue(this,vr),()=>p,()=>d)})}catch(_){return Ji(_,ue(this,ir).parent),null}}))};ci(()=>{var p;try{p=this.transform_error(t)}catch(_){Ji(_,ue(this,ir)&&ue(this,ir).parent);return}p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(g,_=>Ji(_,ue(this,ir)&&ue(this,ir).parent)):g(p)})}}vr=new WeakMap,ml=new WeakMap,wi=new WeakMap,ua=new WeakMap,ir=new WeakMap,bi=new WeakMap,yr=new WeakMap,Zr=new WeakMap,Hi=new WeakMap,da=new WeakMap,Os=new WeakMap,eo=new WeakMap,to=new WeakMap,no=new WeakMap,ji=new WeakMap,_u=new WeakMap,hn=new WeakSet,u1=function(){try{bt(this,bi,Tr(()=>ue(this,ua).call(this,ue(this,vr))))}catch(t){this.error(t)}},d1=function(t){const n=ue(this,wi).failed;n&&bt(this,Zr,Tr(()=>{n(ue(this,vr),()=>t,()=>()=>{})}))},f1=function(){const t=ue(this,wi).pending;t&&(this.is_pending=!0,bt(this,yr,Tr(()=>t(ue(this,vr)))),ci(()=>{var n=bt(this,Hi,document.createDocumentFragment()),r=$n();n.append(r),bt(this,bi,pn(this,hn,Au).call(this,()=>(Xi.ensure(),Tr(()=>ue(this,ua).call(this,r))))),ue(this,Os)===0&&(ue(this,vr).before(n),bt(this,Hi,null),qs(ue(this,yr),()=>{bt(this,yr,null)}),pn(this,hn,Iu).call(this))}))},kh=function(){try{if(this.is_pending=this.has_pending_snippet(),bt(this,Os,0),bt(this,da,0),bt(this,bi,Tr(()=>{ue(this,ua).call(this,ue(this,vr))})),ue(this,Os)>0){var t=bt(this,Hi,document.createDocumentFragment());Xu(ue(this,bi),t);const n=ue(this,wi).pending;bt(this,yr,Tr(()=>n(ue(this,vr))))}else pn(this,hn,Iu).call(this)}catch(n){this.error(n)}},Iu=function(){this.is_pending=!1;for(const t of ue(this,to))dn(t,Pn),ui(t);for(const t of ue(this,no))dn(t,Er),ui(t);ue(this,to).clear(),ue(this,no).clear()},Au=function(t){var n=Dt,r=Rt,i=Kt;fi(ue(this,ir)),Cr(ue(this,ir)),_a(ue(this,ir).ctx);try{return t()}catch(l){return Kh(l),null}finally{fi(n),Cr(r),_a(i)}},Ch=function(t){var n;if(!this.has_pending_snippet()){this.parent&&pn(n=this.parent,hn,Ch).call(n,t);return}bt(this,Os,ue(this,Os)+t),ue(this,Os)===0&&(pn(this,hn,Iu).call(this),ue(this,yr)&&qs(ue(this,yr),()=>{bt(this,yr,null)}),ue(this,Hi)&&(ue(this,vr).before(ue(this,Hi)),bt(this,Hi,null)))};function nw(e,t,n,r){const i=wa()?mo:me;var l=e.filter(k=>!k.settled);if(n.length===0&&l.length===0){r(t.map(i));return}var d=Dt,g=rw(),p=l.length===1?l[0].promise:l.length>1?Promise.all(l.map(k=>k.promise)):null;function _(k){g();try{r(k)}catch(h){d.f&ai||Ji(h,d)}qu()}if(n.length===0){p.then(()=>_(t.map(i)));return}function S(){g(),Promise.all(n.map(k=>sw(k))).then(k=>_([...t.map(i),...k])).catch(k=>Ji(k,d))}p?p.then(S):S()}function rw(){var e=Dt,t=Rt,n=Kt,r=At;return function(l=!0){fi(e),Cr(t),_a(n),l&&(r==null||r.activate())}}function qu(e=!0){fi(null),Cr(null),_a(null),e&&(At==null||At.deactivate())}function iw(){var e=Dt.b,t=At,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function mo(e){var t=Lt|Pn,n=Rt!==null&&Rt.f&Lt?Rt:null;return Dt!==null&&(Dt.f|=pa),{ctx:Kt,deps:null,effects:null,equals:Lh,f:t,fn:e,reactions:null,rv:0,v:Rn,wv:0,parent:n??Dt,ac:null}}function sw(e,t,n){Dt===null&&_1();var i=void 0,l=zs(Rn),d=!Rt,g=new Map;return yw(()=>{var h;var p=Mh();i=p.promise;try{Promise.resolve(e()).then(p.resolve,p.reject).finally(qu)}catch(y){p.reject(y),qu()}var _=At;if(d){var S=iw();(h=g.get(_))==null||h.reject(Us),g.delete(_),g.set(_,p)}const k=(y,b=void 0)=>{if(_.activate(),b)b!==Us&&(l.f|=Zi,Ea(l,b));else{l.f&Zi&&(l.f^=Zi),Ea(l,y);for(const[c,u]of g){if(g.delete(c),c===_)break;u.reject(Us)}}S&&S()};p.promise.then(k,y=>k(null,y||"unknown"))}),Ml(()=>{for(const p of g.values())p.reject(Us)}),new Promise(p=>{function _(S){function k(){S===i?p(l):_(i)}S.then(k,k)}_(i)})}function di(e){const t=mo(e);return lg(t),t}function me(e){const t=mo(e);return t.equals=xh,t}function aw(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Jn(t[n])}}function ow(e){for(var t=e.parent;t!==null;){if(!(t.f&Lt))return t.f&ai?null:t;t=t.parent}return null}function Wu(e){var t,n=Dt;fi(ow(e));try{e.f&=~Ns,aw(e),t=hg(e)}finally{fi(n)}return t}function tg(e){var t=Wu(e);if(!e.equals(t)&&(e.wv=dg(),(!(At!=null&&At.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){dn(e,In);return}ts||(Ln!==null?($u()||At!=null&&At.is_fork)&&Ln.set(e,t):Hu(e))}function lw(e){var t,n;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((t=r.teardown)==null||t.call(r),(n=r.ac)==null||n.abort(Us),r.teardown=li,r.ac=null,yo(r,0),Yu(r))}function ng(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&js(t)}let Gu=new Set;const Qi=new Map;let rg=!1;function zs(e,t){var n={f:0,v:e,reactions:null,equals:Lh,rv:0,wv:0};return n}function es(e,t){const n=zs(e);return lg(n),n}function re(e,t=!1,n=!0){var i;const r=zs(e);return t||(r.equals=xh),ya&&n&&Kt!==null&&Kt.l!==null&&((i=Kt.l).s??(i.s=[])).push(r),r}function Y(e,t,n=!1){Rt!==null&&(!Vr||Rt.f&Ih)&&wa()&&Rt.f&(Lt|$i|Ru|Ih)&&(Ir===null||!va.call(Ir,e))&&P1();let r=n?ba(t):t;return Ea(e,r)}function Ea(e,t){if(!e.equals(t)){var n=e.v;ts?Qi.set(e,t):Qi.set(e,n),e.v=t;var r=Xi.ensure();if(r.capture(e,n),e.f&Lt){const i=e;e.f&Pn&&Wu(i),Hu(i)}e.wv=dg(),ig(e,Pn),wa()&&Dt!==null&&Dt.f&In&&!(Dt.f&(Ur|Ls))&&(Ar===null?dw([e]):Ar.push(e)),!r.is_fork&&Gu.size>0&&!rg&&cw()}return t}function cw(){rg=!1;for(const e of Gu)e.f&In&&dn(e,Er),ka(e)&&js(e);Gu.clear()}function vo(e){Y(e,e.v+1)}function ig(e,t){var n=e.reactions;if(n!==null)for(var r=wa(),i=n.length,l=0;l<i;l++){var d=n[l],g=d.f;if(!(!r&&d===Dt)){var p=(g&Pn)===0;if(p&&dn(d,t),g&Lt){var _=d;Ln==null||Ln.delete(_),g&Ns||(g&Sr&&(d.f|=Ns),ig(_,Er))}else p&&(g&$i&&zr!==null&&zr.add(d),ui(d))}}}let sg=!1;function ag(){sg||(sg=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function Pl(e){var t=Rt,n=Dt;Cr(null),fi(null);try{return e()}finally{Cr(t),fi(n)}}function uw(e,t,n,r=n){e.addEventListener(t,()=>Pl(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),ag()}let Rl=!1,ts=!1;function og(e){ts=e}let Rt=null,Vr=!1;function Cr(e){Rt=e}let Dt=null;function fi(e){Dt=e}let Ir=null;function lg(e){Rt!==null&&(Ir===null?Ir=[e]:Ir.push(e))}let Yn=null,ar=0,Ar=null;function dw(e){Ar=e}let cg=1,Vs=0,Hs=Vs;function ug(e){Hs=e}function dg(){return++cg}function ka(e){var t=e.f;if(t&Pn)return!0;if(t&Lt&&(e.f&=~Ns),t&Er){for(var n=e.deps,r=n.length,i=0;i<r;i++){var l=n[i];if(ka(l)&&tg(l),l.wv>e.wv)return!0}t&Sr&&Ln===null&&dn(e,In)}return!1}function fg(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Ir!==null&&va.call(Ir,e)))for(var i=0;i<r.length;i++){var l=r[i];l.f&Lt?fg(l,t,!1):t===l&&(n?dn(l,Pn):l.f&In&&dn(l,Er),ui(l))}}function hg(e){var c;var t=Yn,n=ar,r=Ar,i=Rt,l=Ir,d=Kt,g=Vr,p=Hs,_=e.f;Yn=null,ar=0,Ar=null,Rt=_&(Ur|Ls)?null:e,Ir=null,_a(e.ctx),Vr=!1,Hs=++Vs,e.ac!==null&&(Pl(()=>{e.ac.abort(Us)}),e.ac=null);try{e.f|=Pu;var S=e.fn,k=S();e.f|=Ds;var h=e.deps,y=At==null?void 0:At.is_fork;if(Yn!==null){var b;if(y||yo(e,ar),h!==null&&ar>0)for(h.length=ar+Yn.length,b=0;b<Yn.length;b++)h[ar+b]=Yn[b];else e.deps=h=Yn;if($u()&&e.f&Sr)for(b=ar;b<h.length;b++)((c=h[b]).reactions??(c.reactions=[])).push(e)}else!y&&h!==null&&ar<h.length&&(yo(e,ar),h.length=ar);if(wa()&&Ar!==null&&!Vr&&h!==null&&!(e.f&(Lt|Er|Pn)))for(b=0;b<Ar.length;b++)fg(Ar[b],e);if(i!==null&&i!==e){if(Vs++,i.deps!==null)for(let u=0;u<n;u+=1)i.deps[u].rv=Vs;if(t!==null)for(const u of t)u.rv=Vs;Ar!==null&&(r===null?r=Ar:r.push(...Ar))}return e.f&Zi&&(e.f^=Zi),k}catch(u){return Kh(u)}finally{e.f^=Pu,Yn=t,ar=n,Ar=r,Rt=i,Ir=l,_a(d),Vr=g,Hs=p}}function fw(e,t){let n=t.reactions;if(n!==null){var r=p1.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&Lt&&(Yn===null||!va.call(Yn,t))){var l=t;l.f&Sr&&(l.f^=Sr,l.f&=~Ns),Hu(l),lw(l),yo(l,0)}}function yo(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)fw(e,n[r])}function js(e){var t=e.f;if(!(t&ai)){dn(e,In);var n=Dt,r=Rl;Dt=e,Rl=!0;try{t&($i|Tu)?_w(e):Yu(e),yg(e);var i=hg(e);e.teardown=typeof i=="function"?i:null,e.wv=cg;var l;Lu&&M1&&e.f&Pn&&e.deps}finally{Rl=r,Dt=n}}}async function hw(){await Promise.resolve(),B()}function C(e){var t=e.f,n=(t&Lt)!==0;if(Rt!==null&&!Vr){var r=Dt!==null&&(Dt.f&ai)!==0;if(!r&&(Ir===null||!va.call(Ir,e))){var i=Rt.deps;if(Rt.f&Pu)e.rv<Vs&&(e.rv=Vs,Yn===null&&i!==null&&i[ar]===e?ar++:Yn===null?Yn=[e]:Yn.push(e));else{(Rt.deps??(Rt.deps=[])).push(e);var l=e.reactions;l===null?e.reactions=[Rt]:va.call(l,Rt)||l.push(Rt)}}}if(ts&&Qi.has(e))return Qi.get(e);if(n){var d=e;if(ts){var g=d.v;return(!(d.f&In)&&d.reactions!==null||pg(d))&&(g=Wu(d)),Qi.set(d,g),g}var p=(d.f&Sr)===0&&!Vr&&Rt!==null&&(Rl||(Rt.f&Sr)!==0),_=(d.f&Ds)===0;ka(d)&&(p&&(d.f|=Sr),tg(d)),p&&!_&&(ng(d),gg(d))}if(Ln!=null&&Ln.has(e))return Ln.get(e);if(e.f&Zi)throw e.v;return e.v}function gg(e){if(e.f|=Sr,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&Lt&&!(t.f&Sr)&&(ng(t),gg(t))}function pg(e){if(e.v===Rn)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Qi.has(t)||t.f&Lt&&pg(t))return!0;return!1}function Z(e){var t=Vr;try{return Vr=!0,e()}finally{Vr=t}}function W(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Yi in e)Ku(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Yi in n&&Ku(n)}}}function Ku(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ku(e[r],t)}catch{}const n=xu(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Ph(n);for(let i in r){const l=r[i].get;if(l)try{l.call(e)}catch{}}}}}function mg(e){Dt===null&&(Rt===null&&E1(),S1()),ts&&b1()}function gw(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function hi(e,t){var n=Dt;n!==null&&n.f&Vn&&(e|=Vn);var r={ctx:Kt,deps:null,nodes:null,f:e|Pn|Sr,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&ki)Sa!==null?Sa.push(r):ui(r);else if(t!==null){try{js(r)}catch(d){throw Jn(r),d}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&pa)&&(i=i.first,e&$i&&e&xs&&i!==null&&(i.f|=xs))}if(i!==null&&(i.parent=n,n!==null&&gw(i,n),Rt!==null&&Rt.f&Lt&&!(e&Ls))){var l=Rt;(l.effects??(l.effects=[])).push(i)}return r}function $u(){return Rt!==null&&!Vr}function Ml(e){const t=hi(Ms,null);return dn(t,In),t.teardown=e,t}function Zu(e){mg();var t=Dt.f,n=!Rt&&(t&Ur)!==0&&(t&Ds)===0;if(n){var r=Kt;(r.e??(r.e=[])).push(e)}else return vg(e)}function vg(e){return hi(ki|Ah,e)}function pw(e){return mg(),hi(Ms|Ah,e)}function mw(e){Xi.ensure();const t=hi(Ls|pa,e);return(n={})=>new Promise(r=>{n.outro?qs(t,()=>{Jn(t),r(void 0)}):(Jn(t),r(void 0))})}function vw(e){return hi(ki,e)}function yt(e,t){var n=Kt,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=_o(()=>{e(),!r.ran&&(r.ran=!0,Z(t))})}function Ot(){var e=Kt;_o(()=>{for(var t of e.l.$){t.deps();var n=t.effect;n.f&In&&n.deps!==null&&dn(n,Er),ka(n)&&js(n),t.ran=!1}})}function yw(e){return hi(Ru|pa,e)}function _o(e,t=0){return hi(Ms|t,e)}function Te(e,t=[],n=[],r=[]){nw(r,t,n,i=>{hi(Ms,()=>e(...i.map(C)))})}function wo(e,t=0){var n=hi($i|t,e);return n}function Tr(e){return hi(Ur|pa,e)}function yg(e){var t=e.teardown;if(t!==null){const n=ts,r=Rt;og(!0),Cr(null);try{t.call(null)}finally{og(n),Cr(r)}}}function Yu(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Pl(()=>{i.abort(Us)});var r=n.next;n.f&Ls?n.parent=null:Jn(n,t),n=r}}function _w(e){for(var t=e.first;t!==null;){var n=t.next;t.f&Ur||Jn(t),t=n}}function Jn(e,t=!0){var n=!1;(t||e.f&h1)&&e.nodes!==null&&e.nodes.end!==null&&(_g(e.nodes.start,e.nodes.end),n=!0),Yu(e,t&&!n),yo(e,0),dn(e,ai);var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)l.stop();yg(e);var i=e.parent;i!==null&&i.first!==null&&wg(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function _g(e,t){for(;e!==null;){var n=e===t?null:Br(e);e.remove(),e=n}}function wg(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function qs(e,t,n=!0){var r=[];bg(e,r,!0);var i=()=>{n&&Jn(e),t&&t()},l=r.length;if(l>0){var d=()=>--l||i();for(var g of r)g.out(d)}else i()}function bg(e,t,n){if(!(e.f&Vn)){e.f^=Vn;var r=e.nodes&&e.nodes.t;if(r!==null)for(const g of r)(g.is_global||n)&&t.push(g);for(var i=e.first;i!==null;){var l=i.next,d=(i.f&xs)!==0||(i.f&Ur)!==0&&(e.f&$i)!==0;bg(i,t,d?n:!1),i=l}}}function Ju(e){Sg(e,!0)}function Sg(e,t){if(e.f&Vn){e.f^=Vn;for(var n=e.first;n!==null;){var r=n.next,i=(n.f&xs)!==0||(n.f&Ur)!==0;Sg(n,i?t:!1),n=r}var l=e.nodes&&e.nodes.t;if(l!==null)for(const d of l)(d.is_global||t)&&d.in()}}function Xu(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Br(n);t.append(n),n=i}}const Ll=Symbol("events"),ww=new Set,Eg=new Set;function bw(e,t,n,r={}){function i(l){if(r.capture||Qu.call(t,l),!l.cancelBubble)return Pl(()=>n==null?void 0:n.call(this,l))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ci(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function mn(e,t,n,r,i){var l={capture:r,passive:i},d=bw(e,t,n,l);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ml(()=>{t.removeEventListener(e,d,l)})}let kg=null;function Qu(e){var u,f;var t=this,n=t.ownerDocument,r=e.type,i=((u=e.composedPath)==null?void 0:u.call(e))||[],l=i[0]||e.target;kg=e;var d=0,g=kg===e&&e[Ll];if(g){var p=i.indexOf(g);if(p!==-1&&(t===document||t===window)){e[Ll]=t;return}var _=i.indexOf(t);if(_===-1)return;p<=_&&(d=p)}if(l=i[d]||e.target,l!==t){Du(e,"currentTarget",{configurable:!0,get(){return l||n}});var S=Rt,k=Dt;Cr(null),fi(null);try{for(var h,y=[];l!==null;){var b=l.assignedSlot||l.parentNode||l.host||null;try{var c=(f=l[Ll])==null?void 0:f[r];c!=null&&(!l.disabled||e.target===l)&&c.call(l,e)}catch(a){h?y.push(a):h=a}if(e.cancelBubble||b===t||b===null)break;l=b}if(h){for(let a of y)queueMicrotask(()=>{throw a});throw h}}finally{e[Ll]=t,delete e.currentTarget,Cr(S),fi(k)}}}const ed=((K_=globalThis==null?void 0:globalThis.window)==null?void 0:K_.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Sw(e){return(ed==null?void 0:ed.createHTML(e))??e}function Cg(e){var t=Gh("template");return t.innerHTML=Sw(e.replaceAll("<!>","<!---->")),t.content}function Or(e,t){var n=Dt;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ke(e,t){var n=(t&j1)!==0,r=(t&q1)!==0,i,l=!e.startsWith("<!>");return()=>{if(St)return Or(wt,null),wt;i===void 0&&(i=Cg(l?e:"<!>"+e),n||(i=kr(i)));var d=r||Vh?document.importNode(i,!0):i.cloneNode(!0);if(n){var g=kr(d),p=d.lastChild;Or(g,p)}else Or(d,d);return d}}function Ew(e,t,n="svg"){var r=!e.startsWith("<!>"),i=`<${n}>${r?e:"<!>"+e}</${n}>`,l;return()=>{if(St)return Or(wt,null),wt;if(!l){var d=Cg(i),g=kr(d);l=kr(g)}var p=l.cloneNode(!0);return Or(p,p),p}}function _n(e,t){return Ew(e,t,"svg")}function Vt(e=""){if(!St){var t=$n(e+"");return Or(t,t),t}var n=wt;return n.nodeType!==uo?(n.before(n=$n()),Mn(n)):Al(n),Or(n,n),n}function mt(){if(St)return Or(wt,null),wt;var e=document.createDocumentFragment(),t=document.createComment(""),n=$n();return e.append(t,n),Or(t,n),e}function Q(e,t){if(St){var n=Dt;(!(n.f&Ds)||n.nodes.end===null)&&(n.nodes.end=wt),Ii();return}e!==null&&e.before(t)}const kw=["touchstart","touchmove"];function Cw(e){return kw.includes(e)}function vt(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=`${n}`)}function Ig(e,t){return Ag(e,t)}function Iw(e,t){Vu(),t.intro=t.intro??!1;const n=t.target,r=St,i=wt;try{for(var l=kr(n);l&&(l.nodeType!==ma||l.data!==Uu);)l=Br(l);if(!l)throw Fs;Fr(!0),Mn(l);const d=Ag(e,{...t,anchor:l});return Fr(!1),d}catch(d){if(d instanceof Error&&d.message.split(`
2
+ `).some(g=>g.startsWith("https://svelte.dev/e/")))throw d;return d!==Fs&&console.warn("Failed to hydrate: ",d),t.recover===!1&&C1(),Vu(),qh(n),Fr(!1),Ig(e,t)}finally{Fr(r),Mn(i)}}const Dl=new Map;function Ag(e,{target:t,anchor:n,props:r={},events:i,context:l,intro:d=!0,transformError:g}){Vu();var p=void 0,_=mw(()=>{var S=n??t.appendChild($n());ew(S,{pending:()=>{}},y=>{Ve({});var b=Kt;if(l&&(b.c=l),i&&(r.$$events=i),St&&Or(y,null),p=e(y,r)||{},St&&(Dt.nodes.end=wt,wt===null||wt.nodeType!==ma||wt.data!==Bu))throw ho(),Fs;He()},g);var k=new Set,h=y=>{for(var b=0;b<y.length;b++){var c=y[b];if(!k.has(c)){k.add(c);var u=Cw(c);for(const o of[t,document]){var f=Dl.get(o);f===void 0&&(f=new Map,Dl.set(o,f));var a=f.get(c);a===void 0?(o.addEventListener(c,Qu,{passive:u}),f.set(c,1)):f.set(c,a+1)}}}};return h(Cl(ww)),Eg.add(h),()=>{var u;for(var y of k)for(const f of[t,document]){var b=Dl.get(f),c=b.get(y);--c==0?(f.removeEventListener(y,Qu),b.delete(y),b.size===0&&Dl.delete(f)):b.set(y,c)}Eg.delete(h),S!==n&&((u=S.parentNode)==null||u.removeChild(S))}});return td.set(p,_),p}let td=new WeakMap;function Aw(e,t){const n=td.get(e);return n?(td.delete(e),n(t)):Promise.resolve()}function xl(e){return function(...t){var n=t[0];return n.preventDefault(),e==null?void 0:e.apply(this,t)}}function We(e){return new Tw(e)}class Tw{constructor(t){Tt(this,qi);Tt(this,xr);var l;var n=new Map,r=(d,g)=>{var p=re(g,!1,!1);return n.set(d,p),p};const i=new Proxy({...t.props||{},$$events:{}},{get(d,g){return C(n.get(g)??r(g,Reflect.get(d,g)))},has(d,g){return g===Mu?!0:(C(n.get(g)??r(g,Reflect.get(d,g))),Reflect.has(d,g))},set(d,g,p){return Y(n.get(g)??r(g,p),p),Reflect.set(d,g,p)}});bt(this,xr,(t.hydrate?Iw:Ig)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((l=t==null?void 0:t.props)!=null&&l.$$host)||t.sync===!1)&&B(),bt(this,qi,i.$$events);for(const d of Object.keys(ue(this,xr)))d==="$set"||d==="$destroy"||d==="$on"||Du(this,d,{get(){return ue(this,xr)[d]},set(g){ue(this,xr)[d]=g},enumerable:!0});ue(this,xr).$set=d=>{Object.assign(i,d)},ue(this,xr).$destroy=()=>{Aw(ue(this,xr))}}$set(t){ue(this,xr).$set(t)}$on(t,n){ue(this,qi)[t]=ue(this,qi)[t]||[];const r=(...i)=>n.call(this,...i);return ue(this,qi)[t].push(r),()=>{ue(this,qi)[t]=ue(this,qi)[t].filter(i=>i!==r)}}$destroy(){ue(this,xr).$destroy()}}qi=new WeakMap,xr=new WeakMap;const Ow="5";typeof window<"u"&&(($_=window.__svelte??(window.__svelte={})).v??($_.v=new Set)).add(Ow),L1();class nd{constructor(t,n=!0){Je(this,"anchor");Tt(this,Yr,new Map);Tt(this,Si,new Map);Tt(this,_r,new Map);Tt(this,fa,new Set);Tt(this,vl,!0);Tt(this,yl,t=>{if(ue(this,Yr).has(t)){var n=ue(this,Yr).get(t),r=ue(this,Si).get(n);if(r)Ju(r),ue(this,fa).delete(n);else{var i=ue(this,_r).get(n);i&&!(i.effect.f&Vn)&&(ue(this,Si).set(n,i.effect),ue(this,_r).delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[l,d]of ue(this,Yr)){if(ue(this,Yr).delete(l),l===t)break;const g=ue(this,_r).get(d);g&&(Jn(g.effect),ue(this,_r).delete(d))}for(const[l,d]of ue(this,Si)){if(l===n||ue(this,fa).has(l)||d.f&Vn)continue;const g=()=>{if(Array.from(ue(this,Yr).values()).includes(l)){var _=document.createDocumentFragment();Xu(d,_),_.append($n()),ue(this,_r).set(l,{effect:d,fragment:_})}else Jn(d);ue(this,fa).delete(l),ue(this,Si).delete(l)};ue(this,vl)||!r?(ue(this,fa).add(l),qs(d,g,!1)):g()}}});Tt(this,wu,t=>{ue(this,Yr).delete(t);const n=Array.from(ue(this,Yr).values());for(const[r,i]of ue(this,_r))n.includes(r)||(Jn(i.effect),ue(this,_r).delete(r))});this.anchor=t,bt(this,vl,n)}ensure(t,n){var r=At,i=Wh();if(n&&!ue(this,Si).has(t)&&!ue(this,_r).has(t))if(i){var l=document.createDocumentFragment(),d=$n();l.append(d),ue(this,_r).set(t,{effect:Tr(()=>n(d)),fragment:l})}else ue(this,Si).set(t,Tr(()=>n(this.anchor)));if(ue(this,Yr).set(r,t),i){for(const[g,p]of ue(this,Si))g===t?r.unskip_effect(p):r.skip_effect(p);for(const[g,p]of ue(this,_r))g===t?r.unskip_effect(p.effect):r.skip_effect(p.effect);r.oncommit(ue(this,yl)),r.ondiscard(ue(this,wu))}else St&&(this.anchor=wt),ue(this,yl).call(this,r)}}Yr=new WeakMap,Si=new WeakMap,_r=new WeakMap,fa=new WeakMap,vl=new WeakMap,yl=new WeakMap,wu=new WeakMap;function Ze(e,t,n=!1){var r;St&&(r=wt,Ii());var i=new nd(e),l=n?xs:0;function d(g,p){if(St){var _=zu(r);if(g!==parseInt(_.substring(1))){var S=go();Mn(S),i.anchor=S,Fr(!1),i.ensure(g,p),Fr(!0);return}}i.ensure(g,p)}wo(()=>{var g=!1;t((p,_=0)=>{g=!0,d(_,p)}),g||d(-1,null)},l)}const Pw=Symbol("NaN");function Ws(e,t,n){St&&Ii();var r=new nd(e),i=!wa();wo(()=>{var l=t();l!==l&&(l=Pw),i&&l!==null&&typeof l=="object"&&(l={}),r.ensure(l,n)})}function Xn(e,t){return t}function Rw(e,t,n){for(var r=[],i=t.length,l,d=t.length,g=0;g<i;g++){let k=t[g];qs(k,()=>{if(l){if(l.pending.delete(k),l.done.add(k),l.pending.size===0){var h=e.outrogroups;rd(e,Cl(l.done)),h.delete(l),h.size===0&&(e.outrogroups=null)}}else d-=1},!1)}if(d===0){var p=r.length===0&&n!==null;if(p){var _=n,S=_.parentNode;qh(S),S.append(_),e.items.clear()}rd(e,t,!p)}else l={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(l)}function rd(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const d of e.pending.values())for(const g of d)r.add(e.items.get(g).e)}for(var i=0;i<t.length;i++){var l=t[i];if(r!=null&&r.has(l)){l.f|=oi;const d=document.createDocumentFragment();Xu(l,d)}else Jn(t[i],n)}}var Tg;function Qn(e,t,n,r,i,l=null){var d=e,g=new Map,p=(t&Nh)!==0;if(p){var _=e;d=St?Mn(kr(_)):_.appendChild($n())}St&&Ii();var S=null,k=me(()=>{var o=n();return Oh(o)?o:o==null?[]:Cl(o)}),h,y=new Map,b=!0;function c(o){a.effect.f&ai||(a.pending.delete(o),a.fallback=S,Mw(a,h,d,t,r),S!==null&&(h.length===0?S.f&oi?(S.f^=oi,So(S,null,d)):Ju(S):qs(S,()=>{S=null})))}function u(o){a.pending.delete(o)}var f=wo(()=>{h=C(k);var o=h.length;let s=!1;if(St){var m=zu(d)===Fu;m!==(o===0)&&(d=go(),Mn(d),Fr(!1),s=!0)}for(var v=new Set,w=At,A=Wh(),E=0;E<o;E+=1){St&&wt.nodeType===ma&&wt.data===Bu&&(d=wt,s=!0,Fr(!1));var O=h[E],T=r(O,E),L=b?null:g.get(T);L?(L.v&&Ea(L.v,O),L.i&&Ea(L.i,E),A&&w.unskip_effect(L.e)):(L=Lw(g,b?d:Tg??(Tg=$n()),O,T,E,i,t,n),b||(L.e.f|=oi),g.set(T,L)),v.add(T)}if(o===0&&l&&!S&&(b?S=Tr(()=>l(d)):(S=Tr(()=>l(Tg??(Tg=$n()))),S.f|=oi)),o>v.size&&w1(),St&&o>0&&Mn(go()),!b)if(y.set(w,v),A){for(const[P,N]of g)v.has(P)||w.skip_effect(N.e);w.oncommit(c),w.ondiscard(u)}else c(w);s&&Fr(!0),C(k)}),a={effect:f,items:g,pending:y,outrogroups:null,fallback:S};b=!1,St&&(d=wt)}function bo(e){for(;e!==null&&!(e.f&Ur);)e=e.next;return e}function Mw(e,t,n,r,i){var O,T,L,P,N,I,D,F,H;var l=(r&N1)!==0,d=t.length,g=e.items,p=bo(e.effect.first),_,S=null,k,h=[],y=[],b,c,u,f;if(l)for(f=0;f<d;f+=1)b=t[f],c=i(b,f),u=g.get(c).e,u.f&oi||((T=(O=u.nodes)==null?void 0:O.a)==null||T.measure(),(k??(k=new Set)).add(u));for(f=0;f<d;f+=1){if(b=t[f],c=i(b,f),u=g.get(c).e,e.outrogroups!==null)for(const R of e.outrogroups)R.pending.delete(u),R.done.delete(u);if(u.f&oi)if(u.f^=oi,u===p)So(u,null,n);else{var a=S?S.next:p;u===e.effect.last&&(e.effect.last=u.prev),u.prev&&(u.prev.next=u.next),u.next&&(u.next.prev=u.prev),ns(e,S,u),ns(e,u,a),So(u,a,n),S=u,h=[],y=[],p=bo(S.next);continue}if(u.f&Vn&&(Ju(u),l&&((P=(L=u.nodes)==null?void 0:L.a)==null||P.unfix(),(k??(k=new Set)).delete(u))),u!==p){if(_!==void 0&&_.has(u)){if(h.length<y.length){var o=y[0],s;S=o.prev;var m=h[0],v=h[h.length-1];for(s=0;s<h.length;s+=1)So(h[s],o,n);for(s=0;s<y.length;s+=1)_.delete(y[s]);ns(e,m.prev,v.next),ns(e,S,m),ns(e,v,o),p=o,S=v,f-=1,h=[],y=[]}else _.delete(u),So(u,p,n),ns(e,u.prev,u.next),ns(e,u,S===null?e.effect.first:S.next),ns(e,S,u),S=u;continue}for(h=[],y=[];p!==null&&p!==u;)(_??(_=new Set)).add(p),y.push(p),p=bo(p.next);if(p===null)continue}u.f&oi||h.push(u),S=u,p=bo(u.next)}if(e.outrogroups!==null){for(const R of e.outrogroups)R.pending.size===0&&(rd(e,Cl(R.done)),(N=e.outrogroups)==null||N.delete(R));e.outrogroups.size===0&&(e.outrogroups=null)}if(p!==null||_!==void 0){var w=[];if(_!==void 0)for(u of _)u.f&Vn||w.push(u);for(;p!==null;)!(p.f&Vn)&&p!==e.fallback&&w.push(p),p=bo(p.next);var A=w.length;if(A>0){var E=r&Nh&&d===0?n:null;if(l){for(f=0;f<A;f+=1)(D=(I=w[f].nodes)==null?void 0:I.a)==null||D.measure();for(f=0;f<A;f+=1)(H=(F=w[f].nodes)==null?void 0:F.a)==null||H.fix()}Rw(e,w,E)}}l&&ci(()=>{var R,U;if(k!==void 0)for(u of k)(U=(R=u.nodes)==null?void 0:R.a)==null||U.apply()})}function Lw(e,t,n,r,i,l,d,g){var p=d&D1?d&U1?zs(n):re(n,!1,!1):null,_=d&x1?zs(i):null;return{v:p,i:_,e:Tr(()=>(l(t,p??n,_??i,g),()=>{e.delete(r)}))}}function So(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,l=t&&!(t.f&oi)?t.nodes.start:n;r!==null;){var d=Br(r);if(l.before(r),r===i)return;r=d}}function ns(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Nl(e,t,n=!1,r=!1,i=!1){var l=e,d="";Te(()=>{var g=Dt;if(d===(d=t()??"")){St&&Ii();return}if(g.nodes!==null&&(_g(g.nodes.start,g.nodes.end),g.nodes=null),d!==""){if(St){wt.data;for(var p=Ii(),_=p;p!==null&&(p.nodeType!==ma||p.data!=="");)_=p,p=Br(p);if(p===null)throw ho(),Fs;Or(wt,_),l=Mn(p);return}var S=n?W1:r?G1:void 0,k=Gh(n?"svg":r?"math":"template",S);k.innerHTML=d;var h=n||r?k:k.content;if(Or(kr(h),h.lastChild),n||r)for(;kr(h);)l.before(kr(h));else l.before(h)}})}function Nt(e,t,n,r,i){var g;St&&Ii();var l=(g=t.$$slots)==null?void 0:g[n],d=!1;l===!0&&(l=t[n==="default"?"children":n],d=!0),l===void 0?i!==null&&i(e):l(e,d?()=>r:r)}function Og(e,t,n){var r;St&&(r=wt,Ii());var i=new nd(e);wo(()=>{var l=t()??null;if(St){var d=zu(r),g=d===Uu,p=l!==null;if(g!==p){var _=go();Mn(_),i.anchor=_,Fr(!1),i.ensure(l,l&&(S=>n(S,l))),Fr(!0);return}}i.ensure(l,l&&(S=>n(S,l)))},xs)}function Pg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Pg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Dw(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Pg(e))&&(r&&(r+=" "),r+=t);return r}function wn(e){return typeof e=="object"?Dw(e):e??""}function xw(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function Nw(e,t){return e==null?null:String(e)}function Ct(e,t,n,r,i,l){var d=e.__className;if(St||d!==n||d===void 0){var g=xw(n);(!St||g!==e.getAttribute("class"))&&(g==null?e.removeAttribute("class"):t?e.className=g:e.setAttribute("class",g)),e.__className=n}return l}function Ul(e,t,n,r){var i=e.__style;if(St||i!==t){var l=Nw(t);(!St||l!==e.getAttribute("style"))&&(l==null?e.removeAttribute("style"):e.style.cssText=l),e.__style=t}return r}const Uw=Symbol("is custom element"),Fw=Symbol("is html"),Bw=Th?"link":"LINK",zw=Th?"progress":"PROGRESS";function Hr(e){if(St){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;we(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;we(e,"checked",null),e.checked=i}}};e.__on_r=n,ci(n),ag()}}function id(e,t){var n=sd(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==zw)||(e.value=t??"")}function Fl(e,t){var n=sd(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function Vw(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function we(e,t,n,r){var i=sd(e);St&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Bw)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[g1]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Hw(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function sd(e){return e.__attributes??(e.__attributes={[Uw]:e.nodeName.includes("-"),[Fw]:e.namespaceURI===Fh})}var Rg=new Map;function Hw(e){var t=e.getAttribute("is")||e.nodeName,n=Rg.get(t);if(n)return n;Rg.set(t,n=[]);for(var r,i=e,l=Element.prototype;l!==i;){r=Ph(i);for(var d in r)r[d].set&&n.push(d);i=xu(i)}return n}function Ca(e,t,n=t){var r=new WeakSet;uw(e,"input",async i=>{var l=i?e.defaultValue:e.value;if(l=ad(e)?od(l):l,n(l),At!==null&&r.add(At),await hw(),l!==(l=t())){var d=e.selectionStart,g=e.selectionEnd,p=e.value.length;if(e.value=l??"",g!==null){var _=e.value.length;d===g&&g===p&&_>p?(e.selectionStart=_,e.selectionEnd=_):(e.selectionStart=d,e.selectionEnd=Math.min(g,_))}}}),(St&&e.defaultValue!==e.value||Z(t)==null&&e.value)&&(n(ad(e)?od(e.value):e.value),At!==null&&r.add(At)),_o(()=>{var i=t();if(e===document.activeElement){var l=ju??At;if(r.has(l))return}ad(e)&&i===od(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function ad(e){var t=e.type;return t==="number"||t==="range"}function od(e){return e===""?null:+e}function lt(e,t,n){var r=Ci(e,t);r&&r.set&&(e[t]=n,Ml(()=>{e[t]=null}))}function Mg(e,t){return e===t||(e==null?void 0:e[Yi])===t}function an(e={},t,n,r){return vw(()=>{var i,l;return _o(()=>{i=l,l=[],Z(()=>{e!==n(...l)&&(t(e,...l),i&&Mg(n(...i),e)&&t(null,...i))})}),()=>{ci(()=>{l&&Mg(n(...l),e)&&t(null,...l)})}}),e}function dt(e=!1){const t=Kt,n=t.l.u;if(!n)return;let r=()=>W(t.s);if(e){let i=0,l={};const d=mo(()=>{let g=!1;const p=t.s;for(const _ in p)p[_]!==l[_]&&(l[_]=p[_],g=!0);return g&&i++,i});r=()=>C(d)}n.b.length&&pw(()=>{Lg(t,r),Il(n.b)}),Zu(()=>{const i=Z(()=>n.m.map(y1));return()=>{for(const l of i)typeof l=="function"&&l()}}),n.a.length&&Zu(()=>{Lg(t,r),Il(n.a)})}function Lg(e,t){if(e.l.s)for(const n of e.l.s)C(n);t()}function Ge(e,t,n){var r;e.$$events||(e.$$events={}),(r=e.$$events)[t]||(r[t]=[]),e.$$events[t].push(n)}function Ke(e){for(var t in e)t in this&&(this[t]=e[t])}let Eo=!1,ld=Symbol();function or(e,t,n){const r=n[t]??(n[t]={store:null,source:re(void 0),unsubscribe:li});if(r.store!==e&&!(ld in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=li;else{var i=!0;r.unsubscribe=cd(e,l=>{i?r.source.v=l:Y(r.source,l)}),i=!1}return e&&ld in n?Yt(e):C(r.source)}function jw(e,t,n){let r=n[t];return r&&r.store!==e&&(r.unsubscribe(),r.unsubscribe=li),e}function qw(e,t){return e.set(t),t}function Pr(){const e={};function t(){Ml(()=>{for(var n in e)e[n].unsubscribe();Du(e,ld,{enumerable:!1,value:!0})})}return[e,t]}function Ww(){Eo=!0}function Gw(e){var t=Eo;try{return Eo=!1,[e(),Eo]}finally{Eo=t}}const Kw={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(fo(r)&&(r=r()),typeof r=="object"&&r!==null&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];fo(i)&&(i=i());const l=Ci(i,t);if(l&&l.set)return l.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(fo(r)&&(r=r()),typeof r=="object"&&r!==null&&t in r){const i=Ci(r,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Yi||t===Mu)return!1;for(let n of e.props)if(fo(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props)if(fo(n)&&(n=n()),!!n){for(const r in n)t.includes(r)||t.push(r);for(const r of Object.getOwnPropertySymbols(n))t.includes(r)||t.push(r)}return t}};function Zt(...e){return new Proxy({props:e},Kw)}function V(e,t,n,r){var o;var i=!ya||(n&B1)!==0,l=(n&V1)!==0,d=(n&H1)!==0,g=r,p=!0,_=()=>(p&&(p=!1,g=d?Z(r):r),g),S;if(l){var k=Yi in e||Mu in e;S=((o=Ci(e,t))==null?void 0:o.set)??(k&&t in e?s=>e[t]=s:void 0)}var h,y=!1;l?[h,y]=Gw(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=_(),S&&(i&&A1(),S(h)));var b;if(i?b=()=>{var s=e[t];return s===void 0?_():(p=!0,s)}:b=()=>{var s=e[t];return s!==void 0&&(g=void 0),s===void 0?g:s},i&&!(n&z1))return b;if(S){var c=e.$$legacy;return function(s,m){return arguments.length>0?((!i||!m||c||y)&&S(m?b():s),s):b()}}var u=!1,f=(n&F1?mo:me)(()=>(u=!1,b()));l&&C(f);var a=Dt;return function(s,m){if(arguments.length>0){const v=m?C(f):i&&l?ba(s):s;return Y(f,v),u=!0,g!==void 0&&(g=v),s}return ts&&u||a.f&ai?f.v:C(f)}}function jr(e){Kt===null&&Nu(),ya&&Kt.l!==null?Dg(Kt).m.push(e):Zu(()=>{const t=Z(e);if(typeof t=="function")return t})}function $w(e){Kt===null&&Nu(),jr(()=>()=>Z(e))}function Hn(e){Kt===null&&Nu(),Kt.l===null&&I1(),Dg(Kt).a.push(e)}function Dg(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function cd(e,t,n){if(e==null)return t(void 0),n&&n(void 0),li;const r=Z(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const Ia=[];function Zw(e,t){return{subscribe:lr(e,t).subscribe}}function lr(e,t=li){let n=null;const r=new Set;function i(g){if(Dh(e,g)&&(e=g,n)){const p=!Ia.length;for(const _ of r)_[1](),Ia.push(_,e);if(p){for(let _=0;_<Ia.length;_+=2)Ia[_][0](Ia[_+1]);Ia.length=0}}}function l(g){i(g(e))}function d(g,p=li){const _=[g,p];return r.add(_),r.size===1&&(n=t(i,l)||li),g(e),()=>{r.delete(_),r.size===0&&n&&(n(),n=null)}}return{set:i,update:l,subscribe:d}}function xg(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=t.length<2;return Zw(n,(d,g)=>{let p=!1;const _=[];let S=0,k=li;const h=()=>{if(S)return;k();const b=t(r?_[0]:_,d,g);l?d(b):k=typeof b=="function"?b:li},y=i.map((b,c)=>cd(b,u=>{_[c]=u,S&=~(1<<c),p&&h()},()=>{S|=1<<c}));return p=!0,h(),function(){Il(y),k(),p=!1}})}function Yt(e){let t;return cd(e,n=>t=n)(),t}const ko=lr({lastAction:null,error:null,modal:null,mounted:!1,open:null,reason:null,type:null});function Ng(e,t){ko.update(n=>{var r;return n.type==="inline"?(console.warn('Component type of "inline" has no `close` method'),n):(r=n.modal)!=null&&r.component?(t&&n.modal.component.closeDialog(),{...n,lastAction:"close",open:!1,reason:(e==null?void 0:e.reason)||null}):(console.warn("Modal component is not mounted. Please instantiate the Widget before use."),n)})}function Yw(e,t){ko.update(n=>({...n,lastAction:"mount",modal:{...e&&{component:e,element:t}},mounted:!0,type:e?"modal":"inline",reason:null}))}const Ug=()=>{const{update:e}=ko,{subscribe:t}=xg([ko],([n],r)=>{r({error:n.error,lastAction:n.lastAction,mounted:n.mounted,open:n.open,reason:n.reason})});return{close:n=>{Ng(n,!0)},open:()=>{e(n=>{var r;return n.type==="inline"?(console.warn('Component type of "inline" has no `open` method'),n):(r=n.modal)!=null&&r.component?(n.modal.element.showModal(),{...n,lastAction:"open",open:!0,reason:null}):(console.warn("Modal component is not mounted. Please instantiate the Widget before use."),n)})},subscribe:t}};function Bl(e){{const t="Error: missing configuration.";throw console.error(t),console.error(`Import \`configure\` and \`await\` it before using the journey, user, or protect APIs. Example:
3
3
  import { configure } from '@forgerock/login-widget';
4
4
  await configure({
5
- wellknown: 'https://<tenant>/am/oauth2/<realm>/.well-known/openid-configuration',
5
+ serverConfig: { wellknown: 'https://<tenant>/am/oauth2/<realm>/.well-known/openid-configuration' },
6
6
  oidcClient: { clientId: '<client-id>', redirectUri: '<your-app-origin>/callback', scope: 'openid profile email' },
7
- });`),new Error(t)}}function ye(e,t,n){function r(g,p){if(g._zod||Object.defineProperty(g,"_zod",{value:{def:p,constr:d,traits:new Set},enumerable:!1}),g._zod.traits.has(e))return;g._zod.traits.add(e),t(g,p);const _=d.prototype,S=Object.keys(_);for(let k=0;k<S.length;k++){const h=S[k];h in g||(g[h]=_[h].bind(g))}}const i=(n==null?void 0:n.Parent)??Object;class l extends i{}Object.defineProperty(l,"name",{value:e});function d(g){var p;const _=n!=null&&n.Parent?new l:this;r(_,g),(p=_._zod).deferred??(p.deferred=[]);for(const S of _._zod.deferred)S();return _}return Object.defineProperty(d,"init",{value:r}),Object.defineProperty(d,Symbol.hasInstance,{value:g=>{var p,_;return n!=null&&n.Parent&&g instanceof n.Parent?!0:(_=(p=g==null?void 0:g._zod)==null?void 0:p.traits)==null?void 0:_.has(e)}}),Object.defineProperty(d,"name",{value:e}),d}class Is extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Dg extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Ng={};function na(e){return Ng}function xg(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function ad(e,t){return typeof t=="bigint"?t.toString():t}function sd(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function od(e){return e==null}function ld(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function qw(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const p=r.match(/\d?e-(\d?)/);p!=null&&p[1]&&(i=Number.parseInt(p[1]))}const l=n>i?n:i,d=Number.parseInt(e.toFixed(l).replace(".","")),g=Number.parseInt(t.toFixed(l).replace(".",""));return d%g/10**l}const Ug=Symbol("evaluating");function qt(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Ug)return r===void 0&&(r=Ug,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function qa(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ra(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Fg(e){return JSON.stringify(e)}function Gw(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Bg="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ul(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Ww=sd(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function As(e){if(Ul(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ul(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function zg(e){return As(e)?{...e}:Array.isArray(e)?[...e]:e}const Kw=new Set(["string","number","symbol"]);function Ts(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ia(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function st(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function $w(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Zw={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Yw(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const l=ra(e._zod.def,{get shape(){const d={};for(const g in t){if(!(g in n.shape))throw new Error(`Unrecognized key: "${g}"`);t[g]&&(d[g]=n.shape[g])}return qa(this,"shape",d),d},checks:[]});return ia(e,l)}function Jw(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const l=ra(e._zod.def,{get shape(){const d={...e._zod.def.shape};for(const g in t){if(!(g in n.shape))throw new Error(`Unrecognized key: "${g}"`);t[g]&&delete d[g]}return qa(this,"shape",d),d},checks:[]});return ia(e,l)}function Xw(e,t){if(!As(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const l=e._zod.def.shape;for(const d in t)if(Object.getOwnPropertyDescriptor(l,d)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=ra(e._zod.def,{get shape(){const l={...e._zod.def.shape,...t};return qa(this,"shape",l),l}});return ia(e,i)}function Qw(e,t){if(!As(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=ra(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return qa(this,"shape",r),r}});return ia(e,n)}function eb(e,t){const n=ra(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return qa(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return ia(e,n)}function tb(e,t,n){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const d=ra(t._zod.def,{get shape(){const g=t._zod.def.shape,p={...g};if(n)for(const _ in n){if(!(_ in g))throw new Error(`Unrecognized key: "${_}"`);n[_]&&(p[_]=e?new e({type:"optional",innerType:g[_]}):g[_])}else for(const _ in g)p[_]=e?new e({type:"optional",innerType:g[_]}):g[_];return qa(this,"shape",p),p},checks:[]});return ia(t,d)}function nb(e,t,n){const r=ra(t._zod.def,{get shape(){const i=t._zod.def.shape,l={...i};if(n)for(const d in n){if(!(d in l))throw new Error(`Unrecognized key: "${d}"`);n[d]&&(l[d]=new e({type:"nonoptional",innerType:i[d]}))}else for(const d in i)l[d]=new e({type:"nonoptional",innerType:i[d]});return qa(this,"shape",l),l}});return ia(t,r)}function Os(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Ps(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Fl(e){return typeof e=="string"?e:e==null?void 0:e.message}function aa(e,t,n){var i,l,d,g,p,_;const r={...e,path:e.path??[]};if(!e.message){const S=Fl((d=(l=(i=e.inst)==null?void 0:i._zod.def)==null?void 0:l.error)==null?void 0:d.call(l,e))??Fl((g=t==null?void 0:t.error)==null?void 0:g.call(t,e))??Fl((p=n.customError)==null?void 0:p.call(n,e))??Fl((_=n.localeError)==null?void 0:_.call(n,e))??"Invalid input";r.message=S}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function cd(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ko(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Vg=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ad,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Hg=ye("$ZodError",Vg),jg=ye("$ZodError",Vg,{Parent:Error});function rb(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function ib(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const l of i.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(d=>r({issues:d}));else if(l.code==="invalid_key")r({issues:l.issues});else if(l.code==="invalid_element")r({issues:l.issues});else if(l.path.length===0)n._errors.push(t(l));else{let d=n,g=0;for(;g<l.path.length;){const p=l.path[g];g===l.path.length-1?(d[p]=d[p]||{_errors:[]},d[p]._errors.push(t(l))):d[p]=d[p]||{_errors:[]},d=d[p],g++}}};return r(e),n}const ud=e=>(t,n,r,i)=>{const l=r?Object.assign(r,{async:!1}):{async:!1},d=t._zod.run({value:n,issues:[]},l);if(d instanceof Promise)throw new Is;if(d.issues.length){const g=new((i==null?void 0:i.Err)??e)(d.issues.map(p=>aa(p,l,na())));throw Bg(g,i==null?void 0:i.callee),g}return d.value},dd=e=>async(t,n,r,i)=>{const l=r?Object.assign(r,{async:!0}):{async:!0};let d=t._zod.run({value:n,issues:[]},l);if(d instanceof Promise&&(d=await d),d.issues.length){const g=new((i==null?void 0:i.Err)??e)(d.issues.map(p=>aa(p,l,na())));throw Bg(g,i==null?void 0:i.callee),g}return d.value},Bl=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw new Is;return l.issues.length?{success:!1,error:new(e??Hg)(l.issues.map(d=>aa(d,i,na())))}:{success:!0,data:l.value}},ab=Bl(jg),zl=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},i);return l instanceof Promise&&(l=await l),l.issues.length?{success:!1,error:new e(l.issues.map(d=>aa(d,i,na())))}:{success:!0,data:l.value}},sb=zl(jg),ob=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ud(e)(t,n,i)},lb=e=>(t,n,r)=>ud(e)(t,n,r),cb=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return dd(e)(t,n,i)},ub=e=>async(t,n,r)=>dd(e)(t,n,r),db=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Bl(e)(t,n,i)},fb=e=>(t,n,r)=>Bl(e)(t,n,r),hb=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return zl(e)(t,n,i)},gb=e=>async(t,n,r)=>zl(e)(t,n,r),pb=/^[cC][^\s-]{8,}$/,mb=/^[0-9a-z]+$/,vb=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,yb=/^[0-9a-vA-V]{20}$/,_b=/^[A-Za-z0-9]{27}$/,wb=/^[a-zA-Z0-9_-]{21}$/,bb=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Sb=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,qg=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Eb=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,kb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Cb(){return new RegExp(kb,"u")}const Ib=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ab=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Tb=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ob=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Pb=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Gg=/^[A-Za-z0-9_-]*$/,Rb=/^\+[1-9]\d{6,14}$/,Wg="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Mb=new RegExp(`^${Wg}$`);function Kg(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Lb(e){return new RegExp(`^${Kg(e)}$`)}function Db(e){const t=Kg({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Wg}T(?:${r})$`)}const Nb=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},xb=/^-?\d+$/,$g=/^-?\d+(?:\.\d+)?$/,Ub=/^(?:true|false)$/i,Fb=/^[^A-Z]*$/,Bb=/^[^a-z]*$/,Xn=ye("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Zg={number:"number",bigint:"bigint",object:"date"},Yg=ye("$ZodCheckLessThan",(e,t)=>{Xn.init(e,t);const n=Zg[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,l=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<l&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Jg=ye("$ZodCheckGreaterThan",(e,t)=>{Xn.init(e,t);const n=Zg[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,l=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>l&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),zb=ye("$ZodCheckMultipleOf",(e,t)=>{Xn.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):qw(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Vb=ye("$ZodCheckNumberFormat",(e,t)=>{var d;Xn.init(e,t),t.format=t.format||"float64";const n=(d=t.format)==null?void 0:d.includes("int"),r=n?"int":"number",[i,l]=Zw[t.format];e._zod.onattach.push(g=>{const p=g._zod.bag;p.format=t.format,p.minimum=i,p.maximum=l,n&&(p.pattern=xb)}),e._zod.check=g=>{const p=g.value;if(n){if(!Number.isInteger(p)){g.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:p,inst:e});return}if(!Number.isSafeInteger(p)){p>0?g.issues.push({input:p,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):g.issues.push({input:p,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}p<i&&g.issues.push({origin:"number",input:p,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),p>l&&g.issues.push({origin:"number",input:p,code:"too_big",maximum:l,inclusive:!0,inst:e,continue:!t.abort})}}),Hb=ye("$ZodCheckMaxLength",(e,t)=>{var n;Xn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!od(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const d=cd(i);r.issues.push({origin:d,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),jb=ye("$ZodCheckMinLength",(e,t)=>{var n;Xn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!od(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const d=cd(i);r.issues.push({origin:d,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),qb=ye("$ZodCheckLengthEquals",(e,t)=>{var n;Xn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!od(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,l=i.length;if(l===t.length)return;const d=cd(i),g=l>t.length;r.issues.push({origin:d,...g?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Vl=ye("$ZodCheckStringFormat",(e,t)=>{var n,r;Xn.init(e,t),e._zod.onattach.push(i=>{const l=i._zod.bag;l.format=t.format,t.pattern&&(l.patterns??(l.patterns=new Set),l.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Gb=ye("$ZodCheckRegex",(e,t)=>{Vl.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Wb=ye("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Fb),Vl.init(e,t)}),Kb=ye("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Bb),Vl.init(e,t)}),$b=ye("$ZodCheckIncludes",(e,t)=>{Xn.init(e,t);const n=Ts(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const l=i._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),Zb=ye("$ZodCheckStartsWith",(e,t)=>{Xn.init(e,t);const n=new RegExp(`^${Ts(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Yb=ye("$ZodCheckEndsWith",(e,t)=>{Xn.init(e,t);const n=new RegExp(`.*${Ts(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Jb=ye("$ZodCheckOverwrite",(e,t)=>{Xn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Xb{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
7
+ });`),new Error(t)}}function ve(e,t,n){function r(g,p){if(g._zod||Object.defineProperty(g,"_zod",{value:{def:p,constr:d,traits:new Set},enumerable:!1}),g._zod.traits.has(e))return;g._zod.traits.add(e),t(g,p);const _=d.prototype,S=Object.keys(_);for(let k=0;k<S.length;k++){const h=S[k];h in g||(g[h]=_[h].bind(g))}}const i=(n==null?void 0:n.Parent)??Object;class l extends i{}Object.defineProperty(l,"name",{value:e});function d(g){var p;const _=n!=null&&n.Parent?new l:this;r(_,g),(p=_._zod).deferred??(p.deferred=[]);for(const S of _._zod.deferred)S();return _}return Object.defineProperty(d,"init",{value:r}),Object.defineProperty(d,Symbol.hasInstance,{value:g=>{var p,_;return n!=null&&n.Parent&&g instanceof n.Parent?!0:(_=(p=g==null?void 0:g._zod)==null?void 0:p.traits)==null?void 0:_.has(e)}}),Object.defineProperty(d,"name",{value:e}),d}class Aa extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Fg extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Bg={};function rs(e){return Bg}function zg(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function ud(e,t){return typeof t=="bigint"?t.toString():t}function zl(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function dd(e){return e==null}function fd(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Jw(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const p=r.match(/\d?e-(\d?)/);p!=null&&p[1]&&(i=Number.parseInt(p[1]))}const l=n>i?n:i,d=Number.parseInt(e.toFixed(l).replace(".","")),g=Number.parseInt(t.toFixed(l).replace(".",""));return d%g/10**l}const Vg=Symbol("evaluating");function Ht(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Vg)return r===void 0&&(r=Vg,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function Gs(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function is(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Hg(e){return JSON.stringify(e)}function Xw(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const jg="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Co(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Qw=zl(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Ta(e){if(Co(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Co(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function qg(e){return Ta(e)?{...e}:Array.isArray(e)?[...e]:e}const e0=new Set(["string","number","symbol"]);function Oa(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ss(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function st(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function t0(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const n0={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function r0(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const l=is(e._zod.def,{get shape(){const d={};for(const g in t){if(!(g in n.shape))throw new Error(`Unrecognized key: "${g}"`);t[g]&&(d[g]=n.shape[g])}return Gs(this,"shape",d),d},checks:[]});return ss(e,l)}function i0(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const l=is(e._zod.def,{get shape(){const d={...e._zod.def.shape};for(const g in t){if(!(g in n.shape))throw new Error(`Unrecognized key: "${g}"`);t[g]&&delete d[g]}return Gs(this,"shape",d),d},checks:[]});return ss(e,l)}function s0(e,t){if(!Ta(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const l=e._zod.def.shape;for(const d in t)if(Object.getOwnPropertyDescriptor(l,d)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=is(e._zod.def,{get shape(){const l={...e._zod.def.shape,...t};return Gs(this,"shape",l),l}});return ss(e,i)}function a0(e,t){if(!Ta(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=is(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Gs(this,"shape",r),r}});return ss(e,n)}function o0(e,t){const n=is(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Gs(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return ss(e,n)}function l0(e,t,n){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const d=is(t._zod.def,{get shape(){const g=t._zod.def.shape,p={...g};if(n)for(const _ in n){if(!(_ in g))throw new Error(`Unrecognized key: "${_}"`);n[_]&&(p[_]=e?new e({type:"optional",innerType:g[_]}):g[_])}else for(const _ in g)p[_]=e?new e({type:"optional",innerType:g[_]}):g[_];return Gs(this,"shape",p),p},checks:[]});return ss(t,d)}function c0(e,t,n){const r=is(t._zod.def,{get shape(){const i=t._zod.def.shape,l={...i};if(n)for(const d in n){if(!(d in l))throw new Error(`Unrecognized key: "${d}"`);n[d]&&(l[d]=new e({type:"nonoptional",innerType:i[d]}))}else for(const d in i)l[d]=new e({type:"nonoptional",innerType:i[d]});return Gs(this,"shape",l),l}});return ss(t,r)}function Pa(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Ra(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Vl(e){return typeof e=="string"?e:e==null?void 0:e.message}function as(e,t,n){var i,l,d,g,p,_;const r={...e,path:e.path??[]};if(!e.message){const S=Vl((d=(l=(i=e.inst)==null?void 0:i._zod.def)==null?void 0:l.error)==null?void 0:d.call(l,e))??Vl((g=t==null?void 0:t.error)==null?void 0:g.call(t,e))??Vl((p=n.customError)==null?void 0:p.call(n,e))??Vl((_=n.localeError)==null?void 0:_.call(n,e))??"Invalid input";r.message=S}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function hd(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Io(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Wg=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ud,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Gg=ve("$ZodError",Wg),Kg=ve("$ZodError",Wg,{Parent:Error});function u0(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function d0(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const l of i.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(d=>r({issues:d}));else if(l.code==="invalid_key")r({issues:l.issues});else if(l.code==="invalid_element")r({issues:l.issues});else if(l.path.length===0)n._errors.push(t(l));else{let d=n,g=0;for(;g<l.path.length;){const p=l.path[g];g===l.path.length-1?(d[p]=d[p]||{_errors:[]},d[p]._errors.push(t(l))):d[p]=d[p]||{_errors:[]},d=d[p],g++}}};return r(e),n}const gd=e=>(t,n,r,i)=>{const l=r?Object.assign(r,{async:!1}):{async:!1},d=t._zod.run({value:n,issues:[]},l);if(d instanceof Promise)throw new Aa;if(d.issues.length){const g=new((i==null?void 0:i.Err)??e)(d.issues.map(p=>as(p,l,rs())));throw jg(g,i==null?void 0:i.callee),g}return d.value},pd=e=>async(t,n,r,i)=>{const l=r?Object.assign(r,{async:!0}):{async:!0};let d=t._zod.run({value:n,issues:[]},l);if(d instanceof Promise&&(d=await d),d.issues.length){const g=new((i==null?void 0:i.Err)??e)(d.issues.map(p=>as(p,l,rs())));throw jg(g,i==null?void 0:i.callee),g}return d.value},Hl=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw new Aa;return l.issues.length?{success:!1,error:new(e??Gg)(l.issues.map(d=>as(d,i,rs())))}:{success:!0,data:l.value}},f0=Hl(Kg),jl=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},i);return l instanceof Promise&&(l=await l),l.issues.length?{success:!1,error:new e(l.issues.map(d=>as(d,i,rs())))}:{success:!0,data:l.value}},h0=jl(Kg),g0=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return gd(e)(t,n,i)},p0=e=>(t,n,r)=>gd(e)(t,n,r),m0=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return pd(e)(t,n,i)},v0=e=>async(t,n,r)=>pd(e)(t,n,r),y0=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Hl(e)(t,n,i)},_0=e=>(t,n,r)=>Hl(e)(t,n,r),w0=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return jl(e)(t,n,i)},b0=e=>async(t,n,r)=>jl(e)(t,n,r),S0=/^[cC][^\s-]{8,}$/,E0=/^[0-9a-z]+$/,k0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,C0=/^[0-9a-vA-V]{20}$/,I0=/^[A-Za-z0-9]{27}$/,A0=/^[a-zA-Z0-9_-]{21}$/,T0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,O0=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,$g=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,P0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,R0="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function M0(){return new RegExp(R0,"u")}const L0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,D0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,x0=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,N0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,U0=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Zg=/^[A-Za-z0-9_-]*$/,F0=/^\+[1-9]\d{6,14}$/,Yg="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",B0=new RegExp(`^${Yg}$`);function Jg(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function z0(e){return new RegExp(`^${Jg(e)}$`)}function V0(e){const t=Jg({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Yg}T(?:${r})$`)}const H0=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},j0=/^-?\d+$/,Xg=/^-?\d+(?:\.\d+)?$/,q0=/^(?:true|false)$/i,W0=/^[^A-Z]*$/,G0=/^[^a-z]*$/,er=ve("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Qg={number:"number",bigint:"bigint",object:"date"},ep=ve("$ZodCheckLessThan",(e,t)=>{er.init(e,t);const n=Qg[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,l=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<l&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),tp=ve("$ZodCheckGreaterThan",(e,t)=>{er.init(e,t);const n=Qg[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,l=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>l&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),K0=ve("$ZodCheckMultipleOf",(e,t)=>{er.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Jw(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),$0=ve("$ZodCheckNumberFormat",(e,t)=>{var d;er.init(e,t),t.format=t.format||"float64";const n=(d=t.format)==null?void 0:d.includes("int"),r=n?"int":"number",[i,l]=n0[t.format];e._zod.onattach.push(g=>{const p=g._zod.bag;p.format=t.format,p.minimum=i,p.maximum=l,n&&(p.pattern=j0)}),e._zod.check=g=>{const p=g.value;if(n){if(!Number.isInteger(p)){g.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:p,inst:e});return}if(!Number.isSafeInteger(p)){p>0?g.issues.push({input:p,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):g.issues.push({input:p,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}p<i&&g.issues.push({origin:"number",input:p,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),p>l&&g.issues.push({origin:"number",input:p,code:"too_big",maximum:l,inclusive:!0,inst:e,continue:!t.abort})}}),Z0=ve("$ZodCheckMaxLength",(e,t)=>{var n;er.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!dd(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const d=hd(i);r.issues.push({origin:d,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Y0=ve("$ZodCheckMinLength",(e,t)=>{var n;er.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!dd(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const d=hd(i);r.issues.push({origin:d,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),J0=ve("$ZodCheckLengthEquals",(e,t)=>{var n;er.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!dd(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,l=i.length;if(l===t.length)return;const d=hd(i),g=l>t.length;r.issues.push({origin:d,...g?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ql=ve("$ZodCheckStringFormat",(e,t)=>{var n,r;er.init(e,t),e._zod.onattach.push(i=>{const l=i._zod.bag;l.format=t.format,t.pattern&&(l.patterns??(l.patterns=new Set),l.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),X0=ve("$ZodCheckRegex",(e,t)=>{ql.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Q0=ve("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=W0),ql.init(e,t)}),eb=ve("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=G0),ql.init(e,t)}),tb=ve("$ZodCheckIncludes",(e,t)=>{er.init(e,t);const n=Oa(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const l=i._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),nb=ve("$ZodCheckStartsWith",(e,t)=>{er.init(e,t);const n=new RegExp(`^${Oa(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),rb=ve("$ZodCheckEndsWith",(e,t)=>{er.init(e,t);const n=new RegExp(`.*${Oa(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),ib=ve("$ZodCheckOverwrite",(e,t)=>{er.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class sb{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
8
8
  `).filter(d=>d),i=Math.min(...r.map(d=>d.length-d.trimStart().length)),l=r.map(d=>d.slice(i)).map(d=>" ".repeat(this.indent*2)+d);for(const d of l)this.content.push(d)}compile(){const t=Function,n=this==null?void 0:this.args,i=[...((this==null?void 0:this.content)??[""]).map(l=>` ${l}`)];return new t(...n,i.join(`
9
- `))}}const Qb={major:4,minor:3,patch:6},on=ye("$ZodType",(e,t)=>{var i;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Qb;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const l of r)for(const d of l._zod.onattach)d(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(i=e._zod.deferred)==null||i.push(()=>{e._zod.run=e._zod.parse});else{const l=(g,p,_)=>{let S=Os(g),k;for(const h of p){if(h._zod.def.when){if(!h._zod.def.when(g))continue}else if(S)continue;const y=g.issues.length,b=h._zod.check(g);if(b instanceof Promise&&(_==null?void 0:_.async)===!1)throw new Is;if(k||b instanceof Promise)k=(k??Promise.resolve()).then(async()=>{await b,g.issues.length!==y&&(S||(S=Os(g,y)))});else{if(g.issues.length===y)continue;S||(S=Os(g,y))}}return k?k.then(()=>g):g},d=(g,p,_)=>{if(Os(g))return g.aborted=!0,g;const S=l(p,r,_);if(S instanceof Promise){if(_.async===!1)throw new Is;return S.then(k=>e._zod.parse(k,_))}return e._zod.parse(S,_)};e._zod.run=(g,p)=>{if(p.skipChecks)return e._zod.parse(g,p);if(p.direction==="backward"){const S=e._zod.parse({value:g.value,issues:[]},{...p,skipChecks:!0});return S instanceof Promise?S.then(k=>d(k,g,p)):d(S,g,p)}const _=e._zod.parse(g,p);if(_ instanceof Promise){if(p.async===!1)throw new Is;return _.then(S=>l(S,r,p))}return l(_,r,p)}}qt(e,"~standard",()=>({validate:l=>{var d;try{const g=ab(e,l);return g.success?{value:g.data}:{issues:(d=g.error)==null?void 0:d.issues}}catch{return sb(e,l).then(p=>{var _;return p.success?{value:p.data}:{issues:(_=p.error)==null?void 0:_.issues}})}},vendor:"zod",version:1}))}),fd=ye("$ZodString",(e,t)=>{var n;on.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Nb(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),en=ye("$ZodStringFormat",(e,t)=>{Vl.init(e,t),fd.init(e,t)}),e0=ye("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Sb),en.init(e,t)}),t0=ye("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=qg(r))}else t.pattern??(t.pattern=qg());en.init(e,t)}),n0=ye("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Eb),en.init(e,t)}),r0=ye("$ZodURL",(e,t)=>{en.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),i0=ye("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Cb()),en.init(e,t)}),a0=ye("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=wb),en.init(e,t)}),s0=ye("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=pb),en.init(e,t)}),o0=ye("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=mb),en.init(e,t)}),l0=ye("$ZodULID",(e,t)=>{t.pattern??(t.pattern=vb),en.init(e,t)}),c0=ye("$ZodXID",(e,t)=>{t.pattern??(t.pattern=yb),en.init(e,t)}),u0=ye("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=_b),en.init(e,t)}),d0=ye("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Db(t)),en.init(e,t)}),f0=ye("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Mb),en.init(e,t)}),h0=ye("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Lb(t)),en.init(e,t)}),g0=ye("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=bb),en.init(e,t)}),p0=ye("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ib),en.init(e,t),e._zod.bag.format="ipv4"}),m0=ye("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ab),en.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),v0=ye("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Tb),en.init(e,t)}),y0=ye("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ob),en.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,l]=r;if(!l)throw new Error;const d=Number(l);if(`${d}`!==l)throw new Error;if(d<0||d>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Xg(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const _0=ye("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Pb),en.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Xg(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function w0(e){if(!Gg.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Xg(n)}const b0=ye("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Gg),en.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{w0(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),S0=ye("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Rb),en.init(e,t)});function E0(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const k0=ye("$ZodJWT",(e,t)=>{en.init(e,t),e._zod.check=n=>{E0(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Qg=ye("$ZodNumber",(e,t)=>{on.init(e,t),e._zod.pattern=e._zod.bag.pattern??$g,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const l=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...l?{received:l}:{}}),n}}),C0=ye("$ZodNumberFormat",(e,t)=>{Vb.init(e,t),Qg.init(e,t)}),I0=ye("$ZodBoolean",(e,t)=>{on.init(e,t),e._zod.pattern=Ub,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),A0=ye("$ZodUnknown",(e,t)=>{on.init(e,t),e._zod.parse=n=>n}),T0=ye("$ZodNever",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function ep(e,t,n){e.issues.length&&t.issues.push(...Ps(n,e.issues)),t.value[n]=e.value}const O0=ye("$ZodArray",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const l=[];for(let d=0;d<i.length;d++){const g=i[d],p=t.element._zod.run({value:g,issues:[]},r);p instanceof Promise?l.push(p.then(_=>ep(_,n,d))):ep(p,n,d)}return l.length?Promise.all(l).then(()=>n):n}});function Hl(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...Ps(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function tp(e){var r,i,l,d;const t=Object.keys(e.shape);for(const g of t)if(!((d=(l=(i=(r=e.shape)==null?void 0:r[g])==null?void 0:i._zod)==null?void 0:l.traits)!=null&&d.has("$ZodType")))throw new Error(`Invalid element at key "${g}": expected a Zod schema`);const n=$w(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function np(e,t,n,r,i,l){const d=[],g=i.keySet,p=i.catchall._zod,_=p.def.type,S=p.optout==="optional";for(const k in t){if(g.has(k))continue;if(_==="never"){d.push(k);continue}const h=p.run({value:t[k],issues:[]},r);h instanceof Promise?e.push(h.then(y=>Hl(y,n,k,t,S))):Hl(h,n,k,t,S)}return d.length&&n.issues.push({code:"unrecognized_keys",keys:d,input:t,inst:l}),e.length?Promise.all(e).then(()=>n):n}const P0=ye("$ZodObject",(e,t)=>{on.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const g=t.shape;Object.defineProperty(t,"shape",{get:()=>{const p={...g};return Object.defineProperty(t,"shape",{value:p}),p}})}const r=sd(()=>tp(t));qt(e._zod,"propValues",()=>{const g=t.shape,p={};for(const _ in g){const S=g[_]._zod;if(S.values){p[_]??(p[_]=new Set);for(const k of S.values)p[_].add(k)}}return p});const i=Ul,l=t.catchall;let d;e._zod.parse=(g,p)=>{d??(d=r.value);const _=g.value;if(!i(_))return g.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),g;g.value={};const S=[],k=d.shape;for(const h of d.keys){const y=k[h],b=y._zod.optout==="optional",c=y._zod.run({value:_[h],issues:[]},p);c instanceof Promise?S.push(c.then(u=>Hl(u,g,h,_,b))):Hl(c,g,h,_,b)}return l?np(S,_,g,p,r.value,e):S.length?Promise.all(S).then(()=>g):g}}),R0=ye("$ZodObjectJIT",(e,t)=>{P0.init(e,t);const n=e._zod.parse,r=sd(()=>tp(t)),i=h=>{var o;const y=new Xb(["shape","payload","ctx"]),b=r.value,c=a=>{const m=Fg(a);return`shape[${m}]._zod.run({ value: input[${m}], issues: [] }, ctx)`};y.write("const input = payload.value;");const u=Object.create(null);let f=0;for(const a of b.keys)u[a]=`key_${f++}`;y.write("const newResult = {};");for(const a of b.keys){const m=u[a],v=Fg(a),w=h[a],A=((o=w==null?void 0:w._zod)==null?void 0:o.optout)==="optional";y.write(`const ${m} = ${c(a)};`),A?y.write(`
9
+ `))}}const ab={major:4,minor:3,patch:6},on=ve("$ZodType",(e,t)=>{var i;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ab;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const l of r)for(const d of l._zod.onattach)d(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(i=e._zod.deferred)==null||i.push(()=>{e._zod.run=e._zod.parse});else{const l=(g,p,_)=>{let S=Pa(g),k;for(const h of p){if(h._zod.def.when){if(!h._zod.def.when(g))continue}else if(S)continue;const y=g.issues.length,b=h._zod.check(g);if(b instanceof Promise&&(_==null?void 0:_.async)===!1)throw new Aa;if(k||b instanceof Promise)k=(k??Promise.resolve()).then(async()=>{await b,g.issues.length!==y&&(S||(S=Pa(g,y)))});else{if(g.issues.length===y)continue;S||(S=Pa(g,y))}}return k?k.then(()=>g):g},d=(g,p,_)=>{if(Pa(g))return g.aborted=!0,g;const S=l(p,r,_);if(S instanceof Promise){if(_.async===!1)throw new Aa;return S.then(k=>e._zod.parse(k,_))}return e._zod.parse(S,_)};e._zod.run=(g,p)=>{if(p.skipChecks)return e._zod.parse(g,p);if(p.direction==="backward"){const S=e._zod.parse({value:g.value,issues:[]},{...p,skipChecks:!0});return S instanceof Promise?S.then(k=>d(k,g,p)):d(S,g,p)}const _=e._zod.parse(g,p);if(_ instanceof Promise){if(p.async===!1)throw new Aa;return _.then(S=>l(S,r,p))}return l(_,r,p)}}Ht(e,"~standard",()=>({validate:l=>{var d;try{const g=f0(e,l);return g.success?{value:g.data}:{issues:(d=g.error)==null?void 0:d.issues}}catch{return h0(e,l).then(p=>{var _;return p.success?{value:p.data}:{issues:(_=p.error)==null?void 0:_.issues}})}},vendor:"zod",version:1}))}),md=ve("$ZodString",(e,t)=>{var n;on.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??H0(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),tn=ve("$ZodStringFormat",(e,t)=>{ql.init(e,t),md.init(e,t)}),ob=ve("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=O0),tn.init(e,t)}),lb=ve("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=$g(r))}else t.pattern??(t.pattern=$g());tn.init(e,t)}),cb=ve("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=P0),tn.init(e,t)}),ub=ve("$ZodURL",(e,t)=>{tn.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),db=ve("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=M0()),tn.init(e,t)}),fb=ve("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=A0),tn.init(e,t)}),hb=ve("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=S0),tn.init(e,t)}),gb=ve("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=E0),tn.init(e,t)}),pb=ve("$ZodULID",(e,t)=>{t.pattern??(t.pattern=k0),tn.init(e,t)}),mb=ve("$ZodXID",(e,t)=>{t.pattern??(t.pattern=C0),tn.init(e,t)}),vb=ve("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=I0),tn.init(e,t)}),yb=ve("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=V0(t)),tn.init(e,t)}),_b=ve("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=B0),tn.init(e,t)}),wb=ve("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=z0(t)),tn.init(e,t)}),bb=ve("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=T0),tn.init(e,t)}),Sb=ve("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=L0),tn.init(e,t),e._zod.bag.format="ipv4"}),Eb=ve("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=D0),tn.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),kb=ve("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=x0),tn.init(e,t)}),Cb=ve("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=N0),tn.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,l]=r;if(!l)throw new Error;const d=Number(l);if(`${d}`!==l)throw new Error;if(d<0||d>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function np(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Ib=ve("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=U0),tn.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{np(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Ab(e){if(!Zg.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return np(n)}const Tb=ve("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Zg),tn.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Ab(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Ob=ve("$ZodE164",(e,t)=>{t.pattern??(t.pattern=F0),tn.init(e,t)});function Pb(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const Rb=ve("$ZodJWT",(e,t)=>{tn.init(e,t),e._zod.check=n=>{Pb(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),rp=ve("$ZodNumber",(e,t)=>{on.init(e,t),e._zod.pattern=e._zod.bag.pattern??Xg,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const l=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...l?{received:l}:{}}),n}}),Mb=ve("$ZodNumberFormat",(e,t)=>{$0.init(e,t),rp.init(e,t)}),Lb=ve("$ZodBoolean",(e,t)=>{on.init(e,t),e._zod.pattern=q0,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),Db=ve("$ZodUnknown",(e,t)=>{on.init(e,t),e._zod.parse=n=>n}),xb=ve("$ZodNever",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function ip(e,t,n){e.issues.length&&t.issues.push(...Ra(n,e.issues)),t.value[n]=e.value}const Nb=ve("$ZodArray",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const l=[];for(let d=0;d<i.length;d++){const g=i[d],p=t.element._zod.run({value:g,issues:[]},r);p instanceof Promise?l.push(p.then(_=>ip(_,n,d))):ip(p,n,d)}return l.length?Promise.all(l).then(()=>n):n}});function Wl(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...Ra(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function sp(e){var r,i,l,d;const t=Object.keys(e.shape);for(const g of t)if(!((d=(l=(i=(r=e.shape)==null?void 0:r[g])==null?void 0:i._zod)==null?void 0:l.traits)!=null&&d.has("$ZodType")))throw new Error(`Invalid element at key "${g}": expected a Zod schema`);const n=t0(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function ap(e,t,n,r,i,l){const d=[],g=i.keySet,p=i.catchall._zod,_=p.def.type,S=p.optout==="optional";for(const k in t){if(g.has(k))continue;if(_==="never"){d.push(k);continue}const h=p.run({value:t[k],issues:[]},r);h instanceof Promise?e.push(h.then(y=>Wl(y,n,k,t,S))):Wl(h,n,k,t,S)}return d.length&&n.issues.push({code:"unrecognized_keys",keys:d,input:t,inst:l}),e.length?Promise.all(e).then(()=>n):n}const Ub=ve("$ZodObject",(e,t)=>{on.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const g=t.shape;Object.defineProperty(t,"shape",{get:()=>{const p={...g};return Object.defineProperty(t,"shape",{value:p}),p}})}const r=zl(()=>sp(t));Ht(e._zod,"propValues",()=>{const g=t.shape,p={};for(const _ in g){const S=g[_]._zod;if(S.values){p[_]??(p[_]=new Set);for(const k of S.values)p[_].add(k)}}return p});const i=Co,l=t.catchall;let d;e._zod.parse=(g,p)=>{d??(d=r.value);const _=g.value;if(!i(_))return g.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),g;g.value={};const S=[],k=d.shape;for(const h of d.keys){const y=k[h],b=y._zod.optout==="optional",c=y._zod.run({value:_[h],issues:[]},p);c instanceof Promise?S.push(c.then(u=>Wl(u,g,h,_,b))):Wl(c,g,h,_,b)}return l?ap(S,_,g,p,r.value,e):S.length?Promise.all(S).then(()=>g):g}}),Fb=ve("$ZodObjectJIT",(e,t)=>{Ub.init(e,t);const n=e._zod.parse,r=zl(()=>sp(t)),i=h=>{var o;const y=new sb(["shape","payload","ctx"]),b=r.value,c=s=>{const m=Hg(s);return`shape[${m}]._zod.run({ value: input[${m}], issues: [] }, ctx)`};y.write("const input = payload.value;");const u=Object.create(null);let f=0;for(const s of b.keys)u[s]=`key_${f++}`;y.write("const newResult = {};");for(const s of b.keys){const m=u[s],v=Hg(s),w=h[s],A=((o=w==null?void 0:w._zod)==null?void 0:o.optout)==="optional";y.write(`const ${m} = ${c(s)};`),A?y.write(`
10
10
  if (${m}.issues.length) {
11
11
  if (${v} in input) {
12
12
  payload.issues = payload.issues.concat(${m}.issues.map(iss => ({
@@ -40,42 +40,42 @@ var ForgeRockLoginWidget=function(Bt){"use strict";"use strict";var I4=Object.de
40
40
  newResult[${v}] = ${m}.value;
41
41
  }
42
42
 
43
- `)}y.write("payload.value = newResult;"),y.write("return payload;");const s=y.compile();return(a,m)=>s(h,a,m)};let l;const d=Ul,g=!Ng.jitless,_=g&&Ww.value,S=t.catchall;let k;e._zod.parse=(h,y)=>{k??(k=r.value);const b=h.value;return d(b)?g&&_&&(y==null?void 0:y.async)===!1&&y.jitless!==!0?(l||(l=i(t.shape)),h=l(h,y),S?np([],b,h,y,k,e):h):n(h,y):(h.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),h)}});function rp(e,t,n,r){for(const l of e)if(l.issues.length===0)return t.value=l.value,t;const i=e.filter(l=>!Os(l));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(l=>l.issues.map(d=>aa(d,r,na())))}),t)}const M0=ye("$ZodUnion",(e,t)=>{on.init(e,t),qt(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),qt(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),qt(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),qt(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(l=>l._zod.pattern);return new RegExp(`^(${i.map(l=>ld(l.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,l)=>{if(n)return r(i,l);let d=!1;const g=[];for(const p of t.options){const _=p._zod.run({value:i.value,issues:[]},l);if(_ instanceof Promise)g.push(_),d=!0;else{if(_.issues.length===0)return _;g.push(_)}}return d?Promise.all(g).then(p=>rp(p,i,e,l)):rp(g,i,e,l)}}),L0=ye("$ZodIntersection",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,l=t.left._zod.run({value:i,issues:[]},r),d=t.right._zod.run({value:i,issues:[]},r);return l instanceof Promise||d instanceof Promise?Promise.all([l,d]).then(([p,_])=>ip(n,p,_)):ip(n,l,d)}});function hd(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(As(e)&&As(t)){const n=Object.keys(t),r=Object.keys(e).filter(l=>n.indexOf(l)!==-1),i={...e,...t};for(const l of r){const d=hd(e[l],t[l]);if(!d.valid)return{valid:!1,mergeErrorPath:[l,...d.mergeErrorPath]};i[l]=d.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],l=t[r],d=hd(i,l);if(!d.valid)return{valid:!1,mergeErrorPath:[r,...d.mergeErrorPath]};n.push(d.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ip(e,t,n){const r=new Map;let i;for(const g of t.issues)if(g.code==="unrecognized_keys"){i??(i=g);for(const p of g.keys)r.has(p)||r.set(p,{}),r.get(p).l=!0}else e.issues.push(g);for(const g of n.issues)if(g.code==="unrecognized_keys")for(const p of g.keys)r.has(p)||r.set(p,{}),r.get(p).r=!0;else e.issues.push(g);const l=[...r].filter(([,g])=>g.l&&g.r).map(([g])=>g);if(l.length&&i&&e.issues.push({...i,keys:l}),Os(e))return e;const d=hd(t.value,n.value);if(!d.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(d.mergeErrorPath)}`);return e.value=d.data,e}const D0=ye("$ZodRecord",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!As(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;const l=[],d=t.keyType._zod.values;if(d){n.value={};const g=new Set;for(const _ of d)if(typeof _=="string"||typeof _=="number"||typeof _=="symbol"){g.add(typeof _=="number"?_.toString():_);const S=t.valueType._zod.run({value:i[_],issues:[]},r);S instanceof Promise?l.push(S.then(k=>{k.issues.length&&n.issues.push(...Ps(_,k.issues)),n.value[_]=k.value})):(S.issues.length&&n.issues.push(...Ps(_,S.issues)),n.value[_]=S.value)}let p;for(const _ in i)g.has(_)||(p=p??[],p.push(_));p&&p.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:p})}else{n.value={};for(const g of Reflect.ownKeys(i)){if(g==="__proto__")continue;let p=t.keyType._zod.run({value:g,issues:[]},r);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof g=="string"&&$g.test(g)&&p.issues.length){const k=t.keyType._zod.run({value:Number(g),issues:[]},r);if(k instanceof Promise)throw new Error("Async schemas not supported in object keys currently");k.issues.length===0&&(p=k)}if(p.issues.length){t.mode==="loose"?n.value[g]=i[g]:n.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(k=>aa(k,r,na())),input:g,path:[g],inst:e});continue}const S=t.valueType._zod.run({value:i[g],issues:[]},r);S instanceof Promise?l.push(S.then(k=>{k.issues.length&&n.issues.push(...Ps(g,k.issues)),n.value[p.value]=k.value})):(S.issues.length&&n.issues.push(...Ps(g,S.issues)),n.value[p.value]=S.value)}}return l.length?Promise.all(l).then(()=>n):n}}),N0=ye("$ZodEnum",(e,t)=>{on.init(e,t);const n=xg(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>Kw.has(typeof i)).map(i=>typeof i=="string"?Ts(i):i.toString()).join("|")})$`),e._zod.parse=(i,l)=>{const d=i.value;return r.has(d)||i.issues.push({code:"invalid_value",values:n,input:d,inst:e}),i}}),x0=ye("$ZodLiteral",(e,t)=>{if(on.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Ts(r):r?Ts(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,i)=>{const l=r.value;return n.has(l)||r.issues.push({code:"invalid_value",values:t.values,input:l,inst:e}),r}}),U0=ye("$ZodTransform",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Dg(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(d=>(n.value=d,n));if(i instanceof Promise)throw new Is;return n.value=i,n}});function ap(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const sp=ye("$ZodOptional",(e,t)=>{on.init(e,t),e._zod.optin="optional",e._zod.optout="optional",qt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),qt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ld(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(l=>ap(l,n.value)):ap(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),F0=ye("$ZodExactOptional",(e,t)=>{sp.init(e,t),qt(e._zod,"values",()=>t.innerType._zod.values),qt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),B0=ye("$ZodNullable",(e,t)=>{on.init(e,t),qt(e._zod,"optin",()=>t.innerType._zod.optin),qt(e._zod,"optout",()=>t.innerType._zod.optout),qt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ld(n.source)}|null)$`):void 0}),qt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),z0=ye("$ZodDefault",(e,t)=>{on.init(e,t),e._zod.optin="optional",qt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(l=>op(l,t)):op(i,t)}});function op(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const V0=ye("$ZodPrefault",(e,t)=>{on.init(e,t),e._zod.optin="optional",qt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),H0=ye("$ZodNonOptional",(e,t)=>{on.init(e,t),qt(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(l=>lp(l,e)):lp(i,e)}});function lp(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const j0=ye("$ZodCatch",(e,t)=>{on.init(e,t),qt(e._zod,"optin",()=>t.innerType._zod.optin),qt(e._zod,"optout",()=>t.innerType._zod.optout),qt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(l=>(n.value=l.value,l.issues.length&&(n.value=t.catchValue({...n,error:{issues:l.issues.map(d=>aa(d,r,na()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(l=>aa(l,r,na()))},input:n.value}),n.issues=[]),n)}}),q0=ye("$ZodPipe",(e,t)=>{on.init(e,t),qt(e._zod,"values",()=>t.in._zod.values),qt(e._zod,"optin",()=>t.in._zod.optin),qt(e._zod,"optout",()=>t.out._zod.optout),qt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const l=t.out._zod.run(n,r);return l instanceof Promise?l.then(d=>jl(d,t.in,r)):jl(l,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(l=>jl(l,t.out,r)):jl(i,t.out,r)}});function jl(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const G0=ye("$ZodReadonly",(e,t)=>{on.init(e,t),qt(e._zod,"propValues",()=>t.innerType._zod.propValues),qt(e._zod,"values",()=>t.innerType._zod.values),qt(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),qt(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(cp):cp(i)}});function cp(e){return e.value=Object.freeze(e.value),e}const W0=ye("$ZodCustom",(e,t)=>{Xn.init(e,t),on.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(l=>up(l,n,r,e));up(i,n,r,e)}});function up(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(ko(i))}}var dp;class K0{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function $0(){return new K0}(dp=globalThis).__zod_globalRegistry??(dp.__zod_globalRegistry=$0());const Co=globalThis.__zod_globalRegistry;function Z0(e,t){return new e({type:"string",...st(t)})}function Y0(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...st(t)})}function fp(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...st(t)})}function J0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...st(t)})}function X0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...st(t)})}function Q0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...st(t)})}function e2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...st(t)})}function t2(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...st(t)})}function n2(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...st(t)})}function r2(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...st(t)})}function i2(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...st(t)})}function a2(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...st(t)})}function s2(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...st(t)})}function o2(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...st(t)})}function l2(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...st(t)})}function c2(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...st(t)})}function u2(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...st(t)})}function d2(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...st(t)})}function f2(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...st(t)})}function h2(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...st(t)})}function g2(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...st(t)})}function p2(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...st(t)})}function m2(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...st(t)})}function v2(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...st(t)})}function y2(e,t){return new e({type:"string",format:"date",check:"string_format",...st(t)})}function _2(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...st(t)})}function w2(e,t){return new e({type:"string",format:"duration",check:"string_format",...st(t)})}function b2(e,t){return new e({type:"number",checks:[],...st(t)})}function S2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...st(t)})}function E2(e,t){return new e({type:"boolean",...st(t)})}function k2(e){return new e({type:"unknown"})}function C2(e,t){return new e({type:"never",...st(t)})}function hp(e,t){return new Yg({check:"less_than",...st(t),value:e,inclusive:!1})}function gd(e,t){return new Yg({check:"less_than",...st(t),value:e,inclusive:!0})}function gp(e,t){return new Jg({check:"greater_than",...st(t),value:e,inclusive:!1})}function pd(e,t){return new Jg({check:"greater_than",...st(t),value:e,inclusive:!0})}function pp(e,t){return new zb({check:"multiple_of",...st(t),value:e})}function mp(e,t){return new Hb({check:"max_length",...st(t),maximum:e})}function ql(e,t){return new jb({check:"min_length",...st(t),minimum:e})}function vp(e,t){return new qb({check:"length_equals",...st(t),length:e})}function I2(e,t){return new Gb({check:"string_format",format:"regex",...st(t),pattern:e})}function A2(e){return new Wb({check:"string_format",format:"lowercase",...st(e)})}function T2(e){return new Kb({check:"string_format",format:"uppercase",...st(e)})}function O2(e,t){return new $b({check:"string_format",format:"includes",...st(t),includes:e})}function P2(e,t){return new Zb({check:"string_format",format:"starts_with",...st(t),prefix:e})}function R2(e,t){return new Yb({check:"string_format",format:"ends_with",...st(t),suffix:e})}function Rs(e){return new Jb({check:"overwrite",tx:e})}function M2(e){return Rs(t=>t.normalize(e))}function L2(){return Rs(e=>e.trim())}function D2(){return Rs(e=>e.toLowerCase())}function N2(){return Rs(e=>e.toUpperCase())}function x2(){return Rs(e=>Gw(e))}function U2(e,t,n){return new e({type:"array",element:t,...st(n)})}function F2(e,t,n){return new e({type:"custom",check:"custom",fn:t,...st(n)})}function B2(e){const t=z2(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(ko(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(ko(i))}},e(n.value,n)));return t}function z2(e,t){const n=new Xn({check:"custom",...st(t)});return n._zod.check=e,n}function yp(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Co,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function _n(e,t,n={path:[],schemaPath:[]}){var S,k;var r;const i=e._zod.def,l=t.seen.get(e);if(l)return l.count++,n.schemaPath.includes(e)&&(l.cycle=n.path),l.schema;const d={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,d);const g=(k=(S=e._zod).toJSONSchema)==null?void 0:k.call(S);if(g)d.schema=g;else{const h={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,d.schema,h);else{const b=d.schema,c=t.processors[i.type];if(!c)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);c(e,t,b,h)}const y=e._zod.parent;y&&(d.ref||(d.ref=y),_n(y,t,h),t.seen.get(y).isParent=!0)}const p=t.metadataRegistry.get(e);return p&&Object.assign(d.schema,p),t.io==="input"&&Hn(e)&&(delete d.schema.examples,delete d.schema.default),t.io==="input"&&d.schema._prefault&&((r=d.schema).default??(r.default=d.schema._prefault)),delete d.schema._prefault,t.seen.get(e).schema}function _p(e,t){var d,g,p,_;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const S of e.seen.entries()){const k=(d=e.metadataRegistry.get(S[0]))==null?void 0:d.id;if(k){const h=r.get(k);if(h&&h!==S[0])throw new Error(`Duplicate schema id "${k}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(k,S[0])}}const i=S=>{var c;const k=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const u=(c=e.external.registry.get(S[0]))==null?void 0:c.id,f=e.external.uri??(o=>o);if(u)return{ref:f(u)};const s=S[1].defId??S[1].schema.id??`schema${e.counter++}`;return S[1].defId=s,{defId:s,ref:`${f("__shared")}#/${k}/${s}`}}if(S[1]===n)return{ref:"#"};const y=`#/${k}/`,b=S[1].schema.id??`__schema${e.counter++}`;return{defId:b,ref:y+b}},l=S=>{if(S[1].schema.$ref)return;const k=S[1],{ref:h,defId:y}=i(S);k.def={...k.schema},y&&(k.defId=y);const b=k.schema;for(const c in b)delete b[c];b.$ref=h};if(e.cycles==="throw")for(const S of e.seen.entries()){const k=S[1];if(k.cycle)throw new Error(`Cycle detected: #/${(g=k.cycle)==null?void 0:g.join("/")}/<root>
43
+ `)}y.write("payload.value = newResult;"),y.write("return payload;");const a=y.compile();return(s,m)=>a(h,s,m)};let l;const d=Co,g=!Bg.jitless,_=g&&Qw.value,S=t.catchall;let k;e._zod.parse=(h,y)=>{k??(k=r.value);const b=h.value;return d(b)?g&&_&&(y==null?void 0:y.async)===!1&&y.jitless!==!0?(l||(l=i(t.shape)),h=l(h,y),S?ap([],b,h,y,k,e):h):n(h,y):(h.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),h)}});function op(e,t,n,r){for(const l of e)if(l.issues.length===0)return t.value=l.value,t;const i=e.filter(l=>!Pa(l));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(l=>l.issues.map(d=>as(d,r,rs())))}),t)}const lp=ve("$ZodUnion",(e,t)=>{on.init(e,t),Ht(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Ht(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Ht(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Ht(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(l=>l._zod.pattern);return new RegExp(`^(${i.map(l=>fd(l.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,l)=>{if(n)return r(i,l);let d=!1;const g=[];for(const p of t.options){const _=p._zod.run({value:i.value,issues:[]},l);if(_ instanceof Promise)g.push(_),d=!0;else{if(_.issues.length===0)return _;g.push(_)}}return d?Promise.all(g).then(p=>op(p,i,e,l)):op(g,i,e,l)}}),Bb=ve("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,lp.init(e,t);const n=e._zod.parse;Ht(e._zod,"propValues",()=>{const i={};for(const l of t.options){const d=l._zod.propValues;if(!d||Object.keys(d).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const[g,p]of Object.entries(d)){i[g]||(i[g]=new Set);for(const _ of p)i[g].add(_)}}return i});const r=zl(()=>{var d;const i=t.options,l=new Map;for(const g of i){const p=(d=g._zod.propValues)==null?void 0:d[t.discriminator];if(!p||p.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(g)}"`);for(const _ of p){if(l.has(_))throw new Error(`Duplicate discriminator value "${String(_)}"`);l.set(_,g)}}return l});e._zod.parse=(i,l)=>{const d=i.value;if(!Co(d))return i.issues.push({code:"invalid_type",expected:"object",input:d,inst:e}),i;const g=r.value.get(d==null?void 0:d[t.discriminator]);return g?g._zod.run(i,l):t.unionFallback?n(i,l):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:d,path:[t.discriminator],inst:e}),i)}}),zb=ve("$ZodIntersection",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,l=t.left._zod.run({value:i,issues:[]},r),d=t.right._zod.run({value:i,issues:[]},r);return l instanceof Promise||d instanceof Promise?Promise.all([l,d]).then(([p,_])=>cp(n,p,_)):cp(n,l,d)}});function vd(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ta(e)&&Ta(t)){const n=Object.keys(t),r=Object.keys(e).filter(l=>n.indexOf(l)!==-1),i={...e,...t};for(const l of r){const d=vd(e[l],t[l]);if(!d.valid)return{valid:!1,mergeErrorPath:[l,...d.mergeErrorPath]};i[l]=d.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],l=t[r],d=vd(i,l);if(!d.valid)return{valid:!1,mergeErrorPath:[r,...d.mergeErrorPath]};n.push(d.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function cp(e,t,n){const r=new Map;let i;for(const g of t.issues)if(g.code==="unrecognized_keys"){i??(i=g);for(const p of g.keys)r.has(p)||r.set(p,{}),r.get(p).l=!0}else e.issues.push(g);for(const g of n.issues)if(g.code==="unrecognized_keys")for(const p of g.keys)r.has(p)||r.set(p,{}),r.get(p).r=!0;else e.issues.push(g);const l=[...r].filter(([,g])=>g.l&&g.r).map(([g])=>g);if(l.length&&i&&e.issues.push({...i,keys:l}),Pa(e))return e;const d=vd(t.value,n.value);if(!d.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(d.mergeErrorPath)}`);return e.value=d.data,e}const Vb=ve("$ZodRecord",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Ta(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;const l=[],d=t.keyType._zod.values;if(d){n.value={};const g=new Set;for(const _ of d)if(typeof _=="string"||typeof _=="number"||typeof _=="symbol"){g.add(typeof _=="number"?_.toString():_);const S=t.valueType._zod.run({value:i[_],issues:[]},r);S instanceof Promise?l.push(S.then(k=>{k.issues.length&&n.issues.push(...Ra(_,k.issues)),n.value[_]=k.value})):(S.issues.length&&n.issues.push(...Ra(_,S.issues)),n.value[_]=S.value)}let p;for(const _ in i)g.has(_)||(p=p??[],p.push(_));p&&p.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:p})}else{n.value={};for(const g of Reflect.ownKeys(i)){if(g==="__proto__")continue;let p=t.keyType._zod.run({value:g,issues:[]},r);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof g=="string"&&Xg.test(g)&&p.issues.length){const k=t.keyType._zod.run({value:Number(g),issues:[]},r);if(k instanceof Promise)throw new Error("Async schemas not supported in object keys currently");k.issues.length===0&&(p=k)}if(p.issues.length){t.mode==="loose"?n.value[g]=i[g]:n.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(k=>as(k,r,rs())),input:g,path:[g],inst:e});continue}const S=t.valueType._zod.run({value:i[g],issues:[]},r);S instanceof Promise?l.push(S.then(k=>{k.issues.length&&n.issues.push(...Ra(g,k.issues)),n.value[p.value]=k.value})):(S.issues.length&&n.issues.push(...Ra(g,S.issues)),n.value[p.value]=S.value)}}return l.length?Promise.all(l).then(()=>n):n}}),Hb=ve("$ZodEnum",(e,t)=>{on.init(e,t);const n=zg(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>e0.has(typeof i)).map(i=>typeof i=="string"?Oa(i):i.toString()).join("|")})$`),e._zod.parse=(i,l)=>{const d=i.value;return r.has(d)||i.issues.push({code:"invalid_value",values:n,input:d,inst:e}),i}}),jb=ve("$ZodLiteral",(e,t)=>{if(on.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Oa(r):r?Oa(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,i)=>{const l=r.value;return n.has(l)||r.issues.push({code:"invalid_value",values:t.values,input:l,inst:e}),r}}),qb=ve("$ZodTransform",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Fg(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(d=>(n.value=d,n));if(i instanceof Promise)throw new Aa;return n.value=i,n}});function up(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const dp=ve("$ZodOptional",(e,t)=>{on.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ht(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ht(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${fd(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(l=>up(l,n.value)):up(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Wb=ve("$ZodExactOptional",(e,t)=>{dp.init(e,t),Ht(e._zod,"values",()=>t.innerType._zod.values),Ht(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Gb=ve("$ZodNullable",(e,t)=>{on.init(e,t),Ht(e._zod,"optin",()=>t.innerType._zod.optin),Ht(e._zod,"optout",()=>t.innerType._zod.optout),Ht(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${fd(n.source)}|null)$`):void 0}),Ht(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Kb=ve("$ZodDefault",(e,t)=>{on.init(e,t),e._zod.optin="optional",Ht(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(l=>fp(l,t)):fp(i,t)}});function fp(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const $b=ve("$ZodPrefault",(e,t)=>{on.init(e,t),e._zod.optin="optional",Ht(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Zb=ve("$ZodNonOptional",(e,t)=>{on.init(e,t),Ht(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(l=>hp(l,e)):hp(i,e)}});function hp(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Yb=ve("$ZodCatch",(e,t)=>{on.init(e,t),Ht(e._zod,"optin",()=>t.innerType._zod.optin),Ht(e._zod,"optout",()=>t.innerType._zod.optout),Ht(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(l=>(n.value=l.value,l.issues.length&&(n.value=t.catchValue({...n,error:{issues:l.issues.map(d=>as(d,r,rs()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(l=>as(l,r,rs()))},input:n.value}),n.issues=[]),n)}}),Jb=ve("$ZodPipe",(e,t)=>{on.init(e,t),Ht(e._zod,"values",()=>t.in._zod.values),Ht(e._zod,"optin",()=>t.in._zod.optin),Ht(e._zod,"optout",()=>t.out._zod.optout),Ht(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const l=t.out._zod.run(n,r);return l instanceof Promise?l.then(d=>Gl(d,t.in,r)):Gl(l,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(l=>Gl(l,t.out,r)):Gl(i,t.out,r)}});function Gl(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Xb=ve("$ZodReadonly",(e,t)=>{on.init(e,t),Ht(e._zod,"propValues",()=>t.innerType._zod.propValues),Ht(e._zod,"values",()=>t.innerType._zod.values),Ht(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),Ht(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(gp):gp(i)}});function gp(e){return e.value=Object.freeze(e.value),e}const Qb=ve("$ZodCustom",(e,t)=>{er.init(e,t),on.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(l=>pp(l,n,r,e));pp(i,n,r,e)}});function pp(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(Io(i))}}var mp;class e2{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function t2(){return new e2}(mp=globalThis).__zod_globalRegistry??(mp.__zod_globalRegistry=t2());const Ao=globalThis.__zod_globalRegistry;function n2(e,t){return new e({type:"string",...st(t)})}function r2(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...st(t)})}function vp(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...st(t)})}function i2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...st(t)})}function s2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...st(t)})}function a2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...st(t)})}function o2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...st(t)})}function l2(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...st(t)})}function c2(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...st(t)})}function u2(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...st(t)})}function d2(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...st(t)})}function f2(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...st(t)})}function h2(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...st(t)})}function g2(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...st(t)})}function p2(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...st(t)})}function m2(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...st(t)})}function v2(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...st(t)})}function y2(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...st(t)})}function _2(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...st(t)})}function w2(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...st(t)})}function b2(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...st(t)})}function S2(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...st(t)})}function E2(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...st(t)})}function k2(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...st(t)})}function C2(e,t){return new e({type:"string",format:"date",check:"string_format",...st(t)})}function I2(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...st(t)})}function A2(e,t){return new e({type:"string",format:"duration",check:"string_format",...st(t)})}function T2(e,t){return new e({type:"number",checks:[],...st(t)})}function O2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...st(t)})}function P2(e,t){return new e({type:"boolean",...st(t)})}function R2(e){return new e({type:"unknown"})}function M2(e,t){return new e({type:"never",...st(t)})}function yp(e,t){return new ep({check:"less_than",...st(t),value:e,inclusive:!1})}function yd(e,t){return new ep({check:"less_than",...st(t),value:e,inclusive:!0})}function _p(e,t){return new tp({check:"greater_than",...st(t),value:e,inclusive:!1})}function _d(e,t){return new tp({check:"greater_than",...st(t),value:e,inclusive:!0})}function wp(e,t){return new K0({check:"multiple_of",...st(t),value:e})}function bp(e,t){return new Z0({check:"max_length",...st(t),maximum:e})}function Kl(e,t){return new Y0({check:"min_length",...st(t),minimum:e})}function Sp(e,t){return new J0({check:"length_equals",...st(t),length:e})}function L2(e,t){return new X0({check:"string_format",format:"regex",...st(t),pattern:e})}function D2(e){return new Q0({check:"string_format",format:"lowercase",...st(e)})}function x2(e){return new eb({check:"string_format",format:"uppercase",...st(e)})}function N2(e,t){return new tb({check:"string_format",format:"includes",...st(t),includes:e})}function U2(e,t){return new nb({check:"string_format",format:"starts_with",...st(t),prefix:e})}function F2(e,t){return new rb({check:"string_format",format:"ends_with",...st(t),suffix:e})}function Ma(e){return new ib({check:"overwrite",tx:e})}function B2(e){return Ma(t=>t.normalize(e))}function z2(){return Ma(e=>e.trim())}function V2(){return Ma(e=>e.toLowerCase())}function H2(){return Ma(e=>e.toUpperCase())}function j2(){return Ma(e=>Xw(e))}function q2(e,t,n){return new e({type:"array",element:t,...st(n)})}function W2(e,t,n){const r=st(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function G2(e,t,n){return new e({type:"custom",check:"custom",fn:t,...st(n)})}function K2(e){const t=$2(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Io(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(Io(i))}},e(n.value,n)));return t}function $2(e,t){const n=new er({check:"custom",...st(t)});return n._zod.check=e,n}function Ep(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Ao,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function bn(e,t,n={path:[],schemaPath:[]}){var S,k;var r;const i=e._zod.def,l=t.seen.get(e);if(l)return l.count++,n.schemaPath.includes(e)&&(l.cycle=n.path),l.schema;const d={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,d);const g=(k=(S=e._zod).toJSONSchema)==null?void 0:k.call(S);if(g)d.schema=g;else{const h={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,d.schema,h);else{const b=d.schema,c=t.processors[i.type];if(!c)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);c(e,t,b,h)}const y=e._zod.parent;y&&(d.ref||(d.ref=y),bn(y,t,h),t.seen.get(y).isParent=!0)}const p=t.metadataRegistry.get(e);return p&&Object.assign(d.schema,p),t.io==="input"&&jn(e)&&(delete d.schema.examples,delete d.schema.default),t.io==="input"&&d.schema._prefault&&((r=d.schema).default??(r.default=d.schema._prefault)),delete d.schema._prefault,t.seen.get(e).schema}function kp(e,t){var d,g,p,_;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const S of e.seen.entries()){const k=(d=e.metadataRegistry.get(S[0]))==null?void 0:d.id;if(k){const h=r.get(k);if(h&&h!==S[0])throw new Error(`Duplicate schema id "${k}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(k,S[0])}}const i=S=>{var c;const k=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const u=(c=e.external.registry.get(S[0]))==null?void 0:c.id,f=e.external.uri??(o=>o);if(u)return{ref:f(u)};const a=S[1].defId??S[1].schema.id??`schema${e.counter++}`;return S[1].defId=a,{defId:a,ref:`${f("__shared")}#/${k}/${a}`}}if(S[1]===n)return{ref:"#"};const y=`#/${k}/`,b=S[1].schema.id??`__schema${e.counter++}`;return{defId:b,ref:y+b}},l=S=>{if(S[1].schema.$ref)return;const k=S[1],{ref:h,defId:y}=i(S);k.def={...k.schema},y&&(k.defId=y);const b=k.schema;for(const c in b)delete b[c];b.$ref=h};if(e.cycles==="throw")for(const S of e.seen.entries()){const k=S[1];if(k.cycle)throw new Error(`Cycle detected: #/${(g=k.cycle)==null?void 0:g.join("/")}/<root>
44
44
 
45
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const S of e.seen.entries()){const k=S[1];if(t===S[0]){l(S);continue}if(e.external){const y=(p=e.external.registry.get(S[0]))==null?void 0:p.id;if(t!==S[0]&&y){l(S);continue}}if((_=e.metadataRegistry.get(S[0]))==null?void 0:_.id){l(S);continue}if(k.cycle){l(S);continue}if(k.count>1&&e.reused==="ref"){l(S);continue}}}function wp(e,t){var d,g,p;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=_=>{const S=e.seen.get(_);if(S.ref===null)return;const k=S.def??S.schema,h={...k},y=S.ref;if(S.ref=null,y){r(y);const c=e.seen.get(y),u=c.schema;if(u.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(k.allOf=k.allOf??[],k.allOf.push(u)):Object.assign(k,u),Object.assign(k,h),_._zod.parent===y)for(const s in k)s==="$ref"||s==="allOf"||s in h||delete k[s];if(u.$ref&&c.def)for(const s in k)s==="$ref"||s==="allOf"||s in c.def&&JSON.stringify(k[s])===JSON.stringify(c.def[s])&&delete k[s]}const b=_._zod.parent;if(b&&b!==y){r(b);const c=e.seen.get(b);if(c!=null&&c.schema.$ref&&(k.$ref=c.schema.$ref,c.def))for(const u in k)u==="$ref"||u==="allOf"||u in c.def&&JSON.stringify(k[u])===JSON.stringify(c.def[u])&&delete k[u]}e.override({zodSchema:_,jsonSchema:k,path:S.path??[]})};for(const _ of[...e.seen.entries()].reverse())r(_[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,(d=e.external)!=null&&d.uri){const _=(g=e.external.registry.get(t))==null?void 0:g.id;if(!_)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(_)}Object.assign(i,n.def??n.schema);const l=((p=e.external)==null?void 0:p.defs)??{};for(const _ of e.seen.entries()){const S=_[1];S.def&&S.defId&&(l[S.defId]=S.def)}e.external||Object.keys(l).length>0&&(e.target==="draft-2020-12"?i.$defs=l:i.definitions=l);try{const _=JSON.parse(JSON.stringify(i));return Object.defineProperty(_,"~standard",{value:{...t["~standard"],jsonSchema:{input:Gl(t,"input",e.processors),output:Gl(t,"output",e.processors)}},enumerable:!1,writable:!1}),_}catch{throw new Error("Error converting schema to JSON.")}}function Hn(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Hn(r.element,n);if(r.type==="set")return Hn(r.valueType,n);if(r.type==="lazy")return Hn(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Hn(r.innerType,n);if(r.type==="intersection")return Hn(r.left,n)||Hn(r.right,n);if(r.type==="record"||r.type==="map")return Hn(r.keyType,n)||Hn(r.valueType,n);if(r.type==="pipe")return Hn(r.in,n)||Hn(r.out,n);if(r.type==="object"){for(const i in r.shape)if(Hn(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(Hn(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(Hn(i,n))return!0;return!!(r.rest&&Hn(r.rest,n))}return!1}const V2=(e,t={})=>n=>{const r=yp({...n,processors:t});return _n(e,r),_p(r,e),wp(r,e)},Gl=(e,t,n={})=>r=>{const{libraryOptions:i,target:l}=r??{},d=yp({...i??{},target:l,io:t,processors:n});return _n(e,d),_p(d,e),wp(d,e)},H2={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},j2=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:l,maximum:d,format:g,patterns:p,contentEncoding:_}=e._zod.bag;if(typeof l=="number"&&(i.minLength=l),typeof d=="number"&&(i.maxLength=d),g&&(i.format=H2[g]??g,i.format===""&&delete i.format,g==="time"&&delete i.format),_&&(i.contentEncoding=_),p&&p.size>0){const S=[...p];S.length===1?i.pattern=S[0].source:S.length>1&&(i.allOf=[...S.map(k=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:k.source}))])}},q2=(e,t,n,r)=>{const i=n,{minimum:l,maximum:d,format:g,multipleOf:p,exclusiveMaximum:_,exclusiveMinimum:S}=e._zod.bag;typeof g=="string"&&g.includes("int")?i.type="integer":i.type="number",typeof S=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=S,i.exclusiveMinimum=!0):i.exclusiveMinimum=S),typeof l=="number"&&(i.minimum=l,typeof S=="number"&&t.target!=="draft-04"&&(S>=l?delete i.minimum:delete i.exclusiveMinimum)),typeof _=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=_,i.exclusiveMaximum=!0):i.exclusiveMaximum=_),typeof d=="number"&&(i.maximum=d,typeof _=="number"&&t.target!=="draft-04"&&(_<=d?delete i.maximum:delete i.exclusiveMaximum)),typeof p=="number"&&(i.multipleOf=p)},G2=(e,t,n,r)=>{n.type="boolean"},W2=(e,t,n,r)=>{n.not={}},K2=(e,t,n,r)=>{},$2=(e,t,n,r)=>{const i=e._zod.def,l=xg(i.entries);l.every(d=>typeof d=="number")&&(n.type="number"),l.every(d=>typeof d=="string")&&(n.type="string"),n.enum=l},Z2=(e,t,n,r)=>{const i=e._zod.def,l=[];for(const d of i.values)if(d===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof d=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");l.push(Number(d))}else l.push(d);if(l.length!==0)if(l.length===1){const d=l[0];n.type=d===null?"null":typeof d,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[d]:n.const=d}else l.every(d=>typeof d=="number")&&(n.type="number"),l.every(d=>typeof d=="string")&&(n.type="string"),l.every(d=>typeof d=="boolean")&&(n.type="boolean"),l.every(d=>d===null)&&(n.type="null"),n.enum=l},Y2=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},J2=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},X2=(e,t,n,r)=>{const i=n,l=e._zod.def,{minimum:d,maximum:g}=e._zod.bag;typeof d=="number"&&(i.minItems=d),typeof g=="number"&&(i.maxItems=g),i.type="array",i.items=_n(l.element,t,{...r,path:[...r.path,"items"]})},Q2=(e,t,n,r)=>{var _;const i=n,l=e._zod.def;i.type="object",i.properties={};const d=l.shape;for(const S in d)i.properties[S]=_n(d[S],t,{...r,path:[...r.path,"properties",S]});const g=new Set(Object.keys(d)),p=new Set([...g].filter(S=>{const k=l.shape[S]._zod;return t.io==="input"?k.optin===void 0:k.optout===void 0}));p.size>0&&(i.required=Array.from(p)),((_=l.catchall)==null?void 0:_._zod.def.type)==="never"?i.additionalProperties=!1:l.catchall?l.catchall&&(i.additionalProperties=_n(l.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},eS=(e,t,n,r)=>{const i=e._zod.def,l=i.inclusive===!1,d=i.options.map((g,p)=>_n(g,t,{...r,path:[...r.path,l?"oneOf":"anyOf",p]}));l?n.oneOf=d:n.anyOf=d},tS=(e,t,n,r)=>{const i=e._zod.def,l=_n(i.left,t,{...r,path:[...r.path,"allOf",0]}),d=_n(i.right,t,{...r,path:[...r.path,"allOf",1]}),g=_=>"allOf"in _&&Object.keys(_).length===1,p=[...g(l)?l.allOf:[l],...g(d)?d.allOf:[d]];n.allOf=p},nS=(e,t,n,r)=>{const i=n,l=e._zod.def;i.type="object";const d=l.keyType,g=d._zod.bag,p=g==null?void 0:g.patterns;if(l.mode==="loose"&&p&&p.size>0){const S=_n(l.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});i.patternProperties={};for(const k of p)i.patternProperties[k.source]=S}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=_n(l.keyType,t,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=_n(l.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const _=d._zod.values;if(_){const S=[..._].filter(k=>typeof k=="string"||typeof k=="number");S.length>0&&(i.required=S)}},rS=(e,t,n,r)=>{const i=e._zod.def,l=_n(i.innerType,t,r),d=t.seen.get(e);t.target==="openapi-3.0"?(d.ref=i.innerType,n.nullable=!0):n.anyOf=[l,{type:"null"}]},iS=(e,t,n,r)=>{const i=e._zod.def;_n(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType},aS=(e,t,n,r)=>{const i=e._zod.def;_n(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},sS=(e,t,n,r)=>{const i=e._zod.def;_n(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},oS=(e,t,n,r)=>{const i=e._zod.def;_n(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType;let d;try{d=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=d},lS=(e,t,n,r)=>{const i=e._zod.def,l=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;_n(l,t,r);const d=t.seen.get(e);d.ref=l},cS=(e,t,n,r)=>{const i=e._zod.def;_n(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType,n.readOnly=!0},bp=(e,t,n,r)=>{const i=e._zod.def;_n(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType},uS=ye("ZodISODateTime",(e,t)=>{d0.init(e,t),cn.init(e,t)});function dS(e){return v2(uS,e)}const fS=ye("ZodISODate",(e,t)=>{f0.init(e,t),cn.init(e,t)});function hS(e){return y2(fS,e)}const gS=ye("ZodISOTime",(e,t)=>{h0.init(e,t),cn.init(e,t)});function pS(e){return _2(gS,e)}const mS=ye("ZodISODuration",(e,t)=>{g0.init(e,t),cn.init(e,t)});function vS(e){return w2(mS,e)}const Pr=ye("ZodError",(e,t)=>{Hg.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>ib(e,n)},flatten:{value:n=>rb(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ad,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ad,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),yS=ud(Pr),_S=dd(Pr),wS=Bl(Pr),bS=zl(Pr),SS=ob(Pr),ES=lb(Pr),kS=cb(Pr),CS=ub(Pr),IS=db(Pr),AS=fb(Pr),TS=hb(Pr),OS=gb(Pr),ln=ye("ZodType",(e,t)=>(on.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Gl(e,"input"),output:Gl(e,"output")}}),e.toJSONSchema=V2(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(ra(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>ia(e,n,r),e.brand=()=>e,e.register=(n,r)=>(n.add(e,r),e),e.parse=(n,r)=>yS(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>wS(e,n,r),e.parseAsync=async(n,r)=>_S(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>bS(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>SS(e,n,r),e.decode=(n,r)=>ES(e,n,r),e.encodeAsync=async(n,r)=>kS(e,n,r),e.decodeAsync=async(n,r)=>CS(e,n,r),e.safeEncode=(n,r)=>IS(e,n,r),e.safeDecode=(n,r)=>AS(e,n,r),e.safeEncodeAsync=async(n,r)=>TS(e,n,r),e.safeDecodeAsync=async(n,r)=>OS(e,n,r),e.refine=(n,r)=>e.check(SE(n,r)),e.superRefine=n=>e.check(EE(n)),e.overwrite=n=>e.check(Rs(n)),e.optional=()=>Pp(e),e.exactOptional=()=>cE(e),e.nullable=()=>Rp(e),e.nullish=()=>Pp(Rp(e)),e.nonoptional=n=>pE(e,n),e.array=()=>Ip(e),e.or=n=>Io([e,n]),e.and=n=>rE(e,n),e.transform=n=>Lp(e,oE(n)),e.default=n=>fE(e,n),e.prefault=n=>gE(e,n),e.catch=n=>vE(e,n),e.pipe=n=>Lp(e,n),e.readonly=()=>wE(e),e.describe=n=>{const r=e.clone();return Co.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=Co.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Co.get(e);const r=e.clone();return Co.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Sp=ye("_ZodString",(e,t)=>{fd.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(r,i,l)=>j2(e,r,i);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(I2(...r)),e.includes=(...r)=>e.check(O2(...r)),e.startsWith=(...r)=>e.check(P2(...r)),e.endsWith=(...r)=>e.check(R2(...r)),e.min=(...r)=>e.check(ql(...r)),e.max=(...r)=>e.check(mp(...r)),e.length=(...r)=>e.check(vp(...r)),e.nonempty=(...r)=>e.check(ql(1,...r)),e.lowercase=r=>e.check(A2(r)),e.uppercase=r=>e.check(T2(r)),e.trim=()=>e.check(L2()),e.normalize=(...r)=>e.check(M2(...r)),e.toLowerCase=()=>e.check(D2()),e.toUpperCase=()=>e.check(N2()),e.slugify=()=>e.check(x2())}),PS=ye("ZodString",(e,t)=>{fd.init(e,t),Sp.init(e,t),e.email=n=>e.check(Y0(RS,n)),e.url=n=>e.check(t2(MS,n)),e.jwt=n=>e.check(m2(KS,n)),e.emoji=n=>e.check(n2(LS,n)),e.guid=n=>e.check(fp(Ep,n)),e.uuid=n=>e.check(J0(Wl,n)),e.uuidv4=n=>e.check(X0(Wl,n)),e.uuidv6=n=>e.check(Q0(Wl,n)),e.uuidv7=n=>e.check(e2(Wl,n)),e.nanoid=n=>e.check(r2(DS,n)),e.guid=n=>e.check(fp(Ep,n)),e.cuid=n=>e.check(i2(NS,n)),e.cuid2=n=>e.check(a2(xS,n)),e.ulid=n=>e.check(s2(US,n)),e.base64=n=>e.check(h2(qS,n)),e.base64url=n=>e.check(g2(GS,n)),e.xid=n=>e.check(o2(FS,n)),e.ksuid=n=>e.check(l2(BS,n)),e.ipv4=n=>e.check(c2(zS,n)),e.ipv6=n=>e.check(u2(VS,n)),e.cidrv4=n=>e.check(d2(HS,n)),e.cidrv6=n=>e.check(f2(jS,n)),e.e164=n=>e.check(p2(WS,n)),e.datetime=n=>e.check(dS(n)),e.date=n=>e.check(hS(n)),e.time=n=>e.check(pS(n)),e.duration=n=>e.check(vS(n))});function se(e){return Z0(PS,e)}const cn=ye("ZodStringFormat",(e,t)=>{en.init(e,t),Sp.init(e,t)}),RS=ye("ZodEmail",(e,t)=>{n0.init(e,t),cn.init(e,t)}),Ep=ye("ZodGUID",(e,t)=>{e0.init(e,t),cn.init(e,t)}),Wl=ye("ZodUUID",(e,t)=>{t0.init(e,t),cn.init(e,t)}),MS=ye("ZodURL",(e,t)=>{r0.init(e,t),cn.init(e,t)}),LS=ye("ZodEmoji",(e,t)=>{i0.init(e,t),cn.init(e,t)}),DS=ye("ZodNanoID",(e,t)=>{a0.init(e,t),cn.init(e,t)}),NS=ye("ZodCUID",(e,t)=>{s0.init(e,t),cn.init(e,t)}),xS=ye("ZodCUID2",(e,t)=>{o0.init(e,t),cn.init(e,t)}),US=ye("ZodULID",(e,t)=>{l0.init(e,t),cn.init(e,t)}),FS=ye("ZodXID",(e,t)=>{c0.init(e,t),cn.init(e,t)}),BS=ye("ZodKSUID",(e,t)=>{u0.init(e,t),cn.init(e,t)}),zS=ye("ZodIPv4",(e,t)=>{p0.init(e,t),cn.init(e,t)}),VS=ye("ZodIPv6",(e,t)=>{m0.init(e,t),cn.init(e,t)}),HS=ye("ZodCIDRv4",(e,t)=>{v0.init(e,t),cn.init(e,t)}),jS=ye("ZodCIDRv6",(e,t)=>{y0.init(e,t),cn.init(e,t)}),qS=ye("ZodBase64",(e,t)=>{_0.init(e,t),cn.init(e,t)}),GS=ye("ZodBase64URL",(e,t)=>{b0.init(e,t),cn.init(e,t)}),WS=ye("ZodE164",(e,t)=>{S0.init(e,t),cn.init(e,t)}),KS=ye("ZodJWT",(e,t)=>{k0.init(e,t),cn.init(e,t)}),kp=ye("ZodNumber",(e,t)=>{Qg.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(r,i,l)=>q2(e,r,i),e.gt=(r,i)=>e.check(gp(r,i)),e.gte=(r,i)=>e.check(pd(r,i)),e.min=(r,i)=>e.check(pd(r,i)),e.lt=(r,i)=>e.check(hp(r,i)),e.lte=(r,i)=>e.check(gd(r,i)),e.max=(r,i)=>e.check(gd(r,i)),e.int=r=>e.check(Cp(r)),e.safe=r=>e.check(Cp(r)),e.positive=r=>e.check(gp(0,r)),e.nonnegative=r=>e.check(pd(0,r)),e.negative=r=>e.check(hp(0,r)),e.nonpositive=r=>e.check(gd(0,r)),e.multipleOf=(r,i)=>e.check(pp(r,i)),e.step=(r,i)=>e.check(pp(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Ga(e){return b2(kp,e)}const $S=ye("ZodNumberFormat",(e,t)=>{C0.init(e,t),kp.init(e,t)});function Cp(e){return S2($S,e)}const ZS=ye("ZodBoolean",(e,t)=>{I0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>G2(e,n,r)});function ki(e){return E2(ZS,e)}const YS=ye("ZodUnknown",(e,t)=>{A0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>K2()});function md(){return k2(YS)}const JS=ye("ZodNever",(e,t)=>{T0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>W2(e,n,r)});function XS(e){return C2(JS,e)}const QS=ye("ZodArray",(e,t)=>{O0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>X2(e,n,r,i),e.element=t.element,e.min=(n,r)=>e.check(ql(n,r)),e.nonempty=n=>e.check(ql(1,n)),e.max=(n,r)=>e.check(mp(n,r)),e.length=(n,r)=>e.check(vp(n,r)),e.unwrap=()=>e.element});function Ip(e,t){return U2(QS,e,t)}const Ap=ye("ZodObject",(e,t)=>{R0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Q2(e,n,r,i),qt(e,"shape",()=>t.shape),e.keyof=()=>Tp(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:md()}),e.loose=()=>e.clone({...e._zod.def,catchall:md()}),e.strict=()=>e.clone({...e._zod.def,catchall:XS()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Xw(e,n),e.safeExtend=n=>Qw(e,n),e.merge=n=>eb(e,n),e.pick=n=>Yw(e,n),e.omit=n=>Jw(e,n),e.partial=(...n)=>tb(Op,e,n[0]),e.required=(...n)=>nb(Mp,e,n[0])});function Qn(e,t){const n={type:"object",shape:e??{},...st(t)};return new Ap(n)}function eE(e,t){return new Ap({type:"object",shape:e,catchall:md(),...st(t)})}const tE=ye("ZodUnion",(e,t)=>{M0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>eS(e,n,r,i),e.options=t.options});function Io(e,t){return new tE({type:"union",options:e,...st(t)})}const nE=ye("ZodIntersection",(e,t)=>{L0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>tS(e,n,r,i)});function rE(e,t){return new nE({type:"intersection",left:e,right:t})}const iE=ye("ZodRecord",(e,t)=>{D0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>nS(e,n,r,i),e.keyType=t.keyType,e.valueType=t.valueType});function vd(e,t,n){return new iE({type:"record",keyType:e,valueType:t,...st(n)})}const yd=ye("ZodEnum",(e,t)=>{N0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(r,i,l)=>$2(e,r,i),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const l={};for(const d of r)if(n.has(d))l[d]=t.entries[d];else throw new Error(`Key ${d} not found in enum`);return new yd({...t,checks:[],...st(i),entries:l})},e.exclude=(r,i)=>{const l={...t.entries};for(const d of r)if(n.has(d))delete l[d];else throw new Error(`Key ${d} not found in enum`);return new yd({...t,checks:[],...st(i),entries:l})}});function Tp(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new yd({type:"enum",entries:n,...st(t)})}const aE=ye("ZodLiteral",(e,t)=>{x0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Z2(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Wa(e,t){return new aE({type:"literal",values:Array.isArray(e)?e:[e],...st(t)})}const sE=ye("ZodTransform",(e,t)=>{U0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>J2(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Dg(e.constructor.name);n.addIssue=l=>{if(typeof l=="string")n.issues.push(ko(l,n.value,t));else{const d=l;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=n.value),d.inst??(d.inst=e),n.issues.push(ko(d))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(l=>(n.value=l,n)):(n.value=i,n)}});function oE(e){return new sE({type:"transform",transform:e})}const Op=ye("ZodOptional",(e,t)=>{sp.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>bp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Pp(e){return new Op({type:"optional",innerType:e})}const lE=ye("ZodExactOptional",(e,t)=>{F0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>bp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function cE(e){return new lE({type:"optional",innerType:e})}const uE=ye("ZodNullable",(e,t)=>{B0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>rS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Rp(e){return new uE({type:"nullable",innerType:e})}const dE=ye("ZodDefault",(e,t)=>{z0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>aS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function fE(e,t){return new dE({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():zg(t)}})}const hE=ye("ZodPrefault",(e,t)=>{V0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>sS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function gE(e,t){return new hE({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():zg(t)}})}const Mp=ye("ZodNonOptional",(e,t)=>{H0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>iS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function pE(e,t){return new Mp({type:"nonoptional",innerType:e,...st(t)})}const mE=ye("ZodCatch",(e,t)=>{j0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>oS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function vE(e,t){return new mE({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const yE=ye("ZodPipe",(e,t)=>{q0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>lS(e,n,r,i),e.in=t.in,e.out=t.out});function Lp(e,t){return new yE({type:"pipe",in:e,out:t})}const _E=ye("ZodReadonly",(e,t)=>{G0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function wE(e){return new _E({type:"readonly",innerType:e})}const bE=ye("ZodCustom",(e,t)=>{W0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Y2(e,n)});function SE(e,t={}){return F2(bE,e,t)}function EE(e){return B2(e)}const kE=Qn({mode:Tp(["visible","invisible"]).optional()}).strict(),Dp=Qn({termsAndConditions:se()}).strict();Dp.partial();const Kl=or();function CE(e){return e?(Dp.parse(e),Kl.set(e)):Kl.set(void 0),Kl}const _d={adminRegInvalidInviteHeader:"Invitation not valid",adminRegInvalidInviteDescription:"This invitation can't be used. Please contact your administrator or <a href='https://support.pingidentity.com/' target='_blank' rel='noopener noreferrer'>Ping Support</a> for help.",adminRegOtpDescription:"We've sent a 6-digit code to your email. Enter it below to continue.",adminRegOtpError:"That code isn't correct or may have expired. Please try again.",adminRegOtpHeader:"Admin Invite Code",adminRegOtpResendPrompt:"Didn't get a code?",adminRegOtpResend:"Resend",adminRegPrivacyPolicyAgreement:"I agree to the Ping Identity <a target='_blank' rel='noopener noreferrer' href='https://www.pingidentity.com/en-us/docs/legal/privacy'>privacy policy</a>.",adminRegPrivacyPolicyDescription:"Select your region of residence to review the applicable privacy policy.",adminRegPrivacyPolicyHeader:"Accept Privacy Policy",adminRegPrivacyPolicySelectRegion:"Region of residence",adminRegSendVerificationCode:"Send Verification Code",adminRegWelcomeDescriptionPre:"You've been invited to administer the",adminRegWelcomeDescriptionPost:"tenant in PingOne Advanced Identity Cloud.",adminRegWelcomeVerification:"Before you can begin, we need to verify your email address. Click the button below and we'll send you a one-time verification code.",adminRegWelcomeHeader:"Welcome to PingOne Advanced Identity Cloud",alreadyHaveAnAccount:"Already have an account? <a href='?journey'>Sign in here!</a>",backToDefault:"Back to Sign In",backToLogin:"Back to Sign In",captchaError:"CAPTCHA verification failed. Please try again.",closeModal:"Close",charactersCannotRepeatMoreThan:"A character cannot repeat more than {max} times",charactersCannotRepeatMoreThanCaseInsensitive:"A character cannot repeat more than {max} times (case insensitive)",checkYourEmail:"Check your email",chooseDifferentUsername:"Please choose a different username.",chooseYourDeviceForIdentityVerification:"Choose your device for identity verification.",confirmPassword:"Confirm password",constraintViolationForPassword:"Password does not meet the requirements.",constraintViolationForValue:"Value does not meet the requirements.",continueButton:"Continue",continueWith:"Continue with ",downloadTheApp:"Download the app",getAuthenticatorApp:"Set up the ForgeRock Authenticator",getAuthenticatorAppDescription:"To get started, you need to register your device using the ForgeRock Authenticator app.",getAuthenticatorAppLinks:"Get the app from the <a href='https://itunes.apple.com/app/forgerock-authenticator/id1038442926' target='_blank' rel='noopener noreferrer'>Apple App Store</a> or on <a href='https://play.google.com/store/apps/details?id=com.forgerock.authenticator' target='_blank' rel='noopener noreferrer'>Google Play Store</a>",copyAndPasteUrlBelow:"Or, copy and paste the URL below into your authenticator app.",copyUrl:"Copy URL",customSecurityQuestion:"Custom security question",deviceName:"Device name",doesNotMeetMinimumCharacterLength:"At least {min} character(s)",dontGetLockedOut:"Don't get locked out of your account!",dontHaveAnAccount:"No account? <a href='?journey=Registration'>Register here!</a>",ensurePasswordIsMoreThan:"Password must contain at least {minPasswordLength} character(s).",ensurePasswordHasOne:"Password must contain at least 1 capital letter, 1 number, and 1 special character.",enterVerificationCode:"Enter verification code",exceedsMaximumCharacterLength:"Exceeds maximum of {max} characters",fieldCanNotContainFollowingCharacters:"Cannot contain these character(s): {chars}",fieldCanNotContainFollowingValues:"Cannot contain these value(s): {fields}",forgotPassword:"Forgot password?",forgotUsername:"Forgot username?",givenName:"First name",inputRequiredError:"Value is required",loading:"Loading ...",loginButton:"Sign in",loginFailure:"Sign in failed",loginHeader:"Sign in",loginSuccess:"Sign in successful!",mail:"Email address",minimumNumberOfNumbers:"At least {num} number(s)",minimumNumberOfLowercase:"At least {num} lowercase letter(s)",minimumNumberOfUppercase:"At least {num} uppercase letter(s)",minimumNumberOfSymbols:"At least {num} symbol(s)",nameCallback:"Username",nameYourDevice:"Name your device",next:"Next",nextButton:"Next",notToExceedMaximumCharacterLength:"No more than {max} characters",noLessThanMinimumCharacterLength:"At least {min} character(s)",onMobileOpenInAuthenticator:"On mobile? Open link in Authenticator.",optionallyNameDevice:"Optionally name your device",passwordCallback:"Password",passwordCannotContainCommonPasswords:"Password cannot contain common passwords",passwordCannotContainCommonPasswordsOrBeReversible:"Password cannot contain common passwords or reversible text",passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan:"Password cannot contain common passwords or reversible text less than {min} characters",passwordRequirements:"Password requirements:",pleaseCheckValue:"Please check this value",pleaseConfirm:"Please confirm",preferencesMarketing:"Send me special offers and services",preferencesUpdates:"Send me news and updates",provideCustomQuestion:"Provide custom security question",qrCodeNotWorking:"Not working or need an alternative method?",qrCodeFailedToRender:"QR Code failed to render. Please notify your support administrator. You are welcome to use the alternative methods below.",qrCodeImportFailure:"We are unable to render your QR Code. Please use one of the alternative methods below.",redirectingTo:"Redirecting you to",registerButton:"Register",registerHeader:"Register",registerSuccess:"Registration successful!",requiredField:"Value is required",registerYourDevice:"Register {name}",scanQrCodeWithAuthenticator:"Scan the QR code image below with the ForgeRock Authenticator app to register your device with your login.",securityAnswer:"Security answer",setupTwoStepVerification:"Set up 2-step verification",setupTwoStepVerificationButton:"Set up",setupTwoStepVerificationDescription:"To protect your account, add a second authentication method.",setupTwoStepVerificationWarning:"Starting April 2, 2024, you must sign in using 2-step verification. <a class='alert-link' href='https://backstage.forgerock.com/docs/idcloud/latest/product-information/migration-dependent-features/tenant-administrator-mandatory-2-step-verification-faq.html' target='_blank' rel='noopener noreferrer'>Learn more</a>.",skipForNow:"Skip for now",securityQuestions:"Security question(s)",securityQuestionsPrompt:"Provide security question(s) and answer(s):",shouldContainANumber:"Should contain a number",shouldContainAnUppercase:"Should contain an uppercase letter",shouldContainALowercase:"Should contain a lowercase letter",shouldContainASymbol:"Should contain a symbol",showPassword:"Show password",signalsEvaluation:"Evaluating device information.",skipButton:"Skip",sn:"Last name",submit:"Submit",submitButton:"Submit",successMessage:"Success!",termsAndConditions:"Please accept our Terms & Conditions",termsAndConditionsLinkText:"View full Terms & Conditions",tryAgain:"Please try again",twoFactorAuthentication:"Two factor authentication",useThisNewMfaToHelpVerifyYourIdentity:"Use this new device or Multi-Factor Authentication method to help verify your identity.",useValidEmail:"Please use a valid email address.",unrecoverableError:"There was an error in the form submission.",unknownLoginError:"Unknown login failure has occurred.",unknownNetworkError:"Unknown network request failure has occurred.",url:"URL:",useDeviceForIdentityVerification:"Use your device for identity verification.",useOneOfTheseCodes:"Use one of these codes to authenticate if you lose your device, which has been named: <em>{name}</em>",userName:"Username",usernameRequirements:"Username requirements:",useTheAuthenticatorAppOnYourPhone:"Find the verification code using the authenticator app on your phone.",validatedCreatePasswordCallback:"Password",validatedCreateUsernameCallback:"Username",valueRequirements:"Value requirements:",verifyYourIdentity:"Verify your identity",yourDevice:"Your device",yourMultiFactorAuthIsEnabled:"Your new device or MFA is enabled",yourRecoveryCodesToAccessAccountForLostDevice:"If you lose your device, or don’t have it with you, a recovery code is the only way to sign in to your account with 2-step verification enabled. It’s strongly recommended that you print and store these codes in a safe place. <b>Each code can only be used once</b>."},wd=Qn({adminRegInvalidInviteHeader:se(),adminRegInvalidInviteDescription:se(),adminRegOtpDescription:se(),adminRegOtpError:se(),adminRegOtpHeader:se(),adminRegOtpResendPrompt:se(),adminRegOtpResend:se(),adminRegPrivacyPolicyAgreement:se(),adminRegPrivacyPolicyDescription:se(),adminRegPrivacyPolicyHeader:se(),adminRegPrivacyPolicySelectRegion:se(),adminRegSendVerificationCode:se(),adminRegWelcomeDescriptionPre:se(),adminRegWelcomeDescriptionPost:se(),adminRegWelcomeVerification:se(),adminRegWelcomeHeader:se(),alreadyHaveAnAccount:se(),backToDefault:se(),backToLogin:se(),captchaError:se(),dontHaveAnAccount:se(),closeModal:se(),charactersCannotRepeatMoreThan:se(),charactersCannotRepeatMoreThanCaseInsensitive:se(),checkYourEmail:se(),chooseDifferentUsername:se(),chooseYourDeviceForIdentityVerification:se(),confirmPassword:se(),constraintViolationForPassword:se(),constraintViolationForValue:se(),continueButton:se(),continueWith:se(),downloadTheApp:se(),getAuthenticatorApp:se(),getAuthenticatorAppDescription:se(),getAuthenticatorAppLinks:se(),copyUrl:se(),copyAndPasteUrlBelow:se(),customSecurityQuestion:se(),dontGetLockedOut:se(),doesNotMeetMinimumCharacterLength:se(),deviceName:se(),ensurePasswordIsMoreThan:se(),ensurePasswordHasOne:se(),enterVerificationCode:se(),exceedsMaximumCharacterLength:se(),fieldCanNotContainFollowingCharacters:se(),fieldCanNotContainFollowingValues:se(),forgotPassword:se(),forgotUsername:se(),givenName:se(),inputRequiredError:se(),loading:se(),loginButton:se(),loginFailure:se(),loginHeader:se(),loginSuccess:se(),mail:se(),minimumNumberOfNumbers:se(),minimumNumberOfLowercase:se(),minimumNumberOfUppercase:se(),minimumNumberOfSymbols:se(),nameCallback:se(),nameYourDevice:se(),next:se(),nextButton:se(),notToExceedMaximumCharacterLength:se(),noLessThanMinimumCharacterLength:se(),useOneOfTheseCodes:se(),onMobileOpenInAuthenticator:se(),optionallyNameDevice:se(),passwordCallback:se(),passwordCannotContainCommonPasswords:se(),passwordCannotContainCommonPasswordsOrBeReversible:se(),passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan:se(),passwordRequirements:se(),pleaseCheckValue:se(),pleaseConfirm:se(),preferencesMarketing:se(),preferencesUpdates:se(),provideCustomQuestion:se(),qrCodeNotWorking:se(),qrCodeFailedToRender:se(),qrCodeImportFailure:se(),redirectingTo:se(),registerButton:se(),registerHeader:se(),registerSuccess:se(),registerYourDevice:se(),requiredField:se(),securityAnswer:se(),setupTwoStepVerification:se(),setupTwoStepVerificationButton:se(),setupTwoStepVerificationDescription:se(),setupTwoStepVerificationWarning:se(),skipForNow:se(),scanQrCodeWithAuthenticator:se(),securityQuestions:se(),securityQuestionsPrompt:se(),shouldContainANumber:se(),shouldContainAnUppercase:se(),shouldContainALowercase:se(),shouldContainASymbol:se(),showPassword:se(),signalsEvaluation:se(),skipButton:se(),sn:se(),submit:se(),submitButton:se(),successMessage:se(),termsAndConditions:se(),termsAndConditionsLinkText:se(),tryAgain:se(),twoFactorAuthentication:se(),useThisNewMfaToHelpVerifyYourIdentity:se(),useValidEmail:se(),unrecoverableError:se(),unknownLoginError:se(),unknownNetworkError:se(),url:se(),useDeviceForIdentityVerification:se(),userName:se(),usernameRequirements:se(),useTheAuthenticatorAppOnYourPhone:se(),validatedCreatePasswordCallback:se(),validatedCreateUsernameCallback:se(),valueRequirements:se(),verifyYourIdentity:se(),yourDevice:se(),yourMultiFactorAuthIsEnabled:se(),yourRecoveryCodesToAccessAccountForLostDevice:se()}).strict();wd.partial(),wd.parse(_d);const bd=or(null);function IE(e){return e?bd.set({..._d,...e}):bd.set(_d),wd}const AE="Authorization timed out",TE="The request requires some interaction that is not allowed.",OE="Timeouts are likely an issue with OAuth client misconfiguration. If you are getting a 4xx error in the network tab, copy the full `/authorize` URL and paste it directly into your browsers URL field to directly visit the page. The error should be displayed on the page.",PE=`The user either doesn't have a valid session, the cookie is not being sent due to third-party cookies being disabled, or the user is needing to provide consent as the OAuth client setting does not have "implied consent" enabled.`;function Np(e){switch(e){case TE:return PE;case AE:return OE;default:return""}}const Sd={completed:!1,error:null,loading:!1,successful:!1,response:null};function RE(e,t){const n=or(Sd);async function r(l){if(!e)return n.set({completed:!0,error:{message:"OIDC client not configured",troubleshoot:null},loading:!1,successful:!1,response:null}),sn(n);const d={backgroundRenew:!0,...t,...l},g=sn(e);if(!g)return n.set({completed:!0,error:{message:"OIDC client not ready",troubleshoot:null},loading:!1,successful:!1,response:null}),sn(n);if("error"in g)return n.set({completed:!0,error:{message:String(g.error),troubleshoot:null},loading:!1,successful:!1,response:null}),sn(n);const p=sn(n);if(p.loading||p.completed)return p;n.set({...Sd,loading:!0});try{const _=await g.token.get(d);if("error"in _){const S="message"in _&&_.message||"error_description"in _&&_.error_description||_.error,k="code"in _&&typeof _.code=="number"?_.code:null;return n.set({completed:!0,error:{code:k,message:S,troubleshoot:Np(S)},loading:!1,successful:!1,response:null}),sn(n)}n.set({completed:!0,error:null,loading:!1,successful:!0,response:_})}catch(_){const S=_ instanceof Error?_.message:"Unknown OAuth error";n.set({completed:!0,error:{message:S,troubleshoot:Np(S)},loading:!1,successful:!1,response:null})}return sn(n)}function i(){n.set(Sd)}return{get:r,reset:i,subscribe:n.subscribe}}function Ed(e){let t=e.level||"info";const n=e.custom,r={error:(...l)=>n!=null&&n.error?n.error(...l):console.error(...l),warn:(...l)=>n!=null&&n.warn?n.warn(...l):console.warn(...l),info:(...l)=>n!=null&&n.info?n.info(...l):console.info(...l),debug:(...l)=>n!=null&&n.debug?n.debug(...l):console.debug(...l)},i=(l,d)=>{const g={error:0,warn:1,info:2,debug:3,none:-1};return g[l]<=g[d]&&g[d]!==-1};return{changeLevel:l=>{t=l},error:(...l)=>{i("error",t)&&r.error(...l)},warn:(...l)=>{i("warn",t)&&r.warn(...l)},info:(...l)=>{i("info",t)&&r.info(...l)},debug:(...l)=>{i("debug",t)&&r.debug(...l)}}}function xp(e){return typeof e=="object"&&e!==null&&"error"in e&&typeof e.error=="string"&&"type"in e&&typeof e.type=="string"}const ME=e=>typeof e=="function",lr=function(e,t){if(typeof e=="function")return function(){return e(arguments)?t.apply(this,arguments):n=>t(n,...arguments)};switch(e){case 0:case 1:throw new RangeError(`Invalid arity ${e}`);case 2:return function(n,r){return arguments.length>=2?t(n,r):function(i){return t(i,n)}};case 3:return function(n,r,i){return arguments.length>=3?t(n,r,i):function(l){return t(l,n,r)}};case 4:return function(n,r,i,l){return arguments.length>=4?t(n,r,i,l):function(d){return t(d,n,r,i)}};case 5:return function(n,r,i,l,d){return arguments.length>=5?t(n,r,i,l,d):function(g){return t(g,n,r,i,l)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);const n=arguments;return function(r){return t(r,...n)}}}},sa=e=>e,LE=(e=>()=>e)(void 0),$l="effect/GlobalValue";let Ao;const To=(e,t)=>(Ao||(globalThis[$l]??(globalThis[$l]=new Map),Ao=globalThis[$l]),Ao.has(e)||Ao.set(e,t()),Ao.get(e)),Up=ME,DE=e=>typeof e=="object"&&e!==null,NE=e=>DE(e)||Up(e),oa=lr(2,(e,t)=>NE(e)&&t in e),xE=e=>typeof e=="string"||oa(e,Symbol.iterator),UE=e=>`BUG: ${e} - please report an issue at https://github.com/Effect-TS/effect/issues`;class Zl{constructor(t){Je(this,"self");Je(this,"called",!1);this.self=t}next(t){return this.called?{value:t,done:!0}:(this.called=!0,{value:this.self,done:!1})}return(t){return{value:t,done:!0}}throw(t){throw t}[Symbol.iterator](){return new Zl(this.self)}}const kd=Symbol.for("effect/Utils/YieldWrap");class Fp{constructor(t){At(this,ml);bt(this,ml,t)}[kd](){return ue(this,ml)}}ml=new WeakMap;function FE(e){if(typeof e=="object"&&e!==null&&kd in e)return e[kd]();throw new Error(UE("yieldWrapGet"))}const Rr=To("effect/Utils/isStructuralRegion",()=>({enabled:!1,tester:void 0})),Cd=To(Symbol.for("effect/Hash/randomHashCache"),()=>new WeakMap),Ci=Symbol.for("effect/Hash"),Ii=e=>{if(Rr.enabled===!0)return 0;switch(typeof e){case"number":return Ad(e);case"bigint":return la(e.toString(10));case"boolean":return la(String(e));case"symbol":return la(String(e));case"string":return la(e);case"undefined":return la("undefined");case"function":case"object":return e===null?la("null"):e instanceof Date?Number.isNaN(e.getTime())?la("Invalid Date"):Ii(e.toISOString()):e instanceof URL?Ii(e.href):BE(e)?e[Ci]():Bp(e);default:throw new Error(`BUG: unhandled typeof ${typeof e} - please report an issue at https://github.com/Effect-TS/effect/issues`)}},Bp=e=>(Cd.has(e)||Cd.set(e,Ad(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))),Cd.get(e)),Id=e=>t=>t*53^e,zp=e=>e&3221225471|e>>>1&1073741824,BE=e=>oa(e,Ci),Ad=e=>{if(e!==e||e===1/0)return 0;let t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)t^=e/=4294967295;return zp(t)},la=e=>{let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return zp(t)},Td=function(){if(arguments.length===1){const n=arguments[0];return function(r){return Object.defineProperty(n,Ci,{value(){return r},enumerable:!1}),r}}const e=arguments[0],t=arguments[1];return Object.defineProperty(e,Ci,{value(){return t},enumerable:!1}),t},Ka=Symbol.for("effect/Equal");function Yl(){return arguments.length===1?e=>Jl(e,arguments[0]):Jl(arguments[0],arguments[1])}function Jl(e,t){if(e===t)return!0;const n=typeof e;if(n!==typeof t)return!1;if(n==="object"||n==="function"){if(e!==null&&t!==null){if(Vp(e)&&Vp(t))return Ii(e)===Ii(t)&&e[Ka](t)?!0:Rr.enabled&&Rr.tester?Rr.tester(e,t):!1;if(e instanceof Date&&t instanceof Date){const r=e.getTime(),i=t.getTime();return r===i||Number.isNaN(r)&&Number.isNaN(i)}else if(e instanceof URL&&t instanceof URL)return e.href===t.href}if(Rr.enabled){if(e===null||t===null)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((r,i)=>Jl(r,t[i]));if(Object.getPrototypeOf(e)===Object.prototype&&Object.getPrototypeOf(t)===Object.prototype){const r=Object.keys(e),i=Object.keys(t);if(r.length===i.length){for(const l of r)if(!(l in t&&Jl(e[l],t[l])))return Rr.tester?Rr.tester(e,t):!1;return!0}}return Rr.tester?Rr.tester(e,t):!1}}return Rr.enabled&&Rr.tester?Rr.tester(e,t):!1}const Vp=e=>oa(e,Ka),Oo=Symbol.for("nodejs.util.inspect.custom"),Xl=e=>{try{if(oa(e,"toJSON")&&Up(e.toJSON)&&e.toJSON.length===0)return e.toJSON();if(Array.isArray(e))return e.map(Xl)}catch{return{}}return HE(e)},Po=e=>JSON.stringify(e,null,2),zE=(e,t=2)=>{if(typeof e=="string")return e;try{return typeof e=="object"?VE(e,t):String(e)}catch{return String(e)}},VE=(e,t)=>{let n=[];const r=JSON.stringify(e,(i,l)=>typeof l=="object"&&l!==null?n.includes(l)?void 0:n.push(l)&&(Ql.fiberRefs!==void 0&&Hp(l)?l[Od](Ql.fiberRefs):l):l,t);return n=void 0,r},Od=Symbol.for("effect/Inspectable/Redactable"),Hp=e=>typeof e=="object"&&e!==null&&Od in e,Ql=To("effect/Inspectable/redactableState",()=>({fiberRefs:void 0})),HE=e=>Hp(e)&&Ql.fiberRefs!==void 0?e[Od](Ql.fiberRefs):e,ec=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let r=0,i=t.length;r<i;r++)n=t[r](n);return n}}};let jE="3.21.0";const qE=()=>jE,GE=Symbol.for("effect/Effect"),WE=Symbol.for("effect/Stream"),KE=Symbol.for("effect/Sink"),$E=Symbol.for("effect/Channel"),Pd={_R:e=>e,_E:e=>e,_A:e=>e,_V:qE()},ZE={_A:e=>e,_In:e=>e,_L:e=>e,_E:e=>e,_R:e=>e},YE={_Env:e=>e,_InErr:e=>e,_InElem:e=>e,_InDone:e=>e,_OutErr:e=>e,_OutElem:e=>e,_OutDone:e=>e},Rd={[GE]:Pd,[WE]:Pd,[KE]:ZE,[$E]:YE,[Ka](e){return this===e},[Ci](){return Td(this,Bp(this))},[Symbol.iterator](){return new Zl(new Fp(this))},pipe(){return ec(this,arguments)}},jp=Symbol.for("effect/Either"),qp={...Rd,[jp]:{_R:e=>e},[Oo](){return this.toJSON()},toString(){return Po(this.toJSON())}},JE=Object.assign(Object.create(qp),{_tag:"Right",_op:"Right",[Ka](e){return Gp(e)&&QE(e)&&Yl(this.right,e.right)},[Ci](){return Id(Ii(this._tag))(Ii(this.right))},toJSON(){return{_id:"Either",_tag:this._tag,right:Xl(this.right)}}}),XE=Object.assign(Object.create(qp),{_tag:"Left",_op:"Left",[Ka](e){return Gp(e)&&Wp(e)&&Yl(this.left,e.left)},[Ci](){return Id(Ii(this._tag))(Ii(this.left))},toJSON(){return{_id:"Either",_tag:this._tag,left:Xl(this.left)}}}),Gp=e=>oa(e,jp),Wp=e=>e._tag==="Left",QE=e=>e._tag==="Right",ek=e=>{const t=Object.create(XE);return t.left=e,t},tk=e=>{const t=Object.create(JE);return t.right=e,t},tc=ek,nk=Wp,Kp=lr(2,(e,{onLeft:t,onRight:n})=>nk(e)?t(e.left):n(e.right)),rk=e=>Array.isArray(e)?e:Array.from(e),ik=Symbol.for("effect/Context/Tag"),$p=Symbol.for("effect/Context/Reference"),ak={...{...Rd,_op:"Tag",[Symbol.for("effect/STM")]:Pd,[ik]:{_Service:e=>e,_Identifier:e=>e},toString(){return Po(this.toJSON())},toJSON(){return{_id:"Tag",key:this.key,stack:this.stack}},[Oo](){return this.toJSON()},of(e){return e},context(e){return uk(this,e)}},[$p]:$p},sk=()=>(e,t)=>{const n=Error.stackTraceLimit;Error.stackTraceLimit=2;const r=new Error;Error.stackTraceLimit=n;function i(){}return Object.setPrototypeOf(i,ak),i.key=e,i.defaultValue=t.defaultValue,Object.defineProperty(i,"stack",{get(){return r.stack}}),i},Zp=Symbol.for("effect/Context"),ok={[Zp]:{_Services:e=>e},[Ka](e){if(ck(e)&&this.unsafeMap.size===e.unsafeMap.size){for(const t of this.unsafeMap.keys())if(!e.unsafeMap.has(t)||!Yl(this.unsafeMap.get(t),e.unsafeMap.get(t)))return!1;return!0}return!1},[Ci](){return Td(this,Ad(this.unsafeMap.size))},pipe(){return ec(this,arguments)},toString(){return Po(this.toJSON())},toJSON(){return{_id:"Context",services:Array.from(this.unsafeMap).map(Xl)}},[Oo](){return this.toJSON()}},lk=e=>{const t=Object.create(ok);return t.unsafeMap=e,t},ck=e=>oa(e,Zp),uk=(e,t)=>lk(new Map([[e.key,t]])),Md=To("effect/Context/defaultValueCache",()=>new Map),dk=e=>{if(Md.has(e.key))return Md.get(e.key);const t=e.defaultValue();return Md.set(e.key,t),t},fk=(e,t)=>e.unsafeMap.has(t.key)?e.unsafeMap.get(t.key):dk(t),Ld=sk,hk=Rd,Yp=Symbol.for("effect/Micro"),nc=Symbol.for("effect/Micro/MicroExit"),Ms=e=>typeof e=="object"&&e!==null&&Yp in e,Jp=Symbol.for("effect/Micro/MicroCause"),gk={_E:sa};class Dd extends globalThis.Error{constructor(n,r,i){const l=`MicroCause.${n}`;let d,g,p;if(r instanceof globalThis.Error){d=`(${l}) ${r.name}`,g=r.message;const _=g.split(`
45
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const S of e.seen.entries()){const k=S[1];if(t===S[0]){l(S);continue}if(e.external){const y=(p=e.external.registry.get(S[0]))==null?void 0:p.id;if(t!==S[0]&&y){l(S);continue}}if((_=e.metadataRegistry.get(S[0]))==null?void 0:_.id){l(S);continue}if(k.cycle){l(S);continue}if(k.count>1&&e.reused==="ref"){l(S);continue}}}function Cp(e,t){var d,g,p;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=_=>{const S=e.seen.get(_);if(S.ref===null)return;const k=S.def??S.schema,h={...k},y=S.ref;if(S.ref=null,y){r(y);const c=e.seen.get(y),u=c.schema;if(u.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(k.allOf=k.allOf??[],k.allOf.push(u)):Object.assign(k,u),Object.assign(k,h),_._zod.parent===y)for(const a in k)a==="$ref"||a==="allOf"||a in h||delete k[a];if(u.$ref&&c.def)for(const a in k)a==="$ref"||a==="allOf"||a in c.def&&JSON.stringify(k[a])===JSON.stringify(c.def[a])&&delete k[a]}const b=_._zod.parent;if(b&&b!==y){r(b);const c=e.seen.get(b);if(c!=null&&c.schema.$ref&&(k.$ref=c.schema.$ref,c.def))for(const u in k)u==="$ref"||u==="allOf"||u in c.def&&JSON.stringify(k[u])===JSON.stringify(c.def[u])&&delete k[u]}e.override({zodSchema:_,jsonSchema:k,path:S.path??[]})};for(const _ of[...e.seen.entries()].reverse())r(_[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,(d=e.external)!=null&&d.uri){const _=(g=e.external.registry.get(t))==null?void 0:g.id;if(!_)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(_)}Object.assign(i,n.def??n.schema);const l=((p=e.external)==null?void 0:p.defs)??{};for(const _ of e.seen.entries()){const S=_[1];S.def&&S.defId&&(l[S.defId]=S.def)}e.external||Object.keys(l).length>0&&(e.target==="draft-2020-12"?i.$defs=l:i.definitions=l);try{const _=JSON.parse(JSON.stringify(i));return Object.defineProperty(_,"~standard",{value:{...t["~standard"],jsonSchema:{input:$l(t,"input",e.processors),output:$l(t,"output",e.processors)}},enumerable:!1,writable:!1}),_}catch{throw new Error("Error converting schema to JSON.")}}function jn(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return jn(r.element,n);if(r.type==="set")return jn(r.valueType,n);if(r.type==="lazy")return jn(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return jn(r.innerType,n);if(r.type==="intersection")return jn(r.left,n)||jn(r.right,n);if(r.type==="record"||r.type==="map")return jn(r.keyType,n)||jn(r.valueType,n);if(r.type==="pipe")return jn(r.in,n)||jn(r.out,n);if(r.type==="object"){for(const i in r.shape)if(jn(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(jn(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(jn(i,n))return!0;return!!(r.rest&&jn(r.rest,n))}return!1}const Z2=(e,t={})=>n=>{const r=Ep({...n,processors:t});return bn(e,r),kp(r,e),Cp(r,e)},$l=(e,t,n={})=>r=>{const{libraryOptions:i,target:l}=r??{},d=Ep({...i??{},target:l,io:t,processors:n});return bn(e,d),kp(d,e),Cp(d,e)},Y2={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},J2=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:l,maximum:d,format:g,patterns:p,contentEncoding:_}=e._zod.bag;if(typeof l=="number"&&(i.minLength=l),typeof d=="number"&&(i.maxLength=d),g&&(i.format=Y2[g]??g,i.format===""&&delete i.format,g==="time"&&delete i.format),_&&(i.contentEncoding=_),p&&p.size>0){const S=[...p];S.length===1?i.pattern=S[0].source:S.length>1&&(i.allOf=[...S.map(k=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:k.source}))])}},X2=(e,t,n,r)=>{const i=n,{minimum:l,maximum:d,format:g,multipleOf:p,exclusiveMaximum:_,exclusiveMinimum:S}=e._zod.bag;typeof g=="string"&&g.includes("int")?i.type="integer":i.type="number",typeof S=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=S,i.exclusiveMinimum=!0):i.exclusiveMinimum=S),typeof l=="number"&&(i.minimum=l,typeof S=="number"&&t.target!=="draft-04"&&(S>=l?delete i.minimum:delete i.exclusiveMinimum)),typeof _=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=_,i.exclusiveMaximum=!0):i.exclusiveMaximum=_),typeof d=="number"&&(i.maximum=d,typeof _=="number"&&t.target!=="draft-04"&&(_<=d?delete i.maximum:delete i.exclusiveMaximum)),typeof p=="number"&&(i.multipleOf=p)},Q2=(e,t,n,r)=>{n.type="boolean"},eS=(e,t,n,r)=>{n.not={}},tS=(e,t,n,r)=>{},nS=(e,t,n,r)=>{const i=e._zod.def,l=zg(i.entries);l.every(d=>typeof d=="number")&&(n.type="number"),l.every(d=>typeof d=="string")&&(n.type="string"),n.enum=l},rS=(e,t,n,r)=>{const i=e._zod.def,l=[];for(const d of i.values)if(d===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof d=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");l.push(Number(d))}else l.push(d);if(l.length!==0)if(l.length===1){const d=l[0];n.type=d===null?"null":typeof d,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[d]:n.const=d}else l.every(d=>typeof d=="number")&&(n.type="number"),l.every(d=>typeof d=="string")&&(n.type="string"),l.every(d=>typeof d=="boolean")&&(n.type="boolean"),l.every(d=>d===null)&&(n.type="null"),n.enum=l},iS=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},sS=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},aS=(e,t,n,r)=>{const i=n,l=e._zod.def,{minimum:d,maximum:g}=e._zod.bag;typeof d=="number"&&(i.minItems=d),typeof g=="number"&&(i.maxItems=g),i.type="array",i.items=bn(l.element,t,{...r,path:[...r.path,"items"]})},oS=(e,t,n,r)=>{var _;const i=n,l=e._zod.def;i.type="object",i.properties={};const d=l.shape;for(const S in d)i.properties[S]=bn(d[S],t,{...r,path:[...r.path,"properties",S]});const g=new Set(Object.keys(d)),p=new Set([...g].filter(S=>{const k=l.shape[S]._zod;return t.io==="input"?k.optin===void 0:k.optout===void 0}));p.size>0&&(i.required=Array.from(p)),((_=l.catchall)==null?void 0:_._zod.def.type)==="never"?i.additionalProperties=!1:l.catchall?l.catchall&&(i.additionalProperties=bn(l.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},lS=(e,t,n,r)=>{const i=e._zod.def,l=i.inclusive===!1,d=i.options.map((g,p)=>bn(g,t,{...r,path:[...r.path,l?"oneOf":"anyOf",p]}));l?n.oneOf=d:n.anyOf=d},cS=(e,t,n,r)=>{const i=e._zod.def,l=bn(i.left,t,{...r,path:[...r.path,"allOf",0]}),d=bn(i.right,t,{...r,path:[...r.path,"allOf",1]}),g=_=>"allOf"in _&&Object.keys(_).length===1,p=[...g(l)?l.allOf:[l],...g(d)?d.allOf:[d]];n.allOf=p},uS=(e,t,n,r)=>{const i=n,l=e._zod.def;i.type="object";const d=l.keyType,g=d._zod.bag,p=g==null?void 0:g.patterns;if(l.mode==="loose"&&p&&p.size>0){const S=bn(l.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});i.patternProperties={};for(const k of p)i.patternProperties[k.source]=S}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=bn(l.keyType,t,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=bn(l.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const _=d._zod.values;if(_){const S=[..._].filter(k=>typeof k=="string"||typeof k=="number");S.length>0&&(i.required=S)}},dS=(e,t,n,r)=>{const i=e._zod.def,l=bn(i.innerType,t,r),d=t.seen.get(e);t.target==="openapi-3.0"?(d.ref=i.innerType,n.nullable=!0):n.anyOf=[l,{type:"null"}]},fS=(e,t,n,r)=>{const i=e._zod.def;bn(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType},hS=(e,t,n,r)=>{const i=e._zod.def;bn(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},gS=(e,t,n,r)=>{const i=e._zod.def;bn(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},pS=(e,t,n,r)=>{const i=e._zod.def;bn(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType;let d;try{d=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=d},mS=(e,t,n,r)=>{const i=e._zod.def,l=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;bn(l,t,r);const d=t.seen.get(e);d.ref=l},vS=(e,t,n,r)=>{const i=e._zod.def;bn(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType,n.readOnly=!0},Ip=(e,t,n,r)=>{const i=e._zod.def;bn(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType},yS=ve("ZodISODateTime",(e,t)=>{yb.init(e,t),cn.init(e,t)});function _S(e){return k2(yS,e)}const wS=ve("ZodISODate",(e,t)=>{_b.init(e,t),cn.init(e,t)});function bS(e){return C2(wS,e)}const SS=ve("ZodISOTime",(e,t)=>{wb.init(e,t),cn.init(e,t)});function ES(e){return I2(SS,e)}const kS=ve("ZodISODuration",(e,t)=>{bb.init(e,t),cn.init(e,t)});function CS(e){return A2(kS,e)}const Rr=ve("ZodError",(e,t)=>{Gg.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>d0(e,n)},flatten:{value:n=>u0(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ud,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ud,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),IS=gd(Rr),AS=pd(Rr),TS=Hl(Rr),OS=jl(Rr),PS=g0(Rr),RS=p0(Rr),MS=m0(Rr),LS=v0(Rr),DS=y0(Rr),xS=_0(Rr),NS=w0(Rr),US=b0(Rr),ln=ve("ZodType",(e,t)=>(on.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:$l(e,"input"),output:$l(e,"output")}}),e.toJSONSchema=Z2(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(is(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>ss(e,n,r),e.brand=()=>e,e.register=(n,r)=>(n.add(e,r),e),e.parse=(n,r)=>IS(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>TS(e,n,r),e.parseAsync=async(n,r)=>AS(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>OS(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>PS(e,n,r),e.decode=(n,r)=>RS(e,n,r),e.encodeAsync=async(n,r)=>MS(e,n,r),e.decodeAsync=async(n,r)=>LS(e,n,r),e.safeEncode=(n,r)=>DS(e,n,r),e.safeDecode=(n,r)=>xS(e,n,r),e.safeEncodeAsync=async(n,r)=>NS(e,n,r),e.safeDecodeAsync=async(n,r)=>US(e,n,r),e.refine=(n,r)=>e.check(PE(n,r)),e.superRefine=n=>e.check(RE(n)),e.overwrite=n=>e.check(Ma(n)),e.optional=()=>xp(e),e.exactOptional=()=>yE(e),e.nullable=()=>Np(e),e.nullish=()=>xp(Np(e)),e.nonoptional=n=>kE(e,n),e.array=()=>bd(e),e.or=n=>Ks([e,n]),e.and=n=>fE(e,n),e.transform=n=>Fp(e,mE(n)),e.default=n=>bE(e,n),e.prefault=n=>EE(e,n),e.catch=n=>IE(e,n),e.pipe=n=>Fp(e,n),e.readonly=()=>OE(e),e.describe=n=>{const r=e.clone();return Ao.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=Ao.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Ao.get(e);const r=e.clone();return Ao.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Ap=ve("_ZodString",(e,t)=>{md.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(r,i,l)=>J2(e,r,i);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(L2(...r)),e.includes=(...r)=>e.check(N2(...r)),e.startsWith=(...r)=>e.check(U2(...r)),e.endsWith=(...r)=>e.check(F2(...r)),e.min=(...r)=>e.check(Kl(...r)),e.max=(...r)=>e.check(bp(...r)),e.length=(...r)=>e.check(Sp(...r)),e.nonempty=(...r)=>e.check(Kl(1,...r)),e.lowercase=r=>e.check(D2(r)),e.uppercase=r=>e.check(x2(r)),e.trim=()=>e.check(z2()),e.normalize=(...r)=>e.check(B2(...r)),e.toLowerCase=()=>e.check(V2()),e.toUpperCase=()=>e.check(H2()),e.slugify=()=>e.check(j2())}),FS=ve("ZodString",(e,t)=>{md.init(e,t),Ap.init(e,t),e.email=n=>e.check(r2(BS,n)),e.url=n=>e.check(l2(zS,n)),e.jwt=n=>e.check(E2(tE,n)),e.emoji=n=>e.check(c2(VS,n)),e.guid=n=>e.check(vp(Tp,n)),e.uuid=n=>e.check(i2(Zl,n)),e.uuidv4=n=>e.check(s2(Zl,n)),e.uuidv6=n=>e.check(a2(Zl,n)),e.uuidv7=n=>e.check(o2(Zl,n)),e.nanoid=n=>e.check(u2(HS,n)),e.guid=n=>e.check(vp(Tp,n)),e.cuid=n=>e.check(d2(jS,n)),e.cuid2=n=>e.check(f2(qS,n)),e.ulid=n=>e.check(h2(WS,n)),e.base64=n=>e.check(w2(XS,n)),e.base64url=n=>e.check(b2(QS,n)),e.xid=n=>e.check(g2(GS,n)),e.ksuid=n=>e.check(p2(KS,n)),e.ipv4=n=>e.check(m2($S,n)),e.ipv6=n=>e.check(v2(ZS,n)),e.cidrv4=n=>e.check(y2(YS,n)),e.cidrv6=n=>e.check(_2(JS,n)),e.e164=n=>e.check(S2(eE,n)),e.datetime=n=>e.check(_S(n)),e.date=n=>e.check(bS(n)),e.time=n=>e.check(ES(n)),e.duration=n=>e.check(CS(n))});function se(e){return n2(FS,e)}const cn=ve("ZodStringFormat",(e,t)=>{tn.init(e,t),Ap.init(e,t)}),BS=ve("ZodEmail",(e,t)=>{cb.init(e,t),cn.init(e,t)}),Tp=ve("ZodGUID",(e,t)=>{ob.init(e,t),cn.init(e,t)}),Zl=ve("ZodUUID",(e,t)=>{lb.init(e,t),cn.init(e,t)}),zS=ve("ZodURL",(e,t)=>{ub.init(e,t),cn.init(e,t)}),VS=ve("ZodEmoji",(e,t)=>{db.init(e,t),cn.init(e,t)}),HS=ve("ZodNanoID",(e,t)=>{fb.init(e,t),cn.init(e,t)}),jS=ve("ZodCUID",(e,t)=>{hb.init(e,t),cn.init(e,t)}),qS=ve("ZodCUID2",(e,t)=>{gb.init(e,t),cn.init(e,t)}),WS=ve("ZodULID",(e,t)=>{pb.init(e,t),cn.init(e,t)}),GS=ve("ZodXID",(e,t)=>{mb.init(e,t),cn.init(e,t)}),KS=ve("ZodKSUID",(e,t)=>{vb.init(e,t),cn.init(e,t)}),$S=ve("ZodIPv4",(e,t)=>{Sb.init(e,t),cn.init(e,t)}),ZS=ve("ZodIPv6",(e,t)=>{Eb.init(e,t),cn.init(e,t)}),YS=ve("ZodCIDRv4",(e,t)=>{kb.init(e,t),cn.init(e,t)}),JS=ve("ZodCIDRv6",(e,t)=>{Cb.init(e,t),cn.init(e,t)}),XS=ve("ZodBase64",(e,t)=>{Ib.init(e,t),cn.init(e,t)}),QS=ve("ZodBase64URL",(e,t)=>{Tb.init(e,t),cn.init(e,t)}),eE=ve("ZodE164",(e,t)=>{Ob.init(e,t),cn.init(e,t)}),tE=ve("ZodJWT",(e,t)=>{Rb.init(e,t),cn.init(e,t)}),Op=ve("ZodNumber",(e,t)=>{rp.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(r,i,l)=>X2(e,r,i),e.gt=(r,i)=>e.check(_p(r,i)),e.gte=(r,i)=>e.check(_d(r,i)),e.min=(r,i)=>e.check(_d(r,i)),e.lt=(r,i)=>e.check(yp(r,i)),e.lte=(r,i)=>e.check(yd(r,i)),e.max=(r,i)=>e.check(yd(r,i)),e.int=r=>e.check(Pp(r)),e.safe=r=>e.check(Pp(r)),e.positive=r=>e.check(_p(0,r)),e.nonnegative=r=>e.check(_d(0,r)),e.negative=r=>e.check(yp(0,r)),e.nonpositive=r=>e.check(yd(0,r)),e.multipleOf=(r,i)=>e.check(wp(r,i)),e.step=(r,i)=>e.check(wp(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function os(e){return T2(Op,e)}const nE=ve("ZodNumberFormat",(e,t)=>{Mb.init(e,t),Op.init(e,t)});function Pp(e){return O2(nE,e)}const rE=ve("ZodBoolean",(e,t)=>{Lb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Q2(e,n,r)});function gi(e){return P2(rE,e)}const iE=ve("ZodUnknown",(e,t)=>{Db.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>tS()});function wd(){return R2(iE)}const sE=ve("ZodNever",(e,t)=>{xb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>eS(e,n,r)});function aE(e){return M2(sE,e)}const oE=ve("ZodArray",(e,t)=>{Nb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>aS(e,n,r,i),e.element=t.element,e.min=(n,r)=>e.check(Kl(n,r)),e.nonempty=n=>e.check(Kl(1,n)),e.max=(n,r)=>e.check(bp(n,r)),e.length=(n,r)=>e.check(Sp(n,r)),e.unwrap=()=>e.element});function bd(e,t){return q2(oE,e,t)}const Rp=ve("ZodObject",(e,t)=>{Fb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>oS(e,n,r,i),Ht(e,"shape",()=>t.shape),e.keyof=()=>Lp(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:wd()}),e.loose=()=>e.clone({...e._zod.def,catchall:wd()}),e.strict=()=>e.clone({...e._zod.def,catchall:aE()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>s0(e,n),e.safeExtend=n=>a0(e,n),e.merge=n=>o0(e,n),e.pick=n=>r0(e,n),e.omit=n=>i0(e,n),e.partial=(...n)=>l0(Dp,e,n[0]),e.required=(...n)=>c0(Up,e,n[0])});function En(e,t){const n={type:"object",shape:e??{},...st(t)};return new Rp(n)}function lE(e,t){return new Rp({type:"object",shape:e,catchall:wd(),...st(t)})}const Mp=ve("ZodUnion",(e,t)=>{lp.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>lS(e,n,r,i),e.options=t.options});function Ks(e,t){return new Mp({type:"union",options:e,...st(t)})}const cE=ve("ZodDiscriminatedUnion",(e,t)=>{Mp.init(e,t),Bb.init(e,t)});function uE(e,t,n){return new cE({type:"union",options:t,discriminator:e,...st(n)})}const dE=ve("ZodIntersection",(e,t)=>{zb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cS(e,n,r,i)});function fE(e,t){return new dE({type:"intersection",left:e,right:t})}const hE=ve("ZodRecord",(e,t)=>{Vb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>uS(e,n,r,i),e.keyType=t.keyType,e.valueType=t.valueType});function Yl(e,t,n){return new hE({type:"record",keyType:e,valueType:t,...st(n)})}const Sd=ve("ZodEnum",(e,t)=>{Hb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(r,i,l)=>nS(e,r,i),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const l={};for(const d of r)if(n.has(d))l[d]=t.entries[d];else throw new Error(`Key ${d} not found in enum`);return new Sd({...t,checks:[],...st(i),entries:l})},e.exclude=(r,i)=>{const l={...t.entries};for(const d of r)if(n.has(d))delete l[d];else throw new Error(`Key ${d} not found in enum`);return new Sd({...t,checks:[],...st(i),entries:l})}});function Lp(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Sd({type:"enum",entries:n,...st(t)})}const gE=ve("ZodLiteral",(e,t)=>{jb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>rS(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function qn(e,t){return new gE({type:"literal",values:Array.isArray(e)?e:[e],...st(t)})}const pE=ve("ZodTransform",(e,t)=>{qb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>sS(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Fg(e.constructor.name);n.addIssue=l=>{if(typeof l=="string")n.issues.push(Io(l,n.value,t));else{const d=l;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=n.value),d.inst??(d.inst=e),n.issues.push(Io(d))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(l=>(n.value=l,n)):(n.value=i,n)}});function mE(e){return new pE({type:"transform",transform:e})}const Dp=ve("ZodOptional",(e,t)=>{dp.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ip(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function xp(e){return new Dp({type:"optional",innerType:e})}const vE=ve("ZodExactOptional",(e,t)=>{Wb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ip(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function yE(e){return new vE({type:"optional",innerType:e})}const _E=ve("ZodNullable",(e,t)=>{Gb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>dS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Np(e){return new _E({type:"nullable",innerType:e})}const wE=ve("ZodDefault",(e,t)=>{Kb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>hS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function bE(e,t){return new wE({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():qg(t)}})}const SE=ve("ZodPrefault",(e,t)=>{$b.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>gS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function EE(e,t){return new SE({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():qg(t)}})}const Up=ve("ZodNonOptional",(e,t)=>{Zb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>fS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function kE(e,t){return new Up({type:"nonoptional",innerType:e,...st(t)})}const CE=ve("ZodCatch",(e,t)=>{Yb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>pS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function IE(e,t){return new CE({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const AE=ve("ZodPipe",(e,t)=>{Jb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>mS(e,n,r,i),e.in=t.in,e.out=t.out});function Fp(e,t){return new AE({type:"pipe",in:e,out:t})}const TE=ve("ZodReadonly",(e,t)=>{Xb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>vS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function OE(e){return new TE({type:"readonly",innerType:e})}const Bp=ve("ZodCustom",(e,t)=>{Qb.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>iS(e,n)});function To(e,t){return W2(Bp,e??(()=>!0),t)}function PE(e,t={}){return G2(Bp,e,t)}function RE(e){return K2(e)}const ME=En({mode:Lp(["visible","invisible"]).optional()}).strict(),zp=En({termsAndConditions:se()}).strict();zp.partial();const Jl=lr();function LE(e){return e?(zp.parse(e),Jl.set(e)):Jl.set(void 0),Jl}const Ed={adminRegInvalidInviteHeader:"Invitation not valid",adminRegInvalidInviteDescription:"This invitation can't be used. Please contact your administrator or <a href='https://support.pingidentity.com/' target='_blank' rel='noopener noreferrer'>Ping Support</a> for help.",adminRegOtpDescription:"We've sent a 6-digit code to your email. Enter it below to continue.",adminRegOtpError:"That code isn't correct or may have expired. Please try again.",adminRegOtpHeader:"Admin Invite Code",adminRegOtpResendPrompt:"Didn't get a code?",adminRegOtpResend:"Resend",adminRegPrivacyPolicyAgreement:"I agree to the Ping Identity <a target='_blank' rel='noopener noreferrer' href='https://www.pingidentity.com/en-us/docs/legal/privacy'>privacy policy</a>.",adminRegPrivacyPolicyDescription:"Select your region of residence to review the applicable privacy policy.",adminRegPrivacyPolicyHeader:"Accept Privacy Policy",adminRegPrivacyPolicySelectRegion:"Region of residence",adminRegSendVerificationCode:"Send Verification Code",adminRegWelcomeDescriptionPre:"You've been invited to administer the",adminRegWelcomeDescriptionPost:"tenant in PingOne Advanced Identity Cloud.",adminRegWelcomeVerification:"Before you can begin, we need to verify your email address. Click the button below and we'll send you a one-time verification code.",adminRegWelcomeHeader:"Welcome to PingOne Advanced Identity Cloud",alreadyHaveAnAccount:"Already have an account? <a href='?journey'>Sign in here!</a>",backToDefault:"Back to Sign In",backToLogin:"Back to Sign In",captchaError:"CAPTCHA verification failed. Please try again.",closeModal:"Close",charactersCannotRepeatMoreThan:"A character cannot repeat more than {max} times",charactersCannotRepeatMoreThanCaseInsensitive:"A character cannot repeat more than {max} times (case insensitive)",checkYourEmail:"Check your email",chooseDifferentUsername:"Please choose a different username.",chooseYourDeviceForIdentityVerification:"Choose your device for identity verification.",confirmPassword:"Confirm password",constraintViolationForPassword:"Password does not meet the requirements.",constraintViolationForValue:"Value does not meet the requirements.",continueButton:"Continue",continueWith:"Continue with ",downloadTheApp:"Download the app",getAuthenticatorApp:"Set up the ForgeRock Authenticator",getAuthenticatorAppDescription:"To get started, you need to register your device using the ForgeRock Authenticator app.",getAuthenticatorAppLinks:"Get the app from the <a href='https://itunes.apple.com/app/forgerock-authenticator/id1038442926' target='_blank' rel='noopener noreferrer'>Apple App Store</a> or on <a href='https://play.google.com/store/apps/details?id=com.forgerock.authenticator' target='_blank' rel='noopener noreferrer'>Google Play Store</a>",copyAndPasteUrlBelow:"Or, copy and paste the URL below into your authenticator app.",copyUrl:"Copy URL",customSecurityQuestion:"Custom security question",deviceName:"Device name",doesNotMeetMinimumCharacterLength:"At least {min} character(s)",dontGetLockedOut:"Don't get locked out of your account!",dontHaveAnAccount:"No account? <a href='?journey=Registration'>Register here!</a>",ensurePasswordIsMoreThan:"Password must contain at least {minPasswordLength} character(s).",ensurePasswordHasOne:"Password must contain at least 1 capital letter, 1 number, and 1 special character.",enterVerificationCode:"Enter verification code",exceedsMaximumCharacterLength:"Exceeds maximum of {max} characters",fieldCanNotContainFollowingCharacters:"Cannot contain these character(s): {chars}",fieldCanNotContainFollowingValues:"Cannot contain these value(s): {fields}",forgotPassword:"Forgot password?",forgotUsername:"Forgot username?",givenName:"First name",inputRequiredError:"Value is required",loading:"Loading ...",loginButton:"Sign in",loginFailure:"Sign in failed",loginHeader:"Sign in",loginSuccess:"Sign in successful!",mail:"Email address",minimumNumberOfNumbers:"At least {num} number(s)",minimumNumberOfLowercase:"At least {num} lowercase letter(s)",minimumNumberOfUppercase:"At least {num} uppercase letter(s)",minimumNumberOfSymbols:"At least {num} symbol(s)",nameCallback:"Username",nameYourDevice:"Name your device",next:"Next",nextButton:"Next",notToExceedMaximumCharacterLength:"No more than {max} characters",noLessThanMinimumCharacterLength:"At least {min} character(s)",onMobileOpenInAuthenticator:"On mobile? Open link in Authenticator.",optionallyNameDevice:"Optionally name your device",passwordCallback:"Password",passwordCannotContainCommonPasswords:"Password cannot contain common passwords",passwordCannotContainCommonPasswordsOrBeReversible:"Password cannot contain common passwords or reversible text",passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan:"Password cannot contain common passwords or reversible text less than {min} characters",passwordRequirements:"Password requirements:",pleaseCheckValue:"Please check this value",pleaseConfirm:"Please confirm",preferencesMarketing:"Send me special offers and services",preferencesUpdates:"Send me news and updates",provideCustomQuestion:"Provide custom security question",qrCodeNotWorking:"Not working or need an alternative method?",qrCodeFailedToRender:"QR Code failed to render. Please notify your support administrator. You are welcome to use the alternative methods below.",qrCodeImportFailure:"We are unable to render your QR Code. Please use one of the alternative methods below.",redirectingTo:"Redirecting you to",registerButton:"Register",registerHeader:"Register",registerSuccess:"Registration successful!",requiredField:"Value is required",registerYourDevice:"Register {name}",scanQrCodeWithAuthenticator:"Scan the QR code image below with the ForgeRock Authenticator app to register your device with your login.",securityAnswer:"Security answer",setupTwoStepVerification:"Set up 2-step verification",setupTwoStepVerificationButton:"Set up",setupTwoStepVerificationDescription:"To protect your account, add a second authentication method.",setupTwoStepVerificationWarning:"Starting April 2, 2024, you must sign in using 2-step verification. <a class='alert-link' href='https://backstage.forgerock.com/docs/idcloud/latest/product-information/migration-dependent-features/tenant-administrator-mandatory-2-step-verification-faq.html' target='_blank' rel='noopener noreferrer'>Learn more</a>.",skipForNow:"Skip for now",securityQuestions:"Security question(s)",securityQuestionsPrompt:"Provide security question(s) and answer(s):",shouldContainANumber:"Should contain a number",shouldContainAnUppercase:"Should contain an uppercase letter",shouldContainALowercase:"Should contain a lowercase letter",shouldContainASymbol:"Should contain a symbol",showPassword:"Show password",signalsEvaluation:"Evaluating device information.",skipButton:"Skip",sn:"Last name",submit:"Submit",submitButton:"Submit",successMessage:"Success!",termsAndConditions:"Please accept our Terms & Conditions",termsAndConditionsLinkText:"View full Terms & Conditions",tryAgain:"Please try again",twoFactorAuthentication:"Two factor authentication",useThisNewMfaToHelpVerifyYourIdentity:"Use this new device or Multi-Factor Authentication method to help verify your identity.",useValidEmail:"Please use a valid email address.",unrecoverableError:"There was an error in the form submission.",unknownLoginError:"Unknown login failure has occurred.",unknownNetworkError:"Unknown network request failure has occurred.",url:"URL:",useDeviceForIdentityVerification:"Use your device for identity verification.",useOneOfTheseCodes:"Use one of these codes to authenticate if you lose your device, which has been named: <em>{name}</em>",userName:"Username",usernameRequirements:"Username requirements:",useTheAuthenticatorAppOnYourPhone:"Find the verification code using the authenticator app on your phone.",validatedCreatePasswordCallback:"Password",validatedCreateUsernameCallback:"Username",valueRequirements:"Value requirements:",verifyYourIdentity:"Verify your identity",yourDevice:"Your device",yourMultiFactorAuthIsEnabled:"Your new device or MFA is enabled",yourRecoveryCodesToAccessAccountForLostDevice:"If you lose your device, or don’t have it with you, a recovery code is the only way to sign in to your account with 2-step verification enabled. It’s strongly recommended that you print and store these codes in a safe place. <b>Each code can only be used once</b>."},kd=En({adminRegInvalidInviteHeader:se(),adminRegInvalidInviteDescription:se(),adminRegOtpDescription:se(),adminRegOtpError:se(),adminRegOtpHeader:se(),adminRegOtpResendPrompt:se(),adminRegOtpResend:se(),adminRegPrivacyPolicyAgreement:se(),adminRegPrivacyPolicyDescription:se(),adminRegPrivacyPolicyHeader:se(),adminRegPrivacyPolicySelectRegion:se(),adminRegSendVerificationCode:se(),adminRegWelcomeDescriptionPre:se(),adminRegWelcomeDescriptionPost:se(),adminRegWelcomeVerification:se(),adminRegWelcomeHeader:se(),alreadyHaveAnAccount:se(),backToDefault:se(),backToLogin:se(),captchaError:se(),dontHaveAnAccount:se(),closeModal:se(),charactersCannotRepeatMoreThan:se(),charactersCannotRepeatMoreThanCaseInsensitive:se(),checkYourEmail:se(),chooseDifferentUsername:se(),chooseYourDeviceForIdentityVerification:se(),confirmPassword:se(),constraintViolationForPassword:se(),constraintViolationForValue:se(),continueButton:se(),continueWith:se(),downloadTheApp:se(),getAuthenticatorApp:se(),getAuthenticatorAppDescription:se(),getAuthenticatorAppLinks:se(),copyUrl:se(),copyAndPasteUrlBelow:se(),customSecurityQuestion:se(),dontGetLockedOut:se(),doesNotMeetMinimumCharacterLength:se(),deviceName:se(),ensurePasswordIsMoreThan:se(),ensurePasswordHasOne:se(),enterVerificationCode:se(),exceedsMaximumCharacterLength:se(),fieldCanNotContainFollowingCharacters:se(),fieldCanNotContainFollowingValues:se(),forgotPassword:se(),forgotUsername:se(),givenName:se(),inputRequiredError:se(),loading:se(),loginButton:se(),loginFailure:se(),loginHeader:se(),loginSuccess:se(),mail:se(),minimumNumberOfNumbers:se(),minimumNumberOfLowercase:se(),minimumNumberOfUppercase:se(),minimumNumberOfSymbols:se(),nameCallback:se(),nameYourDevice:se(),next:se(),nextButton:se(),notToExceedMaximumCharacterLength:se(),noLessThanMinimumCharacterLength:se(),useOneOfTheseCodes:se(),onMobileOpenInAuthenticator:se(),optionallyNameDevice:se(),passwordCallback:se(),passwordCannotContainCommonPasswords:se(),passwordCannotContainCommonPasswordsOrBeReversible:se(),passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan:se(),passwordRequirements:se(),pleaseCheckValue:se(),pleaseConfirm:se(),preferencesMarketing:se(),preferencesUpdates:se(),provideCustomQuestion:se(),qrCodeNotWorking:se(),qrCodeFailedToRender:se(),qrCodeImportFailure:se(),redirectingTo:se(),registerButton:se(),registerHeader:se(),registerSuccess:se(),registerYourDevice:se(),requiredField:se(),securityAnswer:se(),setupTwoStepVerification:se(),setupTwoStepVerificationButton:se(),setupTwoStepVerificationDescription:se(),setupTwoStepVerificationWarning:se(),skipForNow:se(),scanQrCodeWithAuthenticator:se(),securityQuestions:se(),securityQuestionsPrompt:se(),shouldContainANumber:se(),shouldContainAnUppercase:se(),shouldContainALowercase:se(),shouldContainASymbol:se(),showPassword:se(),signalsEvaluation:se(),skipButton:se(),sn:se(),submit:se(),submitButton:se(),successMessage:se(),termsAndConditions:se(),termsAndConditionsLinkText:se(),tryAgain:se(),twoFactorAuthentication:se(),useThisNewMfaToHelpVerifyYourIdentity:se(),useValidEmail:se(),unrecoverableError:se(),unknownLoginError:se(),unknownNetworkError:se(),url:se(),useDeviceForIdentityVerification:se(),userName:se(),usernameRequirements:se(),useTheAuthenticatorAppOnYourPhone:se(),validatedCreatePasswordCallback:se(),validatedCreateUsernameCallback:se(),valueRequirements:se(),verifyYourIdentity:se(),yourDevice:se(),yourMultiFactorAuthIsEnabled:se(),yourRecoveryCodesToAccessAccountForLostDevice:se()}).strict();kd.partial(),kd.parse(Ed);const Cd=lr(null);function DE(e){return e?Cd.set({...Ed,...e}):Cd.set(Ed),kd}const xE="Authorization timed out",NE="The request requires some interaction that is not allowed.",UE="Timeouts are likely an issue with OAuth client misconfiguration. If you are getting a 4xx error in the network tab, copy the full `/authorize` URL and paste it directly into your browsers URL field to directly visit the page. The error should be displayed on the page.",FE=`The user either doesn't have a valid session, the cookie is not being sent due to third-party cookies being disabled, or the user is needing to provide consent as the OAuth client setting does not have "implied consent" enabled.`;function BE(e){switch(e){case NE:return FE;case xE:return UE;default:return""}}const Oo={completed:!1,error:null,loading:!1,successful:!1,code:null,state:null,response:null};function zE(e,t){const n=lr(Oo),r=t?{clientId:t.clientId,redirectUri:t.redirectUri,scope:t.scope??"openid",responseType:"code",...t.loginHint&&{loginHint:t.loginHint},...t.acrValues&&{acrValues:t.acrValues},...t.query&&{query:t.query}}:void 0;async function i(p){if(!e)return n.set({completed:!0,error:{message:"OIDC client not configured",troubleshoot:null},loading:!1,successful:!1,code:null,state:null,response:null}),Yt(n);const _={...r&&{authorizeOptions:r},...p},S=Yt(e);if(!S)return n.set({completed:!0,error:{message:"OIDC client not ready",troubleshoot:null},loading:!1,successful:!1,code:null,state:null,response:null}),Yt(n);if("error"in S)return n.set({completed:!0,error:{message:String(S.error),troubleshoot:null},loading:!1,successful:!1,code:null,state:null,response:null}),Yt(n);const k=Yt(n);if(k.loading||k.completed)return k;n.set({...Oo,loading:!0});const h=await S.token.get(_);if("error"in h){const y="message"in h&&h.message||"error_description"in h&&h.error_description||h.error,b="code"in h&&typeof h.code=="number"?h.code:null;return n.set({completed:!0,error:{code:b,message:y,troubleshoot:BE(y)},loading:!1,successful:!1,code:null,state:null,response:null}),Yt(n)}return n.set({completed:!0,error:null,loading:!1,successful:!0,code:null,state:null,response:h}),Yt(n)}async function l(p){const _=e?Yt(e):null;if(!_||"error"in _){n.set({completed:!0,error:{message:"OIDC client not ready",troubleshoot:null},loading:!1,successful:!1,code:null,state:null,response:null});return}n.set({...Oo,loading:!0});const S=await _.authorize.background({...r??{},...p});if("error"in S){n.set({completed:!0,error:{message:S.error_description??S.error,troubleshoot:null},loading:!1,successful:!1,code:null,state:null,response:null});return}n.set({completed:!1,error:null,loading:!1,successful:!1,code:S.code,state:S.state,response:null})}async function d(p){const{code:_,state:S}=Yt(n);if(!_||!S)return;const k=e?Yt(e):null;if(!k||"error"in k){n.set({completed:!0,error:{message:"OIDC client not ready",troubleshoot:null},loading:!1,successful:!1,code:null,state:null,response:null});return}n.set({...Oo,loading:!0});const h=await k.token.exchange(_,S,p);if("error"in h){n.set({completed:!0,error:{message:"message"in h&&h.message||h.error||"Unknown OAuth error",troubleshoot:null},loading:!1,successful:!1,code:null,state:null,response:null});return}n.set({completed:!0,error:null,loading:!1,successful:!0,code:null,state:null,response:h})}function g(){n.set(Oo)}return{background:l,exchange:d,get:i,reset:g,subscribe:n.subscribe}}function Id(e){let t=e.level||"info";const n=e.custom,r={error:(...l)=>n!=null&&n.error?n.error(...l):console.error(...l),warn:(...l)=>n!=null&&n.warn?n.warn(...l):console.warn(...l),info:(...l)=>n!=null&&n.info?n.info(...l):console.info(...l),debug:(...l)=>n!=null&&n.debug?n.debug(...l):console.debug(...l)},i=(l,d)=>{const g={error:0,warn:1,info:2,debug:3,none:-1};return g[l]<=g[d]&&g[d]!==-1};return{changeLevel:l=>{t=l},error:(...l)=>{i("error",t)&&r.error(...l)},warn:(...l)=>{i("warn",t)&&r.warn(...l)},info:(...l)=>{i("info",t)&&r.info(...l)},debug:(...l)=>{i("debug",t)&&r.debug(...l)}}}function Vp(e){return typeof e=="object"&&e!==null&&"error"in e&&typeof e.error=="string"&&"type"in e&&typeof e.type=="string"}const VE=e=>typeof e=="function",cr=function(e,t){if(typeof e=="function")return function(){return e(arguments)?t.apply(this,arguments):n=>t(n,...arguments)};switch(e){case 0:case 1:throw new RangeError(`Invalid arity ${e}`);case 2:return function(n,r){return arguments.length>=2?t(n,r):function(i){return t(i,n)}};case 3:return function(n,r,i){return arguments.length>=3?t(n,r,i):function(l){return t(l,n,r)}};case 4:return function(n,r,i,l){return arguments.length>=4?t(n,r,i,l):function(d){return t(d,n,r,i)}};case 5:return function(n,r,i,l,d){return arguments.length>=5?t(n,r,i,l,d):function(g){return t(g,n,r,i,l)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);const n=arguments;return function(r){return t(r,...n)}}}},ls=e=>e,HE=(e=>()=>e)(void 0),Xl="effect/GlobalValue";let Po;const Ro=(e,t)=>(Po||(globalThis[Xl]??(globalThis[Xl]=new Map),Po=globalThis[Xl]),Po.has(e)||Po.set(e,t()),Po.get(e)),Hp=VE,jE=e=>typeof e=="object"&&e!==null,qE=e=>jE(e)||Hp(e),cs=cr(2,(e,t)=>qE(e)&&t in e),WE=e=>typeof e=="string"||cs(e,Symbol.iterator),GE=e=>`BUG: ${e} - please report an issue at https://github.com/Effect-TS/effect/issues`;class Ql{constructor(t){Je(this,"self");Je(this,"called",!1);this.self=t}next(t){return this.called?{value:t,done:!0}:(this.called=!0,{value:this.self,done:!1})}return(t){return{value:t,done:!0}}throw(t){throw t}[Symbol.iterator](){return new Ql(this.self)}}const Ad=Symbol.for("effect/Utils/YieldWrap");class jp{constructor(t){Tt(this,_l);bt(this,_l,t)}[Ad](){return ue(this,_l)}}_l=new WeakMap;function KE(e){if(typeof e=="object"&&e!==null&&Ad in e)return e[Ad]();throw new Error(GE("yieldWrapGet"))}const Mr=Ro("effect/Utils/isStructuralRegion",()=>({enabled:!1,tester:void 0})),Td=Ro(Symbol.for("effect/Hash/randomHashCache"),()=>new WeakMap),Ai=Symbol.for("effect/Hash"),Ti=e=>{if(Mr.enabled===!0)return 0;switch(typeof e){case"number":return Pd(e);case"bigint":return us(e.toString(10));case"boolean":return us(String(e));case"symbol":return us(String(e));case"string":return us(e);case"undefined":return us("undefined");case"function":case"object":return e===null?us("null"):e instanceof Date?Number.isNaN(e.getTime())?us("Invalid Date"):Ti(e.toISOString()):e instanceof URL?Ti(e.href):$E(e)?e[Ai]():qp(e);default:throw new Error(`BUG: unhandled typeof ${typeof e} - please report an issue at https://github.com/Effect-TS/effect/issues`)}},qp=e=>(Td.has(e)||Td.set(e,Pd(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))),Td.get(e)),Od=e=>t=>t*53^e,Wp=e=>e&3221225471|e>>>1&1073741824,$E=e=>cs(e,Ai),Pd=e=>{if(e!==e||e===1/0)return 0;let t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)t^=e/=4294967295;return Wp(t)},us=e=>{let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return Wp(t)},Rd=function(){if(arguments.length===1){const n=arguments[0];return function(r){return Object.defineProperty(n,Ai,{value(){return r},enumerable:!1}),r}}const e=arguments[0],t=arguments[1];return Object.defineProperty(e,Ai,{value(){return t},enumerable:!1}),t},$s=Symbol.for("effect/Equal");function ec(){return arguments.length===1?e=>tc(e,arguments[0]):tc(arguments[0],arguments[1])}function tc(e,t){if(e===t)return!0;const n=typeof e;if(n!==typeof t)return!1;if(n==="object"||n==="function"){if(e!==null&&t!==null){if(Gp(e)&&Gp(t))return Ti(e)===Ti(t)&&e[$s](t)?!0:Mr.enabled&&Mr.tester?Mr.tester(e,t):!1;if(e instanceof Date&&t instanceof Date){const r=e.getTime(),i=t.getTime();return r===i||Number.isNaN(r)&&Number.isNaN(i)}else if(e instanceof URL&&t instanceof URL)return e.href===t.href}if(Mr.enabled){if(e===null||t===null)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((r,i)=>tc(r,t[i]));if(Object.getPrototypeOf(e)===Object.prototype&&Object.getPrototypeOf(t)===Object.prototype){const r=Object.keys(e),i=Object.keys(t);if(r.length===i.length){for(const l of r)if(!(l in t&&tc(e[l],t[l])))return Mr.tester?Mr.tester(e,t):!1;return!0}}return Mr.tester?Mr.tester(e,t):!1}}return Mr.enabled&&Mr.tester?Mr.tester(e,t):!1}const Gp=e=>cs(e,$s),Mo=Symbol.for("nodejs.util.inspect.custom"),nc=e=>{try{if(cs(e,"toJSON")&&Hp(e.toJSON)&&e.toJSON.length===0)return e.toJSON();if(Array.isArray(e))return e.map(nc)}catch{return{}}return JE(e)},Lo=e=>JSON.stringify(e,null,2),ZE=(e,t=2)=>{if(typeof e=="string")return e;try{return typeof e=="object"?YE(e,t):String(e)}catch{return String(e)}},YE=(e,t)=>{let n=[];const r=JSON.stringify(e,(i,l)=>typeof l=="object"&&l!==null?n.includes(l)?void 0:n.push(l)&&(rc.fiberRefs!==void 0&&Kp(l)?l[Md](rc.fiberRefs):l):l,t);return n=void 0,r},Md=Symbol.for("effect/Inspectable/Redactable"),Kp=e=>typeof e=="object"&&e!==null&&Md in e,rc=Ro("effect/Inspectable/redactableState",()=>({fiberRefs:void 0})),JE=e=>Kp(e)&&rc.fiberRefs!==void 0?e[Md](rc.fiberRefs):e,ic=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let r=0,i=t.length;r<i;r++)n=t[r](n);return n}}};let XE="3.21.0";const QE=()=>XE,ek=Symbol.for("effect/Effect"),tk=Symbol.for("effect/Stream"),nk=Symbol.for("effect/Sink"),rk=Symbol.for("effect/Channel"),Ld={_R:e=>e,_E:e=>e,_A:e=>e,_V:QE()},ik={_A:e=>e,_In:e=>e,_L:e=>e,_E:e=>e,_R:e=>e},sk={_Env:e=>e,_InErr:e=>e,_InElem:e=>e,_InDone:e=>e,_OutErr:e=>e,_OutElem:e=>e,_OutDone:e=>e},Dd={[ek]:Ld,[tk]:Ld,[nk]:ik,[rk]:sk,[$s](e){return this===e},[Ai](){return Rd(this,qp(this))},[Symbol.iterator](){return new Ql(new jp(this))},pipe(){return ic(this,arguments)}},$p=Symbol.for("effect/Either"),Zp={...Dd,[$p]:{_R:e=>e},[Mo](){return this.toJSON()},toString(){return Lo(this.toJSON())}},ak=Object.assign(Object.create(Zp),{_tag:"Right",_op:"Right",[$s](e){return Yp(e)&&lk(e)&&ec(this.right,e.right)},[Ai](){return Od(Ti(this._tag))(Ti(this.right))},toJSON(){return{_id:"Either",_tag:this._tag,right:nc(this.right)}}}),ok=Object.assign(Object.create(Zp),{_tag:"Left",_op:"Left",[$s](e){return Yp(e)&&Jp(e)&&ec(this.left,e.left)},[Ai](){return Od(Ti(this._tag))(Ti(this.left))},toJSON(){return{_id:"Either",_tag:this._tag,left:nc(this.left)}}}),Yp=e=>cs(e,$p),Jp=e=>e._tag==="Left",lk=e=>e._tag==="Right",ck=e=>{const t=Object.create(ok);return t.left=e,t},uk=e=>{const t=Object.create(ak);return t.right=e,t},sc=ck,dk=Jp,Xp=cr(2,(e,{onLeft:t,onRight:n})=>dk(e)?t(e.left):n(e.right)),fk=e=>Array.isArray(e)?e:Array.from(e),hk=Symbol.for("effect/Context/Tag"),Qp=Symbol.for("effect/Context/Reference"),gk={...{...Dd,_op:"Tag",[Symbol.for("effect/STM")]:Ld,[hk]:{_Service:e=>e,_Identifier:e=>e},toString(){return Lo(this.toJSON())},toJSON(){return{_id:"Tag",key:this.key,stack:this.stack}},[Mo](){return this.toJSON()},of(e){return e},context(e){return _k(this,e)}},[Qp]:Qp},pk=()=>(e,t)=>{const n=Error.stackTraceLimit;Error.stackTraceLimit=2;const r=new Error;Error.stackTraceLimit=n;function i(){}return Object.setPrototypeOf(i,gk),i.key=e,i.defaultValue=t.defaultValue,Object.defineProperty(i,"stack",{get(){return r.stack}}),i},em=Symbol.for("effect/Context"),mk={[em]:{_Services:e=>e},[$s](e){if(yk(e)&&this.unsafeMap.size===e.unsafeMap.size){for(const t of this.unsafeMap.keys())if(!e.unsafeMap.has(t)||!ec(this.unsafeMap.get(t),e.unsafeMap.get(t)))return!1;return!0}return!1},[Ai](){return Rd(this,Pd(this.unsafeMap.size))},pipe(){return ic(this,arguments)},toString(){return Lo(this.toJSON())},toJSON(){return{_id:"Context",services:Array.from(this.unsafeMap).map(nc)}},[Mo](){return this.toJSON()}},vk=e=>{const t=Object.create(mk);return t.unsafeMap=e,t},yk=e=>cs(e,em),_k=(e,t)=>vk(new Map([[e.key,t]])),xd=Ro("effect/Context/defaultValueCache",()=>new Map),wk=e=>{if(xd.has(e.key))return xd.get(e.key);const t=e.defaultValue();return xd.set(e.key,t),t},bk=(e,t)=>e.unsafeMap.has(t.key)?e.unsafeMap.get(t.key):wk(t),Nd=pk,Sk=Dd,tm=Symbol.for("effect/Micro"),ac=Symbol.for("effect/Micro/MicroExit"),La=e=>typeof e=="object"&&e!==null&&tm in e,nm=Symbol.for("effect/Micro/MicroCause"),Ek={_E:ls};class Ud extends globalThis.Error{constructor(n,r,i){const l=`MicroCause.${n}`;let d,g,p;if(r instanceof globalThis.Error){d=`(${l}) ${r.name}`,g=r.message;const _=g.split(`
46
46
  `).length;p=r.stack?`(${l}) ${r.stack.split(`
47
47
  `).slice(0,_+3).join(`
48
- `)}`:`${d}: ${g}`}else d=l,g=zE(r,0),p=`${d}: ${g}`;i.length>0&&(p+=`
48
+ `)}`:`${d}: ${g}`}else d=l,g=ZE(r,0),p=`${d}: ${g}`;i.length>0&&(p+=`
49
49
  ${i.join(`
50
- `)}`);super(g);Je(this,"_tag");Je(this,"traces");Je(this,H_);this._tag=n,this.traces=i,this[Jp]=gk,this.name=d,this.stack=p}pipe(){return ec(this,arguments)}toString(){return this.stack}[(H_=Jp,Oo)](){return this.stack}}class pk extends Dd{constructor(n,r=[]){super("Fail",n,r);Je(this,"error");this.error=n}}const mk=(e,t=[])=>new pk(e,t);class vk extends Dd{constructor(n,r=[]){super("Die",n,r);Je(this,"defect");this.defect=n}}const yk=(e,t=[])=>new vk(e,t);class _k extends Dd{constructor(t=[]){super("Interrupt","interrupted",t)}}const wk=(e=[])=>new _k(e),bk=e=>e._tag==="Fail",rc=e=>e._tag==="Die",Xp=e=>e._tag==="Interrupt",Qp=Symbol.for("effect/Micro/MicroFiber"),Sk={_A:sa,_E:sa};j_=Qp;class em{constructor(t,n=!0){Je(this,"context");Je(this,"interruptible");Je(this,j_);Je(this,"_stack",[]);Je(this,"_observers",[]);Je(this,"_exit");Je(this,"_children");Je(this,"currentOpCount",0);Je(this,"_interrupted",!1);Je(this,"_yielded");this.context=t,this.interruptible=n,this[Qp]=Sk}getRef(t){return fk(this.context,t)}addObserver(t){return this._exit?(t(this._exit),LE):(this._observers.push(t),()=>{const n=this._observers.indexOf(t);n>=0&&this._observers.splice(n,1)})}unsafeInterrupt(){this._exit||(this._interrupted=!0,this.interruptible&&this.evaluate(cm))}unsafePoll(){return this._exit}evaluate(t){if(this._exit)return;if(this._yielded!==void 0){const i=this._yielded;this._yielded=void 0,i()}const n=this.runLoop(t);if(n===Ds)return;const r=tm.interruptChildren&&tm.interruptChildren(this);if(r!==void 0)return this.evaluate(Yt(r,()=>n));this._exit=n;for(let i=0;i<this._observers.length;i++)this._observers[i](n);this._observers.length=0}runLoop(t){let n=!1,r=t;this.currentOpCount=0;try{for(;;){if(this.currentOpCount++,!n&&this.getRef(lc).shouldYield(this)){n=!0;const i=r;r=Yt(Ak,()=>i)}if(r=r[Nd](this),r===Ds){const i=this._yielded;return nc in i?(this._yielded=void 0,i):Ds}}}catch(i){return oa(r,Nd)?Mo(i):Mo(`MicroFiber.runLoop: Not a valid effect: ${String(r)}`)}}getCont(t){for(;;){const n=this._stack.pop();if(!n)return;const r=n[ic]&&n[ic](this);if(r)return{[t]:r};if(n[t])return n}}yieldWith(t){return this._yielded=t,Ds}children(){return this._children??(this._children=new Set)}}const tm=To("effect/Micro/fiberMiddleware",()=>({interruptChildren:void 0})),Ek=e=>xs(()=>{for(const r of e)r.unsafeInterrupt();const t=e[Symbol.iterator](),n=xs(()=>{let r=t.next();for(;!r.done;){if(r.value.unsafePoll()){r=t.next();continue}const i=r.value;return am(l=>{i.addObserver(d=>{l(n)})})}return Lo});return n}),nm=Symbol.for("effect/Micro/identifier"),Ht=Symbol.for("effect/Micro/args"),Nd=Symbol.for("effect/Micro/evaluate"),ca=Symbol.for("effect/Micro/successCont"),Ls=Symbol.for("effect/Micro/failureCont"),ic=Symbol.for("effect/Micro/ensureCont"),Ds=Symbol.for("effect/Micro/Yield"),kk={_A:sa,_E:sa,_R:sa},Ck={...hk,_op:"Micro",[Yp]:kk,pipe(){return ec(this,arguments)},[Symbol.iterator](){return new Zl(new Fp(this))},toJSON(){return{_id:"Micro",op:this[nm],...Ht in this?{args:this[Ht]}:void 0}},toString(){return Po(this)},[Oo](){return Po(this)}};function Ik(e){return Mo("Micro.evaluate: Not implemented")}const ac=e=>({...Ck,[nm]:e.op,[Nd]:e.eval??Ik,[ca]:e.contA,[Ls]:e.contE,[ic]:e.ensure}),Ai=e=>{const t=ac(e);return function(){const n=Object.create(t);return n[Ht]=e.single===!1?arguments:arguments[0],n}},rm=e=>{const t={...ac(e),[nc]:nc,_tag:e.op,get[e.prop](){return this[Ht]},toJSON(){return{_id:"MicroExit",_tag:e.op,[e.prop]:this[Ht]}},[Ka](n){return Dk(n)&&n._tag===e.op&&Yl(this[Ht],n[Ht])},[Ci](){return Td(this,Id(la(e.op))(Ii(this[Ht])))}};return function(n){const r=Object.create(t);return r[Ht]=n,r[ca]=void 0,r[Ls]=void 0,r[ic]=void 0,r}},wn=rm({op:"Success",prop:"value",eval(e){const t=e.getCont(ca);return t?t[ca](this[Ht],e):e.yieldWith(this)}}),Ns=rm({op:"Failure",prop:"cause",eval(e){let t=e.getCont(Ls);for(;Xp(this[Ht])&&t&&e.interruptible;)t=e.getCont(Ls);return t?t[Ls](this[Ht],e):e.yieldWith(this)}}),tn=e=>Ns(mk(e)),Ti=Ai({op:"Sync",eval(e){const t=this[Ht](),n=e.getCont(ca);return n?n[ca](t,e):e.yieldWith(om(t))}}),xs=Ai({op:"Suspend",eval(e){return this[Ht]()}}),Ak=Ai({op:"Yield",eval(e){let t=!1;return e.getRef(lc).scheduleTask(()=>{t||e.evaluate(Lo)},this[Ht]??0),e.yieldWith(()=>{t=!0})}})(0),Tk=e=>Mo(e),im=wn(void 0),Ro=e=>xs(()=>{try{return wn(e.try())}catch(t){return tn(e.catch(t))}}),$a=e=>xd(function(t,n){e(n).then(r=>t(wn(r)),r=>t(Tk(r)))},e.length!==0),Oi=e=>xd(function(t,n){try{e.try(n).then(r=>t(wn(r)),r=>t(tn(e.catch(r))))}catch(r){t(tn(e.catch(r)))}},e.try.length!==0),Ok=Ai({op:"WithMicroFiber",eval(e){return this[Ht](e)}}),xd=Ai({op:"Async",single:!1,eval(e){const t=this[Ht][0];let n=!1,r=!1;const i=this[Ht][1]?new AbortController:void 0,l=t(d=>{n||(n=!0,r?e.evaluate(d):r=d)},i==null?void 0:i.signal);return r!==!1?r:(r=!0,e._yielded=()=>{n=!0},i===void 0&&l===void 0||e._stack.push(Pk(()=>(n=!0,i==null||i.abort(),l??Lo))),Ds)}}),Pk=Ai({op:"AsyncFinalizer",ensure(e){e.interruptible&&(e.interruptible=!1,e._stack.push(Gk(!0)))},contE(e,t){return Xp(e)?Yt(this[Ht](),()=>Ns(e)):Ns(e)}}),am=e=>xd(e,e.length>=2),sm=(...e)=>xs(()=>Rk(e.length===1?e[0]():e[1].call(e[0]))),Rk=Ai({op:"Iterator",contA(e,t){const n=this[Ht].next(e);return n.done?wn(n.value):(t._stack.push(this),FE(n.value))},eval(e){return this[ca](void 0,e)}}),Ud=lr(2,(e,t)=>jr(e,n=>t)),Mk=lr(2,(e,t)=>Yt(e,n=>{const r=Ms(t)?t:typeof t=="function"?t(n):t;return Ms(r)?r:wn(r)})),fi=lr(2,(e,t)=>Yt(e,n=>{const r=Ms(t)?t:typeof t=="function"?t(n):t;return Ms(r)?Ud(r,n):wn(n)})),Yt=lr(2,(e,t)=>{const n=Object.create(Lk);return n[Ht]=e,n[ca]=t,n}),Lk=ac({op:"OnSuccess",eval(e){return e._stack.push(this),this[Ht]}}),jr=lr(2,(e,t)=>Yt(e,n=>wn(t(n)))),Dk=e=>oa(e,nc),om=wn,lm=Ns,cm=lm(wk()),Mo=e=>lm(yk(e)),sc=e=>e._tag==="Success",Nk=e=>e._tag==="Failure",oc=e=>Nk(e)&&e.cause._tag==="Fail",Lo=om(void 0),xk="setImmediate"in globalThis?globalThis.setImmediate:e=>setTimeout(e,0);class um{constructor(){Je(this,"tasks",[]);Je(this,"running",!1);Je(this,"afterScheduled",()=>{this.running=!1,this.runTasks()})}scheduleTask(t,n){this.tasks.push(t),this.running||(this.running=!0,xk(this.afterScheduled))}runTasks(){const t=this.tasks;this.tasks=[];for(let n=0,r=t.length;n<r;n++)t[n]()}shouldYield(t){return t.currentOpCount>=t.getRef(Uk)}flush(){for(;this.tasks.length>0;)this.runTasks()}}class Uk extends Ld()("effect/Micro/currentMaxOpsBeforeYield",{defaultValue:()=>2048}){}class Fk extends Ld()("effect/Micro/currentConcurrency",{defaultValue:()=>"unbounded"}){}class lc extends Ld()("effect/Micro/currentScheduler",{defaultValue:()=>new um}){}const Bk=lr(e=>Ms(e[1]),(e,t,n)=>zk(e,t,(r,i)=>[r,i],n)),zk=lr(e=>Ms(e[1]),(e,t,n,r)=>r!=null&&r.concurrent?jr(Wk([e,t],{concurrency:2}),([i,l])=>n(i,l)):Yt(e,i=>jr(t,l=>n(i,l)))),Vk=lr(2,(e,t)=>{const n=Object.create(Hk);return n[Ht]=e,n[Ls]=t,n}),Hk=ac({op:"OnFailure",eval(e){return e._stack.push(this),this[Ht]}}),jk=lr(3,(e,t,n)=>Vk(e,r=>t(r)?n(r):Ns(r))),qk=lr(3,(e,t,n)=>jk(e,t,r=>Mk(n(r),Ns(r)))),Za=lr(2,(e,t)=>qk(e,bk,n=>t(n.error))),Gk=Ai({op:"SetInterruptible",ensure(e){if(e.interruptible=this[Ht],e._interrupted&&e.interruptible)return()=>cm}}),Wk=(e,t)=>Array.isArray(e)||xE(e)?Fd(e,sa,t):t!=null&&t.discard?Fd(Object.values(e),sa,t):xs(()=>{const n={};return Ud(Fd(Object.entries(e),([r,i])=>jr(i,l=>{n[r]=l}),{discard:!0,concurrency:t==null?void 0:t.concurrency}),n)}),Kk=Ai({op:"While",contA(e,t){return this[Ht].step(e),this[Ht].while()?(t._stack.push(this),this[Ht].body()):Lo},eval(e){return this[Ht].while()?(e._stack.push(this),this[Ht].body()):Lo}}),Fd=(e,t,n)=>Ok(r=>{const i=(n==null?void 0:n.concurrency)==="inherit"?r.getRef(Fk):(n==null?void 0:n.concurrency)??1,l=i==="unbounded"?Number.POSITIVE_INFINITY:Math.max(1,i),d=rk(e);let g=d.length;if(g===0)return n!=null&&n.discard?im:wn([]);const p=n!=null&&n.discard?void 0:new Array(g);let _=0;return l===1?Ud(Kk({while:()=>_<d.length,body:()=>t(d[_],_),step:p?S=>p[_++]=S:S=>_++}),p):am(S=>{const k=new Set;let h,y=0,b=0,c=!1,u=!1;function f(){for(c=!0;y<l&&_<g;){const s=_,o=d[s];_++,y++;try{const a=$k(r,t(o,s),!0,!0);k.add(a),a.addObserver(m=>{k.delete(a),!u&&(m._tag==="Failure"?h===void 0&&(h=m,g=_,k.forEach(v=>v.unsafeInterrupt())):p!==void 0&&(p[s]=m.value),b++,y--,b===g?S(h??wn(p)):!c&&y<l&&f())})}catch(a){h=Mo(a),g=_,k.forEach(m=>m.unsafeInterrupt())}}c=!1}return f(),xs(()=>(u=!0,_=g,Ek(k)))})}),$k=(e,t,n=!1,r=!1)=>{const i=new em(e.context,e.interruptible);return r||(e.children().add(i),i.addObserver(()=>e.children().delete(i))),n?i.evaluate(t):e.getRef(lc).scheduleTask(()=>i.evaluate(t),0),i},Zk=(e,t)=>{const n=new em(lc.context(new um));return n.evaluate(e),n},ua=(e,t)=>new Promise((n,r)=>{Zk(e).addObserver(n)});function Do(e,t,n){if(sc(e))return e.value;if(oc(e))return e.cause.error;const r=rc(e.cause)?e.cause.defect:void 0;return{error:t,message:r instanceof Error?r.message:String(r??"Unknown defect"),type:n}}function Bd(e=32){const t=crypto.getRandomValues(new Uint8Array(e));return btoa(t.join("")).replace(/[^a-zA-Z0-9]+/,"")}function dm(){return Bd(16)}function Yk(){return Bd(32)}async function fm(e){const t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t),r=Array.from(new Uint8Array(n));return btoa(String.fromCharCode(...r)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function cc(e,t,n){return e===1?t:n!==void 0?n:t+"s"}function Jk(e){const t=(e||"").split("/").map(r=>r.trim()).filter(r=>r!=="");return t[0]!=="root"&&t.unshift("root"),t.map(r=>`realms/${r}`).join("/")}function hm({endpoint:e,realmPath:t,customPaths:n}){const r=Jk(t),i={authenticate:`json/${r}/authenticate`,authorize:`oauth2/${r}/authorize`,accessToken:`oauth2/${r}/access_token`,endSession:`oauth2/${r}/connect/endSession`,userInfo:`oauth2/${r}/userinfo`,revoke:`oauth2/${r}/token/revoke`,sessions:`json/${r}/sessions/`};return n&&n[e]?n[e]:i[e]}function gm(e){const n=e.protocol==="http:"&&["","80"].indexOf(e.port)===-1||e.protocol==="https:"&&["","443"].indexOf(e.port)===-1?`:${e.port}`:"";let r=e.hostname;return r.includes(":")&&!r.startsWith("[")&&!r.endsWith("]")&&(r=`[${r}]`),`${e.protocol}//${r}${n}`}function pm(e,t){const n=new URL(e);if(t.startsWith("/"))return`${gm(n)}${t}`;const r=n.pathname.split("/"),i=t.split("/").filter(d=>!!d),l=[...r.slice(0,-1),...i].join("/");return`${gm(n)}${l}`}function mm(e){const t=[];for(const n in e)e[n]&&t.push(n+"="+encodeURIComponent(e[n]));return t.join("&")}function Xk(e){if(typeof e=="object"&&e!==null){if("message"in e&&typeof e.message=="string")return e.message;if("error"in e&&typeof e.error=="string")return e.error;if("data"in e&&typeof e.data=="object"&&e.data!==null){const t=e.data;if(typeof t.message=="string")return t.message;if(typeof t.error=="string")return t.error;if(typeof t.error_description=="string")return t.error_description}if("status"in e&&(typeof e.status=="number"||typeof e.status=="string"))return`HTTP error ${String(e.status)}`}return"An unknown error occurred"}const Qk="/.well-known/openid-configuration";function eC(e){try{const t=new URL(e),n=t.hostname==="localhost"||t.hostname==="127.0.0.1",r=t.protocol==="https:",i=t.protocol==="http:"&&n;return!r&&!i?!1:t.pathname.endsWith(Qk)}catch{return!1}}function tC(e){return typeof e=="object"&&e!==null&&"type"in e&&"message"in e&&"error"in e}function nC(e){return e?tC(e)?e:{error:"Well-known configuration fetch failed",message:Xk(e),type:"wellknown_error",status:"unknown"}:{error:"Well-known configuration fetch failed",message:"No response received from well-known endpoint",type:"wellknown_error",status:"unknown"}}function da(e,t,n){return!e||e[t]===void 0?n:e[t]}function uc(e,t){return e.reduce((n,r)=>{var i;if(r.includes(".")){const l=r.split("."),d=l[0],g=l[1],p=(i=t[d])==null?void 0:i[g];n[g]=p??""}else n[r]=t[r]!=null?t[r]:null;return n},{})}function rC(e,t){return e.reduce((n,r)=>(n=`${n}${t[r].filename};`,n),"")}const iC="forgerock-sdk",fe={BooleanAttributeInputCallback:"BooleanAttributeInputCallback",ChoiceCallback:"ChoiceCallback",ConfirmationCallback:"ConfirmationCallback",DeviceProfileCallback:"DeviceProfileCallback",HiddenValueCallback:"HiddenValueCallback",KbaCreateCallback:"KbaCreateCallback",MetadataCallback:"MetadataCallback",NameCallback:"NameCallback",NumberAttributeInputCallback:"NumberAttributeInputCallback",PasswordCallback:"PasswordCallback",PingOneProtectEvaluationCallback:"PingOneProtectEvaluationCallback",PingOneProtectInitializeCallback:"PingOneProtectInitializeCallback",PollingWaitCallback:"PollingWaitCallback",ReCaptchaCallback:"ReCaptchaCallback",ReCaptchaEnterpriseCallback:"ReCaptchaEnterpriseCallback",RedirectCallback:"RedirectCallback",SelectIdPCallback:"SelectIdPCallback",StringAttributeInputCallback:"StringAttributeInputCallback",SuspendedTextOutputCallback:"SuspendedTextOutputCallback",TermsAndConditionsCallback:"TermsAndConditionsCallback",TextInputCallback:"TextInputCallback",TextOutputCallback:"TextOutputCallback",ValidatedCreatePasswordCallback:"ValidatedCreatePasswordCallback",ValidatedCreateUsernameCallback:"ValidatedCreateUsernameCallback"};var qr;(function(e){e.LoginFailure="LoginFailure",e.LoginSuccess="LoginSuccess",e.Step="Step"})(qr||(qr={}));var nn;(function(e){e.CannotContainCharacters="CANNOT_CONTAIN_CHARACTERS",e.CannotContainDuplicates="CANNOT_CONTAIN_DUPLICATES",e.CannotContainOthers="CANNOT_CONTAIN_OTHERS",e.LeastCapitalLetters="AT_LEAST_X_CAPITAL_LETTERS",e.LeastNumbers="AT_LEAST_X_NUMBERS",e.MatchRegexp="MATCH_REGEXP",e.MaximumLength="MAX_LENGTH",e.MaximumNumber="MAXIMUM_NUMBER_VALUE",e.MinimumLength="MIN_LENGTH",e.MinimumNumber="MINIMUM_NUMBER_VALUE",e.Required="REQUIRED",e.Unique="UNIQUE",e.UnknownPolicy="UNKNOWN_POLICY",e.ValidArrayItems="VALID_ARRAY_ITEMS",e.ValidDate="VALID_DATE",e.ValidEmailAddress="VALID_EMAIL_ADDRESS_FORMAT",e.ValidNameFormat="VALID_NAME_FORMAT",e.ValidNumber="VALID_NUMBER",e.ValidPhoneFormat="VALID_PHONE_FORMAT",e.ValidQueryFilter="VALID_QUERY_FILTER",e.ValidType="VALID_TYPE"})(nn||(nn={}));function vm(e,t){return`${t||"FR-SDK"}-authflow-${e}`}function ym(e){const t=Yk(),n=dm(),r=vm(e.clientId,e.prefix),i={...e,state:n,verifier:t};return[i,()=>sessionStorage.setItem(r,JSON.stringify(i))]}function aC(e,t){const n=vm(e,t),r=sessionStorage.getItem(n);sessionStorage.removeItem(n);try{return JSON.parse(r)}catch{throw new Error("Stored values for Auth URL could not be parsed")}}function _m(e){const t=new URLSearchParams(e.query);return t.set("client_id",e.clientId),t.set("response_type",e.responseType),t.set("scope",e.scope),t.set("redirect_uri",e.redirectUri),t.set("code_challenge",e.challenge),t.set("code_challenge_method","S256"),t.set("state",e.state),e.responseMode&&t.set("response_mode",e.responseMode),e.prompt&&t.set("prompt",e.prompt),e.loginHint&&t.set("login_hint",e.loginHint),e.nonce&&t.set("nonce",e.nonce),e.display&&t.set("display",e.display),e.uiLocales&&t.set("ui_locales",e.uiLocales),e.acrValues&&t.set("acr_values",e.acrValues),t}async function zd(e,t){const n=new URL(e).origin,[r,i]=ym({clientId:t.clientId,serverConfig:{baseUrl:n},responseType:t.responseType,redirectUri:t.redirectUri,scope:t.scope}),l=await fm(r.verifier),d=_m({...t,challenge:l,state:r.state}),g=new URL(`${e}?${d.toString()}`);return i(),g.toString()}function wm(e,t="unknown"){return{error:"Well-known configuration fetch failed",message:e,type:"wellknown_error",status:t}}function sC(e){return typeof e=="object"&&e!==null}function oC(e){return sC(e)?typeof e.issuer=="string"&&typeof e.authorization_endpoint=="string"&&typeof e.token_endpoint=="string":!1}function bm(e){const t={url:e,headers:{Accept:"application/json"}};return{async applyQuery(n){let r;try{r=await n(t)}catch(i){const l=i instanceof Error?i.message:"An unknown error occurred during well-known fetch";return{error:{status:"CUSTOM_ERROR",error:l,data:wm(l)}}}return r.error?{error:r.error}:oC(r.data)?{data:r.data}:{error:{status:"CUSTOM_ERROR",error:"Invalid well-known response: missing required fields (issuer, authorization_endpoint, token_endpoint)",data:wm("Invalid well-known response: missing required fields (issuer, authorization_endpoint, token_endpoint)")}}}}}function fa(e,t){let n;switch(e){case"localStorage":n="local";break;case"sessionStorage":n="session";break;case"custom":n="custom";break}return{error:`${t}_error`,message:`Error ${t.toLowerCase()} value from ${n} storage`,type:t==="Parsing"?"parse_error":"unknown_error"}}function Sm(e){const{type:t,prefix:n="pic",name:r}=e,i=`${n}-${r}`,l={sessionStorage,localStorage};if(t==="custom"&&!("custom"in e))throw new Error("Custom storage configuration must include a custom storage object");return{get:async function(){if(t==="custom"){let p;try{p=await e.custom.get(i)}catch{return fa(t,"Retrieving")}if(p===null||typeof p=="object"&&"error"in p)return p;try{return JSON.parse(p)}catch{return fa(t,"Parsing")}}let g;try{if(g=await l[t].getItem(i),g===null)return g}catch{return fa(t,"Retrieving")}try{return JSON.parse(g)}catch{return fa(t,"Parsing")}},set:async function(g){const p=JSON.stringify(g);if(t==="custom")try{return await e.custom.set(i,p)??null}catch{return fa(t,"Storing")}try{return await l[t].setItem(i,p),Promise.resolve(null)}catch{return fa(t,"Storing")}},remove:async function(){if(t==="custom")try{return await e.custom.remove(i)??null}catch{return fa(t,"Removing")}try{return await l[t].removeItem(i),Promise.resolve(null)}catch{return fa(t,"Removing")}}}}function Em(e){return typeof e=="object"&&e!==null}function lC(e){return Em(e)&&typeof e.request_uri=="string"}function cC(e,t,n){var i;const r=(i=e.response_modes_supported)==null?void 0:i.includes("pi.flow");return[e.authorization_endpoint,{clientId:t.clientId,redirectUri:t.redirectUri,scope:t.scope||"openid",responseType:t.responseType||"code",...r&&{responseMode:"pi.flow"},...n}]}function km(e){return"status"in e}const uC=new Set(["auth_error","argument_error","network_error","unknown_error","wellknown_error"]);function dC(e){return typeof e=="string"&&uC.has(e)}function fC(e){return Em(e)&&typeof e.error=="string"?{error:e.error,error_description:typeof e.error_description=="string"?e.error_description:"",type:dC(e.type)?e.type:"unknown_error",...typeof e.redirectUrl=="string"&&{redirectUrl:e.redirectUrl}}:{error:"Unknown_Error",error_description:"Unexpected error response shape",type:"unknown_error"}}function hC({authorizationEndpoint:e,clientId:t,requestUri:n,prompt:r}){const i=new URL(e);return i.searchParams.set("client_id",t),i.searchParams.set("request_uri",n),r&&i.searchParams.set("prompt",r),i.toString()}function Cm(e){return km(e)?fC(e.data):{error:e.code??"Unknown_Error",error_description:e.message??"An unknown error occurred during authorization",type:"unknown_error"}}function Mn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var gC=typeof Symbol=="function"&&Symbol.observable||"@@observable",Im=gC,Vd=()=>Math.random().toString(36).substring(7).split("").join("."),pC={INIT:`@@redux/INIT${Vd()}`,REPLACE:`@@redux/REPLACE${Vd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Vd()}`},dc=pC;function ha(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Am(e,t,n){if(typeof e!="function")throw new Error(Mn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Mn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Mn(1));return n(Am)(e,t)}let r=e,i=t,l=new Map,d=l,g=0,p=!1;function _(){d===l&&(d=new Map,l.forEach((u,f)=>{d.set(f,u)}))}function S(){if(p)throw new Error(Mn(3));return i}function k(u){if(typeof u!="function")throw new Error(Mn(4));if(p)throw new Error(Mn(5));let f=!0;_();const s=g++;return d.set(s,u),function(){if(f){if(p)throw new Error(Mn(6));f=!1,_(),d.delete(s),l=null}}}function h(u){if(!ha(u))throw new Error(Mn(7));if(typeof u.type>"u")throw new Error(Mn(8));if(typeof u.type!="string")throw new Error(Mn(17));if(p)throw new Error(Mn(9));try{p=!0,i=r(i,u)}finally{p=!1}return(l=d).forEach(s=>{s()}),u}function y(u){if(typeof u!="function")throw new Error(Mn(10));r=u,h({type:dc.REPLACE})}function b(){const u=k;return{subscribe(f){if(typeof f!="object"||f===null)throw new Error(Mn(11));function s(){const a=f;a.next&&a.next(S())}return s(),{unsubscribe:u(s)}},[Im](){return this}}}return h({type:dc.INIT}),{dispatch:h,subscribe:k,getState:S,replaceReducer:y,[Im]:b}}function mC(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:dc.INIT})>"u")throw new Error(Mn(12));if(typeof n(void 0,{type:dc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Mn(13))})}function Hd(e){const t=Object.keys(e),n={};for(let l=0;l<t.length;l++){const d=t[l];typeof e[d]=="function"&&(n[d]=e[d])}const r=Object.keys(n);let i;try{mC(n)}catch(l){i=l}return function(d={},g){if(i)throw i;let p=!1;const _={};for(let S=0;S<r.length;S++){const k=r[S],h=n[k],y=d[k],b=h(y,g);if(typeof b>"u")throw g&&g.type,new Error(Mn(14));_[k]=b,p=p||b!==y}return p=p||r.length!==Object.keys(d).length,p?_:d}}function fc(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function vC(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(Mn(15))};const d={getState:i.getState,dispatch:(p,..._)=>l(p,..._)},g=e.map(p=>p(d));return l=fc(...g)(i.dispatch),{...i,dispatch:l}}}function Tm(e){return ha(e)&&"type"in e&&typeof e.type=="string"}var jd=Symbol.for("immer-nothing"),No=Symbol.for("immer-draftable"),In=Symbol.for("immer-state");function Ln(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var cr=Object,Ya=cr.getPrototypeOf,xo="constructor",Uo="prototype",qd="configurable",hc="enumerable",gc="writable",Fo="value",ur=e=>!!e&&!!e[In];function dr(e){var t;return e?Pm(e)||Vo(e)||!!e[No]||!!((t=e[xo])!=null&&t[No])||Ho(e)||jo(e):!1}var yC=cr[Uo][xo].toString(),Om=new WeakMap;function Pm(e){if(!e||!Us(e))return!1;const t=Ya(e);if(t===null||t===cr[Uo])return!0;const n=cr.hasOwnProperty.call(t,xo)&&t[xo];if(n===Object)return!0;if(!Xa(n))return!1;let r=Om.get(n);return r===void 0&&(r=Function.toString.call(n),Om.set(n,r)),r===yC}function _C(e){return ur(e)||Ln(15,e),e[In].base_}function Bo(e,t,n=!0){Ja(e)===0?(n?Reflect.ownKeys(e):cr.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Ja(e){const t=e[In];return t?t.type_:Vo(e)?1:Ho(e)?2:jo(e)?3:0}var zo=(e,t,n=Ja(e))=>n===2?e.has(t):cr[Uo].hasOwnProperty.call(e,t),Pi=(e,t,n=Ja(e))=>n===2?e.get(t):e[t],pc=(e,t,n,r=Ja(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function wC(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Vo=Array.isArray,Ho=e=>e instanceof Map,jo=e=>e instanceof Set,Us=e=>typeof e=="object",Xa=e=>typeof e=="function",Gd=e=>typeof e=="boolean";function bC(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var SC=e=>Us(e)?e==null?void 0:e[In]:null,Ri=e=>e.copy_||e.base_,Wd=e=>e.modified_?e.copy_:e.base_;function Kd(e,t){if(Ho(e))return new Map(e);if(jo(e))return new Set(e);if(Vo(e))return Array[Uo].slice.call(e);const n=Pm(e);if(t===!0||t==="class_only"&&!n){const r=cr.getOwnPropertyDescriptors(e);delete r[In];let i=Reflect.ownKeys(r);for(let l=0;l<i.length;l++){const d=i[l],g=r[d];g[gc]===!1&&(g[gc]=!0,g[qd]=!0),(g.get||g.set)&&(r[d]={[qd]:!0,[gc]:!0,[hc]:g[hc],[Fo]:e[d]})}return cr.create(Ya(e),r)}else{const r=Ya(e);if(r!==null&&n)return{...e};const i=cr.create(r);return cr.assign(i,e)}}function $d(e,t=!1){return vc(e)||ur(e)||!dr(e)||(Ja(e)>1&&cr.defineProperties(e,{set:mc,add:mc,clear:mc,delete:mc}),cr.freeze(e),t&&Bo(e,(n,r)=>{$d(r,!0)},!1)),e}function EC(){Ln(2)}var mc={[Fo]:EC};function vc(e){return e===null||!Us(e)?!0:cr.isFrozen(e)}var yc="MapSet",_c="Patches",Rm="ArrayMethods",wc={};function Qa(e){const t=wc[e];return t||Ln(0,e),t}var Mm=e=>!!wc[e];function kC(e,t){wc[e]||(wc[e]=t)}var qo,Lm=()=>qo,CC=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Mm(yc)?Qa(yc):void 0,arrayMethodsPlugin_:Mm(Rm)?Qa(Rm):void 0});function Dm(e,t){t&&(e.patchPlugin_=Qa(_c),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Zd(e){Yd(e),e.drafts_.forEach(IC),e.drafts_=null}function Yd(e){e===qo&&(qo=e.parent_)}var Nm=e=>qo=CC(qo,e);function IC(e){const t=e[In];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function xm(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[In].modified_&&(Zd(t),Ln(4)),dr(e)&&(e=Um(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[In].base_,e,t)}else e=Um(t,n);return AC(t,e,!0),Zd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==jd?e:void 0}function Um(e,t){if(vc(t))return t;const n=t[In];if(!n)return Sc(t,e.handledSet_,e);if(!bc(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);zm(n,e)}return n.copy_}function AC(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&$d(t,n)}function Fm(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var bc=(e,t)=>e.scope_===t,TC=[];function Bm(e,t,n,r){const i=Ri(e),l=e.type_;if(r!==void 0&&Pi(i,r,l)===t){pc(i,r,n,l);return}if(!e.draftLocations_){const g=e.draftLocations_=new Map;Bo(i,(p,_)=>{if(ur(_)){const S=g.get(_)||[];S.push(p),g.set(_,S)}})}const d=e.draftLocations_.get(t)??TC;for(const g of d)pc(i,g,n,l)}function OC(e,t,n){e.callbacks_.push(function(i){var g;const l=t;if(!l||!bc(l,i))return;(g=i.mapSetPlugin_)==null||g.fixSetContents(l);const d=Wd(l);Bm(e,l.draft_??l,d,n),zm(l,i)})}function zm(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const l=i.getPath(e);l&&i.generatePatches_(e,l,t)}Fm(e)}}function PC(e,t,n){const{scope_:r}=e;if(ur(n)){const i=n[In];bc(i,r)&&i.callbacks_.push(function(){kc(e);const d=Wd(i);Bm(e,n,d,t)})}else dr(n)&&e.callbacks_.push(function(){const l=Ri(e);e.type_===3?l.has(n)&&Sc(n,r.handledSet_,r):Pi(l,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Sc(Pi(e.copy_,t,e.type_),r.handledSet_,r)})}function Sc(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||ur(e)||t.has(e)||!dr(e)||vc(e)||(t.add(e),Bo(e,(r,i)=>{if(ur(i)){const l=i[In];if(bc(l,n)){const d=Wd(l);pc(e,r,d,e.type_),Fm(l)}}else dr(i)&&Sc(i,t,n)})),e}function RC(e,t){const n=Vo(e),r={type_:n?1:0,scope_:t?t.scope_:Lm(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,l=Ec;n&&(i=[r],l=Go);const{revoke:d,proxy:g}=Proxy.revocable(i,l);return r.draft_=g,r.revoke_=d,[g,r]}var Ec={get(e,t){if(t===In)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=Ri(e);if(!zo(i,t,e.type_))return MC(e,i,t);const l=i[t];if(e.finalized_||!dr(l)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&bC(t))return l;if(l===Jd(e.base_,t)){kc(e);const d=e.type_===1?+t:t,g=Qd(e.scope_,l,e,d);return e.copy_[d]=g}return l},has(e,t){return t in Ri(e)},ownKeys(e){return Reflect.ownKeys(Ri(e))},set(e,t,n){const r=Vm(Ri(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Jd(Ri(e),t),l=i==null?void 0:i[In];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(wC(n,i)&&(n!==void 0||zo(e.base_,t,e.type_)))return!0;kc(e),Xd(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),PC(e,t,n)),!0},deleteProperty(e,t){return kc(e),Jd(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Xd(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ri(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[gc]:!0,[qd]:e.type_!==1||t!=="length",[hc]:r[hc],[Fo]:n[t]}},defineProperty(){Ln(11)},getPrototypeOf(e){return Ya(e.base_)},setPrototypeOf(){Ln(12)}},Go={};for(let e in Ec){let t=Ec[e];Go[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Go.deleteProperty=function(e,t){return Go.set.call(this,e,t,void 0)},Go.set=function(e,t,n){return Ec.set.call(this,e[0],t,n,e[0])};function Jd(e,t){const n=e[In];return(n?Ri(n):e)[t]}function MC(e,t,n){var i;const r=Vm(t,n);return r?Fo in r?r[Fo]:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Vm(e,t){if(!(t in e))return;let n=Ya(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ya(n)}}function Xd(e){e.modified_||(e.modified_=!0,e.parent_&&Xd(e.parent_))}function kc(e){e.copy_||(e.assigned_=new Map,e.copy_=Kd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var LC=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(Xa(t)&&!Xa(n)){const l=n;n=t;const d=this;return function(p=l,..._){return d.produce(p,S=>n.call(this,S,..._))}}Xa(n)||Ln(6),r!==void 0&&!Xa(r)&&Ln(7);let i;if(dr(t)){const l=Nm(this),d=Qd(l,t,void 0);let g=!0;try{i=n(d),g=!1}finally{g?Zd(l):Yd(l)}return Dm(l,r),xm(i,l)}else if(!t||!Us(t)){if(i=n(t),i===void 0&&(i=t),i===jd&&(i=void 0),this.autoFreeze_&&$d(i,!0),r){const l=[],d=[];Qa(_c).generateReplacementPatches_(t,i,{patches_:l,inversePatches_:d}),r(l,d)}return i}else Ln(1,t)},this.produceWithPatches=(t,n)=>{if(Xa(t))return(d,...g)=>this.produceWithPatches(d,p=>t(p,...g));let r,i;return[this.produce(t,n,(d,g)=>{r=d,i=g}),r,i]},Gd(e==null?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Gd(e==null?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Gd(e==null?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){dr(e)||Ln(8),ur(e)&&(e=Hm(e));const t=Nm(this),n=Qd(t,e,void 0);return n[In].isManual_=!0,Yd(t),n}finishDraft(e,t){const n=e&&e[In];(!n||!n.isManual_)&&Ln(9);const{scope_:r}=n;return Dm(r,t),xm(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Qa(_c).applyPatches_;return ur(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Qd(e,t,n,r){const[i,l]=Ho(t)?Qa(yc).proxyMap_(t,n):jo(t)?Qa(yc).proxySet_(t,n):RC(t,n);return((n==null?void 0:n.scope_)??Lm()).drafts_.push(i),l.callbacks_=(n==null?void 0:n.callbacks_)??[],l.key_=r,n&&r!==void 0?OC(n,l,r):l.callbacks_.push(function(p){var S;(S=p.mapSetPlugin_)==null||S.fixSetContents(l);const{patchPlugin_:_}=p;l.modified_&&_&&_.generatePatches_(l,[],p)}),i}function Hm(e){return ur(e)||Ln(10,e),jm(e)}function jm(e){if(!dr(e)||vc(e))return e;const t=e[In];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Kd(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Kd(e,!0);return Bo(n,(i,l)=>{pc(n,i,jm(l))},r),t&&(t.finalized_=!1),n}function DC(){function t(b,c=[]){if(b.key_!==void 0){const u=b.parent_.copy_??b.parent_.base_,f=SC(Pi(u,b.key_)),s=Pi(u,b.key_);if(s===void 0||s!==b.draft_&&s!==b.base_&&s!==b.copy_||f!=null&&f.base_!==b.base_)return null;const o=b.parent_.type_===3;let a;if(o){const m=b.parent_;a=Array.from(m.drafts_.keys()).indexOf(b.key_)}else a=b.key_;if(!(o&&u.size>a||zo(u,a)))return null;c.push(a)}if(b.parent_)return t(b.parent_,c);c.reverse();try{n(b.copy_,c)}catch{return null}return c}function n(b,c){let u=b;for(let f=0;f<c.length-1;f++){const s=c[f];if(u=Pi(u,s),!Us(u)||u===null)throw new Error(`Cannot resolve path at '${c.join("/")}'`)}return u}const r="replace",i="add",l="remove";function d(b,c,u){if(b.scope_.processedForPatches_.has(b))return;b.scope_.processedForPatches_.add(b);const{patches_:f,inversePatches_:s}=u;switch(b.type_){case 0:case 2:return p(b,c,f,s);case 1:return g(b,c,f,s);case 3:return _(b,c,f,s)}}function g(b,c,u,f){let{base_:s,assigned_:o}=b,a=b.copy_;a.length<s.length&&([s,a]=[a,s],[u,f]=[f,u]);const m=b.allIndicesReassigned_===!0;for(let v=0;v<s.length;v++){const w=a[v],A=s[v];if((m||(o==null?void 0:o.get(v.toString())))&&w!==A){const O=w==null?void 0:w[In];if(O&&O.modified_)continue;const T=c.concat([v]);u.push({op:r,path:T,value:y(w)}),f.push({op:r,path:T,value:y(A)})}}for(let v=s.length;v<a.length;v++){const w=c.concat([v]);u.push({op:i,path:w,value:y(a[v])})}for(let v=a.length-1;s.length<=v;--v){const w=c.concat([v]);f.push({op:l,path:w})}}function p(b,c,u,f){const{base_:s,copy_:o,type_:a}=b;Bo(b.assigned_,(m,v)=>{const w=Pi(s,m,a),A=Pi(o,m,a),E=v?zo(s,m)?r:i:l;if(w===A&&E===r)return;const O=c.concat(m);u.push(E===l?{op:E,path:O}:{op:E,path:O,value:y(A)}),f.push(E===i?{op:l,path:O}:E===l?{op:i,path:O,value:y(w)}:{op:r,path:O,value:y(w)})})}function _(b,c,u,f){let{base_:s,copy_:o}=b,a=0;s.forEach(m=>{if(!o.has(m)){const v=c.concat([a]);u.push({op:l,path:v,value:m}),f.unshift({op:i,path:v,value:m})}a++}),a=0,o.forEach(m=>{if(!s.has(m)){const v=c.concat([a]);u.push({op:i,path:v,value:m}),f.unshift({op:l,path:v,value:m})}a++})}function S(b,c,u){const{patches_:f,inversePatches_:s}=u;f.push({op:r,path:[],value:c===jd?void 0:c}),s.push({op:r,path:[],value:b})}function k(b,c){return c.forEach(u=>{const{path:f,op:s}=u;let o=b;for(let w=0;w<f.length-1;w++){const A=Ja(o);let E=f[w];typeof E!="string"&&typeof E!="number"&&(E=""+E),(A===0||A===1)&&(E==="__proto__"||E===xo)&&Ln(19),Xa(o)&&E===Uo&&Ln(19),o=Pi(o,E),Us(o)||Ln(18,f.join("/"))}const a=Ja(o),m=h(u.value),v=f[f.length-1];switch(s){case r:switch(a){case 2:return o.set(v,m);case 3:Ln(16);default:return o[v]=m}case i:switch(a){case 1:return v==="-"?o.push(m):o.splice(v,0,m);case 2:return o.set(v,m);case 3:return o.add(m);default:return o[v]=m}case l:switch(a){case 1:return o.splice(v,1);case 2:return o.delete(v);case 3:return o.delete(u.value);default:return delete o[v]}default:Ln(17,s)}}),b}function h(b){if(!dr(b))return b;if(Vo(b))return b.map(h);if(Ho(b))return new Map(Array.from(b.entries()).map(([u,f])=>[u,h(f)]));if(jo(b))return new Set(Array.from(b).map(h));const c=Object.create(Ya(b));for(const u in b)c[u]=h(b[u]);return zo(b,No)&&(c[No]=b[No]),c}function y(b){return ur(b)?h(b):b}kC(_c,{applyPatches_:k,generatePatches_:d,generateReplacementPatches_:S,getPath:t})}var Wo=new LC,Ko=Wo.produce,qm=Wo.produceWithPatches.bind(Wo),Gm=Wo.applyPatches.bind(Wo);function NC(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function xC(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function UC(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Wm=e=>Array.isArray(e)?e:[e];function FC(e){const t=Array.isArray(e[0])?e[0]:e;return UC(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function BC(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var zC=class{constructor(e){this.value=e}deref(){return this.value}},VC=typeof WeakRef<"u"?WeakRef:zC,HC=0,Km=1;function Cc(){return{s:HC,v:void 0,o:null,p:null}}function Ic(e,t={}){let n=Cc();const{resultEqualityCheck:r}=t;let i,l=0;function d(){var k;let g=n;const{length:p}=arguments;for(let h=0,y=p;h<y;h++){const b=arguments[h];if(typeof b=="function"||typeof b=="object"&&b!==null){let c=g.o;c===null&&(g.o=c=new WeakMap);const u=c.get(b);u===void 0?(g=Cc(),c.set(b,g)):g=u}else{let c=g.p;c===null&&(g.p=c=new Map);const u=c.get(b);u===void 0?(g=Cc(),c.set(b,g)):g=u}}const _=g;let S;if(g.s===Km)S=g.v;else if(S=e.apply(null,arguments),l++,r){const h=((k=i==null?void 0:i.deref)==null?void 0:k.call(i))??i;h!=null&&r(h,S)&&(S=h,l!==0&&l--),i=typeof S=="object"&&S!==null||typeof S=="function"?new VC(S):S}return _.s=Km,_.v=S,S}return d.clearCache=()=>{n=Cc(),d.resetResultsCount()},d.resultsCount=()=>l,d.resetResultsCount=()=>{l=0},d}function jC(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let l=0,d=0,g,p={},_=i.pop();typeof _=="object"&&(p=_,_=i.pop()),NC(_,`createSelector expects an output function after the inputs, but received: [${typeof _}]`);const S={...n,...p},{memoize:k,memoizeOptions:h=[],argsMemoize:y=Ic,argsMemoizeOptions:b=[]}=S,c=Wm(h),u=Wm(b),f=FC(i),s=k(function(){return l++,_.apply(null,arguments)},...c),o=y(function(){d++;const m=BC(f,arguments);return g=s.apply(null,m),g},...u);return Object.assign(o,{resultFunc:_,memoizedResultFunc:s,dependencies:f,dependencyRecomputations:()=>d,resetDependencyRecomputations:()=>{d=0},lastResult:()=>g,recomputations:()=>l,resetRecomputations:()=>{l=0},memoize:k,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var ef=jC(Ic),qC=Object.assign((e,t=ef)=>{xC(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(l=>e[l]);return t(r,(...l)=>l.reduce((d,g,p)=>(d[n[p]]=g,d),{}))},{withTypes:()=>qC});function $m(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var GC=$m(),WC=$m,KC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fc:fc.apply(null,arguments)},$C=e=>e&&typeof e.match=="function";function Gr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(hi(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Tm(r)&&r.type===e,n}var Zm=class bl extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,bl.prototype)}static get[Symbol.species](){return bl}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new bl(...t[0].concat(this)):new bl(...t.concat(this))}};function Ym(e){return dr(e)?Ko(e,()=>{}):e}function Ac(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function ZC(e){return typeof e=="boolean"}var YC=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let d=new Zm;return n&&(ZC(n)?d.push(GC):d.push(WC(n.extraArgument))),d},Tc="RTK_autoBatch",$o=()=>e=>({payload:e,meta:{[Tc]:!0}}),Jm=e=>t=>{setTimeout(t,e)},JC=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,l=!1,d=!1;const g=new Set,p=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Jm(10):e.type==="callback"?e.queueNotification:Jm(e.timeout),_=()=>{d=!1,l&&(l=!1,g.forEach(S=>S()))};return Object.assign({},r,{subscribe(S){const k=()=>i&&S(),h=r.subscribe(k);return g.add(S),()=>{h(),g.delete(S)}},dispatch(S){var k;try{return i=!((k=S==null?void 0:S.meta)!=null&&k[Tc]),l=!i,l&&(d||(d=!0,p(_))),r.dispatch(S)}finally{i=!0}}})},XC=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Zm(e);return r&&i.push(JC(typeof r=="object"?r:void 0)),i};function Xm(e){const t=YC(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:l=!0,preloadedState:d=void 0,enhancers:g=void 0}=e||{};let p;if(typeof n=="function")p=n;else if(ha(n))p=Hd(n);else throw new Error(hi(1));let _;typeof r=="function"?_=r(t):_=t();let S=fc;i&&(S=KC({trace:!1,...typeof i=="object"&&i}));const k=vC(..._),h=XC(k);let y=typeof g=="function"?g(h):h();const b=S(...y);return Am(p,d,b)}function Qm(e){const t={},n=[];let r;const i={addCase(l,d){const g=typeof l=="string"?l:l.type;if(!g)throw new Error(hi(28));if(g in t)throw new Error(hi(29));return t[g]=d,i},addAsyncThunk(l,d){return d.pending&&(t[l.pending.type]=d.pending),d.rejected&&(t[l.rejected.type]=d.rejected),d.fulfilled&&(t[l.fulfilled.type]=d.fulfilled),d.settled&&n.push({matcher:l.settled,reducer:d.settled}),i},addMatcher(l,d){return n.push({matcher:l,reducer:d}),i},addDefaultCase(l){return r=l,i}};return e(i),[t,n,r]}function QC(e){return typeof e=="function"}function eI(e,t){let[n,r,i]=Qm(t),l;if(QC(e))l=()=>Ym(e());else{const g=Ym(e);l=()=>g}function d(g=l(),p){let _=[n[p.type],...r.filter(({matcher:S})=>S(p)).map(({reducer:S})=>S)];return _.filter(S=>!!S).length===0&&(_=[i]),_.reduce((S,k)=>{if(k)if(ur(S)){const y=k(S,p);return y===void 0?S:y}else{if(dr(S))return Ko(S,h=>k(h,p));{const h=k(S,p);if(h===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return S},g)}return d.getInitialState=l,d}var ev=(e,t)=>$C(e)?e.match(t):e(t);function Mi(...e){return t=>e.some(n=>ev(n,t))}function Zo(...e){return t=>e.every(n=>ev(n,t))}function Oc(e,t){if(!e||!e.meta)return!1;const n=typeof e.meta.requestId=="string",r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function Yo(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function tf(...e){return e.length===0?t=>Oc(t,["pending"]):Yo(e)?Mi(...e.map(t=>t.pending)):tf()(e[0])}function Fs(...e){return e.length===0?t=>Oc(t,["rejected"]):Yo(e)?Mi(...e.map(t=>t.rejected)):Fs()(e[0])}function Pc(...e){const t=n=>n&&n.meta&&n.meta.rejectedWithValue;return e.length===0?Zo(Fs(...e),t):Yo(e)?Zo(Fs(...e),t):Pc()(e[0])}function ga(...e){return e.length===0?t=>Oc(t,["fulfilled"]):Yo(e)?Mi(...e.map(t=>t.fulfilled)):ga()(e[0])}function nf(...e){return e.length===0?t=>Oc(t,["pending","fulfilled","rejected"]):Yo(e)?Mi(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):nf()(e[0])}var tI="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",rf=(e=21)=>{let t="",n=e;for(;n--;)t+=tI[Math.random()*64|0];return t},nI=["name","message","stack","code"],af=class{constructor(e,t){Je(this,"_type");this.payload=e,this.meta=t}},tv=class{constructor(e,t){Je(this,"_type");this.payload=e,this.meta=t}},rI=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of nI)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},nv="External signal was aborted",rv=(()=>{function e(t,n,r){const i=Gr(t+"/fulfilled",(p,_,S,k)=>({payload:p,meta:{...k||{},arg:S,requestId:_,requestStatus:"fulfilled"}})),l=Gr(t+"/pending",(p,_,S)=>({payload:void 0,meta:{...S||{},arg:_,requestId:p,requestStatus:"pending"}})),d=Gr(t+"/rejected",(p,_,S,k,h)=>({payload:k,error:(r&&r.serializeError||rI)(p||"Rejected"),meta:{...h||{},arg:S,requestId:_,rejectedWithValue:!!k,requestStatus:"rejected",aborted:(p==null?void 0:p.name)==="AbortError",condition:(p==null?void 0:p.name)==="ConditionError"}}));function g(p,{signal:_}={}){return(S,k,h)=>{const y=r!=null&&r.idGenerator?r.idGenerator(p):rf(),b=new AbortController;let c,u;function f(o){u=o,b.abort()}_&&(_.aborted?f(nv):_.addEventListener("abort",()=>f(nv),{once:!0}));const s=async function(){var m,v;let o;try{let w=(m=r==null?void 0:r.condition)==null?void 0:m.call(r,p,{getState:k,extra:h});if(aI(w)&&(w=await w),w===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const A=new Promise((E,O)=>{c=()=>{O({name:"AbortError",message:u||"Aborted"})},b.signal.addEventListener("abort",c,{once:!0})});S(l(y,p,(v=r==null?void 0:r.getPendingMeta)==null?void 0:v.call(r,{requestId:y,arg:p},{getState:k,extra:h}))),o=await Promise.race([A,Promise.resolve(n(p,{dispatch:S,getState:k,extra:h,requestId:y,signal:b.signal,abort:f,rejectWithValue:(E,O)=>new af(E,O),fulfillWithValue:(E,O)=>new tv(E,O)})).then(E=>{if(E instanceof af)throw E;return E instanceof tv?i(E.payload,y,p,E.meta):i(E,y,p)})])}catch(w){o=w instanceof af?d(null,y,p,w.payload,w.meta):d(w,y,p)}finally{c&&b.signal.removeEventListener("abort",c)}return r&&!r.dispatchConditionRejection&&d.match(o)&&o.meta.condition||S(o),o}();return Object.assign(s,{abort:f,requestId:y,arg:p,unwrap(){return s.then(iI)}})}}return Object.assign(g,{pending:l,rejected:d,fulfilled:i,settled:Mi(d,i),typePrefix:t})}return e.withTypes=()=>e,e})();function iI(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function aI(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var sI=Symbol.for("rtk-slice-createasyncthunk");function oI(e,t){return`${e}/${t}`}function lI({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[sI];return function(i){const{name:l,reducerPath:d=l}=i;if(!l)throw new Error(hi(11));const g=(typeof i.reducers=="function"?i.reducers(uI()):i.reducers)||{},p=Object.keys(g),_={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},S={addCase(a,m){const v=typeof a=="string"?a:a.type;if(!v)throw new Error(hi(12));if(v in _.sliceCaseReducersByType)throw new Error(hi(13));return _.sliceCaseReducersByType[v]=m,S},addMatcher(a,m){return _.sliceMatchers.push({matcher:a,reducer:m}),S},exposeAction(a,m){return _.actionCreators[a]=m,S},exposeCaseReducer(a,m){return _.sliceCaseReducersByName[a]=m,S}};p.forEach(a=>{const m=g[a],v={reducerName:a,type:oI(l,a),createNotation:typeof i.reducers=="function"};fI(m)?gI(v,m,S,t):dI(v,m,S)});function k(){const[a={},m=[],v=void 0]=typeof i.extraReducers=="function"?Qm(i.extraReducers):[i.extraReducers],w={...a,..._.sliceCaseReducersByType};return eI(i.initialState,A=>{for(let E in w)A.addCase(E,w[E]);for(let E of _.sliceMatchers)A.addMatcher(E.matcher,E.reducer);for(let E of m)A.addMatcher(E.matcher,E.reducer);v&&A.addDefaultCase(v)})}const h=a=>a,y=new Map,b=new WeakMap;let c;function u(a,m){return c||(c=k()),c(a,m)}function f(){return c||(c=k()),c.getInitialState()}function s(a,m=!1){function v(A){let E=A[a];return typeof E>"u"&&m&&(E=Ac(b,v,f)),E}function w(A=h){const E=Ac(y,m,()=>new WeakMap);return Ac(E,A,()=>{const O={};for(const[T,M]of Object.entries(i.selectors??{}))O[T]=cI(M,A,()=>Ac(b,A,f),m);return O})}return{reducerPath:a,getSelectors:w,get selectors(){return w(v)},selectSlice:v}}const o={name:l,reducer:u,actions:_.actionCreators,caseReducers:_.sliceCaseReducersByName,getInitialState:f,...s(d),injectInto(a,{reducerPath:m,...v}={}){const w=m??d;return a.inject({reducerPath:w,reducer:u},v),{...o,...s(w,!0)}}};return o}}function cI(e,t,n,r){function i(l,...d){let g=t(l);return typeof g>"u"&&r&&(g=n()),e(g,...d)}return i.unwrapped=e,i}var es=lI();function uI(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function dI({type:e,reducerName:t,createNotation:n},r,i){let l,d;if("reducer"in r){if(n&&!hI(r))throw new Error(hi(17));l=r.reducer,d=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,d?Gr(e,d):Gr(e))}function fI(e){return e._reducerDefinitionType==="asyncThunk"}function hI(e){return e._reducerDefinitionType==="reducerWithPrepare"}function gI({type:e,reducerName:t},n,r,i){if(!i)throw new Error(hi(18));const{payloadCreator:l,fulfilled:d,pending:g,rejected:p,settled:_,options:S}=n,k=i(e,l,S);r.exposeAction(t,k),d&&r.addCase(k.fulfilled,d),g&&r.addCase(k.pending,g),p&&r.addCase(k.rejected,p),_&&r.addMatcher(k.settled,_),r.exposeCaseReducer(t,{fulfilled:d||Rc,pending:g||Rc,rejected:p||Rc,settled:_||Rc})}function Rc(){}function hi(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var pI=class extends Error{constructor(t){super(t[0].message);Je(this,"issues");this.name="SchemaError",this.issues=t}},Li="uninitialized",sf="pending",Jo="fulfilled",Xo="rejected";function iv(e){return{status:e,isUninitialized:e===Li,isLoading:e===sf,isSuccess:e===Jo,isError:e===Xo}}var av=ha;function sv(e,t){if(e===t||!(av(e)&&av(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let i=n.length===r.length;const l=Array.isArray(t)?[]:{};for(const d of n)l[d]=sv(e[d],t[d]),i&&(i=e[d]===l[d]);return i?e:l}function of(e,t,n){return e.reduce((r,i,l)=>(t(i,l)&&r.push(n(i,l)),r),[]).flat()}function mI(e){return new RegExp("(^|:)//").test(e)}function vI(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function lf(e){return e!=null}function ov(e){return[...(e==null?void 0:e.values())??[]].filter(lf)}function yI(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var _I=e=>e.replace(/\/$/,""),wI=e=>e.replace(/^\//,"");function bI(e,t){if(!e)return t;if(!t)return e;if(mI(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=_I(e),t=wI(t),`${e}${n}${t}`}function Mc(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var cf=()=>new Map,SI=e=>{const t=new AbortController;return setTimeout(()=>{const n="signal timed out",r="TimeoutError";t.abort(typeof DOMException<"u"?new DOMException(n,r):Object.assign(new Error(n),{name:r}))},e),t.signal},EI=(...e)=>{for(const n of e)if(n.aborted)return AbortSignal.abort(n.reason);const t=new AbortController;for(const n of e)n.addEventListener("abort",()=>t.abort(n.reason),{signal:t.signal,once:!0});return t.signal},lv=(...e)=>fetch(...e),kI=e=>e.status>=200&&e.status<=299,CI=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function cv(e){if(!ha(e))return e;const t={...e};for(const[n,r]of Object.entries(t))r===void 0&&delete t[n];return t}var II=e=>typeof e=="object"&&(ha(e)||Array.isArray(e)||typeof e.toJSON=="function");function Lc({baseUrl:e,prepareHeaders:t=k=>k,fetchFn:n=lv,paramsSerializer:r,isJsonContentType:i=CI,jsonContentType:l="application/json",jsonReplacer:d,timeout:g,responseHandler:p,validateStatus:_,...S}={}){return typeof fetch>"u"&&n===lv&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(h,y,b)=>{const{getState:c,extra:u,endpoint:f,forced:s,type:o}=y;let a,{url:m,headers:v=new Headers(S.headers),params:w=void 0,responseHandler:A=p??"json",validateStatus:E=_??kI,timeout:O=g,...T}=typeof h=="string"?{url:h}:h,M={...S,signal:O?EI(y.signal,SI(O)):y.signal,...T};v=new Headers(cv(v)),M.headers=await t(v,{getState:c,arg:h,extra:u,endpoint:f,forced:s,type:o,extraOptions:b})||v;const P=II(M.body);if(M.body!=null&&!P&&typeof M.body!="string"&&M.headers.delete("content-type"),!M.headers.has("content-type")&&P&&M.headers.set("content-type",l),P&&i(M.headers)&&(M.body=JSON.stringify(M.body,d)),M.headers.has("accept")||(A==="json"?M.headers.set("accept","application/json"):A==="text"&&M.headers.set("accept","text/plain, text/html, */*")),w){const U=~m.indexOf("?")?"&":"?",F=r?r(w):new URLSearchParams(cv(w));m+=U+F}m=bI(e,m);const x=new Request(m,M);a={request:new Request(m,M)};let D;try{D=await n(x)}catch(U){return{error:{status:(U instanceof Error||typeof DOMException<"u"&&U instanceof DOMException)&&U.name==="TimeoutError"?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(U)},meta:a}}const V=D.clone();a.response=V;let j,L="";try{let U;if(await Promise.all([k(D,A).then(F=>j=F,F=>U=F),V.text().then(F=>L=F,()=>{})]),U)throw U}catch(U){return{error:{status:"PARSING_ERROR",originalStatus:D.status,data:L,error:String(U)},meta:a}}return E(D,j)?{data:j,meta:a}:{error:{status:D.status,data:j},meta:a}};async function k(h,y){if(typeof y=="function")return y(h);if(y==="content-type"&&(y=i(h.headers)?"json":"text"),y==="json"){const b=await h.text();return b.length?JSON.parse(b):null}return h.text()}}var uv=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Dc="__rtkq/",AI="online",TI="offline",dv="focused",uf=Gr(`${Dc}${dv}`),fv=Gr(`${Dc}un${dv}`),df=Gr(`${Dc}${AI}`),hv=Gr(`${Dc}${TI}`),Qo="query",gv="mutation",pv="infinitequery";function Nc(e){return e.type===Qo}function OI(e){return e.type===gv}function xc(e){return e.type===pv}function Uc(e){return Nc(e)||xc(e)}function ff(e,t,n,r,i,l){const d=PI(e)?e(t,n,r,i):e;return d?of(d,lf,g=>l(mv(g))):[]}function PI(e){return typeof e=="function"}function mv(e){return typeof e=="string"?{type:e}:e}function RI(e,t){return e.catch(t)}var Bs=(e,t)=>e.endpointDefinitions[t],el=Symbol("forceQueryFn"),hf=e=>typeof e[el]=="function";function MI({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:i,context:l,getInternalState:d}){const g=a=>{var m;return(m=d(a))==null?void 0:m.runningQueries},p=a=>{var m;return(m=d(a))==null?void 0:m.runningMutations},{unsubscribeQueryResult:_,removeMutationResult:S,updateSubscriptionOptions:k}=i.internalActions;return{buildInitiateQuery:f,buildInitiateInfiniteQuery:s,buildInitiateMutation:o,getRunningQueryThunk:h,getRunningMutationThunk:y,getRunningQueriesThunk:b,getRunningMutationsThunk:c};function h(a,m){return v=>{var E;const w=Bs(l,a),A=e({queryArgs:m,endpointDefinition:w,endpointName:a});return(E=g(v))==null?void 0:E.get(A)}}function y(a,m){return v=>{var w;return(w=p(v))==null?void 0:w.get(m)}}function b(){return a=>ov(g(a))}function c(){return a=>ov(p(a))}function u(a,m){const v=(w,{subscribe:A=!0,forceRefetch:E,subscriptionOptions:O,[el]:T,...M}={})=>(P,x)=>{var te;const I=e({queryArgs:w,endpointDefinition:m,endpointName:a});let D;const V={...M,type:Qo,subscribe:A,forceRefetch:E,subscriptionOptions:O,endpointName:a,originalArgs:w,queryCacheKey:I,[el]:T};if(Nc(m))D=t(V);else{const{direction:ie,initialPageParam:Se,refetchCachedPages:_e}=M;D=n({...V,direction:ie,initialPageParam:Se,refetchCachedPages:_e})}const j=i.endpoints[a].select(w),L=P(D),U=j(x()),{requestId:F,abort:W}=L,J=U.requestId!==F,$=(te=g(P))==null?void 0:te.get(I),ne=()=>j(x()),ae=Object.assign(T?L.then(ne):J&&!$?Promise.resolve(U):Promise.all([$,L]).then(ne),{arg:w,requestId:F,subscriptionOptions:O,queryCacheKey:I,abort:W,async unwrap(){const ie=await ae;if(ie.isError)throw ie.error;return ie.data},refetch:ie=>P(v(w,{subscribe:!1,forceRefetch:!0,...ie})),unsubscribe(){A&&P(_({queryCacheKey:I,requestId:F}))},updateSubscriptionOptions(ie){ae.subscriptionOptions=ie,P(k({endpointName:a,requestId:F,queryCacheKey:I,options:ie}))}});if(!$&&!J&&!T){const ie=g(P);ie.set(I,ae),ae.then(()=>{ie.delete(I)})}return ae};return v}function f(a,m){return u(a,m)}function s(a,m){return u(a,m)}function o(a){return(m,{track:v=!0,fixedCacheKey:w}={})=>(A,E)=>{const O=r({type:"mutation",endpointName:a,originalArgs:m,track:v,fixedCacheKey:w}),T=A(O),{requestId:M,abort:P,unwrap:x}=T,I=RI(T.unwrap().then(L=>({data:L})),L=>({error:L})),D=()=>{A(S({requestId:M,fixedCacheKey:w}))},V=Object.assign(I,{arg:T.arg,requestId:M,abort:P,unwrap:x,reset:D}),j=p(A);return j.set(M,V),V.then(()=>{j.delete(M)}),w&&(j.set(w,V),V.then(()=>{j.get(w)===V&&j.delete(w)})),V}}}var vv=class extends pI{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}},ts=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function ns(e,t,n,r){const i=await e["~standard"].validate(t);if(i.issues)throw new vv(i.issues,t,n,r);return i.value}function yv(e){return e}var tl=(e={})=>({...e,[Tc]:!0});function LI({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:i,assertTagType:l,selectors:d,onSchemaFailure:g,catchSchemaFailure:p,skipSchemaValidation:_}){const S=(T,M,P,x)=>(I,D)=>{const V=n[T],j=r({queryArgs:M,endpointDefinition:V,endpointName:T});if(I(i.internalActions.queryResultPatched({queryCacheKey:j,patches:P})),!x)return;const L=i.endpoints[T].select(M)(D()),U=ff(V.providesTags,L.data,void 0,M,{},l);I(i.internalActions.updateProvidedBy([{queryCacheKey:j,providedTags:U}]))};function k(T,M,P=0){const x=[M,...T];return P&&x.length>P?x.slice(0,-1):x}function h(T,M,P=0){const x=[...T,M];return P&&x.length>P?x.slice(1):x}const y=(T,M,P,x=!0)=>(I,D)=>{const j=i.endpoints[T].select(M)(D()),L={patches:[],inversePatches:[],undo:()=>I(i.util.patchQueryData(T,M,L.inversePatches,x))};if(j.status===Li)return L;let U;if("data"in j)if(dr(j.data)){const[F,W,J]=qm(j.data,P);L.patches.push(...W),L.inversePatches.push(...J),U=F}else U=P(j.data),L.patches.push({op:"replace",path:[],value:U}),L.inversePatches.push({op:"replace",path:[],value:j.data});return L.patches.length===0||I(i.util.patchQueryData(T,M,L.patches,x)),L},b=(T,M,P)=>x=>x(i.endpoints[T].initiate(M,{subscribe:!1,forceRefetch:!0,[el]:()=>({data:P})})),c=(T,M)=>T.query&&T[M]?T[M]:yv,u=async(T,{signal:M,abort:P,rejectWithValue:x,fulfillWithValue:I,dispatch:D,getState:V,extra:j})=>{var J,$;const L=n[T.endpointName],{metaSchema:U,skipSchemaValidation:F=_}=L,W=T.type===Qo;try{let ne=yv;const ae={signal:M,abort:P,dispatch:D,getState:V,extra:j,endpoint:T.endpointName,type:T.type,forced:W?f(T,V()):void 0,queryCacheKey:W?T.queryCacheKey:void 0},te=W?T[el]:void 0;let ie;const Se=async(Ne,et,Nt,oe)=>{if(et==null&&Ne.pages.length)return Promise.resolve({data:Ne});const Ie={queryArg:T.originalArgs,pageParam:et},Be=await _e(Ie),$e=oe?k:h;return{data:{pages:$e(Ne.pages,Be.data,Nt),pageParams:$e(Ne.pageParams,et,Nt)},meta:Be.meta}};async function _e(Ne){let et;const{extraOptions:Nt,argSchema:oe,rawResponseSchema:Ie,responseSchema:Be}=L;if(oe&&!ts(F,"arg")&&(Ne=await ns(oe,Ne,"argSchema",{})),te?et=te():L.query?(ne=c(L,"transformResponse"),et=await t(L.query(Ne),ae,Nt)):et=await L.queryFn(Ne,ae,Nt,Xe=>t(Xe,ae,Nt)),typeof process<"u",et.error)throw new uv(et.error,et.meta);let{data:$e}=et;Ie&&!ts(F,"rawResponse")&&($e=await ns(Ie,et.data,"rawResponseSchema",et.meta));let ke=await ne($e,et.meta,Ne);return Be&&!ts(F,"response")&&(ke=await ns(Be,ke,"responseSchema",et.meta)),{...et,data:ke}}if(W&&"infiniteQueryOptions"in L){const{infiniteQueryOptions:Ne}=L,{maxPages:et=1/0}=Ne,Nt=T.refetchCachedPages??Ne.refetchCachedPages??!0;let oe;const Ie={pages:[],pageParams:[]},Be=(J=d.selectQueryEntry(V(),T.queryCacheKey))==null?void 0:J.data,ke=f(T,V())&&!T.direction||!Be?Ie:Be;if("direction"in T&&T.direction&&ke.pages.length){const Xe=T.direction==="backward",Le=(Xe?_v:gf)(Ne,ke,T.originalArgs);oe=await Se(ke,Le,et,Xe)}else{const{initialPageParam:Xe=Ne.initialPageParam}=T,ge=(Be==null?void 0:Be.pageParams)??[],Le=ge[0]??Xe,Mt=ge.length;if(oe=await Se(ke,Le,et),te&&(oe={data:oe.data.pages[0]}),Nt)for(let Ct=1;Ct<Mt;Ct++){const Ut=gf(Ne,oe.data,T.originalArgs);oe=await Se(oe.data,Ut,et)}}ie=oe}else ie=await _e(T.originalArgs);return U&&!ts(F,"meta")&&ie.meta&&(ie.meta=await ns(U,ie.meta,"metaSchema",ie.meta)),I(ie.data,tl({fulfilledTimeStamp:Date.now(),baseQueryMeta:ie.meta}))}catch(ne){let ae=ne;if(ae instanceof uv){let te=c(L,"transformErrorResponse");const{rawErrorResponseSchema:ie,errorResponseSchema:Se}=L;let{value:_e,meta:Ne}=ae;try{ie&&!ts(F,"rawErrorResponse")&&(_e=await ns(ie,_e,"rawErrorResponseSchema",Ne)),U&&!ts(F,"meta")&&(Ne=await ns(U,Ne,"metaSchema",Ne));let et=await te(_e,Ne,T.originalArgs);return Se&&!ts(F,"errorResponse")&&(et=await ns(Se,et,"errorResponseSchema",Ne)),x(et,tl({baseQueryMeta:Ne}))}catch(et){ae=et}}try{if(ae instanceof vv){const te={endpoint:T.endpointName,arg:T.originalArgs,type:T.type,queryCacheKey:W?T.queryCacheKey:void 0};($=L.onSchemaFailure)==null||$.call(L,ae,te),g==null||g(ae,te);const{catchSchemaFailure:ie=p}=L;if(ie)return x(ie(ae,te),tl({baseQueryMeta:ae._bqMeta}))}}catch(te){ae=te}throw console.error(ae),ae}};function f(T,M){const P=d.selectQueryEntry(M,T.queryCacheKey),x=d.selectConfig(M).refetchOnMountOrArgChange,I=P==null?void 0:P.fulfilledTimeStamp,D=T.forceRefetch??(T.subscribe&&x);return D?D===!0||(Number(new Date)-Number(I))/1e3>=D:!1}const s=()=>rv(`${e}/executeQuery`,u,{getPendingMeta({arg:M}){const P=n[M.endpointName];return tl({startedTimeStamp:Date.now(),...xc(P)?{direction:M.direction}:{}})},condition(M,{getState:P}){var F;const x=P(),I=d.selectQueryEntry(x,M.queryCacheKey),D=I==null?void 0:I.fulfilledTimeStamp,V=M.originalArgs,j=I==null?void 0:I.originalArgs,L=n[M.endpointName],U=M.direction;return hf(M)?!0:(I==null?void 0:I.status)==="pending"?!1:f(M,x)||Nc(L)&&((F=L==null?void 0:L.forceRefetch)!=null&&F.call(L,{currentArg:V,previousArg:j,endpointState:I,state:x}))?!0:!(D&&!U)},dispatchConditionRejection:!0}),o=s(),a=s(),m=rv(`${e}/executeMutation`,u,{getPendingMeta(){return tl({startedTimeStamp:Date.now()})}}),v=T=>"force"in T,w=T=>"ifOlderThan"in T,A=(T,M,P={})=>(x,I)=>{const D=v(P)&&P.force,V=w(P)&&P.ifOlderThan,j=(U=!0)=>{const F={forceRefetch:U,subscribe:!1};return i.endpoints[T].initiate(M,F)},L=i.endpoints[T].select(M)(I());if(D)x(j());else if(V){const U=L==null?void 0:L.fulfilledTimeStamp;if(!U){x(j());return}(Number(new Date)-Number(new Date(U)))/1e3>=V&&x(j())}else x(j(!1))};function E(T){return M=>{var P,x;return((x=(P=M==null?void 0:M.meta)==null?void 0:P.arg)==null?void 0:x.endpointName)===T}}function O(T,M){return{matchPending:Zo(tf(T),E(M)),matchFulfilled:Zo(ga(T),E(M)),matchRejected:Zo(Fs(T),E(M))}}return{queryThunk:o,mutationThunk:m,infiniteQueryThunk:a,prefetch:A,updateQueryData:y,upsertQueryData:b,patchQueryData:S,buildMatchThunkActions:O}}function gf(e,{pages:t,pageParams:n},r){const i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n,r)}function _v(e,{pages:t,pageParams:n},r){var i;return(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n,r)}function wv(e,t,n,r){return ff(n[e.meta.arg.endpointName][t],ga(e)?e.payload:void 0,Pc(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function bv(e){return ur(e)?Hm(e):e}function Fc(e,t,n){const r=e[t];r&&n(r)}function nl(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Sv(e,t,n){const r=e[nl(t)];r&&n(r)}var Bc={};function DI({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:i,apiUid:l,extractRehydrationInfo:d,hasRehydrationInfo:g},assertTagType:p,config:_}){const S=Gr(`${e}/resetApiState`);function k(E,O,T,M){var P;E[P=O.queryCacheKey]??(E[P]={status:Li,endpointName:O.endpointName}),Fc(E,O.queryCacheKey,x=>{x.status=sf,x.requestId=T&&x.requestId?x.requestId:M.requestId,O.originalArgs!==void 0&&(x.originalArgs=O.originalArgs),x.startedTimeStamp=M.startedTimeStamp;const I=i[M.arg.endpointName];xc(I)&&"direction"in O&&(x.direction=O.direction)})}function h(E,O,T,M){Fc(E,O.arg.queryCacheKey,P=>{if(P.requestId!==O.requestId&&!M)return;const{merge:x}=i[O.arg.endpointName];if(P.status=Jo,x)if(P.data!==void 0){const{fulfilledTimeStamp:I,arg:D,baseQueryMeta:V,requestId:j}=O;let L=Ko(P.data,U=>x(U,T,{arg:D.originalArgs,baseQueryMeta:V,fulfilledTimeStamp:I,requestId:j}));P.data=L}else P.data=T;else P.data=i[O.arg.endpointName].structuralSharing??!0?sv(ur(P.data)?_C(P.data):P.data,T):T;delete P.error,P.fulfilledTimeStamp=O.fulfilledTimeStamp})}const y=es({name:`${e}/queries`,initialState:Bc,reducers:{removeQueryResult:{reducer(E,{payload:{queryCacheKey:O}}){delete E[O]},prepare:$o()},cacheEntriesUpserted:{reducer(E,O){for(const T of O.payload){const{queryDescription:M,value:P}=T;k(E,M,!0,{arg:M,requestId:O.meta.requestId,startedTimeStamp:O.meta.timestamp}),h(E,{arg:M,requestId:O.meta.requestId,fulfilledTimeStamp:O.meta.timestamp,baseQueryMeta:{}},P,!0)}},prepare:E=>({payload:E.map(M=>{const{endpointName:P,arg:x,value:I}=M,D=i[P];return{queryDescription:{type:Qo,endpointName:P,originalArgs:M.arg,queryCacheKey:r({queryArgs:x,endpointDefinition:D,endpointName:P})},value:I}}),meta:{[Tc]:!0,requestId:rf(),timestamp:Date.now()}})},queryResultPatched:{reducer(E,{payload:{queryCacheKey:O,patches:T}}){Fc(E,O,M=>{M.data=Gm(M.data,T.concat())})},prepare:$o()}},extraReducers(E){E.addCase(t.pending,(O,{meta:T,meta:{arg:M}})=>{const P=hf(M);k(O,M,P,T)}).addCase(t.fulfilled,(O,{meta:T,payload:M})=>{const P=hf(T.arg);h(O,T,M,P)}).addCase(t.rejected,(O,{meta:{condition:T,arg:M,requestId:P},error:x,payload:I})=>{Fc(O,M.queryCacheKey,D=>{if(!T){if(D.requestId!==P)return;D.status=Xo,D.error=I??x}})}).addMatcher(g,(O,T)=>{const{queries:M}=d(T);for(const[P,x]of Object.entries(M))((x==null?void 0:x.status)===Jo||(x==null?void 0:x.status)===Xo)&&(O[P]=x)})}}),b=es({name:`${e}/mutations`,initialState:Bc,reducers:{removeMutationResult:{reducer(E,{payload:O}){const T=nl(O);T in E&&delete E[T]},prepare:$o()}},extraReducers(E){E.addCase(n.pending,(O,{meta:T,meta:{requestId:M,arg:P,startedTimeStamp:x}})=>{P.track&&(O[nl(T)]={requestId:M,status:sf,endpointName:P.endpointName,startedTimeStamp:x})}).addCase(n.fulfilled,(O,{payload:T,meta:M})=>{M.arg.track&&Sv(O,M,P=>{P.requestId===M.requestId&&(P.status=Jo,P.data=T,P.fulfilledTimeStamp=M.fulfilledTimeStamp)})}).addCase(n.rejected,(O,{payload:T,error:M,meta:P})=>{P.arg.track&&Sv(O,P,x=>{x.requestId===P.requestId&&(x.status=Xo,x.error=T??M)})}).addMatcher(g,(O,T)=>{const{mutations:M}=d(T);for(const[P,x]of Object.entries(M))((x==null?void 0:x.status)===Jo||(x==null?void 0:x.status)===Xo)&&P!==(x==null?void 0:x.requestId)&&(O[P]=x)})}}),c={tags:{},keys:{}},u=es({name:`${e}/invalidation`,initialState:c,reducers:{updateProvidedBy:{reducer(E,O){var T,M,P;for(const{queryCacheKey:x,providedTags:I}of O.payload){f(E,x);for(const{type:D,id:V}of I){const j=(M=(T=E.tags)[D]??(T[D]={}))[P=V||"__internal_without_id"]??(M[P]=[]);j.includes(x)||j.push(x)}E.keys[x]=I}},prepare:$o()}},extraReducers(E){E.addCase(y.actions.removeQueryResult,(O,{payload:{queryCacheKey:T}})=>{f(O,T)}).addMatcher(g,(O,T)=>{var P,x,I;const{provided:M}=d(T);for(const[D,V]of Object.entries(M.tags??{}))for(const[j,L]of Object.entries(V)){const U=(x=(P=O.tags)[D]??(P[D]={}))[I=j||"__internal_without_id"]??(x[I]=[]);for(const F of L)U.includes(F)||U.push(F),O.keys[F]=M.keys[F]}}).addMatcher(Mi(ga(t),Pc(t)),(O,T)=>{s(O,[T])}).addMatcher(y.actions.cacheEntriesUpserted.match,(O,T)=>{const M=T.payload.map(({queryDescription:P,value:x})=>({type:"UNKNOWN",payload:x,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:P}}));s(O,M)})}});function f(E,O){var M;const T=bv(E.keys[O]??[]);for(const P of T){const x=P.type,I=P.id??"__internal_without_id",D=(M=E.tags[x])==null?void 0:M[I];D&&(E.tags[x][I]=bv(D).filter(V=>V!==O))}delete E.keys[O]}function s(E,O){const T=O.map(M=>{const P=wv(M,"providesTags",i,p),{queryCacheKey:x}=M.meta.arg;return{queryCacheKey:x,providedTags:P}});u.caseReducers.updateProvidedBy(E,u.actions.updateProvidedBy(T))}const o=es({name:`${e}/subscriptions`,initialState:Bc,reducers:{updateSubscriptionOptions(E,O){},unsubscribeQueryResult(E,O){},internal_getRTKQSubscriptions(){}}}),a=es({name:`${e}/internalSubscriptions`,initialState:Bc,reducers:{subscriptionsUpdated:{reducer(E,O){return Gm(E,O.payload)},prepare:$o()}}}),m=es({name:`${e}/config`,initialState:{online:yI(),focused:vI(),middlewareRegistered:!1,..._},reducers:{middlewareRegistered(E,{payload:O}){E.middlewareRegistered=E.middlewareRegistered==="conflict"||l!==O?"conflict":!0}},extraReducers:E=>{E.addCase(df,O=>{O.online=!0}).addCase(hv,O=>{O.online=!1}).addCase(uf,O=>{O.focused=!0}).addCase(fv,O=>{O.focused=!1}).addMatcher(g,O=>({...O}))}}),v=Hd({queries:y.reducer,mutations:b.reducer,provided:u.reducer,subscriptions:a.reducer,config:m.reducer}),w=(E,O)=>v(S.match(O)?void 0:E,O),A={...m.actions,...y.actions,...o.actions,...a.actions,...b.actions,...u.actions,resetApiState:S};return{reducer:w,actions:A}}var pf=Symbol.for("RTKQ/skipToken"),Ev={status:Li},kv=Ko(Ev,()=>{}),Cv=Ko(Ev,()=>{});function NI({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=o=>kv,i=o=>Cv;return{buildQuerySelector:h,buildInfiniteQuerySelector:y,buildMutationSelector:b,selectInvalidatedBy:c,selectCachedArgsForQuery:u,selectApiState:d,selectQueries:g,selectMutations:_,selectQueryEntry:p,selectConfig:S};function l(o){return{...o,...iv(o.status)}}function d(o){return o[t]}function g(o){var a;return(a=d(o))==null?void 0:a.queries}function p(o,a){var m;return(m=g(o))==null?void 0:m[a]}function _(o){var a;return(a=d(o))==null?void 0:a.mutations}function S(o){var a;return(a=d(o))==null?void 0:a.config}function k(o,a,m){return v=>{if(v===pf)return n(r,m);const w=e({queryArgs:v,endpointDefinition:a,endpointName:o});return n(E=>p(E,w)??kv,m)}}function h(o,a){return k(o,a,l)}function y(o,a){const{infiniteQueryOptions:m}=a;function v(w){const A={...w,...iv(w.status)},{isLoading:E,isError:O,direction:T}=A,M=T==="forward",P=T==="backward";return{...A,hasNextPage:f(m,A.data,A.originalArgs),hasPreviousPage:s(m,A.data,A.originalArgs),isFetchingNextPage:E&&M,isFetchingPreviousPage:E&&P,isFetchNextPageError:O&&M,isFetchPreviousPageError:O&&P}}return k(o,a,v)}function b(){return o=>{let a;return typeof o=="object"?a=nl(o)??pf:a=o,n(a===pf?i:w=>{var A,E;return((E=(A=d(w))==null?void 0:A.mutations)==null?void 0:E[a])??Cv},l)}}function c(o,a){const m=o[t],v=new Set,w=of(a,lf,mv);for(const A of w){const E=m.provided.tags[A.type];if(!E)continue;let O=(A.id!==void 0?E[A.id]:Object.values(E).flat())??[];for(const T of O)v.add(T)}return Array.from(v.values()).flatMap(A=>{const E=m.queries[A];return E?{queryCacheKey:A,endpointName:E.endpointName,originalArgs:E.originalArgs}:[]})}function u(o,a){return of(Object.values(g(o)),m=>(m==null?void 0:m.endpointName)===a&&m.status!==Li,m=>m.originalArgs)}function f(o,a,m){return a?gf(o,a,m)!=null:!1}function s(o,a,m){return!a||!o.getPreviousPageParam?!1:_v(o,a,m)!=null}}var zs=WeakMap?new WeakMap:void 0,Iv=({endpointName:e,queryArgs:t})=>{let n="";const r=zs==null?void 0:zs.get(t);if(typeof r=="string")n=r;else{const i=JSON.stringify(t,(l,d)=>(d=typeof d=="bigint"?{$bigint:d.toString()}:d,d=ha(d)?Object.keys(d).sort().reduce((g,p)=>(g[p]=d[p],g),{}):d,d));ha(t)&&(zs==null||zs.set(t,i)),n=i}return`${e}(${n})`};function xI(...e){return function(n){const r=Ic(_=>{var S;return(S=n.extractRehydrationInfo)==null?void 0:S.call(n,_,{reducerPath:n.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:r,serializeQueryArgs(_){let S=Iv;if("serializeQueryArgs"in _.endpointDefinition){const k=_.endpointDefinition.serializeQueryArgs;S=h=>{const y=k(h);return typeof y=="string"?y:Iv({...h,queryArgs:y})}}else n.serializeQueryArgs&&(S=n.serializeQueryArgs);return S(_)},tagTypes:[...n.tagTypes||[]]},l={endpointDefinitions:{},batch(_){_()},apiUid:rf(),extractRehydrationInfo:r,hasRehydrationInfo:Ic(_=>r(_)!=null)},d={injectEndpoints:p,enhanceEndpoints({addTagTypes:_,endpoints:S}){if(_)for(const k of _)i.tagTypes.includes(k)||i.tagTypes.push(k);if(S)for(const[k,h]of Object.entries(S))typeof h=="function"?h(Bs(l,k)):Object.assign(Bs(l,k)||{},h);return d}},g=e.map(_=>_.init(d,i,l));function p(_){const S=_.endpoints({query:k=>({...k,type:Qo}),mutation:k=>({...k,type:gv}),infiniteQuery:k=>({...k,type:pv})});for(const[k,h]of Object.entries(S)){if(_.overrideExisting!==!0&&k in l.endpointDefinitions){if(_.overrideExisting==="throw")throw new Error(hi(39));continue}l.endpointDefinitions[k]=h;for(const y of g)y.injectEndpoint(k,h)}return d}return d.injectEndpoints({endpoints:n.endpoints})}}function Di(e,...t){return Object.assign(e,...t)}var UI=({api:e,queryThunk:t,internalState:n,mwApi:r})=>{const i=`${e.reducerPath}/subscriptions`;let l=null,d=null;const{updateSubscriptionOptions:g,unsubscribeQueryResult:p}=e.internalActions,_=(c,u)=>{if(g.match(u)){const{queryCacheKey:s,requestId:o,options:a}=u.payload,m=c.get(s);return m!=null&&m.has(o)&&m.set(o,a),!0}if(p.match(u)){const{queryCacheKey:s,requestId:o}=u.payload,a=c.get(s);return a&&a.delete(o),!0}if(e.internalActions.removeQueryResult.match(u))return c.delete(u.payload.queryCacheKey),!0;if(t.pending.match(u)){const{meta:{arg:s,requestId:o}}=u,a=Mc(c,s.queryCacheKey,cf);return s.subscribe&&a.set(o,s.subscriptionOptions??a.get(o)??{}),!0}let f=!1;if(t.rejected.match(u)){const{meta:{condition:s,arg:o,requestId:a}}=u;if(s&&o.subscribe){const m=Mc(c,o.queryCacheKey,cf);m.set(a,o.subscriptionOptions??m.get(a)??{}),f=!0}}return f},S=()=>n.currentSubscriptions,y={getSubscriptions:S,getSubscriptionCount:c=>{const f=S().get(c);return(f==null?void 0:f.size)??0},isRequestSubscribed:(c,u)=>{var s;const f=S();return!!((s=f==null?void 0:f.get(c))!=null&&s.get(u))}};function b(c){return JSON.parse(JSON.stringify(Object.fromEntries([...c].map(([u,f])=>[u,Object.fromEntries(f)]))))}return(c,u)=>{if(l||(l=b(n.currentSubscriptions)),e.util.resetApiState.match(c))return l={},n.currentSubscriptions.clear(),d=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,y];const f=_(n.currentSubscriptions,c);let s=!0;if(f){d||(d=setTimeout(()=>{const m=b(n.currentSubscriptions),[,v]=qm(l,()=>m);u.next(e.internalActions.subscriptionsUpdated(v)),l=m,d=null},500));const o=typeof c.type=="string"&&!!c.type.startsWith(i),a=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;s=!o&&!a}return[s,!1]}},FI=2147483647/1e3-1,BI=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:i,selectors:{selectQueryEntry:l,selectConfig:d},getRunningQueryThunk:g,mwApi:p})=>{const{removeQueryResult:_,unsubscribeQueryResult:S,cacheEntriesUpserted:k}=t.internalActions,h=Mi(S.match,n.fulfilled,n.rejected,k.match);function y(o){const a=i.currentSubscriptions.get(o);return a?a.size>0:!1}const b={};function c(o){var a;for(const m of o.values())(a=m==null?void 0:m.abort)==null||a.call(m)}const u=(o,a)=>{const m=a.getState(),v=d(m);if(h(o)){let w;if(k.match(o))w=o.payload.map(A=>A.queryDescription.queryCacheKey);else{const{queryCacheKey:A}=S.match(o)?o.payload:o.meta.arg;w=[A]}f(w,a,v)}if(t.util.resetApiState.match(o)){for(const[w,A]of Object.entries(b))A&&clearTimeout(A),delete b[w];c(i.runningQueries),c(i.runningMutations)}if(r.hasRehydrationInfo(o)){const{queries:w}=r.extractRehydrationInfo(o);f(Object.keys(w),a,v)}};function f(o,a,m){const v=a.getState();for(const w of o){const A=l(v,w);A!=null&&A.endpointName&&s(w,A.endpointName,a,m)}}function s(o,a,m,v){const w=Bs(r,a),A=(w==null?void 0:w.keepUnusedDataFor)??v.keepUnusedDataFor;if(A===1/0)return;const E=Math.max(0,Math.min(A,FI));if(!y(o)){const O=b[o];O&&clearTimeout(O),b[o]=setTimeout(()=>{if(!y(o)){const T=l(m.getState(),o);if(T!=null&&T.endpointName){const M=m.dispatch(g(T.endpointName,T.originalArgs));M==null||M.abort()}m.dispatch(_({queryCacheKey:o}))}delete b[o]},E*1e3)}}return u},Av=new Error("Promise never resolved before cacheEntryRemoved."),zI=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:i,internalState:l,selectors:{selectQueryEntry:d,selectApiState:g}})=>{const p=nf(r),_=nf(i),S=ga(r,i),k={},{removeQueryResult:h,removeMutationResult:y,cacheEntriesUpserted:b}=e.internalActions;function c(m,v,w){const A=k[m];A!=null&&A.valueResolved&&(A.valueResolved({data:v,meta:w}),delete A.valueResolved)}function u(m){const v=k[m];v&&(delete k[m],v.cacheEntryRemoved())}function f(m){const{arg:v,requestId:w}=m.meta,{endpointName:A,originalArgs:E}=v;return[A,E,w]}const s=(m,v,w)=>{const A=o(m);function E(O,T,M,P){const x=d(w,T),I=d(v.getState(),T);!x&&I&&a(O,P,T,v,M)}if(r.pending.match(m)){const[O,T,M]=f(m);E(O,A,M,T)}else if(b.match(m))for(const{queryDescription:O,value:T}of m.payload){const{endpointName:M,originalArgs:P,queryCacheKey:x}=O;E(M,x,m.meta.requestId,P),c(x,T,{})}else if(i.pending.match(m)){if(v.getState()[t].mutations[A]){const[T,M,P]=f(m);a(T,M,A,v,P)}}else if(S(m))c(A,m.payload,m.meta.baseQueryMeta);else if(h.match(m)||y.match(m))u(A);else if(e.util.resetApiState.match(m))for(const O of Object.keys(k))u(O)};function o(m){return p(m)?m.meta.arg.queryCacheKey:_(m)?m.meta.arg.fixedCacheKey??m.meta.requestId:h.match(m)?m.payload.queryCacheKey:y.match(m)?nl(m.payload):""}function a(m,v,w,A,E){const O=Bs(n,m),T=O==null?void 0:O.onCacheEntryAdded;if(!T)return;const M={},P=new Promise(L=>{M.cacheEntryRemoved=L}),x=Promise.race([new Promise(L=>{M.valueResolved=L}),P.then(()=>{throw Av})]);x.catch(()=>{}),k[w]=M;const I=e.endpoints[m].select(Uc(O)?v:w),D=A.dispatch((L,U,F)=>F),V={...A,getCacheEntry:()=>I(A.getState()),requestId:E,extra:D,updateCachedData:Uc(O)?L=>A.dispatch(e.util.updateQueryData(m,v,L)):void 0,cacheDataLoaded:x,cacheEntryRemoved:P},j=T(v,V);Promise.resolve(j).catch(L=>{if(L!==Av)throw L})}return s},VI=({api:e,context:{apiUid:t},reducerPath:n})=>(r,i)=>{e.util.resetApiState.match(r)&&i.dispatch(e.internalActions.middlewareRegistered(t))},HI=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:i,api:l,assertTagType:d,refetchQuery:g,internalState:p})=>{const{removeQueryResult:_}=l.internalActions,S=Mi(ga(r),Pc(r)),k=Mi(ga(i,r),Fs(i,r));let h=[],y=0;const b=(f,s)=>{(i.pending.match(f)||r.pending.match(f))&&y++,k(f)&&(y=Math.max(0,y-1)),S(f)?u(wv(f,"invalidatesTags",n,d),s):k(f)?u([],s):l.util.invalidateTags.match(f)&&u(ff(f.payload,void 0,void 0,void 0,void 0,d),s)};function c(){return y>0}function u(f,s){const o=s.getState(),a=o[e];if(h.push(...f),a.config.invalidationBehavior==="delayed"&&c())return;const m=h;if(h=[],m.length===0)return;const v=l.util.selectInvalidatedBy(o,m);t.batch(()=>{const w=Array.from(v.values());for(const{queryCacheKey:A}of w){const E=a.queries[A],O=Mc(p.currentSubscriptions,A,cf);E&&(O.size===0?s.dispatch(_({queryCacheKey:A})):E.status!==Li&&s.dispatch(g(E)))}})}return b},jI=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{const{currentPolls:l,currentSubscriptions:d}=i,g=new Set;let p=null;const _=(u,f)=>{(n.internalActions.updateSubscriptionOptions.match(u)||n.internalActions.unsubscribeQueryResult.match(u))&&S(u.payload.queryCacheKey,f),(t.pending.match(u)||t.rejected.match(u)&&u.meta.condition)&&S(u.meta.arg.queryCacheKey,f),(t.fulfilled.match(u)||t.rejected.match(u)&&!u.meta.condition)&&k(u.meta.arg,f),n.util.resetApiState.match(u)&&(b(),p&&(clearTimeout(p),p=null),g.clear())};function S(u,f){g.add(u),p||(p=setTimeout(()=>{for(const s of g)h({queryCacheKey:s},f);g.clear(),p=null},0))}function k({queryCacheKey:u},f){const s=f.getState()[e],o=s.queries[u],a=d.get(u);if(!o||o.status===Li)return;const{lowestPollingInterval:m,skipPollingIfUnfocused:v}=c(a);if(!Number.isFinite(m))return;const w=l.get(u);w!=null&&w.timeout&&(clearTimeout(w.timeout),w.timeout=void 0);const A=Date.now()+m;l.set(u,{nextPollTimestamp:A,pollingInterval:m,timeout:setTimeout(()=>{(s.config.focused||!v)&&f.dispatch(r(o)),k({queryCacheKey:u},f)},m)})}function h({queryCacheKey:u},f){const o=f.getState()[e].queries[u],a=d.get(u);if(!o||o.status===Li)return;const{lowestPollingInterval:m}=c(a);if(!Number.isFinite(m)){y(u);return}const v=l.get(u),w=Date.now()+m;(!v||w<v.nextPollTimestamp)&&k({queryCacheKey:u},f)}function y(u){const f=l.get(u);f!=null&&f.timeout&&clearTimeout(f.timeout),l.delete(u)}function b(){for(const u of l.keys())y(u)}function c(u=new Map){let f=!1,s=Number.POSITIVE_INFINITY;for(const o of u.values())o.pollingInterval&&(s=Math.min(o.pollingInterval,s),f=o.skipPollingIfUnfocused||f);return{lowestPollingInterval:s,skipPollingIfUnfocused:f}}return _},qI=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const i=tf(n,r),l=Fs(n,r),d=ga(n,r),g={};return(_,S)=>{var k,h;if(i(_)){const{requestId:y,arg:{endpointName:b,originalArgs:c}}=_.meta,u=Bs(t,b),f=u==null?void 0:u.onQueryStarted;if(f){const s={},o=new Promise((w,A)=>{s.resolve=w,s.reject=A});o.catch(()=>{}),g[y]=s;const a=e.endpoints[b].select(Uc(u)?c:y),m=S.dispatch((w,A,E)=>E),v={...S,getCacheEntry:()=>a(S.getState()),requestId:y,extra:m,updateCachedData:Uc(u)?w=>S.dispatch(e.util.updateQueryData(b,c,w)):void 0,queryFulfilled:o};f(c,v)}}else if(d(_)){const{requestId:y,baseQueryMeta:b}=_.meta;(k=g[y])==null||k.resolve({data:_.payload,meta:b}),delete g[y]}else if(l(_)){const{requestId:y,rejectedWithValue:b,baseQueryMeta:c}=_.meta;(h=g[y])==null||h.reject({error:_.payload??_.error,isUnhandledError:!b,meta:c}),delete g[y]}}},GI=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{const{removeQueryResult:l}=n.internalActions,d=(p,_)=>{uf.match(p)&&g(_,"refetchOnFocus"),df.match(p)&&g(_,"refetchOnReconnect")};function g(p,_){const S=p.getState()[e],k=S.queries,h=i.currentSubscriptions;t.batch(()=>{for(const y of h.keys()){const b=k[y],c=h.get(y);if(!c||!b)continue;const u=[...c.values()];(u.some(s=>s[_]===!0)||u.every(s=>s[_]===void 0)&&S.config[_])&&(c.size===0?p.dispatch(l({queryCacheKey:y})):b.status!==Li&&p.dispatch(r(b)))}})}return d};function WI(e){const{reducerPath:t,queryThunk:n,api:r,context:i,getInternalState:l}=e,{apiUid:d}=i,g={invalidateTags:Gr(`${t}/invalidateTags`)},p=h=>h.type.startsWith(`${t}/`),_=[VI,BI,HI,jI,zI,qI];return{middleware:h=>{let y=!1;const b=l(h.dispatch),c={...e,internalState:b,refetchQuery:k,isThisApiSliceAction:p,mwApi:h},u=_.map(o=>o(c)),f=UI(c),s=GI(c);return o=>a=>{if(!Tm(a))return o(a);y||(y=!0,h.dispatch(r.internalActions.middlewareRegistered(d)));const m={...h,next:o},v=h.getState(),[w,A]=f(a,m,v);let E;if(w?E=o(a):E=A,h.getState()[t]&&(s(a,m,v),p(a)||i.hasRehydrationInfo(a)))for(const O of u)O(a,m,v);return E}},actions:g};function k(h){return e.api.endpoints[h.endpointName].initiate(h.originalArgs,{subscribe:!1,forceRefetch:!0})}}var Tv=Symbol(),KI=({createSelector:e=ef}={})=>({name:Tv,init(t,{baseQuery:n,tagTypes:r,reducerPath:i,serializeQueryArgs:l,keepUnusedDataFor:d,refetchOnMountOrArgChange:g,refetchOnFocus:p,refetchOnReconnect:_,invalidationBehavior:S,onSchemaFailure:k,catchSchemaFailure:h,skipSchemaValidation:y},b){DC();const c=te=>te;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:df,onOffline:hv,onFocus:uf,onFocusLost:fv},util:{}});const u=NI({serializeQueryArgs:l,reducerPath:i,createSelector:e}),{selectInvalidatedBy:f,selectCachedArgsForQuery:s,buildQuerySelector:o,buildInfiniteQuerySelector:a,buildMutationSelector:m}=u;Di(t.util,{selectInvalidatedBy:f,selectCachedArgsForQuery:s});const{queryThunk:v,infiniteQueryThunk:w,mutationThunk:A,patchQueryData:E,updateQueryData:O,upsertQueryData:T,prefetch:M,buildMatchThunkActions:P}=LI({baseQuery:n,reducerPath:i,context:b,api:t,serializeQueryArgs:l,assertTagType:c,selectors:u,onSchemaFailure:k,catchSchemaFailure:h,skipSchemaValidation:y}),{reducer:x,actions:I}=DI({context:b,queryThunk:v,mutationThunk:A,serializeQueryArgs:l,reducerPath:i,assertTagType:c,config:{refetchOnFocus:p,refetchOnReconnect:_,refetchOnMountOrArgChange:g,keepUnusedDataFor:d,reducerPath:i,invalidationBehavior:S}});Di(t.util,{patchQueryData:E,updateQueryData:O,upsertQueryData:T,prefetch:M,resetApiState:I.resetApiState,upsertQueryEntries:I.cacheEntriesUpserted}),Di(t.internalActions,I);const D=new WeakMap,V=te=>Mc(D,te,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:j,buildInitiateInfiniteQuery:L,buildInitiateMutation:U,getRunningMutationThunk:F,getRunningMutationsThunk:W,getRunningQueriesThunk:J,getRunningQueryThunk:$}=MI({queryThunk:v,mutationThunk:A,infiniteQueryThunk:w,api:t,serializeQueryArgs:l,context:b,getInternalState:V});Di(t.util,{getRunningMutationThunk:F,getRunningMutationsThunk:W,getRunningQueryThunk:$,getRunningQueriesThunk:J});const{middleware:ne,actions:ae}=WI({reducerPath:i,context:b,queryThunk:v,mutationThunk:A,infiniteQueryThunk:w,api:t,assertTagType:c,selectors:u,getRunningQueryThunk:$,getInternalState:V});return Di(t.util,ae),Di(t,{reducer:x,middleware:ne}),{name:Tv,injectEndpoint(te,ie){var Ne;const _e=(Ne=t.endpoints)[te]??(Ne[te]={});Nc(ie)&&Di(_e,{name:te,select:o(te,ie),initiate:j(te,ie)},P(v,te)),OI(ie)&&Di(_e,{name:te,select:m(),initiate:U(te)},P(A,te)),xc(ie)&&Di(_e,{name:te,select:a(te,ie),initiate:L(te,ie)},P(v,te))}}}}),zc=xI(KI());function Vc(e,t,n){return{error:e,message:t,status:n,type:"network_error"}}function $I(e,t){for(const n of t)if(e.has(n))return!0;return!1}function ZI(e,t){return t.some(n=>e.has(n))}function YI(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function JI(e,t){try{const n=new URL(e),r=new URL(t);return n.origin===r.origin&&n.pathname===r.pathname}catch{return!1}}function Ov(){return{getParamsByRedirect:e=>{const{url:t,timeout:n,successParams:r,errorParams:i,includeHashParams:l,resolveOnRedirectUri:d}=e;return!d&&(!(r!=null&&r.length)||!(i!=null&&i.length))?Promise.reject({type:"internal_error",message:"successParams and errorParams must be provided"}):d&&!(i!=null&&i.length)?Promise.reject({type:"internal_error",message:"errorParams must be provided"}):new Promise((g,p)=>{let _=null,S=null,k=()=>{},h=()=>{};h=()=>{!_&&!S||(S&&(clearTimeout(S),S=null),_&&(_.removeEventListener("load",k),_.parentNode&&_.remove(),_=null),k=()=>{},h=()=>{})},k=()=>{try{if(_&&_.contentWindow){const y=_.contentWindow.location.href;if(y==="about:blank"||!y)return;const{searchParams:b,hash:c}=new URL(y),u=l?new URLSearchParams([...b,...new URLSearchParams(c.slice(1))]):b,f=YI(u);if($I(u,i)){h(),g(f);return}if(d&&JI(y,d)){h(),g(f);return}if(ZI(u,r)){h(),g(f);return}}}catch{h(),p({type:"internal_error",message:"unexpected failure"})}};try{_=document.createElement("iframe"),_.style.display="none",_.addEventListener("load",k),document.body.appendChild(_),S=setTimeout(()=>{h(),p({type:"internal_error",message:"iframe timed out"})},n),_.src=t}catch{h(),p({type:"internal_error",message:"error setting up iframe"})}})}}}const XI={begin:"JOURNEY_START",continue:"JOURNEY_NEXT",terminate:"JOURNEY_TERMINATE",start:"DAVINCI_START",next:"DAVINCI_NEXT",flow:"DAVINCI_FLOW",success:"DAVINCI_SUCCESS",error:"DAVINCI_ERROR",failure:"DAVINCI_FAILURE",resume:"DAVINCI_RESUME",poll:"DAVINCI_POLL",authorize:"AUTHORIZE",par:"PAR",tokenExchange:"TOKEN_EXCHANGE",revoke:"REVOKE",userInfo:"USER_INFO",endSession:"END_SESSION"};function QI(e,{type:t,payload:n}){const r=Object.freeze({type:t,payload:n});return i=>{if(!Array.isArray(i))return e;const l=i.map(g=>g);function d(){const g=l.shift();return g&&g(e,r,d),e}return d()}}function Mr(e,t,n){let r={...e,url:new URL(e.url),headers:new Headers(e.headers)};const i={applyMiddleware(l){return r=QI(r,{type:XI[t],payload:n||{}})(l),i},async applyQuery(l){return await l({...r,url:r.url.toString()})}};return i}const eA=3e3,er=zc({reducerPath:"oidc",baseQuery:Lc(),endpoints:e=>({authorizeFetch:e.mutation({queryFn:async({url:t},n,r,i)=>{const{requestMiddleware:l,logger:d}=n.extra,g={url:t,method:"POST",credentials:"include",headers:{Accept:"application/json"}};d.debug("OIDC authorize API request",g);const p=await Mr(g,"authorize").applyMiddleware(l).applyQuery(async _=>await i(_));if(p.error){const _=p.error;if(_.data&&typeof _.data=="object"&&"details"in _.data&&Array.isArray(_.data.details)){d.debug("Error in authorize response",_);const S=_.data.details[0];return p.error={status:_.status,statusText:"AUTHORIZE_ERROR",data:{error:S.code,error_description:S.message,type:"auth_error"}},p}return d.error("Error in OAuth configuration",_),p.error={status:_.status,statusText:"CONFIGURATION_ERROR",data:{error:"CONFIGURATION_ERROR",error_description:"Configuration error. Please check your OAuth configuration, like clientId or allowed redirect URLs.",type:"network_error"}},p}return d.debug("OIDC Authorize fetch API response",p),p}}),par:e.mutation({queryFn:async({endpoint:t,body:n},r,i,l)=>{const{requestMiddleware:d,logger:g}=r.extra,p={url:t,method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},credentials:"include",body:n};g.debug("OIDC PAR API raw request",p);const _=await Mr(p,"par").applyMiddleware(d).applyQuery(async k=>await l(k));if(g.debug("OIDC PAR API raw response",_),_.error){const k=_.error;let h;return k.data&&typeof k.data=="object"&&"error_description"in k.data&&typeof k.data.error_description=="string"?h=k.data.error_description:h=`Failed to push authorization request: ${k.status}`,g.error("PAR API error",h),_.error.data={error:"PAR_ERROR",error_description:h,type:"network_error"},_}const S=_.data;return!S||typeof S!="object"||!("request_uri"in S)||typeof S.request_uri!="string"||S.request_uri.length===0?{error:{status:"CUSTOM_ERROR",error:"PAR_ERROR",data:{error:"PAR_ERROR",error_description:"PAR response missing required 'request_uri' field",type:"network_error"}}}:_}}),sessionCheckIframe:e.mutation({queryFn:async({url:t,responseType:n},r)=>{const{requestMiddleware:i,logger:l}=r.extra,d=["error","error_description"],g={url:t};l.debug("OIDC session check iframe request",{responseType:n});const p=await Mr(g,"authorize").applyMiddleware(i).applyQuery(async _=>{try{const S=_.timeout??eA,k=n==="id_token"?{url:_.url,successParams:["id_token"],errorParams:d,includeHashParams:!0,timeout:S}:{url:_.url,resolveOnRedirectUri:new URL(_.url).searchParams.get("redirect_uri"),errorParams:d,successParams:[],timeout:S},h=await Ov().getParamsByRedirect(k);return"error"in h?{error:{status:400,statusText:"SESSION_CHECK_ERROR",data:{error:h.error,message:h.error_description??"An error occurred during session check",type:"auth_error"}}}:{data:{params:h}}}catch(S){const k=S instanceof Object&&"message"in S&&S.message==="iframe timed out";return{error:{status:400,statusText:"SESSION_CHECK_ERROR",data:{error:k?"iframe_timeout":"session_check_error",message:k?"Session check timed out waiting for iframe response":"An unexpected error occurred during session check",type:"network_error"}}}}});return"error"in p?l.error("Error in session check iframe",p):l.debug("OIDC session check iframe response received"),p}}),sessionCheckFetch:e.mutation({queryFn:async({url:t},n,r,i)=>{var S,k,h;const{requestMiddleware:l,logger:d}=n.extra,g={url:t,method:"GET",credentials:"include",headers:{Accept:"application/json"}};d.debug("OIDC session check fetch request");const p=await Mr(g,"authorize").applyMiddleware(l).applyQuery(async y=>await i(y)),_=p.error??(((k=(S=p.meta)==null?void 0:S.response)==null?void 0:k.status)!==204?(h=p.meta)==null?void 0:h.response:void 0);if(_){const y=typeof _.status=="number"&&_.status<500;return d.error("Error in session check fetch",_),{error:{status:_.status??"CUSTOM_ERROR",statusText:"SESSION_CHECK_ERROR",data:{error:y?"login_required":"session_check_error",message:y?"The request requires login.":"Session check failed.",type:y?"auth_error":"network_error"}}}}return d.debug("OIDC session check fetch response received"),{data:{status:204}}}}),authorizeIframe:e.mutation({queryFn:async({url:t},n)=>{const{requestMiddleware:r,logger:i}=n.extra,l={url:t,method:"POST",credentials:"include",headers:{Accept:"application/json"}};i.debug("OIDC authorize API request",l);const d=await Mr(l,"authorize").applyMiddleware(r).applyQuery(async p=>{try{return{data:await Ov().getParamsByRedirect({url:p.url,successParams:["code","state"],errorParams:["error","error_description"],timeout:p.timeout||3e3})}}catch(_){return{error:{status:400,message:"Unknown error occurred calling authorize endpoint",data:_}}}});if("error"in d)return i.error("Error in authorizeIframe response",d),{error:{status:400,statusText:"CONFIGURATION_ERROR",data:{error:"CONFIGURATION_ERROR",error_description:"Configuration error. Please check your OAuth configuration, like clientId or allowed redirect URLs.",type:"network_error"}}};const g=d.data;return"error"in g?(i.debug("Error in authorize response",d),{error:{status:400,statusText:"AUTHORIZE_ERROR",data:{error:g.error||"Unknown_Error",error_description:g.error_description||"An unknown error occurred during authorization",type:"auth_error"}}}):{data:d.data}}}),endSession:e.mutation({queryFn:async({idToken:t,endpoint:n,signOutRedirectUri:r},i,l,d)=>{const{requestMiddleware:g,logger:p}=i.extra,_=new URL(n);_.searchParams.append("id_token_hint",t),r&&_.searchParams.append("post_logout_redirect_uri",r);const S={url:_.toString(),method:"GET",credentials:"include",headers:{Accept:"application/json"}};p.debug("OIDC endSession API request",S);const k=await Mr(S,"endSession").applyMiddleware(g).applyQuery(async h=>await d(h));if(k.error){let h="An error occurred while trying to end the session";return k.error.status===400?h="Bad request to end session endpoint":k.error.status===401?h="Unauthorized request to end session endpoint":k.error.status===403&&(h="Forbidden request to end session endpoint"),p.error("End Session API error",h),k.error.data=Vc("End Session Error",h,k.error.status),k}return p.debug("OIDC endSession API response",k),k}}),exchange:e.mutation({queryFn:async({code:t,config:n,endpoint:r,verifier:i},l,d,g)=>{const{requestMiddleware:p,logger:_}=l.extra,{clientId:S,redirectUri:k}=n,h=new URLSearchParams({grant_type:"authorization_code",code:t,client_id:S,redirect_uri:k});i&&h.append("code_verifier",i);const y={url:r,method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:h};_.debug("OIDC tokenExchange API request",y);const b=await Mr(y,"tokenExchange").applyMiddleware(p).applyQuery(async c=>await g(c));if(b.error){let c="An error occurred while exchanging the authorization code";return b.error.status===400?c="Bad request to token exchange endpoint":b.error.status===401?c="Unauthorized request to token exchange endpoint":b.error.status===403&&(c="Forbidden request to token exchange endpoint"),_.error("Token Exchange API error",c),b.error.data=Vc("Token Exchange Error",c,b.error.status),b}return _.debug("OIDC tokenExchange API response",b),b}}),revoke:e.mutation({queryFn:async({accessToken:t,clientId:n,endpoint:r},i,l,d)=>{const{requestMiddleware:g,logger:p}=i.extra,_=new URLSearchParams({...n?{client_id:n}:{},token:t}),S={url:r,method:"POST",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:_};p.debug("OIDC revoke API request",S);const k=await Mr(S,"revoke").applyMiddleware(g).applyQuery(async h=>await d(h));if(k.error){let h="An error occurred while revoking the token";return k.error.status===400?h="Bad request to revoke endpoint":k.error.status===401?h="Unauthorized request to revoke endpoint":k.error.status===403&&(h="Forbidden request to revoke endpoint"),p.error("Token Revoke API error",h),k.error.data=Vc("Token Revoke Error",h,k.error.status),k}return p.debug("OIDC revoke API response",k),k}}),userInfo:e.mutation({queryFn:async({accessToken:t,endpoint:n},r,i,l)=>{const{requestMiddleware:d,logger:g}=r.extra,p={url:n,method:"GET",credentials:"include",headers:{Accept:"application/json",Authorization:`Bearer ${t}`}};g.debug("OIDC userInfo API request",p);const _=await Mr(p,"userInfo").applyMiddleware(d).applyQuery(async k=>await l(k));let S="An error occurred while fetching user info";return _.error?(_.error.status===400?S="Bad request to user info endpoint":_.error.status===401?S="Unauthorized request to user info endpoint":_.error.status===403&&(S="Forbidden request to user info endpoint"),g.error("User Info API error",S),_.error.data=Vc("User Info Error",S,_.error.status),_):(g.debug("OIDC userInfo API response",_),_)}})})}),tA=(e,t,n)=>Ro({try:()=>ym({clientId:e.clientId,serverConfig:{baseUrl:new URL(t.authorization_endpoint).origin},responseType:e.responseType||"code",redirectUri:e.redirectUri,scope:e.scope||"openid",...n}),catch:r=>({error:"PAR_PARAM_BUILD_ERROR",error_description:r instanceof Error?r.message:"Failed to generate auth URL values",type:"auth_error"})}),nA=e=>Oi({try:()=>fm(e),catch:t=>({error:"PAR_CHALLENGE_ERROR",error_description:t instanceof Error?t.message:"Failed to generate PKCE challenge",type:"auth_error"})}),rA=e=>Ro({try:()=>e(),catch:t=>({error:"PAR_STORAGE_ERROR",error_description:t instanceof Error?t.message:"Failed to store PAR session options",type:"unknown_error"})}),iA=(e,t,n,r,i)=>Ro({try:()=>_m({clientId:e.clientId,redirectUri:e.redirectUri,scope:e.scope||"openid",responseType:e.responseType||"code",...t,challenge:n,state:r,...i&&{prompt:i}}),catch:l=>({error:"PAR_PARAM_BUILD_ERROR",error_description:l instanceof Error?l.message:"Failed to build PAR parameters",type:"auth_error"})}),aA=(e,t)=>Oi({try:async()=>[await zd(e,{...t,prompt:"none"}),t],catch:n=>({error:"AuthorizationUrlError",error_description:n instanceof Error?n.message:"Error creating authorization URL",type:"auth_error"})}),sA=(e,t,n)=>Oi({try:()=>zd(t.authorization_endpoint,{...n}),catch:r=>({error:"AuthorizationUrlError",error_description:r instanceof Error?r.message:"Error creating authorization URL",type:"auth_error"})}).pipe(Yt(r=>tn({error:e.error,error_description:e.error_description,type:"auth_error",redirectUrl:r}))),oA=e=>{if(e.error)return tn(Cm(e.error));if(!lC(e.data))return tn({error:"PAR_ERROR",error_description:"PAR response missing required 'request_uri' field",type:"network_error"});const t=e.data;return wn({request_uri:t.request_uri,expires_in:t.expires_in??60})},Pv=(e,t,n)=>{const r=Cm(e);return km(e)&&"statusText"in e&&e.statusText==="CONFIGURATION_ERROR"?tn(r):sA(r,t,n)},lA=(e,t,n)=>Oi({try:()=>e.dispatch(er.endpoints.par.initiate({endpoint:t,body:n})),catch:r=>({error:"PAR_DISPATCH_ERROR",error_description:r instanceof Error?r.message:"Failed to dispatch PAR request",type:"network_error"})}),cA=(e,t,n,r)=>Ro({try:()=>hC({authorizationEndpoint:e,clientId:t,requestUri:n,prompt:r}),catch:i=>({error:"PAR_URL_BUILD_ERROR",error_description:i instanceof Error?i.message:"Failed to build PAR authorize URL",type:"unknown_error"})}),uA=(e,t,n,r)=>Oi({try:()=>e.dispatch(er.endpoints.authorizeFetch.initiate({url:t})),catch:i=>({error:"AUTHORIZE_DISPATCH_ERROR",error_description:i instanceof Error?i.message:"Failed to dispatch authorize request",type:"network_error"})}).pipe(Yt(({error:i,data:l})=>i?Pv(i,n,r):l!=null&&l.authorizeResponse?wn(l.authorizeResponse):tn({error:"Unknown_Error",error_description:"Response schema was not recognized",type:"unknown_error"}))),dA=(e,t,n,r)=>Oi({try:()=>e.dispatch(er.endpoints.authorizeIframe.initiate({url:t})),catch:i=>({error:"AUTHORIZE_DISPATCH_ERROR",error_description:i instanceof Error?i.message:"Failed to dispatch authorize request",type:"network_error"})}).pipe(Yt(({error:i,data:l})=>{if(i)return Pv(i,n,r);const d=l;return d!==void 0&&typeof d.code=="string"&&typeof d.state=="string"?wn(d):tn({error:"Unknown_Error",error_description:"Response data did not contain expected code and state fields",type:"unknown_error"})}));function Rv(e,t,n,r,i){if(t.responseMode==="pi.flow"){const{responseMode:l,...d}=t;return uA(r,e,n,d).pipe(fi(()=>i.debug("Received success response from authorize fetch endpoint")))}return dA(r,e,n,t).pipe(fi(()=>i.debug("Received success response from authorize iframe endpoint")))}function Mv(e,t,n,r,i){const l=e.pushed_authorization_request_endpoint;if(!l)return tn({error:"PAR_NOT_CONFIGURED",error_description:"PAR endpoint not found in server configuration",type:"wellknown_error"});const{prompt:d,...g}=i??{};return sm(function*(){const[p,_]=yield*tA(t,e,i),S=yield*nA(p.verifier),k=yield*iA(t,g,S,p.state,d),h=yield*lA(r,l,k),{request_uri:y,expires_in:b}=yield*oA(h);return b<30&&(yield*Ti(()=>n.warn(`PAR request_uri expires in ${b}s — authorize must complete before expiry`))),yield*rA(_),yield*cA(e.authorization_endpoint,t.clientId,y,d)})}function Lv(e,t,n,r,i,l){const d={clientId:t.clientId,redirectUri:t.redirectUri,scope:t.scope||"openid",responseType:t.responseType||"code",...i},g=Mv(e,t,n,r,i).pipe(fi(k=>n.debug("PAR authorize URL created",k)),Za(k=>Ti(()=>n.error(`PAR authorize failed [${k.type}]: ${k.error}`,k))),Yt(k=>Rv(k,d,e,r,n).pipe(Za(h=>Ti(()=>n.error("Error dispatching PAR authorize request",h)))))),[p,_]=cC(e,t,i),S=aA(p,_).pipe(fi(([k])=>n.debug("Authorize URL created",k)),Za(k=>Ti(()=>n.error("Error creating authorize URL",k))),Yt(([k,h])=>Rv(k,h,e,r,n)),Za(k=>Ti(()=>n.error("Error dispatching authorize request",k))));return l?g:S}function fA(e,t,n,r,i){return Ti(()=>{const l=aC(t.clientId,i==null?void 0:i.prefix);return{code:e,config:t,state:n,storedValues:l,endpoint:r}})}function hA(e,t){if(t){let n;return"status"in t?n="error"in t?t.error:JSON.stringify(t.data):"message"in t&&(n=t.message),tn({error:"Token Exchange failure",message:n||"Unknown error during token exchange",type:"exchange_error"})}return e?wn(e):tn({error:"Token Exchange failure",message:"No data returned from token exchange",type:"exchange_error"})}function gA({code:e,config:t,state:n,storedValues:r,endpoint:i}){return!r||r.state!==n?tn({error:"State mismatch",message:"The provided state does not match the stored state. This is likely due to passing in used, returned, authorize parameters.",type:"state_error"}):wn({code:e,config:t,endpoint:i,...r.verifier&&{verifier:r.verifier}})}function Dv({code:e,config:t,endpoint:n,log:r,state:i,store:l,options:d}){return fA(e,t,i,n,d).pipe(Yt(g=>gA(g)),fi(g=>r.debug("Token exchange values created",g)),Za(g=>Ti(()=>r.error("Error creating token exchange values",g))),Yt(g=>$a(()=>l.dispatch(er.endpoints.exchange.initiate(g)))),Yt(({data:g,error:p})=>hA(g,p)),fi(g=>r.debug("Token exchange response handled",g)),Za(g=>Ti(()=>r.error("Error handling token exchange response",g))),jr(g=>({accessToken:g.access_token,idToken:g.id_token,...g.refresh_token&&{refreshToken:g.refresh_token},...g.expires_in&&{expiresAt:g.expires_in},...g.expires_in&&{expiryTimestamp:Date.now()+g.expires_in*1e3}})))}const rl=zc({reducerPath:"wellknown",baseQuery:Lc(),endpoints:e=>({configuration:e.query({queryFn:async(t,n,r,i)=>await bm(t).applyQuery(async d=>await i(d))})})});function pa(e,t){return ef(rl.endpoints.configuration.select(e),r=>r==null?void 0:r.data)(t)}function pA({requestMiddleware:e,logger:t}){return Xm({reducer:{[er.reducerPath]:er.reducer,[rl.reducerPath]:rl.reducer},middleware:n=>n({thunk:{extraArgument:{requestMiddleware:e,logger:t}}}).concat(rl.middleware).concat(er.middleware)})}function Nv(e,t){if(t){let n="An error occurred while ending the session",r="unknown";return"message"in t&&t.message&&(n=t.message),"status"in t&&(r=t.status),{error:"End Session failure",message:n,type:"auth_error",status:r}}return null}function mf(e){let t;return e==="no_tokens"?t={error:"Token_Error",message:"Required for ending session and revoking access token",type:"state_error"}:e==="no_access_token"?t={error:"Token_Error",message:"No access token found in storage; required for revoking access token",type:"state_error"}:e==="no_id_token"?t={error:"Token_Error",message:"No ID token found in storage; required for ending session",type:"state_error"}:t={error:"Token_Error",message:"An unknown error occurred while creating the error object",type:"unknown_error"},t}function mA(e,t){return t?t-e<Date.now():!1}function vA({tokens:e,config:t,wellknown:n,store:r,storageClient:i}){return Bk($a(()=>r.dispatch(er.endpoints.endSession.initiate({idToken:e.idToken,endpoint:n.ping_end_idp_session_endpoint||n.end_session_endpoint,signOutRedirectUri:t.signOutRedirectUri}))).pipe(jr(({data:l,error:d})=>Nv(l,d))),$a(()=>r.dispatch(er.endpoints.revoke.initiate({accessToken:e.accessToken,clientId:t.clientId,endpoint:n.revocation_endpoint}))).pipe(jr(({data:l,error:d})=>Nv(l,d)))).pipe(Yt(([l,d])=>$a(()=>i.remove()).pipe(Yt(g=>l&&"error"in l||d&&"error"in d||g&&"error"in g?tn({error:"Inner request error",sessionResponse:l,revokeResponse:d,deleteResponse:g}):wn({sessionResponse:null,revokeResponse:null,deleteResponse:null})))))}new TextEncoder;const vf=new TextDecoder;function yA(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(e);const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function _A(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(typeof e=="string"?e:vf.decode(e),{alphabet:"base64url"});let t=e;t instanceof Uint8Array&&(t=vf.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/");try{return yA(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}}const wA=e=>typeof e=="object"&&e!==null;function bA(e){if(!wA(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}class xv extends Error{constructor(n,r){var i;super(n,r);Je(this,"code","ERR_JOSE_GENERIC");this.name=this.constructor.name,(i=Error.captureStackTrace)==null||i.call(Error,this,this.constructor)}}Je(xv,"code","ERR_JOSE_GENERIC");class ma extends xv{constructor(){super(...arguments);Je(this,"code","ERR_JWT_INVALID")}}Je(ma,"code","ERR_JWT_INVALID");function SA(e){if(typeof e!="string")throw new ma("JWTs must use Compact JWS serialization, JWT must be a string");const{1:t,length:n}=e.split(".");if(n===5)throw new ma("Only JWTs using Compact JWS serialization can be decoded");if(n!==3)throw new ma("Invalid JWT");if(!t)throw new ma("JWTs must contain a payload");let r;try{r=_A(t)}catch{throw new ma("Failed to base64url decode the payload")}let i;try{i=JSON.parse(vf.decode(r))}catch{throw new ma("Failed to parse the decoded payload as JSON")}if(!bA(i))throw new ma("Invalid JWT Claims Set");return i}const Uv=e=>Oi({try:()=>e.get(),catch:()=>({error:"storage_error",message:"Failed to read tokens from storage",type:"argument_error"})}).pipe(jr(t=>t&&"idToken"in t?t.idToken:null)),Fv=(e,t,n)=>Oi({try:()=>e.dispatch(er.endpoints.sessionCheckIframe.initiate({url:t,responseType:n})),catch:r=>({error:"dispatch_error",message:r instanceof Error?r.message:"Failed to dispatch session check",type:"network_error"})}).pipe(Yt(r=>{var l,d,g;if("error"in r&&r.error){const p=r.error;return tn({error:((l=p.data)==null?void 0:l.error)??"session_check_error",message:((d=p.data)==null?void 0:d.message)??"An error occurred during session check",type:((g=p.data)==null?void 0:g.type)??"network_error"})}const{params:i}=r.data;return wn(i)})),EA=(e,t)=>Oi({try:()=>e.dispatch(er.endpoints.sessionCheckFetch.initiate({url:t})),catch:n=>({error:"dispatch_error",message:n instanceof Error?n.message:"Failed to dispatch session check",type:"network_error"})}).pipe(Yt(n=>{var r,i,l;if("error"in n&&n.error){const d=n.error;return tn({error:((r=d.data)==null?void 0:r.error)??"login_required",message:((i=d.data)==null?void 0:i.message)??"The request requires login.",type:((l=d.data)==null?void 0:l.type)??"auth_error"})}return im})),kA=(e,t,n,r)=>sm(function*(){if(e.state!==t)return yield*tn({error:"state_mismatch",message:"State parameter in response does not match the expected value",type:"auth_error"});const i=e.id_token;if(!i)return yield*tn({error:"no_id_token",message:"No id_token found in iframe response",type:"auth_error"});const l=yield*Ro({try:()=>SA(i),catch:()=>({error:"invalid_jwt",message:"Failed to decode id_token JWT payload",type:"auth_error"})});return l.nonce!==n?yield*tn({error:"nonce_mismatch",message:"Nonce in id_token does not match the expected value",type:"auth_error"}):r!==void 0&&l.sub!==r?yield*tn({error:"subject_mismatch",message:"Subject claim in id_token does not match the expected value",type:"auth_error"}):l}),CA=(e,t,n,r,i)=>{const l=new URLSearchParams({prompt:"none",response_type:"none",client_id:t.clientId,scope:(i==null?void 0:i.scope)??"openid",...r?{redirect_uri:r}:{},id_token_hint:n});return`${e}?${l.toString()}`},IA=(e,t,n,r,i)=>{const l=Bd(32),d=dm(),g=new URLSearchParams({prompt:"none",response_type:"id_token",client_id:t.clientId,redirect_uri:r,scope:(i==null?void 0:i.scope)??"openid",nonce:l,state:d,...n?{id_token_hint:n}:{}});return{url:`${e}?${g.toString()}`,nonce:l,state:d}},AA=(e,t,n,r,i,l)=>Uv(r).pipe(Yt(d=>{if(!d)return tn({error:"no_id_token_hint",message:"response_type=none requires a stored id_token; authenticate first",type:"argument_error"});const g=(l==null?void 0:l.redirectUri)??t.redirectUri,p=CA(e.authorization_endpoint,t,d,g,l);return g?Fv(n,p,"none"):EA(n,p)}),fi(()=>i.debug("Session check (none) completed successfully")),jr(()=>({responseType:"none"}))),TA=(e,t,n,r,i,l)=>{const d=(l==null?void 0:l.redirectUri)??t.redirectUri;return d?Uv(r).pipe(Yt(g=>{const{url:p,nonce:_,state:S}=IA(e.authorization_endpoint,t,g,d,l);return Fv(n,p,"id_token").pipe(Yt(k=>kA(k,S,_,l==null?void 0:l.subject)))}),fi(()=>i.debug("Session check (id_token) completed successfully")),jr(g=>({responseType:"id_token",claims:g}))):tn({error:"missing_redirect_uri",message:"redirect_uri is required for session check with response_type=id_token",type:"argument_error"})};async function OA({config:e,requestMiddleware:t,logger:n,storage:r}){var h;const i=Ed({level:(n==null?void 0:n.level)??e.log??"error",custom:n==null?void 0:n.custom}),l=e.oauthThreshold||30*1e3,d=Sm({type:(r==null?void 0:r.type)||"localStorage",name:(r==null?void 0:r.name)||e.clientId,prefix:(r==null?void 0:r.prefix)||"pic",...r}),g=pA({requestMiddleware:t,logger:i});if(!((h=e==null?void 0:e.serverConfig)!=null&&h.wellknown))return{error:"Requires a wellknown url initializing this factory.",type:"argument_error"};if(!(e!=null&&e.clientId))return{error:"Requires a clientId.",type:"argument_error"};const p=e.serverConfig.wellknown,{data:_,error:S}=await g.dispatch(rl.endpoints.configuration.initiate(p));if(S||!_)return i.error(`Error fetching wellknown config. Please check the URL: ${p}`),{error:`Failed to fetch well-known configuration from: ${p}`,type:"wellknown_error"};if(_!=null&&_.require_pushed_authorization_requests&&e.par===!1)return{error:"The authorization server requires Pushed Authorization Requests (PAR). Set config.par to true or omit it.",type:"argument_error"};const k=e.par??(_==null?void 0:_.require_pushed_authorization_requests)===!0;return{subscribe:g.subscribe,authorize:{url:async y=>{const b=g.getState(),c=pa(p,b);if(!(c!=null&&c.authorization_endpoint))return{error:"Authorization endpoint not found in wellknown configuration",type:"wellknown_error"};if(k){const f=await ua(Mv(c,e,i,g,y).pipe(Za(s=>Ti(()=>i.error(`PAR authorize.url() failed [${s.type}]: ${s.error}`,s)))));if(sc(f))return f.value;if(oc(f)){const s=f.cause.error;return{error:s.error,message:s.error_description,type:s.type}}else{const s=rc(f.cause)?f.cause.defect:void 0;return{error:"PAR authorization failure",message:s instanceof Error?s.message:String(s??"Unknown defect"),type:"auth_error"}}}const u={clientId:e.clientId,redirectUri:e.redirectUri,scope:e.scope||"openid",responseType:e.responseType||"code",...e.loginHint!==void 0&&{loginHint:e.loginHint},...e.nonce!==void 0&&{nonce:e.nonce},...e.display!==void 0&&{display:e.display},...e.prompt!==void 0&&{prompt:e.prompt},...e.uiLocales!==void 0&&{uiLocales:e.uiLocales},...e.acrValues!==void 0&&{acrValues:e.acrValues},...e.query!==void 0&&{query:e.query},...y};return zd(c.authorization_endpoint,u)},background:async y=>{const b=g.getState(),c=pa(p,b);if(!(c!=null&&c.authorization_endpoint))return{error:"Wellknown missing authorization endpoint",error_description:"Authorization endpoint not found in wellknown configuration",type:"wellknown_error"};const u=await ua(Lv(c,e,i,g,y,k));if(sc(u))return u.value;if(oc(u))return u.cause.error;{const f=rc(u.cause)?u.cause.defect:void 0;return{error:"Authorization failure",error_description:f instanceof Error?f.message:String(f??"Unknown defect"),type:"auth_error"}}}},token:{exchange:async(y,b,c)=>{const u=g.getState(),f=pa(p,u);if(!(f!=null&&f.token_endpoint))return{error:"Wellknown missing token endpoint",type:"wellknown_error"};const s=Dv({code:y,config:e,state:b,log:i,endpoint:f.token_endpoint,store:g,options:c}).pipe(fi(async a=>{await d.set(a)})),o=await ua(s);return Do(o,"Token Exchange failure","exchange_error")},get:async y=>{const{authorizeOptions:b,forceRenew:c,backgroundRenew:u,storageOptions:f}=y||{},s=g.getState(),o=pa(p,s);if(!(o!=null&&o.authorization_endpoint))return{error:"Wellknown missing authorization endpoint",type:"wellknown_error"};const a=await d.get();if(a&&"error"in a)return{error:"Error occurred while retrieving tokens",message:"Please log the user out completely and try again",type:"state_error"};if(!c&&a&&!mA(l,a.expiryTimestamp))return a;if(!u&&!c)return a||{error:"No tokens found",type:"state_error"};const m=Lv(o,e,i,g,b,k).pipe(Yt(w=>Dv({code:w.code,config:e,log:i,state:w.state,endpoint:o.token_endpoint,store:g,options:f})),fi(async w=>{a&&"accessToken"in a&&(await g.dispatch(er.endpoints.revoke.initiate({accessToken:a.accessToken,clientId:e.clientId,endpoint:o.revocation_endpoint})),await d.remove()),await d.set(w)})),v=await ua(m);if(sc(v))return v.value;if(oc(v))return v.cause.error;{const w=rc(v.cause)?v.cause.defect:void 0;return{error:"Background token renewal failed",error_description:w instanceof Error?w.message:String(w??"Unknown defect"),type:"auth_error"}}},revoke:async()=>{const y=g.getState(),b=pa(p,y);if(!(b!=null&&b.revocation_endpoint))return{error:"Wellknown missing revocation endpoint",type:"wellknown_error"};const c=await d.get();if(!c||!("accessToken"in c))return{error:"No access token found",type:"state_error"};const u=$a(()=>g.dispatch(er.endpoints.revoke.initiate({accessToken:c.accessToken,clientId:e.clientId,endpoint:b.revocation_endpoint}))).pipe(jr(({error:s})=>{if(s){let o="An error occurred while revoking the token",a="unknown";return"message"in s&&s.message&&(o=s.message),"status"in s&&(a=s.status),{error:"Token revocation failure",message:o,type:"auth_error",status:a}}return null}),Yt(s=>$a(()=>d.remove()).pipe(Yt(o=>s&&"error"in s||o&&"error"in o?tn({error:"Inner request error",revokeResponse:s,deleteResponse:o}):wn({revokeResponse:null,deleteResponse:null}))))),f=await ua(u);return Do(f,"Token revocation failure","auth_error")}},user:{info:async()=>{const y=g.getState(),b=pa(p,y);if(!(b!=null&&b.userinfo_endpoint))return{error:"Wellknown missing userinfo endpoint",type:"wellknown_error"};const c=await d.get();if(!c||!("accessToken"in c))return{error:"No access token found",type:"auth_error"};const u=$a(()=>g.dispatch(er.endpoints.userInfo.initiate({accessToken:c.accessToken,endpoint:b.userinfo_endpoint}))).pipe(Yt(({data:s,error:o})=>{if(o){let a="An error occurred while fetching user info",m="unknown";return"message"in o&&o.message&&(a=o.message),"status"in o&&(m=o.status),tn({error:"User Info retrieval failure",message:a,type:"auth_error",status:m})}return wn(s)})),f=await ua(u);return Do(f,"User Info retrieval failure","auth_error")},logout:async()=>{const y=g.getState(),b=pa(p,y);if(!(b!=null&&b.end_session_endpoint))return{error:"Wellknown missing end session endpoint",type:"wellknown_error"};if(!(b!=null&&b.revocation_endpoint))return{error:"Wellknown missing revocation endpoint",type:"wellknown_error"};const c=await d.get();if(!c)return mf("no_tokens");if(!("accessToken"in c))return mf("no_access_token");if(!("idToken"in c))return mf("no_id_token");const u=await ua(vA({tokens:c,config:e,wellknown:b,store:g,storageClient:d}));return Do(u,"Logout_Failure","auth_error")},session:async y=>{const b=g.getState(),c=pa(p,b);if(!(c!=null&&c.authorization_endpoint))return{error:"Wellknown missing authorization endpoint",message:"Authorization endpoint not found in wellknown configuration",type:"wellknown_error"};const u=(y==null?void 0:y.responseType)==="id_token"?TA(c,e,g,d,i,y):AA(c,e,g,d,i,y),f=await ua(u);return Do(f,"Session check failure","unknown_error")}}}}const PA=Qn({clientId:se(),redirectUri:se().url({message:"`redirectUri` must be a full URL (this is generated by the Zod library)."}),scope:se().default("openid"),serverConfig:Qn({wellknown:se({error:e=>e.input===void 0?"Setting the `serverConfig.wellknown` is required (this is generated by the Zod library).":"`serverConfig.wellknown` must be a URL string (this is generated by the Zod library)."}).url({message:"`serverConfig.wellknown` must be a full URL (this is generated by the Zod library)."})}).strict()}).strict();function RA(e){const t=PA.parse(e),{subscribe:n,set:r}=or(null),i=OA({config:t}).then(l=>(r(l),l)).catch(l=>{const d={error:l instanceof Error?l.message:String(l),type:"unknown_error"};return r(d),d});return{subscribe:n,getClient:()=>i}}function MA(e){let t=!1;return{start:async()=>{try{await Promise.resolve().then(()=>VP),t=!0}catch(n){return console.error("error loading ping signals",n),{error:"Failed to load PingOne Signals SDK"}}try{await window._pingOneSignals.init(e),(e.behavioralDataCollection===!0||e.behavioralDataCollection==="true")&&window._pingOneSignals.resumeBehavioralData()}catch(n){return console.error("error initializing ping protect",n),{error:"Failed to initialize PingOne Signals SDK"}}},getData:async()=>{if(!t)return{error:"PingOne Signals SDK is not initialized"};try{return await window._pingOneSignals.getData()}catch(n){return console.error("error getting data from ping protect",n),{error:"Failed to get data from Protect"}}},pauseBehavioralData:()=>{if(!t)return{error:"PingOne Signals SDK is not initialized"};try{window._pingOneSignals.pauseBehavioralData()}catch(n){return console.error("error pausing behavioral data in ping protect",n),{error:"Failed to pause behavioral data in Protect"}}},resumeBehavioralData:()=>{if(!t)return{error:"PingOne Signals SDK is not initialized"};try{window._pingOneSignals.resumeBehavioralData()}catch(n){return console.error("error resuming behavioral data in ping protect",n),{error:"Failed to resume behavioral data in Protect"}}}}}const LA=eE({envId:se({error:e=>e.input===void 0?"Setting `envId` is required (this is generated by the Zod library).":"`envId` must be a string (this is generated by the Zod library)."}),waitForWindowLoad:ki().optional(),hubUrl:se().optional(),disableHub:ki().optional(),deviceAttributesToIgnore:Ip(se()).optional(),behavioralDataCollection:ki().optional(),disableTags:ki().optional(),externalIdentifiers:vd(se(),se()).optional(),universalDeviceIdentification:ki().optional(),agentIdentification:ki().optional(),agentTimeout:Ga().optional(),agentPort:Ga().optional(),consoleLogEnabled:ki().optional()}),DA=vd(se(),se()),NA=Io([LA,DA]),il=or(null);function xA(e){const t=NA.safeParse(e);if(!t.success)return Promise.resolve({error:t.error.message});const n=t.data,r=MA(n);return il.set(r),r.start()}function UA(){const e=sn(il);return e?e.getData():Promise.resolve({error:"Protect client not initialized"})}function FA(){const e=sn(il);return e?e.pauseBehavioralData():{error:"Protect client not initialized"}}function BA(){const e=sn(il);return e?e.resumeBehavioralData():{error:"Protect client not initialized"}}const va={subscribe:il.subscribe,start:xA,getData:UA,pauseBehavioralData:FA,resumeBehavioralData:BA},zA=/^#[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$/,Bv=/^(https?:\/\/[^\s"'<>{}\\]+|data:image\/[a-zA-Z+]+;base64,[a-zA-Z0-9+/=]+)$/,VA=/^[a-zA-Z0-9\s,'\-."]+$/,An=se().regex(zA).optional().catch(void 0),HA=Qn({primaryColor:An,primaryOffColor:An,secondaryColor:An,backgroundColor:An,linkColor:An,linkActiveColor:An,logo:se().regex(Bv).optional().catch(void 0),favicon:se().regex(Bv).optional().catch(void 0),logoHeight:Ga().optional(),fontFamily:se().regex(VA).optional().catch(void 0),buttonBorderRadius:Ga().optional(),cardBorderRadius:Ga().optional(),cardBgColor:An,inputBgColor:An,inputBorderColor:An,inputLabelColor:An,inputFocusRingColor:An,selectAccentColor:An,selectHoverBgColor:An,buttonFocusRingColor:An,inputTextColor:An,cardTextColor:An,bodyTextColor:An,buttonTextColor:An}).strict(),jA=Qn({dark:se().optional(),height:Ga().optional(),light:se().optional(),width:Ga().optional()}).strict();Qn({checksAndRadios:Io([Wa("animated"),Wa("standard")]).optional(),labels:Io([Wa("floating").optional(),Wa("stacked")]).optional(),showPassword:Io([Wa("none"),Wa("button"),Wa("checkbox")]).optional(),logo:jA.optional(),sections:Qn({header:ki().optional()}).strict().optional(),stage:Qn({icon:ki().optional()}).strict().optional(),theme:HA.optional()}).strict().partial();const yf={checksAndRadios:"animated",labels:"floating",showPassword:"button",logo:void 0,sections:void 0,stage:void 0,theme:void 0},Wr=or(yf);function qA(e){if(e){const t=r=>e[r],n=Object.keys(e).reduce((r,i)=>t(i)===void 0||t(i)===null?r:{...r,[i]:t(i)},yf);Wr.set(n)}else Wr.set(yf);return Wr}const _f={completed:!1,error:null,loading:!1,successful:!1,response:null};function GA(e){const t=or(_f);async function n(){if(!e)return t.set({completed:!0,error:{message:"OIDC client not configured",troubleshoot:null},loading:!1,successful:!1,response:null}),sn(t);const i=sn(e);if(!i)return t.set({completed:!0,error:{message:"OIDC client not ready",troubleshoot:null},loading:!1,successful:!1,response:null}),sn(t);if("error"in i)return t.set({completed:!0,error:{message:String(i.error),troubleshoot:null},loading:!1,successful:!1,response:null}),sn(t);const l=sn(t);if(l.loading||l.completed)return l;t.set({..._f,loading:!0});try{const d=await i.user.info();if("error"in d){const g=typeof d.message=="string"?d.message:String(d.error),p=typeof d.code=="number"?d.code:null;return t.set({completed:!0,error:{code:p,message:g,troubleshoot:null},loading:!1,successful:!1,response:null}),sn(t)}t.set({completed:!0,error:null,loading:!1,successful:!0,response:d})}catch(d){const g=d instanceof Error?d.message:"Unknown user info error";t.set({completed:!0,error:{message:g,troubleshoot:null},loading:!1,successful:!1,response:null})}return sn(t)}function r(){t.set(_f)}return{get:n,reset:r,subscribe:t.subscribe}}const Hc=Qn({journey:se().optional(),match:se().regex(/^(#\/service|\?journey)/,{message:"HREF string must start with `?journey` or `#/service`"}).array()}).optional(),zv=Qn({forgotPassword:Hc,forgotUsername:Hc,login:Hc,register:Hc}),jc={forgotPassword:{journey:"ResetPassword",match:["#/service/ResetPassword","?journey=ResetPassword"]},forgotUsername:{journey:"ForgottenUsername",match:["#/service/ForgottenUsername","?journey=ForgottenUsername"]},login:{journey:"Login",match:["#/service/Login","?journey","?journey=Login"]},register:{journey:"Registration",match:["#/service/Registration","?journey=Registration"]}};zv.parse(jc);const Vv=Object.keys(jc).map(e=>({...jc[e],key:e})),al=or(Vv);function WA(e){if(e){zv.parse(e);const t={...jc,...e},n=Object.keys(t);al.set(n.map(r=>({...t[r],key:r})))}else al.set(Vv);return al}function KA(e){if(!e.authorization_endpoint)return{error:"Well-known configuration conversion failed",message:"Well-known response is missing authorization_endpoint",type:"wellknown_error"};const n=new URL(e.authorization_endpoint).origin,i=new URL(e.issuer).pathname;if(!i.includes("/oauth2"))return{error:"Well-known configuration conversion failed",message:`Journey-client requires a ForgeRock AM issuer containing "/oauth2" in the path. Received issuer: ${e.issuer}. For PingOne or other OIDC providers, use davinci-client or oidc-client instead.`,type:"wellknown_error"};const l=i.replace("/oauth2","/json"),d=`${l}/authenticate`,g=`${l}/sessions/`;return{baseUrl:n,paths:{authenticate:d,sessions:g}}}const wf=es({name:"config",initialState:{serverConfig:{baseUrl:"",paths:{authenticate:"",sessions:""}}},reducers:{set(e,t){const n=KA(t.payload.wellknownResponse);"error"in n?e.error=n:(e.serverConfig=n,e.error=void 0)}}});function Hv(e,t,n){const i={...n,...t?{authIndexType:"service",authIndexValue:t}:void 0},l=Object.keys(i).length>0?`?${mm(i)}`:"",d=hm({endpoint:"authenticate",customPaths:e.paths});return pm(e.baseUrl,`${d}${l}`)}function $A(e,t){const n={...t},r=Object.keys(n).length>0?`?${mm(n)}`:"",i=hm({endpoint:"sessions",customPaths:e.paths});return pm(e.baseUrl,`${i}${r}`)}function jv(e){return{body:e?JSON.stringify(e.payload):void 0,credentials:"include",headers:new Headers({}),method:"POST"}}function ZA(){return{credentials:"include",headers:new Headers({}),method:"POST"}}const Vs=zc({reducerPath:"journeyReducer",baseQuery:Lc({baseUrl:"/",prepareHeaders:e=>(e.set("Accept","application/json"),e.set("Accept-API-Version","protocol=1.0,resource=2.1"),e.set("Content-Type","application/json"),e.set("X-Requested-With",iC),e)}),endpoints:e=>({start:e.mutation({queryFn:async(t,n,r,i)=>{const l=n.getState(),{serverConfig:d}=l.config;if(!d)throw new Error("Server configuration is missing.");const g=(t==null?void 0:t.query)||{},p=Hv(d,t==null?void 0:t.journey,g),_=jv(),{requestMiddleware:S}=n.extra;return await Mr({..._,url:p},"begin",{type:"service",tree:t==null?void 0:t.journey}).applyMiddleware(S).applyQuery(async h=>await i(h,n,n.extra))}}),next:e.mutation({queryFn:async({step:t,options:n},r,i,l)=>{const d=r.getState(),{serverConfig:g}=d.config;if(!g)throw new Error("Server configuration is missing.");const p=(n==null?void 0:n.query)||{},_=Hv(g,void 0,p),S=jv(t),{requestMiddleware:k}=r.extra;return await Mr({...S,url:_},"continue").applyMiddleware(k).applyQuery(async y=>await l(y,r,r.extra))}}),terminate:e.mutation({queryFn:async(t,n,r,i)=>{const l=n.getState(),{serverConfig:d}=l.config;if(!d)throw new Error("Server configuration is missing.");const g={...t==null?void 0:t.query,_action:"logout"},p=$A(d,g),_=ZA(),{requestMiddleware:S}=n.extra;return await Mr({..._,url:p},"terminate").applyMiddleware(S).applyQuery(async h=>await i(h,n,n.extra))}})})}),qc=zc({reducerPath:"wellknown",baseQuery:Lc(),endpoints:e=>({configuration:e.query({queryFn:async(t,n,r,i)=>await bm(t).applyQuery(async d=>await i(d))})})}),YA=Hd({[Vs.reducerPath]:Vs.reducer,[wf.name]:wf.reducer,[qc.reducerPath]:qc.reducer}),JA=({requestMiddleware:e,logger:t})=>Xm({reducer:YA,middleware:n=>n({serializableCheck:!0,thunk:{extraArgument:{requestMiddleware:e,logger:t}}}).concat(Vs.middleware).concat(qc.middleware)});function XA(e){return e.realm}function QA(e){return e.tokenId}function eT(e){return e.successUrl}function tT(e){return{payload:e,type:qr.LoginSuccess,getRealm:()=>XA(e),getSessionToken:()=>QA(e),getSuccessUrl:()=>eT(e)}}const qv={[nn.CannotContainCharacters]:(e,t)=>{const n=da(t,"forbiddenChars","");return`${e} must not contain following characters: "${n}"`},[nn.CannotContainDuplicates]:(e,t)=>{const n=da(t,"duplicateValue","");return`${e} must not contain duplicates: "${n}"`},[nn.CannotContainOthers]:(e,t)=>{const n=da(t,"disallowedFields","");return`${e} must not contain: "${n}"`},[nn.LeastCapitalLetters]:(e,t)=>{const n=da(t,"numCaps",0);return`${e} must contain at least ${n} capital ${cc(n,"letter")}`},[nn.LeastNumbers]:(e,t)=>{const n=da(t,"numNums",0);return`${e} must contain at least ${n} numeric ${cc(n,"value")}`},[nn.MatchRegexp]:e=>`${e} has failed the "MATCH_REGEXP" policy`,[nn.MaximumLength]:(e,t)=>{const n=da(t,"maxLength",0);return`${e} must be at most ${n} ${cc(n,"character")}`},[nn.MaximumNumber]:e=>`${e} has failed the "MAXIMUM_NUMBER_VALUE" policy`,[nn.MinimumLength]:(e,t)=>{const n=da(t,"minLength",0);return`${e} must be at least ${n} ${cc(n,"character")}`},[nn.MinimumNumber]:e=>`${e} has failed the "MINIMUM_NUMBER_VALUE" policy`,[nn.Required]:e=>`${e} is required`,[nn.Unique]:e=>`${e} must be unique`,[nn.UnknownPolicy]:(e,t)=>{const n=da(t,"policyRequirement","Unknown");return`${e}: Unknown policy requirement "${n}"`},[nn.ValidArrayItems]:e=>`${e} has failed the "VALID_ARRAY_ITEMS" policy`,[nn.ValidDate]:e=>`${e} has an invalid date`,[nn.ValidEmailAddress]:e=>`${e} has an invalid email address`,[nn.ValidNameFormat]:e=>`${e} has an invalid name format`,[nn.ValidNumber]:e=>`${e} has an invalid number`,[nn.ValidPhoneFormat]:e=>`${e} has an invalid phone number`,[nn.ValidQueryFilter]:e=>`${e} has failed the "VALID_QUERY_FILTER" policy`,[nn.ValidType]:e=>`${e} has failed the "VALID_TYPE" policy`};class nT{static parseErrors(t,n){const r=[];return t.detail&&t.detail.failedPolicyRequirements&&t.detail.failedPolicyRequirements.map(i=>{r.push.apply(r,[{detail:i,messages:this.parseFailedPolicyRequirement(i,n)}])}),r}static parseFailedPolicyRequirement(t,n){const r=[];return t.policyRequirements.map(i=>{r.push(this.parsePolicyRequirement(t.property,i,n))}),r}static parsePolicyRequirement(t,n,r={}){let i;if(typeof n=="string")try{const _=JSON.parse(n);i=typeof _=="string"?{policyRequirement:_}:_}catch{i={policyRequirement:n}}else i={...n};const l=i.policyRequirement,d=r[l]||qv[l]||qv[nn.UnknownPolicy],g=i.params?{...i.params,policyRequirement:l}:{policyRequirement:l};return d(t,g)}}function rT(e){return Number(e.code)}function iT(e){return e.detail}function aT(e){return e.message}function sT(e,t){return nT.parseErrors(e,t)}function oT(e){return e.reason}function lT(e){return{payload:e,type:qr.LoginFailure,getCode:()=>rT(e),getDetail:()=>iT(e),getMessage:()=>aT(e),getProcessedMessage:t=>sT(e,t),getReason:()=>oT(e)}}class fn{constructor(t){Je(this,"payload");this.payload=t}getType(){return this.payload.type}getInputValue(t=0){return this.getArrayElement(this.payload.input,t).value}setInputValue(t,n=0){this.getArrayElement(this.payload.input,n).value=t}getOutputValue(t=0){return this.getArrayElement(this.payload.output,t).value}getOutputByName(t,n){const r=this.payload.output.find(i=>i.name===t);return r?r.value:n}getArrayElement(t,n=0){if(t===void 0)throw new Error(`No NameValue array was provided to search (selector ${n})`);if(typeof n=="number"){if(n<0||n>t.length-1)throw new Error(`Selector index ${n} is out of range`);return t[n]}if(typeof n=="string"){const r=t.find(i=>i.name===n);if(!r)throw new Error(`Missing callback input entry "${n}"`);return r}if(typeof n=="object"&&n.test&&n.exec){const r=t.find(i=>n.test(i.name));if(!r)throw new Error(`Missing callback input entry "${n}"`);return r}throw new Error("Invalid selector value type")}}class bf extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getName(){return this.getOutputByName("name","")}getPrompt(){return this.getOutputByName("prompt","")}isRequired(){return this.getOutputByName("required",!1)}getFailedPolicies(){const n=this.getOutputByName("failedPolicies",[]);try{return n.map(r=>JSON.parse(r))}catch{throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `AttributeInputCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}setValidateOnly(n){this.setInputValue(n,/validateOnly/)}setValue(n){this.setInputValue(n)}}class cT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}getDefaultChoice(){return this.getOutputByName("defaultChoice",0)}getChoices(){return this.getOutputByName("choices",[])}setChoiceIndex(n){const r=this.getChoices().length;if(n<0||n>r-1)throw new Error(`${n} is out of bounds`);this.setInputValue(n)}setChoiceValue(n){const r=this.getChoices().indexOf(n);if(r===-1)throw new Error(`"${n}" is not a valid choice`);this.setInputValue(r)}}class uT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getDefaultOption(){return Number(this.getOutputByName("defaultOption",0))}getMessageType(){return Number(this.getOutputByName("messageType",0))}getOptions(){return this.getOutputByName("options",[])}getOptionType(){return Number(this.getOutputByName("optionType",0))}getPrompt(){return this.getOutputByName("prompt","")}setOptionIndex(n){const r=this.getOptions();if(!Number.isInteger(n)||n<0||n>=r.length)throw new Error(`"${n}" is not a valid choice (0-${Math.max(0,r.length-1)})`);this.setInputValue(n)}setOptionValue(n){const r=this.getOptions().indexOf(n);if(r===-1)throw new Error(`"${n}" is not a valid choice`);this.setInputValue(r)}}class dT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getMessage(){return this.getOutputByName("message","")}isMetadataRequired(){return this.getOutputByName("metadata",!1)}isLocationRequired(){return this.getOutputByName("location",!1)}setProfile(n){this.setInputValue(JSON.stringify(n))}}class fT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}}class hT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}getPredefinedQuestions(){return this.getOutputByName("predefinedQuestions",[])}isAllowedUserDefinedQuestions(){return this.getOutputByName("allowUserDefinedQuestions",!1)}setQuestion(n){this.setValue("question",n)}setAnswer(n){this.setValue("answer",n)}setValue(n,r){if(!this.payload.input)throw new Error("KBA payload is missing input");const i=this.payload.input.find(l=>l.name.endsWith(n));if(!i)throw new Error(`No input has name ending in "${n}"`);i.value=r}}class gT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getData(){return this.getOutputByName("data",{})}}class pT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}setName(n){this.setInputValue(n)}}class mT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getFailedPolicies(){return this.getOutputByName("failedPolicies",[])}getPolicies(){return this.getOutputByName("policies",[])}getPrompt(){return this.getOutputByName("prompt","")}setPassword(n){this.setInputValue(n)}}class vT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPauseBehavioralData(){return this.getOutputByName("pauseBehavioralData",!1)}setData(n){this.setInputValue(n,/signals/)}setClientError(n){this.setInputValue(n,/clientError/)}}class yT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getConfig(){const n=this.getOutputByName("signalsInitializationOptions",void 0);return n!==null&&typeof n=="object"&&!Array.isArray(n)?n:{envId:this.getOutputByName("envId",""),consoleLogEnabled:this.getOutputByName("consoleLogEnabled",!1),deviceAttributesToIgnore:this.getOutputByName("deviceAttributesToIgnore",[]),customHost:this.getOutputByName("customHost",""),lazyMetadata:this.getOutputByName("lazyMetadata",!1),behavioralDataCollection:this.getOutputByName("behavioralDataCollection",!0),deviceKeyRsyncIntervals:this.getOutputByName("deviceKeyRsyncIntervals",14),enableTrust:this.getOutputByName("enableTrust",!1),disableTags:this.getOutputByName("disableTags",!1),disableHub:this.getOutputByName("disableHub",!1)}}setClientError(n){this.setInputValue(n,/clientError/)}}class _T extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getMessage(){return this.getOutputByName("message","")}getWaitTime(){return Number(this.getOutputByName("waitTime",0))}}class wT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getSiteKey(){return this.getOutputByName("recaptchaSiteKey","")}setResult(n){this.setInputValue(n)}}class bT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getSiteKey(){return this.getOutputByName("recaptchaSiteKey","")}getApiUrl(){return this.getOutputByName("captchaApiUri","")}getElementClass(){return this.getOutputByName("captchaDivClass","")}setResult(n){this.setInputValue(n)}setClientError(n){this.setInputValue(n,"IDToken1clientError")}setPayload(n){this.setInputValue(n,"IDToken1payload")}setAction(n){this.setInputValue(n,"IDToken1action")}}class ST extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getRedirectUrl(){return this.getOutputByName("redirectUrl","")}}class ET extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getProviders(){return this.getOutputByName("providers",[])}setProvider(n){const r=this.getProviders().find(i=>i.provider===n);if(!r)throw new Error(`"${n}" is not a valid choice`);this.setInputValue(r.provider)}}class Gv extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getMessage(){return this.getOutputByName("message","")}getMessageType(){return this.getOutputByName("messageType","")}}class kT extends Gv{constructor(n){super(n);Je(this,"payload");this.payload=n}}class CT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getTerms(){return this.getOutputByName("terms","")}getVersion(){return this.getOutputByName("version","")}getCreateDate(){const n=this.getOutputByName("createDate",""),r=new Date(n);return Number.isNaN(r.getTime())?null:r}setAccepted(n=!0){this.setInputValue(n)}}class IT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}setInput(n){this.setInputValue(n)}}class AT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getFailedPolicies(){const n=this.getOutputByName("failedPolicies",[]);try{return n.map(r=>JSON.parse(r))}catch{throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `ValidatedCreatePasswordCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}getPrompt(){return this.getOutputByName("prompt","")}isRequired(){return this.getOutputByName("required",!1)}setPassword(n){this.setInputValue(n)}setValidateOnly(n){this.setInputValue(n,/validateOnly/)}}class TT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}getFailedPolicies(){const n=this.getOutputByName("failedPolicies",[]);try{return n.map(r=>JSON.parse(r))}catch{throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `ValidatedCreateUsernameCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}isRequired(){return this.getOutputByName("required",!1)}setName(n){this.setInputValue(n)}setValidateOnly(n){this.setInputValue(n,/validateOnly/)}}function Wv(e){switch(e.type){case fe.BooleanAttributeInputCallback:return new bf(e);case fe.ChoiceCallback:return new cT(e);case fe.ConfirmationCallback:return new uT(e);case fe.DeviceProfileCallback:return new dT(e);case fe.HiddenValueCallback:return new fT(e);case fe.KbaCreateCallback:return new hT(e);case fe.MetadataCallback:return new gT(e);case fe.NameCallback:return new pT(e);case fe.NumberAttributeInputCallback:return new bf(e);case fe.PasswordCallback:return new mT(e);case fe.PingOneProtectEvaluationCallback:return new vT(e);case fe.PingOneProtectInitializeCallback:return new yT(e);case fe.PollingWaitCallback:return new _T(e);case fe.ReCaptchaCallback:return new wT(e);case fe.ReCaptchaEnterpriseCallback:return new bT(e);case fe.RedirectCallback:return new ST(e);case fe.SelectIdPCallback:return new ET(e);case fe.StringAttributeInputCallback:return new bf(e);case fe.SuspendedTextOutputCallback:return new kT(e);case fe.TermsAndConditionsCallback:return new CT(e);case fe.TextInputCallback:return new IT(e);case fe.TextOutputCallback:return new Gv(e);case fe.ValidatedCreatePasswordCallback:return new AT(e);case fe.ValidatedCreateUsernameCallback:return new TT(e);default:return new fn(e)}}function Sf(e,t){return e.filter(n=>n.getType()===t)}function OT(e,t){const n=Sf(e,t);if(n.length!==1)throw new Error(`Expected 1 callback of type "${t}", but found ${n.length}`);return n[0]}function PT(e,t,n){const r=Sf(e,t);if(r.length!==1)throw new Error(`Expected 1 callback of type "${t}", but found ${r.length}`);r[0].setInputValue(n)}function RT(e){return e.description}function MT(e){return e.header}function LT(e){return e.stage}function DT(e,t){return e.map(r=>Wv(r)||Wv(r))}function NT(e,t){const n=typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e)),r=n.callbacks?DT(n.callbacks):[];return{payload:n,callbacks:r,type:qr.Step,getCallbackOfType:i=>OT(r,i),getCallbacksOfType:i=>Sf(r,i),setCallbackValue:(i,l)=>PT(r,i,l),getDescription:()=>RT(e),getHeader:()=>MT(e),getStage:()=>LT(e)}}function Ef(e){let t;switch(e.authId?t=qr.Step:e.successUrl?t=qr.LoginSuccess:t=qr.LoginFailure,t){case qr.LoginSuccess:return tT(e);case qr.LoginFailure:return lT(e);case qr.Step:return NT(e);default:return{error:"unknown_step_type",message:"Unable to determine step type from server response",type:"unknown_error"}}}function Kv(e){const t=e.data??(e.error&&"status"in e.error&&typeof e.error.status=="number"&&typeof e.error.data=="object"&&e.error.data!==null?e.error.data:void 0);return e.error&&"error"in e.error?tc({error:"request_failed",message:`Request failed: ${e.error.error}`,type:"unknown_error"}):e.error&&"message"in e.error?tc({error:"request_failed",message:`Request failed: ${e.error.message??"Unknown error"}`,type:"unknown_error"}):e.error&&!t?tc({error:"request_failed",message:"Request failed: Unknown error",type:"unknown_error"}):t?tk(t):tc({error:"no_response_data",message:"No data received from server",type:"unknown_error"})}async function xT({config:e,requestMiddleware:t,logger:n}){var y;const r=Ed({level:(n==null?void 0:n.level)??e.log??"error",custom:n==null?void 0:n.custom}),l=["callbackFactory","clientId","middleware","oauthThreshold","platformHeader","prefix","realmPath","redirectUri","scope","tokenStore","tree","type"].filter(b=>e[b]!==void 0);((y=e.serverConfig)==null?void 0:y.timeout)!==void 0&&l.push("serverConfig.timeout"),l.length>0&&r.warn(`The following configuration properties are not used by journey-client and will be ignored: ${l.join(", ")}`);const d=JA({requestMiddleware:t,logger:r}),{wellknown:g}=e.serverConfig;if(!eC(g)){const b=`Invalid wellknown URL: ${g}. URL must use HTTPS (or HTTP for localhost) and end with /.well-known/openid-configuration.`;throw r.error(b),new Error(b)}const{data:p,error:_}=await d.dispatch(qc.endpoints.configuration.initiate(g));if(_||!p){const b=nC(_),c=`${b.error}: ${b.message}`;throw r.error(c),new Error(c)}d.dispatch(wf.actions.set({wellknownResponse:p}));const S=d.getState().config.error;if(S){const b=`${S.error}: ${S.message}`;throw r.error(b),new Error(b)}const k=Sm({type:"sessionStorage",name:"journey-step"}),h={subscribe:d.subscribe,start:async b=>{const c=await d.dispatch(Vs.endpoints.start.initiate(b));return Kp(Kv(c),{onLeft:u=>u,onRight:u=>Ef(u)})},next:async(b,c)=>{const u=await d.dispatch(Vs.endpoints.next.initiate({step:b,options:c}));return Kp(Kv(u),{onLeft:f=>f,onRight:f=>Ef(f)})},redirect:async b=>{const c=b.getCallbackOfType(fe.RedirectCallback);if(!c)throw new Error("RedirectCallback not found on step");const u=c.getRedirectUrl();if(!u||typeof u!="string")throw new Error("Redirect URL not found on RedirectCallback");const f=await k.set({step:b.payload});xp(f)&&r.warn("Failed to persist step before redirect",f),window.location.assign(u)},resume:async(b,c)=>{const u=new URL(b),f=u.searchParams.get("code"),s=u.searchParams.get("error"),o=u.searchParams.get("errorCode"),a=u.searchParams.get("errorMessage"),m=u.searchParams.get("state"),v=u.searchParams.get("form_post_entry"),w=u.searchParams.get("nonce"),A=u.searchParams.get("RelayState"),E=u.searchParams.get("responsekey"),O=u.searchParams.get("scope"),T=u.searchParams.get("suspendedId"),M=u.searchParams.get("authIndexValue")??void 0;let P;function x(){return f&&m||v||E}function I(V){return typeof V=="object"&&V!==null&&"step"in V&&typeof V.step=="object"}if(x()){const V=await k.get();if(V){if(xp(V))throw new Error(`Error retrieving previous step: ${V.message||V.error}`);I(V)&&(P=Ef(V.step))}if(await k.remove(),!P)throw new Error("Error: previous step information not found in storage for resume operation.")}const D={...c,query:{...f&&{code:f},...s&&{error:s},...o&&{errorCode:o},...a&&{errorMessage:a},...v&&{form_post_entry:v},...w&&{nonce:w},...A&&{RelayState:A},...E&&{responsekey:E},...O&&{scope:O},...m&&{state:m},...T&&{suspendedId:T},...c&&c.query},...((c==null?void 0:c.journey)??M)&&{journey:(c==null?void 0:c.journey)??M}};if(P)return await h.next(P,D);{const V=D;return await h.start(V)}},terminate:async b=>{const{error:c}=await d.dispatch(Vs.endpoints.terminate.initiate(b));if(c)return{error:"terminate_failed",message:"status"in c?`Failed to terminate session: ${c.status}`:"Failed to terminate session",type:"unknown_error"}}};return h}function UT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kf={exports:{}},rn={},Cf={exports:{}},rs={};function $v(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function FT(e,t,n){}function BT(e,t,n){}var zT=/javascript\s*\:/img;function VT(e,t){return zT.test(t)?"":t}rs.whiteList=$v(),rs.getDefaultWhiteList=$v,rs.onAttr=FT,rs.onIgnoreAttr=BT,rs.safeAttrValue=VT;var HT={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},sl=HT;function jT(e,t){e=sl.trimRight(e),e[e.length-1]!==";"&&(e+=";");var n=e.length,r=!1,i=0,l=0,d="";function g(){if(!r){var S=sl.trim(e.slice(i,l)),k=S.indexOf(":");if(k!==-1){var h=sl.trim(S.slice(0,k)),y=sl.trim(S.slice(k+1));if(h){var b=t(i,d.length,h,y,S);b&&(d+=b+"; ")}}}i=l+1}for(;l<n;l++){var p=e[l];if(p==="/"&&e[l+1]==="*"){var _=e.indexOf("*/",l+2);if(_===-1)break;l=_+1,i=l+1,r=!1}else p==="("?r=!0:p===")"?r=!1:p===";"?r||g():p===`
51
- `&&g()}return sl.trim(d)}var qT=jT,Gc=rs,GT=qT;function Zv(e){return e==null}function WT(e){var t={};for(var n in e)t[n]=e[n];return t}function Yv(e){e=WT(e||{}),e.whiteList=e.whiteList||Gc.whiteList,e.onAttr=e.onAttr||Gc.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Gc.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Gc.safeAttrValue,this.options=e}Yv.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,r=n.whiteList,i=n.onAttr,l=n.onIgnoreAttr,d=n.safeAttrValue,g=GT(e,function(p,_,S,k,h){var y=r[S],b=!1;if(y===!0?b=y:typeof y=="function"?b=y(k):y instanceof RegExp&&(b=y.test(k)),b!==!0&&(b=!1),k=d(S,k),!!k){var c={position:_,sourcePosition:p,source:h,isWhite:b};if(b){var u=i(S,k,c);return Zv(u)?S+":"+k:u}else{var u=l(S,k,c);if(!Zv(u))return u}}});return g};var KT=Yv;(function(e,t){var n=rs,r=KT;function i(d,g){var p=new r(g);return p.process(d)}t=e.exports=i,t.FilterCSS=r;for(var l in n)t[l]=n[l];typeof window<"u"&&(window.filterCSS=e.exports)})(Cf,Cf.exports);var If=Cf.exports,Af={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,n=t.exec(e);return n?n.index:-1}},$T=If.FilterCSS,ZT=If.getDefaultWhiteList,Wc=Af;function Jv(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Xv=new $T;function YT(e,t,n){}function JT(e,t,n){}function XT(e,t,n){}function QT(e,t,n){}function Qv(e){return e.replace(t5,"&lt;").replace(n5,"&gt;")}function e5(e,t,n,r){if(n=oy(n),t==="href"||t==="src"){if(n=Wc.trim(n),n==="#")return"#";if(!(n.substr(0,7)==="http://"||n.substr(0,8)==="https://"||n.substr(0,7)==="mailto:"||n.substr(0,4)==="tel:"||n.substr(0,11)==="data:image/"||n.substr(0,6)==="ftp://"||n.substr(0,2)==="./"||n.substr(0,3)==="../"||n[0]==="#"||n[0]==="/"))return""}else if(t==="background"){if(Kc.lastIndex=0,Kc.test(n))return""}else if(t==="style"){if(ey.lastIndex=0,ey.test(n)||(ty.lastIndex=0,ty.test(n)&&(Kc.lastIndex=0,Kc.test(n))))return"";r!==!1&&(r=r||Xv,n=r.process(n))}return n=ly(n),n}var t5=/</g,n5=/>/g,r5=/"/g,i5=/&quot;/g,a5=/&#([a-zA-Z0-9]*);?/gim,s5=/&colon;?/gim,o5=/&newline;?/gim,Kc=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,ey=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,ty=/u\s*r\s*l\s*\(.*/gi;function ny(e){return e.replace(r5,"&quot;")}function ry(e){return e.replace(i5,'"')}function iy(e){return e.replace(a5,function(n,r){return r[0]==="x"||r[0]==="X"?String.fromCharCode(parseInt(r.substr(1),16)):String.fromCharCode(parseInt(r,10))})}function ay(e){return e.replace(s5,":").replace(o5," ")}function sy(e){for(var t="",n=0,r=e.length;n<r;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return Wc.trim(t)}function oy(e){return e=ry(e),e=iy(e),e=ay(e),e=sy(e),e}function ly(e){return e=ny(e),e=Qv(e),e}function l5(){return""}function c5(e,t){typeof t!="function"&&(t=function(){});var n=!Array.isArray(e);function r(d){return n?!0:Wc.indexOf(e,d)!==-1}var i=[],l=!1;return{onIgnoreTag:function(d,g,p){if(r(d))if(p.isClosing){var _="[/removed]",S=p.position+_.length;return i.push([l!==!1?l:p.position,S]),l=!1,_}else return l||(l=p.position),"[removed]";else return t(d,g,p)},remove:function(d){var g="",p=0;return Wc.forEach(i,function(_){g+=d.slice(p,_[0]),p=_[1]}),g+=d.slice(p),g}}}function u5(e){for(var t="",n=0;n<e.length;){var r=e.indexOf("<!--",n);if(r===-1){t+=e.slice(n);break}t+=e.slice(n,r);var i=e.indexOf("-->",r);if(i===-1)break;n=i+3}return t}function d5(e){var t=e.split("");return t=t.filter(function(n){var r=n.charCodeAt(0);return r===127?!1:r<=31?r===10||r===13:!0}),t.join("")}rn.whiteList=Jv(),rn.getDefaultWhiteList=Jv,rn.onTag=YT,rn.onIgnoreTag=JT,rn.onTagAttr=XT,rn.onIgnoreTagAttr=QT,rn.safeAttrValue=e5,rn.escapeHtml=Qv,rn.escapeQuote=ny,rn.unescapeQuote=ry,rn.escapeHtmlEntities=iy,rn.escapeDangerHtml5Entities=ay,rn.clearNonPrintableCharacter=sy,rn.friendlyAttrValue=oy,rn.escapeAttrValue=ly,rn.onIgnoreTagStripAll=l5,rn.StripTagBody=c5,rn.stripCommentTag=u5,rn.stripBlankChar=d5,rn.attributeWrapSign='"',rn.cssFilter=Xv,rn.getDefaultCSSWhiteList=ZT;var $c={},ya=Af;function f5(e){var t=ya.spaceIndex(e),n;return t===-1?n=e.slice(1,-1):n=e.slice(1,t+1),n=ya.trim(n).toLowerCase(),n.slice(0,1)==="/"&&(n=n.slice(1)),n.slice(-1)==="/"&&(n=n.slice(0,-1)),n}function h5(e){return e.slice(0,2)==="</"}function g5(e,t,n){var r="",i=0,l=!1,d=!1,g=0,p=e.length,_="",S="";e:for(g=0;g<p;g++){var k=e.charAt(g);if(l===!1){if(k==="<"){l=g;continue}}else if(d===!1){if(k==="<"){r+=n(e.slice(i,g)),l=g,i=g;continue}if(k===">"||g===p-1){r+=n(e.slice(i,l)),S=e.slice(l,g+1),_=f5(S),r+=t(l,r.length,_,S,h5(S)),i=g+1,l=!1;continue}if(k==='"'||k==="'")for(var h=1,y=e.charAt(g-h);y.trim()===""||y==="=";){if(y==="="){d=k;continue e}y=e.charAt(g-++h)}}else if(k===d){d=!1;continue}}return i<p&&(r+=n(e.substr(i))),r}var p5=/[^a-zA-Z0-9\\_:.-]/gim;function m5(e,t){var n=0,r=0,i=[],l=!1,d=e.length;function g(h,y){if(h=ya.trim(h),h=h.replace(p5,"").toLowerCase(),!(h.length<1)){var b=t(h,y||"");b&&i.push(b)}}for(var p=0;p<d;p++){var _=e.charAt(p),S,k;if(l===!1&&_==="="){l=e.slice(n,p),n=p+1,r=e.charAt(n)==='"'||e.charAt(n)==="'"?n:y5(e,p+1);continue}if(l!==!1&&p===r){if(k=e.indexOf(_,p+1),k===-1)break;S=ya.trim(e.slice(r+1,k)),g(l,S),l=!1,p=k,n=p+1;continue}if(/\s|\n|\t/.test(_))if(e=e.replace(/\s|\n|\t/g," "),l===!1)if(k=v5(e,p),k===-1){S=ya.trim(e.slice(n,p)),g(S),l=!1,n=p+1;continue}else{p=k-1;continue}else if(k=_5(e,p-1),k===-1){S=ya.trim(e.slice(n,p)),S=cy(S),g(l,S),l=!1,n=p+1;continue}else continue}return n<e.length&&(l===!1?g(e.slice(n)):g(l,cy(ya.trim(e.slice(n))))),ya.trim(i.join(" "))}function v5(e,t){for(;t<e.length;t++){var n=e[t];if(n!==" ")return n==="="?t:-1}}function y5(e,t){for(;t<e.length;t++){var n=e[t];if(n!==" ")return n==="'"||n==='"'?t:-1}}function _5(e,t){for(;t>0;t--){var n=e[t];if(n!==" ")return n==="="?t:-1}}function w5(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function cy(e){return w5(e)?e.substr(1,e.length-2):e}$c.parseTag=g5,$c.parseAttr=m5;var b5=If.FilterCSS,Lr=rn,uy=$c,S5=uy.parseTag,E5=uy.parseAttr,Zc=Af;function Yc(e){return e==null}function k5(e){var t=Zc.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=Zc.trim(e.slice(t+1,-1));var n=e[e.length-1]==="/";return n&&(e=Zc.trim(e.slice(0,-1))),{html:e,closing:n}}function C5(e){var t={};for(var n in e)t[n]=e[n];return t}function I5(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map(function(r){return r.toLowerCase()}):t[n.toLowerCase()]=e[n];return t}function dy(e){e=C5(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Lr.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=I5(e.whiteList||e.allowList):e.whiteList=Lr.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":Lr.attributeWrapSign,e.onTag=e.onTag||Lr.onTag,e.onTagAttr=e.onTagAttr||Lr.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Lr.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Lr.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Lr.safeAttrValue,e.escapeHtml=e.escapeHtml||Lr.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new b5(e.css))}dy.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,r=n.whiteList,i=n.onTag,l=n.onIgnoreTag,d=n.onTagAttr,g=n.onIgnoreTagAttr,p=n.safeAttrValue,_=n.escapeHtml,S=t.attributeWrapSign,k=t.cssFilter;n.stripBlankChar&&(e=Lr.stripBlankChar(e)),n.allowCommentTag||(e=Lr.stripCommentTag(e));var h=!1;n.stripIgnoreTagBody&&(h=Lr.StripTagBody(n.stripIgnoreTagBody,l),l=h.onIgnoreTag);var y=S5(e,function(b,c,u,f,s){var o={sourcePosition:b,position:c,isClosing:s,isWhite:Object.prototype.hasOwnProperty.call(r,u)},a=i(u,f,o);if(!Yc(a))return a;if(o.isWhite){if(o.isClosing)return"</"+u+">";var m=k5(f),v=r[u],w=E5(m.html,function(A,E){var O=Zc.indexOf(v,A)!==-1,T=d(u,A,E,O);return Yc(T)?O?(E=p(u,A,E,k),E?A+"="+S+E+S:A):(T=g(u,A,E,O),Yc(T)?void 0:T):T});return f="<"+u,w&&(f+=" "+w),m.closing&&(f+=" /"),f+=">",f}else return a=l(u,f,o),Yc(a)?_(f):a},_);return h&&(y=h.remove(y)),y};var A5=dy;(function(e,t){var n=rn,r=$c,i=A5;function l(g,p){var _=new i(p);return _.process(g)}t=e.exports=l,t.filterXSS=l,t.FilterXSS=i,function(){for(var g in n)t[g]=n[g];for(var p in r)t[p]=r[p]}(),typeof window<"u"&&(window.filterXSS=e.exports);function d(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}d()&&(self.filterXSS=e.exports)})(kf,kf.exports);var T5=kf.exports;const is=UT(T5),O5=vd(se(),se().regex(/^[^<>]*$/)).optional();function Ee(e,t,n){if(!e)throw new Error("No key provided to t()");const r=sn(bd),i=r&&r[e]||"";let l="";if(t?(O5.parse(t),Object.keys(t).map(g=>{const p=new RegExp(`{${g}}`,"g");l=i.replace(p,t[g])})):l=i,!l&&!n){const g=e.replace(/([A-Z])/g," $1");l=g.charAt(0).toUpperCase()+g.slice(1)}else!l&&n&&(l=n);return is(l,{whiteList:{a:["target","href","title","rel","class"],b:[],em:[]},onTagAttr:function(g,p,_){if(g=="a"&&p=="href"&&_.substr(0,1)==="?")return`${p}="${_}"`}})}function fr(e){if(typeof e!="string"&&typeof e!="number")throw new Error("Parameter for textToKey function needs to be of type string or number");if(typeof e=="number"&&(e=String(e)),e.match(/^([A-Z]+)$/))return e.toLowerCase();if(e.match(/^([A-Z]+[\W]*)$/))return e.replace(/\W/g,"").toLowerCase();const t=e.replace(/(\W)([\w\d])/g,(n,r,i)=>r.match(/['’"”]/)&&i.match(/[a-z]/)?i:r.match(/\W/)&&i.match(/[a-z]/)?i.toUpperCase():(r.match(/\W/)&&i.match(/\d/),i)).replace(/(\W)/g,"");return t.charAt(0).toLowerCase()+t.slice(1)}function P5(e){if(typeof document!="object")return null;const t=document.createElement("div");return t.innerHTML=e,t.childNodes.length===0?"":t.childNodes[0].nodeValue}var _a;(function(e){e.Error="ERROR",e.Unsupported="unsupported"})(_a||(_a={}));var jn;(function(e){e.AbortError="AbortError",e.DataError="DataError",e.ConstraintError="ConstraintError",e.EncodingError="EncodingError",e.InvalidError="InvalidError",e.NetworkError="NetworkError",e.NotAllowedError="NotAllowedError",e.NotSupportedError="NotSupportedError",e.SecurityError="SecurityError",e.TimeoutError="TimeoutError",e.UnknownError="UnknownError"})(jn||(jn={}));var tr;(function(e){e[e.None=0]="None",e[e.Authentication=1]="Authentication",e[e.Registration=2]="Registration"})(tr||(tr={}));function Tf(e){const t=new Uint8Array(e);return new TextDecoder().decode(t)}function fy(e){try{return e.split("}").filter(n=>!!n&&n!=="]").map(n=>{const r=R5(n);return{id:new Int8Array(r).buffer,type:"public-key"}})}catch{const t=new Error("Transforming credential object to string failed");throw t.name=jn.EncodingError,t}}function R5(e){const t=/new Int8Array\((.+)\)/.exec(e);return t===null||t.length<2?[]:JSON.parse(t[1])}function M5(e){if(Array.isArray(e))return e;if(typeof e=="string")return e&&e[0]==="["?JSON.parse(e):(e=e.replace(/(\w+):/g,'"$1":'),JSON.parse(`[${e}]`))}function hy(e){return e.includes("rpId")?e.replace(/rpId: "(.+)",/,"$1"):e.replace(/id: "(.+)",/,"$1")}class Kr{static getWebAuthnStepType(t){const n=this.getOutcomeCallback(t),r=this.getMetadataCallback(t),i=this.getTextOutputCallback(t);if(n&&r){const l=r.getOutputValue("data");return l!=null&&l.pubKeyCredParams?tr.Registration:tr.Authentication}return n&&i?i.getMessage().includes("pubKeyCredParams")?tr.Registration:tr.Authentication:tr.None}static async isConditionalMediationSupported(){return typeof PublicKeyCredential<"u"&&typeof PublicKeyCredential.isConditionalMediationAvailable=="function"&&await PublicKeyCredential.isConditionalMediationAvailable()}static async authenticate(t,n){var d;const{hiddenCallback:r,metadataCallback:i,textOutputCallback:l}=this.getCallbacks(t);if(r&&(i||l)){let g,p=null,_;try{let S;if(i){const k=i.getOutputValue("data");if(_=k.mediation,S=this.createAuthenticationPublicKey(k),_==="conditional"){(d=this.conditionalAbortController)==null||d.abort();const h=n??this.createAbortController().signal;if(!await this.isConditionalMediationSupported()){const b=new Error("Conditional mediation was requested, but is not supported by this browser.");throw b.name=jn.NotSupportedError,b}p=await this.getAuthenticationCredential(S,_,h),g=this.getAuthenticationOutcome(p)}else p=await this.getAuthenticationCredential(S,_,n),g=this.getAuthenticationOutcome(p)}else throw new Error("No metadata callback found for WebAuthn authentication. Please disable JavaScript in server node.")}catch(S){throw!(S instanceof Error)||_==="conditional"&&S.name==="AbortError"?S:S.name===jn.NotSupportedError?(r.setInputValue(_a.Unsupported),S):(r.setInputValue(`${_a.Error}::${S.name}:${S.message}`),S)}if(i){const S=i.getOutputValue("data");if(S!=null&&S.supportsJsonResponse&&p&&"authenticatorAttachment"in p)return r.setInputValue(JSON.stringify({authenticatorAttachment:p.authenticatorAttachment,legacyData:g})),t}return r.setInputValue(g),t}else{const g=new Error("Incorrect callbacks for WebAuthn authentication");throw g.name=jn.DataError,r==null||r.setInputValue(`${_a.Error}::${g.name}:${g.message}`),g}}static async register(t,n){const{hiddenCallback:r,metadataCallback:i,textOutputCallback:l}=this.getCallbacks(t);if(r&&(i||l)){let d,g=null;try{let p;if(i){const _=i.getOutputValue("data");p=this.createRegistrationPublicKey(_),g=await this.getRegistrationCredential(p),d=this.getRegistrationOutcome(g)}else throw new Error("No metadata callback found for WebAuthn registration. Please disable JavaScript in server node.")}catch(p){throw p instanceof Error?p.name===jn.NotSupportedError?(r.setInputValue(_a.Unsupported),p):(r.setInputValue(`${_a.Error}::${p.name}:${p.message}`),p):p}if(i){const p=i.getOutputValue("data");if(p!=null&&p.supportsJsonResponse&&g&&"authenticatorAttachment"in g)return r.setInputValue(JSON.stringify({authenticatorAttachment:g.authenticatorAttachment,legacyData:n&&n.length>0?`${d}::${n}`:d})),t}return r.setInputValue(n&&n.length>0?`${d}::${n}`:d),t}else{const d=new Error("Incorrect callbacks for WebAuthn registration");throw d.name=jn.DataError,r==null||r.setInputValue(`${_a.Error}::${d.name}:${d.message}`),d}}static getCallbacks(t){const n=this.getOutcomeCallback(t),r=this.getMetadataCallback(t),i=this.getTextOutputCallback(t),l={hiddenCallback:n};return r?l.metadataCallback=r:i&&(l.textOutputCallback=i),l}static getMetadataCallback(t){return t.getCallbacksOfType(fe.MetadataCallback).find(n=>{const r=n.getOutputByName("data",void 0);return r&&r.hasOwnProperty("relyingPartyId")})}static getOutcomeCallback(t){return t.getCallbacksOfType(fe.HiddenValueCallback).find(n=>n.getOutputByName("id","")==="webAuthnOutcome")}static getTextOutputCallback(t){return t.getCallbacksOfType(fe.TextOutputCallback).find(n=>{const r=n.getOutputByName("message",void 0);return r&&r.includes("webAuthnOutcome")})}static async getAuthenticationCredential(t,n,r){if(!window.PublicKeyCredential){const l=new Error("PublicKeyCredential not supported by this browser");throw l.name=jn.NotSupportedError,l}return await navigator.credentials.get({publicKey:t,...n&&{mediation:n},...r&&{signal:r}})}static getAuthenticationOutcome(t){if(t===null){const n=new Error("No credential generated from authentication");throw n.name=jn.UnknownError,n}try{const n=Tf(t.response.clientDataJSON),r=t.response,i=new Int8Array(r.authenticatorData).toString(),l=new Int8Array(r.signature).toString(),d=Tf(t.response.userHandle);let g=`${n}::${i}::${l}::${t.id}`;return d&&(g=`${g}::${d}`),g}catch{const n=new Error("Transforming credential object to string failed");throw n.name=jn.EncodingError,n}}static async getRegistrationCredential(t){if(!window.PublicKeyCredential){const r=new Error("PublicKeyCredential not supported by this browser");throw r.name=jn.NotSupportedError,r}return await navigator.credentials.create({publicKey:t})}static getRegistrationOutcome(t){if(t===null){const n=new Error("No credential generated from registration");throw n.name=jn.UnknownError,n}try{const n=Tf(t.response.clientDataJSON),r=t.response,i=new Int8Array(r.attestationObject).toString();return`${n}::${i}::${t.id}`}catch{const n=new Error("Transforming credential object to string failed");throw n.name=jn.EncodingError,n}}static createAuthenticationPublicKey(t){const{acceptableCredentials:n,allowCredentials:r,challenge:i,relyingPartyId:l,timeout:d,userVerification:g}=t,p=hy(l),_=fy(r||n||"");return{challenge:Uint8Array.from(atob(i),S=>S.charCodeAt(0)).buffer,timeout:d,..._!=null&&_.length?{allowCredentials:_}:{},...g&&{userVerification:g},...p&&{rpId:p}}}static createRegistrationPublicKey(t){const{pubKeyCredParams:n}=t,r=M5(n);if(!r){const u=new Error("Missing pubKeyCredParams property from registration options");throw u.name=jn.DataError,u}const i=fy(t.excludeCredentials),{attestationPreference:l,authenticatorSelection:d,challenge:g,relyingPartyId:p,relyingPartyName:_,timeout:S,userId:k,userName:h,displayName:y}=t,b=hy(p),c={name:_,...b&&{id:b}};return{attestation:l,authenticatorSelection:JSON.parse(d),challenge:Uint8Array.from(atob(g),u=>u.charCodeAt(0)).buffer,...i.length&&{excludeCredentials:i},pubKeyCredParams:r,rp:c,timeout:S,user:{displayName:y||h,id:Int8Array.from(k.split("").map(u=>u.charCodeAt(0))),name:y||h}}}static createAbortController(){var n;(n=this.conditionalAbortController)==null||n.abort();const t=new AbortController;return this.conditionalAbortController=t,t}}Je(Kr,"conditionalAbortController");function L5(e){if(!e)return!1;const t=e.getCallbacksOfType(fe.NameCallback).length>0,n=Kr.getMetadataCallback(e),r=Kr.getOutcomeCallback(e);return!t||!n||!r?!1:Kr.getWebAuthnStepType(e)===tr.Authentication}function gy(e){const t=e==null?void 0:e.getCallbacksOfType(fe.NameCallback)[0],n=t==null?void 0:t.getOutputByName("autocompleteValues",[]);return Array.isArray(n)?n.filter(r=>typeof r=="string"):[]}function D5(e){var r;if(!e)return!1;const t=gy(e);if(!t.includes("username")||!t.includes("webauthn"))return!1;const n=(r=Kr.getMetadataCallback(e))==null?void 0:r.getOutputByName("data",{});return(n==null?void 0:n.mediation)==="conditional"}const N5=[fe.ConfirmationCallback,fe.DeviceProfileCallback,fe.PollingWaitCallback,fe.SelectIdPCallback,fe.PingOneProtectInitializeCallback,fe.PingOneProtectEvaluationCallback],x5=[fe.BooleanAttributeInputCallback,fe.ChoiceCallback,fe.ConfirmationCallback,fe.KbaCreateCallback,fe.NameCallback,fe.NumberAttributeInputCallback,fe.PasswordCallback,fe.ReCaptchaCallback,fe.SelectIdPCallback,fe.StringAttributeInputCallback,fe.TermsAndConditionsCallback,fe.TextInputCallback,fe.ValidatedCreatePasswordCallback,fe.ValidatedCreateUsernameCallback],U5={SelectIdPCallback:e=>!!e.getProviders().find(t=>t.provider==="localAuthentication")};function F5(e){return e.getType()===fe.ConfirmationCallback&&e.getOptions().length===1}function B5(e){const t=U5[e.getType()];return t?t(e):!1}function z5(e){return N5.includes(e.getType())}function V5(e,t){return t?!0:!e.filter(r=>r.derived.isUserInputRequired&&!r.derived.isSelfSubmitting).length}function H5(e){return e.getType()===fe.SelectIdPCallback||e.getType()===fe.ConfirmationCallback&&e.getOptions().length===1?!1:x5.includes(e.getType())}function j5(e,t,n){const r=(i,l)=>(l.derived.canForceUserInputOptionality&&t>0&&(i=!0),i);return e.reduce(r,!1)}const q5=new Set(["ReCaptchaCallback","ReCaptchaEnterpriseCallback"]);function py(e,t,n,r){const i={},l=gy(e).join(" ")||void 0;return e==null?void 0:e.callbacks.map((d,g)=>{const p=d.getType();let _,S;if(i[p]?i[p]=i[p]+1:i[p]=1,n&&n[p]&&(_=n[p][i[p]-1]),q5.has(p)){const k=r==null?void 0:r.captcha,h=r==null?void 0:r.recaptchaAction;(k||h)&&(S={...k,...h&&{recaptchaAction:h}})}return{derived:{canForceUserInputOptionality:B5(d),isFirstInvalidInput:t(d),isReadyForSubmission:F5(d),isSelfSubmitting:z5(d),isUserInputRequired:H5(d),autocompleteValues:l},idx:g,..._&&{platform:{..._}},...S&&{initOptions:S}}})}function my(e,t,n){const r=e.filter(d=>!!d.derived.isUserInputRequired).length,i=j5(e,r);let l;return t&&(l=Object.keys(t).reduce((d,g)=>(typeof t[g]!="object"&&(d[g]=t[g]),d),{})),{derived:{isStepSelfSubmittable:()=>V5(e,i),isUserInputOptional:i,numOfCallbacks:e.length,numOfSelfSubmittableCbs:e.filter(d=>!!d.derived.isSelfSubmitting).length,numOfUserInputCbs:r},...l&&{platform:{...l}},...n&&{platform:{stageName:n}}}}const vy="110",G5="constraint violation";function as(e){if(!e)return"";if(e.toLocaleLowerCase().includes("constraint violation"))return console.error("Delta Sierra error has occurred. Please communicate this to your system administrator."),e.toLocaleLowerCase().includes("password")?"constraintViolationForPassword":"constraintViolationForValue";const t=(i,l)=>`${l.toLowerCase()}`;return e.replace(/^([A-Z])/g,t).replace(/\s([a-z])/g,(i,l)=>`${l.toUpperCase()}`).replace(/\W/g,"")}function yy(){let e=!1;return function(n){return n.getOutputByName("failedPolicies",[]).length&&!e?(e=!0,!0):!1}}function Of(e){return e.getCallbacksOfType(fe.RedirectCallback).length>0}function W5(e,t,n,r){var d,g,p;if(!Array.isArray(t)||!n||!("type"in n)||n.type!=="Step"||r!==1)return!1;const i=((d=e.payload)==null?void 0:d.detail)??null,l=((p=(g=e.payload)==null?void 0:g.message)==null?void 0:p.toLowerCase())??null;return!!((i==null?void 0:i.errorCode)===vy||l!=null&&l.includes(G5))}const K5=se({invalid_type_error:"`serverConfig.wellknown` must be a URL string (this is generated by the Zod library).",required_error:"Setting the `serverConfig.wellknown` is required (this is generated by the Zod library)."}).url({message:"`serverConfig.wellknown` must be a full URL (this is generated by the Zod library)."}),$5=Qn({serverConfig:Qn({wellknown:K5}).strict()}).strict();let wa,ol;function Z5(e){if(e===void 0)return wa;const t=$5.parse(e),n=t.serverConfig.wellknown!==(wa==null?void 0:wa.serverConfig.wellknown);return wa=t,n&&(ol=void 0),wa}async function ss(){if(!wa)throw new Error("Journey Client is not configured. Call setJourneyClientConfig() first.");return ol||(ol=xT({config:wa}).catch(e=>{throw ol=void 0,e})),await ol}function Y5(){const{update:e,set:t,subscribe:n}=or([]);return ll={latest:async()=>new Promise(r=>{n(i=>{const l=i[i.length-1];r(l)})()}),pop:async()=>new Promise(r=>{e(i=>{let l;return i.length?l=i.slice(0,-1):l=i,r([...l]),l})}),push:async r=>new Promise(i=>{e(l=>{var g;let d;return l.length?r&&(r==null?void 0:r.journey)!==((g=l[l.length-1])==null?void 0:g.journey)?d=[...l,r]:d=l:d=r?[r]:l,i([...d]),d})}),reset:()=>{t([])},subscribe:n},ll}const gi=or({completed:!1,error:null,loading:!1,metadata:null,step:null,successful:!1,response:null});function J5(e,t){Z5(e);const n=Y5();let r=0,i=null;async function l(c,u){i=u??(c==null?void 0:c.journey)??null,gi.update(s=>({...s,completed:!1,error:null,loading:!0,step:null,successful:!1,response:null})),c&&await n.push(c);let f;try{f=await(await ss()).start(c)}catch(s){console.error(`Start request | ${s}`),f=b(s)}await h(f)}async function d(c,u){const f=c.callbacks,s=c.payload;gi.update(a=>({...a,completed:!1,error:null,loading:!0,step:c,successful:!1,response:null}));let o;try{o=await(await ss()).next(c,u)}catch(a){console.error(`Next step request | ${a}`),o=b(a)}await h(o,{prevStep:c,previousCallbacks:f,previousPayload:s,nextOptions:u})}async function g(c,u){gi.update(s=>({...s,completed:!1,error:null,loading:!0,step:s.step??null,successful:!1,response:null}));let f;try{const s=await ss(),o=new URL(c).searchParams.get("journey"),a=o?{...u,journey:o}:u;f=await s.resume(c,a)}catch(s){console.error(`Resume request | ${s}`),f=b(s)}await h(f)}async function p(c){k(),await n.push(c),await l(c)}async function _(){k();const c=await n.pop(),u=c[c.length-1];await l(u)}async function S(c){if(Of(c))try{await(await ss()).redirect(c)}catch(u){console.error(`Redirect request | ${u}`)}}function k(){gi.set({completed:!1,error:null,loading:!1,metadata:null,step:null,successful:!1,response:null})}async function h(c,u){var f;if(c.type==="Step"){const s=c,o=s.getStage();let a=null,m=null;if(o&&o.includes("{"))try{a=JSON.parse(o)}catch{console.warn("Stage attribute value was not parsable")}else o&&(m=o);const v=py(s,yy(),a,{...t,recaptchaAction:i}),w=my(v,a,m);r=r+1,gi.update(A=>({...A,completed:!1,error:null,loading:!1,metadata:{callbacks:v,step:w},step:s,successful:!1,response:null}))}else if(c.type==="LoginSuccess")n.reset(),gi.update(s=>({...s,completed:!0,error:null,loading:!1,metadata:null,step:null,successful:!0,response:c.payload}));else if(c.type==="LoginFailure"){const s=c,o=P5(((f=s.payload)==null?void 0:f.message)||"Unknown login error");await y(o,u,s)}else{const s=c,o=s.message??s.error??Ee("unknownNetworkError");await y(o,u)}}async function y(c,u,f){let s=null;try{const o=await n.latest(),a=await ss();if(s=await a.start(o),f&&s.type==="Step"&&W5(f,u==null?void 0:u.previousCallbacks,s,r)){const m=s;m.callbacks=u==null?void 0:u.previousCallbacks,m.payload={...u==null?void 0:u.previousPayload,authId:m.payload.authId};const v=f.payload.detail;(v==null?void 0:v.errorCode)===vy&&(s=await a.next(m,u==null?void 0:u.nextOptions))}}catch(o){console.error(`Restart failed step request | ${o}`),s=b(o)}if(s.type==="Step"){const o=s,a=o.getStage();let m=null,v=null;if(a&&a.includes("{"))try{m=JSON.parse(a)}catch{console.warn("Stage attribute value was not parsable")}else a&&(v=a);const w=py(o,yy(),m,{...t,recaptchaAction:i}),A=my(w,m,v);gi.update(E=>{var O,T,M;return{...E,completed:!1,error:{code:(f==null?void 0:f.getCode())??null,message:c,stage:((T=(O=u==null?void 0:u.prevStep)==null?void 0:O.payload)==null?void 0:T.stage)??null,troubleshoot:null,detail:((M=f==null?void 0:f.payload)==null?void 0:M.detail)??null},loading:!1,metadata:{callbacks:w,step:A},step:o,successful:!1,response:null}});return}else if(s.type==="LoginSuccess"){gi.update(o=>({...o,completed:!0,error:null,loading:!1,metadata:null,step:null,successful:!0,response:s.payload}));return}else gi.update(o=>{var a,m,v;return{...o,completed:!0,error:{code:(f==null?void 0:f.getCode())??null,message:c,stage:((m=(a=u==null?void 0:u.prevStep)==null?void 0:a.payload)==null?void 0:m.stage)??null,troubleshoot:null,detail:((v=f==null?void 0:f.payload)==null?void 0:v.detail)??null},loading:!1,metadata:null,step:null,successful:!1,response:s.type==="LoginFailure"?s.payload:null}})}function b(c){return{error:"unknown_error",message:c instanceof Error?c.message:Ee("unknownNetworkError"),type:"unknown_error"}}return{next:d,pop:_,push:p,reset:k,resume:g,start:l,redirect:S,subscribe:gi.subscribe}}let ll;function X5(e){let t,n,r,i;function l(){return{journeyStore:t,oauthStore:n,userStore:r}}function d(){t.reset(),n.reset(),r.reset()}async function g(S){const k=S==null?void 0:S.wellknown;if(!k)throw new Error("wellknown url is required to configure the widget");if(t=J5({serverConfig:{wellknown:k}},{...S.captcha&&{captcha:kE.parse(S.captcha)}}),await ss(),S.oidcClient){i=RA({...S.oidcClient,serverConfig:{wellknown:k}});const h=await i.getClient();if("error"in h)throw new Error(`Failed to construct the OIDC client: ${String(h.error)}`)}n=RE(i),r=GA(i),IE(S.content),WA(S.journeys),CE(S.links),qA(S.style)}const p=S=>{(!t||!n||!r)&&xl();const k=(S==null?void 0:S.oauth)??!0,h=(S==null?void 0:S.user)??!0,{subscribe:y}=Rg([t,n,r],([f,s,o],a)=>{a({journey:f,oauth:s,user:o}),(s.error||o.error)&&b==="modal"&&e.close({reason:"auto"}),f.successful&&s.successful&&o.completed?b==="modal"&&e.close({reason:"auto"}):f.successful&&s.successful?h&&o.loading===!1&&o.completed===!1?r.get():h||b==="modal"&&e.close({reason:"auto"}):f.successful&&(k&&s.loading===!1&&s.completed===!1?n.get():k||b==="modal"&&e.close({reason:"auto"}))});let b=null;function c(f){return u(f)}function u(f){return n.reset(),r.reset(),b=sn(Eo).type,f!=null&&f.resumeUrl?t.resume(f.resumeUrl):t.start(f!=null&&f.journey?{journey:f.journey,...f.query&&{query:f.query}}:void 0,f==null?void 0:f.recaptchaAction),new Promise((s,o)=>{const a=y(m=>{(m.oauth.error||m.user.error)&&(o(m),a()),m.journey.successful&&m.oauth.successful&&m.user.completed?(s(m),a()):m.journey.successful&&m.oauth.successful?h||(s(m),a()):m.journey.successful&&(k||(s(m),a()))})})}return{change:c,start:u,subscribe:y}},_={info(){(!t||!n||!r)&&xl();async function S(){const k=await r.get();return k.error?Promise.reject(k):k}return{get:S,subscribe:r.subscribe}},async logout(){(!t||!n||!r)&&xl();try{await(await ss()).terminate();const k=i?sn(i):null;k&&!("error"in k)&&await k.user.logout(),d()}catch(S){throw d(),S}},tokens(){(!t||!n||!r)&&xl();async function S(k){const h=await n.get(k);return h.error?Promise.reject(h):h}return{get:S,subscribe:n.subscribe}}};return{component:e,configure:g,getStores:l,journey:p,protect:{start:va.start,getData:va.getData,pauseBehavioralData:va.pauseBehavioralData,resumeBehavioralData:va.resumeBehavioralData},user:_}}function dt(e,t){if(new.target)return Ge({component:dt,...e});He(t,!1);let n=z(t,"html",12,!1),r=z(t,"key",12),i=z(t,"values",12,void 0),l=re();vt(()=>(G(r()),G(i())),()=>{Y(l,Ee(r(),i()))}),Tt();var d={get html(){return n()},set html(k){n(k),B()},get key(){return r()},set key(k){r(k),B()},get values(){return i()},set values(k){i(k),B()},$set:Ke,$on:(k,h)=>We(t,k,h)};ut();var g=mt(),p=qe(g);{var _=k=>{var h=mt(),y=qe(h);xt(y,t,"default",{},b=>{var c=mt(),u=qe(c);Ll(u,()=>C(l)),Q(b,c)}),Q(k,h)},S=k=>{var h=mt(),y=qe(h);xt(y,t,"default",{},b=>{var c=Vt();Pe(()=>wt(c,C(l))),Q(b,c)}),Q(k,h)};Ze(p,k=>{n()?k(_):k(S,-1)})}return Q(e,g),je(d)}function hr(e){return`url("${e.replace(/"/g,"%22")}")`}function Pf(e){let t=e.startsWith("#")?e.slice(1):e;if(/^[0-9a-fA-F]{8}$/.test(t)&&(t=t.slice(0,6)),!/^[0-9a-fA-F]{6}$/.test(t))throw new Error(`Invalid hex color: "${e}"`);const n=parseInt(t.slice(0,2),16)/255,r=parseInt(t.slice(2,4),16)/255,i=parseInt(t.slice(4,6),16)/255,l=Math.max(n,r,i),d=Math.min(n,r,i),g=l-d,p=(l+d)/2;let _=0;g!==0&&(l===n?_=(r-i)/g%6:l===r?_=(i-n)/g+2:_=(n-r)/g+4,_=Math.round(_*600)/10,_<0&&(_+=360));const S=g===0?0:Math.round(g/(1-Math.abs(2*p-1))*1e3)/10,k=Math.round(p*1e3)/10;return{hs:`${_}, ${S}%`,l:`${k}%`}}function Q5(e){const t=[],n=(d,g)=>{t.push([d,g])},r=(d,g,p)=>{try{const{hs:_,l:S}=Pf(p);t.push([d,_],[g,S])}catch{}},i=(d,g)=>{try{const{hs:p,l:_}=Pf(g);n(d,`hsl(${p}, ${_})`)}catch{}},l=(d,g)=>{try{const{hs:p,l:_}=Pf(g);n(`${d}-hs`,p),n(`${d}-l`,_),n(d,`hsl(var(${d}-hs), var(${d}-l))`)}catch{}};if(e.primaryColor&&(r("--tw-colors-primary-dark-hs","--tw-colors-primary-dark-l",e.primaryColor),r("--tw-colors-primary-light-hs","--tw-colors-primary-light-l",e.primaryColor)),e.primaryOffColor&&r("--tw-colors-primary-off-hs","--tw-colors-primary-off-l",e.primaryOffColor),e.secondaryColor&&(r("--tw-colors-secondary-dark-hs","--tw-colors-secondary-dark-l",e.secondaryColor),r("--tw-colors-secondary-default-hs","--tw-colors-secondary-default-l",e.secondaryColor),r("--tw-colors-secondary-light-hs","--tw-colors-secondary-light-l",e.secondaryColor)),e.backgroundColor&&(r("--tw-colors-background-dark-hs","--tw-colors-background-dark-l",e.backgroundColor),r("--tw-colors-background-light-hs","--tw-colors-background-light-l",e.backgroundColor),n("--fr-page-bg-color",e.backgroundColor)),e.linkColor&&r("--tw-colors-link-dark-hs","--tw-colors-link-dark-l",e.linkColor),e.linkActiveColor&&r("--tw-colors-link-light-hs","--tw-colors-link-light-l",e.linkActiveColor),e.fontFamily&&n("--fr-font-family",e.fontFamily),e.buttonBorderRadius!==void 0&&n("--fr-button-border-radius",`${e.buttonBorderRadius}px`),e.cardBorderRadius!==void 0&&n("--fr-card-border-radius",`${e.cardBorderRadius}px`),e.cardBgColor&&n("--fr-card-bg-color",e.cardBgColor),e.inputBgColor&&n("--fr-input-bg-color",e.inputBgColor),e.inputBorderColor&&(n("--fr-input-border",`1px solid ${e.inputBorderColor}`),n("--fr-input-border-color-value",e.inputBorderColor)),e.inputLabelColor&&n("--fr-input-label-color",e.inputLabelColor),e.selectAccentColor&&n("--fr-select-accent-color",e.selectAccentColor),e.selectHoverBgColor&&n("--fr-select-hover-bg-color",e.selectHoverBgColor),e.inputFocusRingColor&&i("--fr-focus-ring-color",e.inputFocusRingColor),e.buttonFocusRingColor&&i("--fr-button-focus-ring-color",e.buttonFocusRingColor),e.inputTextColor&&l("--fr-input-text-color",e.inputTextColor),e.cardTextColor&&l("--fr-card-text-color",e.cardTextColor),e.bodyTextColor&&l("--fr-body-text-color",e.bodyTextColor),e.buttonTextColor&&l("--fr-button-text-color",e.buttonTextColor),e.logo){const d=hr(e.logo);n("--logo-light",d),n("--logo-dark",d)}return t}var e3=kn('<svg viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><path d="M 7 4 C 6.744125 4 6.4879687 4.0974687 6.2929688 4.2929688 L 4.2929688 6.2929688 C 3.9019687 6.6839688 3.9019687 7.3170313 4.2929688 7.7070312 L 11.585938 15 L 4.2929688 22.292969 C 3.9019687 22.683969 3.9019687 23.317031 4.2929688 23.707031 L 6.2929688 25.707031 C 6.6839688 26.098031 7.3170313 26.098031 7.7070312 25.707031 L 15 18.414062 L 22.292969 25.707031 C 22.682969 26.098031 23.317031 26.098031 23.707031 25.707031 L 25.707031 23.707031 C 26.098031 23.316031 26.098031 22.682969 25.707031 22.292969 L 18.414062 15 L 25.707031 7.7070312 C 26.098031 7.3170312 26.098031 6.6829688 25.707031 6.2929688 L 23.707031 4.2929688 C 23.316031 3.9019687 22.682969 3.9019687 22.292969 4.2929688 L 15 11.585938 L 7.7070312 4.2929688 C 7.5115312 4.0974687 7.255875 4 7 4 z"></path><title><!></title></svg>');function Rf(e,t){if(new.target)return Ge({component:Rf,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=e3(),d=pe(de(l)),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var t3=Ce('<div class="tw_dialog-header dark:tw_dialog-header_dark"><div class="tw_dialog-logo dark:tw_dialog-logo_dark"></div> <button class="tw_dialog-x md:tw_dialog-x_medium tw_focusable-element dark:tw_focusable-element_dark" aria-label="Close"><!></button></div>'),n3=Ce('<div class="tw_dialog-logo dark:tw_dialog-logo_dark"></div>'),r3=Ce('<div><button class="tw_dialog-x md:tw_dialog-x_medium tw_focusable-element dark:tw_focusable-element_dark"><!></button> <!></div>'),i3=Ce('<dialog><!> <div class="tw_dialog-body"><!></div></dialog>');function _y(e,t){if(new.target)return Ge({component:_y,...e});He(t,!1);const n=()=>sr(Wr,"$styleStore",r),[r,i]=Or();let l=z(t,"dialogEl",12,null),d=z(t,"dialogId",12),g=z(t,"forceOpen",12,!1),p=z(t,"withHeader",12,!1);function _(s){var m,v,w;function o(){var A,E;(A=l())==null||A.close(),(E=l())==null||E.classList.remove("tw_dialog-closing"),Mg({reason:s})}const a=setTimeout(o,500);(m=l())==null||m.addEventListener("animationstart",()=>{clearTimeout(a)},{once:!0}),(v=l())==null||v.addEventListener("animationend",o,{once:!0}),(w=l())==null||w.classList.add("tw_dialog-closing")}var S={closeDialog:_,get dialogEl(){return l()},set dialogEl(s){l(s),B()},get dialogId(){return d()},set dialogId(s){d(s),B()},get forceOpen(){return g()},set forceOpen(s){g(s),B()},get withHeader(){return p()},set withHeader(s){p(s),B()},$set:Ke,$on:(s,o)=>We(t,s,o)};ut();var k=i3(),h=de(k);{var y=s=>{var o=t3(),a=de(o),m=pe(a,2),v=de(m);Rf(v,{classes:"tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light",children:(w,A)=>{dt(w,{key:"closeModal"})},$$slots:{default:!0}}),ce(m),ce(o),Pe(w=>{Dl(a,w),be(m,"aria-controls",d())},[()=>(G(hr),n(),Z(()=>{var w,A,E,O,T,M,P,x,I,D;return`--logo-dark: ${hr(((A=(w=n())==null?void 0:w.logo)==null?void 0:A.dark)??"")}; --logo-light: ${hr(((O=(E=n())==null?void 0:E.logo)==null?void 0:O.light)??"")}; ${(M=(T=n())==null?void 0:T.logo)!=null&&M.height?`height: ${(P=n())==null?void 0:P.logo.height}px;`:""} ${(I=(x=n())==null?void 0:x.logo)!=null&&I.width?`width: ${(D=n())==null?void 0:D.logo.width}px;`:""}`}))]),mn("click",m,()=>_("user")),Q(s,o)},b=s=>{var o=r3(),a=de(o),m=de(a);Rf(m,{classes:"tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light",children:(A,E)=>{dt(A,{key:"closeModal"})},$$slots:{default:!0}}),ce(a);var v=pe(a,2);{var w=A=>{var E=n3();Pe(O=>Dl(E,O),[()=>(G(hr),n(),Z(()=>{var O,T,M,P;return`--logo-dark: ${hr(((T=(O=n())==null?void 0:O.logo)==null?void 0:T.dark)??"")}; --logo-light: ${hr(((P=(M=n())==null?void 0:M.logo)==null?void 0:P.light)??"")}`}))]),Q(A,E)};Ze(v,A=>{n(),Z(()=>{var E;return(E=n())==null?void 0:E.logo})&&A(w)})}ce(o),Pe(()=>{Ot(o,1,(n(),Z(()=>{var A;return`tw_pt-10 md:tw_pt-10 tw_text-right ${(A=n())!=null&&A.logo?"tw_h-32 md:tw_h-36 tw_pb-6":""}`}))),be(a,"aria-controls",d())}),mn("click",a,()=>_("user")),Q(s,o)};Ze(h,s=>{p()?s(y):s(b,-1)})}var c=pe(h,2),u=de(c);xt(u,t,"default",{},null),ce(c),ce(k),an(k,s=>l(s),()=>l()),Pe(()=>{be(k,"id",d()),Ot(k,1,`tw_dialog-box dark:tw_dialog-box_dark md:tw_dialog-box_medium ${g()?"":"tw_dialog-box_animate"}`),k.open=g()}),Q(e,k),lt(t,"closeDialog",_);var f=je(S);return i(),f}function a3(e,t){if(!(!e||!t))for(const[n,r]of Q5(t))e.style.setProperty(n,r)}var s3=kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"></path><title><!></title></svg>');function wy(e,t){if(new.target)return Ge({component:wy,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=s3(),d=pe(de(l)),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var o3=kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"></path><title><!></title></svg>');function by(e,t){if(new.target)return Ge({component:by,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=o3(),d=pe(de(l)),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var l3=kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"></path><title><!></title></svg>');function Sy(e,t){if(new.target)return Ge({component:Sy,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=l3(),d=pe(de(l)),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var c3=Ce('<div tabindex="-1"><p class="tw_grid tw_grid-cols-[2em_1fr]"><!> <span><!></span></p></div>');function qn(e,t){if(new.target)return Ge({component:qn,...e});He(t,!1);let n=z(t,"id",12),r=z(t,"needsFocus",12,!1),i=z(t,"type",12,""),l=re();function d(...u){return u.reduce((f,s)=>{switch(s){case"error":return`${f} tw_alert-error dark:tw_alert-error_dark`;case"info":return`${f} tw_alert-info dark:tw_alert-info_dark`;case"success":return`${f} tw_alert-success dark:tw_alert-success_dark`;case"warning":return`${f} tw_alert-warning dark:tw_alert-warning_dark`;default:return f}},"")}vt(()=>(G(r()),C(l)),()=>{r()&&C(l)&&C(l).focus()}),Tt();var g={get id(){return n()},set id(u){n(u),B()},get needsFocus(){return r()},set needsFocus(u){r(u),B()},get type(){return i()},set type(u){i(u),B()},$set:Ke,$on:(u,f)=>We(t,u,f)},p=c3(),_=de(p),S=de(_);{var k=u=>{wy(u,{})},h=u=>{Sy(u,{})},y=u=>{by(u,{})};Ze(S,u=>{i()==="error"?u(k):i()==="warning"?u(h,1):u(y,-1)})}var b=pe(S,2),c=de(b);return xt(c,t,"default",{},null),ce(b),ce(_),ce(p),an(p,u=>Y(l,u),()=>C(l)),Pe(u=>{Ot(p,1,u),be(p,"id",n()),be(p,"role",i()==="error"?"alert":"")},[()=>(G(i()),Z(()=>`${d(i())} tw_alert dark:tw_alert_dark tw_input-spacing tw_outline-none`))]),Q(e,p),je(g)}var u3=Ce('<div role="status"><span class="tw_sr-only"><!></span></div> <!>',1);function gr(e,t){if(new.target)return Ge({component:gr,...e});He(t,!1);let n=z(t,"colorClass",12),r=z(t,"layoutClasses",12);var i={get colorClass(){return n()},set colorClass(S){n(S),B()},get layoutClasses(){return r()},set layoutClasses(S){r(S),B()},$set:Ke,$on:(S,k)=>We(t,S,k)},l=u3(),d=qe(l),g=de(d),p=de(g);dt(p,{key:"loading"}),ce(g),ce(d);var _=pe(d,2);return xt(_,t,"default",{},null),Pe(()=>Ot(d,1,`tw_spinner tw_animate-spin tw_border-4 tw_inline-block tw_rounded-full ${n()} ${r()}`)),Q(e,l),je(i)}var d3=Ce("<button><!> <!></button>");function Un(e,t){if(new.target)return Ge({component:Un,...e});He(t,!1);let n=z(t,"busy",12,!1),r=z(t,"classes",12,""),i=z(t,"onClick",12,()=>{}),l=z(t,"style",12,"outline"),d=z(t,"type",12,null),g=z(t,"width",12,"auto");function p(...b){return b.reduce((c,u)=>{switch(u){case"primary":return`${c} tw_button-primary dark:tw_button-primary_dark`;case"secondary":return`${c} tw_button-secondary dark:tw_button-secondary_dark`;case"outline":return`${c} tw_button-outline dark:tw_button-outline_dark`;case"auto":return`${c} tw_w-auto`;case"full":return`${c} tw_w-full`;default:return c}},"")}var _={get busy(){return n()},set busy(b){n(b),B()},get classes(){return r()},set classes(b){r(b),B()},get onClick(){return i()},set onClick(b){i(b),B()},get style(){return l()},set style(b){l(b),B()},get type(){return d()},set type(b){d(b),B()},get width(){return g()},set width(b){g(b),B()},$set:Ke,$on:(b,c)=>We(t,b,c)},S=d3(),k=de(S);{var h=b=>{gr(b,{colorClass:"white",layoutClasses:"tw_h-4 tw_w-4 tw_mr-2"})};Ze(k,b=>{n()&&b(h)})}var y=pe(k,2);return xt(y,t,"default",{},b=>{var c=Vt("Submit");Q(b,c)}),ce(S),Pe(b=>{Ot(S,1,b),be(S,"type",d())},[()=>(G(l()),G(g()),G(r()),Z(()=>`${p(l(),g())} tw_button-base tw_focusable-element dark:tw_focusable-element_dark width-${g()} ${r()}`))]),mn("click",S,function(...b){var c;(c=i())==null||c.apply(this,b)}),Q(e,S),je(_)}function f3(e){let t=null,n=null;async function r(d){var _;if(!d||d.type!=="Step")return;const g=((_=d.payload)==null?void 0:_.authId)??null;if(!g||(n&&t&&g!==t&&i(),t===g)||(t=g,!D5(d)||!await Kr.isConditionalMediationSupported()))return;const p=new AbortController;n=p;try{const S=await Kr.authenticate(d,p.signal);await e.next(S)}catch(S){console.debug("Passkey autofill attempt did not complete",S)}finally{n===p&&(n=null)}}function i(){n==null||n.abort(),n=null}const l=e.subscribe(d=>{r(d==null?void 0:d.step).catch(g=>{console.debug("Passkey autofill update failed",g)})});return{abort:i,destroy(){l(),i()}}}let Ey=class{static isQRCodeStep(t){const n=t.getCallbacksOfType(fe.HiddenValueCallback);return n.length===0?!1:!!this.getQRCodeURICb(n)}static getQRCodeData(t){const n=t.getCallbacksOfType(fe.HiddenValueCallback);if(n.length===0)throw new Error("QR Code step must contain a HiddenValueCallback. Use `QRCode.isQRCodeStep` to guard.");const r=this.getQRCodeURICb(n),i=r?r.getOutputValue("value"):"",l=typeof i=="string"&&i.includes("otpauth://")?"otp":"push",g=t.getCallbacksOfType(fe.TextOutputCallback).find(p=>p.getMessageType()!=="4");return{message:g?g.getMessage():"",use:l,uri:typeof i=="string"?i:""}}static getQRCodeURICb(t){return t.find(n=>{const r=n.getOutputValue("value");return typeof r=="string"?(r==null?void 0:r.includes("otpauth://"))||(r==null?void 0:r.includes("pushauth://")):!1})}};function h3(e){const t=e.match(/\s[\w\W]"([\w]*)\\/g);return Array.isArray(t)&&t.map(r=>{const i=r.match(/"([\w]*)\\/);return Array.isArray(i)?i[1]:""})||[]}function g3(e){var n,r,i;return((i=(r=(n=e==null?void 0:e.match(/<em\s*.*>\s*.*<\/em>/g))==null?void 0:n[0])==null?void 0:r.replace("<em>",""))==null?void 0:i.replace("</em>",""))??"New Security Key"}class Mf{static getDeviceName(t){var r;const n=((r=this.getDisplayCallback(t))==null?void 0:r.getOutputByName("message",""))??"";return g3(n)}static getCodes(t){var r;const n=(r=this.getDisplayCallback(t))==null?void 0:r.getOutputByName("message","");return h3(n||"")}static isDisplayStep(t){return!!this.getDisplayCallback(t)}static getDisplayCallback(t){return t.getCallbacksOfType(fe.TextOutputCallback).find(n=>{const r=n.getOutputByName("message",void 0);return r&&(r.includes("Recovery Codes")||r.includes("recovery codes"))})}}function Jc(e,t){if(new.target)return Ge({component:Jc,...e});He(t,!1);let n=z(t,"html",12,!1),r=z(t,"string",12),i=re();vt(()=>G(r()),()=>{Y(i,is(r()))}),Tt();var l={get html(){return n()},set html(S){n(S),B()},get string(){return r()},set string(S){r(S),B()},$set:Ke,$on:(S,k)=>We(t,S,k)};ut();var d=mt(),g=qe(d);{var p=S=>{var k=mt(),h=qe(k);xt(h,t,"default",{},y=>{var b=mt(),c=qe(b);Ll(c,()=>C(i)),Q(y,b)}),Q(S,k)},_=S=>{var k=mt(),h=qe(k);xt(h,t,"default",{},y=>{var b=Vt();Pe(()=>wt(b,C(i))),Q(y,b)}),Q(S,k)};Ze(g,S=>{n()?S(p):S(_,-1)})}return Q(e,d),je(l)}var p3=kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z"></path></svg>');function ky(e,t){if(new.target)return Ge({component:ky,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},l=p3();return Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var m3=Ce('<form novalidate="" tabindex="-1"><!></form>');function Ni(e,t){if(new.target)return Ge({component:Ni,...e});He(t,!1);let n=z(t,"ariaDescribedBy",12),r=z(t,"formEl",12,null),i=z(t,"id",12,"formId"),l=z(t,"needsFocus",12,!1),d=z(t,"onSubmitWhenValid",12,void 0),g=re(!1);function p(h){const y=h.target;let b=null;Y(g,!1),Array.from(y.children).forEach((c,u)=>{const f=c.querySelectorAll("input, select, textarea");f!=null&&f.length&&Array.from(f).forEach(s=>{const o=s.checkValidity()&&s.dataset.forceValidityFailure!=="true",a=s.getAttribute("aria-describedby")||"",m=document.getElementById(a),v=m==null?void 0:m.querySelector(".__input-message");o?(s.setAttribute("aria-invalid","false"),v==null||v.classList.remove("tw_isInvalid"),v==null||v.classList.add("tw_hidden")):(s.setAttribute("aria-invalid","true"),a&&(v==null||v.classList.add("tw_isInvalid"),v==null||v.classList.remove("tw_hidden")),b===null&&(s.focus(),b=u))})}),b===null&&(Y(g,!0),d()&&d()(h,C(g)))}vt(()=>(G(l()),G(r())),()=>{l()&&r()&&r().focus()}),Tt();var _={get ariaDescribedBy(){return n()},set ariaDescribedBy(h){n(h),B()},get formEl(){return r()},set formEl(h){r(h),B()},get id(){return i()},set id(h){i(h),B()},get needsFocus(){return l()},set needsFocus(h){l(h),B()},get onSubmitWhenValid(){return d()},set onSubmitWhenValid(h){d(h),B()},$set:Ke,$on:(h,y)=>We(t,h,y)};ut();var S=m3(),k=de(S);return xt(k,t,"default",{},null),ce(S),an(S,h=>r(h),()=>r()),Pe(()=>{be(S,"aria-describedby",n()),be(S,"id",i()),Ot(S,1,`tw_form-base ${C(g)?"tw_form-valid":"tw_form-invalid"} tw_outline-none`)}),mn("submit",S,Ml(p)),Q(e,S),je(_)}var v3=Ce("<label><!></label>");function xi(e,t){if(new.target)return Ge({component:xi,...e});He(t,!1);let n=z(t,"key",12),r=z(t,"classes",12,"");var i={get key(){return n()},set key(g){n(g),B()},get classes(){return r()},set classes(g){r(g),B()},$set:Ke,$on:(g,p)=>We(t,g,p)},l=v3(),d=de(l);return xt(d,t,"default",{},null),ce(l),Pe(()=>{be(l,"for",n()),Ot(l,1,`${r()} tw_input-label dark:tw_input-label_dark`)}),Q(e,l),je(i)}var y3=Ce("<p><!></p>");function Ui(e,t){if(new.target)return Ge({component:Ui,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"dirtyMessage",12),i=z(t,"key",12,void 0),l=z(t,"showMessage",12,!0),d=z(t,"type",12,"info"),g=re(is(r()));function p(...y){return y.reduce((b,c)=>{switch(c){case"error":return`${b} tw_input-error-message dark:tw_input-error-message_dark`;default:return`${b} tw_input-info-message dark:tw_input-info-message_dark`}},"")}vt(()=>G(r()),()=>{Y(g,is(r()))}),Tt();var _={get classes(){return n()},set classes(y){n(y),B()},get dirtyMessage(){return r()},set dirtyMessage(y){r(y),B()},get key(){return i()},set key(y){i(y),B()},get showMessage(){return l()},set showMessage(y){l(y),B()},get type(){return d()},set type(y){d(y),B()},$set:Ke,$on:(y,b)=>We(t,y,b)};ut();var S=mt(),k=qe(S);{var h=y=>{var b=y3(),c=de(b);Ll(c,()=>C(g)),ce(b),Pe(u=>{Ot(b,1,u),be(b,"id",`${i()?`${i()}-message`:""}`)},[()=>(G(n()),G(l()),G(d()),Z(()=>`${n()} __input-message ${l()?"":"tw_hidden"} ${p(d())}`))]),Q(y,b)};Ze(k,y=>{r()&&y(h)})}return Q(e,S),je(_)}var _3=Ce('<span class="tw_animated-check dark:tw_animated-check_dark"></span> <!>',1),w3=Ce('<div class="tw_input-spacing"><input class="tw_checkbox-input_animated dark:tw_checkbox-input_animated_dark tw_sr-only" type="checkbox"/> <!> <div class="tw_ml-10"><!></div></div>');function Xc(e,t){if(new.target)return Ge({component:Xc,...e});He(t,!1);let n=z(t,"checkValidity",12,null),r=z(t,"message",12,""),i=z(t,"isFirstInvalidInput",12),l=z(t,"isRequired",12,!1),d=z(t,"isInvalid",12,!1),g=z(t,"key",12),p=z(t,"onChange",12),_=z(t,"showMessage",12,void 0),S=z(t,"value",12),k=re();function h(o){n()&&d(!n()(o)),p()(o)}Vn(()=>{i()&&C(k).focus()});var y={get checkValidity(){return n()},set checkValidity(o){n(o),B()},get message(){return r()},set message(o){r(o),B()},get isFirstInvalidInput(){return i()},set isFirstInvalidInput(o){i(o),B()},get isRequired(){return l()},set isRequired(o){l(o),B()},get isInvalid(){return d()},set isInvalid(o){d(o),B()},get key(){return g()},set key(o){g(o),B()},get onChange(){return p()},set onChange(o){p(o),B()},get showMessage(){return _()},set showMessage(o){_(o),B()},get value(){return S()},set value(o){S(o),B()},$set:Ke,$on:(o,a)=>We(t,o,a)};ut();var b=w3(),c=de(b);Vr(c),an(c,o=>Y(k,o),()=>C(k));var u=pe(c,2);xi(u,{get key(){return g()},classes:"tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",children:(o,a)=>{var m=_3(),v=pe(qe(m),2);xt(v,t,"default",{},null),Q(o,m)},$$slots:{default:!0}});var f=pe(u,2),s=de(f);{let o=me(()=>d()?"error":"info");Ui(s,{get dirtyMessage(){return r()},get showMessage(){return _()},get type(){return C(o)}})}return ce(f),ce(b),Pe(()=>{be(c,"aria-describedby",`${g()}-message`),be(c,"aria-invalid",d()),Nl(c,S()),be(c,"id",g()),c.required=l(),be(f,"id",`${g()}-message`)}),mn("change",c,h),Q(e,b),je(y)}var b3=Ce('<input class="tw_checkbox-input dark:tw_checkbox-input_dark tw_focusable-element dark:tw_focusable-element_dark" type="checkbox"/> <!>',1);function Qc(e,t){if(new.target)return Ge({component:Qc,...e});He(t,!1);let n=z(t,"isFirstInvalidInput",12),r=z(t,"isRequired",12,!1),i=z(t,"isInvalid",12,!1),l=z(t,"key",12),d=z(t,"onChange",12),g=z(t,"value",12),p=re();Vn(()=>{n()&&C(p).focus()});var _={get isFirstInvalidInput(){return n()},set isFirstInvalidInput(y){n(y),B()},get isRequired(){return r()},set isRequired(y){r(y),B()},get isInvalid(){return i()},set isInvalid(y){i(y),B()},get key(){return l()},set key(y){l(y),B()},get onChange(){return d()},set onChange(y){d(y),B()},get value(){return g()},set value(y){g(y),B()},$set:Ke,$on:(y,b)=>We(t,y,b)};ut();var S=b3(),k=qe(S);Vr(k),an(k,y=>Y(p,y),()=>C(p));var h=pe(k,2);return xi(h,{get key(){return l()},children:(y,b)=>{var c=mt(),u=qe(c);xt(u,t,"default",{},null),Q(y,c)},$$slots:{default:!0}}),Pe(()=>{be(k,"aria-describedby",`${l()}-message`),be(k,"aria-invalid",i()),Nl(k,g()),be(k,"id",l()),k.required=r()}),mn("change",k,function(...y){var b;(b=d())==null||b.apply(this,y)}),Q(e,S),je(_)}var S3=Ce('<div class="tw_input-spacing tw_grid tw_grid-cols-[1.5em_1fr]"><!> <span class="tw_col-start-2 tw_row-start-2"><!></span></div>');function eu(e,t){if(new.target)return Ge({component:eu,...e});He(t,!1);let n=z(t,"checkValidity",12,null),r=z(t,"message",12,""),i=z(t,"isFirstInvalidInput",12),l=z(t,"isRequired",12,!1),d=z(t,"isInvalid",12,!1),g=z(t,"key",12),p=z(t,"onChange",12),_=z(t,"showMessage",12,void 0),S=z(t,"value",12);function k(f){n()&&d(!n()(f)),p()(f)}var h={get checkValidity(){return n()},set checkValidity(f){n(f),B()},get message(){return r()},set message(f){r(f),B()},get isFirstInvalidInput(){return i()},set isFirstInvalidInput(f){i(f),B()},get isRequired(){return l()},set isRequired(f){l(f),B()},get isInvalid(){return d()},set isInvalid(f){d(f),B()},get key(){return g()},set key(f){g(f),B()},get onChange(){return p()},set onChange(f){p(f),B()},get showMessage(){return _()},set showMessage(f){_(f),B()},get value(){return S()},set value(f){S(f),B()},$set:Ke,$on:(f,s)=>We(t,f,s)};ut();var y=S3(),b=de(y);Qc(b,{get isFirstInvalidInput(){return i()},get isRequired(){return l()},get isInvalid(){return d()},get key(){return g()},onChange:k,get value(){return S()},children:(f,s)=>{var o=mt(),a=qe(o);xt(a,t,"default",{},null),Q(f,o)},$$slots:{default:!0}});var c=pe(b,2),u=de(c);{let f=me(()=>d()?"error":"info");Ui(u,{get dirtyMessage(){return r()},get showMessage(){return _()},get type(){return C(f)}})}return ce(c),ce(y),Pe(()=>be(c,"id",`${g()}-message`)),Q(e,y),je(h)}function E3(e){const t=e==null?void 0:e.value;if(typeof t!="object")return"text";const n=t==null?void 0:t.policyRequirements;return Array.isArray(n)?n.includes("VALID_EMAIL_ADDRESS_FORMAT")?"email":(n.includes("VALID_USERNAME"),"text"):"text"}function k3(e){if((e==null?void 0:e.policyRequirement)==="DICTIONARY"){const t=e.params,n=(t==null?void 0:t["min-substring-length"])||0,r=[];return t!=null&&t["check-substrings"]&&(t!=null&&t["test-reversed-password"])?r.push({length:n,message:Ee("passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan",{min:String(n)}),rule:"reversibleSubstrings"}):t!=null&&t["test-reversed-password"]?r.push({length:null,message:Ee("passwordCannotContainCommonPasswordsOrBeReversible"),rule:"reversibleSubstrings"}):r.push({length:null,message:Ee("passwordCannotContainCommonPasswords"),rule:"reversibleSubstrings"}),r}else if((e==null?void 0:e.policyRequirement)==="CHARACTER_SET"){const t=e.params;return t==null?void 0:t["character-sets"].map(I3)}else if((e==null?void 0:e.policyRequirement)==="LENGTH_BASED"){const t=e.params,n=(t==null?void 0:t["min-password-length"])||0,r=(t==null?void 0:t["max-password-length"])||null,i=[];return r&&i.push({length:r,message:Ee("exceedsMaximumCharacterLength",{max:String(r)}),rule:"maximumLength"}),n&&i.push({length:n,message:Ee("doesNotMeetMinimumCharacterLength",{min:String(n)}),rule:"minimumLength"}),i}else if((e==null?void 0:e.policyRequirement)==="REPEATED_CHARACTERS"){const t=e.params,n=t["max-consecutive-length"]||0,r=[];return t["case-sensitive-validation"]?r.push({length:n,message:Ee("charactersCannotRepeatMoreThan",{max:String(n)}),rule:"repeatedCharacters"}):r.push({length:n,message:Ee("charactersCannotRepeatMoreThanCaseInsensitive",{max:String(n)}),rule:"repeatedCharactersCaseInsensitive"}),r}else return(e==null?void 0:e.policyRequirement)==="VALID_USERNAME"?[{length:null,message:Ee("chooseDifferentUsername"),rule:"validUsername"}]:(e==null?void 0:e.policyRequirement)==="VALID_EMAIL_ADDRESS_FORMAT"?[{length:null,message:Ee("invalidEmailAddress"),rule:"validEmailAddress"}]:[{length:null,message:Ee("pleaseCheckValue"),rule:"unknown"}]}function C3(e){var t;switch(e==null?void 0:e.policyId){case"at-least-X-capitals":{const n=e==null?void 0:e.params,r=n==null?void 0:n.numCaps;return Ee("minimumNumberOfUppercase",{num:String(r)})}case"at-least-X-numbers":{const n=e==null?void 0:e.params,r=n==null?void 0:n.numNums;return Ee("minimumNumberOfNumbers",{num:String(r)})}case"cannot-contain-characters":{const n=e==null?void 0:e.params;let r="";return typeof n!="object"?"":(Array.isArray(n.forbiddenChars)?r=n.forbiddenChars.reduce((i,l)=>(i=`${i?`${i}, `:`${i}`} ${l}`,i),""):typeof n.forbiddenChars=="string"&&(r=n.forbiddenChars),Ee("fieldCanNotContainFollowingCharacters",{chars:r}))}case"cannot-contain-others":{const n=e==null?void 0:e.params;let r="";return typeof n!="object"?"":(Array.isArray(n.disallowedFields)?r=(t=n.disallowedFields)==null?void 0:t.reduce((i,l)=>(i=`${i?`${i}, `:`${i}`} ${Ee(l)}`,i),""):typeof n.disallowedFields=="string"&&(r=n.disallowedFields),Ee("fieldCanNotContainFollowingValues",{fields:r}))}case"maximum-length":{const n=e==null?void 0:e.params,r=n==null?void 0:n.maxLength;return r>100?"":Ee("notToExceedMaximumCharacterLength",{max:String(r)})}case"minimum-length":{const n=e==null?void 0:e.params,r=n==null?void 0:n.minLength;return r===1?"":Ee("noLessThanMinimumCharacterLength",{min:String(r)})}case"not-empty":return"";case"required":return"";case"valid-username":return"";case"valid-email-address-format":return"";case"valid-type":return"";default:return""}}function ba(e,t){const n=e.getFailedPolicies&&e.getFailedPolicies();return A3(n,t).map(i=>({params:i==null?void 0:i.params,policyRequirement:(i==null?void 0:i.policyRequirement)||"",restructured:k3(i)}))}function Lf(e){if(typeof e!="object"&&!e)return[];const t=e==null?void 0:e.policies;return Array.isArray(t)?t.map(n=>({message:C3(n),...(n==null?void 0:n.params)&&{params:n==null?void 0:n.params},...(n==null?void 0:n.policyId)&&{policyId:n==null?void 0:n.policyId}})).filter(n=>!!n.message):[]}function Df(e){const t=e.getPolicies&&e.getPolicies();let n=!1;return t!=null&&t.policyRequirements?n=t.policyRequirements.includes("REQUIRED"):e.isRequired&&(n=e.isRequired()),n}function I3(e){const t=e.split(":"),n=t[0],r=t[1];return r==="0123456789"?n==="0"?{length:null,message:Ee("shouldContainANumber"),rule:"numbers"}:{length:Number(n),message:Ee("minimumNumberOfNumbers",{num:String(n)}),rule:"numbers"}:r==="ABCDEFGHIJKLMNOPQRSTUVWXYZ"?n==="0"?{length:null,message:Ee("shouldContainAnUppercase"),rule:"uppercase"}:{length:Number(n),message:Ee("minimumNumberOfUppercase",{num:String(n)}),rule:"uppercase"}:r==="abcdefghijklmnopqrstuvwxyz"?n==="0"?{length:null,message:Ee("shouldContainALowercase"),rule:"lowercase"}:{length:Number(n),message:Ee("minimumNumberOfLowercase",{num:String(n)}),rule:"lowercase"}:r.includes("@")||r.includes("!")||r.includes("*")||r.includes("#")?n==="0"?{length:null,message:Ee("shouldContainASymbol"),rule:"symbols"}:{length:Number(n),message:Ee("minimumNumberOfSymbols",{num:String(n)}),rule:"symbols"}:{length:null,message:Ee("pleaseCheckValue"),rule:"unknown"}}function A3(e,t){return e.map(n=>{if(typeof n=="string")try{return JSON.parse(n)}catch{console.error(`Parsing failure for ${t}`)}else return n})}function Cy(e){return(e.getFailedPolicies&&e.getFailedPolicies()).reduce((n,r)=>{switch(r.policyRequirement){default:n=`${n}${Ee("pleaseCheckValue")}`}return n},"")}function Iy(e,t){if(new.target)return Ge({component:Iy,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({}));const g=d().checksAndRadios==="standard"?eu:Xc;let p=re(),_=re(),S=re(),k=re(),h=re();function y(f){i().setInputValue(f.target.checked)}vt(()=>(G(i()),G(l()),Cy),()=>{var f,s,o,a;Y(p,((o=(s=(f=i())==null?void 0:f.payload)==null?void 0:s.input)==null?void 0:o[0].name)||`boolean-attr-${(a=l())==null?void 0:a.idx}`),Y(_,i().getOutputByName("name","")),Y(S,i().getInputValue()),Y(k,i().getPrompt()),Y(h,Cy(i()))}),Tt();var b={stepMetadata:n,selfSubmitFunction:r,get callback(){return i()},set callback(f){i(f),B()},get callbackMetadata(){return l()},set callbackMetadata(f){l(f),B()},get style(){return d()},set style(f){d(f),B()},$set:Ke,$on:(f,s)=>We(t,f,s)};ut();var c=mt(),u=qe(c);return ja(u,i,f=>{{let s=me(()=>(G(l()),Z(()=>{var a;return((a=l())==null?void 0:a.derived.isFirstInvalidInput)||!1}))),o=me(()=>!!C(h));g(f,{get isFirstInvalidInput(){return C(s)},get isInvalid(){return C(o)},get key(){return C(p)},get message(){return C(h)},onChange:y,get value(){return C(S)},children:(a,m)=>{Wt();var v=Vt();Pe(w=>wt(v,w),[()=>(G(Ee),G(fr),C(_),C(k),Z(()=>Ee(fr(C(_)),null,C(k))))]),Q(a,v)},$$slots:{default:!0}})}}),Q(e,c),lt(t,"stepMetadata",n),lt(t,"selfSubmitFunction",r),je(b)}var T3=Ce('<span class="tw_animated-radio dark:tw_animated-radio_dark"></span> ',1),O3=Ce('<div class="tw_input-spacing"><input class="tw_radio-input_animated dark:tw_radio-input_animated_dark tw_sr-only" type="radio"/> <!></div>'),P3=Ce('<fieldset><legend class="tw_input-label dark:tw_input-label_dark tw_font-bold tw_mb-4"> </legend> <div><!> <span class="tw_col-start-2 tw_row-start-2"><!></span></div></fieldset>');function Ay(e,t){if(new.target)return Ge({component:Ay,...e});He(t,!1);let n=z(t,"defaultOption",12,null),r=z(t,"message",12,""),i=z(t,"groupLabel",12,""),l=z(t,"isFirstInvalidInput",12),d=z(t,"isRequired",12,!1),g=z(t,"isInvalid",12,!1),p=z(t,"key",12),_=z(t,"name",12),S=z(t,"onChange",12),k=z(t,"options",12),h=z(t,"showMessage",12,void 0),y=re();Vn(()=>{l()&&C(y).focus()});var b={get defaultOption(){return n()},set defaultOption(v){n(v),B()},get message(){return r()},set message(v){r(v),B()},get groupLabel(){return i()},set groupLabel(v){i(v),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(v){l(v),B()},get isRequired(){return d()},set isRequired(v){d(v),B()},get isInvalid(){return g()},set isInvalid(v){g(v),B()},get key(){return p()},set key(v){p(v),B()},get name(){return _()},set name(v){_(v),B()},get onChange(){return S()},set onChange(v){S(v),B()},get options(){return k()},set options(v){k(v),B()},get showMessage(){return h()},set showMessage(v){h(v),B()},$set:Ke,$on:(v,w)=>We(t,v,w)};ut();var c=P3(),u=de(c),f=de(u,!0);ce(u);var s=pe(u,2),o=de(s);Jn(o,1,k,Yn,(v,w)=>{var A=O3(),E=de(A);Vr(E),an(E,T=>Y(y,T),()=>C(y));var O=pe(E,2);{let T=me(()=>(G(p()),C(w),Z(()=>`${p()}-${C(w).value}`)));xi(O,{get key(){return C(T)},classes:"tw_input-spacing tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",children:(M,P)=>{var x=T3(),I=pe(qe(x));Pe(()=>wt(I,` ${C(w),Z(()=>C(w).text)??""}`)),Q(M,x)},$$slots:{default:!0}})}ce(A),Pe(()=>{Nl(E,(G(n()),C(w),Z(()=>n()===C(w).value))),be(E,"id",(G(p()),C(w),Z(()=>`${p()}-${C(w).value}`))),be(E,"name",_()),E.required=d(),Qu(E,(C(w),Z(()=>C(w).value)))}),mn("change",E,function(...T){var M;(M=S())==null||M.apply(this,T)}),Q(v,A)});var a=pe(o,2),m=de(a);{let v=me(()=>g()?"error":"info");Ui(m,{get dirtyMessage(){return r()},get key(){return p()},get showMessage(){return h()},get type(){return C(v)}})}return ce(a),ce(s),ce(c),Pe(()=>wt(f,i())),Q(e,c),je(b)}var R3=Ce('<input class="tw_checkbox-input dark:tw_checkbox-input_dark tw_focusable-element dark:tw_focusable-element_dark" type="radio"/> <!>',1);function Ty(e,t){if(new.target)return Ge({component:Ty,...e});He(t,!1);let n=z(t,"checked",12,!1),r=z(t,"isFirstInvalidInput",12),i=z(t,"isRequired",12,!1),l=z(t,"key",12),d=z(t,"name",12),g=z(t,"onChange",12),p=z(t,"value",12),_=re();Vn(()=>{r()&&C(_).focus()});var S={get checked(){return n()},set checked(b){n(b),B()},get isFirstInvalidInput(){return r()},set isFirstInvalidInput(b){r(b),B()},get isRequired(){return i()},set isRequired(b){i(b),B()},get key(){return l()},set key(b){l(b),B()},get name(){return d()},set name(b){d(b),B()},get onChange(){return g()},set onChange(b){g(b),B()},get value(){return p()},set value(b){p(b),B()},$set:Ke,$on:(b,c)=>We(t,b,c)};ut();var k=R3(),h=qe(k);Vr(h),an(h,b=>Y(_,b),()=>C(_));var y=pe(h,2);return xi(y,{get key(){return l()},children:(b,c)=>{var u=mt(),f=qe(u);xt(f,t,"default",{},null),Q(b,u)},$$slots:{default:!0}}),Pe(()=>{be(h,"aria-describedby",`${l()}-message`),Nl(h,n()),be(h,"id",l()),be(h,"name",d()),h.required=i(),Qu(h,p())}),mn("change",h,function(...b){var c;(c=g())==null||c.apply(this,b)}),Q(e,k),je(S)}var M3=Ce('<div class="tw_input-spacing tw_grid tw_grid-cols-[1.5em_1fr]"><!></div>'),L3=Ce('<fieldset><legend class="tw_input-label dark:tw_input-label_dark tw_font-bold tw_mb-4"> </legend> <!> <span class="tw_col-start-2 tw_row-start-2"><!></span></fieldset>');function Oy(e,t){if(new.target)return Ge({component:Oy,...e});He(t,!1);let n=z(t,"defaultOption",12,null),r=z(t,"message",12,""),i=z(t,"groupLabel",12,""),l=z(t,"isFirstInvalidInput",12),d=z(t,"isRequired",12,!1),g=z(t,"isInvalid",12,!1),p=z(t,"key",12),_=z(t,"name",12),S=z(t,"onChange",12),k=z(t,"options",12),h=z(t,"showMessage",12,void 0);var y={get defaultOption(){return n()},set defaultOption(a){n(a),B()},get message(){return r()},set message(a){r(a),B()},get groupLabel(){return i()},set groupLabel(a){i(a),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(a){l(a),B()},get isRequired(){return d()},set isRequired(a){d(a),B()},get isInvalid(){return g()},set isInvalid(a){g(a),B()},get key(){return p()},set key(a){p(a),B()},get name(){return _()},set name(a){_(a),B()},get onChange(){return S()},set onChange(a){S(a),B()},get options(){return k()},set options(a){k(a),B()},get showMessage(){return h()},set showMessage(a){h(a),B()},$set:Ke,$on:(a,m)=>We(t,a,m)},b=L3(),c=de(b),u=de(c,!0);ce(c);var f=pe(c,2);Jn(f,1,k,Yn,(a,m)=>{var v=M3(),w=de(v);{let A=me(()=>(G(n()),C(m),Z(()=>n()===C(m).value))),E=me(()=>(G(p()),C(m),Z(()=>`${p()}-${C(m).value}`)));Ty(w,{get checked(){return C(A)},get isFirstInvalidInput(){return l()},get isRequired(){return d()},get key(){return C(E)},get name(){return _()},get onChange(){return S()},get value(){return C(m),Z(()=>C(m).value)},children:(O,T)=>{Wt();var M=Vt();Pe(()=>wt(M,(C(m),Z(()=>C(m).text)))),Q(O,M)},$$slots:{default:!0}})}ce(v),Q(a,v)});var s=pe(f,2),o=de(s);{let a=me(()=>g()?"error":"info");Ui(o,{get dirtyMessage(){return r()},get key(){return p()},get showMessage(){return h()},get type(){return C(a)}})}return ce(s),ce(b),Pe(()=>wt(u,i())),Q(e,b),je(y)}var D3=Ce("<option> </option>"),N3=Ce("<!> <select></select> <!>",1);function Nf(e,t){if(new.target)return Ge({component:Nf,...e});He(t,!1);let n=z(t,"selectClasses",12,""),r=z(t,"defaultOption",12,null),i=z(t,"isFirstInvalidInput",12),l=z(t,"isRequired",12,!1),d=z(t,"isInvalid",12,!1),g=z(t,"key",12),p=z(t,"label",12),_=z(t,"labelClasses",12,""),S=z(t,"labelOrder",12,"first"),k=z(t,"onChange",12),h=z(t,"options",12),y=re(),b=re(!0);r()===null&&h()[0].text===p()&&Y(b,!1),Vn(()=>{i()&&C(y).focus()});function c(w){const A=w.target.value,E=h().find(O=>String(O.value)===A);Y(b,p()!==(E==null?void 0:E.text)),k()(w)}var u={get selectClasses(){return n()},set selectClasses(w){n(w),B()},get defaultOption(){return r()},set defaultOption(w){r(w),B()},get isFirstInvalidInput(){return i()},set isFirstInvalidInput(w){i(w),B()},get isRequired(){return l()},set isRequired(w){l(w),B()},get isInvalid(){return d()},set isInvalid(w){d(w),B()},get key(){return g()},set key(w){g(w),B()},get label(){return p()},set label(w){p(w),B()},get labelClasses(){return _()},set labelClasses(w){_(w),B()},get labelOrder(){return S()},set labelOrder(w){S(w),B()},get onChange(){return k()},set onChange(w){k(w),B()},get options(){return h()},set options(w){h(w),B()},$set:Ke,$on:(w,A)=>We(t,w,A)};ut();var f=N3(),s=qe(f);{var o=w=>{{let A=me(()=>`${_()}`);xi(w,{get key(){return g()},get classes(){return C(A)},children:(E,O)=>{Wt();var T=Vt();Pe(()=>wt(T,p())),Q(E,T)},$$slots:{default:!0}})}};Ze(s,w=>{S()==="first"&&w(o)})}var a=pe(s,2);Jn(a,5,h,Yn,(w,A)=>{var E=D3(),O=de(E,!0);ce(E);var T={};Pe(()=>{Dw(E,(C(A),G(r()),Z(()=>C(A).value===r()))),wt(O,(C(A),Z(()=>C(A).text))),T!==(T=(C(A),Z(()=>C(A).value)))&&(E.value=(E.__value=(C(A),Z(()=>C(A).value)))??"")}),Q(w,E)}),ce(a),an(a,w=>Y(y,w),()=>C(y));var m=pe(a,2);{var v=w=>{{let A=me(()=>`${C(b)?_():"tw_sr-only"}`);xi(w,{get key(){return g()},get classes(){return C(A)},children:(E,O)=>{Wt();var T=Vt();Pe(()=>wt(T,p())),Q(E,T)},$$slots:{default:!0}})}};Ze(m,w=>{S()==="last"&&w(v)})}return Pe(()=>{be(a,"aria-describedby",`${g()}-message`),be(a,"aria-invalid",d()),Ot(a,1,`${C(b)?n():""} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_select-base dark:tw_select-base_dark tw_w-full`),be(a,"id",g()),a.required=l()}),mn("change",a,c),Q(e,f),je(u)}var x3=Ce('<div class="tw_input-spacing tw_relative"><!> <!></div>');function tu(e,t){if(new.target)return Ge({component:tu,...e});He(t,!1);let n=z(t,"checkValidity",12,null),r=z(t,"defaultOption",12,null),i=z(t,"message",12,""),l=z(t,"isFirstInvalidInput",12),d=z(t,"isRequired",12,!1),g=z(t,"isInvalid",12,!1),p=z(t,"key",12),_=z(t,"label",12),S=z(t,"onChange",12),k=z(t,"options",12),h=z(t,"showMessage",12,void 0);function y(s){n()&&g(!n()(s)),S()(s)}var b={get checkValidity(){return n()},set checkValidity(s){n(s),B()},get defaultOption(){return r()},set defaultOption(s){r(s),B()},get message(){return i()},set message(s){i(s),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(s){l(s),B()},get isRequired(){return d()},set isRequired(s){d(s),B()},get isInvalid(){return g()},set isInvalid(s){g(s),B()},get key(){return p()},set key(s){p(s),B()},get label(){return _()},set label(s){_(s),B()},get onChange(){return S()},set onChange(s){S(s),B()},get options(){return k()},set options(s){k(s),B()},get showMessage(){return h()},set showMessage(s){h(s),B()},$set:Ke,$on:(s,o)=>We(t,s,o)};ut();var c=x3(),u=de(c);Nf(u,{get defaultOption(){return r()},get isFirstInvalidInput(){return l()},get isRequired(){return d()},get isInvalid(){return g()},get key(){return p()},get label(){return _()},labelClasses:"tw_absolute tw_input-floating-label tw_select-floating-label",labelOrder:"last",onChange:y,get options(){return k()},selectClasses:"tw_select-floating"});var f=pe(u,2);{let s=me(()=>g()?"error":"info");Ui(f,{get dirtyMessage(){return i()},get key(){return p()},get showMessage(){return h()},get type(){return C(s)}})}return ce(c),Q(e,c),je(b)}var U3=Ce('<div class="tw_input-spacing"><!> <!></div>');function xf(e,t){if(new.target)return Ge({component:xf,...e});He(t,!1);let n=z(t,"checkValidity",12,null),r=z(t,"defaultOption",12,null),i=z(t,"message",12,""),l=z(t,"isFirstInvalidInput",12),d=z(t,"isRequired",12,!1),g=z(t,"isInvalid",12,!1),p=z(t,"key",12),_=z(t,"label",12),S=z(t,"onChange",12),k=z(t,"options",12),h=z(t,"showMessage",12,void 0);function y(s){n()&&g(!n()(s)),S()(s)}var b={get checkValidity(){return n()},set checkValidity(s){n(s),B()},get defaultOption(){return r()},set defaultOption(s){r(s),B()},get message(){return i()},set message(s){i(s),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(s){l(s),B()},get isRequired(){return d()},set isRequired(s){d(s),B()},get isInvalid(){return g()},set isInvalid(s){g(s),B()},get key(){return p()},set key(s){p(s),B()},get label(){return _()},set label(s){_(s),B()},get onChange(){return S()},set onChange(s){S(s),B()},get options(){return k()},set options(s){k(s),B()},get showMessage(){return h()},set showMessage(s){h(s),B()},$set:Ke,$on:(s,o)=>We(t,s,o)};ut();var c=U3(),u=de(c);Nf(u,{get defaultOption(){return r()},get isFirstInvalidInput(){return l()},get isRequired(){return d()},get isInvalid(){return g()},get key(){return p()},get label(){return _()},labelClasses:"tw_input-stacked-label",labelOrder:"first",onChange:y,get options(){return k()}});var f=pe(u,2);{let s=me(()=>g()?"error":"info");Ui(f,{get dirtyMessage(){return i()},get key(){return p()},get showMessage(){return h()},get type(){return C(s)}})}return ce(c),Q(e,c),je(b)}function Py(e,t){if(new.target)return Ge({component:Py,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({}));const g=d().checksAndRadios==="standard"?Oy:Ay,p=d().labels==="stacked"?xf:tu;let _=re(),S=re(),k=re(),h=re(),y=re();function b(a){i().setChoiceIndex(Number(a.target.value))}vt(()=>(G(i()),G(l()),C(h)),()=>{var a,m,v,w,A;Y(_,(a=i().getChoices())==null?void 0:a.map((E,O)=>({text:Ee(fr(E),null,E),value:`${O}`}))),Y(y,`${i().getDefaultChoice()}`||null),Y(S,((w=(v=(m=i())==null?void 0:m.payload)==null?void 0:v.input)==null?void 0:w[0].name)||`choice-${(A=l())==null?void 0:A.idx}`),Y(h,i().getPrompt()),Y(k,Ee(fr(C(h)),null,C(h)))}),Tt();var c={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(a){i(a),B()},get callbackMetadata(){return l()},set callbackMetadata(a){l(a),B()},get style(){return d()},set style(a){d(a),B()},$set:Ke,$on:(a,m)=>We(t,a,m)};ut();var u=mt(),f=qe(u);{var s=a=>{{let m=me(()=>(G(l()),Z(()=>{var v;return((v=l())==null?void 0:v.derived.isFirstInvalidInput)||!1})));g(a,{get isFirstInvalidInput(){return C(m)},get defaultOption(){return C(y)},isRequired:!1,get key(){return C(S)},get groupLabel(){return C(h)},onChange:b,get name(){return C(S)},get options(){return C(_)}})}},o=a=>{{let m=me(()=>(G(l()),Z(()=>{var v;return((v=l())==null?void 0:v.derived.isFirstInvalidInput)||!1})));p(a,{get isFirstInvalidInput(){return C(m)},get defaultOption(){return C(y)},isRequired:!1,get key(){return C(S)},get label(){return C(k)},onChange:b,get options(){return C(_)}})}};Ze(f,a=>{G(l()),Z(()=>{var m,v;return((v=(m=l())==null?void 0:m.platform)==null?void 0:v.displayType)==="radio"})?a(s):a(o,-1)})}return Q(e,u),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),je(c)}var F3=Ce("<div><!></div>");function nu(e,t){if(new.target)return Ge({component:nu,...e});He(t,!1);let n=z(t,"num",12,2);function r(...g){return g.reduce((p,_)=>{switch(_){case 4:return`${p} md:tw_grid-cols-4`;case 3:return`${p} md:tw_grid-cols-3`;case 2:return`${p} md:tw_grid-cols-2`;default:return`${p} md:tw_grid-cols-1`}},"")}var i={get num(){return n()},set num(g){n(g),B()},$set:Ke,$on:(g,p)=>We(t,g,p)},l=F3(),d=de(l);return xt(d,t,"default",{},null),ce(l),Pe(g=>Ot(l,1,g),[()=>(G(n()),Z(()=>`${r(n())} tw_gap-4 tw_grid tw_grid-cols-1 tw_input-spacing`))]),Q(e,l),je(i)}function Ry(e,t){if(new.target)return Ge({component:Ry,...e});He(t,!1);const n={};let r=z(t,"callback",12),i=z(t,"callbackMetadata",12),l=z(t,"selfSubmitFunction",12,null),d=z(t,"stepMetadata",12);const g=n.checksAndRadios==="standard"?eu:Xc;let p=re(),_=re(r().getDefaultOption()),S=re(),k=re(),h=re();function y(v){r().setOptionIndex(v),i()&&i(i().derived.isReadyForSubmission=!0,!0),l()&&l()()}function b(v){r().setOptionIndex(Number(v.target.value))}function c(v){v.target.checked?r().setOptionIndex(0):r().setOptionIndex(C(_))}r().getInputValue()===0&&r().setOptionIndex(C(_)),vt(()=>(G(r()),G(i()),C(h),C(k),G(d())),()=>{var v,w,A,E,O,T,M;Y(S,((A=(w=(v=r())==null?void 0:v.payload)==null?void 0:w.input)==null?void 0:A[0].name)||`confirmation-${(E=i())==null?void 0:E.idx}`),Y(h,r().getOptions().map((P,x)=>({value:`${x}`,text:P}))),Y(_,r().getDefaultOption()),Y(k,Ee(fr("pleaseConfirm"),null,"Please Confirm")),(T=(O=i())==null?void 0:O.platform)!=null&&T.showOnlyPositiveAnswer&&Y(h,C(h).slice(0,1)),!((M=d())!=null&&M.derived.isStepSelfSubmittable())&&C(h).length>1?C(h).unshift({value:"",text:C(k)}):C(h).length===1?Y(p,"outline"):Y(p,"secondary")}),Tt();var u={style:n,get callback(){return r()},set callback(v){r(v),B()},get callbackMetadata(){return i()},set callbackMetadata(v){i(v),B()},get selfSubmitFunction(){return l()},set selfSubmitFunction(v){l(v),B()},get stepMetadata(){return d()},set stepMetadata(v){d(v),B()},$set:Ke,$on:(v,w)=>We(t,v,w)};ut();var f=mt(),s=qe(f);{var o=v=>{var w=mt(),A=qe(w);{var E=T=>{{let M=me(()=>(G(i()),Z(()=>{var P;return((P=i())==null?void 0:P.derived.isFirstInvalidInput)||!1})));tu(T,{get isFirstInvalidInput(){return C(M)},isRequired:!1,get key(){return C(S)},get label(){return C(k)},onChange:b,get options(){return C(h)}})}},O=T=>{{let M=me(()=>(G(i()),Z(()=>{var P;return((P=i())==null?void 0:P.derived.isFirstInvalidInput)||!1})));g(T,{get isFirstInvalidInput(){return C(M)},isInvalid:!1,get key(){return C(S)},onChange:c,value:!1,children:(P,x)=>{Wt();var I=Vt();Pe(()=>wt(I,(C(h),Z(()=>C(h)[0].text)))),Q(P,I)},$$slots:{default:!0}})}};Ze(A,T=>{C(h),Z(()=>C(h).length>1)?T(E):T(O,-1)})}Q(v,w)},a=Ji(()=>(G(d()),Z(()=>{var v;return!((v=d())!=null&&v.derived.isStepSelfSubmittable())}))),m=v=>{{let w=me(()=>(C(h),Z(()=>C(h).length>=2?2:1)));nu(v,{get num(){return C(w)},children:(A,E)=>{var O=mt(),T=qe(O);Jn(T,1,()=>C(h),Yn,(M,P)=>{{let x=me(()=>(C(h),C(_),C(P),C(p),Z(()=>C(h).length>1&&C(_)===Number(C(P).value)?"primary":C(p))));Un(M,{get style(){return C(x)},type:"button",width:"auto",onClick:()=>y(Number(C(P).value)),children:(I,D)=>{Wt();var V=Vt();Pe(()=>wt(V,(C(P),Z(()=>C(P).text)))),Q(I,V)},$$slots:{default:!0}})}}),Q(A,O)},$$slots:{default:!0}})}};Ze(s,v=>{C(a)?v(o):v(m,-1)})}return Q(e,f),lt(t,"style",n),je(u)}const B3=["userAgent","appName","appCodeName","appVersion","appMinorVersion","buildID","product","productSub","vendor","vendorSub","browserLanguage"],z3=["fontNames","displayProps","browserProps","hardwareProps","platformProps"],V3=30*1e3,H3={mac:["Macintosh","MacIntel","MacPPC","Mac68K"],windows:["Win32","Win64","Windows","WinCE"],ios:["iPhone","iPad","iPod"]},j3=["width","height","pixelDepth","orientation.angle"],q3=["cursive","monospace","serif","sans-serif","fantasy","Arial","Arial Black","Arial Narrow","Arial Rounded MT Bold","Bookman Old Style","Bradley Hand ITC","Century","Century Gothic","Comic Sans MS","Courier","Courier New","Georgia","Gentium","Impact","King","Lucida Console","Lalit","Modena","Monotype Corsiva","Papyrus","Tahoma","TeX","Times","Times New Roman","Trebuchet MS","Verdana","Verona"],G3=["cpuClass","deviceMemory","hardwareConcurrency","maxTouchPoints","oscpu"],W3=["language","platform","userLanguage","systemLanguage"];class K3{constructor(t,n="info",r="forgerock"){Je(this,"config");Je(this,"logger");Je(this,"prefix");this.logger=Ed({level:n}),this.prefix=r,this.config={fontNames:q3,devicePlatforms:H3,displayProps:j3,browserProps:B3,hardwareProps:G3,platformProps:W3},t&&Object.keys(t).forEach(i=>{if(!z3.includes(i))throw new Error("Device profile configuration category does not exist.");this.config[i]=t[i]})}getBrowserMeta(){return typeof navigator>"u"?(this.logger.warn("Cannot collect browser metadata. navigator is not defined."),{}):uc(this.config.browserProps,navigator)}getBrowserPluginsNames(){return typeof navigator<"u"&&navigator.plugins?rC(Object.keys(navigator.plugins),navigator.plugins):(this.logger.warn("Cannot collect browser plugin information. navigator.plugins is not defined."),"")}getDeviceName(){if(typeof navigator>"u")return this.logger.warn("Cannot collect device name. navigator is not defined."),"";const t=navigator.userAgent,n=navigator.platform;switch(!0){case this.config.devicePlatforms.mac.includes(n):return"Mac (Browser)";case this.config.devicePlatforms.ios.includes(n):return`${n} (Browser)`;case this.config.devicePlatforms.windows.includes(n):return"Windows (Browser)";case(/Android/.test(n)||/Android/.test(t)):return"Android (Browser)";case(/CrOS/.test(t)||/Chromebook/.test(t)):return"Chrome OS (Browser)";case/Linux/.test(n):return"Linux (Browser)";default:return`${n||"Unknown"} (Browser)`}}getDisplayMeta(){return typeof screen>"u"?(this.logger.warn("Cannot collect screen information. screen is not defined."),{}):uc(this.config.displayProps,screen)}getHardwareMeta(){return typeof navigator>"u"?(this.logger.warn("Cannot collect OS metadata. Navigator is not defined."),{}):uc(this.config.hardwareProps,navigator)}getIdentifier(){const t=`${this.prefix}-DeviceID`;if(!(typeof globalThis.crypto<"u"&&globalThis.crypto.getRandomValues))return this.logger.warn("Cannot generate profile ID. Crypto and/or getRandomValues is not supported."),"";if(!localStorage)return this.logger.warn("Cannot store profile ID. localStorage is not supported."),"";let n=localStorage.getItem(t);return n||(n=globalThis.crypto.getRandomValues(new Uint32Array(3)).join("-"),localStorage.setItem(t,n)),n}getInstalledFonts(){if(typeof document>"u")return this.logger.warn("Cannot collect font data. Global document object is undefined."),"";const t=document.createElement("canvas");if(!t)return this.logger.warn("Cannot collect font data. Browser does not support canvas element"),"";const n=t.getContext&&t.getContext("2d");if(!n)return this.logger.warn("Cannot collect font data. Browser does not support 2d canvas context"),"";const r="abcdefghi0123456789";n.font="72px Comic Sans";const i=n.measureText(r).width;return this.config.fontNames.reduce((d,g)=>(n.font=`72px ${g}, Comic Sans`,n.measureText(r).width!==i&&(d=`${d}${g};`),d),"")}async getLocationCoordinates(){return typeof navigator<"u"&&navigator.geolocation?new Promise(t=>{navigator.geolocation.getCurrentPosition(n=>t({latitude:n.coords.latitude,longitude:n.coords.longitude}),()=>{this.logger.warn("Cannot collect geolocation information. Geolocation API error."),t({})},{enableHighAccuracy:!0,timeout:V3,maximumAge:0})}):(this.logger.warn("Cannot collect geolocation information. navigator.geolocation is not defined."),Promise.resolve({}))}getOSMeta(){return typeof navigator>"u"?(this.logger.warn("Cannot collect OS metadata. navigator is not defined."),{}):uc(this.config.platformProps,navigator)}getTimezoneOffset(){try{return new Date().getTimezoneOffset()}catch{return this.logger.warn("Cannot collect timezone information. getTimezoneOffset is not defined."),null}}async getProfile({location:t,metadata:n}){const r={identifier:this.getIdentifier()};return n&&(r.metadata={hardware:{...this.getHardwareMeta(),display:this.getDisplayMeta()},browser:{...this.getBrowserMeta(),plugins:this.getBrowserPluginsNames()},platform:{...this.getOSMeta(),deviceName:this.getDeviceName(),fonts:this.getInstalledFonts(),timezone:this.getTimezoneOffset()}}),t&&(r.location=await this.getLocationCoordinates()),r}}var $3=Ce("<p><!></p>");function Hs(e,t){if(new.target)return Ge({component:Hs,...e});He(t,!1);let n=z(t,"classes",12,"");var r={get classes(){return n()},set classes(d){n(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},i=$3(),l=de(i);return xt(l,t,"default",{},null),ce(i),Pe(()=>Ot(i,1,`${n()} tw_text-base tw_text-secondary-dark dark:tw_text-secondary-light tw_input-spacing`)),Q(e,i),je(r)}var Z3=Ce('<div class="tw_text-center tw_w-full tw_py-4"><!> <!></div>');function My(e,t){if(new.target)return Ge({component:My,...e});He(t,!1);let n=z(t,"callback",12),r=z(t,"callbackMetadata",12,null),i=z(t,"stepMetadata",12,null),l=z(t,"selfSubmitFunction",12);const d=new K3({});let g=n().getMessage();async function p(){var u,f;const y=((u=n())==null?void 0:u.isLocationRequired())??!1,b=((f=n())==null?void 0:f.isMetadataRequired())??!1,c=await d.getProfile({location:y,metadata:b});return n().setProfile(c),r()&&r(r().derived.isReadyForSubmission=!0,!0),l()&&l()()}p();var _={get callback(){return n()},set callback(y){n(y),B()},get callbackMetadata(){return r()},set callbackMetadata(y){r(y),B()},get stepMetadata(){return i()},set stepMetadata(y){i(y),B()},get selfSubmitFunction(){return l()},set selfSubmitFunction(y){l(y),B()},$set:Ke,$on:(y,b)=>We(t,y,b)};ut();var S=mt(),k=qe(S);{var h=y=>{var b=Z3(),c=de(b);gr(c,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"});var u=pe(c,2);Hs(u,{children:(f,s)=>{Wt();var o=Vt();Pe(()=>wt(o,g)),Q(f,o)},$$slots:{default:!0}}),ce(b),Q(y,b)};Ze(k,y=>{G(i()),Z(()=>{var b;return((b=i())==null?void 0:b.derived.numOfCallbacks)===1})&&y(h)})}return Q(e,S),je(_)}function Ly(e,t){if(new.target)return Ge({component:Ly,...e});He(t,!1);const n=null,r=null,i=null,l=null,d={};var g={callback:n,callbackMetadata:r,selfSubmitFunction:i,stepMetadata:l,style:d,$set:Ke,$on:(p,_)=>We(t,p,_)};return lt(t,"callback",n),lt(t,"callbackMetadata",r),lt(t,"selfSubmitFunction",i),lt(t,"stepMetadata",l),lt(t,"style",d),je(g)}var Y3=Ce('<input type="date"/>'),J3=Ce('<input type="email"/>'),X3=Ce('<input type="number"/>'),Q3=Ce('<input type="password"/>'),eO=Ce('<input type="phone"/>'),tO=Ce('<input type="text"/>'),nO=Ce("<!> <!> <!> <!> <!> <!> <!> <!>",1);function Uf(e,t){if(new.target)return Ge({component:Uf,...e});He(t,!1);let n=z(t,"autocomplete",12,void 0),r=z(t,"forceValidityFailure",12,!1),i=z(t,"isFirstInvalidInput",12),l=z(t,"inputClasses",12,""),d=z(t,"key",12),g=z(t,"label",12),p=z(t,"labelClasses",12,""),_=z(t,"labelOrder",12,"first"),S=z(t,"onChange",12),k=z(t,"placeholder",12," "),h=z(t,"isRequired",12,!1),y=z(t,"isInvalid",12,null),b=z(t,"type",12,"text"),c=z(t,"value",12,""),u=re();Vn(()=>{i()&&C(u).focus()});var f={get autocomplete(){return n()},set autocomplete(L){n(L),B()},get forceValidityFailure(){return r()},set forceValidityFailure(L){r(L),B()},get isFirstInvalidInput(){return i()},set isFirstInvalidInput(L){i(L),B()},get inputClasses(){return l()},set inputClasses(L){l(L),B()},get key(){return d()},set key(L){d(L),B()},get label(){return g()},set label(L){g(L),B()},get labelClasses(){return p()},set labelClasses(L){p(L),B()},get labelOrder(){return _()},set labelOrder(L){_(L),B()},get onChange(){return S()},set onChange(L){S(L),B()},get placeholder(){return k()},set placeholder(L){k(L),B()},get isRequired(){return h()},set isRequired(L){h(L),B()},get isInvalid(){return y()},set isInvalid(L){y(L),B()},get type(){return b()},set type(L){b(L),B()},get value(){return c()},set value(L){c(L),B()},$set:Ke,$on:(L,U)=>We(t,L,U)};ut();var s=nO(),o=qe(s);{var a=L=>{{let U=me(()=>`${p()} tw_w-full tw_ml-1`);xi(L,{get key(){return d()},get classes(){return C(U)},children:(F,W)=>{Wt();var J=Vt();Pe(()=>wt(J,g())),Q(F,J)},$$slots:{default:!0}})}};Ze(o,L=>{_()==="first"&&L(a)})}var m=pe(o,2);{var v=L=>{var U=Y3();Vr(U),an(U,F=>Y(u,F),()=>C(u)),Pe(()=>{be(U,"aria-describedby",`${d()}-message`),be(U,"aria-invalid",y()),be(U,"autocomplete",n()),Ot(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),be(U,"data-force-validity-failure",r()),be(U,"id",d()),be(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...F){var W;(W=S())==null||W.apply(this,F)}),ks(U,c),Q(L,U)};Ze(m,L=>{b()==="date"&&L(v)})}var w=pe(m,2);{var A=L=>{var U=J3();Vr(U),an(U,F=>Y(u,F),()=>C(u)),Pe(()=>{be(U,"aria-describedby",`${d()}-message`),be(U,"aria-invalid",y()),be(U,"autocomplete",n()),Ot(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),be(U,"data-force-validity-failure",r()),be(U,"id",d()),be(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...F){var W;(W=S())==null||W.apply(this,F)}),ks(U,c),Q(L,U)};Ze(w,L=>{b()==="email"&&L(A)})}var E=pe(w,2);{var O=L=>{var U=X3();Vr(U),an(U,F=>Y(u,F),()=>C(u)),Pe(()=>{be(U,"aria-describedby",`${d()}-message`),be(U,"aria-invalid",y()),be(U,"autocomplete",n()),Ot(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),be(U,"data-force-validity-failure",r()),be(U,"id",d()),be(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...F){var W;(W=S())==null||W.apply(this,F)}),ks(U,c),Q(L,U)};Ze(E,L=>{b()==="number"&&L(O)})}var T=pe(E,2);{var M=L=>{var U=Q3();Vr(U),an(U,F=>Y(u,F),()=>C(u)),Pe(()=>{be(U,"aria-describedby",`${d()}-message`),be(U,"aria-invalid",y()),be(U,"autocomplete",n()),Ot(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),be(U,"data-force-validity-failure",r()),be(U,"id",d()),be(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...F){var W;(W=S())==null||W.apply(this,F)}),ks(U,c),Q(L,U)};Ze(T,L=>{b()==="password"&&L(M)})}var P=pe(T,2);{var x=L=>{var U=eO();Vr(U),an(U,F=>Y(u,F),()=>C(u)),Pe(()=>{be(U,"aria-describedby",`${d()}-message`),be(U,"aria-invalid",y()),be(U,"autocomplete",n()),Ot(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),be(U,"data-force-validity-failure",r()),be(U,"id",d()),be(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...F){var W;(W=S())==null||W.apply(this,F)}),ks(U,c),Q(L,U)};Ze(P,L=>{b()==="phone"&&L(x)})}var I=pe(P,2);{var D=L=>{var U=tO();Vr(U),an(U,F=>Y(u,F),()=>C(u)),Pe(()=>{be(U,"aria-describedby",`${d()}-message`),be(U,"aria-invalid",y()),be(U,"autocomplete",n()),Ot(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),be(U,"data-force-validity-failure",r()),be(U,"id",d()),be(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...F){var W;(W=S())==null||W.apply(this,F)}),ks(U,c),Q(L,U)};Ze(I,L=>{b()==="text"&&L(D)})}var V=pe(I,2);{var j=L=>{{let U=me(()=>`${p()}`);xi(L,{get key(){return d()},get classes(){return C(U)},children:(F,W)=>{Wt();var J=Vt();Pe(()=>wt(J,g())),Q(F,J)},$$slots:{default:!0}})}};Ze(V,L=>{_()==="last"&&L(j)})}return Q(e,s),je(f)}var rO=Ce('<div class="tw_justify-items-stretch tw_flex tw_input-spacing tw_relative tw_flex-wrap"><!> <!> <div class="tw_w-full"><!> <!></div></div>');function Fi(e,t){if(new.target)return Ge({component:Fi,...e});He(t,!1);let n=z(t,"autocomplete",12,void 0),r=z(t,"checkValidity",12,null),i=z(t,"forceValidityFailure",12,!1),l=z(t,"message",12,""),d=z(t,"isFirstInvalidInput",12),g=z(t,"hasRightIcon",12,!1),p=z(t,"isRequired",12,!1),_=z(t,"isInvalid",12,!1),S=z(t,"key",12),k=z(t,"label",12),h=z(t,"onChange",12),y=z(t,"showMessage",12,void 0),b=z(t,"type",12,"text"),c=z(t,"value",12,"");function u(A){r()&&_(!r()(A)),h()(A)}var f={get autocomplete(){return n()},set autocomplete(A){n(A),B()},get checkValidity(){return r()},set checkValidity(A){r(A),B()},get forceValidityFailure(){return i()},set forceValidityFailure(A){i(A),B()},get message(){return l()},set message(A){l(A),B()},get isFirstInvalidInput(){return d()},set isFirstInvalidInput(A){d(A),B()},get hasRightIcon(){return g()},set hasRightIcon(A){g(A),B()},get isRequired(){return p()},set isRequired(A){p(A),B()},get isInvalid(){return _()},set isInvalid(A){_(A),B()},get key(){return S()},set key(A){S(A),B()},get label(){return k()},set label(A){k(A),B()},get onChange(){return h()},set onChange(A){h(A),B()},get showMessage(){return y()},set showMessage(A){y(A),B()},get type(){return b()},set type(A){b(A),B()},get value(){return c()},set value(A){c(A),B()},$set:Ke,$on:(A,E)=>We(t,A,E)};ut();var s=rO(),o=de(s);{let A=me(()=>`tw_input-floating dark:tw_input-floating_dark ${g()?"!tw_border-r-0 !tw_rounded-r-none tw_input-has-button":""}`);Uf(o,{get autocomplete(){return n()},get forceValidityFailure(){return i()},get isFirstInvalidInput(){return d()},get inputClasses(){return C(A)},get key(){return S()},onChange:u,get label(){return k()},labelClasses:"tw_absolute tw_border tw_border-transparent tw_input-floating-label",labelOrder:"last",get isRequired(){return p()},get isInvalid(){return _()},get type(){return b()},get value(){return c()},set value(E){c(E)},$$legacy:!0})}var a=pe(o,2);xt(a,t,"input-button",{},null);var m=pe(a,2),v=de(m);{let A=me(()=>_()?"error":"info");Ui(v,{get dirtyMessage(){return l()},get showMessage(){return y()},get type(){return C(A)}})}var w=pe(v,2);return xt(w,t,"default",{},null),ce(m),ce(s),Pe(()=>be(m,"id",`${S()}-message`)),Q(e,s),je(f)}var iO=Ce('<div class="tw_input-spacing tw_flex tw_flex-wrap"><!> <!> <div class="tw_w-full"><!> <!></div></div>');function Sa(e,t){if(new.target)return Ge({component:Sa,...e});He(t,!1);let n=z(t,"autocomplete",12,void 0),r=z(t,"checkValidity",12,null),i=z(t,"forceValidityFailure",12,!1),l=z(t,"isFirstInvalidInput",12),d=z(t,"hasRightIcon",12,!1),g=z(t,"message",12,""),p=z(t,"isRequired",12,!1),_=z(t,"isInvalid",12,!1),S=z(t,"key",12),k=z(t,"label",12),h=z(t,"onChange",12),y=z(t,"placeholder",12,void 0),b=z(t,"showMessage",12,void 0),c=z(t,"type",12,"text"),u=z(t,"value",12,"");function f(E){r()&&_(!r()(E)),h()(E)}var s={get autocomplete(){return n()},set autocomplete(E){n(E),B()},get checkValidity(){return r()},set checkValidity(E){r(E),B()},get forceValidityFailure(){return i()},set forceValidityFailure(E){i(E),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(E){l(E),B()},get hasRightIcon(){return d()},set hasRightIcon(E){d(E),B()},get message(){return g()},set message(E){g(E),B()},get isRequired(){return p()},set isRequired(E){p(E),B()},get isInvalid(){return _()},set isInvalid(E){_(E),B()},get key(){return S()},set key(E){S(E),B()},get label(){return k()},set label(E){k(E),B()},get onChange(){return h()},set onChange(E){h(E),B()},get placeholder(){return y()},set placeholder(E){y(E),B()},get showMessage(){return b()},set showMessage(E){b(E),B()},get type(){return c()},set type(E){c(E),B()},get value(){return u()},set value(E){u(E),B()},$set:Ke,$on:(E,O)=>We(t,E,O)};ut();var o=iO(),a=de(o);{let E=me(()=>`${d()?"!tw_border-r-0 !tw_rounded-r-none":""}`);Uf(a,{get autocomplete(){return n()},get forceValidityFailure(){return i()},get isFirstInvalidInput(){return l()},get inputClasses(){return C(E)},get key(){return S()},onChange:f,get label(){return k()},labelClasses:"tw_input-stacked-label",labelOrder:"first",get placeholder(){return y()},get isRequired(){return p()},get isInvalid(){return _()},get type(){return c()},get value(){return u()},set value(O){u(O)},$$legacy:!0})}var m=pe(a,2);xt(m,t,"input-button",{},null);var v=pe(m,2),w=de(v);{let E=me(()=>_()?"error":"info");Ui(w,{get key(){return S()},get dirtyMessage(){return g()},get showMessage(){return b()},get type(){return C(E)}})}var A=pe(w,2);return xt(A,t,"default",{},null),ce(v),ce(o),Pe(()=>be(v,"id",`${S()}-message`)),Q(e,o),je(s)}var aO=kn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"></path><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path><title><!></title></svg>');function Dy(e,t){if(new.target)return Ge({component:Dy,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=aO(),d=pe(de(l),2),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var sO=Ce('<fieldset class="tw_kba-fieldset tw_input-spacing dark:tw_kba-fieldset_dark"><legend class="tw_sr-only"><!></legend> <h2 class="dark:tw_secondary-header_dark tw_font-semibold tw_mb-4"><!></h2> <span class="tw_kba-lock-icon dark:tw_kba-lock-icon_dark"><!></span> <!> <!> <!></fieldset>');function Ny(e,t){if(new.target)return Ge({component:Ny,...e});He(t,!1);const n=()=>sr(m,"$value",r),[r,i]=Or(),l=null,d=null;let g=z(t,"callback",12),p=z(t,"callbackMetadata",12),_=z(t,"style",28,()=>({}));const S=_().labels==="stacked"?Sa:Fi,k=_().labels==="stacked"?xf:tu;let h=re(null),y=re(!1),b=re(),c=re(),u=re(),f=re(),s=re(),o=re(),a=re(),m=or("");try{Y(a,g().getOutputValue("allowUserDefinedQuestions"))}catch{console.error("`allowUserDefinedQuestions` property is missing in callback `KbaCreateCallback`")}function v(W){g().setAnswer(W.target.value)}function w(W){const J=W.target.value;J===C(h)?(Y(y,!0),m.set(""),g().setAnswer("")):(Y(y,!1),g().setQuestion(J))}function A(W){const J=W.target.value;g().setQuestion(J)}vt(()=>(C(b),G(g()),C(c),G(p()),C(s),C(o),C(a),C(h),Ee),()=>{var W,J,$,ne,ae,te,ie;Y(b,(J=(W=g())==null?void 0:W.payload)==null?void 0:J.input),Y(c,((ae=(ne=($=g())==null?void 0:$.payload)==null?void 0:ne.input)==null?void 0:ae[0].name)||`kba-${(te=p())==null?void 0:te.idx}`),Y(u,C(c)),Y(f,Array.isArray(C(b))&&C(b)[1].name),Y(s,g().getPrompt()),Y(o,(ie=g().getPredefinedQuestions())==null?void 0:ie.map((Se,_e)=>({text:Se,value:`${_e}`})));try{Y(a,g().getOutputValue("allowUserDefinedQuestions"))}catch{console.error("`allowUserDefinedQuestions` property is missing in callback `KbaCreateCallback`")}C(o).unshift({text:C(s),value:""}),C(a)&&(Y(h,`${C(o).length-1}`),C(o).push({text:Ee("provideCustomQuestion"),value:C(h)}))}),Tt();var E={selfSubmitFunction:l,stepMetadata:d,get callback(){return g()},set callback(W){g(W),B()},get callbackMetadata(){return p()},set callbackMetadata(W){p(W),B()},get style(){return _()},set style(W){_(W),B()},$set:Ke,$on:(W,J)=>We(t,W,J)};ut();var O=sO(),T=de(O),M=de(T);dt(M,{key:"securityQuestions"}),ce(T);var P=pe(T,2),x=de(P);dt(x,{key:"securityQuestionsPrompt"}),ce(P);var I=pe(P,2),D=de(I);Dy(D,{size:"18"}),ce(I);var V=pe(I,2);k(V,{isFirstInvalidInput:!1,isRequired:!0,get key(){return C(u)},get label(){return C(s)},onChange:w,get options(){return C(o)}});var j=pe(V,2);{var L=W=>{{let J=me(()=>(G(p()),Z(()=>{var ae;return`kba-custom-question-${(ae=p())==null?void 0:ae.idx}`}))),$=me(()=>(G(Ee),Z(()=>Ee("customSecurityQuestion")))),ne=me(()=>(G(Ee),Z(()=>Ee("inputRequiredError"))));S(W,{isFirstInvalidInput:!1,isRequired:!0,get key(){return C(J)},get label(){return C($)},showMessage:!1,get message(){return C(ne)},onChange:A,type:"text"})}};Ze(j,W=>{C(y)&&W(L)})}var U=pe(j,2);{let W=me(()=>(G(p()),Z(()=>{var ae;return((ae=p())==null?void 0:ae.derived.isFirstInvalidInput)||!1}))),J=me(()=>(C(f),G(p()),Z(()=>{var ae;return C(f)||`kba-answer-${(ae=p())==null?void 0:ae.idx}`}))),$=me(()=>(G(Ee),Z(()=>Ee("securityAnswer")))),ne=me(()=>(G(Ee),Z(()=>Ee("inputRequiredError"))));S(U,{get isFirstInvalidInput(){return C(W)},isRequired:!0,get key(){return C(J)},get label(){return C($)},showMessage:!1,get message(){return C(ne)},onChange:v,type:"text",get value(){return Fw(),n()},set value(ae){Uw(m,ae)},$$legacy:!0})}ce(O),Q(e,O),lt(t,"selfSubmitFunction",l),lt(t,"stepMetadata",d);var F=je(E);return i(),F}function xy(e,t){if(new.target)return Ge({component:xy,...e});He(t,!1);const n=null,r=null,i=null,l=null,d={};var g={callback:n,callbackMetadata:r,selfSubmitFunction:i,stepMetadata:l,style:d,$set:Ke,$on:(p,_)=>We(t,p,_)};return lt(t,"callback",n),lt(t,"callbackMetadata",r),lt(t,"selfSubmitFunction",i),lt(t,"stepMetadata",l),lt(t,"style",d),je(g)}var oO=kn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"></path><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"></path><title><!></title></svg>'),lO=kn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z" fill="none"></path><path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"></path><title><!></title></svg>');function Ff(e,t){if(new.target)return Ge({component:Ff,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px"),i=z(t,"visible",12,!1);var l={get classes(){return n()},set classes(S){n(S),B()},get size(){return r()},set size(S){r(S),B()},get visible(){return i()},set visible(S){i(S),B()},$set:Ke,$on:(S,k)=>We(t,S,k)},d=mt(),g=qe(d);{var p=S=>{var k=oO(),h=pe(de(k),2),y=de(h);xt(y,t,"default",{},null),ce(h),ce(k),Pe(()=>{Ot(k,0,Cn(n())),be(k,"height",r()),be(k,"width",r())}),Q(S,k)},_=S=>{var k=lO(),h=pe(de(k),2),y=de(h);xt(y,t,"default",{},null),ce(h),ce(k),Pe(()=>{Ot(k,0,Cn(n())),be(k,"height",r()),be(k,"width",r())}),Q(S,k)};Ze(g,S=>{i()?S(_,-1):S(p)})}return Q(e,d),je(l)}var cO=Ce('<button class="tw_password-button dark:tw_password-button_dark tw_focusable-element tw_input-base dark:tw_input-base_dark" type="button"><!></button>'),uO=Ce('<div class="tw_w-full tw_input-spacing"><!></div>'),dO=Ce("<!> <!>",1);function Uy(e,t){if(new.target)return Ge({component:Uy,...e});He(t,!1);let n=z(t,"forceValidityFailure",12,!1),r=z(t,"passwordsDoNotMatch",12,!1),i=z(t,"isRequired",12,!1),l=z(t,"key",12),d=z(t,"onChange",12),g=z(t,"resetValue",12),p=z(t,"style",28,()=>({})),_=z(t,"isFirstInvalidInput",12);const S=p().labels==="stacked"?Sa:Fi,k=p().showPassword;let h=z(t,"showMessage",12,void 0),y=re(!1),b=re("password"),c=re(),u=re("");function f(A){var E;Y(c,(E=A.target)==null?void 0:E.value),d()(typeof C(c)=="string"?C(c):void 0)}function s(){Y(y,!C(y)),Y(b,C(y)?"text":"password")}vt(()=>(G(g()),C(c),G(d()),G(r()),G(i())),()=>{g()&&(Y(c,void 0),d()(C(c))),r()?Y(u,Ee("passwordConfirmationError",null,"Passwords do not match")):i()?Y(u,Ee("requiredField",null,"This field is required")):Y(u,"")}),Tt();var o={get forceValidityFailure(){return n()},set forceValidityFailure(A){n(A),B()},get passwordsDoNotMatch(){return r()},set passwordsDoNotMatch(A){r(A),B()},get isRequired(){return i()},set isRequired(A){i(A),B()},get key(){return l()},set key(A){l(A),B()},get onChange(){return d()},set onChange(A){d(A),B()},get resetValue(){return g()},set resetValue(A){g(A),B()},get style(){return p()},set style(A){p(A),B()},get isFirstInvalidInput(){return _()},set isFirstInvalidInput(A){_(A),B()},get showMessage(){return h()},set showMessage(A){h(A),B()},$set:Ke,$on:(A,E)=>We(t,A,E)};ut();var a=dO(),m=qe(a);{let A=me(()=>(G(p()),Z(()=>p().showPassword==="button"))),E=me(()=>`${l()}-confirm`),O=me(()=>(G(Ee),Z(()=>Ee("confirmPassword",null,"Confirm Password")))),T=me(()=>typeof C(c)=="string"?C(c):"");S(m,{get forceValidityFailure(){return n()},isFirstInvalidInput:!1,get hasRightIcon(){return C(A)},get key(){return C(E)},get label(){return C(O)},get message(){return C(u)},onChange:f,get isInvalid(){return r()},get isRequired(){return i()},get showMessage(){return h()},get type(){return C(b)},get value(){return C(T)},children:(M,P)=>{var x=mt(),I=qe(x);xt(I,t,"default",{},null),Q(M,x)},$$slots:{"input-button":(M,P)=>{var x=mt(),I=qe(x);{var D=V=>{var j=cO(),L=de(j);Ff(L,{classes:"tw_password-icon dark:tw_password-icon_dark",get visible(){return C(y)},children:(U,F)=>{dt(U,{key:"showPassword"})},$$slots:{default:!0}}),ce(j),mn("click",j,s),Q(V,j)};Ze(I,V=>{k==="button"&&V(D)})}Q(M,x)},default:!0}})}var v=pe(m,2);{var w=A=>{var E=uO(),O=de(E);{let T=me(()=>(G(l()),G(p()),Z(()=>l()+p().showPassword)));Qc(O,{get isFirstInvalidInput(){return _()},isInvalid:!1,get key(){return C(T)},onChange:s,value:!1,children:(M,P)=>{Wt();var x=Vt("Show Password");Q(M,x)},$$slots:{default:!0}})}ce(E),Q(A,E)};Ze(v,A=>{k==="checkbox"&&A(w)})}return Q(e,a),je(o)}var fO=Ce('<button class="tw_password-button dark:tw_password-button_dark tw_focusable-element tw_input-base dark:tw_input-base_dark" type="button"><!></button>'),hO=Ce('<div class="tw_w-full tw_input-spacing"><!></div>'),gO=Ce("<!> <!> <!>",1);function Bf(e,t){if(new.target)return Ge({component:Bf,...e});He(t,!1);let n=z(t,"callback",12),r=z(t,"callbackMetadata",12),i=z(t,"key",12),l=z(t,"isInvalid",12,!1),d=z(t,"isRequired",12,!1),g=z(t,"style",28,()=>({}));const p=g().labels==="stacked"?Sa:Fi,_=g().showPassword;let S=z(t,"showMessage",12,void 0),k=z(t,"validationFailure",12,""),h=re(),y=re(),b=re(),c=re(!1),u=re(!1),f=re(""),s=re(),o=re("password"),a=re();function m(T){Y(h,T)}function v(T){Y(a,T.target.value),n().setInputValue(C(a)),Y(f,String(C(a)))}function w(){Y(c,!C(c)),Y(o,C(c)?"text":"password")}vt(()=>(G(n()),G(r()),C(a),C(f),C(h)),()=>{var T,M,P,x,I;Y(y,n().getType()),i(((P=(M=(T=n())==null?void 0:T.payload)==null?void 0:M.input)==null?void 0:P[0].name)||`password-${(x=r())==null?void 0:x.idx}`),Y(s,n().getPrompt()),Y(a,(I=n())==null?void 0:I.getInputValue()),Y(u,!!C(f)&&C(a)===""),Y(b,C(h)!==void 0?C(h)===C(a):void 0)}),Tt();var A={get callback(){return n()},set callback(T){n(T),B()},get callbackMetadata(){return r()},set callbackMetadata(T){r(T),B()},get key(){return i()},set key(T){i(T),B()},get isInvalid(){return l()},set isInvalid(T){l(T),B()},get isRequired(){return d()},set isRequired(T){d(T),B()},get style(){return g()},set style(T){g(T),B()},get showMessage(){return S()},set showMessage(T){S(T),B()},get validationFailure(){return k()},set validationFailure(T){k(T),B()},$set:Ke,$on:(T,M)=>We(t,T,M)};ut();var E=mt(),O=qe(E);return ja(O,n,T=>{var M=gO(),P=qe(M);{let j=me(()=>(G(r()),Z(()=>{var J;return((J=r())==null?void 0:J.derived.isFirstInvalidInput)||!1}))),L=me(()=>(G(g()),Z(()=>g().showPassword==="button"))),U=me(()=>(G(Ee),G(fr),C(y),C(s),Z(()=>Ee(fr(C(y)),null,C(s))))),F=me(()=>(G(k()),G(d()),G(Ee),Z(()=>k()||(d()?Ee("inputRequiredError"):void 0)))),W=me(()=>typeof C(a)=="string"?C(a):"");p(P,{get isFirstInvalidInput(){return C(j)},get hasRightIcon(){return C(L)},get key(){return i()},get label(){return C(U)},get message(){return C(F)},onChange:v,get isInvalid(){return l()},get isRequired(){return d()},get showMessage(){return S()},get type(){return C(o)},get value(){return C(W)},children:(J,$)=>{var ne=mt(),ae=qe(ne);xt(ae,t,"default",{},null),Q(J,ne)},$$slots:{default:!0,"input-button":(J,$)=>{var ne=mt(),ae=qe(ne);{var te=ie=>{var Se=fO(),_e=de(Se);Ff(_e,{classes:"tw_password-icon dark:tw_password-icon_dark",get visible(){return C(c)},children:(Ne,et)=>{dt(Ne,{key:"showPassword"})},$$slots:{default:!0}}),ce(Se),mn("click",Se,w),Q(ie,Se)};Ze(ae,ie=>{_==="button"&&ie(te)})}Q(J,ne)}}})}var x=pe(P,2);{var I=j=>{var L=hO(),U=de(L);{let F=me(()=>(G(r()),Z(()=>{var J;return((J=r())==null?void 0:J.derived.isFirstInvalidInput)||!1}))),W=me(()=>(G(i()),G(g()),Z(()=>i()+g().showPassword)));Qc(U,{get isFirstInvalidInput(){return C(F)},isInvalid:!1,get key(){return C(W)},onChange:w,value:!1,children:(J,$)=>{Wt();var ne=Vt("Show Password");Q(J,ne)},$$slots:{default:!0}})}ce(L),Q(j,L)};Ze(x,j=>{_==="checkbox"&&j(I)})}var D=pe(x,2);{var V=j=>{{let L=me(()=>C(b)===!1),U=me(()=>C(b)===!1),F=me(()=>(C(a),Z(()=>C(a).length>0))),W=me(()=>C(b)===!1),J=me(()=>(G(r()),Z(()=>{var $;return(($=r())==null?void 0:$.derived.isFirstInvalidInput)||!1})));Uy(j,{get forceValidityFailure(){return C(L)},get passwordsDoNotMatch(){return C(U)},get key(){return i()},get isRequired(){return C(F)},onChange:m,get resetValue(){return C(u)},get showMessage(){return C(W)},get style(){return g()},get isFirstInvalidInput(){return C(J)}})}};Ze(D,j=>{G(r()),Z(()=>{var L,U;return(U=(L=r())==null?void 0:L.platform)==null?void 0:U.confirmPassword})&&j(V)})}Q(T,M)}),Q(e,E),je(A)}function Fy(e,t){if(new.target)return Ge({component:Fy,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({})),g=re();vt(()=>(G(i()),G(l())),()=>{var _,S,k,h;i(i()),Y(g,((k=(S=(_=i())==null?void 0:_.payload)==null?void 0:S.input)==null?void 0:k[0].name)||`password-${(h=l())==null?void 0:h.idx}`)}),Tt();var p={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(_){i(_),B()},get callbackMetadata(){return l()},set callbackMetadata(_){l(_),B()},get style(){return d()},set style(_){d(_),B()},$set:Ke,$on:(_,S)=>We(t,_,S)};return ut(),Bf(e,{get callback(){return i()},get callbackMetadata(){return l()},get style(){return d()},get key(){return C(g)}}),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),je(p)}var pO=Ce('<li class="tw_list-disc"> </li>'),mO=Ce('<div class="tw_input-policies tw_w-full"><p class="tw_text-error-dark dark:tw_text-error-light tw_w-full"><!></p> <ul class="tw_text-error-dark dark:tw_text-error-light tw_w-full"></ul></div>'),vO=Ce('<li class="tw_list-disc"> </li>'),yO=Ce('<div class="tw_input-policies tw_w-full"><p class="tw_text-secondary-dark dark:tw_text-secondary-light tw_w-full"><!></p> <ul class="tw_text-secondary-dark dark:tw_text-secondary-light tw_w-full"></ul></div>');function ru(e,t){if(new.target)return Ge({component:ru,...e});He(t,!1);let n=z(t,"callback",12),r=z(t,"key",12,void 0),i=z(t,"label",12),l=z(t,"messageKey",12),d=z(t,"showPolicies",12,!1),g=re(ba(n(),i())),p=re(Lf(n().getPolicies())),_=re(C(g).reduce((c,u)=>(c=c.concat(u.restructured),c),[]));vt(()=>(C(g),G(n()),G(i()),Lf),()=>{Y(g,ba(n(),i())),Y(p,Lf(n().getPolicies())),Y(_,C(g).reduce((c,u)=>(c=c.concat(u.restructured),c),[]))}),Tt();var S={get callback(){return n()},set callback(c){n(c),B()},get key(){return r()},set key(c){r(c),B()},get label(){return i()},set label(c){i(c),B()},get messageKey(){return l()},set messageKey(c){l(c),B()},get showPolicies(){return d()},set showPolicies(c){d(c),B()},$set:Ke,$on:(c,u)=>We(t,c,u)};ut();var k=mt(),h=qe(k);{var y=c=>{var u=mO(),f=de(u),s=de(f);dt(s,{get key(){return l()}}),ce(f);var o=pe(f,2);Jn(o,5,()=>C(_),Yn,(a,m)=>{var v=pO(),w=de(v,!0);ce(v),Pe(()=>wt(w,(C(m),Z(()=>C(m).message)))),Q(a,v)}),ce(o),ce(u),Pe(()=>be(u,"id",`${r()?`${r()}-message`:""}`)),Q(c,u)},b=c=>{var u=yO(),f=de(u),s=de(f);dt(s,{get key(){return l()}}),ce(f);var o=pe(f,2);Jn(o,5,()=>C(p),Yn,(a,m)=>{var v=vO(),w=de(v,!0);ce(v),Pe(()=>wt(w,(C(m),Z(()=>C(m).message)))),Q(a,v)}),ce(o),ce(u),Pe(()=>be(u,"id",`${r()?`${r()}-message`:""}`)),Q(c,u)};Ze(h,c=>{C(_),Z(()=>C(_).length)?c(y):(G(d()),C(p),Z(()=>d()&&C(p).length)&&c(b,1))})}return Q(e,k),je(S)}function By(e,t){if(new.target)return Ge({component:By,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({}));const g=Df(i());let p=re(),_=re(),S=re(),k=re();vt(()=>(G(i()),G(l()),C(S),C(k),ba),()=>{var c,u,f,s;Y(p,((f=(u=(c=i())==null?void 0:c.payload)==null?void 0:u.input)==null?void 0:f[0].name)||`password-${(s=l())==null?void 0:s.idx}`),Y(S,i().getPrompt()),Y(k,ba(i(),C(S))),Y(_,!!C(k).length)}),Tt();var h={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(c){i(c),B()},get callbackMetadata(){return l()},set callbackMetadata(c){l(c),B()},get style(){return d()},set style(c){d(c),B()},$set:Ke,$on:(c,u)=>We(t,c,u)};ut();var y=mt(),b=qe(y);return ja(b,i,c=>{Bf(c,{get callback(){return i()},get callbackMetadata(){return l()},get isInvalid(){return C(_)},get isRequired(){return g},get key(){return C(p)},get showMessage(){return C(_)},get style(){return d()},children:(u,f)=>{ru(u,{get callback(){return i()},get label(){return C(S)},messageKey:"passwordRequirements",showPolicies:!0})},$$slots:{default:!0}})}),Q(e,y),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),je(h)}var _O=Ce("<p><!></p>"),wO=Ce('<div class="tw_text-center tw_w-full tw_py-4"><!></div>');function zy(e,t){if(new.target)return Ge({component:zy,...e});He(t,!1);let n=z(t,"callback",12),r=z(t,"selfSubmitFunction",12,null),i=z(t,"pingProtect",28,()=>({envId:""})),l=re(!1);Hr(()=>{async function _(){const S=await va.getData();return S&&typeof S=="object"&&"error"in S?n().setClientError(S.error):n().setData(S),r()&&r()()}_()}),vt(()=>(C(l),G(i()),G(n())),()=>{var _;if(Y(l,((_=i())==null?void 0:_.behavioralDataCollection)??!1),typeof window<"u")if(C(l)===!0){const S=va.pauseBehavioralData();S&&"error"in S&&n().setClientError(S.error)}else{const S=va.resumeBehavioralData();S&&"error"in S&&n().setClientError(S.error)}}),Tt();var d={get callback(){return n()},set callback(_){n(_),B()},get selfSubmitFunction(){return r()},set selfSubmitFunction(_){r(_),B()},get pingProtect(){return i()},set pingProtect(_){i(_),B()},$set:Ke,$on:(_,S)=>We(t,_,S)};ut();var g=wO(),p=de(g);return gr(p,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24",children:(_,S)=>{var k=_O(),h=de(k);dt(h,{key:"signalsEvaluation"}),ce(k),Q(_,k)},$$slots:{default:!0}}),ce(g),Q(e,g),je(d)}var bO=Ce("<div><!></div>");function Vy(e,t){if(new.target)return Ge({component:Vy,...e});He(t,!1);const n={},r=null;let i=z(t,"callback",12),l=z(t,"selfSubmitFunction",12,null),d=re(!1);Hr(()=>{async function k(){const h=i().getConfig(),y=await va.start(h);return y&&"error"in y?i().setClientError(y.error):Y(d,!0),l()&&l()()}k()});var g={style:n,stepMetadata:r,get callback(){return i()},set callback(k){i(k),B()},get selfSubmitFunction(){return l()},set selfSubmitFunction(k){l(k),B()},$set:Ke,$on:(k,h)=>We(t,k,h)};ut();var p=bO(),_=de(p);{var S=k=>{gr(k,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"})};Ze(_,k=>{C(d)||k(S)})}return ce(p),Q(e,p),lt(t,"style",n),lt(t,"stepMetadata",r),je(g)}var SO=Ce("<!> <span> </span>",1),EO=Ce("<!> <!>",1),kO=Ce('<div class="tw_text-center"><!></div>');function zf(e,t){if(new.target)return Ge({component:zf,...e});He(t,!1);const n={},r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"selfSubmitFunction",12,null),g=z(t,"options",12,null),p=re(),_=re();vt(()=>(G(i()),C(_),G(l()),G(d())),()=>{i(i()),Y(p,i().getMessage()),clearTimeout(C(_)),Y(_,setTimeout(()=>{l()&&l(l().derived.isReadyForSubmission=!0,!0),d()&&d()()},i().getWaitTime()))}),Tt();var S={style:n,stepMetadata:r,get callback(){return i()},set callback(c){i(c),B()},get callbackMetadata(){return l()},set callbackMetadata(c){l(c),B()},get selfSubmitFunction(){return d()},set selfSubmitFunction(c){d(c),B()},get options(){return g()},set options(c){g(c),B()},$set:Ke,$on:(c,u)=>We(t,c,u)};ut();var k=kO(),h=de(k);{var y=c=>{Hs(c,{children:(u,f)=>{var s=SO(),o=qe(s);gr(o,{colorClass:"white",layoutClasses:"tw_h-4 tw_w-4 tw_mr-2"});var a=pe(o,2),m=de(a,!0);ce(a),Pe(()=>wt(m,C(p))),Q(u,s)},$$slots:{default:!0}})},b=c=>{var u=EO(),f=qe(u);gr(f,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"});var s=pe(f,2);Hs(s,{children:(o,a)=>{Wt();var m=Vt();Pe(()=>wt(m,C(p))),Q(o,m)},$$slots:{default:!0}}),Q(c,u)};Ze(h,c=>{G(g()),Z(()=>{var u;return(u=g())==null?void 0:u.inline})?c(y):c(b,-1)})}return ce(k),Q(e,k),lt(t,"style",n),lt(t,"stepMetadata",r),je(S)}function Bi(){const e=window.grecaptcha;return(e==null?void 0:e.enterprise)??window.grecaptcha}function Hy({src:e,provider:t}){if(t==="hcaptcha"){if(window.hcaptcha)return Promise.resolve()}else{const r=Bi();if(r)return new Promise(i=>r.ready(()=>i()))}const n=document.querySelector(`script[src="${e}"]`);return n?new Promise((r,i)=>{let l=!1;const d=g=>{l||(l=!0,g())};if(n.addEventListener("load",()=>{if(t==="hcaptcha")d(r);else{const g=Bi();d(g?()=>g.ready(()=>r()):r)}},{once:!0}),n.addEventListener("error",()=>d(()=>i(new Error(`Failed to load CAPTCHA script: ${e}`))),{once:!0}),t==="hcaptcha")window.hcaptcha&&d(r);else{const g=Bi();g&&d(()=>g.ready(()=>r()))}}):new Promise((r,i)=>{const l=document.createElement("script");l.src=e,l.async=!0,l.onerror=()=>i(new Error(`Failed to load CAPTCHA script: ${e}`)),l.onload=()=>{if(t==="hcaptcha")r();else{const d=Bi();d?d.ready(()=>r()):r()}},document.head.appendChild(l)})}const jy=()=>window.hcaptcha;function qy({nameOfCaptcha:e,siteKey:t,elementId:n="fr-recaptcha",onSuccess:r,onExpired:i,onError:l}){const d=jy();if(e==="hcaptcha"&&d)return d.render(n,{sitekey:t,callback:r,"expired-callback":i,"chalexpired-callback":i,"error-callback":l});const g=Bi();if(e==="grecaptcha"&&g)return g.render(n,{sitekey:t,callback:r,"expired-callback":i})}function Gy({nameOfCaptcha:e,siteKey:t,elementId:n,onSuccess:r,onExpired:i,onError:l}){const d=jy();if(e==="hcaptcha"&&d){d.render(n,{sitekey:t,size:"invisible",callback:r,"expired-callback":i,"chalexpired-callback":i,"error-callback":l}),d.execute();return}const g=Bi();e==="grecaptcha"&&g&&g.ready(function(){const p=g.render(n,{sitekey:t,size:"invisible",callback:r,"expired-callback":i,"error-callback":l});g.execute(p)})}var CO=Ce('<div class="tw_hidden"></div> <!>',1),IO=Ce("<div></div> <!>",1);function Wy(e,t){var O,T,M;if(new.target)return Ge({component:Wy,...e});He(t,!1);const n=re(),r=null,i=null,l={};let d=z(t,"callback",12),g=z(t,"callbackMetadata",12),p=re("");const _=((O=d())==null?void 0:O.getSiteKey())??"";let S=(T=d())==null?void 0:T.getOutputByName("reCaptchaV3",!1);const k=((M=d())==null?void 0:M.getOutputByName("captchaDivClass","h-captcha"))??"h-captcha",h=k==="g-recaptcha"?"grecaptcha":"hcaptcha",y={grecaptcha:"https://www.google.com/recaptcha/api.js",hcaptcha:"https://js.hcaptcha.com/1/api.js"},b={grecaptcha:"fr-recaptcha",hcaptcha:"fr-hcaptcha"},c=S?"grecaptcha":h,u=y[c],f=b[h];let s=re(!1),o=re("visible");Hr(async()=>{if(!d())return;try{await Hy({src:u,provider:c}),Y(s,!0)}catch{Y(p,"captchaError");return}if(S)return;const P=x=>{var I;return(I=d())==null?void 0:I.setResult(x)};if(C(o)==="invisible"){const x=()=>{Y(p,"captchaError")};Gy({nameOfCaptcha:h,siteKey:_,elementId:f,onSuccess:P,onExpired:()=>{var D;(D=d())==null||D.setResult(""),Y(p,""),Gy({nameOfCaptcha:h,siteKey:_,elementId:f,onSuccess:P,onExpired:()=>{},onError:x})},onError:x})}else{const x=()=>{Y(p,"captchaError")};qy({nameOfCaptcha:h,siteKey:_,elementId:f,onSuccess:P,onExpired:()=>{var D;(D=d())==null||D.setResult(""),Y(p,""),qy({nameOfCaptcha:h,siteKey:_,elementId:f,onSuccess:P,onExpired:()=>{},onError:x})},onError:x})}});function a(){if(S&&C(s)&&C(n).length){const P=Bi();if(!P){Y(p,"captchaError");return}P.ready(async function(){var x;try{const I=await P.execute(_,{action:C(n)});(x=d())==null||x.setResult(I)}catch{Y(p,"captchaError")}})}}vt(()=>G(g()),()=>{var P,x;Y(o,((x=(P=g())==null?void 0:P.initOptions)==null?void 0:x.mode)==="invisible"?"invisible":"visible")}),vt(()=>G(g()),()=>{var P,x;Y(n,((x=(P=g())==null?void 0:P.initOptions)==null?void 0:x.recaptchaAction)??"")}),vt(()=>(C(n),C(s)),()=>{C(n).length&&C(s)&&a()}),Tt();var m={selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(P){d(P),B()},get callbackMetadata(){return g()},set callbackMetadata(P){g(P),B()},$set:Ke,$on:(P,x)=>We(t,P,x)};ut();var v=mt(),w=qe(v);{var A=P=>{var x=mt(),I=qe(x);{var D=j=>{var L=CO(),U=qe(L),F=pe(U,2);{var W=J=>{qn(J,{id:"captchaError",type:"error",children:($,ne)=>{Wt();var ae=Vt();Pe(te=>wt(ae,te),[()=>(G(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q($,ae)},$$slots:{default:!0}})};Ze(F,J=>{C(p)&&J(W)})}Pe(()=>be(U,"id",f)),Q(j,L)},V=j=>{var L=IO(),U=qe(L),F=pe(U,2);{var W=J=>{qn(J,{id:"captchaError",type:"error",children:($,ne)=>{Wt();var ae=Vt();Pe(te=>wt(ae,te),[()=>(G(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q($,ae)},$$slots:{default:!0}})};Ze(F,J=>{C(p)&&J(W)})}Pe(()=>{be(U,"id",f),Ot(U,1,`${k} tw_flex-1 tw_w-full tw_input-spacing`),be(U,"data-sitekey",_)}),Q(j,L)};Ze(I,j=>{C(o)==="invisible"?j(D):j(V,-1)})}Q(P,x)},E=P=>{qn(P,{id:"captchaError",type:"error",children:(x,I)=>{Wt();var D=Vt();Pe(V=>wt(D,V),[()=>(G(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q(x,D)},$$slots:{default:!0}})};Ze(w,P=>{S===!1?P(A):C(p)&&P(E,1)})}return Q(e,v),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),je(m)}function AO({apiUrl:e,siteKey:t,mode:n}){return n==="invisible"?`${e}?render=${t}`:e}function TO({apiUrl:e,siteKey:t,mode:n}){const r=AO({apiUrl:e,siteKey:t,mode:n});return Hy({src:r,provider:"grecaptcha"})}function Ky({siteKey:e,elementId:t="fr-recaptcha-enterprise",onSuccess:n,onExpired:r,onError:i}){const l=Bi();if(l)return l.render(t,{sitekey:e,callback:n,"expired-callback":r,"error-callback":i})}function OO({siteKey:e,action:t,callback:n,onError:r}){if(!t.length)return;const i=Bi();if(!i){r==null||r();return}i.ready(async function(){try{const l=await i.execute(e,{action:t});n==null||n.setResult(l);try{n==null||n.setAction(t)}catch{}}catch{n==null||n.setClientError("captcha_error"),r==null||r()}})}var PO=Ce('<div id="fr-recaptcha-enterprise" class="tw_hidden"></div> <!>',1),RO=Ce('<div id="fr-recaptcha-enterprise" class="tw_flex-1 tw_w-full tw_input-spacing"></div> <!>',1);function $y(e,t){var a,m;if(new.target)return Ge({component:$y,...e});He(t,!1);const n=re(),r=null,i=null,l={};let d=z(t,"callback",12),g=z(t,"callbackMetadata",12),p=re(""),_=!1,S=re(!1);const k=((a=d())==null?void 0:a.getSiteKey())??"",h=((m=d())==null?void 0:m.getApiUrl())||"https://www.google.com/recaptcha/enterprise.js";let y=re("visible");Hr(async()=>{if(!d())return;try{await TO({apiUrl:h,siteKey:k,mode:C(y)})}catch{Y(p,"captchaError");return}Y(S,!0);const v=w=>{var A,E;(A=d())==null||A.setResult(w),C(n)&&((E=d())==null||E.setAction(C(n)))};if(C(y)!=="invisible"){const w=()=>{Y(p,"captchaError")};Ky({siteKey:k,onSuccess:v,onExpired:()=>{var E;(E=d())==null||E.setResult(""),Y(p,""),Ky({siteKey:k,onSuccess:v,onExpired:()=>{},onError:w})},onError:w})}});function b(){!C(n)||C(y)!=="invisible"||!d()||_||!C(S)||(_=!0,OO({siteKey:k,action:C(n),callback:d(),onError:()=>{Y(p,"captchaError")}}))}vt(()=>G(g()),()=>{var v,w;Y(y,((w=(v=g())==null?void 0:v.initOptions)==null?void 0:w.mode)==="invisible"?"invisible":"visible")}),vt(()=>G(g()),()=>{var v,w;Y(n,((w=(v=g())==null?void 0:v.initOptions)==null?void 0:w.recaptchaAction)??"")}),vt(()=>(C(n),C(S)),()=>{C(n)&&C(S)&&b()}),Tt();var c={selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(v){d(v),B()},get callbackMetadata(){return g()},set callbackMetadata(v){g(v),B()},$set:Ke,$on:(v,w)=>We(t,v,w)};ut();var u=mt(),f=qe(u);{var s=v=>{var w=PO(),A=pe(qe(w),2);{var E=O=>{qn(O,{id:"captchaError",type:"error",children:(T,M)=>{Wt();var P=Vt();Pe(x=>wt(P,x),[()=>(G(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q(T,P)},$$slots:{default:!0}})};Ze(A,O=>{C(p)&&O(E)})}Q(v,w)},o=v=>{var w=RO(),A=pe(qe(w),2);{var E=O=>{qn(O,{id:"captchaError",type:"error",children:(T,M)=>{Wt();var P=Vt();Pe(x=>wt(P,x),[()=>(G(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q(T,P)},$$slots:{default:!0}})};Ze(A,O=>{C(p)&&O(E)})}Q(v,w)};Ze(f,v=>{C(y)==="invisible"?v(s):v(o,-1)})}return Q(e,u),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),je(c)}var MO=Ce('<div class="tw_text-center" aria-live="assertive"><!> <!></div>');function Zy(e,t){if(new.target)return Ge({component:Zy,...e});He(t,!1);const n=null,r=null,i=null,l={};let d=z(t,"callback",12),g=re();vt(()=>G(d()),()=>{Y(g,`${Ee("redirectingTo")} ${new URL(d().getRedirectUrl()).hostname}`)}),Tt();var p={callbackMetadata:n,selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(h){d(h),B()},$set:Ke,$on:(h,y)=>We(t,h,y)};ut();var _=MO(),S=de(_);gr(S,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"});var k=pe(S,2);return Hs(k,{children:(h,y)=>{Wt();var b=Vt();Pe(()=>wt(b,C(g))),Q(h,b)},$$slots:{default:!0}}),ce(_),Q(e,_),lt(t,"callbackMetadata",n),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),je(p)}var LO=kn('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 18"><path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"></path><path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"></path></svg>');function Yy(e,t){if(new.target)return Ge({component:Yy,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},l=LO();return Pe(()=>{be(l,"height",r()),be(l,"width",r()),Ot(l,0,Cn(n()))}),Q(e,l),je(i)}var DO=kn('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 18 18"><path d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"></path></svg>');function Jy(e,t){if(new.target)return Ge({component:Jy,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},l=DO();return Pe(()=>{be(l,"width",r()),be(l,"height",r()),Ot(l,0,Cn(n()))}),Q(e,l),je(i)}var NO=kn('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56"><g><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"></path><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"></path><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"></path><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"></path><path fill="none" d="M0 0h48v48H0z"></path></g></svg>');function Xy(e,t){if(new.target)return Ge({component:Xy,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},l=NO();return Pe(()=>{be(l,"height",r()),be(l,"width",r()),Ot(l,0,Cn(n()))}),Q(e,l),je(i)}var xO=Ce("<!> <!> ",1),UO=Ce("<!> <!> ",1),FO=Ce("<!> <!> ",1),BO=Ce('<hr class="tw_border-0 tw_border-b tw_border-secondary-light dark:tw_border-secondary-dark"/>'),zO=Ce("<!> <!>",1);function Qy(e,t){if(new.target)return Ge({component:Qy,...e});He(t,!1);const n={};let r=z(t,"callback",12),i=z(t,"callbackMetadata",12),l=z(t,"selfSubmitFunction",12,null),d=z(t,"stepMetadata",12),g=re();function p(b){r().setProvider(b),i()&&i(i().derived.isReadyForSubmission=!0,!0),l()&&l()()}vt(()=>G(r()),()=>{const b=r().getProviders().filter(u=>u.provider==="localAuthentication"),c=r().getProviders().filter(u=>u.provider!=="localAuthentication");b.length>0&&!r().getInputValue()&&r().setProvider("localAuthentication"),Y(g,c.map(u=>({value:u.provider,text:u.uiConfig.buttonDisplayName})))}),Tt();var _={style:n,get callback(){return r()},set callback(b){r(b),B()},get callbackMetadata(){return i()},set callbackMetadata(b){i(b),B()},get selfSubmitFunction(){return l()},set selfSubmitFunction(b){l(b),B()},get stepMetadata(){return d()},set stepMetadata(b){d(b),B()},$set:Ke,$on:(b,c)=>We(t,b,c)};ut();var S=zO(),k=qe(S);Jn(k,1,()=>C(g),Yn,(b,c)=>{nu(b,{num:1,children:(u,f)=>{var s=mt(),o=qe(s);{var a=O=>{Un(O,{classes:"tw_button-apple dark:tw_button-apple_dark",type:"button",width:"auto",onClick:()=>p(C(c).value),children:(T,M)=>{var P=xO(),x=qe(P);Yy(x,{classes:"tw_inline-block tw_fill-current"});var I=pe(x,2);dt(I,{key:"continueWith"});var D=pe(I);Pe(()=>wt(D,` ${C(c),Z(()=>C(c).text)??""}`)),Q(T,P)},$$slots:{default:!0}})},m=Ji(()=>(C(c),Z(()=>C(c).text.toUpperCase().includes("APPLE")))),v=O=>{Un(O,{classes:"tw_button-facebook dark:tw_button-facebook_dark",type:"button",width:"auto",onClick:()=>p(C(c).value),children:(T,M)=>{var P=UO(),x=qe(P);Jy(x,{classes:"tw_inline-block tw_fill-current"});var I=pe(x,2);dt(I,{key:"continueWith"});var D=pe(I);Pe(()=>wt(D,` ${C(c),Z(()=>C(c).text)??""}`)),Q(T,P)},$$slots:{default:!0}})},w=Ji(()=>(C(c),Z(()=>C(c).text.toUpperCase().includes("FACEBOOK")))),A=O=>{Un(O,{classes:"tw_button-google dark:tw_button-google_dark",type:"button",width:"auto",onClick:()=>p(C(c).value),children:(T,M)=>{var P=FO(),x=qe(P);Xy(x,{classes:"tw_inline-block tw_fill-current"});var I=pe(x,2);dt(I,{key:"continueWith"});var D=pe(I);Pe(()=>wt(D,` ${C(c),Z(()=>C(c).text)??""}`)),Q(T,P)},$$slots:{default:!0}})},E=Ji(()=>(C(c),Z(()=>C(c).text.toUpperCase().includes("GOOGLE"))));Ze(o,O=>{C(m)?O(a):C(w)?O(v,1):C(E)&&O(A,2)})}Q(u,s)},$$slots:{default:!0}})});var h=pe(k,2);{var y=b=>{nu(b,{num:1,children:(c,u)=>{var f=BO();Q(c,f)},$$slots:{default:!0}})};Ze(h,b=>{G(d()),Z(()=>d()&&d().derived.numOfCallbacks>1)&&b(y)})}return Q(e,S),lt(t,"style",n),je(_)}function e_(e,t){if(new.target)return Ge({component:e_,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({}));const g=d().labels==="stacked"?Sa:Fi;let p=re(),_=re(),S=re(),k=re(),h=re(),y=re(),b=re(),c=re(),u=re();function f(m){i().setInputValue(m.target.value)}vt(()=>(G(i()),G(l()),C(k),C(y),C(c),ba),()=>{var m,v,w,A,E;Y(p,((w=(v=(m=i())==null?void 0:m.payload)==null?void 0:v.input)==null?void 0:w[0].name)||`password-${(A=l())==null?void 0:A.idx}`),Y(_,Df(i())),Y(S,i().getOutputByName("name","")),Y(k,i().getPolicies()),Y(h,(E=i())==null?void 0:E.getInputValue()),Y(y,i().getPrompt()),Y(b,E3(C(k))),Y(c,ba(i(),C(y))),Y(u,!!C(c).length)}),Tt();var s={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(m){i(m),B()},get callbackMetadata(){return l()},set callbackMetadata(m){l(m),B()},get style(){return d()},set style(m){d(m),B()},$set:Ke,$on:(m,v)=>We(t,m,v)};ut();var o=mt(),a=qe(o);return ja(a,i,m=>{{let v=me(()=>(G(l()),Z(()=>{var O;return((O=l())==null?void 0:O.derived.isFirstInvalidInput)||!1}))),w=me(()=>(G(Ee),C(S),C(y),Z(()=>Ee(C(S),null,C(y))))),A=me(()=>(C(_),G(Ee),Z(()=>C(_)?Ee("inputRequiredError"):void 0))),E=me(()=>!!C(u));g(m,{get isFirstInvalidInput(){return C(v)},get key(){return C(p)},get label(){return C(w)},get message(){return C(A)},onChange:f,get isRequired(){return C(_)},get isInvalid(){return C(u)},get type(){return C(b)},get showMessage(){return C(E)},get value(){return C(h)},children:(O,T)=>{ru(O,{get callback(){return i()},get key(){return C(p)},get label(){return C(y)},messageKey:"valueRequirements"})},$$slots:{default:!0}})}}),Q(e,o),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),je(s)}var VO=Ce("<a><!></a>");function Vf(e,t){if(new.target)return Ge({component:Vf,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"href",12),i=z(t,"target",12,"_self");var l={get classes(){return n()},set classes(p){n(p),B()},get href(){return r()},set href(p){r(p),B()},get target(){return i()},set target(p){i(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},d=VO(),g=de(d);return xt(g,t,"default",{},null),ce(d),Pe(()=>{Ot(d,1,`${n()} tw_link dark:tw_link_dark`),be(d,"href",r()),be(d,"target",i())}),Q(e,d),je(l)}var HO=Ce("<!> <!>",1),jO=Ce('<p class=" tw_text-error-dark dark:tw_text-error-light tw_input-spacing">Error: Configuration is missing <code>termsAndConditions</code> URL.</p>');function t_(e,t){if(new.target)return Ge({component:t_,...e});He(t,!1);const n=()=>sr(Kl,"$linksStore",r),[r,i]=Or(),l=null,d=null;let g=z(t,"style",28,()=>({})),p=z(t,"callback",12),_=z(t,"callbackMetadata",12);const S=g().checksAndRadios==="standard"?eu:Xc;let k=re();function h(o){p().setAccepted(o.target.checked)}vt(()=>(G(p()),G(_())),()=>{var o,a,m,v;Y(k,((m=(a=(o=p())==null?void 0:o.payload)==null?void 0:a.input)==null?void 0:m[0].name)||`terms-${(v=_())==null?void 0:v.idx}`)}),Tt();var y={selfSubmitFunction:l,stepMetadata:d,get style(){return g()},set style(o){g(o),B()},get callback(){return p()},set callback(o){p(o),B()},get callbackMetadata(){return _()},set callbackMetadata(o){_(o),B()},$set:Ke,$on:(o,a)=>We(t,o,a)};ut();var b=mt(),c=qe(b);{var u=o=>{var a=HO(),m=qe(a);{let w=me(()=>(n(),Z(()=>{var A;return(A=n())==null?void 0:A.termsAndConditions})));Vf(m,{classes:"tw_block tw_mb-4",get href(){return C(w)},target:"_blank",children:(A,E)=>{Wt();var O=Vt();Pe(T=>wt(O,T),[()=>(G(Ee),Z(()=>Ee("termsAndConditionsLinkText")))]),Q(A,O)},$$slots:{default:!0}})}var v=pe(m,2);{let w=me(()=>(G(_()),Z(()=>{var A;return((A=_())==null?void 0:A.derived.isFirstInvalidInput)||!1})));S(v,{get isFirstInvalidInput(){return C(w)},get key(){return C(k)},onChange:h,value:!1,children:(A,E)=>{dt(A,{key:"termsAndConditions"})},$$slots:{default:!0}})}Q(o,a)},f=o=>{var a=jO();Q(o,a)};Ze(c,o=>{n(),Z(()=>{var a;return(a=n())==null?void 0:a.termsAndConditions})?o(u):o(f,-1)})}Q(e,b),lt(t,"selfSubmitFunction",l),lt(t,"stepMetadata",d);var s=je(y);return i(),s}function n_(e,t){if(new.target)return Ge({component:n_,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({}));const g=d().labels==="stacked"?Sa:Fi;let p=re(),_=re(),S=re(),k=re();function h(u){i().setInput(u.target.value)}vt(()=>(G(i()),G(l())),()=>{var u,f,s,o,a;Y(p,i().getType()),Y(_,((s=(f=(u=i())==null?void 0:u.payload)==null?void 0:f.input)==null?void 0:s[0].name)||`text-input-${(o=l())==null?void 0:o.idx}`),Y(S,i().getPrompt()),Y(k,(a=i())==null?void 0:a.getInputValue())}),Tt();var y={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(u){i(u),B()},get callbackMetadata(){return l()},set callbackMetadata(u){l(u),B()},get style(){return d()},set style(u){d(u),B()},$set:Ke,$on:(u,f)=>We(t,u,f)};ut();var b=mt(),c=qe(b);return ja(c,i,u=>{{let f=me(()=>(G(l()),Z(()=>{var a;return((a=l())==null?void 0:a.derived.isFirstInvalidInput)||!1}))),s=me(()=>(G(Ee),G(fr),C(S),C(p),Z(()=>Ee(fr(C(S)||C(p)),null,C(S))))),o=me(()=>typeof C(k)=="string"?C(k):"");g(u,{get isFirstInvalidInput(){return C(f)},get key(){return C(_)},get label(){return C(s)},onChange:h,type:"text",showMessage:!1,get value(){return C(o)}})}}),Q(e,b),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),je(y)}function Hf(e,t){if(new.target)return Ge({component:Hf,...e});He(t,!1);const n=null,r=null,i=null,l={};let d=z(t,"callback",12),g=re(d().getMessage()),p=re(is(C(g))),_=re("info");function S(u){switch(u){case"0":return"info";case"1":return"warning";case"2":return"error";default:return"info"}}vt(()=>(C(g),G(d()),is),()=>{Y(g,d().getMessage()),Y(p,is(C(g))),Y(_,S(d().getMessageType()))}),Tt();var k={callbackMetadata:n,selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(u){d(u),B()},$set:Ke,$on:(u,f)=>We(t,u,f)};ut();var h=mt(),y=qe(h);{var b=u=>{{let f=me(()=>(C(p),Z(()=>C(p).length<100?"tw_font-bold tw_mt-6":"tw_mt-6")));Hs(u,{get classes(){return C(f)},children:(s,o)=>{var a=mt(),m=qe(a);Ll(m,()=>C(p)),Q(s,a)},$$slots:{default:!0}})}},c=u=>{qn(u,{id:"",needsFocus:!1,get type(){return C(_)},children:(f,s)=>{Wt();var o=Vt();Pe(()=>wt(o,C(p))),Q(f,o)},$$slots:{default:!0}})};Ze(y,u=>{C(_)==="info"?u(b):u(c,-1)})}return Q(e,h),lt(t,"callbackMetadata",n),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),je(k)}var qO=Ce('<p class="tw_text-base tw_text-secondary-dark dark:tw_text-secondary-light tw_input-spacing"> </p>');function r_(e,t){if(new.target)return Ge({component:r_,...e});He(t,!1);const n=null,r=null,i=null,l={};let d=z(t,"callback",12);const g=d().getType();var p={callbackMetadata:n,selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(k){d(k),B()},$set:Ke,$on:(k,h)=>We(t,k,h)};ut();var _=qO(),S=de(_);return ce(_),Pe(()=>wt(S,`Unknown callback encountered: ${g??""}. Please contact support.`)),Q(e,_),lt(t,"callbackMetadata",n),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),je(p)}function i_(e,t){if(new.target)return Ge({component:i_,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({}));const g=d().labels==="stacked"?Sa:Fi;let p=re(),_=re(),S=re(),k=re();function h(u){i().setInputValue(u.target.value)}vt(()=>(G(i()),G(l())),()=>{var u,f,s,o,a;Y(p,i().getType()),Y(_,((s=(f=(u=i())==null?void 0:u.payload)==null?void 0:f.input)==null?void 0:s[0].name)||`name-${(o=l())==null?void 0:o.idx}`),Y(S,i().getPrompt()),Y(k,(a=i())==null?void 0:a.getInputValue())}),Tt();var y={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(u){i(u),B()},get callbackMetadata(){return l()},set callbackMetadata(u){l(u),B()},get style(){return d()},set style(u){d(u),B()},$set:Ke,$on:(u,f)=>We(t,u,f)};ut();var b=mt(),c=qe(b);return ja(c,i,u=>{{let f=me(()=>(G(l()),Z(()=>{var m,v;return(v=(m=l())==null?void 0:m.derived)==null?void 0:v.autocompleteValues}))),s=me(()=>(G(l()),Z(()=>{var m;return((m=l())==null?void 0:m.derived.isFirstInvalidInput)||!1}))),o=me(()=>(G(Ee),G(fr),C(S),C(p),Z(()=>Ee(fr(C(S)||C(p)),null,C(S))))),a=me(()=>typeof C(k)=="string"?C(k):"");g(u,{get autocomplete(){return C(f)},get isFirstInvalidInput(){return C(s)},get key(){return C(_)},get label(){return C(o)},onChange:h,type:"text",showMessage:!1,get value(){return C(a)}})}}),Q(e,b),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),je(y)}function a_(e,t){if(new.target)return Ge({component:a_,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({}));const g=d().labels==="stacked"?Sa:Fi;let p=re(),_=re(),S=re(),k=re(),h=re(),y=re(),b=re();function c(o){i().setInputValue(o.target.value)}vt(()=>(G(i()),G(l()),C(h),C(b),ba),()=>{var o,a,m,v,w;Y(p,i().getType()),Y(_,((m=(a=(o=i())==null?void 0:o.payload)==null?void 0:a.input)==null?void 0:m[0].name)||`validated-name=${(v=l())==null?void 0:v.idx}`),Y(k,Df(i())),Y(h,i().getPrompt()),Y(y,(w=i())==null?void 0:w.getInputValue()),Y(b,ba(i(),C(h))),Y(S,!!C(b).length)}),Tt();var u={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(o){i(o),B()},get callbackMetadata(){return l()},set callbackMetadata(o){l(o),B()},get style(){return d()},set style(o){d(o),B()},$set:Ke,$on:(o,a)=>We(t,o,a)};ut();var f=mt(),s=qe(f);return ja(s,i,o=>{{let a=me(()=>(G(l()),Z(()=>{var A;return((A=l())==null?void 0:A.derived.isFirstInvalidInput)||!1}))),m=me(()=>(G(Ee),G(fr),C(p),C(h),Z(()=>Ee(fr(C(p)),null,C(h))))),v=me(()=>(C(k),G(Ee),Z(()=>C(k)?Ee("inputRequiredError"):void 0))),w=me(()=>typeof C(y)=="string"?C(y):"");g(o,{get isFirstInvalidInput(){return C(a)},get isRequired(){return C(k)},get isInvalid(){return C(S)},get key(){return C(_)},get label(){return C(m)},get message(){return C(v)},onChange:c,showMessage:!1,type:"text",get value(){return C(w)},children:(A,E)=>{ru(A,{get callback(){return i()},get key(){return C(_)},get label(){return C(h)},messageKey:"usernameRequirements"})},$$slots:{default:!0}})}}),Q(e,f),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),je(u)}const s_={},iu={};function os(e,t){if(new.target)return Ge({component:os,...e});He(t,!1);let n=z(t,"props",12),r=re(),i=re(),l=re(),d=re(),g=re(),p=re(),_=re(),S=re(),k=re(),h=re(),y=re(),b=re(),c=re(),u=re(),f=re(),s=re(),o=re(),a=re(),m=re(),v=re(),w=re(),A=re(),E=re(),O=re(),T=re();vt(()=>(C(r),G(n()),fe),()=>{switch(Y(r,n().callback.getType()),C(r)){case fe.BooleanAttributeInputCallback:Y(i,n().callback);break;case fe.ChoiceCallback:Y(l,n().callback);break;case fe.ConfirmationCallback:Y(d,n().callback);break;case fe.HiddenValueCallback:Y(g,n().callback);break;case fe.KbaCreateCallback:Y(p,n().callback);break;case fe.NameCallback:Y(_,n().callback);break;case fe.ReCaptchaCallback:Y(w,n().callback);break;case fe.ReCaptchaEnterpriseCallback:Y(A,n().callback);break;case fe.PasswordCallback:Y(S,n().callback);break;case fe.PollingWaitCallback:Y(k,n().callback);break;case fe.RedirectCallback:Y(h,n().callback);break;case fe.SelectIdPCallback:Y(y,n().callback);break;case fe.StringAttributeInputCallback:Y(b,n().callback);break;case fe.ValidatedCreatePasswordCallback:Y(c,n().callback);break;case fe.ValidatedCreateUsernameCallback:Y(u,n().callback);break;case fe.TermsAndConditionsCallback:Y(f,n().callback);break;case fe.TextInputCallback:Y(s,n().callback);break;case fe.TextOutputCallback:Y(o,n().callback);break;case fe.SuspendedTextOutputCallback:Y(a,n().callback);break;case fe.DeviceProfileCallback:Y(v,n().callback);break;case fe.MetadataCallback:Y(m,n().callback);break;case fe.PingOneProtectEvaluationCallback:Y(E,n().callback);break;case fe.PingOneProtectInitializeCallback:Y(O,n().callback);break;default:Y(T,n().callback)}}),Tt();var M={get props(){return n()},set props(ge){n(ge),B()},$set:Ke,$on:(ge,Le)=>We(t,ge,Le)};ut();var P=mt(),x=qe(P);{var I=ge=>{const Le=me(()=>(G(iu),C(r),Z(()=>iu[C(r)]))),Mt=me(()=>(G(n()),Z(()=>Object.fromEntries(Object.entries(n()).filter(([$t])=>C(Le).acceptedProps.includes($t))))));var Ct=mt(),Ut=qe(Ct);Cg(Ut,()=>C(Le).component,($t,bn)=>{bn($t,Zt(()=>C(Mt)))}),Q(ge,Ct)},D=ge=>{const Le=me(()=>(G(n()),C(i),Z(()=>({...n(),callback:C(i)}))));Iy(ge,Zt(()=>C(Le)))},V=ge=>{const Le=me(()=>(G(n()),C(l),Z(()=>({...n(),callback:C(l)}))));Py(ge,Zt(()=>C(Le)))},j=ge=>{const Le=me(()=>(G(n()),C(d),Z(()=>({...n(),callback:C(d)}))));Ry(ge,Zt(()=>C(Le)))},L=ge=>{const Le=me(()=>(G(n()),C(g),Z(()=>({...n(),callback:C(g)}))));Ly(ge,Zt(()=>C(Le)))},U=ge=>{const Le=me(()=>(G(n()),C(p),Z(()=>({...n(),callback:C(p)}))));Ny(ge,Zt(()=>C(Le)))},F=ge=>{const Le=me(()=>(G(n()),C(_),Z(()=>({...n(),callback:C(_)}))));i_(ge,Zt(()=>C(Le)))},W=ge=>{const Le=me(()=>(G(n()),C(S),Z(()=>({...n(),callback:C(S)}))));Fy(ge,Zt(()=>C(Le)))},J=ge=>{const Le=me(()=>(G(n()),C(k),Z(()=>({...n(),callback:C(k)}))));zf(ge,Zt(()=>C(Le)))},$=ge=>{const Le=me(()=>(G(n()),C(h),Z(()=>({...n(),callback:C(h)}))));Zy(ge,Zt(()=>C(Le)))},ne=ge=>{const Le=me(()=>(G(n()),C(y),Z(()=>({...n(),callback:C(y)}))));Qy(ge,Zt(()=>C(Le)))},ae=ge=>{const Le=me(()=>(G(n()),C(b),Z(()=>({...n(),callback:C(b)}))));e_(ge,Zt(()=>C(Le)))},te=ge=>{const Le=me(()=>(G(n()),C(c),Z(()=>({...n(),callback:C(c)}))));By(ge,Zt(()=>C(Le)))},ie=ge=>{const Le=me(()=>(G(n()),C(u),Z(()=>({...n(),callback:C(u)}))));a_(ge,Zt(()=>C(Le)))},Se=ge=>{const Le=me(()=>(G(n()),C(f),Z(()=>({...n(),callback:C(f)}))));t_(ge,Zt(()=>C(Le)))},_e=ge=>{const Le=me(()=>(G(n()),C(s),Z(()=>({...n(),callback:C(s)}))));n_(ge,Zt(()=>C(Le)))},Ne=ge=>{const Le=me(()=>(G(n()),C(o),Z(()=>({...n(),callback:C(o)}))));Hf(ge,Zt(()=>C(Le)))},et=ge=>{const Le=me(()=>(G(n()),C(a),Z(()=>({...n(),callback:C(a)}))));Hf(ge,Zt(()=>C(Le)))},Nt=ge=>{const Le=me(()=>(G(n()),C(v),Z(()=>({...n(),callback:C(v)}))));My(ge,Zt(()=>C(Le)))},oe=ge=>{const Le=me(()=>(G(n()),C(m),Z(()=>({...n(),callback:C(m)}))));xy(ge,Zt(()=>C(Le)))},Ie=ge=>{const Le=me(()=>(G(n()),C(w),Z(()=>({...n(),callback:C(w)}))));Wy(ge,Zt(()=>C(Le)))},Be=ge=>{const Le=me(()=>(G(n()),C(A),Z(()=>({...n(),callback:C(A)}))));$y(ge,Zt(()=>C(Le)))},$e=ge=>{const Le=me(()=>(G(n()),C(E),Z(()=>({...n(),callback:C(E)}))));zy(ge,Zt(()=>C(Le)))},ke=ge=>{const Le=me(()=>(G(n()),C(O),Z(()=>({...n(),callback:C(O)}))));Vy(ge,Zt(()=>C(Le)))},Xe=ge=>{const Le=me(()=>(G(n()),C(T),Z(()=>({...n(),callback:C(T)}))));r_(ge,Zt(()=>C(Le)))};Ze(x,ge=>{G(iu),C(r),Z(()=>iu[C(r)])?ge(I):(C(r),G(fe),Z(()=>C(r)===fe.BooleanAttributeInputCallback)?ge(D,1):(C(r),G(fe),Z(()=>C(r)===fe.ChoiceCallback)?ge(V,2):(C(r),G(fe),Z(()=>C(r)===fe.ConfirmationCallback)?ge(j,3):(C(r),G(fe),Z(()=>C(r)===fe.HiddenValueCallback)?ge(L,4):(C(r),G(fe),Z(()=>C(r)===fe.KbaCreateCallback)?ge(U,5):(C(r),G(fe),Z(()=>C(r)===fe.NameCallback)?ge(F,6):(C(r),G(fe),Z(()=>C(r)===fe.PasswordCallback)?ge(W,7):(C(r),G(fe),Z(()=>C(r)===fe.PollingWaitCallback)?ge(J,8):(C(r),G(fe),Z(()=>C(r)===fe.RedirectCallback)?ge($,9):(C(r),G(fe),Z(()=>C(r)===fe.SelectIdPCallback)?ge(ne,10):(C(r),G(fe),Z(()=>C(r)===fe.StringAttributeInputCallback)?ge(ae,11):(C(r),G(fe),Z(()=>C(r)===fe.ValidatedCreatePasswordCallback)?ge(te,12):(C(r),G(fe),Z(()=>C(r)===fe.ValidatedCreateUsernameCallback)?ge(ie,13):(C(r),G(fe),Z(()=>C(r)===fe.TermsAndConditionsCallback)?ge(Se,14):(C(r),G(fe),Z(()=>C(r)===fe.TextInputCallback)?ge(_e,15):(C(r),G(fe),Z(()=>C(r)===fe.TextOutputCallback)?ge(Ne,16):(C(r),G(fe),Z(()=>C(r)===fe.SuspendedTextOutputCallback)?ge(et,17):(C(r),G(fe),Z(()=>C(r)===fe.DeviceProfileCallback)?ge(Nt,18):(C(r),G(fe),Z(()=>C(r)===fe.MetadataCallback)?ge(oe,19):(C(r),G(fe),Z(()=>C(r)===fe.ReCaptchaCallback)?ge(Ie,20):(C(r),G(fe),Z(()=>C(r)===fe.ReCaptchaEnterpriseCallback)?ge(Be,21):(C(r),G(fe),Z(()=>C(r)===fe.PingOneProtectEvaluationCallback)?ge($e,22):(C(r),G(fe),Z(()=>C(r)===fe.PingOneProtectInitializeCallback)?ge(ke,23):ge(Xe,-1))))))))))))))))))))))))})}return Q(e,P),je(M)}var GO=Ce('<p class=" tw_my-4 tw_text-base tw_text-center tw_text-link-dark dark:tw_text-link-light"><button> </button></p>');function jf(e,t){if(new.target)return Ge({component:jf,...e});He(t,!1);const n=()=>sr(al,"$configuredJourneysStore",i),r=()=>sr(C(g),"$stack",i),[i,l]=Or();let d=z(t,"journey",12),g=re(d().stack),p=re("");vt(()=>(G(d()),n(),r()),()=>{xw(Y(g,d().stack),"$stack",i);const b=n().find(f=>{var s;return f.journey===((s=r()[r().length-2])==null?void 0:s.journey)}),c=b==null?void 0:b.key,u=typeof c=="string"?c.replace(/([a-z])/,(f,s)=>`${s.toUpperCase()}`):c;Y(p,`backTo${u||"Default"}`)}),Tt();var _={get journey(){return d()},set journey(b){d(b),B()},$set:Ke,$on:(b,c)=>We(t,b,c)};ut();var S=mt(),k=qe(S);{var h=b=>{var c=GO(),u=de(c),f=de(u,!0);ce(u),ce(c),Pe(s=>wt(f,s),[()=>(G(Ee),C(p),Z(()=>Ee(C(p))))]),mn("click",u,Ml(()=>{var s;(s=d())==null||s.pop()})),Q(b,c)};Ze(k,b=>{r(),Z(()=>r().length>1)&&b(h)})}Q(e,S);var y=je(_);return l(),y}function au(e,t){const n=sn(al),r=sn(t.stack);e.addEventListener("click",i=>{const l=i.target,d=l.hasAttribute("href")&&l.getAttribute("href"),{action:g,journey:p}=WO(d,n,r);g&&(i.preventDefault(),g==="push"?t.push({journey:p}):g==="pop"&&t.pop())})}function WO(e,t,n){if(e){const r=t.find(i=>i.match.find(l=>e===l));if(r){if(!r.journey)return{action:null};const i=n[n.length-2];return!i||i.journey!==r.journey?{action:"push",journey:r.journey}:{action:"pop"}}else return{action:null}}else return{action:null}}var KO=Ce('<div class="tw_flex tw_justify-center"><!></div>'),$O=Ce('<!> <header><h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1></header> <!> <!> <!>',1);function o_(e,t){if(new.target)return Ge({component:o_,...e});He(t,!1);const n=()=>sr(Wr,"$styleStore",r),[r,i]=Or();let l=z(t,"componentStyle",12),d=z(t,"form",12),g=z(t,"formEl",12,null),p=z(t,"journey",12),_=z(t,"metadata",12),S=z(t,"step",12);const k="genericStepFailureMessage",h="genericStepHeader",y="genericStepForm";let b=re(!1),c=re(""),u=re("genericStepHeader"),f=re(!1),s=re();function o(){var w,A;(A=(w=_())==null?void 0:w.step)!=null&&A.derived.isStepSelfSubmittable()&&a()}function a(){var w;Y(b,!1),Y(f,!1),(w=d())==null||w.submit()}Vn(()=>{var w;(w=d())!=null&&w.message?(Y(u,k),Y(b,!0),Y(f,!1)):(Y(u,h),Y(b,!1),Y(f,!0))}),Hr(()=>au(C(s),p())),vt(()=>(G(S()),G(p())),()=>{Of(S())&&p().redirect(S())}),vt(()=>G(d()),()=>{var w;Y(c,as((w=d())==null?void 0:w.message))}),Tt();var m={get componentStyle(){return l()},set componentStyle(w){l(w),B()},get form(){return d()},set form(w){d(w),B()},get formEl(){return g()},set formEl(w){g(w),B()},get journey(){return p()},set journey(w){p(w),B()},get metadata(){return _()},set metadata(w){_(w),B()},get step(){return S()},set step(w){S(w),B()},$set:Ke,$on:(w,A)=>We(t,w,A)};ut(),Ni(e,{get ariaDescribedBy(){return C(u)},id:y,get needsFocus(){return C(f)},onSubmitWhenValid:a,get formEl(){return g()},set formEl(w){g(w)},children:(w,A)=>{var E=$O(),O=qe(E);{var T=L=>{var U=KO(),F=de(U);ky(F,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(U),Q(L,U)};Ze(O,L=>{G(d()),G(l()),Z(()=>{var U;return((U=d())==null?void 0:U.icon)&&l()!=="inline"})&&L(T)})}var M=pe(O,2);be(M,"id",h);var P=de(M),x=de(P);{let L=me(()=>(G(S()),G(Ee),Z(()=>{var U;return((U=S())==null?void 0:U.getHeader())||Ee("checkYourEmail")})));Jc(x,{html:!0,get string(){return C(L)}})}ce(P),ce(M),an(M,L=>Y(s,L),()=>C(s));var I=pe(M,2);{var D=L=>{qn(L,{id:k,get needsFocus(){return C(b)},type:"error",children:(U,F)=>{Wt();var W=Vt();Pe(J=>wt(W,J),[()=>(G(Ee),C(c),G(d()),Z(()=>{var J;return Ee(C(c),null,(J=d())==null?void 0:J.message)}))]),Q(U,W)},$$slots:{default:!0}})};Ze(I,L=>{G(d()),Z(()=>{var U;return(U=d())==null?void 0:U.message})&&L(D)})}var V=pe(I,2);Jn(V,1,()=>(G(S()),Z(()=>{var L;return(L=S())==null?void 0:L.callbacks})),Yn,(L,U,F)=>{{let W=me(()=>(C(U),G(_()),n(),Z(()=>{var J,$;return{callback:C(U),callbackMetadata:(J=_())==null?void 0:J.callbacks[F],selfSubmitFunction:o,stepMetadata:(($=_())==null?void 0:$.step)&&{..._().step},style:n()}})));os(L,{get props(){return C(W)}})}});var j=pe(V,2);jf(j,{get journey(){return p()}}),Q(w,E)},$$slots:{default:!0},$$legacy:!0});var v=je(m);return i(),v}var ZO=kn('<svg viewBox="-2 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.777 11.777 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7.159 7.159 0 0 0 1.048-.625 11.775 11.775 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.541 1.541 0 0 0-1.044-1.263 62.467 62.467 0 0 0-2.887-.87C9.843.266 8.69 0 8 0zm0 5a1.5 1.5 0 0 1 .5 2.915l.385 1.99a.5.5 0 0 1-.491.595h-.788a.5.5 0 0 1-.49-.595l.384-1.99A1.5 1.5 0 0 1 8 5z"></path><title><!></title></svg>');function l_(e,t){if(new.target)return Ge({component:l_,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=ZO(),d=pe(de(l)),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var YO=Ce('<div class="tw_flex tw_justify-center tw_pb-4"><div class="tw_dialog-logo dark:tw_dialog-logo_dark"></div></div>'),JO=Ce('<div class="tw_flex tw_justify-center"><!></div>'),XO=Ce('<!> <header><h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></header> <!> <!> <!> <!>',1);function qf(e,t){if(new.target)return Ge({component:qf,...e});He(t,!1);const n=()=>sr(Wr,"$styleStore",r),[r,i]=Or();let l=z(t,"componentStyle",12),d=z(t,"form",12),g=z(t,"formEl",12,null),p=z(t,"journey",12),_=z(t,"metadata",12),S=z(t,"step",12);const k="genericStepFailureMessage",h="genericStepHeader",y="genericStepForm";let b=re(!1),c=re(""),u=re("genericStepHeader"),f=re(!1),s=re();function o(){var w,A;(A=(w=_())==null?void 0:w.step)!=null&&A.derived.isStepSelfSubmittable()&&a()}function a(){var w;Y(b,!1),Y(f,!1),(w=d())==null||w.submit()}Vn(()=>{var w;(w=d())!=null&&w.message?(Y(u,k),Y(b,!0),Y(f,!1)):(Y(u,h),Y(b,!1),Y(f,!0))}),Hr(()=>au(C(s),p())),vt(()=>(G(S()),G(p())),()=>{Of(S())&&p().redirect(S())}),vt(()=>G(d()),()=>{var w;Y(c,as((w=d())==null?void 0:w.message))}),Tt();var m={get componentStyle(){return l()},set componentStyle(w){l(w),B()},get form(){return d()},set form(w){d(w),B()},get formEl(){return g()},set formEl(w){g(w),B()},get journey(){return p()},set journey(w){p(w),B()},get metadata(){return _()},set metadata(w){_(w),B()},get step(){return S()},set step(w){S(w),B()},$set:Ke,$on:(w,A)=>We(t,w,A)};ut(),Ni(e,{get ariaDescribedBy(){return C(u)},id:y,get needsFocus(){return C(f)},onSubmitWhenValid:a,get formEl(){return g()},set formEl(w){g(w)},children:(w,A)=>{var E=XO(),O=qe(E);{var T=te=>{var ie=YO(),Se=de(ie);ce(ie),Pe(_e=>Dl(Se,_e),[()=>(G(hr),n(),Z(()=>`--logo-light: ${hr(n().logo.light??"")}; --logo-dark: ${hr(n().logo.dark??"")}; height: ${n().logo.height?`${n().logo.height}px`:"72px"}; width: ${n().logo.width?`${n().logo.width}px`:"200px"};`))]),Q(te,ie)},M=te=>{var ie=JO(),Se=de(ie);l_(Se,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(ie),Q(te,ie)};Ze(O,te=>{n(),G(l()),Z(()=>{var ie;return((ie=n())==null?void 0:ie.logo)&&l()!=="modal"})?te(T):(G(d()),G(l()),Z(()=>{var ie;return((ie=d())==null?void 0:ie.icon)&&l()!=="inline"})&&te(M,1))})}var P=pe(O,2);be(P,"id",h);var x=de(P),I=de(x);{let te=me(()=>(G(S()),Z(()=>{var ie;return((ie=S())==null?void 0:ie.getHeader())||""})));Jc(I,{html:!0,get string(){return C(te)}})}ce(x);var D=pe(x,2),V=de(D);{let te=me(()=>(G(S()),Z(()=>{var ie;return((ie=S())==null?void 0:ie.getDescription())||""})));Jc(V,{html:!0,get string(){return C(te)}})}ce(D),ce(P),an(P,te=>Y(s,te),()=>C(s));var j=pe(P,2);{var L=te=>{qn(te,{id:k,get needsFocus(){return C(b)},type:"error",children:(ie,Se)=>{Wt();var _e=Vt();Pe(Ne=>wt(_e,Ne),[()=>(G(Ee),C(c),G(d()),Z(()=>{var Ne;return Ee(C(c),null,(Ne=d())==null?void 0:Ne.message)}))]),Q(ie,_e)},$$slots:{default:!0}})};Ze(j,te=>{G(d()),Z(()=>{var ie;return(ie=d())==null?void 0:ie.message})&&te(L)})}var U=pe(j,2);Jn(U,1,()=>(G(S()),Z(()=>{var te;return(te=S())==null?void 0:te.callbacks})),Yn,(te,ie,Se)=>{{let _e=me(()=>(C(ie),G(_()),n(),Z(()=>{var Ne,et;return{callback:C(ie),callbackMetadata:(Ne=_())==null?void 0:Ne.callbacks[Se],selfSubmitFunction:o,stepMetadata:((et=_())==null?void 0:et.step)&&{..._().step},style:n()}})));os(te,{get props(){return C(_e)}})}});var F=pe(U,2);{var W=te=>{{let ie=me(()=>(G(p()),Z(()=>{var Se;return(Se=p())==null?void 0:Se.loading})));Un(te,{get busy(){return C(ie)},style:"primary",type:"submit",width:"full",children:(Se,_e)=>{dt(Se,{key:"nextButton"})},$$slots:{default:!0}})}},J=Ji(()=>(G(_()),Z(()=>{var te,ie;return!((ie=(te=_())==null?void 0:te.step)!=null&&ie.derived.isStepSelfSubmittable())}))),$=te=>{{let ie=me(()=>(G(p()),Z(()=>{var Se;return(Se=p())==null?void 0:Se.loading})));Un(te,{get busy(){return C(ie)},style:"primary",type:"submit",width:"full",children:(Se,_e)=>{dt(Se,{key:"nextButton"})},$$slots:{default:!0}})}},ne=te=>{{let ie=me(()=>(G(p()),Z(()=>{var Se;return(Se=p())==null?void 0:Se.loading})));Un(te,{get busy(){return C(ie)},style:"primary",type:"submit",width:"full",children:(Se,_e)=>{dt(Se,{key:"nextButton"})},$$slots:{default:!0}})}};Ze(F,te=>{C(J)?te(W):(G(_()),Z(()=>{var ie,Se;return(Se=(ie=_())==null?void 0:ie.step)==null?void 0:Se.derived.isUserInputOptional})?te($,1):(G(_()),Z(()=>{var ie,Se;return!((Se=(ie=_())==null?void 0:ie.step)!=null&&Se.derived.numOfSelfSubmittableCbs)})&&te(ne,2)))})}var ae=pe(F,2);jf(ae,{get journey(){return p()}}),Q(w,E)},$$slots:{default:!0},$$legacy:!0});var v=je(m);return i(),v}var QO=kn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"></path><path d="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path><title><!></title></svg>');function Gf(e,t){if(new.target)return Ge({component:Gf,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=QO(),d=pe(de(l),2),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var eP=Ce('<div class="tw_flex tw_justify-center tw_pb-4"><div class="tw_dialog-logo dark:tw_dialog-logo_dark"></div></div>'),tP=Ce('<div class="tw_flex tw_justify-center"><!></div>'),nP=Ce('<h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1>'),rP=Ce('<p class=" tw_my-4 tw_text-base tw_text-center tw_text-link-dark dark:tw_text-link-light"><button> </button> &nbsp; <button> </button></p> <hr class="tw_border-0 tw_border-b tw_border-secondary-light dark:tw_border-secondary-dark"/> <p class="tw_text-base tw_text-center tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),iP=Ce("<!> <!> <!> <!> <!> <!>",1);function Wf(e,t){if(new.target)return Ge({component:Wf,...e});He(t,!1);const n=()=>sr(Wr,"$styleStore",r),[r,i]=Or();let l=z(t,"componentStyle",12),d=z(t,"form",12),g=z(t,"formEl",12,null),p=z(t,"journey",12),_=z(t,"metadata",12),S=z(t,"step",12),k=re(!1),h=re(""),y=re();function b(){var f,s,o;(s=(f=_())==null?void 0:f.step)!=null&&s.derived.isStepSelfSubmittable()&&((o=d())==null||o.submit())}Vn(()=>{var f;Y(k,!!((f=d())!=null&&f.message))}),Hr(()=>{l()==="modal"&&au(C(y),p())}),vt(()=>G(d()),()=>{var f;Y(h,as((f=d())==null?void 0:f.message))}),Tt();var c={get componentStyle(){return l()},set componentStyle(f){l(f),B()},get form(){return d()},set form(f){d(f),B()},get formEl(){return g()},set formEl(f){g(f),B()},get journey(){return p()},set journey(f){p(f),B()},get metadata(){return _()},set metadata(f){_(f),B()},get step(){return S()},set step(f){S(f),B()},$set:Ke,$on:(f,s)=>We(t,f,s)};ut();{let f=me(()=>(G(d()),Z(()=>{var s;return(s=d())==null?void 0:s.submit})));Ni(e,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return C(f)},get formEl(){return g()},set formEl(s){g(s)},children:(s,o)=>{var a=iP(),m=qe(a);{var v=j=>{var L=eP(),U=de(L);ce(L),Pe(F=>Dl(U,F),[()=>(G(hr),n(),Z(()=>`--logo-light: ${hr(n().logo.light??"")}; --logo-dark: ${hr(n().logo.dark??"")}; height: ${n().logo.height?`${n().logo.height}px`:"72px"}; width: ${n().logo.width?`${n().logo.width}px`:"200px"};`))]),Q(j,L)},w=j=>{var L=tP(),U=de(L);Gf(U,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(L),Q(j,L)};Ze(m,j=>{n(),G(l()),Z(()=>{var L;return((L=n())==null?void 0:L.logo)&&l()!=="modal"})?j(v):(G(l()),G(d()),Z(()=>{var L;return l()!=="inline"&&((L=d())==null?void 0:L.icon)})&&j(w,1))})}var A=pe(m,2);{var E=j=>{var L=nP(),U=de(L);dt(U,{key:"loginHeader"}),ce(L),Q(j,L)};Ze(A,j=>{l()!=="inline"&&j(E)})}var O=pe(A,2);{var T=j=>{qn(j,{id:"formFailureMessageAlert",get needsFocus(){return C(k)},type:"error",children:(L,U)=>{Wt();var F=Vt();Pe(W=>wt(F,W),[()=>(G(Ee),C(h),G(d()),Z(()=>{var W;return Ee(C(h),null,(W=d())==null?void 0:W.message)}))]),Q(L,F)},$$slots:{default:!0}})};Ze(O,j=>{G(d()),Z(()=>{var L;return(L=d())==null?void 0:L.message})&&j(T)})}var M=pe(O,2);Jn(M,1,()=>(G(S()),Z(()=>{var j;return(j=S())==null?void 0:j.callbacks})),Yn,(j,L,U)=>{{let F=me(()=>(C(L),G(_()),n(),Z(()=>{var W,J;return{callback:C(L),callbackMetadata:(W=_())==null?void 0:W.callbacks[U],selfSubmitFunction:b,stepMetadata:((J=_())==null?void 0:J.step)&&{..._().step},style:n()}})));os(j,{get props(){return C(F)}})}});var P=pe(M,2);{var x=j=>{{let L=me(()=>(G(p()),Z(()=>{var U;return(U=p())==null?void 0:U.loading})));Un(j,{get busy(){return C(L)},style:"primary",type:"submit",width:"full",children:(U,F)=>{dt(U,{key:"loginButton"})},$$slots:{default:!0}})}},I=Ji(()=>(G(_()),Z(()=>{var j,L,U,F;return((L=(j=_())==null?void 0:j.step)==null?void 0:L.derived.isUserInputOptional)||!((F=(U=_())==null?void 0:U.step)!=null&&F.derived.isStepSelfSubmittable())})));Ze(P,j=>{C(I)&&j(x)})}var D=pe(P,2);{var V=j=>{var L=rP(),U=qe(L),F=de(U),W=de(F,!0);ce(F);var J=pe(F,2),$=de(J,!0);ce(J),ce(U);var ne=pe(U,4),ae=de(ne);dt(ae,{key:"dontHaveAnAccount",html:!0}),ce(ne),an(ne,te=>Y(y,te),()=>C(y)),Pe((te,ie)=>{wt(W,te),wt($,ie)},[()=>(G(Ee),Z(()=>Ee("forgotPassword",null,"Forgot Password?"))),()=>(G(Ee),Z(()=>Ee("forgotUsername",null,"Forgot Username?")))]),mn("click",F,Ml(()=>{p().push({journey:"ResetPassword"})})),mn("click",J,Ml(()=>{p().push({journey:"ForgottenUsername"})})),Q(j,L)};Ze(D,j=>{l()!=="inline"&&j(V)})}Q(s,a)},$$slots:{default:!0},$$legacy:!0})}var u=je(c);return i(),u}var aP=Ce('<div class="tw_flex tw_justify-center"><!></div>'),sP=Ce('<!> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_text-sm tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),oP=Ce("<!> <!> <!> <!>",1);function c_(e,t){if(new.target)return Ge({component:c_,...e});He(t,!1);const n=()=>sr(Wr,"$style",r),[r,i]=Or();let l=z(t,"componentStyle",12),d=z(t,"form",12),g=z(t,"formEl",12,null),p=z(t,"journey",12),_=z(t,"metadata",12),S=z(t,"step",12),k=re(!1),h=re(),y=re(""),b=re([]);function c(){var s,o,a;(o=(s=_())==null?void 0:s.step)!=null&&o.derived.isStepSelfSubmittable()&&((a=d())==null||a.submit())}Vn(()=>{var s;Y(k,!!((s=d())!=null&&s.message))}),vt(()=>(G(d()),G(S()),fe),()=>{var o;Y(y,as((o=d())==null?void 0:o.message));const s=S().getCallbacksOfType(fe.ConfirmationCallback);if(s.length){const a=s[0];Y(h,a.getOptions().map((m,v)=>({value:`${v}`,text:m})))}Y(b,S().callbacks.filter(a=>a.getType()!==fe.ConfirmationCallback))}),Tt();var u={get componentStyle(){return l()},set componentStyle(s){l(s),B()},get form(){return d()},set form(s){d(s),B()},get formEl(){return g()},set formEl(s){g(s),B()},get journey(){return p()},set journey(s){p(s),B()},get metadata(){return _()},set metadata(s){_(s),B()},get step(){return S()},set step(s){S(s),B()},$set:Ke,$on:(s,o)=>We(t,s,o)};ut();{let s=me(()=>(G(d()),Z(()=>{var o;return(o=d())==null?void 0:o.submit})));Ni(e,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return C(s)},get formEl(){return g()},set formEl(o){g(o)},children:(o,a)=>{var m=oP(),v=qe(m);{var w=I=>{var D=sP(),V=qe(D);{var j=J=>{var $=aP(),ne=de($);Gf(ne,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce($),Q(J,$)};Ze(V,J=>{G(d()),Z(()=>{var $;return($=d())==null?void 0:$.icon})&&J(j)})}var L=pe(V,2),U=de(L);dt(U,{key:"twoFactorAuthentication"}),ce(L);var F=pe(L,2),W=de(F);dt(W,{key:"useTheAuthenticatorAppOnYourPhone"}),ce(F),Q(I,D)};Ze(v,I=>{l()!=="inline"&&I(w)})}var A=pe(v,2);{var E=I=>{qn(I,{id:"formFailureMessageAlert",get needsFocus(){return C(k)},type:"error",children:(D,V)=>{Wt();var j=Vt();Pe(L=>wt(j,L),[()=>(G(Ee),C(y),G(d()),Z(()=>{var L;return Ee(C(y),null,(L=d())==null?void 0:L.message)}))]),Q(D,j)},$$slots:{default:!0}})};Ze(A,I=>{G(d()),Z(()=>{var D;return(D=d())==null?void 0:D.message})&&I(E)})}var O=pe(A,2);Jn(O,1,()=>C(b),Yn,(I,D,V)=>{{let j=me(()=>(C(D),G(_()),n(),Z(()=>{var L,U;return{callback:C(D),callbackMetadata:(L=_())==null?void 0:L.callbacks[V],selfSubmitFunction:c,stepMetadata:((U=_())==null?void 0:U.step)&&{..._().step},style:n()}})));os(I,{get props(){return C(j)}})}});var T=pe(O,2);{var M=I=>{{let D=me(()=>(G(p()),Z(()=>{var V;return(V=p())==null?void 0:V.loading})));Un(I,{get busy(){return C(D)},style:"primary",type:"submit",width:"full",children:(V,j)=>{dt(V,{get key(){return C(h),Z(()=>C(h)[0].text)}})},$$slots:{default:!0}})}},P=I=>{{let D=me(()=>(G(p()),Z(()=>{var V;return(V=p())==null?void 0:V.loading})));Un(I,{get busy(){return C(D)},style:"primary",type:"submit",width:"full",children:(V,j)=>{dt(V,{key:"loginButton"})},$$slots:{default:!0}})}},x=Ji(()=>(G(_()),Z(()=>{var I,D,V,j;return((D=(I=_())==null?void 0:I.step)==null?void 0:D.derived.isUserInputOptional)||!((j=(V=_())==null?void 0:V.step)!=null&&j.derived.isStepSelfSubmittable())})));Ze(T,I=>{C(h),Z(()=>{var D;return(D=C(h))==null?void 0:D.length})?I(M):C(x)&&I(P,1)})}Q(o,m)},$$slots:{default:!0},$$legacy:!0})}var f=je(u);return i(),f}var lP=kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10 1.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1Zm-5 0A1.5 1.5 0 0 1 6.5 0h3A1.5 1.5 0 0 1 11 1.5v1A1.5 1.5 0 0 1 9.5 4h-3A1.5 1.5 0 0 1 5 2.5v-1Zm-2 0h1v1A2.5 2.5 0 0 0 6.5 5h3A2.5 2.5 0 0 0 12 2.5v-1h1a2 2 0 0 1 2 2V14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3.5a2 2 0 0 1 2-2Z"></path><title><!></title></svg>');function u_(e,t){if(new.target)return Ge({component:u_,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=lP(),d=pe(de(l)),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"width",r()),be(l,"height",r())}),Q(e,l),je(i)}var cP=kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M3 2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V2zm6 11a1 1 0 1 0-2 0 1 1 0 0 0 2 0z"></path></svg>');function d_(e,t){if(new.target)return Ge({component:d_,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},l=cP();return Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var uP=Ce('<div class="tw_flex tw_justify-center tw_mb-6"><!></div>'),dP=Ce('<!> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_text-sm tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),fP=Ce('<div class="tw_text-center"><!> <p class="tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></div>'),hP=Ce('<!> <!> <!> <canvas class="tw_m-auto tw_mb-6" data-testid="qr-code-canvas"></canvas> <!> <!> <details class="tw_my-6 tw_text-secondary-dark dark:tw_text-secondary-light"><summary><!></summary> <div class="tw_overflow-hidden"><!> <p class="tw_text-base tw_my-6"><!></p> <div class="tw_relative tw_overflow-hidden"><label for="mfa-registration-url"><!></label> <button class="tw_absolute tw_h-4 tw_bg-background-dark tw_right-1 tw_top-1 tw_shadow-[0_0_1rem_2rem_black] tw_shadow-background-light dark:tw_shadow-background-dark tw_text-secondary-dark dark:tw_text-secondary-light"><!></button> <input class="tw_bg-transparent tw_border-none focus-visible:tw_outline-none tw_font-mono tw_w-full" id="mfa-registration-url"/></div></div></details> <!>',1);function f_(e,t){if(new.target)return Ge({component:f_,...e});He(t,!1);const n=()=>sr(Wr,"$style",r),[r,i]=Or();let l=z(t,"componentStyle",12),d=z(t,"form",12),g=z(t,"formEl",12,null),p=z(t,"journey",12),_=z(t,"metadata",12),S=z(t,"step",12),k=re(!1),h=re(),y=re(""),b=re([]),c=re(!1),u=re(),f=re(),s=re(),o=re(""),a=re();function m(){var E,O,T;(O=(E=_())==null?void 0:E.step)!=null&&O.derived.isStepSelfSubmittable()&&((T=d())==null||T.submit())}async function v(){C(a).select(),document.execCommand("copy")}Vn(()=>{var E;Y(k,!!((E=d())!=null&&E.message))}),Hr(()=>{async function E(){try{const O=await Promise.resolve().then(()=>NR);Y(c,!0),Y(o,Ey.getQRCodeData(S()).uri),O.toCanvas(C(s),C(o),{errorCorrectionLevel:"L",version:20,width:400},function(T){T&&(d(d().message=Ee("qrCodeFailedToRender"),!0),console.error(T))})}catch{d(d().message=Ee("qrCodeImportFailure"),!0),console.error("Failed to import QR Code library")}}E()}),vt(()=>(G(_()),G(S()),G(d())),()=>{var O;_()&&_(_().step.derived.stageName="QRCode",!0);const E=S().getCallbacksOfType(fe.ConfirmationCallback);if(E.length){const T=E[0];Y(h,T.getOptions().map((M,P)=>({value:`${P}`,text:M})))}S().callbacks.forEach((T,M)=>{T.getType()===fe.PollingWaitCallback&&(Y(u,T),Y(f,M))}),Y(y,as((O=d())==null?void 0:O.message)),Y(b,S().callbacks.filter(T=>T.getType()===fe.TextOutputCallback||T.getType()===fe.ConfirmationCallback?!1:T.getType()!==fe.PollingWaitCallback))}),Tt();var w={get componentStyle(){return l()},set componentStyle(E){l(E),B()},get form(){return d()},set form(E){d(E),B()},get formEl(){return g()},set formEl(E){g(E),B()},get journey(){return p()},set journey(E){p(E),B()},get metadata(){return _()},set metadata(E){_(E),B()},get step(){return S()},set step(E){S(E),B()},$set:Ke,$on:(E,O)=>We(t,E,O)};ut();{let E=me(()=>(G(d()),Z(()=>{var O;return(O=d())==null?void 0:O.submit})));Ni(e,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return C(E)},get formEl(){return g()},set formEl(O){g(O)},children:(O,T)=>{var M=hP(),P=qe(M);{var x=ke=>{var Xe=dP(),ge=qe(Xe);{var Le=bn=>{var Fn=uP(),Bn=de(Fn);d_(Bn,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(Fn),Q(bn,Fn)};Ze(ge,bn=>{G(d()),Z(()=>{var Fn;return(Fn=d())==null?void 0:Fn.icon})&&bn(Le)})}var Mt=pe(ge,2),Ct=de(Mt);dt(Ct,{key:"twoFactorAuthentication"}),ce(Mt);var Ut=pe(Mt,2),$t=de(Ut);dt($t,{key:"scanQrCodeWithAuthenticator"}),ce(Ut),Q(ke,Xe)};Ze(P,ke=>{l()!=="inline"&&ke(x)})}var I=pe(P,2);{var D=ke=>{qn(ke,{id:"formFailureMessageAlert",get needsFocus(){return C(k)},type:"error",children:(Xe,ge)=>{Wt();var Le=Vt();Pe(Mt=>wt(Le,Mt),[()=>(G(Ee),C(y),G(d()),Z(()=>{var Mt;return Ee(C(y),null,(Mt=d())==null?void 0:Mt.message)}))]),Q(Xe,Le)},$$slots:{default:!0}})};Ze(I,ke=>{G(d()),Z(()=>{var Xe;return(Xe=d())==null?void 0:Xe.message})&&ke(D)})}var V=pe(I,2);{var j=ke=>{var Xe=fP(),ge=de(Xe);gr(ge,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_my-6 tw_w-24"});var Le=pe(ge,2),Mt=de(Le);dt(Mt,{key:"loading"}),ce(Le),ce(Xe),Q(ke,Xe)};Ze(V,ke=>{C(c)||ke(j)})}var L=pe(V,2);an(L,ke=>Y(s,ke),()=>C(s));var U=pe(L,2);Jn(U,1,()=>C(b),Yn,(ke,Xe,ge)=>{{let Le=me(()=>(C(Xe),G(_()),n(),Z(()=>{var Mt,Ct;return{callback:C(Xe),callbackMetadata:(Mt=_())==null?void 0:Mt.callbacks[ge],selfSubmitFunction:m,stepMetadata:((Ct=_())==null?void 0:Ct.step)&&{..._().step},style:n()}})));os(ke,{get props(){return C(Le)}})}});var F=pe(U,2);{var W=ke=>{const Xe=me(()=>(C(u),G(_()),C(f),n(),Z(()=>{var ge;return{callback:C(u),callbackMetadata:(ge=_())==null?void 0:ge.callbacks[C(f)],options:{inline:!0},selfSubmitFunction:m,style:n()}})));zf(ke,Zt(()=>C(Xe)))};Ze(F,ke=>{C(u)&&ke(W)})}var J=pe(F,2),$=de(J),ne=de($);dt(ne,{key:"qrCodeNotWorking"}),ce($);var ae=pe($,2),te=de(ae);Vf(te,{get href(){return C(o)},classes:"tw_block tw_my-6",target:"_self",children:(ke,Xe)=>{dt(ke,{key:"onMobileOpenInAuthenticator"})},$$slots:{default:!0}});var ie=pe(te,2),Se=de(ie);dt(Se,{key:"copyAndPasteUrlBelow"}),ce(ie);var _e=pe(ie,2),Ne=de(_e),et=de(Ne);dt(et,{key:"url"}),ce(Ne);var Nt=pe(Ne,2),oe=de(Nt);u_(oe,{classes:"tw_fill-current tw_inline-block tw_align-top",size:"16",children:(ke,Xe)=>{dt(ke,{key:"copyUrl"})},$$slots:{default:!0}}),ce(Nt);var Ie=pe(Nt,2);Vr(Ie),an(Ie,ke=>Y(a,ke),()=>C(a)),ce(_e),ce(ae),ce(J);var Be=pe(J,2);{var $e=ke=>{{let Xe=me(()=>(G(p()),Z(()=>{var ge;return(ge=p())==null?void 0:ge.loading})));Un(ke,{get busy(){return C(Xe)},style:"primary",type:"submit",width:"full",children:(ge,Le)=>{dt(ge,{get key(){return C(h),Z(()=>C(h)[0].text)}})},$$slots:{default:!0}})}};Ze(Be,ke=>{C(h),Z(()=>{var Xe;return(Xe=C(h))==null?void 0:Xe.length})&&ke($e)})}Pe(()=>Qu(Ie,C(o))),mn("click",Nt,v),Q(O,M)},$$slots:{default:!0},$$legacy:!0})}var A=je(w);return i(),A}var gP=kn('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 18"><path fill-rule="evenodd" d="M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.777 11.777 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7.159 7.159 0 0 0 1.048-.625 11.775 11.775 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.541 1.541 0 0 0-1.044-1.263 62.467 62.467 0 0 0-2.887-.87C9.843.266 8.69 0 8 0zm2.146 5.146a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 7.793l2.646-2.647z"></path></svg>');function h_(e,t){if(new.target)return Ge({component:h_,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},l=gP();return Pe(()=>{be(l,"height",r()),be(l,"width",r()),Ot(l,0,Cn(n()))}),Q(e,l),je(i)}var pP=Ce('<div class="tw_flex tw_justify-center"><!></div>'),mP=Ce('<li class="tw_text-center"><span class="tw_text-secondary-dark dark:tw_text-secondary-light"> </span></li>'),vP=Ce('<!> <header><h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_-mt-5 tw_mb-2 tw_py-4 tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></header> <hr class="tw_border-collapse tw_border-secondary-light dark:tw_border-secondary-dark tw_mb-8"/> <h2 class="tw_secondary-header dark:tw_secondary-header_dark tw_text-lg"><!></h2> <p class="tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light tw_my-6"><!></p> <ol class="tw_font-mono tw_border tw_border-secondary-light dark:tw_border-secondary-dark tw_bg-white dark:tw_bg-body-dark tw_list-decimal tw_text-secondary-light dark:tw_text-secondary-light tw_py-4 tw_list-inside tw_rounded-md tw_mb-4 tw_columns-2"></ol> <p class="tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light tw_my-6"><!></p> <!>',1);function g_(e,t){if(new.target)return Ge({component:g_,...e});He(t,!1);let n=z(t,"componentStyle",12),r=z(t,"form",12),i=z(t,"formEl",12,null),l=z(t,"journey",12),d=z(t,"step",12);const g="genericStepFailureMessage",p="genericStepHeader",_="genericStepForm";let S=re("genericStepHeader"),k=re(!1),h=re([]),y=re("New Security Key");Vn(()=>{var c;(c=r())!=null&&c.message?(Y(S,g),Y(k,!1)):(Y(S,p),Y(k,!0))}),vt(()=>G(d()),()=>{Y(h,Mf.getCodes(d())),Y(y,Mf.getDeviceName(d()))}),Tt();var b={get componentStyle(){return n()},set componentStyle(c){n(c),B()},get form(){return r()},set form(c){r(c),B()},get formEl(){return i()},set formEl(c){i(c),B()},get journey(){return l()},set journey(c){l(c),B()},get step(){return d()},set step(c){d(c),B()},$set:Ke,$on:(c,u)=>We(t,c,u)};return ut(),Ni(e,{get ariaDescribedBy(){return C(S)},id:_,get needsFocus(){return C(k)},onSubmitWhenValid:()=>r().submit(),get formEl(){return i()},set formEl(c){i(c)},children:(c,u)=>{var f=vP(),s=qe(f);{var o=V=>{var j=pP(),L=de(j);h_(L,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(j),Q(V,j)};Ze(s,V=>{G(r()),G(n()),Z(()=>{var j;return((j=r())==null?void 0:j.icon)&&n()!=="inline"})&&V(o)})}var a=pe(s,2);be(a,"id",p);var m=de(a),v=de(m);dt(v,{key:"yourMultiFactorAuthIsEnabled"}),ce(m);var w=pe(m,2),A=de(w);dt(A,{key:"useThisNewMfaToHelpVerifyYourIdentity"}),ce(w),ce(a);var E=pe(a,4),O=de(E);dt(O,{key:"dontGetLockedOut"}),ce(E);var T=pe(E,2),M=de(T);dt(M,{html:!0,key:"yourRecoveryCodesToAccessAccountForLostDevice"}),ce(T);var P=pe(T,2);Jn(P,5,()=>C(h),Yn,(V,j)=>{var L=mP(),U=de(L),F=de(U,!0);ce(U),ce(L),Pe(()=>wt(F,C(j))),Q(V,L)}),ce(P);var x=pe(P,2),I=de(x);{let V=me(()=>({name:C(y)}));dt(I,{html:!0,key:"useOneOfTheseCodes",get values(){return C(V)}})}ce(x);var D=pe(x,2);{let V=me(()=>(G(l()),Z(()=>{var j;return(j=l())==null?void 0:j.loading})));Un(D,{get busy(){return C(V)},style:"primary",type:"submit",width:"full",children:(j,L)=>{dt(j,{key:"nextButton"})},$$slots:{default:!0}})}Q(c,f)},$$slots:{default:!0},$$legacy:!0}),je(b)}var yP=kn('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"></path><path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"></path><title><!></title></svg>');function p_(e,t){if(new.target)return Ge({component:p_,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=yP(),d=pe(de(l),2),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var _P=Ce('<div class="tw_flex tw_justify-center"><!></div>'),wP=Ce('<!> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-base tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),bP=Ce("<!> <!> <!> <!>",1);function m_(e,t){if(new.target)return Ge({component:m_,...e});He(t,!1);const n=()=>sr(Wr,"$styleStore",r),[r,i]=Or();let l=z(t,"componentStyle",12),d=z(t,"form",12),g=z(t,"formEl",12,null),p=z(t,"journey",12),_=z(t,"metadata",12),S=z(t,"step",12),k=re(!1),h=re(""),y=re();function b(){var f,s,o;(s=(f=_())==null?void 0:f.step)!=null&&s.derived.isStepSelfSubmittable()&&((o=d())==null||o.submit())}Vn(()=>{var f;Y(k,!!((f=d())!=null&&f.message))}),Hr(()=>{l()==="modal"&&au(C(y),p())}),vt(()=>G(d()),()=>{var f;Y(h,as((f=d())==null?void 0:f.message))}),Tt();var c={get componentStyle(){return l()},set componentStyle(f){l(f),B()},get form(){return d()},set form(f){d(f),B()},get formEl(){return g()},set formEl(f){g(f),B()},get journey(){return p()},set journey(f){p(f),B()},get metadata(){return _()},set metadata(f){_(f),B()},get step(){return S()},set step(f){S(f),B()},$set:Ke,$on:(f,s)=>We(t,f,s)};ut();{let f=me(()=>(G(d()),Z(()=>{var s;return(s=d())==null?void 0:s.submit})));Ni(e,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return C(f)},get formEl(){return g()},set formEl(s){g(s)},children:(s,o)=>{var a=bP(),m=qe(a);{var v=P=>{var x=wP(),I=qe(x);{var D=F=>{var W=_P(),J=de(W);p_(J,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(W),Q(F,W)};Ze(I,F=>{G(d()),Z(()=>{var W;return(W=d())==null?void 0:W.icon})&&F(D)})}var V=pe(I,2),j=de(V);dt(j,{key:"registerHeader"}),ce(V);var L=pe(V,2),U=de(L);dt(U,{key:"alreadyHaveAnAccount",html:!0}),ce(L),an(L,F=>Y(y,F),()=>C(y)),Q(P,x)};Ze(m,P=>{l()!=="inline"&&P(v)})}var w=pe(m,2);{var A=P=>{qn(P,{id:"formFailureMessageAlert",get needsFocus(){return C(k)},type:"error",children:(x,I)=>{Wt();var D=Vt();Pe(V=>wt(D,V),[()=>(G(Ee),C(h),G(d()),Z(()=>{var V;return Ee(C(h),null,(V=d())==null?void 0:V.message)}))]),Q(x,D)},$$slots:{default:!0}})};Ze(w,P=>{G(d()),Z(()=>d().message)&&P(A)})}var E=pe(w,2);Jn(E,1,()=>(G(S()),Z(()=>{var P;return(P=S())==null?void 0:P.callbacks})),Yn,(P,x,I)=>{{let D=me(()=>(C(x),G(_()),n(),Z(()=>{var V,j;return{callback:C(x),callbackMetadata:(V=_())==null?void 0:V.callbacks[I],selfSubmitFunction:b,stepMetadata:((j=_())==null?void 0:j.step)&&{..._().step},style:n()}})));os(P,{get props(){return C(D)}})}});var O=pe(E,2);{var T=P=>{{let x=me(()=>(G(p()),Z(()=>{var I;return(I=p())==null?void 0:I.loading})));Un(P,{get busy(){return C(x)},style:"primary",type:"submit",width:"full",children:(I,D)=>{dt(I,{key:"registerButton"})},$$slots:{default:!0}})}},M=Ji(()=>(G(_()),Z(()=>{var P,x,I,D;return((x=(P=_())==null?void 0:P.step)==null?void 0:x.derived.isUserInputOptional)||!((D=(I=_())==null?void 0:I.step)!=null&&D.derived.isStepSelfSubmittable())})));Ze(O,P=>{C(M)&&P(T)})}Q(s,a)},$$slots:{default:!0},$$legacy:!0})}var u=je(c);return i(),u}var SP=kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8.06 6.5a.5.5 0 0 1 .5.5v.776a11.5 11.5 0 0 1-.552 3.519l-1.331 4.14a.5.5 0 0 1-.952-.305l1.33-4.141a10.5 10.5 0 0 0 .504-3.213V7a.5.5 0 0 1 .5-.5Z"></path><path d="M6.06 7a2 2 0 1 1 4 0 .5.5 0 1 1-1 0 1 1 0 1 0-2 0v.332c0 .409-.022.816-.066 1.221A.5.5 0 0 1 6 8.447c.04-.37.06-.742.06-1.115V7Zm3.509 1a.5.5 0 0 1 .487.513 11.5 11.5 0 0 1-.587 3.339l-1.266 3.8a.5.5 0 0 1-.949-.317l1.267-3.8a10.5 10.5 0 0 0 .535-3.048A.5.5 0 0 1 9.569 8Zm-3.356 2.115a.5.5 0 0 1 .33.626L5.24 14.939a.5.5 0 1 1-.955-.296l1.303-4.199a.5.5 0 0 1 .625-.329Z"></path><path d="M4.759 5.833A3.501 3.501 0 0 1 11.559 7a.5.5 0 0 1-1 0 2.5 2.5 0 0 0-4.857-.833.5.5 0 1 1-.943-.334Zm.3 1.67a.5.5 0 0 1 .449.546 10.72 10.72 0 0 1-.4 2.031l-1.222 4.072a.5.5 0 1 1-.958-.287L4.15 9.793a9.72 9.72 0 0 0 .363-1.842.5.5 0 0 1 .546-.449Zm6 .647a.5.5 0 0 1 .5.5c0 1.28-.213 2.552-.632 3.762l-1.09 3.145a.5.5 0 0 1-.944-.327l1.089-3.145c.382-1.105.578-2.266.578-3.435a.5.5 0 0 1 .5-.5Z"></path><path d="M3.902 4.222a4.996 4.996 0 0 1 5.202-2.113.5.5 0 0 1-.208.979 3.996 3.996 0 0 0-4.163 1.69.5.5 0 0 1-.831-.556Zm6.72-.955a.5.5 0 0 1 .705-.052A4.99 4.99 0 0 1 13.059 7v1.5a.5.5 0 1 1-1 0V7a3.99 3.99 0 0 0-1.386-3.028.5.5 0 0 1-.051-.705ZM3.68 5.842a.5.5 0 0 1 .422.568c-.029.192-.044.39-.044.59 0 .71-.1 1.417-.298 2.1l-1.14 3.923a.5.5 0 1 1-.96-.279L2.8 8.821A6.531 6.531 0 0 0 3.058 7c0-.25.019-.496.054-.736a.5.5 0 0 1 .568-.422Zm8.882 3.66a.5.5 0 0 1 .456.54c-.084 1-.298 1.986-.64 2.934l-.744 2.068a.5.5 0 0 1-.941-.338l.745-2.07a10.51 10.51 0 0 0 .584-2.678.5.5 0 0 1 .54-.456Z"></path><path d="M4.81 1.37A6.5 6.5 0 0 1 14.56 7a.5.5 0 1 1-1 0 5.5 5.5 0 0 0-8.25-4.765.5.5 0 0 1-.5-.865Zm-.89 1.257a.5.5 0 0 1 .04.706A5.478 5.478 0 0 0 2.56 7a.5.5 0 0 1-1 0c0-1.664.626-3.184 1.655-4.333a.5.5 0 0 1 .706-.04ZM1.915 8.02a.5.5 0 0 1 .346.616l-.779 2.767a.5.5 0 1 1-.962-.27l.778-2.767a.5.5 0 0 1 .617-.346Zm12.15.481a.5.5 0 0 1 .49.51c-.03 1.499-.161 3.025-.727 4.533l-.07.187a.5.5 0 0 1-.936-.351l.07-.187c.506-1.35.634-2.74.663-4.202a.5.5 0 0 1 .51-.49Z"></path></svg>');function v_(e,t){if(new.target)return Ge({component:v_,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},l=SP();return Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var EP=Ce('<div class="tw_flex tw_justify-center"><!></div>'),kP=Ce('<div class="tw_text-center tw_w-full tw_py-4"><!></div>'),CP=Ce('<header><div class="tw_text-center tw_w-full tw_py-4"><!></div> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></header>'),IP=Ce('<h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <!> <!>',1),AP=Ce('<h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),TP=Ce('<header class="tw_input-spacing"><!></header>'),OP=Ce("<!> <!> <!> <!>",1);function y_(e,t){if(new.target)return Ge({component:y_,...e});He(t,!1);let n=z(t,"allowWebAuthn",12,!0),r=z(t,"componentStyle",12),i=z(t,"form",12),l=z(t,"formEl",12,null),d=z(t,"step",12);const g="genericStepFailureMessage",p="genericStepHeader",_="genericStepForm";let S=re(!1),k=re(""),h=re(""),y=re("genericStepHeader"),b=re(!1),c=re(!0),u=re(!1),f=!1,s=Kr.getWebAuthnStepType(d());function o(v){const w=v.target;Y(k,w.value)}Vn(()=>{var v;(v=i())!=null&&v.message?(Y(y,g),Y(S,!0),Y(b,!1)):(Y(y,p),Y(S,!1),Y(b,!0)),n()&&!f&&(tr.Registration===s&&!C(c)||tr.Authentication===s)&&(f=!0,a())});async function a(){try{switch(s){case tr.Registration:{try{await Kr.register(d(),C(k))}catch{}break}case tr.Authentication:{await Kr.authenticate(d());break}default:break}}catch(v){console.debug("Passkey autofill attempt did not complete",v)}i().submit()}vt(()=>G(i()),()=>{var v;Y(h,as((v=i())==null?void 0:v.message))}),Tt();var m={get allowWebAuthn(){return n()},set allowWebAuthn(v){n(v),B()},get componentStyle(){return r()},set componentStyle(v){r(v),B()},get form(){return i()},set form(v){i(v),B()},get formEl(){return l()},set formEl(v){l(v),B()},get step(){return d()},set step(v){d(v),B()},$set:Ke,$on:(v,w)=>We(t,v,w)};return ut(),Ni(e,{get ariaDescribedBy(){return C(y)},id:_,get needsFocus(){return C(b)},get formEl(){return l()},set formEl(v){l(v)},children:(v,w)=>{var A=OP(),E=qe(A);{var O=j=>{var L=EP(),U=de(L);v_(U,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(L),Q(j,L)};Ze(E,j=>{G(i()),G(r()),Z(()=>{var L;return((L=i())==null?void 0:L.icon)&&r()!=="inline"})&&j(O)})}var T=pe(E,2);{var M=j=>{var L=kP(),U=de(L);gr(U,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),ce(L),Q(j,L)};Ze(T,j=>{C(u)&&j(M)})}var P=pe(T,2);{var x=j=>{qn(j,{id:g,get needsFocus(){return C(S)},type:"error",children:(L,U)=>{Wt();var F=Vt();Pe(W=>wt(F,W),[()=>(G(Ee),C(h),G(i()),Z(()=>{var W;return Ee(C(h),null,(W=i())==null?void 0:W.message)}))]),Q(L,F)},$$slots:{default:!0}})};Ze(P,j=>{G(i()),Z(()=>{var L;return(L=i())==null?void 0:L.message})&&j(x)})}var I=pe(P,2);{var D=j=>{var L=CP();be(L,"id",p);var U=de(L),F=de(U);gr(F,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),ce(U);var W=pe(U,2),J=de(W);dt(J,{key:"verifyYourIdentity"}),ce(W);var $=pe(W,2),ne=de($);dt(ne,{key:"useDeviceForIdentityVerification"}),ce($),ce(L),Q(j,L)},V=j=>{var L=TP();be(L,"id",p);var U=de(L);{var F=J=>{var $=IP(),ne=qe($),ae=de(ne);dt(ae,{key:"nameYourDevice"}),ce(ne);var te=pe(ne,2);{let Se=me(()=>(G(Ee),Z(()=>Ee("optionallyNameDevice"))));Fi(te,{type:"text",isRequired:!1,isFirstInvalidInput:!1,key:"devicename",onChange:o,get label(){return C(Se)}})}var ie=pe(te,2);Un(ie,{style:"primary",type:"submit",width:"full",onClick:()=>{Y(c,!1),Y(u,!0)},children:(Se,_e)=>{dt(Se,{key:"nextButton"})},$$slots:{default:!0}}),Q(J,$)},W=J=>{var $=AP(),ne=qe($),ae=de(ne);{let Se=me(()=>(C(k),G(Ee),Z(()=>({name:C(k).length>0?C(k):Ee("yourDevice")}))));dt(ae,{key:"registerYourDevice",get values(){return C(Se)}})}ce(ne);var te=pe(ne,2),ie=de(te);dt(ie,{key:"chooseYourDeviceForIdentityVerification"}),ce(te),Q(J,$)};Ze(U,J=>{C(c)?J(F):J(W,-1)})}ce(L),Q(j,L)};Ze(I,j=>{G(tr),Z(()=>s===tr.Authentication)?j(D):j(V,-1)})}Q(v,A)},$$slots:{default:!0},$$legacy:!0}),je(m)}function PP(e,t={}){var i,l;if(!e||e.type!=="Step")return qf;const n=(l=(i=e==null?void 0:e.getStage)==null?void 0:i.call(e))==null?void 0:l.trim();if(n&&s_[n])return s_[n].component;switch((e==null?void 0:e.getStage)&&e.getStage()){case"OneTimePassword":return c_;case"DefaultRegistration":return m_;case"DefaultLogin":return Wf}if(L5(e))return Wf;if(Kr.getWebAuthnStepType(e))return y_;if(Mf.isDisplayStep(e))return g_;if(Ey.isQRCodeStep(e))return f_;if(e.getCallbacksOfType(fe.SuspendedTextOutputCallback).length>0)return o_;for(const d of Object.values(t))if(d.detect(e))return d.component;return qf}var RP=Ce('<div class="tw_text-center tw_w-full tw_py-4"><!></div>'),MP=Ce('<div class="tw_text-center tw_w-full tw_py-4"><!></div>'),LP=Ce("<!> <!>",1);function Kf(e,t){if(new.target)return Ge({component:Kf,...e});He(t,!1);const n=()=>sr(p(),"$journeyStore",r),[r,i]=Or();let l=z(t,"componentStyle",12),d=z(t,"displayIcon",12),g=z(t,"formEl",12,null),p=z(t,"journeyStore",12),_=z(t,"externalStages",28,()=>({}));n()||(console.error("Error: missing configuration."),console.error(`Import \`configure\` and \`await\` it before using the journey, user, or protect APIs. Example:
50
+ `)}`);super(g);Je(this,"_tag");Je(this,"traces");Je(this,Z_);this._tag=n,this.traces=i,this[nm]=Ek,this.name=d,this.stack=p}pipe(){return ic(this,arguments)}toString(){return this.stack}[(Z_=nm,Mo)](){return this.stack}}class kk extends Ud{constructor(n,r=[]){super("Fail",n,r);Je(this,"error");this.error=n}}const Ck=(e,t=[])=>new kk(e,t);class Ik extends Ud{constructor(n,r=[]){super("Die",n,r);Je(this,"defect");this.defect=n}}const Ak=(e,t=[])=>new Ik(e,t);class Tk extends Ud{constructor(t=[]){super("Interrupt","interrupted",t)}}const Ok=(e=[])=>new Tk(e),Pk=e=>e._tag==="Fail",oc=e=>e._tag==="Die",rm=e=>e._tag==="Interrupt",im=Symbol.for("effect/Micro/MicroFiber"),Rk={_A:ls,_E:ls};Y_=im;class sm{constructor(t,n=!0){Je(this,"context");Je(this,"interruptible");Je(this,Y_);Je(this,"_stack",[]);Je(this,"_observers",[]);Je(this,"_exit");Je(this,"_children");Je(this,"currentOpCount",0);Je(this,"_interrupted",!1);Je(this,"_yielded");this.context=t,this.interruptible=n,this[im]=Rk}getRef(t){return bk(this.context,t)}addObserver(t){return this._exit?(t(this._exit),HE):(this._observers.push(t),()=>{const n=this._observers.indexOf(t);n>=0&&this._observers.splice(n,1)})}unsafeInterrupt(){this._exit||(this._interrupted=!0,this.interruptible&&this.evaluate(gm))}unsafePoll(){return this._exit}evaluate(t){if(this._exit)return;if(this._yielded!==void 0){const i=this._yielded;this._yielded=void 0,i()}const n=this.runLoop(t);if(n===xa)return;const r=am.interruptChildren&&am.interruptChildren(this);if(r!==void 0)return this.evaluate(Jt(r,()=>n));this._exit=n;for(let i=0;i<this._observers.length;i++)this._observers[i](n);this._observers.length=0}runLoop(t){let n=!1,r=t;this.currentOpCount=0;try{for(;;){if(this.currentOpCount++,!n&&this.getRef(fc).shouldYield(this)){n=!0;const i=r;r=Jt(Nk,()=>i)}if(r=r[Fd](this),r===xa){const i=this._yielded;return ac in i?(this._yielded=void 0,i):xa}}}catch(i){return cs(r,Fd)?xo(i):xo(`MicroFiber.runLoop: Not a valid effect: ${String(r)}`)}}getCont(t){for(;;){const n=this._stack.pop();if(!n)return;const r=n[lc]&&n[lc](this);if(r)return{[t]:r};if(n[t])return n}}yieldWith(t){return this._yielded=t,xa}children(){return this._children??(this._children=new Set)}}const am=Ro("effect/Micro/fiberMiddleware",()=>({interruptChildren:void 0})),Mk=e=>Ua(()=>{for(const r of e)r.unsafeInterrupt();const t=e[Symbol.iterator](),n=Ua(()=>{let r=t.next();for(;!r.done;){if(r.value.unsafePoll()){r=t.next();continue}const i=r.value;return um(l=>{i.addObserver(d=>{l(n)})})}return No});return n}),om=Symbol.for("effect/Micro/identifier"),jt=Symbol.for("effect/Micro/args"),Fd=Symbol.for("effect/Micro/evaluate"),ds=Symbol.for("effect/Micro/successCont"),Da=Symbol.for("effect/Micro/failureCont"),lc=Symbol.for("effect/Micro/ensureCont"),xa=Symbol.for("effect/Micro/Yield"),Lk={_A:ls,_E:ls,_R:ls},Dk={...Sk,_op:"Micro",[tm]:Lk,pipe(){return ic(this,arguments)},[Symbol.iterator](){return new Ql(new jp(this))},toJSON(){return{_id:"Micro",op:this[om],...jt in this?{args:this[jt]}:void 0}},toString(){return Lo(this)},[Mo](){return Lo(this)}};function xk(e){return xo("Micro.evaluate: Not implemented")}const cc=e=>({...Dk,[om]:e.op,[Fd]:e.eval??xk,[ds]:e.contA,[Da]:e.contE,[lc]:e.ensure}),Oi=e=>{const t=cc(e);return function(){const n=Object.create(t);return n[jt]=e.single===!1?arguments:arguments[0],n}},lm=e=>{const t={...cc(e),[ac]:ac,_tag:e.op,get[e.prop](){return this[jt]},toJSON(){return{_id:"MicroExit",_tag:e.op,[e.prop]:this[jt]}},[$s](n){return jk(n)&&n._tag===e.op&&ec(this[jt],n[jt])},[Ai](){return Rd(this,Od(us(e.op))(Ti(this[jt])))}};return function(n){const r=Object.create(t);return r[jt]=n,r[ds]=void 0,r[Da]=void 0,r[lc]=void 0,r}},Sn=lm({op:"Success",prop:"value",eval(e){const t=e.getCont(ds);return t?t[ds](this[jt],e):e.yieldWith(this)}}),Na=lm({op:"Failure",prop:"cause",eval(e){let t=e.getCont(Da);for(;rm(this[jt])&&t&&e.interruptible;)t=e.getCont(Da);return t?t[Da](this[jt],e):e.yieldWith(this)}}),nn=e=>Na(Ck(e)),Pi=Oi({op:"Sync",eval(e){const t=this[jt](),n=e.getCont(ds);return n?n[ds](t,e):e.yieldWith(fm(t))}}),Ua=Oi({op:"Suspend",eval(e){return this[jt]()}}),Nk=Oi({op:"Yield",eval(e){let t=!1;return e.getRef(fc).scheduleTask(()=>{t||e.evaluate(No)},this[jt]??0),e.yieldWith(()=>{t=!0})}})(0),Uk=e=>xo(e),cm=Sn(void 0),Do=e=>Ua(()=>{try{return Sn(e.try())}catch(t){return nn(e.catch(t))}}),Zs=e=>Bd(function(t,n){e(n).then(r=>t(Sn(r)),r=>t(Uk(r)))},e.length!==0),Ri=e=>Bd(function(t,n){try{e.try(n).then(r=>t(Sn(r)),r=>t(nn(e.catch(r))))}catch(r){t(nn(e.catch(r)))}},e.try.length!==0),Fk=Oi({op:"WithMicroFiber",eval(e){return this[jt](e)}}),Bd=Oi({op:"Async",single:!1,eval(e){const t=this[jt][0];let n=!1,r=!1;const i=this[jt][1]?new AbortController:void 0,l=t(d=>{n||(n=!0,r?e.evaluate(d):r=d)},i==null?void 0:i.signal);return r!==!1?r:(r=!0,e._yielded=()=>{n=!0},i===void 0&&l===void 0||e._stack.push(Bk(()=>(n=!0,i==null||i.abort(),l??No))),xa)}}),Bk=Oi({op:"AsyncFinalizer",ensure(e){e.interruptible&&(e.interruptible=!1,e._stack.push(eC(!0)))},contE(e,t){return rm(e)?Jt(this[jt](),()=>Na(e)):Na(e)}}),um=e=>Bd(e,e.length>=2),dm=(...e)=>Ua(()=>zk(e.length===1?e[0]():e[1].call(e[0]))),zk=Oi({op:"Iterator",contA(e,t){const n=this[jt].next(e);return n.done?Sn(n.value):(t._stack.push(this),KE(n.value))},eval(e){return this[ds](void 0,e)}}),zd=cr(2,(e,t)=>qr(e,n=>t)),Vk=cr(2,(e,t)=>Jt(e,n=>{const r=La(t)?t:typeof t=="function"?t(n):t;return La(r)?r:Sn(r)})),pi=cr(2,(e,t)=>Jt(e,n=>{const r=La(t)?t:typeof t=="function"?t(n):t;return La(r)?zd(r,n):Sn(n)})),Jt=cr(2,(e,t)=>{const n=Object.create(Hk);return n[jt]=e,n[ds]=t,n}),Hk=cc({op:"OnSuccess",eval(e){return e._stack.push(this),this[jt]}}),qr=cr(2,(e,t)=>Jt(e,n=>Sn(t(n)))),jk=e=>cs(e,ac),fm=Sn,hm=Na,gm=hm(Ok()),xo=e=>hm(Ak(e)),uc=e=>e._tag==="Success",qk=e=>e._tag==="Failure",dc=e=>qk(e)&&e.cause._tag==="Fail",No=fm(void 0),Wk="setImmediate"in globalThis?globalThis.setImmediate:e=>setTimeout(e,0);class pm{constructor(){Je(this,"tasks",[]);Je(this,"running",!1);Je(this,"afterScheduled",()=>{this.running=!1,this.runTasks()})}scheduleTask(t,n){this.tasks.push(t),this.running||(this.running=!0,Wk(this.afterScheduled))}runTasks(){const t=this.tasks;this.tasks=[];for(let n=0,r=t.length;n<r;n++)t[n]()}shouldYield(t){return t.currentOpCount>=t.getRef(Gk)}flush(){for(;this.tasks.length>0;)this.runTasks()}}class Gk extends Nd()("effect/Micro/currentMaxOpsBeforeYield",{defaultValue:()=>2048}){}class Kk extends Nd()("effect/Micro/currentConcurrency",{defaultValue:()=>"unbounded"}){}class fc extends Nd()("effect/Micro/currentScheduler",{defaultValue:()=>new pm}){}const $k=cr(e=>La(e[1]),(e,t,n)=>Zk(e,t,(r,i)=>[r,i],n)),Zk=cr(e=>La(e[1]),(e,t,n,r)=>r!=null&&r.concurrent?qr(tC([e,t],{concurrency:2}),([i,l])=>n(i,l)):Jt(e,i=>qr(t,l=>n(i,l)))),Yk=cr(2,(e,t)=>{const n=Object.create(Jk);return n[jt]=e,n[Da]=t,n}),Jk=cc({op:"OnFailure",eval(e){return e._stack.push(this),this[jt]}}),Xk=cr(3,(e,t,n)=>Yk(e,r=>t(r)?n(r):Na(r))),Qk=cr(3,(e,t,n)=>Xk(e,t,r=>Vk(n(r),Na(r)))),Ys=cr(2,(e,t)=>Qk(e,Pk,n=>t(n.error))),eC=Oi({op:"SetInterruptible",ensure(e){if(e.interruptible=this[jt],e._interrupted&&e.interruptible)return()=>gm}}),tC=(e,t)=>Array.isArray(e)||WE(e)?Vd(e,ls,t):t!=null&&t.discard?Vd(Object.values(e),ls,t):Ua(()=>{const n={};return zd(Vd(Object.entries(e),([r,i])=>qr(i,l=>{n[r]=l}),{discard:!0,concurrency:t==null?void 0:t.concurrency}),n)}),nC=Oi({op:"While",contA(e,t){return this[jt].step(e),this[jt].while()?(t._stack.push(this),this[jt].body()):No},eval(e){return this[jt].while()?(e._stack.push(this),this[jt].body()):No}}),Vd=(e,t,n)=>Fk(r=>{const i=(n==null?void 0:n.concurrency)==="inherit"?r.getRef(Kk):(n==null?void 0:n.concurrency)??1,l=i==="unbounded"?Number.POSITIVE_INFINITY:Math.max(1,i),d=fk(e);let g=d.length;if(g===0)return n!=null&&n.discard?cm:Sn([]);const p=n!=null&&n.discard?void 0:new Array(g);let _=0;return l===1?zd(nC({while:()=>_<d.length,body:()=>t(d[_],_),step:p?S=>p[_++]=S:S=>_++}),p):um(S=>{const k=new Set;let h,y=0,b=0,c=!1,u=!1;function f(){for(c=!0;y<l&&_<g;){const a=_,o=d[a];_++,y++;try{const s=rC(r,t(o,a),!0,!0);k.add(s),s.addObserver(m=>{k.delete(s),!u&&(m._tag==="Failure"?h===void 0&&(h=m,g=_,k.forEach(v=>v.unsafeInterrupt())):p!==void 0&&(p[a]=m.value),b++,y--,b===g?S(h??Sn(p)):!c&&y<l&&f())})}catch(s){h=xo(s),g=_,k.forEach(m=>m.unsafeInterrupt())}}c=!1}return f(),Ua(()=>(u=!0,_=g,Mk(k)))})}),rC=(e,t,n=!1,r=!1)=>{const i=new sm(e.context,e.interruptible);return r||(e.children().add(i),i.addObserver(()=>e.children().delete(i))),n?i.evaluate(t):e.getRef(fc).scheduleTask(()=>i.evaluate(t),0),i},iC=(e,t)=>{const n=new sm(fc.context(new pm));return n.evaluate(e),n},fs=(e,t)=>new Promise((n,r)=>{iC(e).addObserver(n)});function Uo(e,t,n){if(uc(e))return e.value;if(dc(e))return e.cause.error;const r=oc(e.cause)?e.cause.defect:void 0;return{error:t,message:r instanceof Error?r.message:String(r??"Unknown defect"),type:n}}function Hd(e=32){const t=crypto.getRandomValues(new Uint8Array(e));return btoa(t.join("")).replace(/[^a-zA-Z0-9]+/,"")}function mm(){return Hd(16)}function sC(){return Hd(32)}async function vm(e){const t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t),r=Array.from(new Uint8Array(n));return btoa(String.fromCharCode(...r)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function hc(e,t,n){return e===1?t:n!==void 0?n:t+"s"}function aC(e){const t=(e||"").split("/").map(r=>r.trim()).filter(r=>r!=="");return t[0]!=="root"&&t.unshift("root"),t.map(r=>`realms/${r}`).join("/")}function ym({endpoint:e,realmPath:t,customPaths:n}){const r=aC(t),i={authenticate:`json/${r}/authenticate`,authorize:`oauth2/${r}/authorize`,accessToken:`oauth2/${r}/access_token`,endSession:`oauth2/${r}/connect/endSession`,userInfo:`oauth2/${r}/userinfo`,revoke:`oauth2/${r}/token/revoke`,sessions:`json/${r}/sessions/`};return n&&n[e]?n[e]:i[e]}function _m(e){const n=e.protocol==="http:"&&["","80"].indexOf(e.port)===-1||e.protocol==="https:"&&["","443"].indexOf(e.port)===-1?`:${e.port}`:"";let r=e.hostname;return r.includes(":")&&!r.startsWith("[")&&!r.endsWith("]")&&(r=`[${r}]`),`${e.protocol}//${r}${n}`}function wm(e,t){const n=new URL(e);if(t.startsWith("/"))return`${_m(n)}${t}`;const r=n.pathname.split("/"),i=t.split("/").filter(d=>!!d),l=[...r.slice(0,-1),...i].join("/");return`${_m(n)}${l}`}function bm(e){const t=[];for(const n in e)e[n]&&t.push(n+"="+encodeURIComponent(e[n]));return t.join("&")}function oC(e){if(typeof e=="object"&&e!==null){if("message"in e&&typeof e.message=="string")return e.message;if("error"in e&&typeof e.error=="string")return e.error;if("data"in e&&typeof e.data=="object"&&e.data!==null){const t=e.data;if(typeof t.message=="string")return t.message;if(typeof t.error=="string")return t.error;if(typeof t.error_description=="string")return t.error_description}if("status"in e&&(typeof e.status=="number"||typeof e.status=="string"))return`HTTP error ${String(e.status)}`}return"An unknown error occurred"}const lC="/.well-known/openid-configuration";function cC(e){try{const t=new URL(e),n=t.hostname==="localhost"||t.hostname==="127.0.0.1",r=t.protocol==="https:",i=t.protocol==="http:"&&n;return!r&&!i?!1:t.pathname.endsWith(lC)}catch{return!1}}function uC(e){return typeof e=="object"&&e!==null&&"type"in e&&"message"in e&&"error"in e}function dC(e){return e?uC(e)?e:{error:"Well-known configuration fetch failed",message:oC(e),type:"wellknown_error",status:"unknown"}:{error:"Well-known configuration fetch failed",message:"No response received from well-known endpoint",type:"wellknown_error",status:"unknown"}}function hs(e,t,n){return!e||e[t]===void 0?n:e[t]}function gc(e,t){return e.reduce((n,r)=>{var i;if(r.includes(".")){const l=r.split("."),d=l[0],g=l[1],p=(i=t[d])==null?void 0:i[g];n[g]=p??""}else n[r]=t[r]!=null?t[r]:null;return n},{})}function fC(e,t){return e.reduce((n,r)=>(n=`${n}${t[r].filename};`,n),"")}const hC="forgerock-sdk",fe={BooleanAttributeInputCallback:"BooleanAttributeInputCallback",ChoiceCallback:"ChoiceCallback",ConfirmationCallback:"ConfirmationCallback",DeviceProfileCallback:"DeviceProfileCallback",HiddenValueCallback:"HiddenValueCallback",KbaCreateCallback:"KbaCreateCallback",MetadataCallback:"MetadataCallback",NameCallback:"NameCallback",NumberAttributeInputCallback:"NumberAttributeInputCallback",PasswordCallback:"PasswordCallback",PingOneProtectEvaluationCallback:"PingOneProtectEvaluationCallback",PingOneProtectInitializeCallback:"PingOneProtectInitializeCallback",PollingWaitCallback:"PollingWaitCallback",ReCaptchaCallback:"ReCaptchaCallback",ReCaptchaEnterpriseCallback:"ReCaptchaEnterpriseCallback",RedirectCallback:"RedirectCallback",SelectIdPCallback:"SelectIdPCallback",StringAttributeInputCallback:"StringAttributeInputCallback",SuspendedTextOutputCallback:"SuspendedTextOutputCallback",TermsAndConditionsCallback:"TermsAndConditionsCallback",TextInputCallback:"TextInputCallback",TextOutputCallback:"TextOutputCallback",ValidatedCreatePasswordCallback:"ValidatedCreatePasswordCallback",ValidatedCreateUsernameCallback:"ValidatedCreateUsernameCallback"};var Wr;(function(e){e.LoginFailure="LoginFailure",e.LoginSuccess="LoginSuccess",e.Step="Step"})(Wr||(Wr={}));var rn;(function(e){e.CannotContainCharacters="CANNOT_CONTAIN_CHARACTERS",e.CannotContainDuplicates="CANNOT_CONTAIN_DUPLICATES",e.CannotContainOthers="CANNOT_CONTAIN_OTHERS",e.LeastCapitalLetters="AT_LEAST_X_CAPITAL_LETTERS",e.LeastNumbers="AT_LEAST_X_NUMBERS",e.MatchRegexp="MATCH_REGEXP",e.MaximumLength="MAX_LENGTH",e.MaximumNumber="MAXIMUM_NUMBER_VALUE",e.MinimumLength="MIN_LENGTH",e.MinimumNumber="MINIMUM_NUMBER_VALUE",e.Required="REQUIRED",e.Unique="UNIQUE",e.UnknownPolicy="UNKNOWN_POLICY",e.ValidArrayItems="VALID_ARRAY_ITEMS",e.ValidDate="VALID_DATE",e.ValidEmailAddress="VALID_EMAIL_ADDRESS_FORMAT",e.ValidNameFormat="VALID_NAME_FORMAT",e.ValidNumber="VALID_NUMBER",e.ValidPhoneFormat="VALID_PHONE_FORMAT",e.ValidQueryFilter="VALID_QUERY_FILTER",e.ValidType="VALID_TYPE"})(rn||(rn={}));function Sm(e,t){return`${t||"FR-SDK"}-authflow-${e}`}function Em(e){const t=sC(),n=mm(),r=Sm(e.clientId,e.prefix),i={...e,state:n,verifier:t};return[i,()=>sessionStorage.setItem(r,JSON.stringify(i))]}function gC(e,t){const n=Sm(e,t),r=sessionStorage.getItem(n);sessionStorage.removeItem(n);try{return JSON.parse(r)}catch{throw new Error("Stored values for Auth URL could not be parsed")}}function km(e){const t=new URLSearchParams(e.query);return t.set("client_id",e.clientId),t.set("response_type",e.responseType),t.set("scope",e.scope),t.set("redirect_uri",e.redirectUri),t.set("code_challenge",e.challenge),t.set("code_challenge_method","S256"),t.set("state",e.state),e.responseMode&&t.set("response_mode",e.responseMode),e.prompt&&t.set("prompt",e.prompt),e.loginHint&&t.set("login_hint",e.loginHint),e.nonce&&t.set("nonce",e.nonce),e.display&&t.set("display",e.display),e.uiLocales&&t.set("ui_locales",e.uiLocales),e.acrValues&&t.set("acr_values",e.acrValues),t}async function jd(e,t){const n=new URL(e).origin,[r,i]=Em({clientId:t.clientId,serverConfig:{baseUrl:n},responseType:t.responseType,redirectUri:t.redirectUri,scope:t.scope}),l=await vm(r.verifier),d=km({...t,challenge:l,state:r.state}),g=new URL(`${e}?${d.toString()}`);return i(),g.toString()}function Cm(e,t="unknown"){return{error:"Well-known configuration fetch failed",message:e,type:"wellknown_error",status:t}}function pC(e){return typeof e=="object"&&e!==null}function mC(e){return pC(e)?typeof e.issuer=="string"&&typeof e.authorization_endpoint=="string"&&typeof e.token_endpoint=="string":!1}function Im(e){const t={url:e,headers:{Accept:"application/json"}};return{async applyQuery(n){let r;try{r=await n(t)}catch(i){const l=i instanceof Error?i.message:"An unknown error occurred during well-known fetch";return{error:{status:"CUSTOM_ERROR",error:l,data:Cm(l)}}}return r.error?{error:r.error}:mC(r.data)?{data:r.data}:{error:{status:"CUSTOM_ERROR",error:"Invalid well-known response: missing required fields (issuer, authorization_endpoint, token_endpoint)",data:Cm("Invalid well-known response: missing required fields (issuer, authorization_endpoint, token_endpoint)")}}}}}function gs(e,t){let n;switch(e){case"localStorage":n="local";break;case"sessionStorage":n="session";break;case"custom":n="custom";break}return{error:`${t}_error`,message:`Error ${t.toLowerCase()} value from ${n} storage`,type:t==="Parsing"?"parse_error":"unknown_error"}}function Am(e){const{type:t,prefix:n="pic",name:r}=e,i=`${n}-${r}`,l={sessionStorage,localStorage};if(t==="custom"&&!("custom"in e))throw new Error("Custom storage configuration must include a custom storage object");return{get:async function(){if(t==="custom"){let p;try{p=await e.custom.get(i)}catch{return gs(t,"Retrieving")}if(p===null||typeof p=="object"&&"error"in p)return p;try{return JSON.parse(p)}catch{return gs(t,"Parsing")}}let g;try{if(g=await l[t].getItem(i),g===null)return g}catch{return gs(t,"Retrieving")}try{return JSON.parse(g)}catch{return gs(t,"Parsing")}},set:async function(g){const p=JSON.stringify(g);if(t==="custom")try{return await e.custom.set(i,p)??null}catch{return gs(t,"Storing")}try{return await l[t].setItem(i,p),Promise.resolve(null)}catch{return gs(t,"Storing")}},remove:async function(){if(t==="custom")try{return await e.custom.remove(i)??null}catch{return gs(t,"Removing")}try{return await l[t].removeItem(i),Promise.resolve(null)}catch{return gs(t,"Removing")}}}}function Tm(e){return typeof e=="object"&&e!==null}function vC(e){return Tm(e)&&typeof e.request_uri=="string"}function yC(e,t,n){var i;const r=(i=e.response_modes_supported)==null?void 0:i.includes("pi.flow");return[e.authorization_endpoint,{clientId:t.clientId,redirectUri:t.redirectUri,scope:t.scope||"openid",responseType:t.responseType||"code",...r&&{responseMode:"pi.flow"},...n}]}function Om(e){return"status"in e}const _C=new Set(["auth_error","argument_error","network_error","unknown_error","wellknown_error"]);function wC(e){return typeof e=="string"&&_C.has(e)}function bC(e){return Tm(e)&&typeof e.error=="string"?{error:e.error,error_description:typeof e.error_description=="string"?e.error_description:"",type:wC(e.type)?e.type:"unknown_error",...typeof e.redirectUrl=="string"&&{redirectUrl:e.redirectUrl}}:{error:"Unknown_Error",error_description:"Unexpected error response shape",type:"unknown_error"}}function SC({authorizationEndpoint:e,clientId:t,requestUri:n,prompt:r}){const i=new URL(e);return i.searchParams.set("client_id",t),i.searchParams.set("request_uri",n),r&&i.searchParams.set("prompt",r),i.toString()}function Pm(e){return Om(e)?bC(e.data):{error:e.code??"Unknown_Error",error_description:e.message??"An unknown error occurred during authorization",type:"unknown_error"}}function Dn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var EC=typeof Symbol=="function"&&Symbol.observable||"@@observable",Rm=EC,qd=()=>Math.random().toString(36).substring(7).split("").join("."),kC={INIT:`@@redux/INIT${qd()}`,REPLACE:`@@redux/REPLACE${qd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${qd()}`},pc=kC;function ps(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Mm(e,t,n){if(typeof e!="function")throw new Error(Dn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Dn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Dn(1));return n(Mm)(e,t)}let r=e,i=t,l=new Map,d=l,g=0,p=!1;function _(){d===l&&(d=new Map,l.forEach((u,f)=>{d.set(f,u)}))}function S(){if(p)throw new Error(Dn(3));return i}function k(u){if(typeof u!="function")throw new Error(Dn(4));if(p)throw new Error(Dn(5));let f=!0;_();const a=g++;return d.set(a,u),function(){if(f){if(p)throw new Error(Dn(6));f=!1,_(),d.delete(a),l=null}}}function h(u){if(!ps(u))throw new Error(Dn(7));if(typeof u.type>"u")throw new Error(Dn(8));if(typeof u.type!="string")throw new Error(Dn(17));if(p)throw new Error(Dn(9));try{p=!0,i=r(i,u)}finally{p=!1}return(l=d).forEach(a=>{a()}),u}function y(u){if(typeof u!="function")throw new Error(Dn(10));r=u,h({type:pc.REPLACE})}function b(){const u=k;return{subscribe(f){if(typeof f!="object"||f===null)throw new Error(Dn(11));function a(){const s=f;s.next&&s.next(S())}return a(),{unsubscribe:u(a)}},[Rm](){return this}}}return h({type:pc.INIT}),{dispatch:h,subscribe:k,getState:S,replaceReducer:y,[Rm]:b}}function CC(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:pc.INIT})>"u")throw new Error(Dn(12));if(typeof n(void 0,{type:pc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Dn(13))})}function Wd(e){const t=Object.keys(e),n={};for(let l=0;l<t.length;l++){const d=t[l];typeof e[d]=="function"&&(n[d]=e[d])}const r=Object.keys(n);let i;try{CC(n)}catch(l){i=l}return function(d={},g){if(i)throw i;let p=!1;const _={};for(let S=0;S<r.length;S++){const k=r[S],h=n[k],y=d[k],b=h(y,g);if(typeof b>"u")throw g&&g.type,new Error(Dn(14));_[k]=b,p=p||b!==y}return p=p||r.length!==Object.keys(d).length,p?_:d}}function mc(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function IC(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(Dn(15))};const d={getState:i.getState,dispatch:(p,..._)=>l(p,..._)},g=e.map(p=>p(d));return l=mc(...g)(i.dispatch),{...i,dispatch:l}}}function Lm(e){return ps(e)&&"type"in e&&typeof e.type=="string"}var Gd=Symbol.for("immer-nothing"),Fo=Symbol.for("immer-draftable"),An=Symbol.for("immer-state");function xn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ur=Object,Js=ur.getPrototypeOf,Bo="constructor",zo="prototype",Kd="configurable",vc="enumerable",yc="writable",Vo="value",dr=e=>!!e&&!!e[An];function fr(e){var t;return e?xm(e)||qo(e)||!!e[Fo]||!!((t=e[Bo])!=null&&t[Fo])||Wo(e)||Go(e):!1}var AC=ur[zo][Bo].toString(),Dm=new WeakMap;function xm(e){if(!e||!Fa(e))return!1;const t=Js(e);if(t===null||t===ur[zo])return!0;const n=ur.hasOwnProperty.call(t,Bo)&&t[Bo];if(n===Object)return!0;if(!Qs(n))return!1;let r=Dm.get(n);return r===void 0&&(r=Function.toString.call(n),Dm.set(n,r)),r===AC}function TC(e){return dr(e)||xn(15,e),e[An].base_}function Ho(e,t,n=!0){Xs(e)===0?(n?Reflect.ownKeys(e):ur.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Xs(e){const t=e[An];return t?t.type_:qo(e)?1:Wo(e)?2:Go(e)?3:0}var jo=(e,t,n=Xs(e))=>n===2?e.has(t):ur[zo].hasOwnProperty.call(e,t),Mi=(e,t,n=Xs(e))=>n===2?e.get(t):e[t],_c=(e,t,n,r=Xs(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function OC(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var qo=Array.isArray,Wo=e=>e instanceof Map,Go=e=>e instanceof Set,Fa=e=>typeof e=="object",Qs=e=>typeof e=="function",$d=e=>typeof e=="boolean";function PC(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var RC=e=>Fa(e)?e==null?void 0:e[An]:null,Li=e=>e.copy_||e.base_,Zd=e=>e.modified_?e.copy_:e.base_;function Yd(e,t){if(Wo(e))return new Map(e);if(Go(e))return new Set(e);if(qo(e))return Array[zo].slice.call(e);const n=xm(e);if(t===!0||t==="class_only"&&!n){const r=ur.getOwnPropertyDescriptors(e);delete r[An];let i=Reflect.ownKeys(r);for(let l=0;l<i.length;l++){const d=i[l],g=r[d];g[yc]===!1&&(g[yc]=!0,g[Kd]=!0),(g.get||g.set)&&(r[d]={[Kd]:!0,[yc]:!0,[vc]:g[vc],[Vo]:e[d]})}return ur.create(Js(e),r)}else{const r=Js(e);if(r!==null&&n)return{...e};const i=ur.create(r);return ur.assign(i,e)}}function Jd(e,t=!1){return bc(e)||dr(e)||!fr(e)||(Xs(e)>1&&ur.defineProperties(e,{set:wc,add:wc,clear:wc,delete:wc}),ur.freeze(e),t&&Ho(e,(n,r)=>{Jd(r,!0)},!1)),e}function MC(){xn(2)}var wc={[Vo]:MC};function bc(e){return e===null||!Fa(e)?!0:ur.isFrozen(e)}var Sc="MapSet",Ec="Patches",Nm="ArrayMethods",kc={};function ea(e){const t=kc[e];return t||xn(0,e),t}var Um=e=>!!kc[e];function LC(e,t){kc[e]||(kc[e]=t)}var Ko,Fm=()=>Ko,DC=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Um(Sc)?ea(Sc):void 0,arrayMethodsPlugin_:Um(Nm)?ea(Nm):void 0});function Bm(e,t){t&&(e.patchPlugin_=ea(Ec),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Xd(e){Qd(e),e.drafts_.forEach(xC),e.drafts_=null}function Qd(e){e===Ko&&(Ko=e.parent_)}var zm=e=>Ko=DC(Ko,e);function xC(e){const t=e[An];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Vm(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[An].modified_&&(Xd(t),xn(4)),fr(e)&&(e=Hm(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[An].base_,e,t)}else e=Hm(t,n);return NC(t,e,!0),Xd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Gd?e:void 0}function Hm(e,t){if(bc(t))return t;const n=t[An];if(!n)return Ic(t,e.handledSet_,e);if(!Cc(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);Wm(n,e)}return n.copy_}function NC(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Jd(t,n)}function jm(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Cc=(e,t)=>e.scope_===t,UC=[];function qm(e,t,n,r){const i=Li(e),l=e.type_;if(r!==void 0&&Mi(i,r,l)===t){_c(i,r,n,l);return}if(!e.draftLocations_){const g=e.draftLocations_=new Map;Ho(i,(p,_)=>{if(dr(_)){const S=g.get(_)||[];S.push(p),g.set(_,S)}})}const d=e.draftLocations_.get(t)??UC;for(const g of d)_c(i,g,n,l)}function FC(e,t,n){e.callbacks_.push(function(i){var g;const l=t;if(!l||!Cc(l,i))return;(g=i.mapSetPlugin_)==null||g.fixSetContents(l);const d=Zd(l);qm(e,l.draft_??l,d,n),Wm(l,i)})}function Wm(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const l=i.getPath(e);l&&i.generatePatches_(e,l,t)}jm(e)}}function BC(e,t,n){const{scope_:r}=e;if(dr(n)){const i=n[An];Cc(i,r)&&i.callbacks_.push(function(){Tc(e);const d=Zd(i);qm(e,n,d,t)})}else fr(n)&&e.callbacks_.push(function(){const l=Li(e);e.type_===3?l.has(n)&&Ic(n,r.handledSet_,r):Mi(l,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ic(Mi(e.copy_,t,e.type_),r.handledSet_,r)})}function Ic(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||dr(e)||t.has(e)||!fr(e)||bc(e)||(t.add(e),Ho(e,(r,i)=>{if(dr(i)){const l=i[An];if(Cc(l,n)){const d=Zd(l);_c(e,r,d,e.type_),jm(l)}}else fr(i)&&Ic(i,t,n)})),e}function zC(e,t){const n=qo(e),r={type_:n?1:0,scope_:t?t.scope_:Fm(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,l=Ac;n&&(i=[r],l=$o);const{revoke:d,proxy:g}=Proxy.revocable(i,l);return r.draft_=g,r.revoke_=d,[g,r]}var Ac={get(e,t){if(t===An)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=Li(e);if(!jo(i,t,e.type_))return VC(e,i,t);const l=i[t];if(e.finalized_||!fr(l)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&PC(t))return l;if(l===ef(e.base_,t)){Tc(e);const d=e.type_===1?+t:t,g=nf(e.scope_,l,e,d);return e.copy_[d]=g}return l},has(e,t){return t in Li(e)},ownKeys(e){return Reflect.ownKeys(Li(e))},set(e,t,n){const r=Gm(Li(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=ef(Li(e),t),l=i==null?void 0:i[An];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(OC(n,i)&&(n!==void 0||jo(e.base_,t,e.type_)))return!0;Tc(e),tf(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),BC(e,t,n)),!0},deleteProperty(e,t){return Tc(e),ef(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),tf(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Li(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[yc]:!0,[Kd]:e.type_!==1||t!=="length",[vc]:r[vc],[Vo]:n[t]}},defineProperty(){xn(11)},getPrototypeOf(e){return Js(e.base_)},setPrototypeOf(){xn(12)}},$o={};for(let e in Ac){let t=Ac[e];$o[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}$o.deleteProperty=function(e,t){return $o.set.call(this,e,t,void 0)},$o.set=function(e,t,n){return Ac.set.call(this,e[0],t,n,e[0])};function ef(e,t){const n=e[An];return(n?Li(n):e)[t]}function VC(e,t,n){var i;const r=Gm(t,n);return r?Vo in r?r[Vo]:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Gm(e,t){if(!(t in e))return;let n=Js(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Js(n)}}function tf(e){e.modified_||(e.modified_=!0,e.parent_&&tf(e.parent_))}function Tc(e){e.copy_||(e.assigned_=new Map,e.copy_=Yd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var HC=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(Qs(t)&&!Qs(n)){const l=n;n=t;const d=this;return function(p=l,..._){return d.produce(p,S=>n.call(this,S,..._))}}Qs(n)||xn(6),r!==void 0&&!Qs(r)&&xn(7);let i;if(fr(t)){const l=zm(this),d=nf(l,t,void 0);let g=!0;try{i=n(d),g=!1}finally{g?Xd(l):Qd(l)}return Bm(l,r),Vm(i,l)}else if(!t||!Fa(t)){if(i=n(t),i===void 0&&(i=t),i===Gd&&(i=void 0),this.autoFreeze_&&Jd(i,!0),r){const l=[],d=[];ea(Ec).generateReplacementPatches_(t,i,{patches_:l,inversePatches_:d}),r(l,d)}return i}else xn(1,t)},this.produceWithPatches=(t,n)=>{if(Qs(t))return(d,...g)=>this.produceWithPatches(d,p=>t(p,...g));let r,i;return[this.produce(t,n,(d,g)=>{r=d,i=g}),r,i]},$d(e==null?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),$d(e==null?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),$d(e==null?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){fr(e)||xn(8),dr(e)&&(e=Km(e));const t=zm(this),n=nf(t,e,void 0);return n[An].isManual_=!0,Qd(t),n}finishDraft(e,t){const n=e&&e[An];(!n||!n.isManual_)&&xn(9);const{scope_:r}=n;return Bm(r,t),Vm(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=ea(Ec).applyPatches_;return dr(e)?r(e,t):this.produce(e,i=>r(i,t))}};function nf(e,t,n,r){const[i,l]=Wo(t)?ea(Sc).proxyMap_(t,n):Go(t)?ea(Sc).proxySet_(t,n):zC(t,n);return((n==null?void 0:n.scope_)??Fm()).drafts_.push(i),l.callbacks_=(n==null?void 0:n.callbacks_)??[],l.key_=r,n&&r!==void 0?FC(n,l,r):l.callbacks_.push(function(p){var S;(S=p.mapSetPlugin_)==null||S.fixSetContents(l);const{patchPlugin_:_}=p;l.modified_&&_&&_.generatePatches_(l,[],p)}),i}function Km(e){return dr(e)||xn(10,e),$m(e)}function $m(e){if(!fr(e)||bc(e))return e;const t=e[An];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Yd(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Yd(e,!0);return Ho(n,(i,l)=>{_c(n,i,$m(l))},r),t&&(t.finalized_=!1),n}function jC(){function t(b,c=[]){if(b.key_!==void 0){const u=b.parent_.copy_??b.parent_.base_,f=RC(Mi(u,b.key_)),a=Mi(u,b.key_);if(a===void 0||a!==b.draft_&&a!==b.base_&&a!==b.copy_||f!=null&&f.base_!==b.base_)return null;const o=b.parent_.type_===3;let s;if(o){const m=b.parent_;s=Array.from(m.drafts_.keys()).indexOf(b.key_)}else s=b.key_;if(!(o&&u.size>s||jo(u,s)))return null;c.push(s)}if(b.parent_)return t(b.parent_,c);c.reverse();try{n(b.copy_,c)}catch{return null}return c}function n(b,c){let u=b;for(let f=0;f<c.length-1;f++){const a=c[f];if(u=Mi(u,a),!Fa(u)||u===null)throw new Error(`Cannot resolve path at '${c.join("/")}'`)}return u}const r="replace",i="add",l="remove";function d(b,c,u){if(b.scope_.processedForPatches_.has(b))return;b.scope_.processedForPatches_.add(b);const{patches_:f,inversePatches_:a}=u;switch(b.type_){case 0:case 2:return p(b,c,f,a);case 1:return g(b,c,f,a);case 3:return _(b,c,f,a)}}function g(b,c,u,f){let{base_:a,assigned_:o}=b,s=b.copy_;s.length<a.length&&([a,s]=[s,a],[u,f]=[f,u]);const m=b.allIndicesReassigned_===!0;for(let v=0;v<a.length;v++){const w=s[v],A=a[v];if((m||(o==null?void 0:o.get(v.toString())))&&w!==A){const O=w==null?void 0:w[An];if(O&&O.modified_)continue;const T=c.concat([v]);u.push({op:r,path:T,value:y(w)}),f.push({op:r,path:T,value:y(A)})}}for(let v=a.length;v<s.length;v++){const w=c.concat([v]);u.push({op:i,path:w,value:y(s[v])})}for(let v=s.length-1;a.length<=v;--v){const w=c.concat([v]);f.push({op:l,path:w})}}function p(b,c,u,f){const{base_:a,copy_:o,type_:s}=b;Ho(b.assigned_,(m,v)=>{const w=Mi(a,m,s),A=Mi(o,m,s),E=v?jo(a,m)?r:i:l;if(w===A&&E===r)return;const O=c.concat(m);u.push(E===l?{op:E,path:O}:{op:E,path:O,value:y(A)}),f.push(E===i?{op:l,path:O}:E===l?{op:i,path:O,value:y(w)}:{op:r,path:O,value:y(w)})})}function _(b,c,u,f){let{base_:a,copy_:o}=b,s=0;a.forEach(m=>{if(!o.has(m)){const v=c.concat([s]);u.push({op:l,path:v,value:m}),f.unshift({op:i,path:v,value:m})}s++}),s=0,o.forEach(m=>{if(!a.has(m)){const v=c.concat([s]);u.push({op:i,path:v,value:m}),f.unshift({op:l,path:v,value:m})}s++})}function S(b,c,u){const{patches_:f,inversePatches_:a}=u;f.push({op:r,path:[],value:c===Gd?void 0:c}),a.push({op:r,path:[],value:b})}function k(b,c){return c.forEach(u=>{const{path:f,op:a}=u;let o=b;for(let w=0;w<f.length-1;w++){const A=Xs(o);let E=f[w];typeof E!="string"&&typeof E!="number"&&(E=""+E),(A===0||A===1)&&(E==="__proto__"||E===Bo)&&xn(19),Qs(o)&&E===zo&&xn(19),o=Mi(o,E),Fa(o)||xn(18,f.join("/"))}const s=Xs(o),m=h(u.value),v=f[f.length-1];switch(a){case r:switch(s){case 2:return o.set(v,m);case 3:xn(16);default:return o[v]=m}case i:switch(s){case 1:return v==="-"?o.push(m):o.splice(v,0,m);case 2:return o.set(v,m);case 3:return o.add(m);default:return o[v]=m}case l:switch(s){case 1:return o.splice(v,1);case 2:return o.delete(v);case 3:return o.delete(u.value);default:return delete o[v]}default:xn(17,a)}}),b}function h(b){if(!fr(b))return b;if(qo(b))return b.map(h);if(Wo(b))return new Map(Array.from(b.entries()).map(([u,f])=>[u,h(f)]));if(Go(b))return new Set(Array.from(b).map(h));const c=Object.create(Js(b));for(const u in b)c[u]=h(b[u]);return jo(b,Fo)&&(c[Fo]=b[Fo]),c}function y(b){return dr(b)?h(b):b}LC(Ec,{applyPatches_:k,generatePatches_:d,generateReplacementPatches_:S,getPath:t})}var Zo=new HC,Yo=Zo.produce,Zm=Zo.produceWithPatches.bind(Zo),Ym=Zo.applyPatches.bind(Zo);function qC(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function WC(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function GC(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Jm=e=>Array.isArray(e)?e:[e];function KC(e){const t=Array.isArray(e[0])?e[0]:e;return GC(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function $C(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var ZC=class{constructor(e){this.value=e}deref(){return this.value}},YC=typeof WeakRef<"u"?WeakRef:ZC,JC=0,Xm=1;function Oc(){return{s:JC,v:void 0,o:null,p:null}}function Pc(e,t={}){let n=Oc();const{resultEqualityCheck:r}=t;let i,l=0;function d(){var k;let g=n;const{length:p}=arguments;for(let h=0,y=p;h<y;h++){const b=arguments[h];if(typeof b=="function"||typeof b=="object"&&b!==null){let c=g.o;c===null&&(g.o=c=new WeakMap);const u=c.get(b);u===void 0?(g=Oc(),c.set(b,g)):g=u}else{let c=g.p;c===null&&(g.p=c=new Map);const u=c.get(b);u===void 0?(g=Oc(),c.set(b,g)):g=u}}const _=g;let S;if(g.s===Xm)S=g.v;else if(S=e.apply(null,arguments),l++,r){const h=((k=i==null?void 0:i.deref)==null?void 0:k.call(i))??i;h!=null&&r(h,S)&&(S=h,l!==0&&l--),i=typeof S=="object"&&S!==null||typeof S=="function"?new YC(S):S}return _.s=Xm,_.v=S,S}return d.clearCache=()=>{n=Oc(),d.resetResultsCount()},d.resultsCount=()=>l,d.resetResultsCount=()=>{l=0},d}function XC(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let l=0,d=0,g,p={},_=i.pop();typeof _=="object"&&(p=_,_=i.pop()),qC(_,`createSelector expects an output function after the inputs, but received: [${typeof _}]`);const S={...n,...p},{memoize:k,memoizeOptions:h=[],argsMemoize:y=Pc,argsMemoizeOptions:b=[]}=S,c=Jm(h),u=Jm(b),f=KC(i),a=k(function(){return l++,_.apply(null,arguments)},...c),o=y(function(){d++;const m=$C(f,arguments);return g=a.apply(null,m),g},...u);return Object.assign(o,{resultFunc:_,memoizedResultFunc:a,dependencies:f,dependencyRecomputations:()=>d,resetDependencyRecomputations:()=>{d=0},lastResult:()=>g,recomputations:()=>l,resetRecomputations:()=>{l=0},memoize:k,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var rf=XC(Pc),QC=Object.assign((e,t=rf)=>{WC(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(l=>e[l]);return t(r,(...l)=>l.reduce((d,g,p)=>(d[n[p]]=g,d),{}))},{withTypes:()=>QC});function Qm(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var eI=Qm(),tI=Qm,nI=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?mc:mc.apply(null,arguments)},rI=e=>e&&typeof e.match=="function";function Gr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(mi(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Lm(r)&&r.type===e,n}var ev=class kl extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,kl.prototype)}static get[Symbol.species](){return kl}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new kl(...t[0].concat(this)):new kl(...t.concat(this))}};function tv(e){return fr(e)?Yo(e,()=>{}):e}function Rc(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function iI(e){return typeof e=="boolean"}var sI=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let d=new ev;return n&&(iI(n)?d.push(eI):d.push(tI(n.extraArgument))),d},Mc="RTK_autoBatch",Jo=()=>e=>({payload:e,meta:{[Mc]:!0}}),nv=e=>t=>{setTimeout(t,e)},aI=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,l=!1,d=!1;const g=new Set,p=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:nv(10):e.type==="callback"?e.queueNotification:nv(e.timeout),_=()=>{d=!1,l&&(l=!1,g.forEach(S=>S()))};return Object.assign({},r,{subscribe(S){const k=()=>i&&S(),h=r.subscribe(k);return g.add(S),()=>{h(),g.delete(S)}},dispatch(S){var k;try{return i=!((k=S==null?void 0:S.meta)!=null&&k[Mc]),l=!i,l&&(d||(d=!0,p(_))),r.dispatch(S)}finally{i=!0}}})},oI=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new ev(e);return r&&i.push(aI(typeof r=="object"?r:void 0)),i};function rv(e){const t=sI(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:l=!0,preloadedState:d=void 0,enhancers:g=void 0}=e||{};let p;if(typeof n=="function")p=n;else if(ps(n))p=Wd(n);else throw new Error(mi(1));let _;typeof r=="function"?_=r(t):_=t();let S=mc;i&&(S=nI({trace:!1,...typeof i=="object"&&i}));const k=IC(..._),h=oI(k);let y=typeof g=="function"?g(h):h();const b=S(...y);return Mm(p,d,b)}function iv(e){const t={},n=[];let r;const i={addCase(l,d){const g=typeof l=="string"?l:l.type;if(!g)throw new Error(mi(28));if(g in t)throw new Error(mi(29));return t[g]=d,i},addAsyncThunk(l,d){return d.pending&&(t[l.pending.type]=d.pending),d.rejected&&(t[l.rejected.type]=d.rejected),d.fulfilled&&(t[l.fulfilled.type]=d.fulfilled),d.settled&&n.push({matcher:l.settled,reducer:d.settled}),i},addMatcher(l,d){return n.push({matcher:l,reducer:d}),i},addDefaultCase(l){return r=l,i}};return e(i),[t,n,r]}function lI(e){return typeof e=="function"}function cI(e,t){let[n,r,i]=iv(t),l;if(lI(e))l=()=>tv(e());else{const g=tv(e);l=()=>g}function d(g=l(),p){let _=[n[p.type],...r.filter(({matcher:S})=>S(p)).map(({reducer:S})=>S)];return _.filter(S=>!!S).length===0&&(_=[i]),_.reduce((S,k)=>{if(k)if(dr(S)){const y=k(S,p);return y===void 0?S:y}else{if(fr(S))return Yo(S,h=>k(h,p));{const h=k(S,p);if(h===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return S},g)}return d.getInitialState=l,d}var sv=(e,t)=>rI(e)?e.match(t):e(t);function Di(...e){return t=>e.some(n=>sv(n,t))}function Xo(...e){return t=>e.every(n=>sv(n,t))}function Lc(e,t){if(!e||!e.meta)return!1;const n=typeof e.meta.requestId=="string",r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function Qo(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function sf(...e){return e.length===0?t=>Lc(t,["pending"]):Qo(e)?Di(...e.map(t=>t.pending)):sf()(e[0])}function Ba(...e){return e.length===0?t=>Lc(t,["rejected"]):Qo(e)?Di(...e.map(t=>t.rejected)):Ba()(e[0])}function Dc(...e){const t=n=>n&&n.meta&&n.meta.rejectedWithValue;return e.length===0?Xo(Ba(...e),t):Qo(e)?Xo(Ba(...e),t):Dc()(e[0])}function ms(...e){return e.length===0?t=>Lc(t,["fulfilled"]):Qo(e)?Di(...e.map(t=>t.fulfilled)):ms()(e[0])}function af(...e){return e.length===0?t=>Lc(t,["pending","fulfilled","rejected"]):Qo(e)?Di(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):af()(e[0])}var uI="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",of=(e=21)=>{let t="",n=e;for(;n--;)t+=uI[Math.random()*64|0];return t},dI=["name","message","stack","code"],lf=class{constructor(e,t){Je(this,"_type");this.payload=e,this.meta=t}},av=class{constructor(e,t){Je(this,"_type");this.payload=e,this.meta=t}},fI=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of dI)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},ov="External signal was aborted",lv=(()=>{function e(t,n,r){const i=Gr(t+"/fulfilled",(p,_,S,k)=>({payload:p,meta:{...k||{},arg:S,requestId:_,requestStatus:"fulfilled"}})),l=Gr(t+"/pending",(p,_,S)=>({payload:void 0,meta:{...S||{},arg:_,requestId:p,requestStatus:"pending"}})),d=Gr(t+"/rejected",(p,_,S,k,h)=>({payload:k,error:(r&&r.serializeError||fI)(p||"Rejected"),meta:{...h||{},arg:S,requestId:_,rejectedWithValue:!!k,requestStatus:"rejected",aborted:(p==null?void 0:p.name)==="AbortError",condition:(p==null?void 0:p.name)==="ConditionError"}}));function g(p,{signal:_}={}){return(S,k,h)=>{const y=r!=null&&r.idGenerator?r.idGenerator(p):of(),b=new AbortController;let c,u;function f(o){u=o,b.abort()}_&&(_.aborted?f(ov):_.addEventListener("abort",()=>f(ov),{once:!0}));const a=async function(){var m,v;let o;try{let w=(m=r==null?void 0:r.condition)==null?void 0:m.call(r,p,{getState:k,extra:h});if(gI(w)&&(w=await w),w===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const A=new Promise((E,O)=>{c=()=>{O({name:"AbortError",message:u||"Aborted"})},b.signal.addEventListener("abort",c,{once:!0})});S(l(y,p,(v=r==null?void 0:r.getPendingMeta)==null?void 0:v.call(r,{requestId:y,arg:p},{getState:k,extra:h}))),o=await Promise.race([A,Promise.resolve(n(p,{dispatch:S,getState:k,extra:h,requestId:y,signal:b.signal,abort:f,rejectWithValue:(E,O)=>new lf(E,O),fulfillWithValue:(E,O)=>new av(E,O)})).then(E=>{if(E instanceof lf)throw E;return E instanceof av?i(E.payload,y,p,E.meta):i(E,y,p)})])}catch(w){o=w instanceof lf?d(null,y,p,w.payload,w.meta):d(w,y,p)}finally{c&&b.signal.removeEventListener("abort",c)}return r&&!r.dispatchConditionRejection&&d.match(o)&&o.meta.condition||S(o),o}();return Object.assign(a,{abort:f,requestId:y,arg:p,unwrap(){return a.then(hI)}})}}return Object.assign(g,{pending:l,rejected:d,fulfilled:i,settled:Di(d,i),typePrefix:t})}return e.withTypes=()=>e,e})();function hI(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function gI(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var pI=Symbol.for("rtk-slice-createasyncthunk");function mI(e,t){return`${e}/${t}`}function vI({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[pI];return function(i){const{name:l,reducerPath:d=l}=i;if(!l)throw new Error(mi(11));const g=(typeof i.reducers=="function"?i.reducers(_I()):i.reducers)||{},p=Object.keys(g),_={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},S={addCase(s,m){const v=typeof s=="string"?s:s.type;if(!v)throw new Error(mi(12));if(v in _.sliceCaseReducersByType)throw new Error(mi(13));return _.sliceCaseReducersByType[v]=m,S},addMatcher(s,m){return _.sliceMatchers.push({matcher:s,reducer:m}),S},exposeAction(s,m){return _.actionCreators[s]=m,S},exposeCaseReducer(s,m){return _.sliceCaseReducersByName[s]=m,S}};p.forEach(s=>{const m=g[s],v={reducerName:s,type:mI(l,s),createNotation:typeof i.reducers=="function"};bI(m)?EI(v,m,S,t):wI(v,m,S)});function k(){const[s={},m=[],v=void 0]=typeof i.extraReducers=="function"?iv(i.extraReducers):[i.extraReducers],w={...s,..._.sliceCaseReducersByType};return cI(i.initialState,A=>{for(let E in w)A.addCase(E,w[E]);for(let E of _.sliceMatchers)A.addMatcher(E.matcher,E.reducer);for(let E of m)A.addMatcher(E.matcher,E.reducer);v&&A.addDefaultCase(v)})}const h=s=>s,y=new Map,b=new WeakMap;let c;function u(s,m){return c||(c=k()),c(s,m)}function f(){return c||(c=k()),c.getInitialState()}function a(s,m=!1){function v(A){let E=A[s];return typeof E>"u"&&m&&(E=Rc(b,v,f)),E}function w(A=h){const E=Rc(y,m,()=>new WeakMap);return Rc(E,A,()=>{const O={};for(const[T,L]of Object.entries(i.selectors??{}))O[T]=yI(L,A,()=>Rc(b,A,f),m);return O})}return{reducerPath:s,getSelectors:w,get selectors(){return w(v)},selectSlice:v}}const o={name:l,reducer:u,actions:_.actionCreators,caseReducers:_.sliceCaseReducersByName,getInitialState:f,...a(d),injectInto(s,{reducerPath:m,...v}={}){const w=m??d;return s.inject({reducerPath:w,reducer:u},v),{...o,...a(w,!0)}}};return o}}function yI(e,t,n,r){function i(l,...d){let g=t(l);return typeof g>"u"&&r&&(g=n()),e(g,...d)}return i.unwrapped=e,i}var ta=vI();function _I(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function wI({type:e,reducerName:t,createNotation:n},r,i){let l,d;if("reducer"in r){if(n&&!SI(r))throw new Error(mi(17));l=r.reducer,d=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,d?Gr(e,d):Gr(e))}function bI(e){return e._reducerDefinitionType==="asyncThunk"}function SI(e){return e._reducerDefinitionType==="reducerWithPrepare"}function EI({type:e,reducerName:t},n,r,i){if(!i)throw new Error(mi(18));const{payloadCreator:l,fulfilled:d,pending:g,rejected:p,settled:_,options:S}=n,k=i(e,l,S);r.exposeAction(t,k),d&&r.addCase(k.fulfilled,d),g&&r.addCase(k.pending,g),p&&r.addCase(k.rejected,p),_&&r.addMatcher(k.settled,_),r.exposeCaseReducer(t,{fulfilled:d||xc,pending:g||xc,rejected:p||xc,settled:_||xc})}function xc(){}function mi(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var kI=class extends Error{constructor(t){super(t[0].message);Je(this,"issues");this.name="SchemaError",this.issues=t}},xi="uninitialized",cf="pending",el="fulfilled",tl="rejected";function cv(e){return{status:e,isUninitialized:e===xi,isLoading:e===cf,isSuccess:e===el,isError:e===tl}}var uv=ps;function dv(e,t){if(e===t||!(uv(e)&&uv(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let i=n.length===r.length;const l=Array.isArray(t)?[]:{};for(const d of n)l[d]=dv(e[d],t[d]),i&&(i=e[d]===l[d]);return i?e:l}function uf(e,t,n){return e.reduce((r,i,l)=>(t(i,l)&&r.push(n(i,l)),r),[]).flat()}function CI(e){return new RegExp("(^|:)//").test(e)}function II(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function df(e){return e!=null}function fv(e){return[...(e==null?void 0:e.values())??[]].filter(df)}function AI(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var TI=e=>e.replace(/\/$/,""),OI=e=>e.replace(/^\//,"");function PI(e,t){if(!e)return t;if(!t)return e;if(CI(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=TI(e),t=OI(t),`${e}${n}${t}`}function Nc(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var ff=()=>new Map,RI=e=>{const t=new AbortController;return setTimeout(()=>{const n="signal timed out",r="TimeoutError";t.abort(typeof DOMException<"u"?new DOMException(n,r):Object.assign(new Error(n),{name:r}))},e),t.signal},MI=(...e)=>{for(const n of e)if(n.aborted)return AbortSignal.abort(n.reason);const t=new AbortController;for(const n of e)n.addEventListener("abort",()=>t.abort(n.reason),{signal:t.signal,once:!0});return t.signal},hv=(...e)=>fetch(...e),LI=e=>e.status>=200&&e.status<=299,DI=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function gv(e){if(!ps(e))return e;const t={...e};for(const[n,r]of Object.entries(t))r===void 0&&delete t[n];return t}var xI=e=>typeof e=="object"&&(ps(e)||Array.isArray(e)||typeof e.toJSON=="function");function Uc({baseUrl:e,prepareHeaders:t=k=>k,fetchFn:n=hv,paramsSerializer:r,isJsonContentType:i=DI,jsonContentType:l="application/json",jsonReplacer:d,timeout:g,responseHandler:p,validateStatus:_,...S}={}){return typeof fetch>"u"&&n===hv&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(h,y,b)=>{const{getState:c,extra:u,endpoint:f,forced:a,type:o}=y;let s,{url:m,headers:v=new Headers(S.headers),params:w=void 0,responseHandler:A=p??"json",validateStatus:E=_??LI,timeout:O=g,...T}=typeof h=="string"?{url:h}:h,L={...S,signal:O?MI(y.signal,RI(O)):y.signal,...T};v=new Headers(gv(v)),L.headers=await t(v,{getState:c,arg:h,extra:u,endpoint:f,forced:a,type:o,extraOptions:b})||v;const P=xI(L.body);if(L.body!=null&&!P&&typeof L.body!="string"&&L.headers.delete("content-type"),!L.headers.has("content-type")&&P&&L.headers.set("content-type",l),P&&i(L.headers)&&(L.body=JSON.stringify(L.body,d)),L.headers.has("accept")||(A==="json"?L.headers.set("accept","application/json"):A==="text"&&L.headers.set("accept","text/plain, text/html, */*")),w){const U=~m.indexOf("?")?"&":"?",z=r?r(w):new URLSearchParams(gv(w));m+=U+z}m=PI(e,m);const N=new Request(m,L);s={request:new Request(m,L)};let D;try{D=await n(N)}catch(U){return{error:{status:(U instanceof Error||typeof DOMException<"u"&&U instanceof DOMException)&&U.name==="TimeoutError"?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(U)},meta:s}}const F=D.clone();s.response=F;let H,R="";try{let U;if(await Promise.all([k(D,A).then(z=>H=z,z=>U=z),F.text().then(z=>R=z,()=>{})]),U)throw U}catch(U){return{error:{status:"PARSING_ERROR",originalStatus:D.status,data:R,error:String(U)},meta:s}}return E(D,H)?{data:H,meta:s}:{error:{status:D.status,data:H},meta:s}};async function k(h,y){if(typeof y=="function")return y(h);if(y==="content-type"&&(y=i(h.headers)?"json":"text"),y==="json"){const b=await h.text();return b.length?JSON.parse(b):null}return h.text()}}var pv=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Fc="__rtkq/",NI="online",UI="offline",mv="focused",hf=Gr(`${Fc}${mv}`),vv=Gr(`${Fc}un${mv}`),gf=Gr(`${Fc}${NI}`),yv=Gr(`${Fc}${UI}`),nl="query",_v="mutation",wv="infinitequery";function Bc(e){return e.type===nl}function FI(e){return e.type===_v}function zc(e){return e.type===wv}function Vc(e){return Bc(e)||zc(e)}function pf(e,t,n,r,i,l){const d=BI(e)?e(t,n,r,i):e;return d?uf(d,df,g=>l(bv(g))):[]}function BI(e){return typeof e=="function"}function bv(e){return typeof e=="string"?{type:e}:e}function zI(e,t){return e.catch(t)}var za=(e,t)=>e.endpointDefinitions[t],rl=Symbol("forceQueryFn"),mf=e=>typeof e[rl]=="function";function VI({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:i,context:l,getInternalState:d}){const g=s=>{var m;return(m=d(s))==null?void 0:m.runningQueries},p=s=>{var m;return(m=d(s))==null?void 0:m.runningMutations},{unsubscribeQueryResult:_,removeMutationResult:S,updateSubscriptionOptions:k}=i.internalActions;return{buildInitiateQuery:f,buildInitiateInfiniteQuery:a,buildInitiateMutation:o,getRunningQueryThunk:h,getRunningMutationThunk:y,getRunningQueriesThunk:b,getRunningMutationsThunk:c};function h(s,m){return v=>{var E;const w=za(l,s),A=e({queryArgs:m,endpointDefinition:w,endpointName:s});return(E=g(v))==null?void 0:E.get(A)}}function y(s,m){return v=>{var w;return(w=p(v))==null?void 0:w.get(m)}}function b(){return s=>fv(g(s))}function c(){return s=>fv(p(s))}function u(s,m){const v=(w,{subscribe:A=!0,forceRefetch:E,subscriptionOptions:O,[rl]:T,...L}={})=>(P,N)=>{var te;const I=e({queryArgs:w,endpointDefinition:m,endpointName:s});let D;const F={...L,type:nl,subscribe:A,forceRefetch:E,subscriptionOptions:O,endpointName:s,originalArgs:w,queryCacheKey:I,[rl]:T};if(Bc(m))D=t(F);else{const{direction:ie,initialPageParam:Se,refetchCachedPages:_e}=L;D=n({...F,direction:ie,initialPageParam:Se,refetchCachedPages:_e})}const H=i.endpoints[s].select(w),R=P(D),U=H(N()),{requestId:z,abort:G}=R,J=U.requestId!==z,$=(te=g(P))==null?void 0:te.get(I),ne=()=>H(N()),ae=Object.assign(T?R.then(ne):J&&!$?Promise.resolve(U):Promise.all([$,R]).then(ne),{arg:w,requestId:z,subscriptionOptions:O,queryCacheKey:I,abort:G,async unwrap(){const ie=await ae;if(ie.isError)throw ie.error;return ie.data},refetch:ie=>P(v(w,{subscribe:!1,forceRefetch:!0,...ie})),unsubscribe(){A&&P(_({queryCacheKey:I,requestId:z}))},updateSubscriptionOptions(ie){ae.subscriptionOptions=ie,P(k({endpointName:s,requestId:z,queryCacheKey:I,options:ie}))}});if(!$&&!J&&!T){const ie=g(P);ie.set(I,ae),ae.then(()=>{ie.delete(I)})}return ae};return v}function f(s,m){return u(s,m)}function a(s,m){return u(s,m)}function o(s){return(m,{track:v=!0,fixedCacheKey:w}={})=>(A,E)=>{const O=r({type:"mutation",endpointName:s,originalArgs:m,track:v,fixedCacheKey:w}),T=A(O),{requestId:L,abort:P,unwrap:N}=T,I=zI(T.unwrap().then(R=>({data:R})),R=>({error:R})),D=()=>{A(S({requestId:L,fixedCacheKey:w}))},F=Object.assign(I,{arg:T.arg,requestId:L,abort:P,unwrap:N,reset:D}),H=p(A);return H.set(L,F),F.then(()=>{H.delete(L)}),w&&(H.set(w,F),F.then(()=>{H.get(w)===F&&H.delete(w)})),F}}}var Sv=class extends kI{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}},na=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function ra(e,t,n,r){const i=await e["~standard"].validate(t);if(i.issues)throw new Sv(i.issues,t,n,r);return i.value}function Ev(e){return e}var il=(e={})=>({...e,[Mc]:!0});function HI({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:i,assertTagType:l,selectors:d,onSchemaFailure:g,catchSchemaFailure:p,skipSchemaValidation:_}){const S=(T,L,P,N)=>(I,D)=>{const F=n[T],H=r({queryArgs:L,endpointDefinition:F,endpointName:T});if(I(i.internalActions.queryResultPatched({queryCacheKey:H,patches:P})),!N)return;const R=i.endpoints[T].select(L)(D()),U=pf(F.providesTags,R.data,void 0,L,{},l);I(i.internalActions.updateProvidedBy([{queryCacheKey:H,providedTags:U}]))};function k(T,L,P=0){const N=[L,...T];return P&&N.length>P?N.slice(0,-1):N}function h(T,L,P=0){const N=[...T,L];return P&&N.length>P?N.slice(1):N}const y=(T,L,P,N=!0)=>(I,D)=>{const H=i.endpoints[T].select(L)(D()),R={patches:[],inversePatches:[],undo:()=>I(i.util.patchQueryData(T,L,R.inversePatches,N))};if(H.status===xi)return R;let U;if("data"in H)if(fr(H.data)){const[z,G,J]=Zm(H.data,P);R.patches.push(...G),R.inversePatches.push(...J),U=z}else U=P(H.data),R.patches.push({op:"replace",path:[],value:U}),R.inversePatches.push({op:"replace",path:[],value:H.data});return R.patches.length===0||I(i.util.patchQueryData(T,L,R.patches,N)),R},b=(T,L,P)=>N=>N(i.endpoints[T].initiate(L,{subscribe:!1,forceRefetch:!0,[rl]:()=>({data:P})})),c=(T,L)=>T.query&&T[L]?T[L]:Ev,u=async(T,{signal:L,abort:P,rejectWithValue:N,fulfillWithValue:I,dispatch:D,getState:F,extra:H})=>{var J,$;const R=n[T.endpointName],{metaSchema:U,skipSchemaValidation:z=_}=R,G=T.type===nl;try{let ne=Ev;const ae={signal:L,abort:P,dispatch:D,getState:F,extra:H,endpoint:T.endpointName,type:T.type,forced:G?f(T,F()):void 0,queryCacheKey:G?T.queryCacheKey:void 0},te=G?T[rl]:void 0;let ie;const Se=async(xe,et,xt,oe)=>{if(et==null&&xe.pages.length)return Promise.resolve({data:xe});const Ie={queryArg:T.originalArgs,pageParam:et},Be=await _e(Ie),$e=oe?k:h;return{data:{pages:$e(xe.pages,Be.data,xt),pageParams:$e(xe.pageParams,et,xt)},meta:Be.meta}};async function _e(xe){let et;const{extraOptions:xt,argSchema:oe,rawResponseSchema:Ie,responseSchema:Be}=R;if(oe&&!na(z,"arg")&&(xe=await ra(oe,xe,"argSchema",{})),te?et=te():R.query?(ne=c(R,"transformResponse"),et=await t(R.query(xe),ae,xt)):et=await R.queryFn(xe,ae,xt,Xe=>t(Xe,ae,xt)),typeof process<"u",et.error)throw new pv(et.error,et.meta);let{data:$e}=et;Ie&&!na(z,"rawResponse")&&($e=await ra(Ie,et.data,"rawResponseSchema",et.meta));let Ce=await ne($e,et.meta,xe);return Be&&!na(z,"response")&&(Ce=await ra(Be,Ce,"responseSchema",et.meta)),{...et,data:Ce}}if(G&&"infiniteQueryOptions"in R){const{infiniteQueryOptions:xe}=R,{maxPages:et=1/0}=xe,xt=T.refetchCachedPages??xe.refetchCachedPages??!0;let oe;const Ie={pages:[],pageParams:[]},Be=(J=d.selectQueryEntry(F(),T.queryCacheKey))==null?void 0:J.data,Ce=f(T,F())&&!T.direction||!Be?Ie:Be;if("direction"in T&&T.direction&&Ce.pages.length){const Xe=T.direction==="backward",Le=(Xe?kv:vf)(xe,Ce,T.originalArgs);oe=await Se(Ce,Le,et,Xe)}else{const{initialPageParam:Xe=xe.initialPageParam}=T,ge=(Be==null?void 0:Be.pageParams)??[],Le=ge[0]??Xe,Mt=ge.length;if(oe=await Se(Ce,Le,et),te&&(oe={data:oe.data.pages[0]}),xt)for(let It=1;It<Mt;It++){const Ut=vf(xe,oe.data,T.originalArgs);oe=await Se(oe.data,Ut,et)}}ie=oe}else ie=await _e(T.originalArgs);return U&&!na(z,"meta")&&ie.meta&&(ie.meta=await ra(U,ie.meta,"metaSchema",ie.meta)),I(ie.data,il({fulfilledTimeStamp:Date.now(),baseQueryMeta:ie.meta}))}catch(ne){let ae=ne;if(ae instanceof pv){let te=c(R,"transformErrorResponse");const{rawErrorResponseSchema:ie,errorResponseSchema:Se}=R;let{value:_e,meta:xe}=ae;try{ie&&!na(z,"rawErrorResponse")&&(_e=await ra(ie,_e,"rawErrorResponseSchema",xe)),U&&!na(z,"meta")&&(xe=await ra(U,xe,"metaSchema",xe));let et=await te(_e,xe,T.originalArgs);return Se&&!na(z,"errorResponse")&&(et=await ra(Se,et,"errorResponseSchema",xe)),N(et,il({baseQueryMeta:xe}))}catch(et){ae=et}}try{if(ae instanceof Sv){const te={endpoint:T.endpointName,arg:T.originalArgs,type:T.type,queryCacheKey:G?T.queryCacheKey:void 0};($=R.onSchemaFailure)==null||$.call(R,ae,te),g==null||g(ae,te);const{catchSchemaFailure:ie=p}=R;if(ie)return N(ie(ae,te),il({baseQueryMeta:ae._bqMeta}))}}catch(te){ae=te}throw console.error(ae),ae}};function f(T,L){const P=d.selectQueryEntry(L,T.queryCacheKey),N=d.selectConfig(L).refetchOnMountOrArgChange,I=P==null?void 0:P.fulfilledTimeStamp,D=T.forceRefetch??(T.subscribe&&N);return D?D===!0||(Number(new Date)-Number(I))/1e3>=D:!1}const a=()=>lv(`${e}/executeQuery`,u,{getPendingMeta({arg:L}){const P=n[L.endpointName];return il({startedTimeStamp:Date.now(),...zc(P)?{direction:L.direction}:{}})},condition(L,{getState:P}){var z;const N=P(),I=d.selectQueryEntry(N,L.queryCacheKey),D=I==null?void 0:I.fulfilledTimeStamp,F=L.originalArgs,H=I==null?void 0:I.originalArgs,R=n[L.endpointName],U=L.direction;return mf(L)?!0:(I==null?void 0:I.status)==="pending"?!1:f(L,N)||Bc(R)&&((z=R==null?void 0:R.forceRefetch)!=null&&z.call(R,{currentArg:F,previousArg:H,endpointState:I,state:N}))?!0:!(D&&!U)},dispatchConditionRejection:!0}),o=a(),s=a(),m=lv(`${e}/executeMutation`,u,{getPendingMeta(){return il({startedTimeStamp:Date.now()})}}),v=T=>"force"in T,w=T=>"ifOlderThan"in T,A=(T,L,P={})=>(N,I)=>{const D=v(P)&&P.force,F=w(P)&&P.ifOlderThan,H=(U=!0)=>{const z={forceRefetch:U,subscribe:!1};return i.endpoints[T].initiate(L,z)},R=i.endpoints[T].select(L)(I());if(D)N(H());else if(F){const U=R==null?void 0:R.fulfilledTimeStamp;if(!U){N(H());return}(Number(new Date)-Number(new Date(U)))/1e3>=F&&N(H())}else N(H(!1))};function E(T){return L=>{var P,N;return((N=(P=L==null?void 0:L.meta)==null?void 0:P.arg)==null?void 0:N.endpointName)===T}}function O(T,L){return{matchPending:Xo(sf(T),E(L)),matchFulfilled:Xo(ms(T),E(L)),matchRejected:Xo(Ba(T),E(L))}}return{queryThunk:o,mutationThunk:m,infiniteQueryThunk:s,prefetch:A,updateQueryData:y,upsertQueryData:b,patchQueryData:S,buildMatchThunkActions:O}}function vf(e,{pages:t,pageParams:n},r){const i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n,r)}function kv(e,{pages:t,pageParams:n},r){var i;return(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n,r)}function Cv(e,t,n,r){return pf(n[e.meta.arg.endpointName][t],ms(e)?e.payload:void 0,Dc(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Iv(e){return dr(e)?Km(e):e}function Hc(e,t,n){const r=e[t];r&&n(r)}function sl(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Av(e,t,n){const r=e[sl(t)];r&&n(r)}var jc={};function jI({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:i,apiUid:l,extractRehydrationInfo:d,hasRehydrationInfo:g},assertTagType:p,config:_}){const S=Gr(`${e}/resetApiState`);function k(E,O,T,L){var P;E[P=O.queryCacheKey]??(E[P]={status:xi,endpointName:O.endpointName}),Hc(E,O.queryCacheKey,N=>{N.status=cf,N.requestId=T&&N.requestId?N.requestId:L.requestId,O.originalArgs!==void 0&&(N.originalArgs=O.originalArgs),N.startedTimeStamp=L.startedTimeStamp;const I=i[L.arg.endpointName];zc(I)&&"direction"in O&&(N.direction=O.direction)})}function h(E,O,T,L){Hc(E,O.arg.queryCacheKey,P=>{if(P.requestId!==O.requestId&&!L)return;const{merge:N}=i[O.arg.endpointName];if(P.status=el,N)if(P.data!==void 0){const{fulfilledTimeStamp:I,arg:D,baseQueryMeta:F,requestId:H}=O;let R=Yo(P.data,U=>N(U,T,{arg:D.originalArgs,baseQueryMeta:F,fulfilledTimeStamp:I,requestId:H}));P.data=R}else P.data=T;else P.data=i[O.arg.endpointName].structuralSharing??!0?dv(dr(P.data)?TC(P.data):P.data,T):T;delete P.error,P.fulfilledTimeStamp=O.fulfilledTimeStamp})}const y=ta({name:`${e}/queries`,initialState:jc,reducers:{removeQueryResult:{reducer(E,{payload:{queryCacheKey:O}}){delete E[O]},prepare:Jo()},cacheEntriesUpserted:{reducer(E,O){for(const T of O.payload){const{queryDescription:L,value:P}=T;k(E,L,!0,{arg:L,requestId:O.meta.requestId,startedTimeStamp:O.meta.timestamp}),h(E,{arg:L,requestId:O.meta.requestId,fulfilledTimeStamp:O.meta.timestamp,baseQueryMeta:{}},P,!0)}},prepare:E=>({payload:E.map(L=>{const{endpointName:P,arg:N,value:I}=L,D=i[P];return{queryDescription:{type:nl,endpointName:P,originalArgs:L.arg,queryCacheKey:r({queryArgs:N,endpointDefinition:D,endpointName:P})},value:I}}),meta:{[Mc]:!0,requestId:of(),timestamp:Date.now()}})},queryResultPatched:{reducer(E,{payload:{queryCacheKey:O,patches:T}}){Hc(E,O,L=>{L.data=Ym(L.data,T.concat())})},prepare:Jo()}},extraReducers(E){E.addCase(t.pending,(O,{meta:T,meta:{arg:L}})=>{const P=mf(L);k(O,L,P,T)}).addCase(t.fulfilled,(O,{meta:T,payload:L})=>{const P=mf(T.arg);h(O,T,L,P)}).addCase(t.rejected,(O,{meta:{condition:T,arg:L,requestId:P},error:N,payload:I})=>{Hc(O,L.queryCacheKey,D=>{if(!T){if(D.requestId!==P)return;D.status=tl,D.error=I??N}})}).addMatcher(g,(O,T)=>{const{queries:L}=d(T);for(const[P,N]of Object.entries(L))((N==null?void 0:N.status)===el||(N==null?void 0:N.status)===tl)&&(O[P]=N)})}}),b=ta({name:`${e}/mutations`,initialState:jc,reducers:{removeMutationResult:{reducer(E,{payload:O}){const T=sl(O);T in E&&delete E[T]},prepare:Jo()}},extraReducers(E){E.addCase(n.pending,(O,{meta:T,meta:{requestId:L,arg:P,startedTimeStamp:N}})=>{P.track&&(O[sl(T)]={requestId:L,status:cf,endpointName:P.endpointName,startedTimeStamp:N})}).addCase(n.fulfilled,(O,{payload:T,meta:L})=>{L.arg.track&&Av(O,L,P=>{P.requestId===L.requestId&&(P.status=el,P.data=T,P.fulfilledTimeStamp=L.fulfilledTimeStamp)})}).addCase(n.rejected,(O,{payload:T,error:L,meta:P})=>{P.arg.track&&Av(O,P,N=>{N.requestId===P.requestId&&(N.status=tl,N.error=T??L)})}).addMatcher(g,(O,T)=>{const{mutations:L}=d(T);for(const[P,N]of Object.entries(L))((N==null?void 0:N.status)===el||(N==null?void 0:N.status)===tl)&&P!==(N==null?void 0:N.requestId)&&(O[P]=N)})}}),c={tags:{},keys:{}},u=ta({name:`${e}/invalidation`,initialState:c,reducers:{updateProvidedBy:{reducer(E,O){var T,L,P;for(const{queryCacheKey:N,providedTags:I}of O.payload){f(E,N);for(const{type:D,id:F}of I){const H=(L=(T=E.tags)[D]??(T[D]={}))[P=F||"__internal_without_id"]??(L[P]=[]);H.includes(N)||H.push(N)}E.keys[N]=I}},prepare:Jo()}},extraReducers(E){E.addCase(y.actions.removeQueryResult,(O,{payload:{queryCacheKey:T}})=>{f(O,T)}).addMatcher(g,(O,T)=>{var P,N,I;const{provided:L}=d(T);for(const[D,F]of Object.entries(L.tags??{}))for(const[H,R]of Object.entries(F)){const U=(N=(P=O.tags)[D]??(P[D]={}))[I=H||"__internal_without_id"]??(N[I]=[]);for(const z of R)U.includes(z)||U.push(z),O.keys[z]=L.keys[z]}}).addMatcher(Di(ms(t),Dc(t)),(O,T)=>{a(O,[T])}).addMatcher(y.actions.cacheEntriesUpserted.match,(O,T)=>{const L=T.payload.map(({queryDescription:P,value:N})=>({type:"UNKNOWN",payload:N,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:P}}));a(O,L)})}});function f(E,O){var L;const T=Iv(E.keys[O]??[]);for(const P of T){const N=P.type,I=P.id??"__internal_without_id",D=(L=E.tags[N])==null?void 0:L[I];D&&(E.tags[N][I]=Iv(D).filter(F=>F!==O))}delete E.keys[O]}function a(E,O){const T=O.map(L=>{const P=Cv(L,"providesTags",i,p),{queryCacheKey:N}=L.meta.arg;return{queryCacheKey:N,providedTags:P}});u.caseReducers.updateProvidedBy(E,u.actions.updateProvidedBy(T))}const o=ta({name:`${e}/subscriptions`,initialState:jc,reducers:{updateSubscriptionOptions(E,O){},unsubscribeQueryResult(E,O){},internal_getRTKQSubscriptions(){}}}),s=ta({name:`${e}/internalSubscriptions`,initialState:jc,reducers:{subscriptionsUpdated:{reducer(E,O){return Ym(E,O.payload)},prepare:Jo()}}}),m=ta({name:`${e}/config`,initialState:{online:AI(),focused:II(),middlewareRegistered:!1,..._},reducers:{middlewareRegistered(E,{payload:O}){E.middlewareRegistered=E.middlewareRegistered==="conflict"||l!==O?"conflict":!0}},extraReducers:E=>{E.addCase(gf,O=>{O.online=!0}).addCase(yv,O=>{O.online=!1}).addCase(hf,O=>{O.focused=!0}).addCase(vv,O=>{O.focused=!1}).addMatcher(g,O=>({...O}))}}),v=Wd({queries:y.reducer,mutations:b.reducer,provided:u.reducer,subscriptions:s.reducer,config:m.reducer}),w=(E,O)=>v(S.match(O)?void 0:E,O),A={...m.actions,...y.actions,...o.actions,...s.actions,...b.actions,...u.actions,resetApiState:S};return{reducer:w,actions:A}}var yf=Symbol.for("RTKQ/skipToken"),Tv={status:xi},Ov=Yo(Tv,()=>{}),Pv=Yo(Tv,()=>{});function qI({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=o=>Ov,i=o=>Pv;return{buildQuerySelector:h,buildInfiniteQuerySelector:y,buildMutationSelector:b,selectInvalidatedBy:c,selectCachedArgsForQuery:u,selectApiState:d,selectQueries:g,selectMutations:_,selectQueryEntry:p,selectConfig:S};function l(o){return{...o,...cv(o.status)}}function d(o){return o[t]}function g(o){var s;return(s=d(o))==null?void 0:s.queries}function p(o,s){var m;return(m=g(o))==null?void 0:m[s]}function _(o){var s;return(s=d(o))==null?void 0:s.mutations}function S(o){var s;return(s=d(o))==null?void 0:s.config}function k(o,s,m){return v=>{if(v===yf)return n(r,m);const w=e({queryArgs:v,endpointDefinition:s,endpointName:o});return n(E=>p(E,w)??Ov,m)}}function h(o,s){return k(o,s,l)}function y(o,s){const{infiniteQueryOptions:m}=s;function v(w){const A={...w,...cv(w.status)},{isLoading:E,isError:O,direction:T}=A,L=T==="forward",P=T==="backward";return{...A,hasNextPage:f(m,A.data,A.originalArgs),hasPreviousPage:a(m,A.data,A.originalArgs),isFetchingNextPage:E&&L,isFetchingPreviousPage:E&&P,isFetchNextPageError:O&&L,isFetchPreviousPageError:O&&P}}return k(o,s,v)}function b(){return o=>{let s;return typeof o=="object"?s=sl(o)??yf:s=o,n(s===yf?i:w=>{var A,E;return((E=(A=d(w))==null?void 0:A.mutations)==null?void 0:E[s])??Pv},l)}}function c(o,s){const m=o[t],v=new Set,w=uf(s,df,bv);for(const A of w){const E=m.provided.tags[A.type];if(!E)continue;let O=(A.id!==void 0?E[A.id]:Object.values(E).flat())??[];for(const T of O)v.add(T)}return Array.from(v.values()).flatMap(A=>{const E=m.queries[A];return E?{queryCacheKey:A,endpointName:E.endpointName,originalArgs:E.originalArgs}:[]})}function u(o,s){return uf(Object.values(g(o)),m=>(m==null?void 0:m.endpointName)===s&&m.status!==xi,m=>m.originalArgs)}function f(o,s,m){return s?vf(o,s,m)!=null:!1}function a(o,s,m){return!s||!o.getPreviousPageParam?!1:kv(o,s,m)!=null}}var Va=WeakMap?new WeakMap:void 0,Rv=({endpointName:e,queryArgs:t})=>{let n="";const r=Va==null?void 0:Va.get(t);if(typeof r=="string")n=r;else{const i=JSON.stringify(t,(l,d)=>(d=typeof d=="bigint"?{$bigint:d.toString()}:d,d=ps(d)?Object.keys(d).sort().reduce((g,p)=>(g[p]=d[p],g),{}):d,d));ps(t)&&(Va==null||Va.set(t,i)),n=i}return`${e}(${n})`};function WI(...e){return function(n){const r=Pc(_=>{var S;return(S=n.extractRehydrationInfo)==null?void 0:S.call(n,_,{reducerPath:n.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:r,serializeQueryArgs(_){let S=Rv;if("serializeQueryArgs"in _.endpointDefinition){const k=_.endpointDefinition.serializeQueryArgs;S=h=>{const y=k(h);return typeof y=="string"?y:Rv({...h,queryArgs:y})}}else n.serializeQueryArgs&&(S=n.serializeQueryArgs);return S(_)},tagTypes:[...n.tagTypes||[]]},l={endpointDefinitions:{},batch(_){_()},apiUid:of(),extractRehydrationInfo:r,hasRehydrationInfo:Pc(_=>r(_)!=null)},d={injectEndpoints:p,enhanceEndpoints({addTagTypes:_,endpoints:S}){if(_)for(const k of _)i.tagTypes.includes(k)||i.tagTypes.push(k);if(S)for(const[k,h]of Object.entries(S))typeof h=="function"?h(za(l,k)):Object.assign(za(l,k)||{},h);return d}},g=e.map(_=>_.init(d,i,l));function p(_){const S=_.endpoints({query:k=>({...k,type:nl}),mutation:k=>({...k,type:_v}),infiniteQuery:k=>({...k,type:wv})});for(const[k,h]of Object.entries(S)){if(_.overrideExisting!==!0&&k in l.endpointDefinitions){if(_.overrideExisting==="throw")throw new Error(mi(39));continue}l.endpointDefinitions[k]=h;for(const y of g)y.injectEndpoint(k,h)}return d}return d.injectEndpoints({endpoints:n.endpoints})}}function Ni(e,...t){return Object.assign(e,...t)}var GI=({api:e,queryThunk:t,internalState:n,mwApi:r})=>{const i=`${e.reducerPath}/subscriptions`;let l=null,d=null;const{updateSubscriptionOptions:g,unsubscribeQueryResult:p}=e.internalActions,_=(c,u)=>{if(g.match(u)){const{queryCacheKey:a,requestId:o,options:s}=u.payload,m=c.get(a);return m!=null&&m.has(o)&&m.set(o,s),!0}if(p.match(u)){const{queryCacheKey:a,requestId:o}=u.payload,s=c.get(a);return s&&s.delete(o),!0}if(e.internalActions.removeQueryResult.match(u))return c.delete(u.payload.queryCacheKey),!0;if(t.pending.match(u)){const{meta:{arg:a,requestId:o}}=u,s=Nc(c,a.queryCacheKey,ff);return a.subscribe&&s.set(o,a.subscriptionOptions??s.get(o)??{}),!0}let f=!1;if(t.rejected.match(u)){const{meta:{condition:a,arg:o,requestId:s}}=u;if(a&&o.subscribe){const m=Nc(c,o.queryCacheKey,ff);m.set(s,o.subscriptionOptions??m.get(s)??{}),f=!0}}return f},S=()=>n.currentSubscriptions,y={getSubscriptions:S,getSubscriptionCount:c=>{const f=S().get(c);return(f==null?void 0:f.size)??0},isRequestSubscribed:(c,u)=>{var a;const f=S();return!!((a=f==null?void 0:f.get(c))!=null&&a.get(u))}};function b(c){return JSON.parse(JSON.stringify(Object.fromEntries([...c].map(([u,f])=>[u,Object.fromEntries(f)]))))}return(c,u)=>{if(l||(l=b(n.currentSubscriptions)),e.util.resetApiState.match(c))return l={},n.currentSubscriptions.clear(),d=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,y];const f=_(n.currentSubscriptions,c);let a=!0;if(f){d||(d=setTimeout(()=>{const m=b(n.currentSubscriptions),[,v]=Zm(l,()=>m);u.next(e.internalActions.subscriptionsUpdated(v)),l=m,d=null},500));const o=typeof c.type=="string"&&!!c.type.startsWith(i),s=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;a=!o&&!s}return[a,!1]}},KI=2147483647/1e3-1,$I=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:i,selectors:{selectQueryEntry:l,selectConfig:d},getRunningQueryThunk:g,mwApi:p})=>{const{removeQueryResult:_,unsubscribeQueryResult:S,cacheEntriesUpserted:k}=t.internalActions,h=Di(S.match,n.fulfilled,n.rejected,k.match);function y(o){const s=i.currentSubscriptions.get(o);return s?s.size>0:!1}const b={};function c(o){var s;for(const m of o.values())(s=m==null?void 0:m.abort)==null||s.call(m)}const u=(o,s)=>{const m=s.getState(),v=d(m);if(h(o)){let w;if(k.match(o))w=o.payload.map(A=>A.queryDescription.queryCacheKey);else{const{queryCacheKey:A}=S.match(o)?o.payload:o.meta.arg;w=[A]}f(w,s,v)}if(t.util.resetApiState.match(o)){for(const[w,A]of Object.entries(b))A&&clearTimeout(A),delete b[w];c(i.runningQueries),c(i.runningMutations)}if(r.hasRehydrationInfo(o)){const{queries:w}=r.extractRehydrationInfo(o);f(Object.keys(w),s,v)}};function f(o,s,m){const v=s.getState();for(const w of o){const A=l(v,w);A!=null&&A.endpointName&&a(w,A.endpointName,s,m)}}function a(o,s,m,v){const w=za(r,s),A=(w==null?void 0:w.keepUnusedDataFor)??v.keepUnusedDataFor;if(A===1/0)return;const E=Math.max(0,Math.min(A,KI));if(!y(o)){const O=b[o];O&&clearTimeout(O),b[o]=setTimeout(()=>{if(!y(o)){const T=l(m.getState(),o);if(T!=null&&T.endpointName){const L=m.dispatch(g(T.endpointName,T.originalArgs));L==null||L.abort()}m.dispatch(_({queryCacheKey:o}))}delete b[o]},E*1e3)}}return u},Mv=new Error("Promise never resolved before cacheEntryRemoved."),ZI=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:i,internalState:l,selectors:{selectQueryEntry:d,selectApiState:g}})=>{const p=af(r),_=af(i),S=ms(r,i),k={},{removeQueryResult:h,removeMutationResult:y,cacheEntriesUpserted:b}=e.internalActions;function c(m,v,w){const A=k[m];A!=null&&A.valueResolved&&(A.valueResolved({data:v,meta:w}),delete A.valueResolved)}function u(m){const v=k[m];v&&(delete k[m],v.cacheEntryRemoved())}function f(m){const{arg:v,requestId:w}=m.meta,{endpointName:A,originalArgs:E}=v;return[A,E,w]}const a=(m,v,w)=>{const A=o(m);function E(O,T,L,P){const N=d(w,T),I=d(v.getState(),T);!N&&I&&s(O,P,T,v,L)}if(r.pending.match(m)){const[O,T,L]=f(m);E(O,A,L,T)}else if(b.match(m))for(const{queryDescription:O,value:T}of m.payload){const{endpointName:L,originalArgs:P,queryCacheKey:N}=O;E(L,N,m.meta.requestId,P),c(N,T,{})}else if(i.pending.match(m)){if(v.getState()[t].mutations[A]){const[T,L,P]=f(m);s(T,L,A,v,P)}}else if(S(m))c(A,m.payload,m.meta.baseQueryMeta);else if(h.match(m)||y.match(m))u(A);else if(e.util.resetApiState.match(m))for(const O of Object.keys(k))u(O)};function o(m){return p(m)?m.meta.arg.queryCacheKey:_(m)?m.meta.arg.fixedCacheKey??m.meta.requestId:h.match(m)?m.payload.queryCacheKey:y.match(m)?sl(m.payload):""}function s(m,v,w,A,E){const O=za(n,m),T=O==null?void 0:O.onCacheEntryAdded;if(!T)return;const L={},P=new Promise(R=>{L.cacheEntryRemoved=R}),N=Promise.race([new Promise(R=>{L.valueResolved=R}),P.then(()=>{throw Mv})]);N.catch(()=>{}),k[w]=L;const I=e.endpoints[m].select(Vc(O)?v:w),D=A.dispatch((R,U,z)=>z),F={...A,getCacheEntry:()=>I(A.getState()),requestId:E,extra:D,updateCachedData:Vc(O)?R=>A.dispatch(e.util.updateQueryData(m,v,R)):void 0,cacheDataLoaded:N,cacheEntryRemoved:P},H=T(v,F);Promise.resolve(H).catch(R=>{if(R!==Mv)throw R})}return a},YI=({api:e,context:{apiUid:t},reducerPath:n})=>(r,i)=>{e.util.resetApiState.match(r)&&i.dispatch(e.internalActions.middlewareRegistered(t))},JI=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:i,api:l,assertTagType:d,refetchQuery:g,internalState:p})=>{const{removeQueryResult:_}=l.internalActions,S=Di(ms(r),Dc(r)),k=Di(ms(i,r),Ba(i,r));let h=[],y=0;const b=(f,a)=>{(i.pending.match(f)||r.pending.match(f))&&y++,k(f)&&(y=Math.max(0,y-1)),S(f)?u(Cv(f,"invalidatesTags",n,d),a):k(f)?u([],a):l.util.invalidateTags.match(f)&&u(pf(f.payload,void 0,void 0,void 0,void 0,d),a)};function c(){return y>0}function u(f,a){const o=a.getState(),s=o[e];if(h.push(...f),s.config.invalidationBehavior==="delayed"&&c())return;const m=h;if(h=[],m.length===0)return;const v=l.util.selectInvalidatedBy(o,m);t.batch(()=>{const w=Array.from(v.values());for(const{queryCacheKey:A}of w){const E=s.queries[A],O=Nc(p.currentSubscriptions,A,ff);E&&(O.size===0?a.dispatch(_({queryCacheKey:A})):E.status!==xi&&a.dispatch(g(E)))}})}return b},XI=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{const{currentPolls:l,currentSubscriptions:d}=i,g=new Set;let p=null;const _=(u,f)=>{(n.internalActions.updateSubscriptionOptions.match(u)||n.internalActions.unsubscribeQueryResult.match(u))&&S(u.payload.queryCacheKey,f),(t.pending.match(u)||t.rejected.match(u)&&u.meta.condition)&&S(u.meta.arg.queryCacheKey,f),(t.fulfilled.match(u)||t.rejected.match(u)&&!u.meta.condition)&&k(u.meta.arg,f),n.util.resetApiState.match(u)&&(b(),p&&(clearTimeout(p),p=null),g.clear())};function S(u,f){g.add(u),p||(p=setTimeout(()=>{for(const a of g)h({queryCacheKey:a},f);g.clear(),p=null},0))}function k({queryCacheKey:u},f){const a=f.getState()[e],o=a.queries[u],s=d.get(u);if(!o||o.status===xi)return;const{lowestPollingInterval:m,skipPollingIfUnfocused:v}=c(s);if(!Number.isFinite(m))return;const w=l.get(u);w!=null&&w.timeout&&(clearTimeout(w.timeout),w.timeout=void 0);const A=Date.now()+m;l.set(u,{nextPollTimestamp:A,pollingInterval:m,timeout:setTimeout(()=>{(a.config.focused||!v)&&f.dispatch(r(o)),k({queryCacheKey:u},f)},m)})}function h({queryCacheKey:u},f){const o=f.getState()[e].queries[u],s=d.get(u);if(!o||o.status===xi)return;const{lowestPollingInterval:m}=c(s);if(!Number.isFinite(m)){y(u);return}const v=l.get(u),w=Date.now()+m;(!v||w<v.nextPollTimestamp)&&k({queryCacheKey:u},f)}function y(u){const f=l.get(u);f!=null&&f.timeout&&clearTimeout(f.timeout),l.delete(u)}function b(){for(const u of l.keys())y(u)}function c(u=new Map){let f=!1,a=Number.POSITIVE_INFINITY;for(const o of u.values())o.pollingInterval&&(a=Math.min(o.pollingInterval,a),f=o.skipPollingIfUnfocused||f);return{lowestPollingInterval:a,skipPollingIfUnfocused:f}}return _},QI=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const i=sf(n,r),l=Ba(n,r),d=ms(n,r),g={};return(_,S)=>{var k,h;if(i(_)){const{requestId:y,arg:{endpointName:b,originalArgs:c}}=_.meta,u=za(t,b),f=u==null?void 0:u.onQueryStarted;if(f){const a={},o=new Promise((w,A)=>{a.resolve=w,a.reject=A});o.catch(()=>{}),g[y]=a;const s=e.endpoints[b].select(Vc(u)?c:y),m=S.dispatch((w,A,E)=>E),v={...S,getCacheEntry:()=>s(S.getState()),requestId:y,extra:m,updateCachedData:Vc(u)?w=>S.dispatch(e.util.updateQueryData(b,c,w)):void 0,queryFulfilled:o};f(c,v)}}else if(d(_)){const{requestId:y,baseQueryMeta:b}=_.meta;(k=g[y])==null||k.resolve({data:_.payload,meta:b}),delete g[y]}else if(l(_)){const{requestId:y,rejectedWithValue:b,baseQueryMeta:c}=_.meta;(h=g[y])==null||h.reject({error:_.payload??_.error,isUnhandledError:!b,meta:c}),delete g[y]}}},eA=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{const{removeQueryResult:l}=n.internalActions,d=(p,_)=>{hf.match(p)&&g(_,"refetchOnFocus"),gf.match(p)&&g(_,"refetchOnReconnect")};function g(p,_){const S=p.getState()[e],k=S.queries,h=i.currentSubscriptions;t.batch(()=>{for(const y of h.keys()){const b=k[y],c=h.get(y);if(!c||!b)continue;const u=[...c.values()];(u.some(a=>a[_]===!0)||u.every(a=>a[_]===void 0)&&S.config[_])&&(c.size===0?p.dispatch(l({queryCacheKey:y})):b.status!==xi&&p.dispatch(r(b)))}})}return d};function tA(e){const{reducerPath:t,queryThunk:n,api:r,context:i,getInternalState:l}=e,{apiUid:d}=i,g={invalidateTags:Gr(`${t}/invalidateTags`)},p=h=>h.type.startsWith(`${t}/`),_=[YI,$I,JI,XI,ZI,QI];return{middleware:h=>{let y=!1;const b=l(h.dispatch),c={...e,internalState:b,refetchQuery:k,isThisApiSliceAction:p,mwApi:h},u=_.map(o=>o(c)),f=GI(c),a=eA(c);return o=>s=>{if(!Lm(s))return o(s);y||(y=!0,h.dispatch(r.internalActions.middlewareRegistered(d)));const m={...h,next:o},v=h.getState(),[w,A]=f(s,m,v);let E;if(w?E=o(s):E=A,h.getState()[t]&&(a(s,m,v),p(s)||i.hasRehydrationInfo(s)))for(const O of u)O(s,m,v);return E}},actions:g};function k(h){return e.api.endpoints[h.endpointName].initiate(h.originalArgs,{subscribe:!1,forceRefetch:!0})}}var Lv=Symbol(),nA=({createSelector:e=rf}={})=>({name:Lv,init(t,{baseQuery:n,tagTypes:r,reducerPath:i,serializeQueryArgs:l,keepUnusedDataFor:d,refetchOnMountOrArgChange:g,refetchOnFocus:p,refetchOnReconnect:_,invalidationBehavior:S,onSchemaFailure:k,catchSchemaFailure:h,skipSchemaValidation:y},b){jC();const c=te=>te;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:gf,onOffline:yv,onFocus:hf,onFocusLost:vv},util:{}});const u=qI({serializeQueryArgs:l,reducerPath:i,createSelector:e}),{selectInvalidatedBy:f,selectCachedArgsForQuery:a,buildQuerySelector:o,buildInfiniteQuerySelector:s,buildMutationSelector:m}=u;Ni(t.util,{selectInvalidatedBy:f,selectCachedArgsForQuery:a});const{queryThunk:v,infiniteQueryThunk:w,mutationThunk:A,patchQueryData:E,updateQueryData:O,upsertQueryData:T,prefetch:L,buildMatchThunkActions:P}=HI({baseQuery:n,reducerPath:i,context:b,api:t,serializeQueryArgs:l,assertTagType:c,selectors:u,onSchemaFailure:k,catchSchemaFailure:h,skipSchemaValidation:y}),{reducer:N,actions:I}=jI({context:b,queryThunk:v,mutationThunk:A,serializeQueryArgs:l,reducerPath:i,assertTagType:c,config:{refetchOnFocus:p,refetchOnReconnect:_,refetchOnMountOrArgChange:g,keepUnusedDataFor:d,reducerPath:i,invalidationBehavior:S}});Ni(t.util,{patchQueryData:E,updateQueryData:O,upsertQueryData:T,prefetch:L,resetApiState:I.resetApiState,upsertQueryEntries:I.cacheEntriesUpserted}),Ni(t.internalActions,I);const D=new WeakMap,F=te=>Nc(D,te,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:H,buildInitiateInfiniteQuery:R,buildInitiateMutation:U,getRunningMutationThunk:z,getRunningMutationsThunk:G,getRunningQueriesThunk:J,getRunningQueryThunk:$}=VI({queryThunk:v,mutationThunk:A,infiniteQueryThunk:w,api:t,serializeQueryArgs:l,context:b,getInternalState:F});Ni(t.util,{getRunningMutationThunk:z,getRunningMutationsThunk:G,getRunningQueryThunk:$,getRunningQueriesThunk:J});const{middleware:ne,actions:ae}=tA({reducerPath:i,context:b,queryThunk:v,mutationThunk:A,infiniteQueryThunk:w,api:t,assertTagType:c,selectors:u,getRunningQueryThunk:$,getInternalState:F});return Ni(t.util,ae),Ni(t,{reducer:N,middleware:ne}),{name:Lv,injectEndpoint(te,ie){var xe;const _e=(xe=t.endpoints)[te]??(xe[te]={});Bc(ie)&&Ni(_e,{name:te,select:o(te,ie),initiate:H(te,ie)},P(v,te)),FI(ie)&&Ni(_e,{name:te,select:m(),initiate:U(te)},P(A,te)),zc(ie)&&Ni(_e,{name:te,select:s(te,ie),initiate:R(te,ie)},P(v,te))}}}}),qc=WI(nA());function Wc(e,t,n){return{error:e,message:t,status:n,type:"network_error"}}function rA(e,t){for(const n of t)if(e.has(n))return!0;return!1}function iA(e,t){return t.some(n=>e.has(n))}function sA(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function aA(e,t){try{const n=new URL(e),r=new URL(t);return n.origin===r.origin&&n.pathname===r.pathname}catch{return!1}}function Dv(){return{getParamsByRedirect:e=>{const{url:t,timeout:n,successParams:r,errorParams:i,includeHashParams:l,resolveOnRedirectUri:d}=e;return!d&&(!(r!=null&&r.length)||!(i!=null&&i.length))?Promise.reject({type:"internal_error",message:"successParams and errorParams must be provided"}):d&&!(i!=null&&i.length)?Promise.reject({type:"internal_error",message:"errorParams must be provided"}):new Promise((g,p)=>{let _=null,S=null,k=()=>{},h=()=>{};h=()=>{!_&&!S||(S&&(clearTimeout(S),S=null),_&&(_.removeEventListener("load",k),_.parentNode&&_.remove(),_=null),k=()=>{},h=()=>{})},k=()=>{try{if(_&&_.contentWindow){const y=_.contentWindow.location.href;if(y==="about:blank"||!y)return;const{searchParams:b,hash:c}=new URL(y),u=l?new URLSearchParams([...b,...new URLSearchParams(c.slice(1))]):b,f=sA(u);if(rA(u,i)){h(),g(f);return}if(d&&aA(y,d)){h(),g(f);return}if(iA(u,r)){h(),g(f);return}}}catch{h(),p({type:"internal_error",message:"unexpected failure"})}};try{_=document.createElement("iframe"),_.style.display="none",_.addEventListener("load",k),document.body.appendChild(_),S=setTimeout(()=>{h(),p({type:"internal_error",message:"iframe timed out"})},n),_.src=t}catch{h(),p({type:"internal_error",message:"error setting up iframe"})}})}}}const oA={begin:"JOURNEY_START",continue:"JOURNEY_NEXT",terminate:"JOURNEY_TERMINATE",start:"DAVINCI_START",next:"DAVINCI_NEXT",flow:"DAVINCI_FLOW",success:"DAVINCI_SUCCESS",error:"DAVINCI_ERROR",failure:"DAVINCI_FAILURE",resume:"DAVINCI_RESUME",poll:"DAVINCI_POLL",authorize:"AUTHORIZE",par:"PAR",tokenExchange:"TOKEN_EXCHANGE",revoke:"REVOKE",userInfo:"USER_INFO",endSession:"END_SESSION"};function lA(e,{type:t,payload:n}){const r=Object.freeze({type:t,payload:n});return i=>{if(!Array.isArray(i))return e;const l=i.map(g=>g);function d(){const g=l.shift();return g&&g(e,r,d),e}return d()}}function Lr(e,t,n){let r={...e,url:new URL(e.url),headers:new Headers(e.headers)};const i={applyMiddleware(l){return r=lA(r,{type:oA[t],payload:n||{}})(l),i},async applyQuery(l){return await l({...r,url:r.url.toString()})}};return i}const cA=3e3,tr=qc({reducerPath:"oidc",baseQuery:Uc(),endpoints:e=>({authorizeFetch:e.mutation({queryFn:async({url:t},n,r,i)=>{const{requestMiddleware:l,logger:d}=n.extra,g={url:t,method:"POST",credentials:"include",headers:{Accept:"application/json"}};d.debug("OIDC authorize API request",g);const p=await Lr(g,"authorize").applyMiddleware(l).applyQuery(async _=>await i(_));if(p.error){const _=p.error;if(_.data&&typeof _.data=="object"&&"details"in _.data&&Array.isArray(_.data.details)){d.debug("Error in authorize response",_);const S=_.data.details[0];return p.error={status:_.status,statusText:"AUTHORIZE_ERROR",data:{error:S.code,error_description:S.message,type:"auth_error"}},p}return d.error("Error in OAuth configuration",_),p.error={status:_.status,statusText:"CONFIGURATION_ERROR",data:{error:"CONFIGURATION_ERROR",error_description:"Configuration error. Please check your OAuth configuration, like clientId or allowed redirect URLs.",type:"network_error"}},p}return d.debug("OIDC Authorize fetch API response",p),p}}),par:e.mutation({queryFn:async({endpoint:t,body:n},r,i,l)=>{const{requestMiddleware:d,logger:g}=r.extra,p={url:t,method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},credentials:"include",body:n};g.debug("OIDC PAR API raw request",p);const _=await Lr(p,"par").applyMiddleware(d).applyQuery(async k=>await l(k));if(g.debug("OIDC PAR API raw response",_),_.error){const k=_.error;let h;return k.data&&typeof k.data=="object"&&"error_description"in k.data&&typeof k.data.error_description=="string"?h=k.data.error_description:h=`Failed to push authorization request: ${k.status}`,g.error("PAR API error",h),_.error.data={error:"PAR_ERROR",error_description:h,type:"network_error"},_}const S=_.data;return!S||typeof S!="object"||!("request_uri"in S)||typeof S.request_uri!="string"||S.request_uri.length===0?{error:{status:"CUSTOM_ERROR",error:"PAR_ERROR",data:{error:"PAR_ERROR",error_description:"PAR response missing required 'request_uri' field",type:"network_error"}}}:_}}),sessionCheckIframe:e.mutation({queryFn:async({url:t,responseType:n},r)=>{const{requestMiddleware:i,logger:l}=r.extra,d=["error","error_description"],g={url:t};l.debug("OIDC session check iframe request",{responseType:n});const p=await Lr(g,"authorize").applyMiddleware(i).applyQuery(async _=>{try{const S=_.timeout??cA,k=n==="id_token"?{url:_.url,successParams:["id_token"],errorParams:d,includeHashParams:!0,timeout:S}:{url:_.url,resolveOnRedirectUri:new URL(_.url).searchParams.get("redirect_uri"),errorParams:d,successParams:[],timeout:S},h=await Dv().getParamsByRedirect(k);return"error"in h?{error:{status:400,statusText:"SESSION_CHECK_ERROR",data:{error:h.error,message:h.error_description??"An error occurred during session check",type:"auth_error"}}}:{data:{params:h}}}catch(S){const k=S instanceof Object&&"message"in S&&S.message==="iframe timed out";return{error:{status:400,statusText:"SESSION_CHECK_ERROR",data:{error:k?"iframe_timeout":"session_check_error",message:k?"Session check timed out waiting for iframe response":"An unexpected error occurred during session check",type:"network_error"}}}}});return"error"in p?l.error("Error in session check iframe",p):l.debug("OIDC session check iframe response received"),p}}),sessionCheckFetch:e.mutation({queryFn:async({url:t},n,r,i)=>{var S,k,h;const{requestMiddleware:l,logger:d}=n.extra,g={url:t,method:"GET",credentials:"include",headers:{Accept:"application/json"}};d.debug("OIDC session check fetch request");const p=await Lr(g,"authorize").applyMiddleware(l).applyQuery(async y=>await i(y)),_=p.error??(((k=(S=p.meta)==null?void 0:S.response)==null?void 0:k.status)!==204?(h=p.meta)==null?void 0:h.response:void 0);if(_){const y=typeof _.status=="number"&&_.status<500;return d.error("Error in session check fetch",_),{error:{status:_.status??"CUSTOM_ERROR",statusText:"SESSION_CHECK_ERROR",data:{error:y?"login_required":"session_check_error",message:y?"The request requires login.":"Session check failed.",type:y?"auth_error":"network_error"}}}}return d.debug("OIDC session check fetch response received"),{data:{status:204}}}}),authorizeIframe:e.mutation({queryFn:async({url:t},n)=>{const{requestMiddleware:r,logger:i}=n.extra,l={url:t,method:"POST",credentials:"include",headers:{Accept:"application/json"}};i.debug("OIDC authorize API request",l);const d=await Lr(l,"authorize").applyMiddleware(r).applyQuery(async p=>{try{return{data:await Dv().getParamsByRedirect({url:p.url,successParams:["code","state"],errorParams:["error","error_description"],timeout:p.timeout||3e3})}}catch(_){return{error:{status:400,message:"Unknown error occurred calling authorize endpoint",data:_}}}});if("error"in d)return i.error("Error in authorizeIframe response",d),{error:{status:400,statusText:"CONFIGURATION_ERROR",data:{error:"CONFIGURATION_ERROR",error_description:"Configuration error. Please check your OAuth configuration, like clientId or allowed redirect URLs.",type:"network_error"}}};const g=d.data;return"error"in g?(i.debug("Error in authorize response",d),{error:{status:400,statusText:"AUTHORIZE_ERROR",data:{error:g.error||"Unknown_Error",error_description:g.error_description||"An unknown error occurred during authorization",type:"auth_error"}}}):{data:d.data}}}),endSession:e.mutation({queryFn:async({idToken:t,endpoint:n,signOutRedirectUri:r},i,l,d)=>{const{requestMiddleware:g,logger:p}=i.extra,_=new URL(n);_.searchParams.append("id_token_hint",t),r&&_.searchParams.append("post_logout_redirect_uri",r);const S={url:_.toString(),method:"GET",credentials:"include",headers:{Accept:"application/json"}};p.debug("OIDC endSession API request",S);const k=await Lr(S,"endSession").applyMiddleware(g).applyQuery(async h=>await d(h));if(k.error){let h="An error occurred while trying to end the session";return k.error.status===400?h="Bad request to end session endpoint":k.error.status===401?h="Unauthorized request to end session endpoint":k.error.status===403&&(h="Forbidden request to end session endpoint"),p.error("End Session API error",h),k.error.data=Wc("End Session Error",h,k.error.status),k}return p.debug("OIDC endSession API response",k),k}}),exchange:e.mutation({queryFn:async({code:t,config:n,endpoint:r,verifier:i},l,d,g)=>{const{requestMiddleware:p,logger:_}=l.extra,{clientId:S,redirectUri:k}=n,h=new URLSearchParams({grant_type:"authorization_code",code:t,client_id:S,redirect_uri:k});i&&h.append("code_verifier",i);const y={url:r,method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:h};_.debug("OIDC tokenExchange API request",y);const b=await Lr(y,"tokenExchange").applyMiddleware(p).applyQuery(async c=>await g(c));if(b.error){let c="An error occurred while exchanging the authorization code";return b.error.status===400?c="Bad request to token exchange endpoint":b.error.status===401?c="Unauthorized request to token exchange endpoint":b.error.status===403&&(c="Forbidden request to token exchange endpoint"),_.error("Token Exchange API error",c),b.error.data=Wc("Token Exchange Error",c,b.error.status),b}return _.debug("OIDC tokenExchange API response",b),b}}),revoke:e.mutation({queryFn:async({accessToken:t,clientId:n,endpoint:r},i,l,d)=>{const{requestMiddleware:g,logger:p}=i.extra,_=new URLSearchParams({...n?{client_id:n}:{},token:t}),S={url:r,method:"POST",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:_};p.debug("OIDC revoke API request",S);const k=await Lr(S,"revoke").applyMiddleware(g).applyQuery(async h=>await d(h));if(k.error){let h="An error occurred while revoking the token";return k.error.status===400?h="Bad request to revoke endpoint":k.error.status===401?h="Unauthorized request to revoke endpoint":k.error.status===403&&(h="Forbidden request to revoke endpoint"),p.error("Token Revoke API error",h),k.error.data=Wc("Token Revoke Error",h,k.error.status),k}return p.debug("OIDC revoke API response",k),k}}),userInfo:e.mutation({queryFn:async({accessToken:t,endpoint:n},r,i,l)=>{const{requestMiddleware:d,logger:g}=r.extra,p={url:n,method:"GET",credentials:"include",headers:{Accept:"application/json",Authorization:`Bearer ${t}`}};g.debug("OIDC userInfo API request",p);const _=await Lr(p,"userInfo").applyMiddleware(d).applyQuery(async k=>await l(k));let S="An error occurred while fetching user info";return _.error?(_.error.status===400?S="Bad request to user info endpoint":_.error.status===401?S="Unauthorized request to user info endpoint":_.error.status===403&&(S="Forbidden request to user info endpoint"),g.error("User Info API error",S),_.error.data=Wc("User Info Error",S,_.error.status),_):(g.debug("OIDC userInfo API response",_),_)}})})}),uA=(e,t,n)=>Do({try:()=>Em({clientId:e.clientId,serverConfig:{baseUrl:new URL(t.authorization_endpoint).origin},responseType:e.responseType||"code",redirectUri:e.redirectUri,scope:e.scope||"openid",...n}),catch:r=>({error:"PAR_PARAM_BUILD_ERROR",error_description:r instanceof Error?r.message:"Failed to generate auth URL values",type:"auth_error"})}),dA=e=>Ri({try:()=>vm(e),catch:t=>({error:"PAR_CHALLENGE_ERROR",error_description:t instanceof Error?t.message:"Failed to generate PKCE challenge",type:"auth_error"})}),fA=e=>Do({try:()=>e(),catch:t=>({error:"PAR_STORAGE_ERROR",error_description:t instanceof Error?t.message:"Failed to store PAR session options",type:"unknown_error"})}),hA=(e,t,n,r,i)=>Do({try:()=>km({clientId:e.clientId,redirectUri:e.redirectUri,scope:e.scope||"openid",responseType:e.responseType||"code",...t,challenge:n,state:r,...i&&{prompt:i}}),catch:l=>({error:"PAR_PARAM_BUILD_ERROR",error_description:l instanceof Error?l.message:"Failed to build PAR parameters",type:"auth_error"})}),gA=(e,t)=>Ri({try:async()=>[await jd(e,{...t,prompt:"none"}),t],catch:n=>({error:"AuthorizationUrlError",error_description:n instanceof Error?n.message:"Error creating authorization URL",type:"auth_error"})}),pA=(e,t,n)=>Ri({try:()=>{const{prompt:r,...i}=n;return jd(t.authorization_endpoint,i)},catch:r=>({error:"AuthorizationUrlError",error_description:r instanceof Error?r.message:"Error creating authorization URL",type:"auth_error"})}).pipe(Jt(r=>nn({error:e.error,error_description:e.error_description,type:"auth_error",redirectUrl:r}))),mA=e=>{if(e.error)return nn(Pm(e.error));if(!vC(e.data))return nn({error:"PAR_ERROR",error_description:"PAR response missing required 'request_uri' field",type:"network_error"});const t=e.data;return Sn({request_uri:t.request_uri,expires_in:t.expires_in??60})},xv=(e,t,n)=>{const r=Pm(e);return Om(e)&&"statusText"in e&&e.statusText==="CONFIGURATION_ERROR"?nn(r):pA(r,t,n)},vA=(e,t,n)=>Ri({try:()=>e.dispatch(tr.endpoints.par.initiate({endpoint:t,body:n})),catch:r=>({error:"PAR_DISPATCH_ERROR",error_description:r instanceof Error?r.message:"Failed to dispatch PAR request",type:"network_error"})}),yA=(e,t,n,r)=>Do({try:()=>SC({authorizationEndpoint:e,clientId:t,requestUri:n,prompt:r}),catch:i=>({error:"PAR_URL_BUILD_ERROR",error_description:i instanceof Error?i.message:"Failed to build PAR authorize URL",type:"unknown_error"})}),_A=(e,t,n,r)=>Ri({try:()=>e.dispatch(tr.endpoints.authorizeFetch.initiate({url:t})),catch:i=>({error:"AUTHORIZE_DISPATCH_ERROR",error_description:i instanceof Error?i.message:"Failed to dispatch authorize request",type:"network_error"})}).pipe(Jt(({error:i,data:l})=>i?xv(i,n,r):l!=null&&l.authorizeResponse?Sn(l.authorizeResponse):nn({error:"Unknown_Error",error_description:"Response schema was not recognized",type:"unknown_error"}))),wA=(e,t,n,r)=>Ri({try:()=>e.dispatch(tr.endpoints.authorizeIframe.initiate({url:t})),catch:i=>({error:"AUTHORIZE_DISPATCH_ERROR",error_description:i instanceof Error?i.message:"Failed to dispatch authorize request",type:"network_error"})}).pipe(Jt(({error:i,data:l})=>{if(i)return xv(i,n,r);const d=l;return d!==void 0&&typeof d.code=="string"&&typeof d.state=="string"?Sn(d):nn({error:"Unknown_Error",error_description:"Response data did not contain expected code and state fields",type:"unknown_error"})}));function Nv(e,t,n,r,i){if(t.responseMode==="pi.flow"){const{responseMode:l,...d}=t;return _A(r,e,n,d).pipe(pi(()=>i.debug("Received success response from authorize fetch endpoint")))}return wA(r,e,n,t).pipe(pi(()=>i.debug("Received success response from authorize iframe endpoint")))}function Uv(e,t,n,r,i){const l=e.pushed_authorization_request_endpoint;if(!l)return nn({error:"PAR_NOT_CONFIGURED",error_description:"PAR endpoint not found in server configuration",type:"wellknown_error"});const{prompt:d,...g}=i??{};return dm(function*(){const[p,_]=yield*uA(t,e,i),S=yield*dA(p.verifier),k=yield*hA(t,g,S,p.state,d),h=yield*vA(r,l,k),{request_uri:y,expires_in:b}=yield*mA(h);return b<30&&(yield*Pi(()=>n.warn(`PAR request_uri expires in ${b}s — authorize must complete before expiry`))),yield*fA(_),yield*yA(e.authorization_endpoint,t.clientId,y,d)})}function Fv(e,t,n,r,i,l){const d={clientId:t.clientId,redirectUri:t.redirectUri,scope:t.scope||"openid",responseType:t.responseType||"code",...i},g=Uv(e,t,n,r,i).pipe(pi(k=>n.debug("PAR authorize URL created",k)),Ys(k=>Pi(()=>n.error(`PAR authorize failed [${k.type}]: ${k.error}`,k))),Jt(k=>Nv(k,d,e,r,n).pipe(Ys(h=>Pi(()=>n.error("Error dispatching PAR authorize request",h)))))),[p,_]=yC(e,t,i),S=gA(p,_).pipe(pi(([k])=>n.debug("Authorize URL created",k)),Ys(k=>Pi(()=>n.error("Error creating authorize URL",k))),Jt(([k,h])=>Nv(k,h,e,r,n)),Ys(k=>Pi(()=>n.error("Error dispatching authorize request",k))));return l?g:S}function bA(e,t,n,r,i){return Pi(()=>{const l=gC(t.clientId,i==null?void 0:i.prefix);return{code:e,config:t,state:n,storedValues:l,endpoint:r}})}function SA(e,t){if(t){let n;return"status"in t?n="error"in t?t.error:JSON.stringify(t.data):"message"in t&&(n=t.message),nn({error:"Token Exchange failure",message:n||"Unknown error during token exchange",type:"exchange_error"})}return e?Sn(e):nn({error:"Token Exchange failure",message:"No data returned from token exchange",type:"exchange_error"})}function EA({code:e,config:t,state:n,storedValues:r,endpoint:i}){return!r||r.state!==n?nn({error:"State mismatch",message:"The provided state does not match the stored state. This is likely due to passing in used, returned, authorize parameters.",type:"state_error"}):Sn({code:e,config:t,endpoint:i,...r.verifier&&{verifier:r.verifier}})}function Bv({code:e,config:t,endpoint:n,log:r,state:i,store:l,options:d}){return bA(e,t,i,n,d).pipe(Jt(g=>EA(g)),pi(g=>r.debug("Token exchange values created",g)),Ys(g=>Pi(()=>r.error("Error creating token exchange values",g))),Jt(g=>Zs(()=>l.dispatch(tr.endpoints.exchange.initiate(g)))),Jt(({data:g,error:p})=>SA(g,p)),pi(g=>r.debug("Token exchange response handled",g)),Ys(g=>Pi(()=>r.error("Error handling token exchange response",g))),qr(g=>({accessToken:g.access_token,idToken:g.id_token,...g.refresh_token&&{refreshToken:g.refresh_token},...g.expires_in&&{expiresAt:g.expires_in},...g.expires_in&&{expiryTimestamp:Date.now()+g.expires_in*1e3}})))}const al=qc({reducerPath:"wellknown",baseQuery:Uc(),endpoints:e=>({configuration:e.query({queryFn:async(t,n,r,i)=>await Im(t).applyQuery(async d=>await i(d))})})});function vs(e,t){return rf(al.endpoints.configuration.select(e),r=>r==null?void 0:r.data)(t)}function kA({requestMiddleware:e,logger:t}){return rv({reducer:{[tr.reducerPath]:tr.reducer,[al.reducerPath]:al.reducer},middleware:n=>n({thunk:{extraArgument:{requestMiddleware:e,logger:t}}}).concat(al.middleware).concat(tr.middleware)})}function zv(e,t){if(t){let n="An error occurred while ending the session",r="unknown";return"message"in t&&t.message&&(n=t.message),"status"in t&&(r=t.status),{error:"End Session failure",message:n,type:"auth_error",status:r}}return null}function _f(e){let t;return e==="no_tokens"?t={error:"Token_Error",message:"Required for ending session and revoking access token",type:"state_error"}:e==="no_access_token"?t={error:"Token_Error",message:"No access token found in storage; required for revoking access token",type:"state_error"}:e==="no_id_token"?t={error:"Token_Error",message:"No ID token found in storage; required for ending session",type:"state_error"}:t={error:"Token_Error",message:"An unknown error occurred while creating the error object",type:"unknown_error"},t}function CA(e,t){return t?t-e<Date.now():!1}function IA({tokens:e,config:t,wellknown:n,store:r,storageClient:i}){return $k(Zs(()=>r.dispatch(tr.endpoints.endSession.initiate({idToken:e.idToken,endpoint:n.ping_end_idp_session_endpoint||n.end_session_endpoint,signOutRedirectUri:t.signOutRedirectUri}))).pipe(qr(({data:l,error:d})=>zv(l,d))),Zs(()=>r.dispatch(tr.endpoints.revoke.initiate({accessToken:e.accessToken,clientId:t.clientId,endpoint:n.revocation_endpoint}))).pipe(qr(({data:l,error:d})=>zv(l,d)))).pipe(Jt(([l,d])=>Zs(()=>i.remove()).pipe(Jt(g=>l&&"error"in l||d&&"error"in d||g&&"error"in g?nn({error:"Inner request error",sessionResponse:l,revokeResponse:d,deleteResponse:g}):Sn({sessionResponse:null,revokeResponse:null,deleteResponse:null})))))}new TextEncoder;const wf=new TextDecoder;function AA(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(e);const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function TA(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(typeof e=="string"?e:wf.decode(e),{alphabet:"base64url"});let t=e;t instanceof Uint8Array&&(t=wf.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/");try{return AA(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}}const OA=e=>typeof e=="object"&&e!==null;function PA(e){if(!OA(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}class Vv extends Error{constructor(n,r){var i;super(n,r);Je(this,"code","ERR_JOSE_GENERIC");this.name=this.constructor.name,(i=Error.captureStackTrace)==null||i.call(Error,this,this.constructor)}}Je(Vv,"code","ERR_JOSE_GENERIC");class ys extends Vv{constructor(){super(...arguments);Je(this,"code","ERR_JWT_INVALID")}}Je(ys,"code","ERR_JWT_INVALID");function RA(e){if(typeof e!="string")throw new ys("JWTs must use Compact JWS serialization, JWT must be a string");const{1:t,length:n}=e.split(".");if(n===5)throw new ys("Only JWTs using Compact JWS serialization can be decoded");if(n!==3)throw new ys("Invalid JWT");if(!t)throw new ys("JWTs must contain a payload");let r;try{r=TA(t)}catch{throw new ys("Failed to base64url decode the payload")}let i;try{i=JSON.parse(wf.decode(r))}catch{throw new ys("Failed to parse the decoded payload as JSON")}if(!PA(i))throw new ys("Invalid JWT Claims Set");return i}const Hv=e=>Ri({try:()=>e.get(),catch:()=>({error:"storage_error",message:"Failed to read tokens from storage",type:"argument_error"})}).pipe(qr(t=>t&&"idToken"in t?t.idToken:null)),jv=(e,t,n)=>Ri({try:()=>e.dispatch(tr.endpoints.sessionCheckIframe.initiate({url:t,responseType:n})),catch:r=>({error:"dispatch_error",message:r instanceof Error?r.message:"Failed to dispatch session check",type:"network_error"})}).pipe(Jt(r=>{var l,d,g;if("error"in r&&r.error){const p=r.error;return nn({error:((l=p.data)==null?void 0:l.error)??"session_check_error",message:((d=p.data)==null?void 0:d.message)??"An error occurred during session check",type:((g=p.data)==null?void 0:g.type)??"network_error"})}const{params:i}=r.data;return Sn(i)})),MA=(e,t)=>Ri({try:()=>e.dispatch(tr.endpoints.sessionCheckFetch.initiate({url:t})),catch:n=>({error:"dispatch_error",message:n instanceof Error?n.message:"Failed to dispatch session check",type:"network_error"})}).pipe(Jt(n=>{var r,i,l;if("error"in n&&n.error){const d=n.error;return nn({error:((r=d.data)==null?void 0:r.error)??"login_required",message:((i=d.data)==null?void 0:i.message)??"The request requires login.",type:((l=d.data)==null?void 0:l.type)??"auth_error"})}return cm})),LA=(e,t,n,r)=>dm(function*(){if(e.state!==t)return yield*nn({error:"state_mismatch",message:"State parameter in response does not match the expected value",type:"auth_error"});const i=e.id_token;if(!i)return yield*nn({error:"no_id_token",message:"No id_token found in iframe response",type:"auth_error"});const l=yield*Do({try:()=>RA(i),catch:()=>({error:"invalid_jwt",message:"Failed to decode id_token JWT payload",type:"auth_error"})});return l.nonce!==n?yield*nn({error:"nonce_mismatch",message:"Nonce in id_token does not match the expected value",type:"auth_error"}):r!==void 0&&l.sub!==r?yield*nn({error:"subject_mismatch",message:"Subject claim in id_token does not match the expected value",type:"auth_error"}):l}),DA=(e,t,n,r,i)=>{const l=new URLSearchParams({prompt:"none",response_type:"none",client_id:t.clientId,scope:(i==null?void 0:i.scope)??"openid",...r?{redirect_uri:r}:{},id_token_hint:n});return`${e}?${l.toString()}`},xA=(e,t,n,r,i)=>{const l=Hd(32),d=mm(),g=new URLSearchParams({prompt:"none",response_type:"id_token",client_id:t.clientId,redirect_uri:r,scope:(i==null?void 0:i.scope)??"openid",nonce:l,state:d,...n?{id_token_hint:n}:{}});return{url:`${e}?${g.toString()}`,nonce:l,state:d}},NA=(e,t,n,r,i,l)=>Hv(r).pipe(Jt(d=>{if(!d)return nn({error:"no_id_token_hint",message:"response_type=none requires a stored id_token; authenticate first",type:"argument_error"});const g=(l==null?void 0:l.redirectUri)??t.redirectUri,p=DA(e.authorization_endpoint,t,d,g,l);return g?jv(n,p,"none"):MA(n,p)}),pi(()=>i.debug("Session check (none) completed successfully")),qr(()=>({responseType:"none"}))),UA=(e,t,n,r,i,l)=>{const d=(l==null?void 0:l.redirectUri)??t.redirectUri;return d?Hv(r).pipe(Jt(g=>{const{url:p,nonce:_,state:S}=xA(e.authorization_endpoint,t,g,d,l);return jv(n,p,"id_token").pipe(Jt(k=>LA(k,S,_,l==null?void 0:l.subject)))}),pi(()=>i.debug("Session check (id_token) completed successfully")),qr(g=>({responseType:"id_token",claims:g}))):nn({error:"missing_redirect_uri",message:"redirect_uri is required for session check with response_type=id_token",type:"argument_error"})};async function FA({config:e,requestMiddleware:t,logger:n,storage:r}){var h;const i=Id({level:(n==null?void 0:n.level)??e.log??"error",custom:n==null?void 0:n.custom}),l=e.oauthThreshold||30*1e3,d=Am({type:(r==null?void 0:r.type)||"localStorage",name:(r==null?void 0:r.name)||e.clientId,prefix:(r==null?void 0:r.prefix)||"pic",...r}),g=kA({requestMiddleware:t,logger:i});if(!((h=e==null?void 0:e.serverConfig)!=null&&h.wellknown))return{error:"Requires a wellknown url initializing this factory.",type:"argument_error"};if(!(e!=null&&e.clientId))return{error:"Requires a clientId.",type:"argument_error"};const p=e.serverConfig.wellknown,{data:_,error:S}=await g.dispatch(al.endpoints.configuration.initiate(p));if(S||!_)return i.error(`Error fetching wellknown config. Please check the URL: ${p}`),{error:`Failed to fetch well-known configuration from: ${p}`,type:"wellknown_error"};if(_!=null&&_.require_pushed_authorization_requests&&e.par===!1)return{error:"The authorization server requires Pushed Authorization Requests (PAR). Set config.par to true or omit it.",type:"argument_error"};const k=e.par??(_==null?void 0:_.require_pushed_authorization_requests)===!0;return{subscribe:g.subscribe,authorize:{url:async y=>{const b=g.getState(),c=vs(p,b);if(!(c!=null&&c.authorization_endpoint))return{error:"Authorization endpoint not found in wellknown configuration",type:"wellknown_error"};if(k){const f=await fs(Uv(c,e,i,g,y).pipe(Ys(a=>Pi(()=>i.error(`PAR authorize.url() failed [${a.type}]: ${a.error}`,a)))));if(uc(f))return f.value;if(dc(f)){const a=f.cause.error;return{error:a.error,message:a.error_description,type:a.type}}else{const a=oc(f.cause)?f.cause.defect:void 0;return{error:"PAR authorization failure",message:a instanceof Error?a.message:String(a??"Unknown defect"),type:"auth_error"}}}const u={clientId:e.clientId,redirectUri:e.redirectUri,scope:e.scope||"openid",responseType:e.responseType||"code",...e.loginHint!==void 0&&{loginHint:e.loginHint},...e.nonce!==void 0&&{nonce:e.nonce},...e.display!==void 0&&{display:e.display},...e.prompt!==void 0&&{prompt:e.prompt},...e.uiLocales!==void 0&&{uiLocales:e.uiLocales},...e.acrValues!==void 0&&{acrValues:e.acrValues},...e.query!==void 0&&{query:e.query},...y};return jd(c.authorization_endpoint,u)},background:async y=>{const b=g.getState(),c=vs(p,b);if(!(c!=null&&c.authorization_endpoint))return{error:"Wellknown missing authorization endpoint",error_description:"Authorization endpoint not found in wellknown configuration",type:"wellknown_error"};const u=await fs(Fv(c,e,i,g,{...y??{},prompt:"none"},k));if(uc(u))return u.value;if(dc(u))return u.cause.error;{const f=oc(u.cause)?u.cause.defect:void 0;return{error:"Authorization failure",error_description:f instanceof Error?f.message:String(f??"Unknown defect"),type:"auth_error"}}}},token:{exchange:async(y,b,c)=>{const u=g.getState(),f=vs(p,u);if(!(f!=null&&f.token_endpoint))return{error:"Wellknown missing token endpoint",type:"wellknown_error"};const a=Bv({code:y,config:e,state:b,log:i,endpoint:f.token_endpoint,store:g,options:c}).pipe(pi(async s=>{await d.set(s)})),o=await fs(a);return Uo(o,"Token Exchange failure","exchange_error")},get:async y=>{const{authorizeOptions:b,forceRenew:c,backgroundRenew:u,storageOptions:f}=y||{},a=g.getState(),o=vs(p,a);if(!(o!=null&&o.authorization_endpoint))return{error:"Wellknown missing authorization endpoint",type:"wellknown_error"};const s=await d.get();if(s&&"error"in s)return{error:"Error occurred while retrieving tokens",message:"Please log the user out completely and try again",type:"state_error"};if(!c&&s&&!CA(l,s.expiryTimestamp))return s;if(!u&&!c)return s||{error:"No tokens found",type:"state_error"};const m=Fv(o,e,i,g,{...b??{},prompt:"none"},k).pipe(Jt(w=>Bv({code:w.code,config:e,log:i,state:w.state,endpoint:o.token_endpoint,store:g,options:f})),pi(async w=>{s&&"accessToken"in s&&(await g.dispatch(tr.endpoints.revoke.initiate({accessToken:s.accessToken,clientId:e.clientId,endpoint:o.revocation_endpoint})),await d.remove()),await d.set(w)})),v=await fs(m);if(uc(v))return v.value;if(dc(v))return v.cause.error;{const w=oc(v.cause)?v.cause.defect:void 0;return{error:"Background token renewal failed",error_description:w instanceof Error?w.message:String(w??"Unknown defect"),type:"auth_error"}}},revoke:async()=>{const y=g.getState(),b=vs(p,y);if(!(b!=null&&b.revocation_endpoint))return{error:"Wellknown missing revocation endpoint",type:"wellknown_error"};const c=await d.get();if(!c||!("accessToken"in c))return{error:"No access token found",type:"state_error"};const u=Zs(()=>g.dispatch(tr.endpoints.revoke.initiate({accessToken:c.accessToken,clientId:e.clientId,endpoint:b.revocation_endpoint}))).pipe(qr(({error:a})=>{if(a){let o="An error occurred while revoking the token",s="unknown";return"message"in a&&a.message&&(o=a.message),"status"in a&&(s=a.status),{error:"Token revocation failure",message:o,type:"auth_error",status:s}}return null}),Jt(a=>Zs(()=>d.remove()).pipe(Jt(o=>a&&"error"in a||o&&"error"in o?nn({error:"Inner request error",revokeResponse:a,deleteResponse:o}):Sn({revokeResponse:null,deleteResponse:null}))))),f=await fs(u);return Uo(f,"Token revocation failure","auth_error")}},user:{info:async()=>{const y=g.getState(),b=vs(p,y);if(!(b!=null&&b.userinfo_endpoint))return{error:"Wellknown missing userinfo endpoint",type:"wellknown_error"};const c=await d.get();if(!c||!("accessToken"in c))return{error:"No access token found",type:"auth_error"};const u=Zs(()=>g.dispatch(tr.endpoints.userInfo.initiate({accessToken:c.accessToken,endpoint:b.userinfo_endpoint}))).pipe(Jt(({data:a,error:o})=>{if(o){let s="An error occurred while fetching user info",m="unknown";return"message"in o&&o.message&&(s=o.message),"status"in o&&(m=o.status),nn({error:"User Info retrieval failure",message:s,type:"auth_error",status:m})}return Sn(a)})),f=await fs(u);return Uo(f,"User Info retrieval failure","auth_error")},logout:async()=>{const y=g.getState(),b=vs(p,y);if(!(b!=null&&b.end_session_endpoint))return{error:"Wellknown missing end session endpoint",type:"wellknown_error"};if(!(b!=null&&b.revocation_endpoint))return{error:"Wellknown missing revocation endpoint",type:"wellknown_error"};const c=await d.get();if(!c)return _f("no_tokens");if(!("accessToken"in c))return _f("no_access_token");if(!("idToken"in c))return _f("no_id_token");const u=await fs(IA({tokens:c,config:e,wellknown:b,store:g,storageClient:d}));return Uo(u,"Logout_Failure","auth_error")},session:async y=>{const b=g.getState(),c=vs(p,b);if(!(c!=null&&c.authorization_endpoint))return{error:"Wellknown missing authorization endpoint",message:"Authorization endpoint not found in wellknown configuration",type:"wellknown_error"};const u=(y==null?void 0:y.responseType)==="id_token"?UA(c,e,g,d,i,y):NA(c,e,g,d,i,y),f=await fs(u);return Uo(f,"Session check failure","unknown_error")}}}}const BA=En({clientId:se(),redirectUri:se().url({message:"`redirectUri` must be a full URL (this is generated by the Zod library)."}),scope:se().default("openid"),serverConfig:En({wellknown:se({error:e=>e.input===void 0?"Setting the `serverConfig.wellknown` is required (this is generated by the Zod library).":"`serverConfig.wellknown` must be a URL string (this is generated by the Zod library)."}).url({message:"`serverConfig.wellknown` must be a full URL (this is generated by the Zod library)."})}).strict(),par:gi().optional(),loginHint:se().optional(),acrValues:se().optional(),query:Yl(se(),se()).optional(),oauthThreshold:os().optional()}).strict();function zA(e,t,n,r){const i=BA.parse(e),{subscribe:l,set:d}=lr(null),g=FA({config:i,requestMiddleware:t,...n&&{logger:n},...r&&{storage:r}}).then(p=>(d(p),p)).catch(p=>{const _={error:p instanceof Error?p.message:String(p),type:"unknown_error"};return d(_),_});return{subscribe:l,getClient:()=>g}}function VA(e){let t=!1;return{start:async()=>{try{await Promise.resolve().then(()=>iP),t=!0}catch(n){return console.error("error loading ping signals",n),{error:"Failed to load PingOne Signals SDK"}}try{await window._pingOneSignals.init(e),(e.behavioralDataCollection===!0||e.behavioralDataCollection==="true")&&window._pingOneSignals.resumeBehavioralData()}catch(n){return console.error("error initializing ping protect",n),{error:"Failed to initialize PingOne Signals SDK"}}},getData:async()=>{if(!t)return{error:"PingOne Signals SDK is not initialized"};try{return await window._pingOneSignals.getData()}catch(n){return console.error("error getting data from ping protect",n),{error:"Failed to get data from Protect"}}},pauseBehavioralData:()=>{if(!t)return{error:"PingOne Signals SDK is not initialized"};try{window._pingOneSignals.pauseBehavioralData()}catch(n){return console.error("error pausing behavioral data in ping protect",n),{error:"Failed to pause behavioral data in Protect"}}},resumeBehavioralData:()=>{if(!t)return{error:"PingOne Signals SDK is not initialized"};try{window._pingOneSignals.resumeBehavioralData()}catch(n){return console.error("error resuming behavioral data in ping protect",n),{error:"Failed to resume behavioral data in Protect"}}}}}const HA=lE({envId:se({error:e=>e.input===void 0?"Setting `envId` is required (this is generated by the Zod library).":"`envId` must be a string (this is generated by the Zod library)."}),waitForWindowLoad:gi().optional(),hubUrl:se().optional(),disableHub:gi().optional(),deviceAttributesToIgnore:bd(se()).optional(),behavioralDataCollection:gi().optional(),disableTags:gi().optional(),externalIdentifiers:Yl(se(),se()).optional(),universalDeviceIdentification:gi().optional(),agentIdentification:gi().optional(),agentTimeout:os().optional(),agentPort:os().optional(),consoleLogEnabled:gi().optional()}),jA=Yl(se(),se()),qA=Ks([HA,jA]),ol=lr(null);function WA(e){const t=qA.safeParse(e);if(!t.success)return Promise.resolve({error:t.error.message});const n=t.data,r=VA(n);return ol.set(r),r.start()}function GA(){const e=Yt(ol);return e?e.getData():Promise.resolve({error:"Protect client not initialized"})}function KA(){const e=Yt(ol);return e?e.pauseBehavioralData():{error:"Protect client not initialized"}}function $A(){const e=Yt(ol);return e?e.resumeBehavioralData():{error:"Protect client not initialized"}}const _s={subscribe:ol.subscribe,start:WA,getData:GA,pauseBehavioralData:KA,resumeBehavioralData:$A},ZA=/^#[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$/,qv=/^(https?:\/\/[^\s"'<>{}\\]+|data:image\/[a-zA-Z+]+;base64,[a-zA-Z0-9+/=]+)$/,YA=/^[a-zA-Z0-9\s,'\-."]+$/,Tn=se().regex(ZA).optional().catch(void 0),JA=En({primaryColor:Tn,primaryOffColor:Tn,secondaryColor:Tn,backgroundColor:Tn,linkColor:Tn,linkActiveColor:Tn,logo:se().regex(qv).optional().catch(void 0),favicon:se().regex(qv).optional().catch(void 0),logoHeight:os().optional(),fontFamily:se().regex(YA).optional().catch(void 0),buttonBorderRadius:os().optional(),cardBorderRadius:os().optional(),cardBgColor:Tn,inputBgColor:Tn,inputBorderColor:Tn,inputLabelColor:Tn,inputFocusRingColor:Tn,selectAccentColor:Tn,selectHoverBgColor:Tn,buttonFocusRingColor:Tn,inputTextColor:Tn,cardTextColor:Tn,bodyTextColor:Tn,buttonTextColor:Tn}).strict(),XA=En({dark:se().optional(),height:os().optional(),light:se().optional(),width:os().optional()}).strict();En({checksAndRadios:Ks([qn("animated"),qn("standard")]).optional(),labels:Ks([qn("floating").optional(),qn("stacked")]).optional(),showPassword:Ks([qn("none"),qn("button"),qn("checkbox")]).optional(),logo:XA.optional(),sections:En({header:gi().optional()}).strict().optional(),stage:En({icon:gi().optional()}).strict().optional(),theme:JA.optional()}).strict().partial();const bf={checksAndRadios:"animated",labels:"floating",showPassword:"button",logo:void 0,sections:void 0,stage:void 0,theme:void 0},Kr=lr(bf);function QA(e){if(e){const t=r=>e[r],n=Object.keys(e).reduce((r,i)=>t(i)===void 0||t(i)===null?r:{...r,[i]:t(i)},bf);Kr.set(n)}else Kr.set(bf);return Kr}const Sf={completed:!1,error:null,loading:!1,successful:!1,response:null};function eT(e){const t=lr(Sf);async function n(){if(!e)return t.set({completed:!0,error:{message:"OIDC client not configured",troubleshoot:null},loading:!1,successful:!1,response:null}),Yt(t);const i=Yt(e);if(!i)return t.set({completed:!0,error:{message:"OIDC client not ready",troubleshoot:null},loading:!1,successful:!1,response:null}),Yt(t);if("error"in i)return t.set({completed:!0,error:{message:String(i.error),troubleshoot:null},loading:!1,successful:!1,response:null}),Yt(t);const l=Yt(t);if(l.loading||l.completed)return l;t.set({...Sf,loading:!0});try{const d=await i.user.info();if("error"in d){const g=typeof d.message=="string"?d.message:String(d.error),p=typeof d.code=="number"?d.code:null;return t.set({completed:!0,error:{code:p,message:g,troubleshoot:null},loading:!1,successful:!1,response:null}),Yt(t)}t.set({completed:!0,error:null,loading:!1,successful:!0,response:d})}catch(d){const g=d instanceof Error?d.message:"Unknown user info error";t.set({completed:!0,error:{message:g,troubleshoot:null},loading:!1,successful:!1,response:null})}return Yt(t)}function r(){t.set(Sf)}return{get:n,reset:r,subscribe:t.subscribe}}const Gc=En({journey:se().optional(),match:se().regex(/^(#\/service|\?journey)/,{message:"HREF string must start with `?journey` or `#/service`"}).array()}).optional(),Wv=En({forgotPassword:Gc,forgotUsername:Gc,login:Gc,register:Gc}),Kc={forgotPassword:{journey:"ResetPassword",match:["#/service/ResetPassword","?journey=ResetPassword"]},forgotUsername:{journey:"ForgottenUsername",match:["#/service/ForgottenUsername","?journey=ForgottenUsername"]},login:{journey:"Login",match:["#/service/Login","?journey","?journey=Login"]},register:{journey:"Registration",match:["#/service/Registration","?journey=Registration"]}};Wv.parse(Kc);const Gv=Object.keys(Kc).map(e=>({...Kc[e],key:e})),ll=lr(Gv);function tT(e){if(e){Wv.parse(e);const t={...Kc,...e},n=Object.keys(t);ll.set(n.map(r=>({...t[r],key:r})))}else ll.set(Gv);return ll}function nT(e){if(!e.authorization_endpoint)return{error:"Well-known configuration conversion failed",message:"Well-known response is missing authorization_endpoint",type:"wellknown_error"};const n=new URL(e.authorization_endpoint).origin,i=new URL(e.issuer).pathname;if(!i.includes("/oauth2"))return{error:"Well-known configuration conversion failed",message:`Journey-client requires a ForgeRock AM issuer containing "/oauth2" in the path. Received issuer: ${e.issuer}. For PingOne or other OIDC providers, use davinci-client or oidc-client instead.`,type:"wellknown_error"};const l=i.replace("/oauth2","/json"),d=`${l}/authenticate`,g=`${l}/sessions/`;return{baseUrl:n,paths:{authenticate:d,sessions:g}}}const Ef=ta({name:"config",initialState:{serverConfig:{baseUrl:"",paths:{authenticate:"",sessions:""}}},reducers:{set(e,t){const n=nT(t.payload.wellknownResponse);"error"in n?e.error=n:(e.serverConfig=n,e.error=void 0)}}});function Kv(e,t,n){const i={...n,...t?{authIndexType:"service",authIndexValue:t}:void 0},l=Object.keys(i).length>0?`?${bm(i)}`:"",d=ym({endpoint:"authenticate",customPaths:e.paths});return wm(e.baseUrl,`${d}${l}`)}function rT(e,t){const n={...t},r=Object.keys(n).length>0?`?${bm(n)}`:"",i=ym({endpoint:"sessions",customPaths:e.paths});return wm(e.baseUrl,`${i}${r}`)}function $v(e){return{body:e?JSON.stringify(e.payload):void 0,credentials:"include",headers:new Headers({}),method:"POST"}}function iT(){return{credentials:"include",headers:new Headers({}),method:"POST"}}const Ha=qc({reducerPath:"journeyReducer",baseQuery:Uc({baseUrl:"/",prepareHeaders:e=>(e.set("Accept","application/json"),e.set("Accept-API-Version","protocol=1.0,resource=2.1"),e.set("Content-Type","application/json"),e.set("X-Requested-With",hC),e)}),endpoints:e=>({start:e.mutation({queryFn:async(t,n,r,i)=>{const l=n.getState(),{serverConfig:d}=l.config;if(!d)throw new Error("Server configuration is missing.");const g=(t==null?void 0:t.query)||{},p=Kv(d,t==null?void 0:t.journey,g),_=$v(),{requestMiddleware:S}=n.extra;return await Lr({..._,url:p},"begin",{type:"service",tree:t==null?void 0:t.journey}).applyMiddleware(S).applyQuery(async h=>await i(h,n,n.extra))}}),next:e.mutation({queryFn:async({step:t,options:n},r,i,l)=>{const d=r.getState(),{serverConfig:g}=d.config;if(!g)throw new Error("Server configuration is missing.");const p=(n==null?void 0:n.query)||{},_=Kv(g,void 0,p),S=$v(t),{requestMiddleware:k}=r.extra;return await Lr({...S,url:_},"continue").applyMiddleware(k).applyQuery(async y=>await l(y,r,r.extra))}}),terminate:e.mutation({queryFn:async(t,n,r,i)=>{const l=n.getState(),{serverConfig:d}=l.config;if(!d)throw new Error("Server configuration is missing.");const g={...t==null?void 0:t.query,_action:"logout"},p=rT(d,g),_=iT(),{requestMiddleware:S}=n.extra;return await Lr({..._,url:p},"terminate").applyMiddleware(S).applyQuery(async h=>await i(h,n,n.extra))}})})}),$c=qc({reducerPath:"wellknown",baseQuery:Uc(),endpoints:e=>({configuration:e.query({queryFn:async(t,n,r,i)=>await Im(t).applyQuery(async d=>await i(d))})})}),sT=Wd({[Ha.reducerPath]:Ha.reducer,[Ef.name]:Ef.reducer,[$c.reducerPath]:$c.reducer}),aT=({requestMiddleware:e,logger:t})=>rv({reducer:sT,middleware:n=>n({serializableCheck:!0,thunk:{extraArgument:{requestMiddleware:e,logger:t}}}).concat(Ha.middleware).concat($c.middleware)});function oT(e){return e.realm}function lT(e){return e.tokenId}function cT(e){return e.successUrl}function uT(e){return{payload:e,type:Wr.LoginSuccess,getRealm:()=>oT(e),getSessionToken:()=>lT(e),getSuccessUrl:()=>cT(e)}}const Zv={[rn.CannotContainCharacters]:(e,t)=>{const n=hs(t,"forbiddenChars","");return`${e} must not contain following characters: "${n}"`},[rn.CannotContainDuplicates]:(e,t)=>{const n=hs(t,"duplicateValue","");return`${e} must not contain duplicates: "${n}"`},[rn.CannotContainOthers]:(e,t)=>{const n=hs(t,"disallowedFields","");return`${e} must not contain: "${n}"`},[rn.LeastCapitalLetters]:(e,t)=>{const n=hs(t,"numCaps",0);return`${e} must contain at least ${n} capital ${hc(n,"letter")}`},[rn.LeastNumbers]:(e,t)=>{const n=hs(t,"numNums",0);return`${e} must contain at least ${n} numeric ${hc(n,"value")}`},[rn.MatchRegexp]:e=>`${e} has failed the "MATCH_REGEXP" policy`,[rn.MaximumLength]:(e,t)=>{const n=hs(t,"maxLength",0);return`${e} must be at most ${n} ${hc(n,"character")}`},[rn.MaximumNumber]:e=>`${e} has failed the "MAXIMUM_NUMBER_VALUE" policy`,[rn.MinimumLength]:(e,t)=>{const n=hs(t,"minLength",0);return`${e} must be at least ${n} ${hc(n,"character")}`},[rn.MinimumNumber]:e=>`${e} has failed the "MINIMUM_NUMBER_VALUE" policy`,[rn.Required]:e=>`${e} is required`,[rn.Unique]:e=>`${e} must be unique`,[rn.UnknownPolicy]:(e,t)=>{const n=hs(t,"policyRequirement","Unknown");return`${e}: Unknown policy requirement "${n}"`},[rn.ValidArrayItems]:e=>`${e} has failed the "VALID_ARRAY_ITEMS" policy`,[rn.ValidDate]:e=>`${e} has an invalid date`,[rn.ValidEmailAddress]:e=>`${e} has an invalid email address`,[rn.ValidNameFormat]:e=>`${e} has an invalid name format`,[rn.ValidNumber]:e=>`${e} has an invalid number`,[rn.ValidPhoneFormat]:e=>`${e} has an invalid phone number`,[rn.ValidQueryFilter]:e=>`${e} has failed the "VALID_QUERY_FILTER" policy`,[rn.ValidType]:e=>`${e} has failed the "VALID_TYPE" policy`};class dT{static parseErrors(t,n){const r=[];return t.detail&&t.detail.failedPolicyRequirements&&t.detail.failedPolicyRequirements.map(i=>{r.push.apply(r,[{detail:i,messages:this.parseFailedPolicyRequirement(i,n)}])}),r}static parseFailedPolicyRequirement(t,n){const r=[];return t.policyRequirements.map(i=>{r.push(this.parsePolicyRequirement(t.property,i,n))}),r}static parsePolicyRequirement(t,n,r={}){let i;if(typeof n=="string")try{const _=JSON.parse(n);i=typeof _=="string"?{policyRequirement:_}:_}catch{i={policyRequirement:n}}else i={...n};const l=i.policyRequirement,d=r[l]||Zv[l]||Zv[rn.UnknownPolicy],g=i.params?{...i.params,policyRequirement:l}:{policyRequirement:l};return d(t,g)}}function fT(e){return Number(e.code)}function hT(e){return e.detail}function gT(e){return e.message}function pT(e,t){return dT.parseErrors(e,t)}function mT(e){return e.reason}function vT(e){return{payload:e,type:Wr.LoginFailure,getCode:()=>fT(e),getDetail:()=>hT(e),getMessage:()=>gT(e),getProcessedMessage:t=>pT(e,t),getReason:()=>mT(e)}}class fn{constructor(t){Je(this,"payload");this.payload=t}getType(){return this.payload.type}getInputValue(t=0){return this.getArrayElement(this.payload.input,t).value}setInputValue(t,n=0){this.getArrayElement(this.payload.input,n).value=t}getOutputValue(t=0){return this.getArrayElement(this.payload.output,t).value}getOutputByName(t,n){const r=this.payload.output.find(i=>i.name===t);return r?r.value:n}getArrayElement(t,n=0){if(t===void 0)throw new Error(`No NameValue array was provided to search (selector ${n})`);if(typeof n=="number"){if(n<0||n>t.length-1)throw new Error(`Selector index ${n} is out of range`);return t[n]}if(typeof n=="string"){const r=t.find(i=>i.name===n);if(!r)throw new Error(`Missing callback input entry "${n}"`);return r}if(typeof n=="object"&&n.test&&n.exec){const r=t.find(i=>n.test(i.name));if(!r)throw new Error(`Missing callback input entry "${n}"`);return r}throw new Error("Invalid selector value type")}}class kf extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getName(){return this.getOutputByName("name","")}getPrompt(){return this.getOutputByName("prompt","")}isRequired(){return this.getOutputByName("required",!1)}getFailedPolicies(){const n=this.getOutputByName("failedPolicies",[]);try{return n.map(r=>JSON.parse(r))}catch{throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `AttributeInputCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}setValidateOnly(n){this.setInputValue(n,/validateOnly/)}setValue(n){this.setInputValue(n)}}class yT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}getDefaultChoice(){return this.getOutputByName("defaultChoice",0)}getChoices(){return this.getOutputByName("choices",[])}setChoiceIndex(n){const r=this.getChoices().length;if(n<0||n>r-1)throw new Error(`${n} is out of bounds`);this.setInputValue(n)}setChoiceValue(n){const r=this.getChoices().indexOf(n);if(r===-1)throw new Error(`"${n}" is not a valid choice`);this.setInputValue(r)}}class _T extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getDefaultOption(){return Number(this.getOutputByName("defaultOption",0))}getMessageType(){return Number(this.getOutputByName("messageType",0))}getOptions(){return this.getOutputByName("options",[])}getOptionType(){return Number(this.getOutputByName("optionType",0))}getPrompt(){return this.getOutputByName("prompt","")}setOptionIndex(n){const r=this.getOptions();if(!Number.isInteger(n)||n<0||n>=r.length)throw new Error(`"${n}" is not a valid choice (0-${Math.max(0,r.length-1)})`);this.setInputValue(n)}setOptionValue(n){const r=this.getOptions().indexOf(n);if(r===-1)throw new Error(`"${n}" is not a valid choice`);this.setInputValue(r)}}class wT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getMessage(){return this.getOutputByName("message","")}isMetadataRequired(){return this.getOutputByName("metadata",!1)}isLocationRequired(){return this.getOutputByName("location",!1)}setProfile(n){this.setInputValue(JSON.stringify(n))}}class bT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}}class ST extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}getPredefinedQuestions(){return this.getOutputByName("predefinedQuestions",[])}isAllowedUserDefinedQuestions(){return this.getOutputByName("allowUserDefinedQuestions",!1)}setQuestion(n){this.setValue("question",n)}setAnswer(n){this.setValue("answer",n)}setValue(n,r){if(!this.payload.input)throw new Error("KBA payload is missing input");const i=this.payload.input.find(l=>l.name.endsWith(n));if(!i)throw new Error(`No input has name ending in "${n}"`);i.value=r}}class ET extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getData(){return this.getOutputByName("data",{})}}class kT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}setName(n){this.setInputValue(n)}}class CT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getFailedPolicies(){return this.getOutputByName("failedPolicies",[])}getPolicies(){return this.getOutputByName("policies",[])}getPrompt(){return this.getOutputByName("prompt","")}setPassword(n){this.setInputValue(n)}}class IT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPauseBehavioralData(){return this.getOutputByName("pauseBehavioralData",!1)}setData(n){this.setInputValue(n,/signals/)}setClientError(n){this.setInputValue(n,/clientError/)}}class AT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getConfig(){const n=this.getOutputByName("signalsInitializationOptions",void 0);return n!==null&&typeof n=="object"&&!Array.isArray(n)?n:{envId:this.getOutputByName("envId",""),consoleLogEnabled:this.getOutputByName("consoleLogEnabled",!1),deviceAttributesToIgnore:this.getOutputByName("deviceAttributesToIgnore",[]),customHost:this.getOutputByName("customHost",""),lazyMetadata:this.getOutputByName("lazyMetadata",!1),behavioralDataCollection:this.getOutputByName("behavioralDataCollection",!0),deviceKeyRsyncIntervals:this.getOutputByName("deviceKeyRsyncIntervals",14),enableTrust:this.getOutputByName("enableTrust",!1),disableTags:this.getOutputByName("disableTags",!1),disableHub:this.getOutputByName("disableHub",!1)}}setClientError(n){this.setInputValue(n,/clientError/)}}class TT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getMessage(){return this.getOutputByName("message","")}getWaitTime(){return Number(this.getOutputByName("waitTime",0))}}class OT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getSiteKey(){return this.getOutputByName("recaptchaSiteKey","")}setResult(n){this.setInputValue(n)}}class PT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getSiteKey(){return this.getOutputByName("recaptchaSiteKey","")}getApiUrl(){return this.getOutputByName("captchaApiUri","")}getElementClass(){return this.getOutputByName("captchaDivClass","")}setResult(n){this.setInputValue(n)}setClientError(n){this.setInputValue(n,"IDToken1clientError")}setPayload(n){this.setInputValue(n,"IDToken1payload")}setAction(n){this.setInputValue(n,"IDToken1action")}}class RT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getRedirectUrl(){return this.getOutputByName("redirectUrl","")}}class MT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getProviders(){return this.getOutputByName("providers",[])}setProvider(n){const r=this.getProviders().find(i=>i.provider===n);if(!r)throw new Error(`"${n}" is not a valid choice`);this.setInputValue(r.provider)}}class Yv extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getMessage(){return this.getOutputByName("message","")}getMessageType(){return this.getOutputByName("messageType","")}}class LT extends Yv{constructor(n){super(n);Je(this,"payload");this.payload=n}}class DT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getTerms(){return this.getOutputByName("terms","")}getVersion(){return this.getOutputByName("version","")}getCreateDate(){const n=this.getOutputByName("createDate",""),r=new Date(n);return Number.isNaN(r.getTime())?null:r}setAccepted(n=!0){this.setInputValue(n)}}class xT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}setInput(n){this.setInputValue(n)}}class NT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getFailedPolicies(){const n=this.getOutputByName("failedPolicies",[]);try{return n.map(r=>JSON.parse(r))}catch{throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `ValidatedCreatePasswordCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}getPrompt(){return this.getOutputByName("prompt","")}isRequired(){return this.getOutputByName("required",!1)}setPassword(n){this.setInputValue(n)}setValidateOnly(n){this.setInputValue(n,/validateOnly/)}}class UT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}getFailedPolicies(){const n=this.getOutputByName("failedPolicies",[]);try{return n.map(r=>JSON.parse(r))}catch{throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `ValidatedCreateUsernameCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}isRequired(){return this.getOutputByName("required",!1)}setName(n){this.setInputValue(n)}setValidateOnly(n){this.setInputValue(n,/validateOnly/)}}function Jv(e){switch(e.type){case fe.BooleanAttributeInputCallback:return new kf(e);case fe.ChoiceCallback:return new yT(e);case fe.ConfirmationCallback:return new _T(e);case fe.DeviceProfileCallback:return new wT(e);case fe.HiddenValueCallback:return new bT(e);case fe.KbaCreateCallback:return new ST(e);case fe.MetadataCallback:return new ET(e);case fe.NameCallback:return new kT(e);case fe.NumberAttributeInputCallback:return new kf(e);case fe.PasswordCallback:return new CT(e);case fe.PingOneProtectEvaluationCallback:return new IT(e);case fe.PingOneProtectInitializeCallback:return new AT(e);case fe.PollingWaitCallback:return new TT(e);case fe.ReCaptchaCallback:return new OT(e);case fe.ReCaptchaEnterpriseCallback:return new PT(e);case fe.RedirectCallback:return new RT(e);case fe.SelectIdPCallback:return new MT(e);case fe.StringAttributeInputCallback:return new kf(e);case fe.SuspendedTextOutputCallback:return new LT(e);case fe.TermsAndConditionsCallback:return new DT(e);case fe.TextInputCallback:return new xT(e);case fe.TextOutputCallback:return new Yv(e);case fe.ValidatedCreatePasswordCallback:return new NT(e);case fe.ValidatedCreateUsernameCallback:return new UT(e);default:return new fn(e)}}function Cf(e,t){return e.filter(n=>n.getType()===t)}function FT(e,t){const n=Cf(e,t);if(n.length!==1)throw new Error(`Expected 1 callback of type "${t}", but found ${n.length}`);return n[0]}function BT(e,t,n){const r=Cf(e,t);if(r.length!==1)throw new Error(`Expected 1 callback of type "${t}", but found ${r.length}`);r[0].setInputValue(n)}function zT(e){return e.description}function VT(e){return e.header}function HT(e){return e.stage}function jT(e,t){return e.map(r=>Jv(r)||Jv(r))}function qT(e,t){const n=typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e)),r=n.callbacks?jT(n.callbacks):[];return{payload:n,callbacks:r,type:Wr.Step,getCallbackOfType:i=>FT(r,i),getCallbacksOfType:i=>Cf(r,i),setCallbackValue:(i,l)=>BT(r,i,l),getDescription:()=>zT(e),getHeader:()=>VT(e),getStage:()=>HT(e)}}function If(e){let t;switch(e.authId?t=Wr.Step:e.successUrl?t=Wr.LoginSuccess:t=Wr.LoginFailure,t){case Wr.LoginSuccess:return uT(e);case Wr.LoginFailure:return vT(e);case Wr.Step:return qT(e);default:return{error:"unknown_step_type",message:"Unable to determine step type from server response",type:"unknown_error"}}}function Xv(e){const t=e.data??(e.error&&"status"in e.error&&typeof e.error.status=="number"&&typeof e.error.data=="object"&&e.error.data!==null?e.error.data:void 0);return e.error&&"error"in e.error?sc({error:"request_failed",message:`Request failed: ${e.error.error}`,type:"unknown_error"}):e.error&&"message"in e.error?sc({error:"request_failed",message:`Request failed: ${e.error.message??"Unknown error"}`,type:"unknown_error"}):e.error&&!t?sc({error:"request_failed",message:"Request failed: Unknown error",type:"unknown_error"}):t?uk(t):sc({error:"no_response_data",message:"No data received from server",type:"unknown_error"})}async function WT({config:e,requestMiddleware:t,logger:n}){var y;const r=Id({level:(n==null?void 0:n.level)??e.log??"error",custom:n==null?void 0:n.custom}),l=["callbackFactory","clientId","middleware","oauthThreshold","platformHeader","prefix","realmPath","redirectUri","scope","tokenStore","tree","type"].filter(b=>e[b]!==void 0);((y=e.serverConfig)==null?void 0:y.timeout)!==void 0&&l.push("serverConfig.timeout"),l.length>0&&r.warn(`The following configuration properties are not used by journey-client and will be ignored: ${l.join(", ")}`);const d=aT({requestMiddleware:t,logger:r}),{wellknown:g}=e.serverConfig;if(!cC(g)){const b=`Invalid wellknown URL: ${g}. URL must use HTTPS (or HTTP for localhost) and end with /.well-known/openid-configuration.`;throw r.error(b),new Error(b)}const{data:p,error:_}=await d.dispatch($c.endpoints.configuration.initiate(g));if(_||!p){const b=dC(_),c=`${b.error}: ${b.message}`;throw r.error(c),new Error(c)}d.dispatch(Ef.actions.set({wellknownResponse:p}));const S=d.getState().config.error;if(S){const b=`${S.error}: ${S.message}`;throw r.error(b),new Error(b)}const k=Am({type:"sessionStorage",name:"journey-step"}),h={subscribe:d.subscribe,start:async b=>{const c=await d.dispatch(Ha.endpoints.start.initiate(b));return Xp(Xv(c),{onLeft:u=>u,onRight:u=>If(u)})},next:async(b,c)=>{const u=await d.dispatch(Ha.endpoints.next.initiate({step:b,options:c}));return Xp(Xv(u),{onLeft:f=>f,onRight:f=>If(f)})},redirect:async b=>{const c=b.getCallbackOfType(fe.RedirectCallback);if(!c)throw new Error("RedirectCallback not found on step");const u=c.getRedirectUrl();if(!u||typeof u!="string")throw new Error("Redirect URL not found on RedirectCallback");const f=await k.set({step:b.payload});Vp(f)&&r.warn("Failed to persist step before redirect",f),window.location.assign(u)},resume:async(b,c)=>{const u=new URL(b),f=u.searchParams.get("code"),a=u.searchParams.get("error"),o=u.searchParams.get("errorCode"),s=u.searchParams.get("errorMessage"),m=u.searchParams.get("state"),v=u.searchParams.get("form_post_entry"),w=u.searchParams.get("nonce"),A=u.searchParams.get("RelayState"),E=u.searchParams.get("responsekey"),O=u.searchParams.get("scope"),T=u.searchParams.get("suspendedId"),L=u.searchParams.get("authIndexValue")??void 0;let P;function N(){return f&&m||v||E}function I(F){return typeof F=="object"&&F!==null&&"step"in F&&typeof F.step=="object"}if(N()){const F=await k.get();if(F){if(Vp(F))throw new Error(`Error retrieving previous step: ${F.message||F.error}`);I(F)&&(P=If(F.step))}if(await k.remove(),!P)throw new Error("Error: previous step information not found in storage for resume operation.")}const D={...c,query:{...f&&{code:f},...a&&{error:a},...o&&{errorCode:o},...s&&{errorMessage:s},...v&&{form_post_entry:v},...w&&{nonce:w},...A&&{RelayState:A},...E&&{responsekey:E},...O&&{scope:O},...m&&{state:m},...T&&{suspendedId:T},...c&&c.query},...((c==null?void 0:c.journey)??L)&&{journey:(c==null?void 0:c.journey)??L}};if(P)return await h.next(P,D);{const F=D;return await h.start(F)}},terminate:async b=>{const{error:c}=await d.dispatch(Ha.endpoints.terminate.initiate(b));if(c)return{error:"terminate_failed",message:"status"in c?`Failed to terminate session: ${c.status}`:"Failed to terminate session",type:"unknown_error"}}};return h}function GT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Af={exports:{}},sn={},Tf={exports:{}},ia={};function Qv(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function KT(e,t,n){}function $T(e,t,n){}var ZT=/javascript\s*\:/img;function YT(e,t){return ZT.test(t)?"":t}ia.whiteList=Qv(),ia.getDefaultWhiteList=Qv,ia.onAttr=KT,ia.onIgnoreAttr=$T,ia.safeAttrValue=YT;var JT={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},cl=JT;function XT(e,t){e=cl.trimRight(e),e[e.length-1]!==";"&&(e+=";");var n=e.length,r=!1,i=0,l=0,d="";function g(){if(!r){var S=cl.trim(e.slice(i,l)),k=S.indexOf(":");if(k!==-1){var h=cl.trim(S.slice(0,k)),y=cl.trim(S.slice(k+1));if(h){var b=t(i,d.length,h,y,S);b&&(d+=b+"; ")}}}i=l+1}for(;l<n;l++){var p=e[l];if(p==="/"&&e[l+1]==="*"){var _=e.indexOf("*/",l+2);if(_===-1)break;l=_+1,i=l+1,r=!1}else p==="("?r=!0:p===")"?r=!1:p===";"?r||g():p===`
51
+ `&&g()}return cl.trim(d)}var QT=XT,Zc=ia,e5=QT;function ey(e){return e==null}function t5(e){var t={};for(var n in e)t[n]=e[n];return t}function ty(e){e=t5(e||{}),e.whiteList=e.whiteList||Zc.whiteList,e.onAttr=e.onAttr||Zc.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Zc.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Zc.safeAttrValue,this.options=e}ty.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,r=n.whiteList,i=n.onAttr,l=n.onIgnoreAttr,d=n.safeAttrValue,g=e5(e,function(p,_,S,k,h){var y=r[S],b=!1;if(y===!0?b=y:typeof y=="function"?b=y(k):y instanceof RegExp&&(b=y.test(k)),b!==!0&&(b=!1),k=d(S,k),!!k){var c={position:_,sourcePosition:p,source:h,isWhite:b};if(b){var u=i(S,k,c);return ey(u)?S+":"+k:u}else{var u=l(S,k,c);if(!ey(u))return u}}});return g};var n5=ty;(function(e,t){var n=ia,r=n5;function i(d,g){var p=new r(g);return p.process(d)}t=e.exports=i,t.FilterCSS=r;for(var l in n)t[l]=n[l];typeof window<"u"&&(window.filterCSS=e.exports)})(Tf,Tf.exports);var Of=Tf.exports,Pf={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,n=t.exec(e);return n?n.index:-1}},r5=Of.FilterCSS,i5=Of.getDefaultWhiteList,Yc=Pf;function ny(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var ry=new r5;function s5(e,t,n){}function a5(e,t,n){}function o5(e,t,n){}function l5(e,t,n){}function iy(e){return e.replace(u5,"&lt;").replace(d5,"&gt;")}function c5(e,t,n,r){if(n=fy(n),t==="href"||t==="src"){if(n=Yc.trim(n),n==="#")return"#";if(!(n.substr(0,7)==="http://"||n.substr(0,8)==="https://"||n.substr(0,7)==="mailto:"||n.substr(0,4)==="tel:"||n.substr(0,11)==="data:image/"||n.substr(0,6)==="ftp://"||n.substr(0,2)==="./"||n.substr(0,3)==="../"||n[0]==="#"||n[0]==="/"))return""}else if(t==="background"){if(Jc.lastIndex=0,Jc.test(n))return""}else if(t==="style"){if(sy.lastIndex=0,sy.test(n)||(ay.lastIndex=0,ay.test(n)&&(Jc.lastIndex=0,Jc.test(n))))return"";r!==!1&&(r=r||ry,n=r.process(n))}return n=hy(n),n}var u5=/</g,d5=/>/g,f5=/"/g,h5=/&quot;/g,g5=/&#([a-zA-Z0-9]*);?/gim,p5=/&colon;?/gim,m5=/&newline;?/gim,Jc=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,sy=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,ay=/u\s*r\s*l\s*\(.*/gi;function oy(e){return e.replace(f5,"&quot;")}function ly(e){return e.replace(h5,'"')}function cy(e){return e.replace(g5,function(n,r){return r[0]==="x"||r[0]==="X"?String.fromCharCode(parseInt(r.substr(1),16)):String.fromCharCode(parseInt(r,10))})}function uy(e){return e.replace(p5,":").replace(m5," ")}function dy(e){for(var t="",n=0,r=e.length;n<r;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return Yc.trim(t)}function fy(e){return e=ly(e),e=cy(e),e=uy(e),e=dy(e),e}function hy(e){return e=oy(e),e=iy(e),e}function v5(){return""}function y5(e,t){typeof t!="function"&&(t=function(){});var n=!Array.isArray(e);function r(d){return n?!0:Yc.indexOf(e,d)!==-1}var i=[],l=!1;return{onIgnoreTag:function(d,g,p){if(r(d))if(p.isClosing){var _="[/removed]",S=p.position+_.length;return i.push([l!==!1?l:p.position,S]),l=!1,_}else return l||(l=p.position),"[removed]";else return t(d,g,p)},remove:function(d){var g="",p=0;return Yc.forEach(i,function(_){g+=d.slice(p,_[0]),p=_[1]}),g+=d.slice(p),g}}}function _5(e){for(var t="",n=0;n<e.length;){var r=e.indexOf("<!--",n);if(r===-1){t+=e.slice(n);break}t+=e.slice(n,r);var i=e.indexOf("-->",r);if(i===-1)break;n=i+3}return t}function w5(e){var t=e.split("");return t=t.filter(function(n){var r=n.charCodeAt(0);return r===127?!1:r<=31?r===10||r===13:!0}),t.join("")}sn.whiteList=ny(),sn.getDefaultWhiteList=ny,sn.onTag=s5,sn.onIgnoreTag=a5,sn.onTagAttr=o5,sn.onIgnoreTagAttr=l5,sn.safeAttrValue=c5,sn.escapeHtml=iy,sn.escapeQuote=oy,sn.unescapeQuote=ly,sn.escapeHtmlEntities=cy,sn.escapeDangerHtml5Entities=uy,sn.clearNonPrintableCharacter=dy,sn.friendlyAttrValue=fy,sn.escapeAttrValue=hy,sn.onIgnoreTagStripAll=v5,sn.StripTagBody=y5,sn.stripCommentTag=_5,sn.stripBlankChar=w5,sn.attributeWrapSign='"',sn.cssFilter=ry,sn.getDefaultCSSWhiteList=i5;var Xc={},ws=Pf;function b5(e){var t=ws.spaceIndex(e),n;return t===-1?n=e.slice(1,-1):n=e.slice(1,t+1),n=ws.trim(n).toLowerCase(),n.slice(0,1)==="/"&&(n=n.slice(1)),n.slice(-1)==="/"&&(n=n.slice(0,-1)),n}function S5(e){return e.slice(0,2)==="</"}function E5(e,t,n){var r="",i=0,l=!1,d=!1,g=0,p=e.length,_="",S="";e:for(g=0;g<p;g++){var k=e.charAt(g);if(l===!1){if(k==="<"){l=g;continue}}else if(d===!1){if(k==="<"){r+=n(e.slice(i,g)),l=g,i=g;continue}if(k===">"||g===p-1){r+=n(e.slice(i,l)),S=e.slice(l,g+1),_=b5(S),r+=t(l,r.length,_,S,S5(S)),i=g+1,l=!1;continue}if(k==='"'||k==="'")for(var h=1,y=e.charAt(g-h);y.trim()===""||y==="=";){if(y==="="){d=k;continue e}y=e.charAt(g-++h)}}else if(k===d){d=!1;continue}}return i<p&&(r+=n(e.substr(i))),r}var k5=/[^a-zA-Z0-9\\_:.-]/gim;function C5(e,t){var n=0,r=0,i=[],l=!1,d=e.length;function g(h,y){if(h=ws.trim(h),h=h.replace(k5,"").toLowerCase(),!(h.length<1)){var b=t(h,y||"");b&&i.push(b)}}for(var p=0;p<d;p++){var _=e.charAt(p),S,k;if(l===!1&&_==="="){l=e.slice(n,p),n=p+1,r=e.charAt(n)==='"'||e.charAt(n)==="'"?n:A5(e,p+1);continue}if(l!==!1&&p===r){if(k=e.indexOf(_,p+1),k===-1)break;S=ws.trim(e.slice(r+1,k)),g(l,S),l=!1,p=k,n=p+1;continue}if(/\s|\n|\t/.test(_))if(e=e.replace(/\s|\n|\t/g," "),l===!1)if(k=I5(e,p),k===-1){S=ws.trim(e.slice(n,p)),g(S),l=!1,n=p+1;continue}else{p=k-1;continue}else if(k=T5(e,p-1),k===-1){S=ws.trim(e.slice(n,p)),S=gy(S),g(l,S),l=!1,n=p+1;continue}else continue}return n<e.length&&(l===!1?g(e.slice(n)):g(l,gy(ws.trim(e.slice(n))))),ws.trim(i.join(" "))}function I5(e,t){for(;t<e.length;t++){var n=e[t];if(n!==" ")return n==="="?t:-1}}function A5(e,t){for(;t<e.length;t++){var n=e[t];if(n!==" ")return n==="'"||n==='"'?t:-1}}function T5(e,t){for(;t>0;t--){var n=e[t];if(n!==" ")return n==="="?t:-1}}function O5(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function gy(e){return O5(e)?e.substr(1,e.length-2):e}Xc.parseTag=E5,Xc.parseAttr=C5;var P5=Of.FilterCSS,Dr=sn,py=Xc,R5=py.parseTag,M5=py.parseAttr,Qc=Pf;function eu(e){return e==null}function L5(e){var t=Qc.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=Qc.trim(e.slice(t+1,-1));var n=e[e.length-1]==="/";return n&&(e=Qc.trim(e.slice(0,-1))),{html:e,closing:n}}function D5(e){var t={};for(var n in e)t[n]=e[n];return t}function x5(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map(function(r){return r.toLowerCase()}):t[n.toLowerCase()]=e[n];return t}function my(e){e=D5(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Dr.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=x5(e.whiteList||e.allowList):e.whiteList=Dr.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":Dr.attributeWrapSign,e.onTag=e.onTag||Dr.onTag,e.onTagAttr=e.onTagAttr||Dr.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Dr.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Dr.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Dr.safeAttrValue,e.escapeHtml=e.escapeHtml||Dr.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new P5(e.css))}my.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,r=n.whiteList,i=n.onTag,l=n.onIgnoreTag,d=n.onTagAttr,g=n.onIgnoreTagAttr,p=n.safeAttrValue,_=n.escapeHtml,S=t.attributeWrapSign,k=t.cssFilter;n.stripBlankChar&&(e=Dr.stripBlankChar(e)),n.allowCommentTag||(e=Dr.stripCommentTag(e));var h=!1;n.stripIgnoreTagBody&&(h=Dr.StripTagBody(n.stripIgnoreTagBody,l),l=h.onIgnoreTag);var y=R5(e,function(b,c,u,f,a){var o={sourcePosition:b,position:c,isClosing:a,isWhite:Object.prototype.hasOwnProperty.call(r,u)},s=i(u,f,o);if(!eu(s))return s;if(o.isWhite){if(o.isClosing)return"</"+u+">";var m=L5(f),v=r[u],w=M5(m.html,function(A,E){var O=Qc.indexOf(v,A)!==-1,T=d(u,A,E,O);return eu(T)?O?(E=p(u,A,E,k),E?A+"="+S+E+S:A):(T=g(u,A,E,O),eu(T)?void 0:T):T});return f="<"+u,w&&(f+=" "+w),m.closing&&(f+=" /"),f+=">",f}else return s=l(u,f,o),eu(s)?_(f):s},_);return h&&(y=h.remove(y)),y};var N5=my;(function(e,t){var n=sn,r=Xc,i=N5;function l(g,p){var _=new i(p);return _.process(g)}t=e.exports=l,t.filterXSS=l,t.FilterXSS=i,function(){for(var g in n)t[g]=n[g];for(var p in r)t[p]=r[p]}(),typeof window<"u"&&(window.filterXSS=e.exports);function d(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}d()&&(self.filterXSS=e.exports)})(Af,Af.exports);var U5=Af.exports;const sa=GT(U5),F5=Yl(se(),se().regex(/^[^<>]*$/)).optional();function Ee(e,t,n){if(!e)throw new Error("No key provided to t()");const r=Yt(Cd),i=r&&r[e]||"";let l="";if(t?(F5.parse(t),Object.keys(t).map(g=>{const p=new RegExp(`{${g}}`,"g");l=i.replace(p,t[g])})):l=i,!l&&!n){const g=e.replace(/([A-Z])/g," $1");l=g.charAt(0).toUpperCase()+g.slice(1)}else!l&&n&&(l=n);return sa(l,{whiteList:{a:["target","href","title","rel","class"],b:[],em:[]},onTagAttr:function(g,p,_){if(g=="a"&&p=="href"&&_.substr(0,1)==="?")return`${p}="${_}"`}})}function hr(e){if(typeof e!="string"&&typeof e!="number")throw new Error("Parameter for textToKey function needs to be of type string or number");if(typeof e=="number"&&(e=String(e)),e.match(/^([A-Z]+)$/))return e.toLowerCase();if(e.match(/^([A-Z]+[\W]*)$/))return e.replace(/\W/g,"").toLowerCase();const t=e.replace(/(\W)([\w\d])/g,(n,r,i)=>r.match(/['’"”]/)&&i.match(/[a-z]/)?i:r.match(/\W/)&&i.match(/[a-z]/)?i.toUpperCase():(r.match(/\W/)&&i.match(/\d/),i)).replace(/(\W)/g,"");return t.charAt(0).toLowerCase()+t.slice(1)}function B5(e){if(typeof document!="object")return null;const t=document.createElement("div");return t.innerHTML=e,t.childNodes.length===0?"":t.childNodes[0].nodeValue}var bs;(function(e){e.Error="ERROR",e.Unsupported="unsupported"})(bs||(bs={}));var Wn;(function(e){e.AbortError="AbortError",e.DataError="DataError",e.ConstraintError="ConstraintError",e.EncodingError="EncodingError",e.InvalidError="InvalidError",e.NetworkError="NetworkError",e.NotAllowedError="NotAllowedError",e.NotSupportedError="NotSupportedError",e.SecurityError="SecurityError",e.TimeoutError="TimeoutError",e.UnknownError="UnknownError"})(Wn||(Wn={}));var nr;(function(e){e[e.None=0]="None",e[e.Authentication=1]="Authentication",e[e.Registration=2]="Registration"})(nr||(nr={}));function Rf(e){const t=new Uint8Array(e);return new TextDecoder().decode(t)}function vy(e){try{return e.split("}").filter(n=>!!n&&n!=="]").map(n=>{const r=z5(n);return{id:new Int8Array(r).buffer,type:"public-key"}})}catch{const t=new Error("Transforming credential object to string failed");throw t.name=Wn.EncodingError,t}}function z5(e){const t=/new Int8Array\((.+)\)/.exec(e);return t===null||t.length<2?[]:JSON.parse(t[1])}function V5(e){if(Array.isArray(e))return e;if(typeof e=="string")return e&&e[0]==="["?JSON.parse(e):(e=e.replace(/(\w+):/g,'"$1":'),JSON.parse(`[${e}]`))}function yy(e){return e.includes("rpId")?e.replace(/rpId: "(.+)",/,"$1"):e.replace(/id: "(.+)",/,"$1")}class $r{static getWebAuthnStepType(t){const n=this.getOutcomeCallback(t),r=this.getMetadataCallback(t),i=this.getTextOutputCallback(t);if(n&&r){const l=r.getOutputValue("data");return l!=null&&l.pubKeyCredParams?nr.Registration:nr.Authentication}return n&&i?i.getMessage().includes("pubKeyCredParams")?nr.Registration:nr.Authentication:nr.None}static async isConditionalMediationSupported(){return typeof PublicKeyCredential<"u"&&typeof PublicKeyCredential.isConditionalMediationAvailable=="function"&&await PublicKeyCredential.isConditionalMediationAvailable()}static async authenticate(t,n){var d;const{hiddenCallback:r,metadataCallback:i,textOutputCallback:l}=this.getCallbacks(t);if(r&&(i||l)){let g,p=null,_;try{let S;if(i){const k=i.getOutputValue("data");if(_=k.mediation,S=this.createAuthenticationPublicKey(k),_==="conditional"){(d=this.conditionalAbortController)==null||d.abort();const h=n??this.createAbortController().signal;if(!await this.isConditionalMediationSupported()){const b=new Error("Conditional mediation was requested, but is not supported by this browser.");throw b.name=Wn.NotSupportedError,b}p=await this.getAuthenticationCredential(S,_,h),g=this.getAuthenticationOutcome(p)}else p=await this.getAuthenticationCredential(S,_,n),g=this.getAuthenticationOutcome(p)}else throw new Error("No metadata callback found for WebAuthn authentication. Please disable JavaScript in server node.")}catch(S){throw!(S instanceof Error)||_==="conditional"&&S.name==="AbortError"?S:S.name===Wn.NotSupportedError?(r.setInputValue(bs.Unsupported),S):(r.setInputValue(`${bs.Error}::${S.name}:${S.message}`),S)}if(i){const S=i.getOutputValue("data");if(S!=null&&S.supportsJsonResponse&&p&&"authenticatorAttachment"in p)return r.setInputValue(JSON.stringify({authenticatorAttachment:p.authenticatorAttachment,legacyData:g})),t}return r.setInputValue(g),t}else{const g=new Error("Incorrect callbacks for WebAuthn authentication");throw g.name=Wn.DataError,r==null||r.setInputValue(`${bs.Error}::${g.name}:${g.message}`),g}}static async register(t,n){const{hiddenCallback:r,metadataCallback:i,textOutputCallback:l}=this.getCallbacks(t);if(r&&(i||l)){let d,g=null;try{let p;if(i){const _=i.getOutputValue("data");p=this.createRegistrationPublicKey(_),g=await this.getRegistrationCredential(p),d=this.getRegistrationOutcome(g)}else throw new Error("No metadata callback found for WebAuthn registration. Please disable JavaScript in server node.")}catch(p){throw p instanceof Error?p.name===Wn.NotSupportedError?(r.setInputValue(bs.Unsupported),p):(r.setInputValue(`${bs.Error}::${p.name}:${p.message}`),p):p}if(i){const p=i.getOutputValue("data");if(p!=null&&p.supportsJsonResponse&&g&&"authenticatorAttachment"in g)return r.setInputValue(JSON.stringify({authenticatorAttachment:g.authenticatorAttachment,legacyData:n&&n.length>0?`${d}::${n}`:d})),t}return r.setInputValue(n&&n.length>0?`${d}::${n}`:d),t}else{const d=new Error("Incorrect callbacks for WebAuthn registration");throw d.name=Wn.DataError,r==null||r.setInputValue(`${bs.Error}::${d.name}:${d.message}`),d}}static getCallbacks(t){const n=this.getOutcomeCallback(t),r=this.getMetadataCallback(t),i=this.getTextOutputCallback(t),l={hiddenCallback:n};return r?l.metadataCallback=r:i&&(l.textOutputCallback=i),l}static getMetadataCallback(t){return t.getCallbacksOfType(fe.MetadataCallback).find(n=>{const r=n.getOutputByName("data",void 0);return r&&r.hasOwnProperty("relyingPartyId")})}static getOutcomeCallback(t){return t.getCallbacksOfType(fe.HiddenValueCallback).find(n=>n.getOutputByName("id","")==="webAuthnOutcome")}static getTextOutputCallback(t){return t.getCallbacksOfType(fe.TextOutputCallback).find(n=>{const r=n.getOutputByName("message",void 0);return r&&r.includes("webAuthnOutcome")})}static async getAuthenticationCredential(t,n,r){if(!window.PublicKeyCredential){const l=new Error("PublicKeyCredential not supported by this browser");throw l.name=Wn.NotSupportedError,l}return await navigator.credentials.get({publicKey:t,...n&&{mediation:n},...r&&{signal:r}})}static getAuthenticationOutcome(t){if(t===null){const n=new Error("No credential generated from authentication");throw n.name=Wn.UnknownError,n}try{const n=Rf(t.response.clientDataJSON),r=t.response,i=new Int8Array(r.authenticatorData).toString(),l=new Int8Array(r.signature).toString(),d=Rf(t.response.userHandle);let g=`${n}::${i}::${l}::${t.id}`;return d&&(g=`${g}::${d}`),g}catch{const n=new Error("Transforming credential object to string failed");throw n.name=Wn.EncodingError,n}}static async getRegistrationCredential(t){if(!window.PublicKeyCredential){const r=new Error("PublicKeyCredential not supported by this browser");throw r.name=Wn.NotSupportedError,r}return await navigator.credentials.create({publicKey:t})}static getRegistrationOutcome(t){if(t===null){const n=new Error("No credential generated from registration");throw n.name=Wn.UnknownError,n}try{const n=Rf(t.response.clientDataJSON),r=t.response,i=new Int8Array(r.attestationObject).toString();return`${n}::${i}::${t.id}`}catch{const n=new Error("Transforming credential object to string failed");throw n.name=Wn.EncodingError,n}}static createAuthenticationPublicKey(t){const{acceptableCredentials:n,allowCredentials:r,challenge:i,relyingPartyId:l,timeout:d,userVerification:g}=t,p=yy(l),_=vy(r||n||"");return{challenge:Uint8Array.from(atob(i),S=>S.charCodeAt(0)).buffer,timeout:d,..._!=null&&_.length?{allowCredentials:_}:{},...g&&{userVerification:g},...p&&{rpId:p}}}static createRegistrationPublicKey(t){const{pubKeyCredParams:n}=t,r=V5(n);if(!r){const u=new Error("Missing pubKeyCredParams property from registration options");throw u.name=Wn.DataError,u}const i=vy(t.excludeCredentials),{attestationPreference:l,authenticatorSelection:d,challenge:g,relyingPartyId:p,relyingPartyName:_,timeout:S,userId:k,userName:h,displayName:y}=t,b=yy(p),c={name:_,...b&&{id:b}};return{attestation:l,authenticatorSelection:JSON.parse(d),challenge:Uint8Array.from(atob(g),u=>u.charCodeAt(0)).buffer,...i.length&&{excludeCredentials:i},pubKeyCredParams:r,rp:c,timeout:S,user:{displayName:y||h,id:Int8Array.from(k.split("").map(u=>u.charCodeAt(0))),name:y||h}}}static createAbortController(){var n;(n=this.conditionalAbortController)==null||n.abort();const t=new AbortController;return this.conditionalAbortController=t,t}}Je($r,"conditionalAbortController");function H5(e){if(!e)return!1;const t=e.getCallbacksOfType(fe.NameCallback).length>0,n=$r.getMetadataCallback(e),r=$r.getOutcomeCallback(e);return!t||!n||!r?!1:$r.getWebAuthnStepType(e)===nr.Authentication}function _y(e){const t=e==null?void 0:e.getCallbacksOfType(fe.NameCallback)[0],n=t==null?void 0:t.getOutputByName("autocompleteValues",[]);return Array.isArray(n)?n.filter(r=>typeof r=="string"):[]}function j5(e){var r;if(!e)return!1;const t=_y(e);if(!t.includes("username")||!t.includes("webauthn"))return!1;const n=(r=$r.getMetadataCallback(e))==null?void 0:r.getOutputByName("data",{});return(n==null?void 0:n.mediation)==="conditional"}const q5=[fe.ConfirmationCallback,fe.DeviceProfileCallback,fe.PollingWaitCallback,fe.SelectIdPCallback,fe.PingOneProtectInitializeCallback,fe.PingOneProtectEvaluationCallback],W5=[fe.BooleanAttributeInputCallback,fe.ChoiceCallback,fe.ConfirmationCallback,fe.KbaCreateCallback,fe.NameCallback,fe.NumberAttributeInputCallback,fe.PasswordCallback,fe.ReCaptchaCallback,fe.SelectIdPCallback,fe.StringAttributeInputCallback,fe.TermsAndConditionsCallback,fe.TextInputCallback,fe.ValidatedCreatePasswordCallback,fe.ValidatedCreateUsernameCallback],G5={SelectIdPCallback:e=>!!e.getProviders().find(t=>t.provider==="localAuthentication")};function K5(e){return e.getType()===fe.ConfirmationCallback&&e.getOptions().length===1}function $5(e){const t=G5[e.getType()];return t?t(e):!1}function Z5(e){return q5.includes(e.getType())}function Y5(e,t){return t?!0:!e.filter(r=>r.derived.isUserInputRequired&&!r.derived.isSelfSubmitting).length}function J5(e){return e.getType()===fe.SelectIdPCallback||e.getType()===fe.ConfirmationCallback&&e.getOptions().length===1?!1:W5.includes(e.getType())}function X5(e,t,n){const r=(i,l)=>(l.derived.canForceUserInputOptionality&&t>0&&(i=!0),i);return e.reduce(r,!1)}const Q5=new Set(["ReCaptchaCallback","ReCaptchaEnterpriseCallback"]);function wy(e,t,n,r){const i={},l=_y(e).join(" ")||void 0;return e==null?void 0:e.callbacks.map((d,g)=>{const p=d.getType();let _,S;if(i[p]?i[p]=i[p]+1:i[p]=1,n&&n[p]&&(_=n[p][i[p]-1]),Q5.has(p)){const k=r==null?void 0:r.captcha,h=r==null?void 0:r.recaptchaAction;(k||h)&&(S={...k,...h&&{recaptchaAction:h}})}return{derived:{canForceUserInputOptionality:$5(d),isFirstInvalidInput:t(d),isReadyForSubmission:K5(d),isSelfSubmitting:Z5(d),isUserInputRequired:J5(d),autocompleteValues:l},idx:g,..._&&{platform:{..._}},...S&&{initOptions:S}}})}function by(e,t,n){const r=e.filter(d=>!!d.derived.isUserInputRequired).length,i=X5(e,r);let l;return t&&(l=Object.keys(t).reduce((d,g)=>(typeof t[g]!="object"&&(d[g]=t[g]),d),{})),{derived:{isStepSelfSubmittable:()=>Y5(e,i),isUserInputOptional:i,numOfCallbacks:e.length,numOfSelfSubmittableCbs:e.filter(d=>!!d.derived.isSelfSubmitting).length,numOfUserInputCbs:r},...l&&{platform:{...l}},...n&&{platform:{stageName:n}}}}const Sy="110",e3="constraint violation";function aa(e){if(!e)return"";if(e.toLocaleLowerCase().includes("constraint violation"))return console.error("Delta Sierra error has occurred. Please communicate this to your system administrator."),e.toLocaleLowerCase().includes("password")?"constraintViolationForPassword":"constraintViolationForValue";const t=(i,l)=>`${l.toLowerCase()}`;return e.replace(/^([A-Z])/g,t).replace(/\s([a-z])/g,(i,l)=>`${l.toUpperCase()}`).replace(/\W/g,"")}function Ey(){let e=!1;return function(n){return n.getOutputByName("failedPolicies",[]).length&&!e?(e=!0,!0):!1}}function Mf(e){return e.getCallbacksOfType(fe.RedirectCallback).length>0}function t3(e,t,n,r){var d,g,p;if(!Array.isArray(t)||!n||!("type"in n)||n.type!=="Step"||r!==1)return!1;const i=((d=e.payload)==null?void 0:d.detail)??null,l=((p=(g=e.payload)==null?void 0:g.message)==null?void 0:p.toLowerCase())??null;return!!((i==null?void 0:i.errorCode)===Sy||l!=null&&l.includes(e3))}const n3=se({invalid_type_error:"`serverConfig.wellknown` must be a URL string (this is generated by the Zod library).",required_error:"Setting the `serverConfig.wellknown` is required (this is generated by the Zod library)."}).url({message:"`serverConfig.wellknown` must be a full URL (this is generated by the Zod library)."}),r3=En({serverConfig:En({wellknown:n3}).strict()}).strict();let Ss,Lf,tu,ul;function i3(e,t,n){if(e===void 0)return Ss;const r=r3.parse(e),i=r.serverConfig.wellknown!==(Ss==null?void 0:Ss.serverConfig.wellknown)||t!==Lf||n!==tu;return Ss=r,Lf=t,tu=n,i&&(ul=void 0),Ss}async function oa(){if(!Ss)throw new Error("Journey Client is not configured. Call setJourneyClientConfig() first.");return ul||(ul=WT({config:Ss,requestMiddleware:Lf,...tu&&{logger:tu}}).catch(e=>{throw ul=void 0,e})),await ul}function s3(){const{update:e,set:t,subscribe:n}=lr([]);return dl={latest:async()=>new Promise(r=>{n(i=>{const l=i[i.length-1];r(l)})()}),pop:async()=>new Promise(r=>{e(i=>{let l;return i.length?l=i.slice(0,-1):l=i,r([...l]),l})}),push:async r=>new Promise(i=>{e(l=>{var g;let d;return l.length?r&&(r==null?void 0:r.journey)!==((g=l[l.length-1])==null?void 0:g.journey)?d=[...l,r]:d=l:d=r?[r]:l,i([...d]),d})}),reset:()=>{t([])},subscribe:n},dl}const vi=lr({completed:!1,error:null,loading:!1,metadata:null,step:null,successful:!1,response:null});function a3(e,t,n,r){i3(e,n,r);const i=s3();let l=0,d=null;async function g(f,a){d=a??(f==null?void 0:f.journey)??null,vi.update(s=>({...s,completed:!1,error:null,loading:!0,step:null,successful:!1,response:null})),f&&await i.push(f);let o;try{o=await(await oa()).start(f)}catch(s){console.error(`Start request | ${s}`),o=u(s)}await b(o)}async function p(f,a){const o=f.callbacks,s=f.payload;vi.update(v=>({...v,completed:!1,error:null,loading:!0,step:f,successful:!1,response:null}));let m;try{m=await(await oa()).next(f,a)}catch(v){console.error(`Next step request | ${v}`),m=u(v)}await b(m,{prevStep:f,previousCallbacks:o,previousPayload:s,nextOptions:a})}async function _(f,a){vi.update(s=>({...s,completed:!1,error:null,loading:!0,step:s.step??null,successful:!1,response:null}));let o;try{const s=await oa(),m=new URL(f).searchParams.get("journey"),v=m?{...a,journey:m}:a;o=await s.resume(f,v)}catch(s){console.error(`Resume request | ${s}`),o=u(s)}await b(o)}async function S(f){y(),await i.push(f),await g(f)}async function k(){y();const f=await i.pop(),a=f[f.length-1];await g(a)}async function h(f){if(Mf(f))try{await(await oa()).redirect(f)}catch(a){console.error(`Redirect request | ${a}`)}}function y(){vi.set({completed:!1,error:null,loading:!1,metadata:null,step:null,successful:!1,response:null})}async function b(f,a){var o;if(f.type==="Step"){const s=f,m=s.getStage();let v=null,w=null;if(m&&m.includes("{"))try{v=JSON.parse(m)}catch{console.warn("Stage attribute value was not parsable")}else m&&(w=m);const A=wy(s,Ey(),v,{...t,recaptchaAction:d}),E=by(A,v,w);l=l+1,vi.update(O=>({...O,completed:!1,error:null,loading:!1,metadata:{callbacks:A,step:E},step:s,successful:!1,response:null}))}else if(f.type==="LoginSuccess")i.reset(),vi.update(s=>({...s,completed:!0,error:null,loading:!1,metadata:null,step:null,successful:!0,response:f.payload}));else if(f.type==="LoginFailure"){const s=f,m=B5(((o=s.payload)==null?void 0:o.message)||"Unknown login error");await c(m,a,s)}else{const s=f,m=s.message??s.error??Ee("unknownNetworkError");await c(m,a)}}async function c(f,a,o){let s=null;try{const m=await i.latest(),v=await oa();if(s=await v.start(m),o&&s.type==="Step"&&t3(o,a==null?void 0:a.previousCallbacks,s,l)){const w=s;w.callbacks=a==null?void 0:a.previousCallbacks,w.payload={...a==null?void 0:a.previousPayload,authId:w.payload.authId};const A=o.payload.detail;(A==null?void 0:A.errorCode)===Sy&&(s=await v.next(w,a==null?void 0:a.nextOptions))}}catch(m){console.error(`Restart failed step request | ${m}`),s=u(m)}if(s.type==="Step"){const m=s,v=m.getStage();let w=null,A=null;if(v&&v.includes("{"))try{w=JSON.parse(v)}catch{console.warn("Stage attribute value was not parsable")}else v&&(A=v);const E=wy(m,Ey(),w,{...t,recaptchaAction:d}),O=by(E,w,A);vi.update(T=>{var L,P,N;return{...T,completed:!1,error:{code:(o==null?void 0:o.getCode())??null,message:f,stage:((P=(L=a==null?void 0:a.prevStep)==null?void 0:L.payload)==null?void 0:P.stage)??null,troubleshoot:null,detail:((N=o==null?void 0:o.payload)==null?void 0:N.detail)??null},loading:!1,metadata:{callbacks:E,step:O},step:m,successful:!1,response:null}});return}else if(s.type==="LoginSuccess"){vi.update(m=>({...m,completed:!0,error:null,loading:!1,metadata:null,step:null,successful:!0,response:s.payload}));return}else vi.update(m=>{var v,w,A;return{...m,completed:!0,error:{code:(o==null?void 0:o.getCode())??null,message:f,stage:((w=(v=a==null?void 0:a.prevStep)==null?void 0:v.payload)==null?void 0:w.stage)??null,troubleshoot:null,detail:((A=o==null?void 0:o.payload)==null?void 0:A.detail)??null},loading:!1,metadata:null,step:null,successful:!1,response:s.type==="LoginFailure"?s.payload:null}})}function u(f){return{error:"unknown_error",message:f instanceof Error?f.message:Ee("unknownNetworkError"),type:"unknown_error"}}return{next:p,pop:k,push:S,reset:y,resume:_,start:g,redirect:h,subscribe:vi.subscribe}}let dl;const o3=En({wellknown:se({error:e=>e.input===void 0?"serverConfig.wellknown is required to configure the widget":"serverConfig.wellknown must be a URL string"}).url({message:"serverConfig.wellknown must be a full URL"})}).strict(),l3=En({level:Ks([qn("none"),qn("error"),qn("warn"),qn("info"),qn("debug")]),custom:To(e=>typeof e=="object"&&e!==null).optional()}).strict(),c3=bd(To(e=>typeof e=="function")),u3=uE("type",[En({type:Ks([qn("localStorage"),qn("sessionStorage")]),name:se(),prefix:se().optional()}),En({type:qn("custom"),name:se(),prefix:se().optional(),custom:En({get:To(e=>typeof e=="function"),set:To(e=>typeof e=="function"),remove:To(e=>typeof e=="function")})})]);function d3(e){let t,n,r,i;function l(){return{journeyStore:t,oauthStore:n,userStore:r}}function d(){t.reset(),n.reset(),r.reset()}async function g(S){const k=o3.parse(S.serverConfig),h=S.logger&&l3.parse(S.logger),y=S.middleware&&c3.parse(S.middleware),b=S.storage&&u3.parse(S.storage);if(t=a3({serverConfig:k},{...S.captcha&&{captcha:ME.parse(S.captcha)}},y,h),await oa(),S.oidcClient){i=zA({...S.oidcClient,serverConfig:k},y,h,b);const c=await i.getClient();if("error"in c)throw new Error(`Failed to construct the OIDC client: ${String(c.error)}`)}n=zE(i,S.oidcClient),r=eT(i),DE(S.content),tT(S.journeys),LE(S.links),QA(S.style)}const p=S=>{(!t||!n||!r)&&Bl();const k=(S==null?void 0:S.oauth)??!0,h=(S==null?void 0:S.user)??!0,{subscribe:y}=xg([t,n,r],([f,a,o],s)=>{s({journey:f,oauth:a,user:o}),(a.error||o.error)&&b==="modal"&&e.close({reason:"auto"}),f.successful&&a.successful&&o.completed?b==="modal"&&e.close({reason:"auto"}):f.successful&&a.successful?h&&o.loading===!1&&o.completed===!1?r.get():h||b==="modal"&&e.close({reason:"auto"}):f.successful&&(k&&a.loading===!1&&a.completed===!1?a.code&&a.state?n.exchange():n.background():k||b==="modal"&&e.close({reason:"auto"}))});let b=null;function c(f){return u(f)}function u(f){return n.reset(),r.reset(),b=Yt(ko).type,f!=null&&f.resumeUrl?t.resume(f.resumeUrl):t.start(f!=null&&f.journey?{journey:f.journey,...f.query&&{query:f.query}}:void 0,f==null?void 0:f.recaptchaAction),new Promise((a,o)=>{const s=y(m=>{(m.oauth.error||m.user.error)&&(o(m),s()),m.journey.successful&&m.oauth.successful&&m.user.completed?(a(m),s()):m.journey.successful&&m.oauth.successful?h||(a(m),s()):m.journey.successful&&(k||(a(m),s()))})})}return{change:c,start:u,subscribe:y}},_={info(){(!t||!n||!r)&&Bl();async function S(){const k=await r.get();return k.error?Promise.reject(k):k}return{get:S,subscribe:r.subscribe}},async logout(){(!t||!n||!r)&&Bl();try{await(await oa()).terminate();const k=i?Yt(i):null;k&&!("error"in k)&&await k.user.logout(),d()}catch(S){throw d(),S}},tokens(){(!t||!n||!r)&&Bl();async function S(k){const h=await n.get(k);return h.error?Promise.reject(h):h}return{get:S,subscribe:n.subscribe}}};return{component:e,configure:g,getStores:l,journey:p,protect:{start:_s.start,getData:_s.getData,pauseBehavioralData:_s.pauseBehavioralData,resumeBehavioralData:_s.resumeBehavioralData},user:_}}function ut(e,t){if(new.target)return We({component:ut,...e});Ve(t,!1);let n=V(t,"html",12,!1),r=V(t,"key",12),i=V(t,"values",12,void 0),l=re();yt(()=>(W(r()),W(i())),()=>{Y(l,Ee(r(),i()))}),Ot();var d={get html(){return n()},set html(k){n(k),B()},get key(){return r()},set key(k){r(k),B()},get values(){return i()},set values(k){i(k),B()},$set:Ke,$on:(k,h)=>Ge(t,k,h)};dt();var g=mt(),p=qe(g);{var _=k=>{var h=mt(),y=qe(h);Nt(y,t,"default",{},b=>{var c=mt(),u=qe(c);Nl(u,()=>C(l)),Q(b,c)}),Q(k,h)},S=k=>{var h=mt(),y=qe(h);Nt(y,t,"default",{},b=>{var c=Vt();Te(()=>vt(c,C(l))),Q(b,c)}),Q(k,h)};Ze(p,k=>{n()?k(_):k(S,-1)})}return Q(e,g),He(d)}function gr(e){return`url("${e.replace(/"/g,"%22")}")`}function Df(e){let t=e.startsWith("#")?e.slice(1):e;if(/^[0-9a-fA-F]{8}$/.test(t)&&(t=t.slice(0,6)),!/^[0-9a-fA-F]{6}$/.test(t))throw new Error(`Invalid hex color: "${e}"`);const n=parseInt(t.slice(0,2),16)/255,r=parseInt(t.slice(2,4),16)/255,i=parseInt(t.slice(4,6),16)/255,l=Math.max(n,r,i),d=Math.min(n,r,i),g=l-d,p=(l+d)/2;let _=0;g!==0&&(l===n?_=(r-i)/g%6:l===r?_=(i-n)/g+2:_=(n-r)/g+4,_=Math.round(_*600)/10,_<0&&(_+=360));const S=g===0?0:Math.round(g/(1-Math.abs(2*p-1))*1e3)/10,k=Math.round(p*1e3)/10;return{hs:`${_}, ${S}%`,l:`${k}%`}}function f3(e){const t=[],n=(d,g)=>{t.push([d,g])},r=(d,g,p)=>{try{const{hs:_,l:S}=Df(p);t.push([d,_],[g,S])}catch{}},i=(d,g)=>{try{const{hs:p,l:_}=Df(g);n(d,`hsl(${p}, ${_})`)}catch{}},l=(d,g)=>{try{const{hs:p,l:_}=Df(g);n(`${d}-hs`,p),n(`${d}-l`,_),n(d,`hsl(var(${d}-hs), var(${d}-l))`)}catch{}};if(e.primaryColor&&(r("--tw-colors-primary-dark-hs","--tw-colors-primary-dark-l",e.primaryColor),r("--tw-colors-primary-light-hs","--tw-colors-primary-light-l",e.primaryColor)),e.primaryOffColor&&r("--tw-colors-primary-off-hs","--tw-colors-primary-off-l",e.primaryOffColor),e.secondaryColor&&(r("--tw-colors-secondary-dark-hs","--tw-colors-secondary-dark-l",e.secondaryColor),r("--tw-colors-secondary-default-hs","--tw-colors-secondary-default-l",e.secondaryColor),r("--tw-colors-secondary-light-hs","--tw-colors-secondary-light-l",e.secondaryColor)),e.backgroundColor&&(r("--tw-colors-background-dark-hs","--tw-colors-background-dark-l",e.backgroundColor),r("--tw-colors-background-light-hs","--tw-colors-background-light-l",e.backgroundColor),n("--fr-page-bg-color",e.backgroundColor)),e.linkColor&&r("--tw-colors-link-dark-hs","--tw-colors-link-dark-l",e.linkColor),e.linkActiveColor&&r("--tw-colors-link-light-hs","--tw-colors-link-light-l",e.linkActiveColor),e.fontFamily&&n("--fr-font-family",e.fontFamily),e.buttonBorderRadius!==void 0&&n("--fr-button-border-radius",`${e.buttonBorderRadius}px`),e.cardBorderRadius!==void 0&&n("--fr-card-border-radius",`${e.cardBorderRadius}px`),e.cardBgColor&&n("--fr-card-bg-color",e.cardBgColor),e.inputBgColor&&n("--fr-input-bg-color",e.inputBgColor),e.inputBorderColor&&(n("--fr-input-border",`1px solid ${e.inputBorderColor}`),n("--fr-input-border-color-value",e.inputBorderColor)),e.inputLabelColor&&n("--fr-input-label-color",e.inputLabelColor),e.selectAccentColor&&n("--fr-select-accent-color",e.selectAccentColor),e.selectHoverBgColor&&n("--fr-select-hover-bg-color",e.selectHoverBgColor),e.inputFocusRingColor&&i("--fr-focus-ring-color",e.inputFocusRingColor),e.buttonFocusRingColor&&i("--fr-button-focus-ring-color",e.buttonFocusRingColor),e.inputTextColor&&l("--fr-input-text-color",e.inputTextColor),e.cardTextColor&&l("--fr-card-text-color",e.cardTextColor),e.bodyTextColor&&l("--fr-body-text-color",e.bodyTextColor),e.buttonTextColor&&l("--fr-button-text-color",e.buttonTextColor),e.logo){const d=gr(e.logo);n("--logo-light",d),n("--logo-dark",d)}return t}var h3=_n('<svg viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><path d="M 7 4 C 6.744125 4 6.4879687 4.0974687 6.2929688 4.2929688 L 4.2929688 6.2929688 C 3.9019687 6.6839688 3.9019687 7.3170313 4.2929688 7.7070312 L 11.585938 15 L 4.2929688 22.292969 C 3.9019687 22.683969 3.9019687 23.317031 4.2929688 23.707031 L 6.2929688 25.707031 C 6.6839688 26.098031 7.3170313 26.098031 7.7070312 25.707031 L 15 18.414062 L 22.292969 25.707031 C 22.682969 26.098031 23.317031 26.098031 23.707031 25.707031 L 25.707031 23.707031 C 26.098031 23.316031 26.098031 22.682969 25.707031 22.292969 L 18.414062 15 L 25.707031 7.7070312 C 26.098031 7.3170312 26.098031 6.6829688 25.707031 6.2929688 L 23.707031 4.2929688 C 23.316031 3.9019687 22.682969 3.9019687 22.292969 4.2929688 L 15 11.585938 L 7.7070312 4.2929688 C 7.5115312 4.0974687 7.255875 4 7 4 z"></path><title><!></title></svg>');function xf(e,t){if(new.target)return We({component:xf,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>Ge(t,p,_)},l=h3(),d=pe(de(l)),g=de(d);return Nt(g,t,"default",{},null),ce(d),ce(l),Te(()=>{Ct(l,0,wn(n())),we(l,"height",r()),we(l,"width",r())}),Q(e,l),He(i)}var g3=ke('<div class="tw_dialog-header dark:tw_dialog-header_dark"><div class="tw_dialog-logo dark:tw_dialog-logo_dark"></div> <button class="tw_dialog-x md:tw_dialog-x_medium tw_focusable-element dark:tw_focusable-element_dark" aria-label="Close"><!></button></div>'),p3=ke('<div class="tw_dialog-logo dark:tw_dialog-logo_dark"></div>'),m3=ke('<div><button class="tw_dialog-x md:tw_dialog-x_medium tw_focusable-element dark:tw_focusable-element_dark"><!></button> <!></div>'),v3=ke('<dialog><!> <div class="tw_dialog-body"><!></div></dialog>');function ky(e,t){if(new.target)return We({component:ky,...e});Ve(t,!1);const n=()=>or(Kr,"$styleStore",r),[r,i]=Pr();let l=V(t,"dialogEl",12,null),d=V(t,"dialogId",12),g=V(t,"forceOpen",12,!1),p=V(t,"withHeader",12,!1);function _(a){var m,v,w;function o(){var A,E;(A=l())==null||A.close(),(E=l())==null||E.classList.remove("tw_dialog-closing"),Ng({reason:a})}const s=setTimeout(o,500);(m=l())==null||m.addEventListener("animationstart",()=>{clearTimeout(s)},{once:!0}),(v=l())==null||v.addEventListener("animationend",o,{once:!0}),(w=l())==null||w.classList.add("tw_dialog-closing")}var S={closeDialog:_,get dialogEl(){return l()},set dialogEl(a){l(a),B()},get dialogId(){return d()},set dialogId(a){d(a),B()},get forceOpen(){return g()},set forceOpen(a){g(a),B()},get withHeader(){return p()},set withHeader(a){p(a),B()},$set:Ke,$on:(a,o)=>Ge(t,a,o)};dt();var k=v3(),h=de(k);{var y=a=>{var o=g3(),s=de(o),m=pe(s,2),v=de(m);xf(v,{classes:"tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light",children:(w,A)=>{ut(w,{key:"closeModal"})},$$slots:{default:!0}}),ce(m),ce(o),Te(w=>{Ul(s,w),we(m,"aria-controls",d())},[()=>(W(gr),n(),Z(()=>{var w,A,E,O,T,L,P,N,I,D;return`--logo-dark: ${gr(((A=(w=n())==null?void 0:w.logo)==null?void 0:A.dark)??"")}; --logo-light: ${gr(((O=(E=n())==null?void 0:E.logo)==null?void 0:O.light)??"")}; ${(L=(T=n())==null?void 0:T.logo)!=null&&L.height?`height: ${(P=n())==null?void 0:P.logo.height}px;`:""} ${(I=(N=n())==null?void 0:N.logo)!=null&&I.width?`width: ${(D=n())==null?void 0:D.logo.width}px;`:""}`}))]),mn("click",m,()=>_("user")),Q(a,o)},b=a=>{var o=m3(),s=de(o),m=de(s);xf(m,{classes:"tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light",children:(A,E)=>{ut(A,{key:"closeModal"})},$$slots:{default:!0}}),ce(s);var v=pe(s,2);{var w=A=>{var E=p3();Te(O=>Ul(E,O),[()=>(W(gr),n(),Z(()=>{var O,T,L,P;return`--logo-dark: ${gr(((T=(O=n())==null?void 0:O.logo)==null?void 0:T.dark)??"")}; --logo-light: ${gr(((P=(L=n())==null?void 0:L.logo)==null?void 0:P.light)??"")}`}))]),Q(A,E)};Ze(v,A=>{n(),Z(()=>{var E;return(E=n())==null?void 0:E.logo})&&A(w)})}ce(o),Te(()=>{Ct(o,1,(n(),Z(()=>{var A;return`tw_pt-10 md:tw_pt-10 tw_text-right ${(A=n())!=null&&A.logo?"tw_h-32 md:tw_h-36 tw_pb-6":""}`}))),we(s,"aria-controls",d())}),mn("click",s,()=>_("user")),Q(a,o)};Ze(h,a=>{p()?a(y):a(b,-1)})}var c=pe(h,2),u=de(c);Nt(u,t,"default",{},null),ce(c),ce(k),an(k,a=>l(a),()=>l()),Te(()=>{we(k,"id",d()),Ct(k,1,`tw_dialog-box dark:tw_dialog-box_dark md:tw_dialog-box_medium ${g()?"":"tw_dialog-box_animate"}`),k.open=g()}),Q(e,k),lt(t,"closeDialog",_);var f=He(S);return i(),f}function y3(e,t){if(!(!e||!t))for(const[n,r]of f3(t))e.style.setProperty(n,r)}var _3=_n('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"></path><title><!></title></svg>');function Cy(e,t){if(new.target)return We({component:Cy,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>Ge(t,p,_)},l=_3(),d=pe(de(l)),g=de(d);return Nt(g,t,"default",{},null),ce(d),ce(l),Te(()=>{Ct(l,0,wn(n())),we(l,"height",r()),we(l,"width",r())}),Q(e,l),He(i)}var w3=_n('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"></path><title><!></title></svg>');function Iy(e,t){if(new.target)return We({component:Iy,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>Ge(t,p,_)},l=w3(),d=pe(de(l)),g=de(d);return Nt(g,t,"default",{},null),ce(d),ce(l),Te(()=>{Ct(l,0,wn(n())),we(l,"height",r()),we(l,"width",r())}),Q(e,l),He(i)}var b3=_n('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"></path><title><!></title></svg>');function Ay(e,t){if(new.target)return We({component:Ay,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>Ge(t,p,_)},l=b3(),d=pe(de(l)),g=de(d);return Nt(g,t,"default",{},null),ce(d),ce(l),Te(()=>{Ct(l,0,wn(n())),we(l,"height",r()),we(l,"width",r())}),Q(e,l),He(i)}var S3=ke('<div tabindex="-1"><p class="tw_grid tw_grid-cols-[2em_1fr]"><!> <span><!></span></p></div>');function Gn(e,t){if(new.target)return We({component:Gn,...e});Ve(t,!1);let n=V(t,"id",12),r=V(t,"needsFocus",12,!1),i=V(t,"type",12,""),l=re();function d(...u){return u.reduce((f,a)=>{switch(a){case"error":return`${f} tw_alert-error dark:tw_alert-error_dark`;case"info":return`${f} tw_alert-info dark:tw_alert-info_dark`;case"success":return`${f} tw_alert-success dark:tw_alert-success_dark`;case"warning":return`${f} tw_alert-warning dark:tw_alert-warning_dark`;default:return f}},"")}yt(()=>(W(r()),C(l)),()=>{r()&&C(l)&&C(l).focus()}),Ot();var g={get id(){return n()},set id(u){n(u),B()},get needsFocus(){return r()},set needsFocus(u){r(u),B()},get type(){return i()},set type(u){i(u),B()},$set:Ke,$on:(u,f)=>Ge(t,u,f)},p=S3(),_=de(p),S=de(_);{var k=u=>{Cy(u,{})},h=u=>{Ay(u,{})},y=u=>{Iy(u,{})};Ze(S,u=>{i()==="error"?u(k):i()==="warning"?u(h,1):u(y,-1)})}var b=pe(S,2),c=de(b);return Nt(c,t,"default",{},null),ce(b),ce(_),ce(p),an(p,u=>Y(l,u),()=>C(l)),Te(u=>{Ct(p,1,u),we(p,"id",n()),we(p,"role",i()==="error"?"alert":"")},[()=>(W(i()),Z(()=>`${d(i())} tw_alert dark:tw_alert_dark tw_input-spacing tw_outline-none`))]),Q(e,p),He(g)}var E3=ke('<div role="status"><span class="tw_sr-only"><!></span></div> <!>',1);function pr(e,t){if(new.target)return We({component:pr,...e});Ve(t,!1);let n=V(t,"colorClass",12),r=V(t,"layoutClasses",12);var i={get colorClass(){return n()},set colorClass(S){n(S),B()},get layoutClasses(){return r()},set layoutClasses(S){r(S),B()},$set:Ke,$on:(S,k)=>Ge(t,S,k)},l=E3(),d=qe(l),g=de(d),p=de(g);ut(p,{key:"loading"}),ce(g),ce(d);var _=pe(d,2);return Nt(_,t,"default",{},null),Te(()=>Ct(d,1,`tw_spinner tw_animate-spin tw_border-4 tw_inline-block tw_rounded-full ${n()} ${r()}`)),Q(e,l),He(i)}var k3=ke("<button><!> <!></button>");function On(e,t){if(new.target)return We({component:On,...e});Ve(t,!1);let n=V(t,"busy",12,!1),r=V(t,"classes",12,""),i=V(t,"onClick",12,()=>{}),l=V(t,"style",12,"outline"),d=V(t,"type",12,null),g=V(t,"width",12,"auto");function p(...b){return b.reduce((c,u)=>{switch(u){case"primary":return`${c} tw_button-primary dark:tw_button-primary_dark`;case"secondary":return`${c} tw_button-secondary dark:tw_button-secondary_dark`;case"outline":return`${c} tw_button-outline dark:tw_button-outline_dark`;case"auto":return`${c} tw_w-auto`;case"full":return`${c} tw_w-full`;default:return c}},"")}var _={get busy(){return n()},set busy(b){n(b),B()},get classes(){return r()},set classes(b){r(b),B()},get onClick(){return i()},set onClick(b){i(b),B()},get style(){return l()},set style(b){l(b),B()},get type(){return d()},set type(b){d(b),B()},get width(){return g()},set width(b){g(b),B()},$set:Ke,$on:(b,c)=>Ge(t,b,c)},S=k3(),k=de(S);{var h=b=>{pr(b,{colorClass:"white",layoutClasses:"tw_h-4 tw_w-4 tw_mr-2"})};Ze(k,b=>{n()&&b(h)})}var y=pe(k,2);return Nt(y,t,"default",{},b=>{var c=Vt("Submit");Q(b,c)}),ce(S),Te(b=>{Ct(S,1,b),we(S,"type",d())},[()=>(W(l()),W(g()),W(r()),Z(()=>`${p(l(),g())} tw_button-base tw_focusable-element dark:tw_focusable-element_dark width-${g()} ${r()}`))]),mn("click",S,function(...b){var c;(c=i())==null||c.apply(this,b)}),Q(e,S),He(_)}function C3(e){let t=null,n=null;async function r(d){var _;if(!d||d.type!=="Step")return;const g=((_=d.payload)==null?void 0:_.authId)??null;if(!g||(n&&t&&g!==t&&i(),t===g)||(t=g,!j5(d)||!await $r.isConditionalMediationSupported()))return;const p=new AbortController;n=p;try{const S=await $r.authenticate(d,p.signal);await e.next(S)}catch(S){console.debug("Passkey autofill attempt did not complete",S)}finally{n===p&&(n=null)}}function i(){n==null||n.abort(),n=null}const l=e.subscribe(d=>{r(d==null?void 0:d.step).catch(g=>{console.debug("Passkey autofill update failed",g)})});return{abort:i,destroy(){l(),i()}}}let Ty=class{static isQRCodeStep(t){const n=t.getCallbacksOfType(fe.HiddenValueCallback);return n.length===0?!1:!!this.getQRCodeURICb(n)}static getQRCodeData(t){const n=t.getCallbacksOfType(fe.HiddenValueCallback);if(n.length===0)throw new Error("QR Code step must contain a HiddenValueCallback. Use `QRCode.isQRCodeStep` to guard.");const r=this.getQRCodeURICb(n),i=r?r.getOutputValue("value"):"",l=typeof i=="string"&&i.includes("otpauth://")?"otp":"push",g=t.getCallbacksOfType(fe.TextOutputCallback).find(p=>p.getMessageType()!=="4");return{message:g?g.getMessage():"",use:l,uri:typeof i=="string"?i:""}}static getQRCodeURICb(t){return t.find(n=>{const r=n.getOutputValue("value");return typeof r=="string"?(r==null?void 0:r.includes("otpauth://"))||(r==null?void 0:r.includes("pushauth://")):!1})}};function I3(e){const t=e.match(/\s[\w\W]"([\w]*)\\/g);return Array.isArray(t)&&t.map(r=>{const i=r.match(/"([\w]*)\\/);return Array.isArray(i)?i[1]:""})||[]}function A3(e){var n,r,i;return((i=(r=(n=e==null?void 0:e.match(/<em\s*.*>\s*.*<\/em>/g))==null?void 0:n[0])==null?void 0:r.replace("<em>",""))==null?void 0:i.replace("</em>",""))??"New Security Key"}class Nf{static getDeviceName(t){var r;const n=((r=this.getDisplayCallback(t))==null?void 0:r.getOutputByName("message",""))??"";return A3(n)}static getCodes(t){var r;const n=(r=this.getDisplayCallback(t))==null?void 0:r.getOutputByName("message","");return I3(n||"")}static isDisplayStep(t){return!!this.getDisplayCallback(t)}static getDisplayCallback(t){return t.getCallbacksOfType(fe.TextOutputCallback).find(n=>{const r=n.getOutputByName("message",void 0);return r&&(r.includes("Recovery Codes")||r.includes("recovery codes"))})}}function nu(e,t){if(new.target)return We({component:nu,...e});Ve(t,!1);let n=V(t,"html",12,!1),r=V(t,"string",12),i=re();yt(()=>W(r()),()=>{Y(i,sa(r()))}),Ot();var l={get html(){return n()},set html(S){n(S),B()},get string(){return r()},set string(S){r(S),B()},$set:Ke,$on:(S,k)=>Ge(t,S,k)};dt();var d=mt(),g=qe(d);{var p=S=>{var k=mt(),h=qe(k);Nt(h,t,"default",{},y=>{var b=mt(),c=qe(b);Nl(c,()=>C(i)),Q(y,b)}),Q(S,k)},_=S=>{var k=mt(),h=qe(k);Nt(h,t,"default",{},y=>{var b=Vt();Te(()=>vt(b,C(i))),Q(y,b)}),Q(S,k)};Ze(g,S=>{n()?S(p):S(_,-1)})}return Q(e,d),He(l)}var T3=_n('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z"></path></svg>');function Oy(e,t){if(new.target)return We({component:Oy,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>Ge(t,d,g)},l=T3();return Te(()=>{Ct(l,0,wn(n())),we(l,"height",r()),we(l,"width",r())}),Q(e,l),He(i)}var O3=ke('<form novalidate="" tabindex="-1"><!></form>');function Ui(e,t){if(new.target)return We({component:Ui,...e});Ve(t,!1);let n=V(t,"ariaDescribedBy",12),r=V(t,"formEl",12,null),i=V(t,"id",12,"formId"),l=V(t,"needsFocus",12,!1),d=V(t,"onSubmitWhenValid",12,void 0),g=re(!1);function p(h){const y=h.target;let b=null;Y(g,!1),Array.from(y.children).forEach((c,u)=>{const f=c.querySelectorAll("input, select, textarea");f!=null&&f.length&&Array.from(f).forEach(a=>{const o=a.checkValidity()&&a.dataset.forceValidityFailure!=="true",s=a.getAttribute("aria-describedby")||"",m=document.getElementById(s),v=m==null?void 0:m.querySelector(".__input-message");o?(a.setAttribute("aria-invalid","false"),v==null||v.classList.remove("tw_isInvalid"),v==null||v.classList.add("tw_hidden")):(a.setAttribute("aria-invalid","true"),s&&(v==null||v.classList.add("tw_isInvalid"),v==null||v.classList.remove("tw_hidden")),b===null&&(a.focus(),b=u))})}),b===null&&(Y(g,!0),d()&&d()(h,C(g)))}yt(()=>(W(l()),W(r())),()=>{l()&&r()&&r().focus()}),Ot();var _={get ariaDescribedBy(){return n()},set ariaDescribedBy(h){n(h),B()},get formEl(){return r()},set formEl(h){r(h),B()},get id(){return i()},set id(h){i(h),B()},get needsFocus(){return l()},set needsFocus(h){l(h),B()},get onSubmitWhenValid(){return d()},set onSubmitWhenValid(h){d(h),B()},$set:Ke,$on:(h,y)=>Ge(t,h,y)};dt();var S=O3(),k=de(S);return Nt(k,t,"default",{},null),ce(S),an(S,h=>r(h),()=>r()),Te(()=>{we(S,"aria-describedby",n()),we(S,"id",i()),Ct(S,1,`tw_form-base ${C(g)?"tw_form-valid":"tw_form-invalid"} tw_outline-none`)}),mn("submit",S,xl(p)),Q(e,S),He(_)}var P3=ke("<label><!></label>");function Fi(e,t){if(new.target)return We({component:Fi,...e});Ve(t,!1);let n=V(t,"key",12),r=V(t,"classes",12,"");var i={get key(){return n()},set key(g){n(g),B()},get classes(){return r()},set classes(g){r(g),B()},$set:Ke,$on:(g,p)=>Ge(t,g,p)},l=P3(),d=de(l);return Nt(d,t,"default",{},null),ce(l),Te(()=>{we(l,"for",n()),Ct(l,1,`${r()} tw_input-label dark:tw_input-label_dark`)}),Q(e,l),He(i)}var R3=ke("<p><!></p>");function Bi(e,t){if(new.target)return We({component:Bi,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"dirtyMessage",12),i=V(t,"key",12,void 0),l=V(t,"showMessage",12,!0),d=V(t,"type",12,"info"),g=re(sa(r()));function p(...y){return y.reduce((b,c)=>{switch(c){case"error":return`${b} tw_input-error-message dark:tw_input-error-message_dark`;default:return`${b} tw_input-info-message dark:tw_input-info-message_dark`}},"")}yt(()=>W(r()),()=>{Y(g,sa(r()))}),Ot();var _={get classes(){return n()},set classes(y){n(y),B()},get dirtyMessage(){return r()},set dirtyMessage(y){r(y),B()},get key(){return i()},set key(y){i(y),B()},get showMessage(){return l()},set showMessage(y){l(y),B()},get type(){return d()},set type(y){d(y),B()},$set:Ke,$on:(y,b)=>Ge(t,y,b)};dt();var S=mt(),k=qe(S);{var h=y=>{var b=R3(),c=de(b);Nl(c,()=>C(g)),ce(b),Te(u=>{Ct(b,1,u),we(b,"id",`${i()?`${i()}-message`:""}`)},[()=>(W(n()),W(l()),W(d()),Z(()=>`${n()} __input-message ${l()?"":"tw_hidden"} ${p(d())}`))]),Q(y,b)};Ze(k,y=>{r()&&y(h)})}return Q(e,S),He(_)}var M3=ke('<span class="tw_animated-check dark:tw_animated-check_dark"></span> <!>',1),L3=ke('<div class="tw_input-spacing"><input class="tw_checkbox-input_animated dark:tw_checkbox-input_animated_dark tw_sr-only" type="checkbox"/> <!> <div class="tw_ml-10"><!></div></div>');function ru(e,t){if(new.target)return We({component:ru,...e});Ve(t,!1);let n=V(t,"checkValidity",12,null),r=V(t,"message",12,""),i=V(t,"isFirstInvalidInput",12),l=V(t,"isRequired",12,!1),d=V(t,"isInvalid",12,!1),g=V(t,"key",12),p=V(t,"onChange",12),_=V(t,"showMessage",12,void 0),S=V(t,"value",12),k=re();function h(o){n()&&d(!n()(o)),p()(o)}Hn(()=>{i()&&C(k).focus()});var y={get checkValidity(){return n()},set checkValidity(o){n(o),B()},get message(){return r()},set message(o){r(o),B()},get isFirstInvalidInput(){return i()},set isFirstInvalidInput(o){i(o),B()},get isRequired(){return l()},set isRequired(o){l(o),B()},get isInvalid(){return d()},set isInvalid(o){d(o),B()},get key(){return g()},set key(o){g(o),B()},get onChange(){return p()},set onChange(o){p(o),B()},get showMessage(){return _()},set showMessage(o){_(o),B()},get value(){return S()},set value(o){S(o),B()},$set:Ke,$on:(o,s)=>Ge(t,o,s)};dt();var b=L3(),c=de(b);Hr(c),an(c,o=>Y(k,o),()=>C(k));var u=pe(c,2);Fi(u,{get key(){return g()},classes:"tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",children:(o,s)=>{var m=M3(),v=pe(qe(m),2);Nt(v,t,"default",{},null),Q(o,m)},$$slots:{default:!0}});var f=pe(u,2),a=de(f);{let o=me(()=>d()?"error":"info");Bi(a,{get dirtyMessage(){return r()},get showMessage(){return _()},get type(){return C(o)}})}return ce(f),ce(b),Te(()=>{we(c,"aria-describedby",`${g()}-message`),we(c,"aria-invalid",d()),Fl(c,S()),we(c,"id",g()),c.required=l(),we(f,"id",`${g()}-message`)}),mn("change",c,h),Q(e,b),He(y)}var D3=ke('<input class="tw_checkbox-input dark:tw_checkbox-input_dark tw_focusable-element dark:tw_focusable-element_dark" type="checkbox"/> <!>',1);function iu(e,t){if(new.target)return We({component:iu,...e});Ve(t,!1);let n=V(t,"isFirstInvalidInput",12),r=V(t,"isRequired",12,!1),i=V(t,"isInvalid",12,!1),l=V(t,"key",12),d=V(t,"onChange",12),g=V(t,"value",12),p=re();Hn(()=>{n()&&C(p).focus()});var _={get isFirstInvalidInput(){return n()},set isFirstInvalidInput(y){n(y),B()},get isRequired(){return r()},set isRequired(y){r(y),B()},get isInvalid(){return i()},set isInvalid(y){i(y),B()},get key(){return l()},set key(y){l(y),B()},get onChange(){return d()},set onChange(y){d(y),B()},get value(){return g()},set value(y){g(y),B()},$set:Ke,$on:(y,b)=>Ge(t,y,b)};dt();var S=D3(),k=qe(S);Hr(k),an(k,y=>Y(p,y),()=>C(p));var h=pe(k,2);return Fi(h,{get key(){return l()},children:(y,b)=>{var c=mt(),u=qe(c);Nt(u,t,"default",{},null),Q(y,c)},$$slots:{default:!0}}),Te(()=>{we(k,"aria-describedby",`${l()}-message`),we(k,"aria-invalid",i()),Fl(k,g()),we(k,"id",l()),k.required=r()}),mn("change",k,function(...y){var b;(b=d())==null||b.apply(this,y)}),Q(e,S),He(_)}var x3=ke('<div class="tw_input-spacing tw_grid tw_grid-cols-[1.5em_1fr]"><!> <span class="tw_col-start-2 tw_row-start-2"><!></span></div>');function su(e,t){if(new.target)return We({component:su,...e});Ve(t,!1);let n=V(t,"checkValidity",12,null),r=V(t,"message",12,""),i=V(t,"isFirstInvalidInput",12),l=V(t,"isRequired",12,!1),d=V(t,"isInvalid",12,!1),g=V(t,"key",12),p=V(t,"onChange",12),_=V(t,"showMessage",12,void 0),S=V(t,"value",12);function k(f){n()&&d(!n()(f)),p()(f)}var h={get checkValidity(){return n()},set checkValidity(f){n(f),B()},get message(){return r()},set message(f){r(f),B()},get isFirstInvalidInput(){return i()},set isFirstInvalidInput(f){i(f),B()},get isRequired(){return l()},set isRequired(f){l(f),B()},get isInvalid(){return d()},set isInvalid(f){d(f),B()},get key(){return g()},set key(f){g(f),B()},get onChange(){return p()},set onChange(f){p(f),B()},get showMessage(){return _()},set showMessage(f){_(f),B()},get value(){return S()},set value(f){S(f),B()},$set:Ke,$on:(f,a)=>Ge(t,f,a)};dt();var y=x3(),b=de(y);iu(b,{get isFirstInvalidInput(){return i()},get isRequired(){return l()},get isInvalid(){return d()},get key(){return g()},onChange:k,get value(){return S()},children:(f,a)=>{var o=mt(),s=qe(o);Nt(s,t,"default",{},null),Q(f,o)},$$slots:{default:!0}});var c=pe(b,2),u=de(c);{let f=me(()=>d()?"error":"info");Bi(u,{get dirtyMessage(){return r()},get showMessage(){return _()},get type(){return C(f)}})}return ce(c),ce(y),Te(()=>we(c,"id",`${g()}-message`)),Q(e,y),He(h)}function N3(e){const t=e==null?void 0:e.value;if(typeof t!="object")return"text";const n=t==null?void 0:t.policyRequirements;return Array.isArray(n)?n.includes("VALID_EMAIL_ADDRESS_FORMAT")?"email":(n.includes("VALID_USERNAME"),"text"):"text"}function U3(e){if((e==null?void 0:e.policyRequirement)==="DICTIONARY"){const t=e.params,n=(t==null?void 0:t["min-substring-length"])||0,r=[];return t!=null&&t["check-substrings"]&&(t!=null&&t["test-reversed-password"])?r.push({length:n,message:Ee("passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan",{min:String(n)}),rule:"reversibleSubstrings"}):t!=null&&t["test-reversed-password"]?r.push({length:null,message:Ee("passwordCannotContainCommonPasswordsOrBeReversible"),rule:"reversibleSubstrings"}):r.push({length:null,message:Ee("passwordCannotContainCommonPasswords"),rule:"reversibleSubstrings"}),r}else if((e==null?void 0:e.policyRequirement)==="CHARACTER_SET"){const t=e.params;return t==null?void 0:t["character-sets"].map(B3)}else if((e==null?void 0:e.policyRequirement)==="LENGTH_BASED"){const t=e.params,n=(t==null?void 0:t["min-password-length"])||0,r=(t==null?void 0:t["max-password-length"])||null,i=[];return r&&i.push({length:r,message:Ee("exceedsMaximumCharacterLength",{max:String(r)}),rule:"maximumLength"}),n&&i.push({length:n,message:Ee("doesNotMeetMinimumCharacterLength",{min:String(n)}),rule:"minimumLength"}),i}else if((e==null?void 0:e.policyRequirement)==="REPEATED_CHARACTERS"){const t=e.params,n=t["max-consecutive-length"]||0,r=[];return t["case-sensitive-validation"]?r.push({length:n,message:Ee("charactersCannotRepeatMoreThan",{max:String(n)}),rule:"repeatedCharacters"}):r.push({length:n,message:Ee("charactersCannotRepeatMoreThanCaseInsensitive",{max:String(n)}),rule:"repeatedCharactersCaseInsensitive"}),r}else return(e==null?void 0:e.policyRequirement)==="VALID_USERNAME"?[{length:null,message:Ee("chooseDifferentUsername"),rule:"validUsername"}]:(e==null?void 0:e.policyRequirement)==="VALID_EMAIL_ADDRESS_FORMAT"?[{length:null,message:Ee("invalidEmailAddress"),rule:"validEmailAddress"}]:[{length:null,message:Ee("pleaseCheckValue"),rule:"unknown"}]}function F3(e){var t;switch(e==null?void 0:e.policyId){case"at-least-X-capitals":{const n=e==null?void 0:e.params,r=n==null?void 0:n.numCaps;return Ee("minimumNumberOfUppercase",{num:String(r)})}case"at-least-X-numbers":{const n=e==null?void 0:e.params,r=n==null?void 0:n.numNums;return Ee("minimumNumberOfNumbers",{num:String(r)})}case"cannot-contain-characters":{const n=e==null?void 0:e.params;let r="";return typeof n!="object"?"":(Array.isArray(n.forbiddenChars)?r=n.forbiddenChars.reduce((i,l)=>(i=`${i?`${i}, `:`${i}`} ${l}`,i),""):typeof n.forbiddenChars=="string"&&(r=n.forbiddenChars),Ee("fieldCanNotContainFollowingCharacters",{chars:r}))}case"cannot-contain-others":{const n=e==null?void 0:e.params;let r="";return typeof n!="object"?"":(Array.isArray(n.disallowedFields)?r=(t=n.disallowedFields)==null?void 0:t.reduce((i,l)=>(i=`${i?`${i}, `:`${i}`} ${Ee(l)}`,i),""):typeof n.disallowedFields=="string"&&(r=n.disallowedFields),Ee("fieldCanNotContainFollowingValues",{fields:r}))}case"maximum-length":{const n=e==null?void 0:e.params,r=n==null?void 0:n.maxLength;return r>100?"":Ee("notToExceedMaximumCharacterLength",{max:String(r)})}case"minimum-length":{const n=e==null?void 0:e.params,r=n==null?void 0:n.minLength;return r===1?"":Ee("noLessThanMinimumCharacterLength",{min:String(r)})}case"not-empty":return"";case"required":return"";case"valid-username":return"";case"valid-email-address-format":return"";case"valid-type":return"";default:return""}}function Es(e,t){const n=e.getFailedPolicies&&e.getFailedPolicies();return z3(n,t).map(i=>({params:i==null?void 0:i.params,policyRequirement:(i==null?void 0:i.policyRequirement)||"",restructured:U3(i)}))}function Uf(e){if(typeof e!="object"&&!e)return[];const t=e==null?void 0:e.policies;return Array.isArray(t)?t.map(n=>({message:F3(n),...(n==null?void 0:n.params)&&{params:n==null?void 0:n.params},...(n==null?void 0:n.policyId)&&{policyId:n==null?void 0:n.policyId}})).filter(n=>!!n.message):[]}function Ff(e){const t=e.getPolicies&&e.getPolicies();let n=!1;return t!=null&&t.policyRequirements?n=t.policyRequirements.includes("REQUIRED"):e.isRequired&&(n=e.isRequired()),n}function B3(e){const t=e.split(":"),n=t[0],r=t[1];return r==="0123456789"?n==="0"?{length:null,message:Ee("shouldContainANumber"),rule:"numbers"}:{length:Number(n),message:Ee("minimumNumberOfNumbers",{num:String(n)}),rule:"numbers"}:r==="ABCDEFGHIJKLMNOPQRSTUVWXYZ"?n==="0"?{length:null,message:Ee("shouldContainAnUppercase"),rule:"uppercase"}:{length:Number(n),message:Ee("minimumNumberOfUppercase",{num:String(n)}),rule:"uppercase"}:r==="abcdefghijklmnopqrstuvwxyz"?n==="0"?{length:null,message:Ee("shouldContainALowercase"),rule:"lowercase"}:{length:Number(n),message:Ee("minimumNumberOfLowercase",{num:String(n)}),rule:"lowercase"}:r.includes("@")||r.includes("!")||r.includes("*")||r.includes("#")?n==="0"?{length:null,message:Ee("shouldContainASymbol"),rule:"symbols"}:{length:Number(n),message:Ee("minimumNumberOfSymbols",{num:String(n)}),rule:"symbols"}:{length:null,message:Ee("pleaseCheckValue"),rule:"unknown"}}function z3(e,t){return e.map(n=>{if(typeof n=="string")try{return JSON.parse(n)}catch{console.error(`Parsing failure for ${t}`)}else return n})}function Py(e){return(e.getFailedPolicies&&e.getFailedPolicies()).reduce((n,r)=>{switch(r.policyRequirement){default:n=`${n}${Ee("pleaseCheckValue")}`}return n},"")}function Ry(e,t){if(new.target)return We({component:Ry,...e});Ve(t,!1);const n=null,r=null;let i=V(t,"callback",12),l=V(t,"callbackMetadata",12),d=V(t,"style",28,()=>({}));const g=d().checksAndRadios==="standard"?su:ru;let p=re(),_=re(),S=re(),k=re(),h=re();function y(f){i().setInputValue(f.target.checked)}yt(()=>(W(i()),W(l()),Py),()=>{var f,a,o,s;Y(p,((o=(a=(f=i())==null?void 0:f.payload)==null?void 0:a.input)==null?void 0:o[0].name)||`boolean-attr-${(s=l())==null?void 0:s.idx}`),Y(_,i().getOutputByName("name","")),Y(S,i().getInputValue()),Y(k,i().getPrompt()),Y(h,Py(i()))}),Ot();var b={stepMetadata:n,selfSubmitFunction:r,get callback(){return i()},set callback(f){i(f),B()},get callbackMetadata(){return l()},set callbackMetadata(f){l(f),B()},get style(){return d()},set style(f){d(f),B()},$set:Ke,$on:(f,a)=>Ge(t,f,a)};dt();var c=mt(),u=qe(c);return Ws(u,i,f=>{{let a=me(()=>(W(l()),Z(()=>{var s;return((s=l())==null?void 0:s.derived.isFirstInvalidInput)||!1}))),o=me(()=>!!C(h));g(f,{get isFirstInvalidInput(){return C(a)},get isInvalid(){return C(o)},get key(){return C(p)},get message(){return C(h)},onChange:y,get value(){return C(S)},children:(s,m)=>{Gt();var v=Vt();Te(w=>vt(v,w),[()=>(W(Ee),W(hr),C(_),C(k),Z(()=>Ee(hr(C(_)),null,C(k))))]),Q(s,v)},$$slots:{default:!0}})}}),Q(e,c),lt(t,"stepMetadata",n),lt(t,"selfSubmitFunction",r),He(b)}var V3=ke('<span class="tw_animated-radio dark:tw_animated-radio_dark"></span> ',1),H3=ke('<div class="tw_input-spacing"><input class="tw_radio-input_animated dark:tw_radio-input_animated_dark tw_sr-only" type="radio"/> <!></div>'),j3=ke('<fieldset><legend class="tw_input-label dark:tw_input-label_dark tw_font-bold tw_mb-4"> </legend> <div><!> <span class="tw_col-start-2 tw_row-start-2"><!></span></div></fieldset>');function My(e,t){if(new.target)return We({component:My,...e});Ve(t,!1);let n=V(t,"defaultOption",12,null),r=V(t,"message",12,""),i=V(t,"groupLabel",12,""),l=V(t,"isFirstInvalidInput",12),d=V(t,"isRequired",12,!1),g=V(t,"isInvalid",12,!1),p=V(t,"key",12),_=V(t,"name",12),S=V(t,"onChange",12),k=V(t,"options",12),h=V(t,"showMessage",12,void 0),y=re();Hn(()=>{l()&&C(y).focus()});var b={get defaultOption(){return n()},set defaultOption(v){n(v),B()},get message(){return r()},set message(v){r(v),B()},get groupLabel(){return i()},set groupLabel(v){i(v),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(v){l(v),B()},get isRequired(){return d()},set isRequired(v){d(v),B()},get isInvalid(){return g()},set isInvalid(v){g(v),B()},get key(){return p()},set key(v){p(v),B()},get name(){return _()},set name(v){_(v),B()},get onChange(){return S()},set onChange(v){S(v),B()},get options(){return k()},set options(v){k(v),B()},get showMessage(){return h()},set showMessage(v){h(v),B()},$set:Ke,$on:(v,w)=>Ge(t,v,w)};dt();var c=j3(),u=de(c),f=de(u,!0);ce(u);var a=pe(u,2),o=de(a);Qn(o,1,k,Xn,(v,w)=>{var A=H3(),E=de(A);Hr(E),an(E,T=>Y(y,T),()=>C(y));var O=pe(E,2);{let T=me(()=>(W(p()),C(w),Z(()=>`${p()}-${C(w).value}`)));Fi(O,{get key(){return C(T)},classes:"tw_input-spacing tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",children:(L,P)=>{var N=V3(),I=pe(qe(N));Te(()=>vt(I,` ${C(w),Z(()=>C(w).text)??""}`)),Q(L,N)},$$slots:{default:!0}})}ce(A),Te(()=>{Fl(E,(W(n()),C(w),Z(()=>n()===C(w).value))),we(E,"id",(W(p()),C(w),Z(()=>`${p()}-${C(w).value}`))),we(E,"name",_()),E.required=d(),id(E,(C(w),Z(()=>C(w).value)))}),mn("change",E,function(...T){var L;(L=S())==null||L.apply(this,T)}),Q(v,A)});var s=pe(o,2),m=de(s);{let v=me(()=>g()?"error":"info");Bi(m,{get dirtyMessage(){return r()},get key(){return p()},get showMessage(){return h()},get type(){return C(v)}})}return ce(s),ce(a),ce(c),Te(()=>vt(f,i())),Q(e,c),He(b)}var q3=ke('<input class="tw_checkbox-input dark:tw_checkbox-input_dark tw_focusable-element dark:tw_focusable-element_dark" type="radio"/> <!>',1);function Ly(e,t){if(new.target)return We({component:Ly,...e});Ve(t,!1);let n=V(t,"checked",12,!1),r=V(t,"isFirstInvalidInput",12),i=V(t,"isRequired",12,!1),l=V(t,"key",12),d=V(t,"name",12),g=V(t,"onChange",12),p=V(t,"value",12),_=re();Hn(()=>{r()&&C(_).focus()});var S={get checked(){return n()},set checked(b){n(b),B()},get isFirstInvalidInput(){return r()},set isFirstInvalidInput(b){r(b),B()},get isRequired(){return i()},set isRequired(b){i(b),B()},get key(){return l()},set key(b){l(b),B()},get name(){return d()},set name(b){d(b),B()},get onChange(){return g()},set onChange(b){g(b),B()},get value(){return p()},set value(b){p(b),B()},$set:Ke,$on:(b,c)=>Ge(t,b,c)};dt();var k=q3(),h=qe(k);Hr(h),an(h,b=>Y(_,b),()=>C(_));var y=pe(h,2);return Fi(y,{get key(){return l()},children:(b,c)=>{var u=mt(),f=qe(u);Nt(f,t,"default",{},null),Q(b,u)},$$slots:{default:!0}}),Te(()=>{we(h,"aria-describedby",`${l()}-message`),Fl(h,n()),we(h,"id",l()),we(h,"name",d()),h.required=i(),id(h,p())}),mn("change",h,function(...b){var c;(c=g())==null||c.apply(this,b)}),Q(e,k),He(S)}var W3=ke('<div class="tw_input-spacing tw_grid tw_grid-cols-[1.5em_1fr]"><!></div>'),G3=ke('<fieldset><legend class="tw_input-label dark:tw_input-label_dark tw_font-bold tw_mb-4"> </legend> <!> <span class="tw_col-start-2 tw_row-start-2"><!></span></fieldset>');function Dy(e,t){if(new.target)return We({component:Dy,...e});Ve(t,!1);let n=V(t,"defaultOption",12,null),r=V(t,"message",12,""),i=V(t,"groupLabel",12,""),l=V(t,"isFirstInvalidInput",12),d=V(t,"isRequired",12,!1),g=V(t,"isInvalid",12,!1),p=V(t,"key",12),_=V(t,"name",12),S=V(t,"onChange",12),k=V(t,"options",12),h=V(t,"showMessage",12,void 0);var y={get defaultOption(){return n()},set defaultOption(s){n(s),B()},get message(){return r()},set message(s){r(s),B()},get groupLabel(){return i()},set groupLabel(s){i(s),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(s){l(s),B()},get isRequired(){return d()},set isRequired(s){d(s),B()},get isInvalid(){return g()},set isInvalid(s){g(s),B()},get key(){return p()},set key(s){p(s),B()},get name(){return _()},set name(s){_(s),B()},get onChange(){return S()},set onChange(s){S(s),B()},get options(){return k()},set options(s){k(s),B()},get showMessage(){return h()},set showMessage(s){h(s),B()},$set:Ke,$on:(s,m)=>Ge(t,s,m)},b=G3(),c=de(b),u=de(c,!0);ce(c);var f=pe(c,2);Qn(f,1,k,Xn,(s,m)=>{var v=W3(),w=de(v);{let A=me(()=>(W(n()),C(m),Z(()=>n()===C(m).value))),E=me(()=>(W(p()),C(m),Z(()=>`${p()}-${C(m).value}`)));Ly(w,{get checked(){return C(A)},get isFirstInvalidInput(){return l()},get isRequired(){return d()},get key(){return C(E)},get name(){return _()},get onChange(){return S()},get value(){return C(m),Z(()=>C(m).value)},children:(O,T)=>{Gt();var L=Vt();Te(()=>vt(L,(C(m),Z(()=>C(m).text)))),Q(O,L)},$$slots:{default:!0}})}ce(v),Q(s,v)});var a=pe(f,2),o=de(a);{let s=me(()=>g()?"error":"info");Bi(o,{get dirtyMessage(){return r()},get key(){return p()},get showMessage(){return h()},get type(){return C(s)}})}return ce(a),ce(b),Te(()=>vt(u,i())),Q(e,b),He(y)}var K3=ke("<option> </option>"),$3=ke("<!> <select></select> <!>",1);function Bf(e,t){if(new.target)return We({component:Bf,...e});Ve(t,!1);let n=V(t,"selectClasses",12,""),r=V(t,"defaultOption",12,null),i=V(t,"isFirstInvalidInput",12),l=V(t,"isRequired",12,!1),d=V(t,"isInvalid",12,!1),g=V(t,"key",12),p=V(t,"label",12),_=V(t,"labelClasses",12,""),S=V(t,"labelOrder",12,"first"),k=V(t,"onChange",12),h=V(t,"options",12),y=re(),b=re(!0);r()===null&&h()[0].text===p()&&Y(b,!1),Hn(()=>{i()&&C(y).focus()});function c(w){const A=w.target.value,E=h().find(O=>String(O.value)===A);Y(b,p()!==(E==null?void 0:E.text)),k()(w)}var u={get selectClasses(){return n()},set selectClasses(w){n(w),B()},get defaultOption(){return r()},set defaultOption(w){r(w),B()},get isFirstInvalidInput(){return i()},set isFirstInvalidInput(w){i(w),B()},get isRequired(){return l()},set isRequired(w){l(w),B()},get isInvalid(){return d()},set isInvalid(w){d(w),B()},get key(){return g()},set key(w){g(w),B()},get label(){return p()},set label(w){p(w),B()},get labelClasses(){return _()},set labelClasses(w){_(w),B()},get labelOrder(){return S()},set labelOrder(w){S(w),B()},get onChange(){return k()},set onChange(w){k(w),B()},get options(){return h()},set options(w){h(w),B()},$set:Ke,$on:(w,A)=>Ge(t,w,A)};dt();var f=$3(),a=qe(f);{var o=w=>{{let A=me(()=>`${_()}`);Fi(w,{get key(){return g()},get classes(){return C(A)},children:(E,O)=>{Gt();var T=Vt();Te(()=>vt(T,p())),Q(E,T)},$$slots:{default:!0}})}};Ze(a,w=>{S()==="first"&&w(o)})}var s=pe(a,2);Qn(s,5,h,Xn,(w,A)=>{var E=K3(),O=de(E,!0);ce(E);var T={};Te(()=>{Vw(E,(C(A),W(r()),Z(()=>C(A).value===r()))),vt(O,(C(A),Z(()=>C(A).text))),T!==(T=(C(A),Z(()=>C(A).value)))&&(E.value=(E.__value=(C(A),Z(()=>C(A).value)))??"")}),Q(w,E)}),ce(s),an(s,w=>Y(y,w),()=>C(y));var m=pe(s,2);{var v=w=>{{let A=me(()=>`${C(b)?_():"tw_sr-only"}`);Fi(w,{get key(){return g()},get classes(){return C(A)},children:(E,O)=>{Gt();var T=Vt();Te(()=>vt(T,p())),Q(E,T)},$$slots:{default:!0}})}};Ze(m,w=>{S()==="last"&&w(v)})}return Te(()=>{we(s,"aria-describedby",`${g()}-message`),we(s,"aria-invalid",d()),Ct(s,1,`${C(b)?n():""} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_select-base dark:tw_select-base_dark tw_w-full`),we(s,"id",g()),s.required=l()}),mn("change",s,c),Q(e,f),He(u)}var Z3=ke('<div class="tw_input-spacing tw_relative"><!> <!></div>');function au(e,t){if(new.target)return We({component:au,...e});Ve(t,!1);let n=V(t,"checkValidity",12,null),r=V(t,"defaultOption",12,null),i=V(t,"message",12,""),l=V(t,"isFirstInvalidInput",12),d=V(t,"isRequired",12,!1),g=V(t,"isInvalid",12,!1),p=V(t,"key",12),_=V(t,"label",12),S=V(t,"onChange",12),k=V(t,"options",12),h=V(t,"showMessage",12,void 0);function y(a){n()&&g(!n()(a)),S()(a)}var b={get checkValidity(){return n()},set checkValidity(a){n(a),B()},get defaultOption(){return r()},set defaultOption(a){r(a),B()},get message(){return i()},set message(a){i(a),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(a){l(a),B()},get isRequired(){return d()},set isRequired(a){d(a),B()},get isInvalid(){return g()},set isInvalid(a){g(a),B()},get key(){return p()},set key(a){p(a),B()},get label(){return _()},set label(a){_(a),B()},get onChange(){return S()},set onChange(a){S(a),B()},get options(){return k()},set options(a){k(a),B()},get showMessage(){return h()},set showMessage(a){h(a),B()},$set:Ke,$on:(a,o)=>Ge(t,a,o)};dt();var c=Z3(),u=de(c);Bf(u,{get defaultOption(){return r()},get isFirstInvalidInput(){return l()},get isRequired(){return d()},get isInvalid(){return g()},get key(){return p()},get label(){return _()},labelClasses:"tw_absolute tw_input-floating-label tw_select-floating-label",labelOrder:"last",onChange:y,get options(){return k()},selectClasses:"tw_select-floating"});var f=pe(u,2);{let a=me(()=>g()?"error":"info");Bi(f,{get dirtyMessage(){return i()},get key(){return p()},get showMessage(){return h()},get type(){return C(a)}})}return ce(c),Q(e,c),He(b)}var Y3=ke('<div class="tw_input-spacing"><!> <!></div>');function zf(e,t){if(new.target)return We({component:zf,...e});Ve(t,!1);let n=V(t,"checkValidity",12,null),r=V(t,"defaultOption",12,null),i=V(t,"message",12,""),l=V(t,"isFirstInvalidInput",12),d=V(t,"isRequired",12,!1),g=V(t,"isInvalid",12,!1),p=V(t,"key",12),_=V(t,"label",12),S=V(t,"onChange",12),k=V(t,"options",12),h=V(t,"showMessage",12,void 0);function y(a){n()&&g(!n()(a)),S()(a)}var b={get checkValidity(){return n()},set checkValidity(a){n(a),B()},get defaultOption(){return r()},set defaultOption(a){r(a),B()},get message(){return i()},set message(a){i(a),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(a){l(a),B()},get isRequired(){return d()},set isRequired(a){d(a),B()},get isInvalid(){return g()},set isInvalid(a){g(a),B()},get key(){return p()},set key(a){p(a),B()},get label(){return _()},set label(a){_(a),B()},get onChange(){return S()},set onChange(a){S(a),B()},get options(){return k()},set options(a){k(a),B()},get showMessage(){return h()},set showMessage(a){h(a),B()},$set:Ke,$on:(a,o)=>Ge(t,a,o)};dt();var c=Y3(),u=de(c);Bf(u,{get defaultOption(){return r()},get isFirstInvalidInput(){return l()},get isRequired(){return d()},get isInvalid(){return g()},get key(){return p()},get label(){return _()},labelClasses:"tw_input-stacked-label",labelOrder:"first",onChange:y,get options(){return k()}});var f=pe(u,2);{let a=me(()=>g()?"error":"info");Bi(f,{get dirtyMessage(){return i()},get key(){return p()},get showMessage(){return h()},get type(){return C(a)}})}return ce(c),Q(e,c),He(b)}function xy(e,t){if(new.target)return We({component:xy,...e});Ve(t,!1);const n=null,r=null;let i=V(t,"callback",12),l=V(t,"callbackMetadata",12),d=V(t,"style",28,()=>({}));const g=d().checksAndRadios==="standard"?Dy:My,p=d().labels==="stacked"?zf:au;let _=re(),S=re(),k=re(),h=re(),y=re();function b(s){i().setChoiceIndex(Number(s.target.value))}yt(()=>(W(i()),W(l()),C(h)),()=>{var s,m,v,w,A;Y(_,(s=i().getChoices())==null?void 0:s.map((E,O)=>({text:Ee(hr(E),null,E),value:`${O}`}))),Y(y,`${i().getDefaultChoice()}`||null),Y(S,((w=(v=(m=i())==null?void 0:m.payload)==null?void 0:v.input)==null?void 0:w[0].name)||`choice-${(A=l())==null?void 0:A.idx}`),Y(h,i().getPrompt()),Y(k,Ee(hr(C(h)),null,C(h)))}),Ot();var c={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(s){i(s),B()},get callbackMetadata(){return l()},set callbackMetadata(s){l(s),B()},get style(){return d()},set style(s){d(s),B()},$set:Ke,$on:(s,m)=>Ge(t,s,m)};dt();var u=mt(),f=qe(u);{var a=s=>{{let m=me(()=>(W(l()),Z(()=>{var v;return((v=l())==null?void 0:v.derived.isFirstInvalidInput)||!1})));g(s,{get isFirstInvalidInput(){return C(m)},get defaultOption(){return C(y)},isRequired:!1,get key(){return C(S)},get groupLabel(){return C(h)},onChange:b,get name(){return C(S)},get options(){return C(_)}})}},o=s=>{{let m=me(()=>(W(l()),Z(()=>{var v;return((v=l())==null?void 0:v.derived.isFirstInvalidInput)||!1})));p(s,{get isFirstInvalidInput(){return C(m)},get defaultOption(){return C(y)},isRequired:!1,get key(){return C(S)},get label(){return C(k)},onChange:b,get options(){return C(_)}})}};Ze(f,s=>{W(l()),Z(()=>{var m,v;return((v=(m=l())==null?void 0:m.platform)==null?void 0:v.displayType)==="radio"})?s(a):s(o,-1)})}return Q(e,u),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),He(c)}var J3=ke("<div><!></div>");function ou(e,t){if(new.target)return We({component:ou,...e});Ve(t,!1);let n=V(t,"num",12,2);function r(...g){return g.reduce((p,_)=>{switch(_){case 4:return`${p} md:tw_grid-cols-4`;case 3:return`${p} md:tw_grid-cols-3`;case 2:return`${p} md:tw_grid-cols-2`;default:return`${p} md:tw_grid-cols-1`}},"")}var i={get num(){return n()},set num(g){n(g),B()},$set:Ke,$on:(g,p)=>Ge(t,g,p)},l=J3(),d=de(l);return Nt(d,t,"default",{},null),ce(l),Te(g=>Ct(l,1,g),[()=>(W(n()),Z(()=>`${r(n())} tw_gap-4 tw_grid tw_grid-cols-1 tw_input-spacing`))]),Q(e,l),He(i)}function Ny(e,t){if(new.target)return We({component:Ny,...e});Ve(t,!1);const n={};let r=V(t,"callback",12),i=V(t,"callbackMetadata",12),l=V(t,"selfSubmitFunction",12,null),d=V(t,"stepMetadata",12);const g=n.checksAndRadios==="standard"?su:ru;let p=re(),_=re(r().getDefaultOption()),S=re(),k=re(),h=re();function y(v){r().setOptionIndex(v),i()&&i(i().derived.isReadyForSubmission=!0,!0),l()&&l()()}function b(v){r().setOptionIndex(Number(v.target.value))}function c(v){v.target.checked?r().setOptionIndex(0):r().setOptionIndex(C(_))}r().getInputValue()===0&&r().setOptionIndex(C(_)),yt(()=>(W(r()),W(i()),C(h),C(k),W(d())),()=>{var v,w,A,E,O,T,L;Y(S,((A=(w=(v=r())==null?void 0:v.payload)==null?void 0:w.input)==null?void 0:A[0].name)||`confirmation-${(E=i())==null?void 0:E.idx}`),Y(h,r().getOptions().map((P,N)=>({value:`${N}`,text:P}))),Y(_,r().getDefaultOption()),Y(k,Ee(hr("pleaseConfirm"),null,"Please Confirm")),(T=(O=i())==null?void 0:O.platform)!=null&&T.showOnlyPositiveAnswer&&Y(h,C(h).slice(0,1)),!((L=d())!=null&&L.derived.isStepSelfSubmittable())&&C(h).length>1?C(h).unshift({value:"",text:C(k)}):C(h).length===1?Y(p,"outline"):Y(p,"secondary")}),Ot();var u={style:n,get callback(){return r()},set callback(v){r(v),B()},get callbackMetadata(){return i()},set callbackMetadata(v){i(v),B()},get selfSubmitFunction(){return l()},set selfSubmitFunction(v){l(v),B()},get stepMetadata(){return d()},set stepMetadata(v){d(v),B()},$set:Ke,$on:(v,w)=>Ge(t,v,w)};dt();var f=mt(),a=qe(f);{var o=v=>{var w=mt(),A=qe(w);{var E=T=>{{let L=me(()=>(W(i()),Z(()=>{var P;return((P=i())==null?void 0:P.derived.isFirstInvalidInput)||!1})));au(T,{get isFirstInvalidInput(){return C(L)},isRequired:!1,get key(){return C(S)},get label(){return C(k)},onChange:b,get options(){return C(h)}})}},O=T=>{{let L=me(()=>(W(i()),Z(()=>{var P;return((P=i())==null?void 0:P.derived.isFirstInvalidInput)||!1})));g(T,{get isFirstInvalidInput(){return C(L)},isInvalid:!1,get key(){return C(S)},onChange:c,value:!1,children:(P,N)=>{Gt();var I=Vt();Te(()=>vt(I,(C(h),Z(()=>C(h)[0].text)))),Q(P,I)},$$slots:{default:!0}})}};Ze(A,T=>{C(h),Z(()=>C(h).length>1)?T(E):T(O,-1)})}Q(v,w)},s=di(()=>(W(d()),Z(()=>{var v;return!((v=d())!=null&&v.derived.isStepSelfSubmittable())}))),m=v=>{{let w=me(()=>(C(h),Z(()=>C(h).length>=2?2:1)));ou(v,{get num(){return C(w)},children:(A,E)=>{var O=mt(),T=qe(O);Qn(T,1,()=>C(h),Xn,(L,P)=>{{let N=me(()=>(C(h),C(_),C(P),C(p),Z(()=>C(h).length>1&&C(_)===Number(C(P).value)?"primary":C(p))));On(L,{get style(){return C(N)},type:"button",width:"auto",onClick:()=>y(Number(C(P).value)),children:(I,D)=>{Gt();var F=Vt();Te(()=>vt(F,(C(P),Z(()=>C(P).text)))),Q(I,F)},$$slots:{default:!0}})}}),Q(A,O)},$$slots:{default:!0}})}};Ze(a,v=>{C(s)?v(o):v(m,-1)})}return Q(e,f),lt(t,"style",n),He(u)}const X3=["userAgent","appName","appCodeName","appVersion","appMinorVersion","buildID","product","productSub","vendor","vendorSub","browserLanguage"],Q3=["fontNames","displayProps","browserProps","hardwareProps","platformProps"],eO=30*1e3,tO={mac:["Macintosh","MacIntel","MacPPC","Mac68K"],windows:["Win32","Win64","Windows","WinCE"],ios:["iPhone","iPad","iPod"]},nO=["width","height","pixelDepth","orientation.angle"],rO=["cursive","monospace","serif","sans-serif","fantasy","Arial","Arial Black","Arial Narrow","Arial Rounded MT Bold","Bookman Old Style","Bradley Hand ITC","Century","Century Gothic","Comic Sans MS","Courier","Courier New","Georgia","Gentium","Impact","King","Lucida Console","Lalit","Modena","Monotype Corsiva","Papyrus","Tahoma","TeX","Times","Times New Roman","Trebuchet MS","Verdana","Verona"],iO=["cpuClass","deviceMemory","hardwareConcurrency","maxTouchPoints","oscpu"],sO=["language","platform","userLanguage","systemLanguage"];class aO{constructor(t,n="info",r="forgerock"){Je(this,"config");Je(this,"logger");Je(this,"prefix");this.logger=Id({level:n}),this.prefix=r,this.config={fontNames:rO,devicePlatforms:tO,displayProps:nO,browserProps:X3,hardwareProps:iO,platformProps:sO},t&&Object.keys(t).forEach(i=>{if(!Q3.includes(i))throw new Error("Device profile configuration category does not exist.");this.config[i]=t[i]})}getBrowserMeta(){return typeof navigator>"u"?(this.logger.warn("Cannot collect browser metadata. navigator is not defined."),{}):gc(this.config.browserProps,navigator)}getBrowserPluginsNames(){return typeof navigator<"u"&&navigator.plugins?fC(Object.keys(navigator.plugins),navigator.plugins):(this.logger.warn("Cannot collect browser plugin information. navigator.plugins is not defined."),"")}getDeviceName(){if(typeof navigator>"u")return this.logger.warn("Cannot collect device name. navigator is not defined."),"";const t=navigator.userAgent,n=navigator.platform;switch(!0){case this.config.devicePlatforms.mac.includes(n):return"Mac (Browser)";case this.config.devicePlatforms.ios.includes(n):return`${n} (Browser)`;case this.config.devicePlatforms.windows.includes(n):return"Windows (Browser)";case(/Android/.test(n)||/Android/.test(t)):return"Android (Browser)";case(/CrOS/.test(t)||/Chromebook/.test(t)):return"Chrome OS (Browser)";case/Linux/.test(n):return"Linux (Browser)";default:return`${n||"Unknown"} (Browser)`}}getDisplayMeta(){return typeof screen>"u"?(this.logger.warn("Cannot collect screen information. screen is not defined."),{}):gc(this.config.displayProps,screen)}getHardwareMeta(){return typeof navigator>"u"?(this.logger.warn("Cannot collect OS metadata. Navigator is not defined."),{}):gc(this.config.hardwareProps,navigator)}getIdentifier(){const t=`${this.prefix}-DeviceID`;if(!(typeof globalThis.crypto<"u"&&globalThis.crypto.getRandomValues))return this.logger.warn("Cannot generate profile ID. Crypto and/or getRandomValues is not supported."),"";if(!localStorage)return this.logger.warn("Cannot store profile ID. localStorage is not supported."),"";let n=localStorage.getItem(t);return n||(n=globalThis.crypto.getRandomValues(new Uint32Array(3)).join("-"),localStorage.setItem(t,n)),n}getInstalledFonts(){if(typeof document>"u")return this.logger.warn("Cannot collect font data. Global document object is undefined."),"";const t=document.createElement("canvas");if(!t)return this.logger.warn("Cannot collect font data. Browser does not support canvas element"),"";const n=t.getContext&&t.getContext("2d");if(!n)return this.logger.warn("Cannot collect font data. Browser does not support 2d canvas context"),"";const r="abcdefghi0123456789";n.font="72px Comic Sans";const i=n.measureText(r).width;return this.config.fontNames.reduce((d,g)=>(n.font=`72px ${g}, Comic Sans`,n.measureText(r).width!==i&&(d=`${d}${g};`),d),"")}async getLocationCoordinates(){return typeof navigator<"u"&&navigator.geolocation?new Promise(t=>{navigator.geolocation.getCurrentPosition(n=>t({latitude:n.coords.latitude,longitude:n.coords.longitude}),()=>{this.logger.warn("Cannot collect geolocation information. Geolocation API error."),t({})},{enableHighAccuracy:!0,timeout:eO,maximumAge:0})}):(this.logger.warn("Cannot collect geolocation information. navigator.geolocation is not defined."),Promise.resolve({}))}getOSMeta(){return typeof navigator>"u"?(this.logger.warn("Cannot collect OS metadata. navigator is not defined."),{}):gc(this.config.platformProps,navigator)}getTimezoneOffset(){try{return new Date().getTimezoneOffset()}catch{return this.logger.warn("Cannot collect timezone information. getTimezoneOffset is not defined."),null}}async getProfile({location:t,metadata:n}){const r={identifier:this.getIdentifier()};return n&&(r.metadata={hardware:{...this.getHardwareMeta(),display:this.getDisplayMeta()},browser:{...this.getBrowserMeta(),plugins:this.getBrowserPluginsNames()},platform:{...this.getOSMeta(),deviceName:this.getDeviceName(),fonts:this.getInstalledFonts(),timezone:this.getTimezoneOffset()}}),t&&(r.location=await this.getLocationCoordinates()),r}}var oO=ke("<p><!></p>");function ja(e,t){if(new.target)return We({component:ja,...e});Ve(t,!1);let n=V(t,"classes",12,"");var r={get classes(){return n()},set classes(d){n(d),B()},$set:Ke,$on:(d,g)=>Ge(t,d,g)},i=oO(),l=de(i);return Nt(l,t,"default",{},null),ce(i),Te(()=>Ct(i,1,`${n()} tw_text-base tw_text-secondary-dark dark:tw_text-secondary-light tw_input-spacing`)),Q(e,i),He(r)}var lO=ke('<div class="tw_text-center tw_w-full tw_py-4"><!> <!></div>');function Uy(e,t){if(new.target)return We({component:Uy,...e});Ve(t,!1);let n=V(t,"callback",12),r=V(t,"callbackMetadata",12,null),i=V(t,"stepMetadata",12,null),l=V(t,"selfSubmitFunction",12);const d=new aO({});let g=n().getMessage();async function p(){var u,f;const y=((u=n())==null?void 0:u.isLocationRequired())??!1,b=((f=n())==null?void 0:f.isMetadataRequired())??!1,c=await d.getProfile({location:y,metadata:b});return n().setProfile(c),r()&&r(r().derived.isReadyForSubmission=!0,!0),l()&&l()()}p();var _={get callback(){return n()},set callback(y){n(y),B()},get callbackMetadata(){return r()},set callbackMetadata(y){r(y),B()},get stepMetadata(){return i()},set stepMetadata(y){i(y),B()},get selfSubmitFunction(){return l()},set selfSubmitFunction(y){l(y),B()},$set:Ke,$on:(y,b)=>Ge(t,y,b)};dt();var S=mt(),k=qe(S);{var h=y=>{var b=lO(),c=de(b);pr(c,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"});var u=pe(c,2);ja(u,{children:(f,a)=>{Gt();var o=Vt();Te(()=>vt(o,g)),Q(f,o)},$$slots:{default:!0}}),ce(b),Q(y,b)};Ze(k,y=>{W(i()),Z(()=>{var b;return((b=i())==null?void 0:b.derived.numOfCallbacks)===1})&&y(h)})}return Q(e,S),He(_)}function Fy(e,t){if(new.target)return We({component:Fy,...e});Ve(t,!1);const n=null,r=null,i=null,l=null,d={};var g={callback:n,callbackMetadata:r,selfSubmitFunction:i,stepMetadata:l,style:d,$set:Ke,$on:(p,_)=>Ge(t,p,_)};return lt(t,"callback",n),lt(t,"callbackMetadata",r),lt(t,"selfSubmitFunction",i),lt(t,"stepMetadata",l),lt(t,"style",d),He(g)}var cO=ke('<input type="date"/>'),uO=ke('<input type="email"/>'),dO=ke('<input type="number"/>'),fO=ke('<input type="password"/>'),hO=ke('<input type="phone"/>'),gO=ke('<input type="text"/>'),pO=ke("<!> <!> <!> <!> <!> <!> <!> <!>",1);function Vf(e,t){if(new.target)return We({component:Vf,...e});Ve(t,!1);let n=V(t,"autocomplete",12,void 0),r=V(t,"forceValidityFailure",12,!1),i=V(t,"isFirstInvalidInput",12),l=V(t,"inputClasses",12,""),d=V(t,"key",12),g=V(t,"label",12),p=V(t,"labelClasses",12,""),_=V(t,"labelOrder",12,"first"),S=V(t,"onChange",12),k=V(t,"placeholder",12," "),h=V(t,"isRequired",12,!1),y=V(t,"isInvalid",12,null),b=V(t,"type",12,"text"),c=V(t,"value",12,""),u=re();Hn(()=>{i()&&C(u).focus()});var f={get autocomplete(){return n()},set autocomplete(R){n(R),B()},get forceValidityFailure(){return r()},set forceValidityFailure(R){r(R),B()},get isFirstInvalidInput(){return i()},set isFirstInvalidInput(R){i(R),B()},get inputClasses(){return l()},set inputClasses(R){l(R),B()},get key(){return d()},set key(R){d(R),B()},get label(){return g()},set label(R){g(R),B()},get labelClasses(){return p()},set labelClasses(R){p(R),B()},get labelOrder(){return _()},set labelOrder(R){_(R),B()},get onChange(){return S()},set onChange(R){S(R),B()},get placeholder(){return k()},set placeholder(R){k(R),B()},get isRequired(){return h()},set isRequired(R){h(R),B()},get isInvalid(){return y()},set isInvalid(R){y(R),B()},get type(){return b()},set type(R){b(R),B()},get value(){return c()},set value(R){c(R),B()},$set:Ke,$on:(R,U)=>Ge(t,R,U)};dt();var a=pO(),o=qe(a);{var s=R=>{{let U=me(()=>`${p()} tw_w-full tw_ml-1`);Fi(R,{get key(){return d()},get classes(){return C(U)},children:(z,G)=>{Gt();var J=Vt();Te(()=>vt(J,g())),Q(z,J)},$$slots:{default:!0}})}};Ze(o,R=>{_()==="first"&&R(s)})}var m=pe(o,2);{var v=R=>{var U=cO();Hr(U),an(U,z=>Y(u,z),()=>C(u)),Te(()=>{we(U,"aria-describedby",`${d()}-message`),we(U,"aria-invalid",y()),we(U,"autocomplete",n()),Ct(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),we(U,"data-force-validity-failure",r()),we(U,"id",d()),we(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...z){var G;(G=S())==null||G.apply(this,z)}),Ca(U,c),Q(R,U)};Ze(m,R=>{b()==="date"&&R(v)})}var w=pe(m,2);{var A=R=>{var U=uO();Hr(U),an(U,z=>Y(u,z),()=>C(u)),Te(()=>{we(U,"aria-describedby",`${d()}-message`),we(U,"aria-invalid",y()),we(U,"autocomplete",n()),Ct(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),we(U,"data-force-validity-failure",r()),we(U,"id",d()),we(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...z){var G;(G=S())==null||G.apply(this,z)}),Ca(U,c),Q(R,U)};Ze(w,R=>{b()==="email"&&R(A)})}var E=pe(w,2);{var O=R=>{var U=dO();Hr(U),an(U,z=>Y(u,z),()=>C(u)),Te(()=>{we(U,"aria-describedby",`${d()}-message`),we(U,"aria-invalid",y()),we(U,"autocomplete",n()),Ct(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),we(U,"data-force-validity-failure",r()),we(U,"id",d()),we(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...z){var G;(G=S())==null||G.apply(this,z)}),Ca(U,c),Q(R,U)};Ze(E,R=>{b()==="number"&&R(O)})}var T=pe(E,2);{var L=R=>{var U=fO();Hr(U),an(U,z=>Y(u,z),()=>C(u)),Te(()=>{we(U,"aria-describedby",`${d()}-message`),we(U,"aria-invalid",y()),we(U,"autocomplete",n()),Ct(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),we(U,"data-force-validity-failure",r()),we(U,"id",d()),we(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...z){var G;(G=S())==null||G.apply(this,z)}),Ca(U,c),Q(R,U)};Ze(T,R=>{b()==="password"&&R(L)})}var P=pe(T,2);{var N=R=>{var U=hO();Hr(U),an(U,z=>Y(u,z),()=>C(u)),Te(()=>{we(U,"aria-describedby",`${d()}-message`),we(U,"aria-invalid",y()),we(U,"autocomplete",n()),Ct(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),we(U,"data-force-validity-failure",r()),we(U,"id",d()),we(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...z){var G;(G=S())==null||G.apply(this,z)}),Ca(U,c),Q(R,U)};Ze(P,R=>{b()==="phone"&&R(N)})}var I=pe(P,2);{var D=R=>{var U=gO();Hr(U),an(U,z=>Y(u,z),()=>C(u)),Te(()=>{we(U,"aria-describedby",`${d()}-message`),we(U,"aria-invalid",y()),we(U,"autocomplete",n()),Ct(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),we(U,"data-force-validity-failure",r()),we(U,"id",d()),we(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...z){var G;(G=S())==null||G.apply(this,z)}),Ca(U,c),Q(R,U)};Ze(I,R=>{b()==="text"&&R(D)})}var F=pe(I,2);{var H=R=>{{let U=me(()=>`${p()}`);Fi(R,{get key(){return d()},get classes(){return C(U)},children:(z,G)=>{Gt();var J=Vt();Te(()=>vt(J,g())),Q(z,J)},$$slots:{default:!0}})}};Ze(F,R=>{_()==="last"&&R(H)})}return Q(e,a),He(f)}var mO=ke('<div class="tw_justify-items-stretch tw_flex tw_input-spacing tw_relative tw_flex-wrap"><!> <!> <div class="tw_w-full"><!> <!></div></div>');function zi(e,t){if(new.target)return We({component:zi,...e});Ve(t,!1);let n=V(t,"autocomplete",12,void 0),r=V(t,"checkValidity",12,null),i=V(t,"forceValidityFailure",12,!1),l=V(t,"message",12,""),d=V(t,"isFirstInvalidInput",12),g=V(t,"hasRightIcon",12,!1),p=V(t,"isRequired",12,!1),_=V(t,"isInvalid",12,!1),S=V(t,"key",12),k=V(t,"label",12),h=V(t,"onChange",12),y=V(t,"showMessage",12,void 0),b=V(t,"type",12,"text"),c=V(t,"value",12,"");function u(A){r()&&_(!r()(A)),h()(A)}var f={get autocomplete(){return n()},set autocomplete(A){n(A),B()},get checkValidity(){return r()},set checkValidity(A){r(A),B()},get forceValidityFailure(){return i()},set forceValidityFailure(A){i(A),B()},get message(){return l()},set message(A){l(A),B()},get isFirstInvalidInput(){return d()},set isFirstInvalidInput(A){d(A),B()},get hasRightIcon(){return g()},set hasRightIcon(A){g(A),B()},get isRequired(){return p()},set isRequired(A){p(A),B()},get isInvalid(){return _()},set isInvalid(A){_(A),B()},get key(){return S()},set key(A){S(A),B()},get label(){return k()},set label(A){k(A),B()},get onChange(){return h()},set onChange(A){h(A),B()},get showMessage(){return y()},set showMessage(A){y(A),B()},get type(){return b()},set type(A){b(A),B()},get value(){return c()},set value(A){c(A),B()},$set:Ke,$on:(A,E)=>Ge(t,A,E)};dt();var a=mO(),o=de(a);{let A=me(()=>`tw_input-floating dark:tw_input-floating_dark ${g()?"!tw_border-r-0 !tw_rounded-r-none tw_input-has-button":""}`);Vf(o,{get autocomplete(){return n()},get forceValidityFailure(){return i()},get isFirstInvalidInput(){return d()},get inputClasses(){return C(A)},get key(){return S()},onChange:u,get label(){return k()},labelClasses:"tw_absolute tw_border tw_border-transparent tw_input-floating-label",labelOrder:"last",get isRequired(){return p()},get isInvalid(){return _()},get type(){return b()},get value(){return c()},set value(E){c(E)},$$legacy:!0})}var s=pe(o,2);Nt(s,t,"input-button",{},null);var m=pe(s,2),v=de(m);{let A=me(()=>_()?"error":"info");Bi(v,{get dirtyMessage(){return l()},get showMessage(){return y()},get type(){return C(A)}})}var w=pe(v,2);return Nt(w,t,"default",{},null),ce(m),ce(a),Te(()=>we(m,"id",`${S()}-message`)),Q(e,a),He(f)}var vO=ke('<div class="tw_input-spacing tw_flex tw_flex-wrap"><!> <!> <div class="tw_w-full"><!> <!></div></div>');function ks(e,t){if(new.target)return We({component:ks,...e});Ve(t,!1);let n=V(t,"autocomplete",12,void 0),r=V(t,"checkValidity",12,null),i=V(t,"forceValidityFailure",12,!1),l=V(t,"isFirstInvalidInput",12),d=V(t,"hasRightIcon",12,!1),g=V(t,"message",12,""),p=V(t,"isRequired",12,!1),_=V(t,"isInvalid",12,!1),S=V(t,"key",12),k=V(t,"label",12),h=V(t,"onChange",12),y=V(t,"placeholder",12,void 0),b=V(t,"showMessage",12,void 0),c=V(t,"type",12,"text"),u=V(t,"value",12,"");function f(E){r()&&_(!r()(E)),h()(E)}var a={get autocomplete(){return n()},set autocomplete(E){n(E),B()},get checkValidity(){return r()},set checkValidity(E){r(E),B()},get forceValidityFailure(){return i()},set forceValidityFailure(E){i(E),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(E){l(E),B()},get hasRightIcon(){return d()},set hasRightIcon(E){d(E),B()},get message(){return g()},set message(E){g(E),B()},get isRequired(){return p()},set isRequired(E){p(E),B()},get isInvalid(){return _()},set isInvalid(E){_(E),B()},get key(){return S()},set key(E){S(E),B()},get label(){return k()},set label(E){k(E),B()},get onChange(){return h()},set onChange(E){h(E),B()},get placeholder(){return y()},set placeholder(E){y(E),B()},get showMessage(){return b()},set showMessage(E){b(E),B()},get type(){return c()},set type(E){c(E),B()},get value(){return u()},set value(E){u(E),B()},$set:Ke,$on:(E,O)=>Ge(t,E,O)};dt();var o=vO(),s=de(o);{let E=me(()=>`${d()?"!tw_border-r-0 !tw_rounded-r-none":""}`);Vf(s,{get autocomplete(){return n()},get forceValidityFailure(){return i()},get isFirstInvalidInput(){return l()},get inputClasses(){return C(E)},get key(){return S()},onChange:f,get label(){return k()},labelClasses:"tw_input-stacked-label",labelOrder:"first",get placeholder(){return y()},get isRequired(){return p()},get isInvalid(){return _()},get type(){return c()},get value(){return u()},set value(O){u(O)},$$legacy:!0})}var m=pe(s,2);Nt(m,t,"input-button",{},null);var v=pe(m,2),w=de(v);{let E=me(()=>_()?"error":"info");Bi(w,{get key(){return S()},get dirtyMessage(){return g()},get showMessage(){return b()},get type(){return C(E)}})}var A=pe(w,2);return Nt(A,t,"default",{},null),ce(v),ce(o),Te(()=>we(v,"id",`${S()}-message`)),Q(e,o),He(a)}var yO=_n('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"></path><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path><title><!></title></svg>');function By(e,t){if(new.target)return We({component:By,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>Ge(t,p,_)},l=yO(),d=pe(de(l),2),g=de(d);return Nt(g,t,"default",{},null),ce(d),ce(l),Te(()=>{Ct(l,0,wn(n())),we(l,"height",r()),we(l,"width",r())}),Q(e,l),He(i)}var _O=ke('<fieldset class="tw_kba-fieldset tw_input-spacing dark:tw_kba-fieldset_dark"><legend class="tw_sr-only"><!></legend> <h2 class="dark:tw_secondary-header_dark tw_font-semibold tw_mb-4"><!></h2> <span class="tw_kba-lock-icon dark:tw_kba-lock-icon_dark"><!></span> <!> <!> <!></fieldset>');function zy(e,t){if(new.target)return We({component:zy,...e});Ve(t,!1);const n=()=>or(m,"$value",r),[r,i]=Pr(),l=null,d=null;let g=V(t,"callback",12),p=V(t,"callbackMetadata",12),_=V(t,"style",28,()=>({}));const S=_().labels==="stacked"?ks:zi,k=_().labels==="stacked"?zf:au;let h=re(null),y=re(!1),b=re(),c=re(),u=re(),f=re(),a=re(),o=re(),s=re(),m=lr("");try{Y(s,g().getOutputValue("allowUserDefinedQuestions"))}catch{console.error("`allowUserDefinedQuestions` property is missing in callback `KbaCreateCallback`")}function v(G){g().setAnswer(G.target.value)}function w(G){const J=G.target.value;J===C(h)?(Y(y,!0),m.set(""),g().setAnswer("")):(Y(y,!1),g().setQuestion(J))}function A(G){const J=G.target.value;g().setQuestion(J)}yt(()=>(C(b),W(g()),C(c),W(p()),C(a),C(o),C(s),C(h),Ee),()=>{var G,J,$,ne,ae,te,ie;Y(b,(J=(G=g())==null?void 0:G.payload)==null?void 0:J.input),Y(c,((ae=(ne=($=g())==null?void 0:$.payload)==null?void 0:ne.input)==null?void 0:ae[0].name)||`kba-${(te=p())==null?void 0:te.idx}`),Y(u,C(c)),Y(f,Array.isArray(C(b))&&C(b)[1].name),Y(a,g().getPrompt()),Y(o,(ie=g().getPredefinedQuestions())==null?void 0:ie.map((Se,_e)=>({text:Se,value:`${_e}`})));try{Y(s,g().getOutputValue("allowUserDefinedQuestions"))}catch{console.error("`allowUserDefinedQuestions` property is missing in callback `KbaCreateCallback`")}C(o).unshift({text:C(a),value:""}),C(s)&&(Y(h,`${C(o).length-1}`),C(o).push({text:Ee("provideCustomQuestion"),value:C(h)}))}),Ot();var E={selfSubmitFunction:l,stepMetadata:d,get callback(){return g()},set callback(G){g(G),B()},get callbackMetadata(){return p()},set callbackMetadata(G){p(G),B()},get style(){return _()},set style(G){_(G),B()},$set:Ke,$on:(G,J)=>Ge(t,G,J)};dt();var O=_O(),T=de(O),L=de(T);ut(L,{key:"securityQuestions"}),ce(T);var P=pe(T,2),N=de(P);ut(N,{key:"securityQuestionsPrompt"}),ce(P);var I=pe(P,2),D=de(I);By(D,{size:"18"}),ce(I);var F=pe(I,2);k(F,{isFirstInvalidInput:!1,isRequired:!0,get key(){return C(u)},get label(){return C(a)},onChange:w,get options(){return C(o)}});var H=pe(F,2);{var R=G=>{{let J=me(()=>(W(p()),Z(()=>{var ae;return`kba-custom-question-${(ae=p())==null?void 0:ae.idx}`}))),$=me(()=>(W(Ee),Z(()=>Ee("customSecurityQuestion")))),ne=me(()=>(W(Ee),Z(()=>Ee("inputRequiredError"))));S(G,{isFirstInvalidInput:!1,isRequired:!0,get key(){return C(J)},get label(){return C($)},showMessage:!1,get message(){return C(ne)},onChange:A,type:"text"})}};Ze(H,G=>{C(y)&&G(R)})}var U=pe(H,2);{let G=me(()=>(W(p()),Z(()=>{var ae;return((ae=p())==null?void 0:ae.derived.isFirstInvalidInput)||!1}))),J=me(()=>(C(f),W(p()),Z(()=>{var ae;return C(f)||`kba-answer-${(ae=p())==null?void 0:ae.idx}`}))),$=me(()=>(W(Ee),Z(()=>Ee("securityAnswer")))),ne=me(()=>(W(Ee),Z(()=>Ee("inputRequiredError"))));S(U,{get isFirstInvalidInput(){return C(G)},isRequired:!0,get key(){return C(J)},get label(){return C($)},showMessage:!1,get message(){return C(ne)},onChange:v,type:"text",get value(){return Ww(),n()},set value(ae){qw(m,ae)},$$legacy:!0})}ce(O),Q(e,O),lt(t,"selfSubmitFunction",l),lt(t,"stepMetadata",d);var z=He(E);return i(),z}function Vy(e,t){if(new.target)return We({component:Vy,...e});Ve(t,!1);const n=null,r=null,i=null,l=null,d={};var g={callback:n,callbackMetadata:r,selfSubmitFunction:i,stepMetadata:l,style:d,$set:Ke,$on:(p,_)=>Ge(t,p,_)};return lt(t,"callback",n),lt(t,"callbackMetadata",r),lt(t,"selfSubmitFunction",i),lt(t,"stepMetadata",l),lt(t,"style",d),He(g)}var wO=_n('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"></path><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"></path><title><!></title></svg>'),bO=_n('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z" fill="none"></path><path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"></path><title><!></title></svg>');function Hf(e,t){if(new.target)return We({component:Hf,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px"),i=V(t,"visible",12,!1);var l={get classes(){return n()},set classes(S){n(S),B()},get size(){return r()},set size(S){r(S),B()},get visible(){return i()},set visible(S){i(S),B()},$set:Ke,$on:(S,k)=>Ge(t,S,k)},d=mt(),g=qe(d);{var p=S=>{var k=wO(),h=pe(de(k),2),y=de(h);Nt(y,t,"default",{},null),ce(h),ce(k),Te(()=>{Ct(k,0,wn(n())),we(k,"height",r()),we(k,"width",r())}),Q(S,k)},_=S=>{var k=bO(),h=pe(de(k),2),y=de(h);Nt(y,t,"default",{},null),ce(h),ce(k),Te(()=>{Ct(k,0,wn(n())),we(k,"height",r()),we(k,"width",r())}),Q(S,k)};Ze(g,S=>{i()?S(_,-1):S(p)})}return Q(e,d),He(l)}var SO=ke('<button class="tw_password-button dark:tw_password-button_dark tw_focusable-element tw_input-base dark:tw_input-base_dark" type="button"><!></button>'),EO=ke('<div class="tw_w-full tw_input-spacing"><!></div>'),kO=ke("<!> <!>",1);function Hy(e,t){if(new.target)return We({component:Hy,...e});Ve(t,!1);let n=V(t,"forceValidityFailure",12,!1),r=V(t,"passwordsDoNotMatch",12,!1),i=V(t,"isRequired",12,!1),l=V(t,"key",12),d=V(t,"onChange",12),g=V(t,"resetValue",12),p=V(t,"style",28,()=>({})),_=V(t,"isFirstInvalidInput",12);const S=p().labels==="stacked"?ks:zi,k=p().showPassword;let h=V(t,"showMessage",12,void 0),y=re(!1),b=re("password"),c=re(),u=re("");function f(A){var E;Y(c,(E=A.target)==null?void 0:E.value),d()(typeof C(c)=="string"?C(c):void 0)}function a(){Y(y,!C(y)),Y(b,C(y)?"text":"password")}yt(()=>(W(g()),C(c),W(d()),W(r()),W(i())),()=>{g()&&(Y(c,void 0),d()(C(c))),r()?Y(u,Ee("passwordConfirmationError",null,"Passwords do not match")):i()?Y(u,Ee("requiredField",null,"This field is required")):Y(u,"")}),Ot();var o={get forceValidityFailure(){return n()},set forceValidityFailure(A){n(A),B()},get passwordsDoNotMatch(){return r()},set passwordsDoNotMatch(A){r(A),B()},get isRequired(){return i()},set isRequired(A){i(A),B()},get key(){return l()},set key(A){l(A),B()},get onChange(){return d()},set onChange(A){d(A),B()},get resetValue(){return g()},set resetValue(A){g(A),B()},get style(){return p()},set style(A){p(A),B()},get isFirstInvalidInput(){return _()},set isFirstInvalidInput(A){_(A),B()},get showMessage(){return h()},set showMessage(A){h(A),B()},$set:Ke,$on:(A,E)=>Ge(t,A,E)};dt();var s=kO(),m=qe(s);{let A=me(()=>(W(p()),Z(()=>p().showPassword==="button"))),E=me(()=>`${l()}-confirm`),O=me(()=>(W(Ee),Z(()=>Ee("confirmPassword",null,"Confirm Password")))),T=me(()=>typeof C(c)=="string"?C(c):"");S(m,{get forceValidityFailure(){return n()},isFirstInvalidInput:!1,get hasRightIcon(){return C(A)},get key(){return C(E)},get label(){return C(O)},get message(){return C(u)},onChange:f,get isInvalid(){return r()},get isRequired(){return i()},get showMessage(){return h()},get type(){return C(b)},get value(){return C(T)},children:(L,P)=>{var N=mt(),I=qe(N);Nt(I,t,"default",{},null),Q(L,N)},$$slots:{"input-button":(L,P)=>{var N=mt(),I=qe(N);{var D=F=>{var H=SO(),R=de(H);Hf(R,{classes:"tw_password-icon dark:tw_password-icon_dark",get visible(){return C(y)},children:(U,z)=>{ut(U,{key:"showPassword"})},$$slots:{default:!0}}),ce(H),mn("click",H,a),Q(F,H)};Ze(I,F=>{k==="button"&&F(D)})}Q(L,N)},default:!0}})}var v=pe(m,2);{var w=A=>{var E=EO(),O=de(E);{let T=me(()=>(W(l()),W(p()),Z(()=>l()+p().showPassword)));iu(O,{get isFirstInvalidInput(){return _()},isInvalid:!1,get key(){return C(T)},onChange:a,value:!1,children:(L,P)=>{Gt();var N=Vt("Show Password");Q(L,N)},$$slots:{default:!0}})}ce(E),Q(A,E)};Ze(v,A=>{k==="checkbox"&&A(w)})}return Q(e,s),He(o)}var CO=ke('<button class="tw_password-button dark:tw_password-button_dark tw_focusable-element tw_input-base dark:tw_input-base_dark" type="button"><!></button>'),IO=ke('<div class="tw_w-full tw_input-spacing"><!></div>'),AO=ke("<!> <!> <!>",1);function jf(e,t){if(new.target)return We({component:jf,...e});Ve(t,!1);let n=V(t,"callback",12),r=V(t,"callbackMetadata",12),i=V(t,"key",12),l=V(t,"isInvalid",12,!1),d=V(t,"isRequired",12,!1),g=V(t,"style",28,()=>({}));const p=g().labels==="stacked"?ks:zi,_=g().showPassword;let S=V(t,"showMessage",12,void 0),k=V(t,"validationFailure",12,""),h=re(),y=re(),b=re(),c=re(!1),u=re(!1),f=re(""),a=re(),o=re("password"),s=re();function m(T){Y(h,T)}function v(T){Y(s,T.target.value),n().setInputValue(C(s)),Y(f,String(C(s)))}function w(){Y(c,!C(c)),Y(o,C(c)?"text":"password")}yt(()=>(W(n()),W(r()),C(s),C(f),C(h)),()=>{var T,L,P,N,I;Y(y,n().getType()),i(((P=(L=(T=n())==null?void 0:T.payload)==null?void 0:L.input)==null?void 0:P[0].name)||`password-${(N=r())==null?void 0:N.idx}`),Y(a,n().getPrompt()),Y(s,(I=n())==null?void 0:I.getInputValue()),Y(u,!!C(f)&&C(s)===""),Y(b,C(h)!==void 0?C(h)===C(s):void 0)}),Ot();var A={get callback(){return n()},set callback(T){n(T),B()},get callbackMetadata(){return r()},set callbackMetadata(T){r(T),B()},get key(){return i()},set key(T){i(T),B()},get isInvalid(){return l()},set isInvalid(T){l(T),B()},get isRequired(){return d()},set isRequired(T){d(T),B()},get style(){return g()},set style(T){g(T),B()},get showMessage(){return S()},set showMessage(T){S(T),B()},get validationFailure(){return k()},set validationFailure(T){k(T),B()},$set:Ke,$on:(T,L)=>Ge(t,T,L)};dt();var E=mt(),O=qe(E);return Ws(O,n,T=>{var L=AO(),P=qe(L);{let H=me(()=>(W(r()),Z(()=>{var J;return((J=r())==null?void 0:J.derived.isFirstInvalidInput)||!1}))),R=me(()=>(W(g()),Z(()=>g().showPassword==="button"))),U=me(()=>(W(Ee),W(hr),C(y),C(a),Z(()=>Ee(hr(C(y)),null,C(a))))),z=me(()=>(W(k()),W(d()),W(Ee),Z(()=>k()||(d()?Ee("inputRequiredError"):void 0)))),G=me(()=>typeof C(s)=="string"?C(s):"");p(P,{get isFirstInvalidInput(){return C(H)},get hasRightIcon(){return C(R)},get key(){return i()},get label(){return C(U)},get message(){return C(z)},onChange:v,get isInvalid(){return l()},get isRequired(){return d()},get showMessage(){return S()},get type(){return C(o)},get value(){return C(G)},children:(J,$)=>{var ne=mt(),ae=qe(ne);Nt(ae,t,"default",{},null),Q(J,ne)},$$slots:{default:!0,"input-button":(J,$)=>{var ne=mt(),ae=qe(ne);{var te=ie=>{var Se=CO(),_e=de(Se);Hf(_e,{classes:"tw_password-icon dark:tw_password-icon_dark",get visible(){return C(c)},children:(xe,et)=>{ut(xe,{key:"showPassword"})},$$slots:{default:!0}}),ce(Se),mn("click",Se,w),Q(ie,Se)};Ze(ae,ie=>{_==="button"&&ie(te)})}Q(J,ne)}}})}var N=pe(P,2);{var I=H=>{var R=IO(),U=de(R);{let z=me(()=>(W(r()),Z(()=>{var J;return((J=r())==null?void 0:J.derived.isFirstInvalidInput)||!1}))),G=me(()=>(W(i()),W(g()),Z(()=>i()+g().showPassword)));iu(U,{get isFirstInvalidInput(){return C(z)},isInvalid:!1,get key(){return C(G)},onChange:w,value:!1,children:(J,$)=>{Gt();var ne=Vt("Show Password");Q(J,ne)},$$slots:{default:!0}})}ce(R),Q(H,R)};Ze(N,H=>{_==="checkbox"&&H(I)})}var D=pe(N,2);{var F=H=>{{let R=me(()=>C(b)===!1),U=me(()=>C(b)===!1),z=me(()=>(C(s),Z(()=>C(s).length>0))),G=me(()=>C(b)===!1),J=me(()=>(W(r()),Z(()=>{var $;return(($=r())==null?void 0:$.derived.isFirstInvalidInput)||!1})));Hy(H,{get forceValidityFailure(){return C(R)},get passwordsDoNotMatch(){return C(U)},get key(){return i()},get isRequired(){return C(z)},onChange:m,get resetValue(){return C(u)},get showMessage(){return C(G)},get style(){return g()},get isFirstInvalidInput(){return C(J)}})}};Ze(D,H=>{W(r()),Z(()=>{var R,U;return(U=(R=r())==null?void 0:R.platform)==null?void 0:U.confirmPassword})&&H(F)})}Q(T,L)}),Q(e,E),He(A)}function jy(e,t){if(new.target)return We({component:jy,...e});Ve(t,!1);const n=null,r=null;let i=V(t,"callback",12),l=V(t,"callbackMetadata",12),d=V(t,"style",28,()=>({})),g=re();yt(()=>(W(i()),W(l())),()=>{var _,S,k,h;i(i()),Y(g,((k=(S=(_=i())==null?void 0:_.payload)==null?void 0:S.input)==null?void 0:k[0].name)||`password-${(h=l())==null?void 0:h.idx}`)}),Ot();var p={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(_){i(_),B()},get callbackMetadata(){return l()},set callbackMetadata(_){l(_),B()},get style(){return d()},set style(_){d(_),B()},$set:Ke,$on:(_,S)=>Ge(t,_,S)};return dt(),jf(e,{get callback(){return i()},get callbackMetadata(){return l()},get style(){return d()},get key(){return C(g)}}),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),He(p)}var TO=ke('<li class="tw_list-disc"> </li>'),OO=ke('<div class="tw_input-policies tw_w-full"><p class="tw_text-error-dark dark:tw_text-error-light tw_w-full"><!></p> <ul class="tw_text-error-dark dark:tw_text-error-light tw_w-full"></ul></div>'),PO=ke('<li class="tw_list-disc"> </li>'),RO=ke('<div class="tw_input-policies tw_w-full"><p class="tw_text-secondary-dark dark:tw_text-secondary-light tw_w-full"><!></p> <ul class="tw_text-secondary-dark dark:tw_text-secondary-light tw_w-full"></ul></div>');function lu(e,t){if(new.target)return We({component:lu,...e});Ve(t,!1);let n=V(t,"callback",12),r=V(t,"key",12,void 0),i=V(t,"label",12),l=V(t,"messageKey",12),d=V(t,"showPolicies",12,!1),g=re(Es(n(),i())),p=re(Uf(n().getPolicies())),_=re(C(g).reduce((c,u)=>(c=c.concat(u.restructured),c),[]));yt(()=>(C(g),W(n()),W(i()),Uf),()=>{Y(g,Es(n(),i())),Y(p,Uf(n().getPolicies())),Y(_,C(g).reduce((c,u)=>(c=c.concat(u.restructured),c),[]))}),Ot();var S={get callback(){return n()},set callback(c){n(c),B()},get key(){return r()},set key(c){r(c),B()},get label(){return i()},set label(c){i(c),B()},get messageKey(){return l()},set messageKey(c){l(c),B()},get showPolicies(){return d()},set showPolicies(c){d(c),B()},$set:Ke,$on:(c,u)=>Ge(t,c,u)};dt();var k=mt(),h=qe(k);{var y=c=>{var u=OO(),f=de(u),a=de(f);ut(a,{get key(){return l()}}),ce(f);var o=pe(f,2);Qn(o,5,()=>C(_),Xn,(s,m)=>{var v=TO(),w=de(v,!0);ce(v),Te(()=>vt(w,(C(m),Z(()=>C(m).message)))),Q(s,v)}),ce(o),ce(u),Te(()=>we(u,"id",`${r()?`${r()}-message`:""}`)),Q(c,u)},b=c=>{var u=RO(),f=de(u),a=de(f);ut(a,{get key(){return l()}}),ce(f);var o=pe(f,2);Qn(o,5,()=>C(p),Xn,(s,m)=>{var v=PO(),w=de(v,!0);ce(v),Te(()=>vt(w,(C(m),Z(()=>C(m).message)))),Q(s,v)}),ce(o),ce(u),Te(()=>we(u,"id",`${r()?`${r()}-message`:""}`)),Q(c,u)};Ze(h,c=>{C(_),Z(()=>C(_).length)?c(y):(W(d()),C(p),Z(()=>d()&&C(p).length)&&c(b,1))})}return Q(e,k),He(S)}function qy(e,t){if(new.target)return We({component:qy,...e});Ve(t,!1);const n=null,r=null;let i=V(t,"callback",12),l=V(t,"callbackMetadata",12),d=V(t,"style",28,()=>({}));const g=Ff(i());let p=re(),_=re(),S=re(),k=re();yt(()=>(W(i()),W(l()),C(S),C(k),Es),()=>{var c,u,f,a;Y(p,((f=(u=(c=i())==null?void 0:c.payload)==null?void 0:u.input)==null?void 0:f[0].name)||`password-${(a=l())==null?void 0:a.idx}`),Y(S,i().getPrompt()),Y(k,Es(i(),C(S))),Y(_,!!C(k).length)}),Ot();var h={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(c){i(c),B()},get callbackMetadata(){return l()},set callbackMetadata(c){l(c),B()},get style(){return d()},set style(c){d(c),B()},$set:Ke,$on:(c,u)=>Ge(t,c,u)};dt();var y=mt(),b=qe(y);return Ws(b,i,c=>{jf(c,{get callback(){return i()},get callbackMetadata(){return l()},get isInvalid(){return C(_)},get isRequired(){return g},get key(){return C(p)},get showMessage(){return C(_)},get style(){return d()},children:(u,f)=>{lu(u,{get callback(){return i()},get label(){return C(S)},messageKey:"passwordRequirements",showPolicies:!0})},$$slots:{default:!0}})}),Q(e,y),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),He(h)}var MO=ke("<p><!></p>"),LO=ke('<div class="tw_text-center tw_w-full tw_py-4"><!></div>');function Wy(e,t){if(new.target)return We({component:Wy,...e});Ve(t,!1);let n=V(t,"callback",12),r=V(t,"selfSubmitFunction",12,null),i=V(t,"pingProtect",28,()=>({envId:""})),l=re(!1);jr(()=>{async function _(){const S=await _s.getData();return S&&typeof S=="object"&&"error"in S?n().setClientError(S.error):n().setData(S),r()&&r()()}_()}),yt(()=>(C(l),W(i()),W(n())),()=>{var _;if(Y(l,((_=i())==null?void 0:_.behavioralDataCollection)??!1),typeof window<"u")if(C(l)===!0){const S=_s.pauseBehavioralData();S&&"error"in S&&n().setClientError(S.error)}else{const S=_s.resumeBehavioralData();S&&"error"in S&&n().setClientError(S.error)}}),Ot();var d={get callback(){return n()},set callback(_){n(_),B()},get selfSubmitFunction(){return r()},set selfSubmitFunction(_){r(_),B()},get pingProtect(){return i()},set pingProtect(_){i(_),B()},$set:Ke,$on:(_,S)=>Ge(t,_,S)};dt();var g=LO(),p=de(g);return pr(p,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24",children:(_,S)=>{var k=MO(),h=de(k);ut(h,{key:"signalsEvaluation"}),ce(k),Q(_,k)},$$slots:{default:!0}}),ce(g),Q(e,g),He(d)}var DO=ke("<div><!></div>");function Gy(e,t){if(new.target)return We({component:Gy,...e});Ve(t,!1);const n={},r=null;let i=V(t,"callback",12),l=V(t,"selfSubmitFunction",12,null),d=re(!1);jr(()=>{async function k(){const h=i().getConfig(),y=await _s.start(h);return y&&"error"in y?i().setClientError(y.error):Y(d,!0),l()&&l()()}k()});var g={style:n,stepMetadata:r,get callback(){return i()},set callback(k){i(k),B()},get selfSubmitFunction(){return l()},set selfSubmitFunction(k){l(k),B()},$set:Ke,$on:(k,h)=>Ge(t,k,h)};dt();var p=DO(),_=de(p);{var S=k=>{pr(k,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"})};Ze(_,k=>{C(d)||k(S)})}return ce(p),Q(e,p),lt(t,"style",n),lt(t,"stepMetadata",r),He(g)}var xO=ke("<!> <span> </span>",1),NO=ke("<!> <!>",1),UO=ke('<div class="tw_text-center"><!></div>');function qf(e,t){if(new.target)return We({component:qf,...e});Ve(t,!1);const n={},r=null;let i=V(t,"callback",12),l=V(t,"callbackMetadata",12),d=V(t,"selfSubmitFunction",12,null),g=V(t,"options",12,null),p=re(),_=re();yt(()=>(W(i()),C(_),W(l()),W(d())),()=>{i(i()),Y(p,i().getMessage()),clearTimeout(C(_)),Y(_,setTimeout(()=>{l()&&l(l().derived.isReadyForSubmission=!0,!0),d()&&d()()},i().getWaitTime()))}),Ot();var S={style:n,stepMetadata:r,get callback(){return i()},set callback(c){i(c),B()},get callbackMetadata(){return l()},set callbackMetadata(c){l(c),B()},get selfSubmitFunction(){return d()},set selfSubmitFunction(c){d(c),B()},get options(){return g()},set options(c){g(c),B()},$set:Ke,$on:(c,u)=>Ge(t,c,u)};dt();var k=UO(),h=de(k);{var y=c=>{ja(c,{children:(u,f)=>{var a=xO(),o=qe(a);pr(o,{colorClass:"white",layoutClasses:"tw_h-4 tw_w-4 tw_mr-2"});var s=pe(o,2),m=de(s,!0);ce(s),Te(()=>vt(m,C(p))),Q(u,a)},$$slots:{default:!0}})},b=c=>{var u=NO(),f=qe(u);pr(f,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"});var a=pe(f,2);ja(a,{children:(o,s)=>{Gt();var m=Vt();Te(()=>vt(m,C(p))),Q(o,m)},$$slots:{default:!0}}),Q(c,u)};Ze(h,c=>{W(g()),Z(()=>{var u;return(u=g())==null?void 0:u.inline})?c(y):c(b,-1)})}return ce(k),Q(e,k),lt(t,"style",n),lt(t,"stepMetadata",r),He(S)}function Vi(){const e=window.grecaptcha;return(e==null?void 0:e.enterprise)??window.grecaptcha}function Ky({src:e,provider:t}){if(t==="hcaptcha"){if(window.hcaptcha)return Promise.resolve()}else{const r=Vi();if(r)return new Promise(i=>r.ready(()=>i()))}const n=document.querySelector(`script[src="${e}"]`);return n?new Promise((r,i)=>{let l=!1;const d=g=>{l||(l=!0,g())};if(n.addEventListener("load",()=>{if(t==="hcaptcha")d(r);else{const g=Vi();d(g?()=>g.ready(()=>r()):r)}},{once:!0}),n.addEventListener("error",()=>d(()=>i(new Error(`Failed to load CAPTCHA script: ${e}`))),{once:!0}),t==="hcaptcha")window.hcaptcha&&d(r);else{const g=Vi();g&&d(()=>g.ready(()=>r()))}}):new Promise((r,i)=>{const l=document.createElement("script");l.src=e,l.async=!0,l.onerror=()=>i(new Error(`Failed to load CAPTCHA script: ${e}`)),l.onload=()=>{if(t==="hcaptcha")r();else{const d=Vi();d?d.ready(()=>r()):r()}},document.head.appendChild(l)})}const $y=()=>window.hcaptcha;function Zy({nameOfCaptcha:e,siteKey:t,elementId:n="fr-recaptcha",onSuccess:r,onExpired:i,onError:l}){const d=$y();if(e==="hcaptcha"&&d)return d.render(n,{sitekey:t,callback:r,"expired-callback":i,"chalexpired-callback":i,"error-callback":l});const g=Vi();if(e==="grecaptcha"&&g)return g.render(n,{sitekey:t,callback:r,"expired-callback":i})}function Yy({nameOfCaptcha:e,siteKey:t,elementId:n,onSuccess:r,onExpired:i,onError:l}){const d=$y();if(e==="hcaptcha"&&d){d.render(n,{sitekey:t,size:"invisible",callback:r,"expired-callback":i,"chalexpired-callback":i,"error-callback":l}),d.execute();return}const g=Vi();e==="grecaptcha"&&g&&g.ready(function(){const p=g.render(n,{sitekey:t,size:"invisible",callback:r,"expired-callback":i,"error-callback":l});g.execute(p)})}var FO=ke('<div class="tw_hidden"></div> <!>',1),BO=ke("<div></div> <!>",1);function Jy(e,t){var O,T,L;if(new.target)return We({component:Jy,...e});Ve(t,!1);const n=re(),r=null,i=null,l={};let d=V(t,"callback",12),g=V(t,"callbackMetadata",12),p=re("");const _=((O=d())==null?void 0:O.getSiteKey())??"";let S=(T=d())==null?void 0:T.getOutputByName("reCaptchaV3",!1);const k=((L=d())==null?void 0:L.getOutputByName("captchaDivClass","h-captcha"))??"h-captcha",h=k==="g-recaptcha"?"grecaptcha":"hcaptcha",y={grecaptcha:"https://www.google.com/recaptcha/api.js",hcaptcha:"https://js.hcaptcha.com/1/api.js"},b={grecaptcha:"fr-recaptcha",hcaptcha:"fr-hcaptcha"},c=S?"grecaptcha":h,u=y[c],f=b[h];let a=re(!1),o=re("visible");jr(async()=>{if(!d())return;try{await Ky({src:u,provider:c}),Y(a,!0)}catch{Y(p,"captchaError");return}if(S)return;const P=N=>{var I;return(I=d())==null?void 0:I.setResult(N)};if(C(o)==="invisible"){const N=()=>{Y(p,"captchaError")};Yy({nameOfCaptcha:h,siteKey:_,elementId:f,onSuccess:P,onExpired:()=>{var D;(D=d())==null||D.setResult(""),Y(p,""),Yy({nameOfCaptcha:h,siteKey:_,elementId:f,onSuccess:P,onExpired:()=>{},onError:N})},onError:N})}else{const N=()=>{Y(p,"captchaError")};Zy({nameOfCaptcha:h,siteKey:_,elementId:f,onSuccess:P,onExpired:()=>{var D;(D=d())==null||D.setResult(""),Y(p,""),Zy({nameOfCaptcha:h,siteKey:_,elementId:f,onSuccess:P,onExpired:()=>{},onError:N})},onError:N})}});function s(){if(S&&C(a)&&C(n).length){const P=Vi();if(!P){Y(p,"captchaError");return}P.ready(async function(){var N;try{const I=await P.execute(_,{action:C(n)});(N=d())==null||N.setResult(I)}catch{Y(p,"captchaError")}})}}yt(()=>W(g()),()=>{var P,N;Y(o,((N=(P=g())==null?void 0:P.initOptions)==null?void 0:N.mode)==="invisible"?"invisible":"visible")}),yt(()=>W(g()),()=>{var P,N;Y(n,((N=(P=g())==null?void 0:P.initOptions)==null?void 0:N.recaptchaAction)??"")}),yt(()=>(C(n),C(a)),()=>{C(n).length&&C(a)&&s()}),Ot();var m={selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(P){d(P),B()},get callbackMetadata(){return g()},set callbackMetadata(P){g(P),B()},$set:Ke,$on:(P,N)=>Ge(t,P,N)};dt();var v=mt(),w=qe(v);{var A=P=>{var N=mt(),I=qe(N);{var D=H=>{var R=FO(),U=qe(R),z=pe(U,2);{var G=J=>{Gn(J,{id:"captchaError",type:"error",children:($,ne)=>{Gt();var ae=Vt();Te(te=>vt(ae,te),[()=>(W(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q($,ae)},$$slots:{default:!0}})};Ze(z,J=>{C(p)&&J(G)})}Te(()=>we(U,"id",f)),Q(H,R)},F=H=>{var R=BO(),U=qe(R),z=pe(U,2);{var G=J=>{Gn(J,{id:"captchaError",type:"error",children:($,ne)=>{Gt();var ae=Vt();Te(te=>vt(ae,te),[()=>(W(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q($,ae)},$$slots:{default:!0}})};Ze(z,J=>{C(p)&&J(G)})}Te(()=>{we(U,"id",f),Ct(U,1,`${k} tw_flex-1 tw_w-full tw_input-spacing`),we(U,"data-sitekey",_)}),Q(H,R)};Ze(I,H=>{C(o)==="invisible"?H(D):H(F,-1)})}Q(P,N)},E=P=>{Gn(P,{id:"captchaError",type:"error",children:(N,I)=>{Gt();var D=Vt();Te(F=>vt(D,F),[()=>(W(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q(N,D)},$$slots:{default:!0}})};Ze(w,P=>{S===!1?P(A):C(p)&&P(E,1)})}return Q(e,v),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),He(m)}function zO({apiUrl:e,siteKey:t,mode:n}){return n==="invisible"?`${e}?render=${t}`:e}function VO({apiUrl:e,siteKey:t,mode:n}){const r=zO({apiUrl:e,siteKey:t,mode:n});return Ky({src:r,provider:"grecaptcha"})}function Xy({siteKey:e,elementId:t="fr-recaptcha-enterprise",onSuccess:n,onExpired:r,onError:i}){const l=Vi();if(l)return l.render(t,{sitekey:e,callback:n,"expired-callback":r,"error-callback":i})}function HO({siteKey:e,action:t,callback:n,onError:r}){if(!t.length)return;const i=Vi();if(!i){r==null||r();return}i.ready(async function(){try{const l=await i.execute(e,{action:t});n==null||n.setResult(l);try{n==null||n.setAction(t)}catch{}}catch{n==null||n.setClientError("captcha_error"),r==null||r()}})}var jO=ke('<div id="fr-recaptcha-enterprise" class="tw_hidden"></div> <!>',1),qO=ke('<div id="fr-recaptcha-enterprise" class="tw_flex-1 tw_w-full tw_input-spacing"></div> <!>',1);function Qy(e,t){var s,m;if(new.target)return We({component:Qy,...e});Ve(t,!1);const n=re(),r=null,i=null,l={};let d=V(t,"callback",12),g=V(t,"callbackMetadata",12),p=re(""),_=!1,S=re(!1);const k=((s=d())==null?void 0:s.getSiteKey())??"",h=((m=d())==null?void 0:m.getApiUrl())||"https://www.google.com/recaptcha/enterprise.js";let y=re("visible");jr(async()=>{if(!d())return;try{await VO({apiUrl:h,siteKey:k,mode:C(y)})}catch{Y(p,"captchaError");return}Y(S,!0);const v=w=>{var A,E;(A=d())==null||A.setResult(w),C(n)&&((E=d())==null||E.setAction(C(n)))};if(C(y)!=="invisible"){const w=()=>{Y(p,"captchaError")};Xy({siteKey:k,onSuccess:v,onExpired:()=>{var E;(E=d())==null||E.setResult(""),Y(p,""),Xy({siteKey:k,onSuccess:v,onExpired:()=>{},onError:w})},onError:w})}});function b(){!C(n)||C(y)!=="invisible"||!d()||_||!C(S)||(_=!0,HO({siteKey:k,action:C(n),callback:d(),onError:()=>{Y(p,"captchaError")}}))}yt(()=>W(g()),()=>{var v,w;Y(y,((w=(v=g())==null?void 0:v.initOptions)==null?void 0:w.mode)==="invisible"?"invisible":"visible")}),yt(()=>W(g()),()=>{var v,w;Y(n,((w=(v=g())==null?void 0:v.initOptions)==null?void 0:w.recaptchaAction)??"")}),yt(()=>(C(n),C(S)),()=>{C(n)&&C(S)&&b()}),Ot();var c={selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(v){d(v),B()},get callbackMetadata(){return g()},set callbackMetadata(v){g(v),B()},$set:Ke,$on:(v,w)=>Ge(t,v,w)};dt();var u=mt(),f=qe(u);{var a=v=>{var w=jO(),A=pe(qe(w),2);{var E=O=>{Gn(O,{id:"captchaError",type:"error",children:(T,L)=>{Gt();var P=Vt();Te(N=>vt(P,N),[()=>(W(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q(T,P)},$$slots:{default:!0}})};Ze(A,O=>{C(p)&&O(E)})}Q(v,w)},o=v=>{var w=qO(),A=pe(qe(w),2);{var E=O=>{Gn(O,{id:"captchaError",type:"error",children:(T,L)=>{Gt();var P=Vt();Te(N=>vt(P,N),[()=>(W(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q(T,P)},$$slots:{default:!0}})};Ze(A,O=>{C(p)&&O(E)})}Q(v,w)};Ze(f,v=>{C(y)==="invisible"?v(a):v(o,-1)})}return Q(e,u),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),He(c)}var WO=ke('<div class="tw_text-center" aria-live="assertive"><!> <!></div>');function e_(e,t){if(new.target)return We({component:e_,...e});Ve(t,!1);const n=null,r=null,i=null,l={};let d=V(t,"callback",12),g=re();yt(()=>W(d()),()=>{Y(g,`${Ee("redirectingTo")} ${new URL(d().getRedirectUrl()).hostname}`)}),Ot();var p={callbackMetadata:n,selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(h){d(h),B()},$set:Ke,$on:(h,y)=>Ge(t,h,y)};dt();var _=WO(),S=de(_);pr(S,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"});var k=pe(S,2);return ja(k,{children:(h,y)=>{Gt();var b=Vt();Te(()=>vt(b,C(g))),Q(h,b)},$$slots:{default:!0}}),ce(_),Q(e,_),lt(t,"callbackMetadata",n),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),He(p)}var GO=_n('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 18"><path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"></path><path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"></path></svg>');function t_(e,t){if(new.target)return We({component:t_,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>Ge(t,d,g)},l=GO();return Te(()=>{we(l,"height",r()),we(l,"width",r()),Ct(l,0,wn(n()))}),Q(e,l),He(i)}var KO=_n('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 18 18"><path d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"></path></svg>');function n_(e,t){if(new.target)return We({component:n_,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>Ge(t,d,g)},l=KO();return Te(()=>{we(l,"width",r()),we(l,"height",r()),Ct(l,0,wn(n()))}),Q(e,l),He(i)}var $O=_n('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56"><g><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"></path><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"></path><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"></path><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"></path><path fill="none" d="M0 0h48v48H0z"></path></g></svg>');function r_(e,t){if(new.target)return We({component:r_,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>Ge(t,d,g)},l=$O();return Te(()=>{we(l,"height",r()),we(l,"width",r()),Ct(l,0,wn(n()))}),Q(e,l),He(i)}var ZO=_n('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"></path></svg>');function i_(e,t){if(new.target)return We({component:i_,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>Ge(t,d,g)},l=ZO();return Te(()=>{we(l,"width",r()),we(l,"height",r()),Ct(l,0,wn(n()))}),Q(e,l),He(i)}var YO=_n('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 21"><path fill="#f25022" d="M1 1h9v9H1z"></path><path fill="#7fba00" d="M11 1h9v9H11z"></path><path fill="#00a4ef" d="M1 11h9v9H1z"></path><path fill="#ffb900" d="M11 11h9v9H11z"></path></svg>');function s_(e,t){if(new.target)return We({component:s_,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>Ge(t,d,g)},l=YO();return Te(()=>{we(l,"width",r()),we(l,"height",r()),Ct(l,0,wn(n()))}),Q(e,l),He(i)}var JO=ke("<!> <!> ",1),XO=ke("<!> <!> ",1),QO=ke("<!> <!> ",1),e4=ke("<!> <!> ",1),t4=ke("<!> <!> ",1),n4=ke('<hr class="tw_border-0 tw_border-b tw_border-secondary-light dark:tw_border-secondary-dark"/>'),r4=ke("<!> <!>",1);function a_(e,t){if(new.target)return We({component:a_,...e});Ve(t,!1);const n={};let r=V(t,"callback",12),i=V(t,"callbackMetadata",12),l=V(t,"selfSubmitFunction",12,null),d=V(t,"stepMetadata",12),g=re();function p(b){r().setProvider(b),i()&&i(i().derived.isReadyForSubmission=!0,!0),l()&&l()()}yt(()=>W(r()),()=>{const b=r().getProviders().filter(u=>u.provider==="localAuthentication"),c=r().getProviders().filter(u=>u.provider!=="localAuthentication");b.length>0&&!r().getInputValue()&&r().setProvider("localAuthentication"),Y(g,c.map(u=>({value:u.provider,text:u.uiConfig.buttonDisplayName})))}),Ot();var _={style:n,get callback(){return r()},set callback(b){r(b),B()},get callbackMetadata(){return i()},set callbackMetadata(b){i(b),B()},get selfSubmitFunction(){return l()},set selfSubmitFunction(b){l(b),B()},get stepMetadata(){return d()},set stepMetadata(b){d(b),B()},$set:Ke,$on:(b,c)=>Ge(t,b,c)};dt();var S=r4(),k=qe(S);Qn(k,1,()=>C(g),Xn,(b,c)=>{ou(b,{num:1,children:(u,f)=>{var a=mt(),o=qe(a);{var s=N=>{On(N,{classes:"tw_button-apple dark:tw_button-apple_dark",type:"button",width:"auto",onClick:()=>p(C(c).value),children:(I,D)=>{var F=JO(),H=qe(F);t_(H,{classes:"tw_inline-block tw_fill-current"});var R=pe(H,2);ut(R,{key:"continueWith"});var U=pe(R);Te(()=>vt(U,` ${C(c),Z(()=>C(c).text)??""}`)),Q(I,F)},$$slots:{default:!0}})},m=di(()=>(C(c),Z(()=>C(c).text.toUpperCase().includes("APPLE")))),v=N=>{On(N,{classes:"tw_button-facebook dark:tw_button-facebook_dark",type:"button",width:"auto",onClick:()=>p(C(c).value),children:(I,D)=>{var F=XO(),H=qe(F);n_(H,{classes:"tw_inline-block tw_fill-current"});var R=pe(H,2);ut(R,{key:"continueWith"});var U=pe(R);Te(()=>vt(U,` ${C(c),Z(()=>C(c).text)??""}`)),Q(I,F)},$$slots:{default:!0}})},w=di(()=>(C(c),Z(()=>C(c).text.toUpperCase().includes("FACEBOOK")))),A=N=>{On(N,{classes:"tw_button-google dark:tw_button-google_dark",type:"button",width:"auto",onClick:()=>p(C(c).value),children:(I,D)=>{var F=QO(),H=qe(F);r_(H,{classes:"tw_inline-block tw_fill-current"});var R=pe(H,2);ut(R,{key:"continueWith"});var U=pe(R);Te(()=>vt(U,` ${C(c),Z(()=>C(c).text)??""}`)),Q(I,F)},$$slots:{default:!0}})},E=di(()=>(C(c),Z(()=>C(c).text.toUpperCase().includes("GOOGLE")))),O=N=>{On(N,{classes:"tw_button-linkedin dark:tw_button-linkedin_dark",type:"button",width:"auto",onClick:()=>p(C(c).value),children:(I,D)=>{var F=e4(),H=qe(F);i_(H,{classes:"tw_inline-block tw_fill-current"});var R=pe(H,2);ut(R,{key:"continueWith"});var U=pe(R);Te(()=>vt(U,` ${C(c),Z(()=>C(c).text)??""}`)),Q(I,F)},$$slots:{default:!0}})},T=di(()=>(C(c),Z(()=>C(c).text.toUpperCase().includes("LINKEDIN")))),L=N=>{On(N,{classes:"tw_button-microsoft dark:tw_button-microsoft_dark",type:"button",width:"auto",onClick:()=>p(C(c).value),children:(I,D)=>{var F=t4(),H=qe(F);s_(H,{classes:"tw_inline-block tw_fill-current"});var R=pe(H,2);ut(R,{key:"continueWith"});var U=pe(R);Te(()=>vt(U,` ${C(c),Z(()=>C(c).text)??""}`)),Q(I,F)},$$slots:{default:!0}})},P=di(()=>(C(c),Z(()=>C(c).text.toUpperCase().includes("MICROSOFT"))));Ze(o,N=>{C(m)?N(s):C(w)?N(v,1):C(E)?N(A,2):C(T)?N(O,3):C(P)&&N(L,4)})}Q(u,a)},$$slots:{default:!0}})});var h=pe(k,2);{var y=b=>{ou(b,{num:1,children:(c,u)=>{var f=n4();Q(c,f)},$$slots:{default:!0}})};Ze(h,b=>{W(d()),Z(()=>d()&&d().derived.numOfCallbacks>1)&&b(y)})}return Q(e,S),lt(t,"style",n),He(_)}function o_(e,t){if(new.target)return We({component:o_,...e});Ve(t,!1);const n=null,r=null;let i=V(t,"callback",12),l=V(t,"callbackMetadata",12),d=V(t,"style",28,()=>({}));const g=d().labels==="stacked"?ks:zi;let p=re(),_=re(),S=re(),k=re(),h=re(),y=re(),b=re(),c=re(),u=re();function f(m){i().setInputValue(m.target.value)}yt(()=>(W(i()),W(l()),C(k),C(y),C(c),Es),()=>{var m,v,w,A,E;Y(p,((w=(v=(m=i())==null?void 0:m.payload)==null?void 0:v.input)==null?void 0:w[0].name)||`password-${(A=l())==null?void 0:A.idx}`),Y(_,Ff(i())),Y(S,i().getOutputByName("name","")),Y(k,i().getPolicies()),Y(h,(E=i())==null?void 0:E.getInputValue()),Y(y,i().getPrompt()),Y(b,N3(C(k))),Y(c,Es(i(),C(y))),Y(u,!!C(c).length)}),Ot();var a={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(m){i(m),B()},get callbackMetadata(){return l()},set callbackMetadata(m){l(m),B()},get style(){return d()},set style(m){d(m),B()},$set:Ke,$on:(m,v)=>Ge(t,m,v)};dt();var o=mt(),s=qe(o);return Ws(s,i,m=>{{let v=me(()=>(W(l()),Z(()=>{var O;return((O=l())==null?void 0:O.derived.isFirstInvalidInput)||!1}))),w=me(()=>(W(Ee),C(S),C(y),Z(()=>Ee(C(S),null,C(y))))),A=me(()=>(C(_),W(Ee),Z(()=>C(_)?Ee("inputRequiredError"):void 0))),E=me(()=>!!C(u));g(m,{get isFirstInvalidInput(){return C(v)},get key(){return C(p)},get label(){return C(w)},get message(){return C(A)},onChange:f,get isRequired(){return C(_)},get isInvalid(){return C(u)},get type(){return C(b)},get showMessage(){return C(E)},get value(){return C(h)},children:(O,T)=>{lu(O,{get callback(){return i()},get key(){return C(p)},get label(){return C(y)},messageKey:"valueRequirements"})},$$slots:{default:!0}})}}),Q(e,o),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),He(a)}var i4=ke("<a><!></a>");function Wf(e,t){if(new.target)return We({component:Wf,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"href",12),i=V(t,"target",12,"_self");var l={get classes(){return n()},set classes(p){n(p),B()},get href(){return r()},set href(p){r(p),B()},get target(){return i()},set target(p){i(p),B()},$set:Ke,$on:(p,_)=>Ge(t,p,_)},d=i4(),g=de(d);return Nt(g,t,"default",{},null),ce(d),Te(()=>{Ct(d,1,`${n()} tw_link dark:tw_link_dark`),we(d,"href",r()),we(d,"target",i())}),Q(e,d),He(l)}var s4=ke("<!> <!>",1),a4=ke('<p class=" tw_text-error-dark dark:tw_text-error-light tw_input-spacing">Error: Configuration is missing <code>termsAndConditions</code> URL.</p>');function l_(e,t){if(new.target)return We({component:l_,...e});Ve(t,!1);const n=()=>or(Jl,"$linksStore",r),[r,i]=Pr(),l=null,d=null;let g=V(t,"style",28,()=>({})),p=V(t,"callback",12),_=V(t,"callbackMetadata",12);const S=g().checksAndRadios==="standard"?su:ru;let k=re();function h(o){p().setAccepted(o.target.checked)}yt(()=>(W(p()),W(_())),()=>{var o,s,m,v;Y(k,((m=(s=(o=p())==null?void 0:o.payload)==null?void 0:s.input)==null?void 0:m[0].name)||`terms-${(v=_())==null?void 0:v.idx}`)}),Ot();var y={selfSubmitFunction:l,stepMetadata:d,get style(){return g()},set style(o){g(o),B()},get callback(){return p()},set callback(o){p(o),B()},get callbackMetadata(){return _()},set callbackMetadata(o){_(o),B()},$set:Ke,$on:(o,s)=>Ge(t,o,s)};dt();var b=mt(),c=qe(b);{var u=o=>{var s=s4(),m=qe(s);{let w=me(()=>(n(),Z(()=>{var A;return(A=n())==null?void 0:A.termsAndConditions})));Wf(m,{classes:"tw_block tw_mb-4",get href(){return C(w)},target:"_blank",children:(A,E)=>{Gt();var O=Vt();Te(T=>vt(O,T),[()=>(W(Ee),Z(()=>Ee("termsAndConditionsLinkText")))]),Q(A,O)},$$slots:{default:!0}})}var v=pe(m,2);{let w=me(()=>(W(_()),Z(()=>{var A;return((A=_())==null?void 0:A.derived.isFirstInvalidInput)||!1})));S(v,{get isFirstInvalidInput(){return C(w)},get key(){return C(k)},onChange:h,value:!1,children:(A,E)=>{ut(A,{key:"termsAndConditions"})},$$slots:{default:!0}})}Q(o,s)},f=o=>{var s=a4();Q(o,s)};Ze(c,o=>{n(),Z(()=>{var s;return(s=n())==null?void 0:s.termsAndConditions})?o(u):o(f,-1)})}Q(e,b),lt(t,"selfSubmitFunction",l),lt(t,"stepMetadata",d);var a=He(y);return i(),a}function c_(e,t){if(new.target)return We({component:c_,...e});Ve(t,!1);const n=null,r=null;let i=V(t,"callback",12),l=V(t,"callbackMetadata",12),d=V(t,"style",28,()=>({}));const g=d().labels==="stacked"?ks:zi;let p=re(),_=re(),S=re(),k=re();function h(u){i().setInput(u.target.value)}yt(()=>(W(i()),W(l())),()=>{var u,f,a,o,s;Y(p,i().getType()),Y(_,((a=(f=(u=i())==null?void 0:u.payload)==null?void 0:f.input)==null?void 0:a[0].name)||`text-input-${(o=l())==null?void 0:o.idx}`),Y(S,i().getPrompt()),Y(k,(s=i())==null?void 0:s.getInputValue())}),Ot();var y={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(u){i(u),B()},get callbackMetadata(){return l()},set callbackMetadata(u){l(u),B()},get style(){return d()},set style(u){d(u),B()},$set:Ke,$on:(u,f)=>Ge(t,u,f)};dt();var b=mt(),c=qe(b);return Ws(c,i,u=>{{let f=me(()=>(W(l()),Z(()=>{var s;return((s=l())==null?void 0:s.derived.isFirstInvalidInput)||!1}))),a=me(()=>(W(Ee),W(hr),C(S),C(p),Z(()=>Ee(hr(C(S)||C(p)),null,C(S))))),o=me(()=>typeof C(k)=="string"?C(k):"");g(u,{get isFirstInvalidInput(){return C(f)},get key(){return C(_)},get label(){return C(a)},onChange:h,type:"text",showMessage:!1,get value(){return C(o)}})}}),Q(e,b),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),He(y)}function Gf(e,t){if(new.target)return We({component:Gf,...e});Ve(t,!1);const n=null,r=null,i=null,l={};let d=V(t,"callback",12),g=re(d().getMessage()),p=re(sa(C(g))),_=re("info");function S(u){switch(u){case"0":return"info";case"1":return"warning";case"2":return"error";default:return"info"}}yt(()=>(C(g),W(d()),sa),()=>{Y(g,d().getMessage()),Y(p,sa(C(g))),Y(_,S(d().getMessageType()))}),Ot();var k={callbackMetadata:n,selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(u){d(u),B()},$set:Ke,$on:(u,f)=>Ge(t,u,f)};dt();var h=mt(),y=qe(h);{var b=u=>{{let f=me(()=>(C(p),Z(()=>C(p).length<100?"tw_font-bold tw_mt-6":"tw_mt-6")));ja(u,{get classes(){return C(f)},children:(a,o)=>{var s=mt(),m=qe(s);Nl(m,()=>C(p)),Q(a,s)},$$slots:{default:!0}})}},c=u=>{Gn(u,{id:"",needsFocus:!1,get type(){return C(_)},children:(f,a)=>{Gt();var o=Vt();Te(()=>vt(o,C(p))),Q(f,o)},$$slots:{default:!0}})};Ze(y,u=>{C(_)==="info"?u(b):u(c,-1)})}return Q(e,h),lt(t,"callbackMetadata",n),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),He(k)}var o4=ke('<p class="tw_text-base tw_text-secondary-dark dark:tw_text-secondary-light tw_input-spacing"> </p>');function u_(e,t){if(new.target)return We({component:u_,...e});Ve(t,!1);const n=null,r=null,i=null,l={};let d=V(t,"callback",12);const g=d().getType();var p={callbackMetadata:n,selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(k){d(k),B()},$set:Ke,$on:(k,h)=>Ge(t,k,h)};dt();var _=o4(),S=de(_);return ce(_),Te(()=>vt(S,`Unknown callback encountered: ${g??""}. Please contact support.`)),Q(e,_),lt(t,"callbackMetadata",n),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),He(p)}function d_(e,t){if(new.target)return We({component:d_,...e});Ve(t,!1);const n=null,r=null;let i=V(t,"callback",12),l=V(t,"callbackMetadata",12),d=V(t,"style",28,()=>({}));const g=d().labels==="stacked"?ks:zi;let p=re(),_=re(),S=re(),k=re();function h(u){i().setInputValue(u.target.value)}yt(()=>(W(i()),W(l())),()=>{var u,f,a,o,s;Y(p,i().getType()),Y(_,((a=(f=(u=i())==null?void 0:u.payload)==null?void 0:f.input)==null?void 0:a[0].name)||`name-${(o=l())==null?void 0:o.idx}`),Y(S,i().getPrompt()),Y(k,(s=i())==null?void 0:s.getInputValue())}),Ot();var y={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(u){i(u),B()},get callbackMetadata(){return l()},set callbackMetadata(u){l(u),B()},get style(){return d()},set style(u){d(u),B()},$set:Ke,$on:(u,f)=>Ge(t,u,f)};dt();var b=mt(),c=qe(b);return Ws(c,i,u=>{{let f=me(()=>(W(l()),Z(()=>{var m,v;return(v=(m=l())==null?void 0:m.derived)==null?void 0:v.autocompleteValues}))),a=me(()=>(W(l()),Z(()=>{var m;return((m=l())==null?void 0:m.derived.isFirstInvalidInput)||!1}))),o=me(()=>(W(Ee),W(hr),C(S),C(p),Z(()=>Ee(hr(C(S)||C(p)),null,C(S))))),s=me(()=>typeof C(k)=="string"?C(k):"");g(u,{get autocomplete(){return C(f)},get isFirstInvalidInput(){return C(a)},get key(){return C(_)},get label(){return C(o)},onChange:h,type:"text",showMessage:!1,get value(){return C(s)}})}}),Q(e,b),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),He(y)}function f_(e,t){if(new.target)return We({component:f_,...e});Ve(t,!1);const n=null,r=null;let i=V(t,"callback",12),l=V(t,"callbackMetadata",12),d=V(t,"style",28,()=>({}));const g=d().labels==="stacked"?ks:zi;let p=re(),_=re(),S=re(),k=re(),h=re(),y=re(),b=re();function c(o){i().setInputValue(o.target.value)}yt(()=>(W(i()),W(l()),C(h),C(b),Es),()=>{var o,s,m,v,w;Y(p,i().getType()),Y(_,((m=(s=(o=i())==null?void 0:o.payload)==null?void 0:s.input)==null?void 0:m[0].name)||`validated-name=${(v=l())==null?void 0:v.idx}`),Y(k,Ff(i())),Y(h,i().getPrompt()),Y(y,(w=i())==null?void 0:w.getInputValue()),Y(b,Es(i(),C(h))),Y(S,!!C(b).length)}),Ot();var u={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(o){i(o),B()},get callbackMetadata(){return l()},set callbackMetadata(o){l(o),B()},get style(){return d()},set style(o){d(o),B()},$set:Ke,$on:(o,s)=>Ge(t,o,s)};dt();var f=mt(),a=qe(f);return Ws(a,i,o=>{{let s=me(()=>(W(l()),Z(()=>{var A;return((A=l())==null?void 0:A.derived.isFirstInvalidInput)||!1}))),m=me(()=>(W(Ee),W(hr),C(p),C(h),Z(()=>Ee(hr(C(p)),null,C(h))))),v=me(()=>(C(k),W(Ee),Z(()=>C(k)?Ee("inputRequiredError"):void 0))),w=me(()=>typeof C(y)=="string"?C(y):"");g(o,{get isFirstInvalidInput(){return C(s)},get isRequired(){return C(k)},get isInvalid(){return C(S)},get key(){return C(_)},get label(){return C(m)},get message(){return C(v)},onChange:c,showMessage:!1,type:"text",get value(){return C(w)},children:(A,E)=>{lu(A,{get callback(){return i()},get key(){return C(_)},get label(){return C(h)},messageKey:"usernameRequirements"})},$$slots:{default:!0}})}}),Q(e,f),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),He(u)}const h_={},cu={};function la(e,t){if(new.target)return We({component:la,...e});Ve(t,!1);let n=V(t,"props",12),r=re(),i=re(),l=re(),d=re(),g=re(),p=re(),_=re(),S=re(),k=re(),h=re(),y=re(),b=re(),c=re(),u=re(),f=re(),a=re(),o=re(),s=re(),m=re(),v=re(),w=re(),A=re(),E=re(),O=re(),T=re();yt(()=>(C(r),W(n()),fe),()=>{switch(Y(r,n().callback.getType()),C(r)){case fe.BooleanAttributeInputCallback:Y(i,n().callback);break;case fe.ChoiceCallback:Y(l,n().callback);break;case fe.ConfirmationCallback:Y(d,n().callback);break;case fe.HiddenValueCallback:Y(g,n().callback);break;case fe.KbaCreateCallback:Y(p,n().callback);break;case fe.NameCallback:Y(_,n().callback);break;case fe.ReCaptchaCallback:Y(w,n().callback);break;case fe.ReCaptchaEnterpriseCallback:Y(A,n().callback);break;case fe.PasswordCallback:Y(S,n().callback);break;case fe.PollingWaitCallback:Y(k,n().callback);break;case fe.RedirectCallback:Y(h,n().callback);break;case fe.SelectIdPCallback:Y(y,n().callback);break;case fe.StringAttributeInputCallback:Y(b,n().callback);break;case fe.ValidatedCreatePasswordCallback:Y(c,n().callback);break;case fe.ValidatedCreateUsernameCallback:Y(u,n().callback);break;case fe.TermsAndConditionsCallback:Y(f,n().callback);break;case fe.TextInputCallback:Y(a,n().callback);break;case fe.TextOutputCallback:Y(o,n().callback);break;case fe.SuspendedTextOutputCallback:Y(s,n().callback);break;case fe.DeviceProfileCallback:Y(v,n().callback);break;case fe.MetadataCallback:Y(m,n().callback);break;case fe.PingOneProtectEvaluationCallback:Y(E,n().callback);break;case fe.PingOneProtectInitializeCallback:Y(O,n().callback);break;default:Y(T,n().callback)}}),Ot();var L={get props(){return n()},set props(ge){n(ge),B()},$set:Ke,$on:(ge,Le)=>Ge(t,ge,Le)};dt();var P=mt(),N=qe(P);{var I=ge=>{const Le=me(()=>(W(cu),C(r),Z(()=>cu[C(r)]))),Mt=me(()=>(W(n()),Z(()=>Object.fromEntries(Object.entries(n()).filter(([$t])=>C(Le).acceptedProps.includes($t))))));var It=mt(),Ut=qe(It);Og(Ut,()=>C(Le).component,($t,kn)=>{kn($t,Zt(()=>C(Mt)))}),Q(ge,It)},D=ge=>{const Le=me(()=>(W(n()),C(i),Z(()=>({...n(),callback:C(i)}))));Ry(ge,Zt(()=>C(Le)))},F=ge=>{const Le=me(()=>(W(n()),C(l),Z(()=>({...n(),callback:C(l)}))));xy(ge,Zt(()=>C(Le)))},H=ge=>{const Le=me(()=>(W(n()),C(d),Z(()=>({...n(),callback:C(d)}))));Ny(ge,Zt(()=>C(Le)))},R=ge=>{const Le=me(()=>(W(n()),C(g),Z(()=>({...n(),callback:C(g)}))));Fy(ge,Zt(()=>C(Le)))},U=ge=>{const Le=me(()=>(W(n()),C(p),Z(()=>({...n(),callback:C(p)}))));zy(ge,Zt(()=>C(Le)))},z=ge=>{const Le=me(()=>(W(n()),C(_),Z(()=>({...n(),callback:C(_)}))));d_(ge,Zt(()=>C(Le)))},G=ge=>{const Le=me(()=>(W(n()),C(S),Z(()=>({...n(),callback:C(S)}))));jy(ge,Zt(()=>C(Le)))},J=ge=>{const Le=me(()=>(W(n()),C(k),Z(()=>({...n(),callback:C(k)}))));qf(ge,Zt(()=>C(Le)))},$=ge=>{const Le=me(()=>(W(n()),C(h),Z(()=>({...n(),callback:C(h)}))));e_(ge,Zt(()=>C(Le)))},ne=ge=>{const Le=me(()=>(W(n()),C(y),Z(()=>({...n(),callback:C(y)}))));a_(ge,Zt(()=>C(Le)))},ae=ge=>{const Le=me(()=>(W(n()),C(b),Z(()=>({...n(),callback:C(b)}))));o_(ge,Zt(()=>C(Le)))},te=ge=>{const Le=me(()=>(W(n()),C(c),Z(()=>({...n(),callback:C(c)}))));qy(ge,Zt(()=>C(Le)))},ie=ge=>{const Le=me(()=>(W(n()),C(u),Z(()=>({...n(),callback:C(u)}))));f_(ge,Zt(()=>C(Le)))},Se=ge=>{const Le=me(()=>(W(n()),C(f),Z(()=>({...n(),callback:C(f)}))));l_(ge,Zt(()=>C(Le)))},_e=ge=>{const Le=me(()=>(W(n()),C(a),Z(()=>({...n(),callback:C(a)}))));c_(ge,Zt(()=>C(Le)))},xe=ge=>{const Le=me(()=>(W(n()),C(o),Z(()=>({...n(),callback:C(o)}))));Gf(ge,Zt(()=>C(Le)))},et=ge=>{const Le=me(()=>(W(n()),C(s),Z(()=>({...n(),callback:C(s)}))));Gf(ge,Zt(()=>C(Le)))},xt=ge=>{const Le=me(()=>(W(n()),C(v),Z(()=>({...n(),callback:C(v)}))));Uy(ge,Zt(()=>C(Le)))},oe=ge=>{const Le=me(()=>(W(n()),C(m),Z(()=>({...n(),callback:C(m)}))));Vy(ge,Zt(()=>C(Le)))},Ie=ge=>{const Le=me(()=>(W(n()),C(w),Z(()=>({...n(),callback:C(w)}))));Jy(ge,Zt(()=>C(Le)))},Be=ge=>{const Le=me(()=>(W(n()),C(A),Z(()=>({...n(),callback:C(A)}))));Qy(ge,Zt(()=>C(Le)))},$e=ge=>{const Le=me(()=>(W(n()),C(E),Z(()=>({...n(),callback:C(E)}))));Wy(ge,Zt(()=>C(Le)))},Ce=ge=>{const Le=me(()=>(W(n()),C(O),Z(()=>({...n(),callback:C(O)}))));Gy(ge,Zt(()=>C(Le)))},Xe=ge=>{const Le=me(()=>(W(n()),C(T),Z(()=>({...n(),callback:C(T)}))));u_(ge,Zt(()=>C(Le)))};Ze(N,ge=>{W(cu),C(r),Z(()=>cu[C(r)])?ge(I):(C(r),W(fe),Z(()=>C(r)===fe.BooleanAttributeInputCallback)?ge(D,1):(C(r),W(fe),Z(()=>C(r)===fe.ChoiceCallback)?ge(F,2):(C(r),W(fe),Z(()=>C(r)===fe.ConfirmationCallback)?ge(H,3):(C(r),W(fe),Z(()=>C(r)===fe.HiddenValueCallback)?ge(R,4):(C(r),W(fe),Z(()=>C(r)===fe.KbaCreateCallback)?ge(U,5):(C(r),W(fe),Z(()=>C(r)===fe.NameCallback)?ge(z,6):(C(r),W(fe),Z(()=>C(r)===fe.PasswordCallback)?ge(G,7):(C(r),W(fe),Z(()=>C(r)===fe.PollingWaitCallback)?ge(J,8):(C(r),W(fe),Z(()=>C(r)===fe.RedirectCallback)?ge($,9):(C(r),W(fe),Z(()=>C(r)===fe.SelectIdPCallback)?ge(ne,10):(C(r),W(fe),Z(()=>C(r)===fe.StringAttributeInputCallback)?ge(ae,11):(C(r),W(fe),Z(()=>C(r)===fe.ValidatedCreatePasswordCallback)?ge(te,12):(C(r),W(fe),Z(()=>C(r)===fe.ValidatedCreateUsernameCallback)?ge(ie,13):(C(r),W(fe),Z(()=>C(r)===fe.TermsAndConditionsCallback)?ge(Se,14):(C(r),W(fe),Z(()=>C(r)===fe.TextInputCallback)?ge(_e,15):(C(r),W(fe),Z(()=>C(r)===fe.TextOutputCallback)?ge(xe,16):(C(r),W(fe),Z(()=>C(r)===fe.SuspendedTextOutputCallback)?ge(et,17):(C(r),W(fe),Z(()=>C(r)===fe.DeviceProfileCallback)?ge(xt,18):(C(r),W(fe),Z(()=>C(r)===fe.MetadataCallback)?ge(oe,19):(C(r),W(fe),Z(()=>C(r)===fe.ReCaptchaCallback)?ge(Ie,20):(C(r),W(fe),Z(()=>C(r)===fe.ReCaptchaEnterpriseCallback)?ge(Be,21):(C(r),W(fe),Z(()=>C(r)===fe.PingOneProtectEvaluationCallback)?ge($e,22):(C(r),W(fe),Z(()=>C(r)===fe.PingOneProtectInitializeCallback)?ge(Ce,23):ge(Xe,-1))))))))))))))))))))))))})}return Q(e,P),He(L)}var l4=ke('<p class=" tw_my-4 tw_text-base tw_text-center tw_text-link-dark dark:tw_text-link-light"><button> </button></p>');function Kf(e,t){if(new.target)return We({component:Kf,...e});Ve(t,!1);const n=()=>or(ll,"$configuredJourneysStore",i),r=()=>or(C(g),"$stack",i),[i,l]=Pr();let d=V(t,"journey",12),g=re(d().stack),p=re("");yt(()=>(W(d()),n(),r()),()=>{jw(Y(g,d().stack),"$stack",i);const b=n().find(f=>{var a;return f.journey===((a=r()[r().length-2])==null?void 0:a.journey)}),c=b==null?void 0:b.key,u=typeof c=="string"?c.replace(/([a-z])/,(f,a)=>`${a.toUpperCase()}`):c;Y(p,`backTo${u||"Default"}`)}),Ot();var _={get journey(){return d()},set journey(b){d(b),B()},$set:Ke,$on:(b,c)=>Ge(t,b,c)};dt();var S=mt(),k=qe(S);{var h=b=>{var c=l4(),u=de(c),f=de(u,!0);ce(u),ce(c),Te(a=>vt(f,a),[()=>(W(Ee),C(p),Z(()=>Ee(C(p))))]),mn("click",u,xl(()=>{var a;(a=d())==null||a.pop()})),Q(b,c)};Ze(k,b=>{r(),Z(()=>r().length>1)&&b(h)})}Q(e,S);var y=He(_);return l(),y}function uu(e,t){const n=Yt(ll),r=Yt(t.stack);e.addEventListener("click",i=>{const l=i.target,d=l.hasAttribute("href")&&l.getAttribute("href"),{action:g,journey:p}=c4(d,n,r);g&&(i.preventDefault(),g==="push"?t.push({journey:p}):g==="pop"&&t.pop())})}function c4(e,t,n){if(e){const r=t.find(i=>i.match.find(l=>e===l));if(r){if(!r.journey)return{action:null};const i=n[n.length-2];return!i||i.journey!==r.journey?{action:"push",journey:r.journey}:{action:"pop"}}else return{action:null}}else return{action:null}}var u4=ke('<div class="tw_flex tw_justify-center"><!></div>'),d4=ke('<!> <header><h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1></header> <!> <!> <!>',1);function g_(e,t){if(new.target)return We({component:g_,...e});Ve(t,!1);const n=()=>or(Kr,"$styleStore",r),[r,i]=Pr();let l=V(t,"componentStyle",12),d=V(t,"form",12),g=V(t,"formEl",12,null),p=V(t,"journey",12),_=V(t,"metadata",12),S=V(t,"step",12);const k="genericStepFailureMessage",h="genericStepHeader",y="genericStepForm";let b=re(!1),c=re(""),u=re("genericStepHeader"),f=re(!1),a=re();function o(){var w,A;(A=(w=_())==null?void 0:w.step)!=null&&A.derived.isStepSelfSubmittable()&&s()}function s(){var w;Y(b,!1),Y(f,!1),(w=d())==null||w.submit()}Hn(()=>{var w;(w=d())!=null&&w.message?(Y(u,k),Y(b,!0),Y(f,!1)):(Y(u,h),Y(b,!1),Y(f,!0))}),jr(()=>uu(C(a),p())),yt(()=>(W(S()),W(p())),()=>{Mf(S())&&p().redirect(S())}),yt(()=>W(d()),()=>{var w;Y(c,aa((w=d())==null?void 0:w.message))}),Ot();var m={get componentStyle(){return l()},set componentStyle(w){l(w),B()},get form(){return d()},set form(w){d(w),B()},get formEl(){return g()},set formEl(w){g(w),B()},get journey(){return p()},set journey(w){p(w),B()},get metadata(){return _()},set metadata(w){_(w),B()},get step(){return S()},set step(w){S(w),B()},$set:Ke,$on:(w,A)=>Ge(t,w,A)};dt(),Ui(e,{get ariaDescribedBy(){return C(u)},id:y,get needsFocus(){return C(f)},onSubmitWhenValid:s,get formEl(){return g()},set formEl(w){g(w)},children:(w,A)=>{var E=d4(),O=qe(E);{var T=R=>{var U=u4(),z=de(U);Oy(z,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(U),Q(R,U)};Ze(O,R=>{W(d()),W(l()),Z(()=>{var U;return((U=d())==null?void 0:U.icon)&&l()!=="inline"})&&R(T)})}var L=pe(O,2);we(L,"id",h);var P=de(L),N=de(P);{let R=me(()=>(W(S()),W(Ee),Z(()=>{var U;return((U=S())==null?void 0:U.getHeader())||Ee("checkYourEmail")})));nu(N,{html:!0,get string(){return C(R)}})}ce(P),ce(L),an(L,R=>Y(a,R),()=>C(a));var I=pe(L,2);{var D=R=>{Gn(R,{id:k,get needsFocus(){return C(b)},type:"error",children:(U,z)=>{Gt();var G=Vt();Te(J=>vt(G,J),[()=>(W(Ee),C(c),W(d()),Z(()=>{var J;return Ee(C(c),null,(J=d())==null?void 0:J.message)}))]),Q(U,G)},$$slots:{default:!0}})};Ze(I,R=>{W(d()),Z(()=>{var U;return(U=d())==null?void 0:U.message})&&R(D)})}var F=pe(I,2);Qn(F,1,()=>(W(S()),Z(()=>{var R;return(R=S())==null?void 0:R.callbacks})),Xn,(R,U,z)=>{{let G=me(()=>(C(U),W(_()),n(),Z(()=>{var J,$;return{callback:C(U),callbackMetadata:(J=_())==null?void 0:J.callbacks[z],selfSubmitFunction:o,stepMetadata:(($=_())==null?void 0:$.step)&&{..._().step},style:n()}})));la(R,{get props(){return C(G)}})}});var H=pe(F,2);Kf(H,{get journey(){return p()}}),Q(w,E)},$$slots:{default:!0},$$legacy:!0});var v=He(m);return i(),v}var f4=_n('<svg viewBox="-2 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.777 11.777 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7.159 7.159 0 0 0 1.048-.625 11.775 11.775 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.541 1.541 0 0 0-1.044-1.263 62.467 62.467 0 0 0-2.887-.87C9.843.266 8.69 0 8 0zm0 5a1.5 1.5 0 0 1 .5 2.915l.385 1.99a.5.5 0 0 1-.491.595h-.788a.5.5 0 0 1-.49-.595l.384-1.99A1.5 1.5 0 0 1 8 5z"></path><title><!></title></svg>');function p_(e,t){if(new.target)return We({component:p_,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>Ge(t,p,_)},l=f4(),d=pe(de(l)),g=de(d);return Nt(g,t,"default",{},null),ce(d),ce(l),Te(()=>{Ct(l,0,wn(n())),we(l,"height",r()),we(l,"width",r())}),Q(e,l),He(i)}var h4=ke('<div class="tw_flex tw_justify-center tw_pb-4"><div class="tw_dialog-logo dark:tw_dialog-logo_dark"></div></div>'),g4=ke('<div class="tw_flex tw_justify-center"><!></div>'),p4=ke('<!> <header><h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></header> <!> <!> <!> <!>',1);function $f(e,t){if(new.target)return We({component:$f,...e});Ve(t,!1);const n=()=>or(Kr,"$styleStore",r),[r,i]=Pr();let l=V(t,"componentStyle",12),d=V(t,"form",12),g=V(t,"formEl",12,null),p=V(t,"journey",12),_=V(t,"metadata",12),S=V(t,"step",12);const k="genericStepFailureMessage",h="genericStepHeader",y="genericStepForm";let b=re(!1),c=re(""),u=re("genericStepHeader"),f=re(!1),a=re();function o(){var w,A;(A=(w=_())==null?void 0:w.step)!=null&&A.derived.isStepSelfSubmittable()&&s()}function s(){var w;Y(b,!1),Y(f,!1),(w=d())==null||w.submit()}Hn(()=>{var w;(w=d())!=null&&w.message?(Y(u,k),Y(b,!0),Y(f,!1)):(Y(u,h),Y(b,!1),Y(f,!0))}),jr(()=>uu(C(a),p())),yt(()=>(W(S()),W(p())),()=>{Mf(S())&&p().redirect(S())}),yt(()=>W(d()),()=>{var w;Y(c,aa((w=d())==null?void 0:w.message))}),Ot();var m={get componentStyle(){return l()},set componentStyle(w){l(w),B()},get form(){return d()},set form(w){d(w),B()},get formEl(){return g()},set formEl(w){g(w),B()},get journey(){return p()},set journey(w){p(w),B()},get metadata(){return _()},set metadata(w){_(w),B()},get step(){return S()},set step(w){S(w),B()},$set:Ke,$on:(w,A)=>Ge(t,w,A)};dt(),Ui(e,{get ariaDescribedBy(){return C(u)},id:y,get needsFocus(){return C(f)},onSubmitWhenValid:s,get formEl(){return g()},set formEl(w){g(w)},children:(w,A)=>{var E=p4(),O=qe(E);{var T=te=>{var ie=h4(),Se=de(ie);ce(ie),Te(_e=>Ul(Se,_e),[()=>(W(gr),n(),Z(()=>`--logo-light: ${gr(n().logo.light??"")}; --logo-dark: ${gr(n().logo.dark??"")}; height: ${n().logo.height?`${n().logo.height}px`:"72px"}; width: ${n().logo.width?`${n().logo.width}px`:"200px"};`))]),Q(te,ie)},L=te=>{var ie=g4(),Se=de(ie);p_(Se,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(ie),Q(te,ie)};Ze(O,te=>{n(),W(l()),Z(()=>{var ie;return((ie=n())==null?void 0:ie.logo)&&l()!=="modal"})?te(T):(W(d()),W(l()),Z(()=>{var ie;return((ie=d())==null?void 0:ie.icon)&&l()!=="inline"})&&te(L,1))})}var P=pe(O,2);we(P,"id",h);var N=de(P),I=de(N);{let te=me(()=>(W(S()),Z(()=>{var ie;return((ie=S())==null?void 0:ie.getHeader())||""})));nu(I,{html:!0,get string(){return C(te)}})}ce(N);var D=pe(N,2),F=de(D);{let te=me(()=>(W(S()),Z(()=>{var ie;return((ie=S())==null?void 0:ie.getDescription())||""})));nu(F,{html:!0,get string(){return C(te)}})}ce(D),ce(P),an(P,te=>Y(a,te),()=>C(a));var H=pe(P,2);{var R=te=>{Gn(te,{id:k,get needsFocus(){return C(b)},type:"error",children:(ie,Se)=>{Gt();var _e=Vt();Te(xe=>vt(_e,xe),[()=>(W(Ee),C(c),W(d()),Z(()=>{var xe;return Ee(C(c),null,(xe=d())==null?void 0:xe.message)}))]),Q(ie,_e)},$$slots:{default:!0}})};Ze(H,te=>{W(d()),Z(()=>{var ie;return(ie=d())==null?void 0:ie.message})&&te(R)})}var U=pe(H,2);Qn(U,1,()=>(W(S()),Z(()=>{var te;return(te=S())==null?void 0:te.callbacks})),Xn,(te,ie,Se)=>{{let _e=me(()=>(C(ie),W(_()),n(),Z(()=>{var xe,et;return{callback:C(ie),callbackMetadata:(xe=_())==null?void 0:xe.callbacks[Se],selfSubmitFunction:o,stepMetadata:((et=_())==null?void 0:et.step)&&{..._().step},style:n()}})));la(te,{get props(){return C(_e)}})}});var z=pe(U,2);{var G=te=>{{let ie=me(()=>(W(p()),Z(()=>{var Se;return(Se=p())==null?void 0:Se.loading})));On(te,{get busy(){return C(ie)},style:"primary",type:"submit",width:"full",children:(Se,_e)=>{ut(Se,{key:"nextButton"})},$$slots:{default:!0}})}},J=di(()=>(W(_()),Z(()=>{var te,ie;return!((ie=(te=_())==null?void 0:te.step)!=null&&ie.derived.isStepSelfSubmittable())}))),$=te=>{{let ie=me(()=>(W(p()),Z(()=>{var Se;return(Se=p())==null?void 0:Se.loading})));On(te,{get busy(){return C(ie)},style:"primary",type:"submit",width:"full",children:(Se,_e)=>{ut(Se,{key:"nextButton"})},$$slots:{default:!0}})}},ne=te=>{{let ie=me(()=>(W(p()),Z(()=>{var Se;return(Se=p())==null?void 0:Se.loading})));On(te,{get busy(){return C(ie)},style:"primary",type:"submit",width:"full",children:(Se,_e)=>{ut(Se,{key:"nextButton"})},$$slots:{default:!0}})}};Ze(z,te=>{C(J)?te(G):(W(_()),Z(()=>{var ie,Se;return(Se=(ie=_())==null?void 0:ie.step)==null?void 0:Se.derived.isUserInputOptional})?te($,1):(W(_()),Z(()=>{var ie,Se;return!((Se=(ie=_())==null?void 0:ie.step)!=null&&Se.derived.numOfSelfSubmittableCbs)})&&te(ne,2)))})}var ae=pe(z,2);Kf(ae,{get journey(){return p()}}),Q(w,E)},$$slots:{default:!0},$$legacy:!0});var v=He(m);return i(),v}var m4=_n('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"></path><path d="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path><title><!></title></svg>');function Zf(e,t){if(new.target)return We({component:Zf,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>Ge(t,p,_)},l=m4(),d=pe(de(l),2),g=de(d);return Nt(g,t,"default",{},null),ce(d),ce(l),Te(()=>{Ct(l,0,wn(n())),we(l,"height",r()),we(l,"width",r())}),Q(e,l),He(i)}var v4=ke('<div class="tw_flex tw_justify-center tw_pb-4"><div class="tw_dialog-logo dark:tw_dialog-logo_dark"></div></div>'),y4=ke('<div class="tw_flex tw_justify-center"><!></div>'),_4=ke('<h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1>'),w4=ke('<p class=" tw_my-4 tw_text-base tw_text-center tw_text-link-dark dark:tw_text-link-light"><button> </button> &nbsp; <button> </button></p> <hr class="tw_border-0 tw_border-b tw_border-secondary-light dark:tw_border-secondary-dark"/> <p class="tw_text-base tw_text-center tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),b4=ke("<!> <!> <!> <!> <!> <!>",1);function Yf(e,t){if(new.target)return We({component:Yf,...e});Ve(t,!1);const n=()=>or(Kr,"$styleStore",r),[r,i]=Pr();let l=V(t,"componentStyle",12),d=V(t,"form",12),g=V(t,"formEl",12,null),p=V(t,"journey",12),_=V(t,"metadata",12),S=V(t,"step",12),k=re(!1),h=re(""),y=re();function b(){var f,a,o;(a=(f=_())==null?void 0:f.step)!=null&&a.derived.isStepSelfSubmittable()&&((o=d())==null||o.submit())}Hn(()=>{var f;Y(k,!!((f=d())!=null&&f.message))}),jr(()=>{l()==="modal"&&uu(C(y),p())}),yt(()=>W(d()),()=>{var f;Y(h,aa((f=d())==null?void 0:f.message))}),Ot();var c={get componentStyle(){return l()},set componentStyle(f){l(f),B()},get form(){return d()},set form(f){d(f),B()},get formEl(){return g()},set formEl(f){g(f),B()},get journey(){return p()},set journey(f){p(f),B()},get metadata(){return _()},set metadata(f){_(f),B()},get step(){return S()},set step(f){S(f),B()},$set:Ke,$on:(f,a)=>Ge(t,f,a)};dt();{let f=me(()=>(W(d()),Z(()=>{var a;return(a=d())==null?void 0:a.submit})));Ui(e,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return C(f)},get formEl(){return g()},set formEl(a){g(a)},children:(a,o)=>{var s=b4(),m=qe(s);{var v=H=>{var R=v4(),U=de(R);ce(R),Te(z=>Ul(U,z),[()=>(W(gr),n(),Z(()=>`--logo-light: ${gr(n().logo.light??"")}; --logo-dark: ${gr(n().logo.dark??"")}; height: ${n().logo.height?`${n().logo.height}px`:"72px"}; width: ${n().logo.width?`${n().logo.width}px`:"200px"};`))]),Q(H,R)},w=H=>{var R=y4(),U=de(R);Zf(U,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(R),Q(H,R)};Ze(m,H=>{n(),W(l()),Z(()=>{var R;return((R=n())==null?void 0:R.logo)&&l()!=="modal"})?H(v):(W(l()),W(d()),Z(()=>{var R;return l()!=="inline"&&((R=d())==null?void 0:R.icon)})&&H(w,1))})}var A=pe(m,2);{var E=H=>{var R=_4(),U=de(R);ut(U,{key:"loginHeader"}),ce(R),Q(H,R)};Ze(A,H=>{l()!=="inline"&&H(E)})}var O=pe(A,2);{var T=H=>{Gn(H,{id:"formFailureMessageAlert",get needsFocus(){return C(k)},type:"error",children:(R,U)=>{Gt();var z=Vt();Te(G=>vt(z,G),[()=>(W(Ee),C(h),W(d()),Z(()=>{var G;return Ee(C(h),null,(G=d())==null?void 0:G.message)}))]),Q(R,z)},$$slots:{default:!0}})};Ze(O,H=>{W(d()),Z(()=>{var R;return(R=d())==null?void 0:R.message})&&H(T)})}var L=pe(O,2);Qn(L,1,()=>(W(S()),Z(()=>{var H;return(H=S())==null?void 0:H.callbacks})),Xn,(H,R,U)=>{{let z=me(()=>(C(R),W(_()),n(),Z(()=>{var G,J;return{callback:C(R),callbackMetadata:(G=_())==null?void 0:G.callbacks[U],selfSubmitFunction:b,stepMetadata:((J=_())==null?void 0:J.step)&&{..._().step},style:n()}})));la(H,{get props(){return C(z)}})}});var P=pe(L,2);{var N=H=>{{let R=me(()=>(W(p()),Z(()=>{var U;return(U=p())==null?void 0:U.loading})));On(H,{get busy(){return C(R)},style:"primary",type:"submit",width:"full",children:(U,z)=>{ut(U,{key:"loginButton"})},$$slots:{default:!0}})}},I=di(()=>(W(_()),Z(()=>{var H,R,U,z;return((R=(H=_())==null?void 0:H.step)==null?void 0:R.derived.isUserInputOptional)||!((z=(U=_())==null?void 0:U.step)!=null&&z.derived.isStepSelfSubmittable())})));Ze(P,H=>{C(I)&&H(N)})}var D=pe(P,2);{var F=H=>{var R=w4(),U=qe(R),z=de(U),G=de(z,!0);ce(z);var J=pe(z,2),$=de(J,!0);ce(J),ce(U);var ne=pe(U,4),ae=de(ne);ut(ae,{key:"dontHaveAnAccount",html:!0}),ce(ne),an(ne,te=>Y(y,te),()=>C(y)),Te((te,ie)=>{vt(G,te),vt($,ie)},[()=>(W(Ee),Z(()=>Ee("forgotPassword",null,"Forgot Password?"))),()=>(W(Ee),Z(()=>Ee("forgotUsername",null,"Forgot Username?")))]),mn("click",z,xl(()=>{p().push({journey:"ResetPassword"})})),mn("click",J,xl(()=>{p().push({journey:"ForgottenUsername"})})),Q(H,R)};Ze(D,H=>{l()!=="inline"&&H(F)})}Q(a,s)},$$slots:{default:!0},$$legacy:!0})}var u=He(c);return i(),u}var S4=ke('<div class="tw_flex tw_justify-center"><!></div>'),E4=ke('<!> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_text-sm tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),k4=ke("<!> <!> <!> <!>",1);function m_(e,t){if(new.target)return We({component:m_,...e});Ve(t,!1);const n=()=>or(Kr,"$style",r),[r,i]=Pr();let l=V(t,"componentStyle",12),d=V(t,"form",12),g=V(t,"formEl",12,null),p=V(t,"journey",12),_=V(t,"metadata",12),S=V(t,"step",12),k=re(!1),h=re(),y=re(""),b=re([]);function c(){var a,o,s;(o=(a=_())==null?void 0:a.step)!=null&&o.derived.isStepSelfSubmittable()&&((s=d())==null||s.submit())}Hn(()=>{var a;Y(k,!!((a=d())!=null&&a.message))}),yt(()=>(W(d()),W(S()),fe),()=>{var o;Y(y,aa((o=d())==null?void 0:o.message));const a=S().getCallbacksOfType(fe.ConfirmationCallback);if(a.length){const s=a[0];Y(h,s.getOptions().map((m,v)=>({value:`${v}`,text:m})))}Y(b,S().callbacks.filter(s=>s.getType()!==fe.ConfirmationCallback))}),Ot();var u={get componentStyle(){return l()},set componentStyle(a){l(a),B()},get form(){return d()},set form(a){d(a),B()},get formEl(){return g()},set formEl(a){g(a),B()},get journey(){return p()},set journey(a){p(a),B()},get metadata(){return _()},set metadata(a){_(a),B()},get step(){return S()},set step(a){S(a),B()},$set:Ke,$on:(a,o)=>Ge(t,a,o)};dt();{let a=me(()=>(W(d()),Z(()=>{var o;return(o=d())==null?void 0:o.submit})));Ui(e,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return C(a)},get formEl(){return g()},set formEl(o){g(o)},children:(o,s)=>{var m=k4(),v=qe(m);{var w=I=>{var D=E4(),F=qe(D);{var H=J=>{var $=S4(),ne=de($);Zf(ne,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce($),Q(J,$)};Ze(F,J=>{W(d()),Z(()=>{var $;return($=d())==null?void 0:$.icon})&&J(H)})}var R=pe(F,2),U=de(R);ut(U,{key:"twoFactorAuthentication"}),ce(R);var z=pe(R,2),G=de(z);ut(G,{key:"useTheAuthenticatorAppOnYourPhone"}),ce(z),Q(I,D)};Ze(v,I=>{l()!=="inline"&&I(w)})}var A=pe(v,2);{var E=I=>{Gn(I,{id:"formFailureMessageAlert",get needsFocus(){return C(k)},type:"error",children:(D,F)=>{Gt();var H=Vt();Te(R=>vt(H,R),[()=>(W(Ee),C(y),W(d()),Z(()=>{var R;return Ee(C(y),null,(R=d())==null?void 0:R.message)}))]),Q(D,H)},$$slots:{default:!0}})};Ze(A,I=>{W(d()),Z(()=>{var D;return(D=d())==null?void 0:D.message})&&I(E)})}var O=pe(A,2);Qn(O,1,()=>C(b),Xn,(I,D,F)=>{{let H=me(()=>(C(D),W(_()),n(),Z(()=>{var R,U;return{callback:C(D),callbackMetadata:(R=_())==null?void 0:R.callbacks[F],selfSubmitFunction:c,stepMetadata:((U=_())==null?void 0:U.step)&&{..._().step},style:n()}})));la(I,{get props(){return C(H)}})}});var T=pe(O,2);{var L=I=>{{let D=me(()=>(W(p()),Z(()=>{var F;return(F=p())==null?void 0:F.loading})));On(I,{get busy(){return C(D)},style:"primary",type:"submit",width:"full",children:(F,H)=>{ut(F,{get key(){return C(h),Z(()=>C(h)[0].text)}})},$$slots:{default:!0}})}},P=I=>{{let D=me(()=>(W(p()),Z(()=>{var F;return(F=p())==null?void 0:F.loading})));On(I,{get busy(){return C(D)},style:"primary",type:"submit",width:"full",children:(F,H)=>{ut(F,{key:"loginButton"})},$$slots:{default:!0}})}},N=di(()=>(W(_()),Z(()=>{var I,D,F,H;return((D=(I=_())==null?void 0:I.step)==null?void 0:D.derived.isUserInputOptional)||!((H=(F=_())==null?void 0:F.step)!=null&&H.derived.isStepSelfSubmittable())})));Ze(T,I=>{C(h),Z(()=>{var D;return(D=C(h))==null?void 0:D.length})?I(L):C(N)&&I(P,1)})}Q(o,m)},$$slots:{default:!0},$$legacy:!0})}var f=He(u);return i(),f}var C4=_n('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10 1.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1Zm-5 0A1.5 1.5 0 0 1 6.5 0h3A1.5 1.5 0 0 1 11 1.5v1A1.5 1.5 0 0 1 9.5 4h-3A1.5 1.5 0 0 1 5 2.5v-1Zm-2 0h1v1A2.5 2.5 0 0 0 6.5 5h3A2.5 2.5 0 0 0 12 2.5v-1h1a2 2 0 0 1 2 2V14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3.5a2 2 0 0 1 2-2Z"></path><title><!></title></svg>');function v_(e,t){if(new.target)return We({component:v_,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>Ge(t,p,_)},l=C4(),d=pe(de(l)),g=de(d);return Nt(g,t,"default",{},null),ce(d),ce(l),Te(()=>{Ct(l,0,wn(n())),we(l,"width",r()),we(l,"height",r())}),Q(e,l),He(i)}var I4=_n('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M3 2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V2zm6 11a1 1 0 1 0-2 0 1 1 0 0 0 2 0z"></path></svg>');function y_(e,t){if(new.target)return We({component:y_,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>Ge(t,d,g)},l=I4();return Te(()=>{Ct(l,0,wn(n())),we(l,"height",r()),we(l,"width",r())}),Q(e,l),He(i)}var A4=ke('<div class="tw_flex tw_justify-center tw_mb-6"><!></div>'),T4=ke('<!> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_text-sm tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),O4=ke('<div class="tw_text-center"><!> <p class="tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></div>'),P4=ke('<!> <!> <!> <canvas class="tw_m-auto tw_mb-6" data-testid="qr-code-canvas"></canvas> <!> <!> <details class="tw_my-6 tw_text-secondary-dark dark:tw_text-secondary-light"><summary><!></summary> <div class="tw_overflow-hidden"><!> <p class="tw_text-base tw_my-6"><!></p> <div class="tw_relative tw_overflow-hidden"><label for="mfa-registration-url"><!></label> <button class="tw_absolute tw_h-4 tw_bg-background-dark tw_right-1 tw_top-1 tw_shadow-[0_0_1rem_2rem_black] tw_shadow-background-light dark:tw_shadow-background-dark tw_text-secondary-dark dark:tw_text-secondary-light"><!></button> <input class="tw_bg-transparent tw_border-none focus-visible:tw_outline-none tw_font-mono tw_w-full" id="mfa-registration-url"/></div></div></details> <!>',1);function __(e,t){if(new.target)return We({component:__,...e});Ve(t,!1);const n=()=>or(Kr,"$style",r),[r,i]=Pr();let l=V(t,"componentStyle",12),d=V(t,"form",12),g=V(t,"formEl",12,null),p=V(t,"journey",12),_=V(t,"metadata",12),S=V(t,"step",12),k=re(!1),h=re(),y=re(""),b=re([]),c=re(!1),u=re(),f=re(),a=re(),o=re(""),s=re();function m(){var E,O,T;(O=(E=_())==null?void 0:E.step)!=null&&O.derived.isStepSelfSubmittable()&&((T=d())==null||T.submit())}async function v(){C(s).select(),document.execCommand("copy")}Hn(()=>{var E;Y(k,!!((E=d())!=null&&E.message))}),jr(()=>{async function E(){try{const O=await Promise.resolve().then(()=>XP);Y(c,!0),Y(o,Ty.getQRCodeData(S()).uri),O.toCanvas(C(a),C(o),{errorCorrectionLevel:"L",version:20,width:400},function(T){T&&(d(d().message=Ee("qrCodeFailedToRender"),!0),console.error(T))})}catch{d(d().message=Ee("qrCodeImportFailure"),!0),console.error("Failed to import QR Code library")}}E()}),yt(()=>(W(_()),W(S()),W(d())),()=>{var O;_()&&_(_().step.derived.stageName="QRCode",!0);const E=S().getCallbacksOfType(fe.ConfirmationCallback);if(E.length){const T=E[0];Y(h,T.getOptions().map((L,P)=>({value:`${P}`,text:L})))}S().callbacks.forEach((T,L)=>{T.getType()===fe.PollingWaitCallback&&(Y(u,T),Y(f,L))}),Y(y,aa((O=d())==null?void 0:O.message)),Y(b,S().callbacks.filter(T=>T.getType()===fe.TextOutputCallback||T.getType()===fe.ConfirmationCallback?!1:T.getType()!==fe.PollingWaitCallback))}),Ot();var w={get componentStyle(){return l()},set componentStyle(E){l(E),B()},get form(){return d()},set form(E){d(E),B()},get formEl(){return g()},set formEl(E){g(E),B()},get journey(){return p()},set journey(E){p(E),B()},get metadata(){return _()},set metadata(E){_(E),B()},get step(){return S()},set step(E){S(E),B()},$set:Ke,$on:(E,O)=>Ge(t,E,O)};dt();{let E=me(()=>(W(d()),Z(()=>{var O;return(O=d())==null?void 0:O.submit})));Ui(e,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return C(E)},get formEl(){return g()},set formEl(O){g(O)},children:(O,T)=>{var L=P4(),P=qe(L);{var N=Ce=>{var Xe=T4(),ge=qe(Xe);{var Le=kn=>{var Bn=A4(),zn=de(Bn);y_(zn,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(Bn),Q(kn,Bn)};Ze(ge,kn=>{W(d()),Z(()=>{var Bn;return(Bn=d())==null?void 0:Bn.icon})&&kn(Le)})}var Mt=pe(ge,2),It=de(Mt);ut(It,{key:"twoFactorAuthentication"}),ce(Mt);var Ut=pe(Mt,2),$t=de(Ut);ut($t,{key:"scanQrCodeWithAuthenticator"}),ce(Ut),Q(Ce,Xe)};Ze(P,Ce=>{l()!=="inline"&&Ce(N)})}var I=pe(P,2);{var D=Ce=>{Gn(Ce,{id:"formFailureMessageAlert",get needsFocus(){return C(k)},type:"error",children:(Xe,ge)=>{Gt();var Le=Vt();Te(Mt=>vt(Le,Mt),[()=>(W(Ee),C(y),W(d()),Z(()=>{var Mt;return Ee(C(y),null,(Mt=d())==null?void 0:Mt.message)}))]),Q(Xe,Le)},$$slots:{default:!0}})};Ze(I,Ce=>{W(d()),Z(()=>{var Xe;return(Xe=d())==null?void 0:Xe.message})&&Ce(D)})}var F=pe(I,2);{var H=Ce=>{var Xe=O4(),ge=de(Xe);pr(ge,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_my-6 tw_w-24"});var Le=pe(ge,2),Mt=de(Le);ut(Mt,{key:"loading"}),ce(Le),ce(Xe),Q(Ce,Xe)};Ze(F,Ce=>{C(c)||Ce(H)})}var R=pe(F,2);an(R,Ce=>Y(a,Ce),()=>C(a));var U=pe(R,2);Qn(U,1,()=>C(b),Xn,(Ce,Xe,ge)=>{{let Le=me(()=>(C(Xe),W(_()),n(),Z(()=>{var Mt,It;return{callback:C(Xe),callbackMetadata:(Mt=_())==null?void 0:Mt.callbacks[ge],selfSubmitFunction:m,stepMetadata:((It=_())==null?void 0:It.step)&&{..._().step},style:n()}})));la(Ce,{get props(){return C(Le)}})}});var z=pe(U,2);{var G=Ce=>{const Xe=me(()=>(C(u),W(_()),C(f),n(),Z(()=>{var ge;return{callback:C(u),callbackMetadata:(ge=_())==null?void 0:ge.callbacks[C(f)],options:{inline:!0},selfSubmitFunction:m,style:n()}})));qf(Ce,Zt(()=>C(Xe)))};Ze(z,Ce=>{C(u)&&Ce(G)})}var J=pe(z,2),$=de(J),ne=de($);ut(ne,{key:"qrCodeNotWorking"}),ce($);var ae=pe($,2),te=de(ae);Wf(te,{get href(){return C(o)},classes:"tw_block tw_my-6",target:"_self",children:(Ce,Xe)=>{ut(Ce,{key:"onMobileOpenInAuthenticator"})},$$slots:{default:!0}});var ie=pe(te,2),Se=de(ie);ut(Se,{key:"copyAndPasteUrlBelow"}),ce(ie);var _e=pe(ie,2),xe=de(_e),et=de(xe);ut(et,{key:"url"}),ce(xe);var xt=pe(xe,2),oe=de(xt);v_(oe,{classes:"tw_fill-current tw_inline-block tw_align-top",size:"16",children:(Ce,Xe)=>{ut(Ce,{key:"copyUrl"})},$$slots:{default:!0}}),ce(xt);var Ie=pe(xt,2);Hr(Ie),an(Ie,Ce=>Y(s,Ce),()=>C(s)),ce(_e),ce(ae),ce(J);var Be=pe(J,2);{var $e=Ce=>{{let Xe=me(()=>(W(p()),Z(()=>{var ge;return(ge=p())==null?void 0:ge.loading})));On(Ce,{get busy(){return C(Xe)},style:"primary",type:"submit",width:"full",children:(ge,Le)=>{ut(ge,{get key(){return C(h),Z(()=>C(h)[0].text)}})},$$slots:{default:!0}})}};Ze(Be,Ce=>{C(h),Z(()=>{var Xe;return(Xe=C(h))==null?void 0:Xe.length})&&Ce($e)})}Te(()=>id(Ie,C(o))),mn("click",xt,v),Q(O,L)},$$slots:{default:!0},$$legacy:!0})}var A=He(w);return i(),A}var R4=_n('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 18"><path fill-rule="evenodd" d="M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.777 11.777 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7.159 7.159 0 0 0 1.048-.625 11.775 11.775 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.541 1.541 0 0 0-1.044-1.263 62.467 62.467 0 0 0-2.887-.87C9.843.266 8.69 0 8 0zm2.146 5.146a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 7.793l2.646-2.647z"></path></svg>');function w_(e,t){if(new.target)return We({component:w_,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>Ge(t,d,g)},l=R4();return Te(()=>{we(l,"height",r()),we(l,"width",r()),Ct(l,0,wn(n()))}),Q(e,l),He(i)}var M4=ke('<div class="tw_flex tw_justify-center"><!></div>'),L4=ke('<li class="tw_text-center"><span class="tw_text-secondary-dark dark:tw_text-secondary-light"> </span></li>'),D4=ke('<!> <header><h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_-mt-5 tw_mb-2 tw_py-4 tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></header> <hr class="tw_border-collapse tw_border-secondary-light dark:tw_border-secondary-dark tw_mb-8"/> <h2 class="tw_secondary-header dark:tw_secondary-header_dark tw_text-lg"><!></h2> <p class="tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light tw_my-6"><!></p> <ol class="tw_font-mono tw_border tw_border-secondary-light dark:tw_border-secondary-dark tw_bg-white dark:tw_bg-body-dark tw_list-decimal tw_text-secondary-light dark:tw_text-secondary-light tw_py-4 tw_list-inside tw_rounded-md tw_mb-4 tw_columns-2"></ol> <p class="tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light tw_my-6"><!></p> <!>',1);function b_(e,t){if(new.target)return We({component:b_,...e});Ve(t,!1);let n=V(t,"componentStyle",12),r=V(t,"form",12),i=V(t,"formEl",12,null),l=V(t,"journey",12),d=V(t,"step",12);const g="genericStepFailureMessage",p="genericStepHeader",_="genericStepForm";let S=re("genericStepHeader"),k=re(!1),h=re([]),y=re("New Security Key");Hn(()=>{var c;(c=r())!=null&&c.message?(Y(S,g),Y(k,!1)):(Y(S,p),Y(k,!0))}),yt(()=>W(d()),()=>{Y(h,Nf.getCodes(d())),Y(y,Nf.getDeviceName(d()))}),Ot();var b={get componentStyle(){return n()},set componentStyle(c){n(c),B()},get form(){return r()},set form(c){r(c),B()},get formEl(){return i()},set formEl(c){i(c),B()},get journey(){return l()},set journey(c){l(c),B()},get step(){return d()},set step(c){d(c),B()},$set:Ke,$on:(c,u)=>Ge(t,c,u)};return dt(),Ui(e,{get ariaDescribedBy(){return C(S)},id:_,get needsFocus(){return C(k)},onSubmitWhenValid:()=>r().submit(),get formEl(){return i()},set formEl(c){i(c)},children:(c,u)=>{var f=D4(),a=qe(f);{var o=F=>{var H=M4(),R=de(H);w_(R,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(H),Q(F,H)};Ze(a,F=>{W(r()),W(n()),Z(()=>{var H;return((H=r())==null?void 0:H.icon)&&n()!=="inline"})&&F(o)})}var s=pe(a,2);we(s,"id",p);var m=de(s),v=de(m);ut(v,{key:"yourMultiFactorAuthIsEnabled"}),ce(m);var w=pe(m,2),A=de(w);ut(A,{key:"useThisNewMfaToHelpVerifyYourIdentity"}),ce(w),ce(s);var E=pe(s,4),O=de(E);ut(O,{key:"dontGetLockedOut"}),ce(E);var T=pe(E,2),L=de(T);ut(L,{html:!0,key:"yourRecoveryCodesToAccessAccountForLostDevice"}),ce(T);var P=pe(T,2);Qn(P,5,()=>C(h),Xn,(F,H)=>{var R=L4(),U=de(R),z=de(U,!0);ce(U),ce(R),Te(()=>vt(z,C(H))),Q(F,R)}),ce(P);var N=pe(P,2),I=de(N);{let F=me(()=>({name:C(y)}));ut(I,{html:!0,key:"useOneOfTheseCodes",get values(){return C(F)}})}ce(N);var D=pe(N,2);{let F=me(()=>(W(l()),Z(()=>{var H;return(H=l())==null?void 0:H.loading})));On(D,{get busy(){return C(F)},style:"primary",type:"submit",width:"full",children:(H,R)=>{ut(H,{key:"nextButton"})},$$slots:{default:!0}})}Q(c,f)},$$slots:{default:!0},$$legacy:!0}),He(b)}var x4=_n('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"></path><path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"></path><title><!></title></svg>');function S_(e,t){if(new.target)return We({component:S_,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>Ge(t,p,_)},l=x4(),d=pe(de(l),2),g=de(d);return Nt(g,t,"default",{},null),ce(d),ce(l),Te(()=>{Ct(l,0,wn(n())),we(l,"height",r()),we(l,"width",r())}),Q(e,l),He(i)}var N4=ke('<div class="tw_flex tw_justify-center"><!></div>'),U4=ke('<!> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-base tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),F4=ke("<!> <!> <!> <!>",1);function E_(e,t){if(new.target)return We({component:E_,...e});Ve(t,!1);const n=()=>or(Kr,"$styleStore",r),[r,i]=Pr();let l=V(t,"componentStyle",12),d=V(t,"form",12),g=V(t,"formEl",12,null),p=V(t,"journey",12),_=V(t,"metadata",12),S=V(t,"step",12),k=re(!1),h=re(""),y=re();function b(){var f,a,o;(a=(f=_())==null?void 0:f.step)!=null&&a.derived.isStepSelfSubmittable()&&((o=d())==null||o.submit())}Hn(()=>{var f;Y(k,!!((f=d())!=null&&f.message))}),jr(()=>{l()==="modal"&&uu(C(y),p())}),yt(()=>W(d()),()=>{var f;Y(h,aa((f=d())==null?void 0:f.message))}),Ot();var c={get componentStyle(){return l()},set componentStyle(f){l(f),B()},get form(){return d()},set form(f){d(f),B()},get formEl(){return g()},set formEl(f){g(f),B()},get journey(){return p()},set journey(f){p(f),B()},get metadata(){return _()},set metadata(f){_(f),B()},get step(){return S()},set step(f){S(f),B()},$set:Ke,$on:(f,a)=>Ge(t,f,a)};dt();{let f=me(()=>(W(d()),Z(()=>{var a;return(a=d())==null?void 0:a.submit})));Ui(e,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return C(f)},get formEl(){return g()},set formEl(a){g(a)},children:(a,o)=>{var s=F4(),m=qe(s);{var v=P=>{var N=U4(),I=qe(N);{var D=z=>{var G=N4(),J=de(G);S_(J,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(G),Q(z,G)};Ze(I,z=>{W(d()),Z(()=>{var G;return(G=d())==null?void 0:G.icon})&&z(D)})}var F=pe(I,2),H=de(F);ut(H,{key:"registerHeader"}),ce(F);var R=pe(F,2),U=de(R);ut(U,{key:"alreadyHaveAnAccount",html:!0}),ce(R),an(R,z=>Y(y,z),()=>C(y)),Q(P,N)};Ze(m,P=>{l()!=="inline"&&P(v)})}var w=pe(m,2);{var A=P=>{Gn(P,{id:"formFailureMessageAlert",get needsFocus(){return C(k)},type:"error",children:(N,I)=>{Gt();var D=Vt();Te(F=>vt(D,F),[()=>(W(Ee),C(h),W(d()),Z(()=>{var F;return Ee(C(h),null,(F=d())==null?void 0:F.message)}))]),Q(N,D)},$$slots:{default:!0}})};Ze(w,P=>{W(d()),Z(()=>d().message)&&P(A)})}var E=pe(w,2);Qn(E,1,()=>(W(S()),Z(()=>{var P;return(P=S())==null?void 0:P.callbacks})),Xn,(P,N,I)=>{{let D=me(()=>(C(N),W(_()),n(),Z(()=>{var F,H;return{callback:C(N),callbackMetadata:(F=_())==null?void 0:F.callbacks[I],selfSubmitFunction:b,stepMetadata:((H=_())==null?void 0:H.step)&&{..._().step},style:n()}})));la(P,{get props(){return C(D)}})}});var O=pe(E,2);{var T=P=>{{let N=me(()=>(W(p()),Z(()=>{var I;return(I=p())==null?void 0:I.loading})));On(P,{get busy(){return C(N)},style:"primary",type:"submit",width:"full",children:(I,D)=>{ut(I,{key:"registerButton"})},$$slots:{default:!0}})}},L=di(()=>(W(_()),Z(()=>{var P,N,I,D;return((N=(P=_())==null?void 0:P.step)==null?void 0:N.derived.isUserInputOptional)||!((D=(I=_())==null?void 0:I.step)!=null&&D.derived.isStepSelfSubmittable())})));Ze(O,P=>{C(L)&&P(T)})}Q(a,s)},$$slots:{default:!0},$$legacy:!0})}var u=He(c);return i(),u}var B4=_n('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8.06 6.5a.5.5 0 0 1 .5.5v.776a11.5 11.5 0 0 1-.552 3.519l-1.331 4.14a.5.5 0 0 1-.952-.305l1.33-4.141a10.5 10.5 0 0 0 .504-3.213V7a.5.5 0 0 1 .5-.5Z"></path><path d="M6.06 7a2 2 0 1 1 4 0 .5.5 0 1 1-1 0 1 1 0 1 0-2 0v.332c0 .409-.022.816-.066 1.221A.5.5 0 0 1 6 8.447c.04-.37.06-.742.06-1.115V7Zm3.509 1a.5.5 0 0 1 .487.513 11.5 11.5 0 0 1-.587 3.339l-1.266 3.8a.5.5 0 0 1-.949-.317l1.267-3.8a10.5 10.5 0 0 0 .535-3.048A.5.5 0 0 1 9.569 8Zm-3.356 2.115a.5.5 0 0 1 .33.626L5.24 14.939a.5.5 0 1 1-.955-.296l1.303-4.199a.5.5 0 0 1 .625-.329Z"></path><path d="M4.759 5.833A3.501 3.501 0 0 1 11.559 7a.5.5 0 0 1-1 0 2.5 2.5 0 0 0-4.857-.833.5.5 0 1 1-.943-.334Zm.3 1.67a.5.5 0 0 1 .449.546 10.72 10.72 0 0 1-.4 2.031l-1.222 4.072a.5.5 0 1 1-.958-.287L4.15 9.793a9.72 9.72 0 0 0 .363-1.842.5.5 0 0 1 .546-.449Zm6 .647a.5.5 0 0 1 .5.5c0 1.28-.213 2.552-.632 3.762l-1.09 3.145a.5.5 0 0 1-.944-.327l1.089-3.145c.382-1.105.578-2.266.578-3.435a.5.5 0 0 1 .5-.5Z"></path><path d="M3.902 4.222a4.996 4.996 0 0 1 5.202-2.113.5.5 0 0 1-.208.979 3.996 3.996 0 0 0-4.163 1.69.5.5 0 0 1-.831-.556Zm6.72-.955a.5.5 0 0 1 .705-.052A4.99 4.99 0 0 1 13.059 7v1.5a.5.5 0 1 1-1 0V7a3.99 3.99 0 0 0-1.386-3.028.5.5 0 0 1-.051-.705ZM3.68 5.842a.5.5 0 0 1 .422.568c-.029.192-.044.39-.044.59 0 .71-.1 1.417-.298 2.1l-1.14 3.923a.5.5 0 1 1-.96-.279L2.8 8.821A6.531 6.531 0 0 0 3.058 7c0-.25.019-.496.054-.736a.5.5 0 0 1 .568-.422Zm8.882 3.66a.5.5 0 0 1 .456.54c-.084 1-.298 1.986-.64 2.934l-.744 2.068a.5.5 0 0 1-.941-.338l.745-2.07a10.51 10.51 0 0 0 .584-2.678.5.5 0 0 1 .54-.456Z"></path><path d="M4.81 1.37A6.5 6.5 0 0 1 14.56 7a.5.5 0 1 1-1 0 5.5 5.5 0 0 0-8.25-4.765.5.5 0 0 1-.5-.865Zm-.89 1.257a.5.5 0 0 1 .04.706A5.478 5.478 0 0 0 2.56 7a.5.5 0 0 1-1 0c0-1.664.626-3.184 1.655-4.333a.5.5 0 0 1 .706-.04ZM1.915 8.02a.5.5 0 0 1 .346.616l-.779 2.767a.5.5 0 1 1-.962-.27l.778-2.767a.5.5 0 0 1 .617-.346Zm12.15.481a.5.5 0 0 1 .49.51c-.03 1.499-.161 3.025-.727 4.533l-.07.187a.5.5 0 0 1-.936-.351l.07-.187c.506-1.35.634-2.74.663-4.202a.5.5 0 0 1 .51-.49Z"></path></svg>');function k_(e,t){if(new.target)return We({component:k_,...e});Ve(t,!1);let n=V(t,"classes",12,""),r=V(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>Ge(t,d,g)},l=B4();return Te(()=>{Ct(l,0,wn(n())),we(l,"height",r()),we(l,"width",r())}),Q(e,l),He(i)}var z4=ke('<div class="tw_flex tw_justify-center"><!></div>'),V4=ke('<div class="tw_text-center tw_w-full tw_py-4"><!></div>'),H4=ke('<header><div class="tw_text-center tw_w-full tw_py-4"><!></div> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></header>'),j4=ke('<h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <!> <!>',1),q4=ke('<h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),W4=ke('<header class="tw_input-spacing"><!></header>'),G4=ke("<!> <!> <!> <!>",1);function C_(e,t){if(new.target)return We({component:C_,...e});Ve(t,!1);let n=V(t,"allowWebAuthn",12,!0),r=V(t,"componentStyle",12),i=V(t,"form",12),l=V(t,"formEl",12,null),d=V(t,"step",12);const g="genericStepFailureMessage",p="genericStepHeader",_="genericStepForm";let S=re(!1),k=re(""),h=re(""),y=re("genericStepHeader"),b=re(!1),c=re(!0),u=re(!1),f=!1,a=$r.getWebAuthnStepType(d());function o(v){const w=v.target;Y(k,w.value)}Hn(()=>{var v;(v=i())!=null&&v.message?(Y(y,g),Y(S,!0),Y(b,!1)):(Y(y,p),Y(S,!1),Y(b,!0)),n()&&!f&&(nr.Registration===a&&!C(c)||nr.Authentication===a)&&(f=!0,s())});async function s(){try{switch(a){case nr.Registration:{try{await $r.register(d(),C(k))}catch{}break}case nr.Authentication:{await $r.authenticate(d());break}default:break}}catch(v){console.debug("Passkey autofill attempt did not complete",v)}i().submit()}yt(()=>W(i()),()=>{var v;Y(h,aa((v=i())==null?void 0:v.message))}),Ot();var m={get allowWebAuthn(){return n()},set allowWebAuthn(v){n(v),B()},get componentStyle(){return r()},set componentStyle(v){r(v),B()},get form(){return i()},set form(v){i(v),B()},get formEl(){return l()},set formEl(v){l(v),B()},get step(){return d()},set step(v){d(v),B()},$set:Ke,$on:(v,w)=>Ge(t,v,w)};return dt(),Ui(e,{get ariaDescribedBy(){return C(y)},id:_,get needsFocus(){return C(b)},get formEl(){return l()},set formEl(v){l(v)},children:(v,w)=>{var A=G4(),E=qe(A);{var O=H=>{var R=z4(),U=de(R);k_(U,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(R),Q(H,R)};Ze(E,H=>{W(i()),W(r()),Z(()=>{var R;return((R=i())==null?void 0:R.icon)&&r()!=="inline"})&&H(O)})}var T=pe(E,2);{var L=H=>{var R=V4(),U=de(R);pr(U,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),ce(R),Q(H,R)};Ze(T,H=>{C(u)&&H(L)})}var P=pe(T,2);{var N=H=>{Gn(H,{id:g,get needsFocus(){return C(S)},type:"error",children:(R,U)=>{Gt();var z=Vt();Te(G=>vt(z,G),[()=>(W(Ee),C(h),W(i()),Z(()=>{var G;return Ee(C(h),null,(G=i())==null?void 0:G.message)}))]),Q(R,z)},$$slots:{default:!0}})};Ze(P,H=>{W(i()),Z(()=>{var R;return(R=i())==null?void 0:R.message})&&H(N)})}var I=pe(P,2);{var D=H=>{var R=H4();we(R,"id",p);var U=de(R),z=de(U);pr(z,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),ce(U);var G=pe(U,2),J=de(G);ut(J,{key:"verifyYourIdentity"}),ce(G);var $=pe(G,2),ne=de($);ut(ne,{key:"useDeviceForIdentityVerification"}),ce($),ce(R),Q(H,R)},F=H=>{var R=W4();we(R,"id",p);var U=de(R);{var z=J=>{var $=j4(),ne=qe($),ae=de(ne);ut(ae,{key:"nameYourDevice"}),ce(ne);var te=pe(ne,2);{let Se=me(()=>(W(Ee),Z(()=>Ee("optionallyNameDevice"))));zi(te,{type:"text",isRequired:!1,isFirstInvalidInput:!1,key:"devicename",onChange:o,get label(){return C(Se)}})}var ie=pe(te,2);On(ie,{style:"primary",type:"submit",width:"full",onClick:()=>{Y(c,!1),Y(u,!0)},children:(Se,_e)=>{ut(Se,{key:"nextButton"})},$$slots:{default:!0}}),Q(J,$)},G=J=>{var $=q4(),ne=qe($),ae=de(ne);{let Se=me(()=>(C(k),W(Ee),Z(()=>({name:C(k).length>0?C(k):Ee("yourDevice")}))));ut(ae,{key:"registerYourDevice",get values(){return C(Se)}})}ce(ne);var te=pe(ne,2),ie=de(te);ut(ie,{key:"chooseYourDeviceForIdentityVerification"}),ce(te),Q(J,$)};Ze(U,J=>{C(c)?J(z):J(G,-1)})}ce(R),Q(H,R)};Ze(I,H=>{W(nr),Z(()=>a===nr.Authentication)?H(D):H(F,-1)})}Q(v,A)},$$slots:{default:!0},$$legacy:!0}),He(m)}function K4(e,t={}){var i,l;if(!e||e.type!=="Step")return $f;const n=(l=(i=e==null?void 0:e.getStage)==null?void 0:i.call(e))==null?void 0:l.trim();if(n&&h_[n])return h_[n].component;switch((e==null?void 0:e.getStage)&&e.getStage()){case"OneTimePassword":return m_;case"DefaultRegistration":return E_;case"DefaultLogin":return Yf}if(H5(e))return Yf;if($r.getWebAuthnStepType(e))return C_;if(Nf.isDisplayStep(e))return b_;if(Ty.isQRCodeStep(e))return __;if(e.getCallbacksOfType(fe.SuspendedTextOutputCallback).length>0)return g_;for(const d of Object.values(t))if(d.detect(e))return d.component;return $f}var $4=ke('<div class="tw_text-center tw_w-full tw_py-4"><!></div>'),Z4=ke('<div class="tw_text-center tw_w-full tw_py-4"><!></div>'),Y4=ke("<!> <!>",1);function Jf(e,t){if(new.target)return We({component:Jf,...e});Ve(t,!1);const n=()=>or(p(),"$journeyStore",r),[r,i]=Pr();let l=V(t,"componentStyle",12),d=V(t,"displayIcon",12),g=V(t,"formEl",12,null),p=V(t,"journeyStore",12),_=V(t,"externalStages",28,()=>({}));n()||(console.error("Error: missing configuration."),console.error(`Import \`configure\` and \`await\` it before using the journey, user, or protect APIs. Example:
52
52
  import { configure } from '@forgerock/login-widget';
53
53
  await configure({
54
- wellknown: 'https://<tenant>/am/oauth2/<realm>/.well-known/openid-configuration',
54
+ serverConfig: { wellknown: 'https://<tenant>/am/oauth2/<realm>/.well-known/openid-configuration' },
55
55
  oidcClient: { clientId: '<client-id>', redirectUri: '<your-app-origin>/callback', scope: 'openid profile email' },
56
- });`));let S=re(!1);const k=p()?f3(p()):null;function h(){var v;k==null||k.abort();const m=n().step;m&&m.type==="Step"&&((v=p())==null||v.next(m))}async function y(){var m,v;(m=p())==null||m.reset();try{const w=await ll.latest();await((v=p())==null?void 0:v.start(w))}catch(w){console.error("Unable to restart journey",w)}}Vn(()=>{Y(S,n()&&!n().successful)}),Vw(()=>{k==null||k.destroy()});var b={get componentStyle(){return l()},set componentStyle(m){l(m),B()},get displayIcon(){return d()},set displayIcon(m){d(m),B()},get formEl(){return g()},set formEl(m){g(m),B()},get journeyStore(){return p()},set journeyStore(m){p(m),B()},get externalStages(){return _()},set externalStages(m){_(m),B()},$set:Ke,$on:(m,v)=>We(t,m,v)};ut();var c=mt(),u=qe(c);{var f=m=>{var v=mt(),w=qe(v);{var A=O=>{var T=RP(),M=de(T);gr(M,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),ce(T),Q(O,T)},E=O=>{var T=mt(),M=qe(T);{let P=me(()=>(G(d()),n(),Z(()=>{var I,D;return{icon:d(),message:((I=n().error)==null?void 0:I.message)||"",status:(D=n().error)!=null&&D.code?"error":"ok",submit:h}}))),x=me(()=>(n(),G(p()),G(ll),Z(()=>({loading:n().loading,pop:p().pop,push:p().push,stack:ll,redirect:p().redirect}))));Cg(M,()=>PP(n().step,_()),(I,D)=>{D(I,{get componentStyle(){return l()},get form(){return C(P)},get journey(){return C(x)},get metadata(){return n(),Z(()=>n().metadata)},get step(){return n(),Z(()=>n().step)},get formEl(){return g()},set formEl(V){g(V)},$$legacy:!0})})}Q(O,T)};Ze(w,O=>{n(),Z(()=>n()&&!n().step)?O(A):(n(),Z(()=>{var T;return((T=n().step)==null?void 0:T.type)==="Step"})&&O(E,1))})}Q(m,v)},s=m=>{var v=MP(),w=de(v);gr(w,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),ce(v),Q(m,v)},o=m=>{var v=LP(),w=qe(v);qn(w,{id:"unrecoverableStepError",get needsFocus(){return C(S)},type:"error",children:(E,O)=>{dt(E,{html:!0,key:"unrecoverableError"})},$$slots:{default:!0}});var A=pe(w,2);Un(A,{style:"secondary",onClick:y,children:(E,O)=>{dt(E,{key:"tryAgain"})},$$slots:{default:!0}}),Q(m,v)};Ze(u,m=>{n(),Z(()=>n()&&!n().completed)?m(f):(n(),Z(()=>n()&&n().successful)?m(s,1):m(o,-1))})}Q(e,c);var a=je(b);return i(),a}const cl=X5(Lg()),DP=cl.configure,NP=cl.journey,xP=Lg,UP=cl.user,FP=cl.protect;var BP=Ce('<div class="fr_widget-root svelte-1qcpfdr"><!></div>'),zP=Ce('<div class="fr_widget-root svelte-1qcpfdr"><!></div>');function __(e,t){if(new.target)return Ge({component:__,...e});He(t,!1);const n=()=>sr(Wr,"$styleStore",r),[r,i]=Or();let l=z(t,"type",12,"modal");const{journeyStore:d}=cl.getStores();let g=re(),p=re(),_=re(),S=re();Hr(()=>{jw(C(g),C(p))}),vt(()=>(C(S),n()),()=>{var f;a3(C(S),(f=n())==null?void 0:f.theme)}),Tt();var k={get type(){return l()},set type(f){l(f),B()},$set:Ke,$on:(f,s)=>We(t,f,s)};ut();var h=mt(),y=qe(h);{var b=f=>{var s=BP(),o=de(s);{let a=me(()=>(n(),Z(()=>{var m,v;return(v=(m=n())==null?void 0:m.sections)==null?void 0:v.header})));an(_y(o,{dialogId:"sampleDialog",get withHeader(){return C(a)},get dialogEl(){return C(p)},set dialogEl(m){Y(p,m)},children:(m,v)=>{{let w=me(()=>(n(),Z(()=>{var A,E,O;return((E=(A=n())==null?void 0:A.stage)==null?void 0:E.icon)??!((O=n())!=null&&O.logo)})));Kf(m,{componentStyle:"modal",get displayIcon(){return C(w)},get journeyStore(){return d},get formEl(){return C(_)},set formEl(A){Y(_,A)},$$legacy:!0})}},$$slots:{default:!0},$$legacy:!0}),m=>Y(g,m),()=>C(g))}ce(s),an(s,a=>Y(S,a),()=>C(S)),Q(f,s)},c=f=>{var s=zP(),o=de(s);{let a=me(()=>(n(),Z(()=>{var m,v;return((v=(m=n())==null?void 0:m.stage)==null?void 0:v.icon)??!0})));Kf(o,{componentStyle:"inline",get displayIcon(){return C(a)},get journeyStore(){return d},get formEl(){return C(_)},set formEl(m){Y(_,m)},$$legacy:!0})}ce(s),an(s,a=>Y(S,a),()=>C(S)),Q(f,s)};Ze(y,f=>{l()==="modal"?f(b):f(c,-1)})}Q(e,h);var u=je(k);return i(),u}if(typeof window<"u"){let p=function(h,y){const b=_();return p=function(c,u){return c=c-308,b[c]},p(h,y)},_=function(){const h=["NAVIGATOR_LANGUAGE","DeviceMotionEvent","languages","Microsoft YaHei","isBatterySupported","driver","RunPerfTest","ie8compat","UAParserHelperMetadata","hasInput","password","cpuClass","iframeWindow","Hoefler Text","Yahoo! Japan","getAutofillMetadataSmart","code","hasOwnProperty","fingerPrintComponents","LKLUG","debug","visibility","createDataChannel","animationstart","external","span","Segoe MDL2 Assets","input:-webkit-autofill { animation: autofill-detection 0.001s; }","_ST_PING","audio/aac","csi","width","Poppins"," [native code]","origin","__webdriver_unwrapped","VENDOR","hasTrustToken","NAVIGATOR_POINTER_ENABLED","websockets","window_fmget_targets","getFingerPrint","Open Sans","you","Battery not supported!","statusText","localStorage","window","next","removeItem","engine","trim","MS Reference Specialty","webgl2","matchmedia","__fxdriver_unwrapped","Pristina","hasPassword","Consolas","DetectHeadless","mmMwWLliI0O&1","includes","__fxdriver_evaluate","mozConnection","Herculanum","contextmenu","', ","Raleway","VIDEO_CARD","headlessTests","Menlo","Chalkboard","universalTrustEnabled","Apple Symbols","closed","inapp","sinh","BROWSER_VOICES_COUNT","safari","toLowerCase","selenium_in_window","ambient-light-sensor","getContext","baseFonts","internationalization","failed to get broJsFingerprint info","Windows Phone","Other","getLies","createOffer","Trattatello","Noto Sans CJK SC","webdriverCommand","__lastWatirAlert","HASLIEDRESOLUTION","engineVersion","getNewObjectToStringTypeErrorLie","documentLie","detectFontsQuick","onicecandidate","custom_event","ZTE","getHasLiedResolution","getAttribute","backgroundColor","size","Failed to setup autofill detection:","configurable","isIphoneOrIPad","Serifa","27szwMUD","indexed_db_blob","join","INPUT","Segoe Script","webkitRequestFileSystem","constructor","MAX_VARYING_VECTORS","Liberation Mono","Bodoni 72 Smallcaps","MingLiU-ExtB","LvTel","acos","timeout","Georgia","toFixed","Baskerville","Sawasdee","AGENT_DEVICE_URL","failed to add client hints","error_code","now","isCanvasSupported","rgb(250, 255, 189)","Futura Bk BT","quota detection failed: ","Cochin","htmlGeoLocation_heading","mediaplayer","detectAutofillFieldsAsync","version","setAttribute","light","NAVIGATOR_HID_SUPPORTED","spawn","type","testString","initDeviceIdentity","createInvisibleElement","awesomium","canPlayType","getAllLies","FingerPrint failed","open","AT&T","Noto Color Emoji","AUDIO_OUTPUT_DEVICES","formFactor","ondevicelight","cosh","addStealthTest","denied","getHasLiedBrowser","speechSynthesis","map","history","SimSun","getSupportedExtensions","keys","autocomplete","BATTERY_CHARGING_TIME","COOKIES_ENABLED","Zeki","sans-serif-medium","userLanguage","detectFontsWithCanvas","getQuickFingerprint","vendorFlavors","consistent_mimetypes_prototype","colorGamut","Envizen","batteryCharging","language","...","connect","Notification","NAVIGATOR_USER_AGENT","font","filter","requestanimationframe","webRtcIps","length","processInputsWithTimeout","sessionStorage.length","DejaVu Serif","isInvalidStackTraceSize","add","ontouchstart","addPropertyDescriptorInfo","split","getGeoLocationData","rgb(232, 240, 254)","Standard Symbols L","Modernizr","error","indexeddb","NAVIGATOR_KEYBOARD_SUPPORTED","dataforseobot","OS_CPU","HAS_HOVER","failed to get audio-video info","application_cache","FingerprintJS","Humanst521 BT","(any-hover: hover)","headless_chrome","getIoMetadata","detectFonts","getAiaSignals","Ubuntu","battery_api","latitude","apply","Ubuntu Condensed","sans-serif-thin","bluetooth","__proto__","webkitTemporaryStorage","screen","Arial","claudebot","Trebuchet MS","dark","query","openDatabase","PMingLiU","true","JS_FONTS","DOCUMENT_ELEMENT_DRIVER","Font detection failed","PromiseQueue","getPermissionsMetadata","browserInfo","semrushbot-ocob","vertical","(prefers-color-scheme: light)","Internet Explorer","Symbol","Segoe Print","web_sockets","Times","FontFingerprint","NAVIGATOR_CLIENT_HINTS_BITNESS","calculated browser device attributes.","test"," in async detection:","googleother-video","Meera","agentPort","selenium_in_navigator","videoInputDevices","has","MAX_VERTEX_ATTRIBS","$cdc_asdjflasutopfhvcZLmcfl_","_phantom","NAVIGATOR_DEVICE_MEMORY","Minion Pro","productSub","getIdentificationMetadata","BATTERY_DISCHARGING_TIME","fontHash","clipboard-read","SCREEN_FRAME","seleniumSequentum","***","Sitka","visitorId","granted","HAS_CHROME_RUNTIME","timestamp","canvas","sans-serif-light","find","none","FreeMono","cant","window_RunPerfTest","Copperplate","getOwnPropertyDescriptors","SignPainter","ondevicemotion","fillText","maxTextureSize","game_pads","MQ_SCREEN","webkit-autofill","ipod","LocalAgentAccessor","_WEBDRIVER_ELEM_CACHE","maxFragmentUniformVectors","unknown","addIframeData","getAutofillMetadata","undefined","coords","collectWebRtc","MAX_VERTEX_UNIFORM_VECTORS","Zapfino","gpsSupported","ondeviceproximity","FreeSans","Avenir Next Condensed","browser","NAVIGATOR_VIBRATE","ligatures","plugins","Century","AUDIO_FINGERPRINT","Failed to fetch the Workstation data. Invalid network response: ","externalIdentifiers","number","setTrustToken","Mukta","autocompleted","SDKBP_FINGERPRINT","blob_constructor","failed to get battery info","Montserrat","NAVIGATOR_SERIAL_SUPPORTED","maxVertexUniformVectors","height","batteryInit","audioInputDevices","ARCHITECTURE","Browser unknown","mobile","Ubuntu Mono","Roboto Slab","Avenir","privateClickMeasurement","querySelectorAll","requestIdleCallback","Tahoma","detectInputAutofill","AvantGarde Bk BT","fontList","pow","Haettenschweiler","set","getToStringLie","perplexitybot","Didot","Noto Sans CJK JP","Bahnschrift","data-lastpass-icon-id","GYROSCOPE_SUPPORTED","experimental-webgl","WEBGL_MAXVERTEXATTRIBS","Segoe UI Symbol","isChromeFamily","failed to get headless results","pointerevents","chrome_runtime_functions_invalid","animationName","Savoye LET","Error in smart autofill detection, falling back to sync:","DejaVu Sans Mono","__awaiter","MAX_RENDERBUFFER_SIZE","Courier New","Apple SD Gothic Neo","dataPoints","deviceId","top","SimHei","intl","isArray","isAutofilled","model","webRtcUrl","_FAILED","NAVIGATOR_CLIENT_HINTS_FULL_VERSION","user","Mac","trident","videoinput","onLine","Playfair Display","Firefox","expm1","metadataParams","cookiesEnabled","detectFontsWithIframe","Edge","notification","stealth test ","dataview","object","clearRect","Levenim MT","maxVertexTextureImageUnits","KacstOne","safeAddMetadata","querySelector","hasName","pwd","__webdriver_script_fn","value","hasEvent","autofilled","method","performFontDetection","localAgentJwt","omgilibot","TIMEOUT","flatAndAddMetadata","PUSH_NOTIFICATIONS_SUPPORTED","throw","__lastWatirConfirm","stack","geolocation","NAVIGATOR_VENDOR","geo_location","sessionData","MAX_TEXTURE_IMAGE_UNITS","RESOLUTION","windows phone","numberOfAudioDevices","random","connection","Geolocation retrieval failed: Location permission denied by the user.","tan","Ebrima","loadTimes","pagevisibility","jsHeapSizeLimit","gptbot","mimeTypes","Volvo","WEBKIT_FORCE_AT_MOUSE_DOWN","dom-query-error","bytespider","deleteDatabase","round","NAVIGATOR_APP_CODE_NAME","prototype","Failed to get FingerPrint ","fontFingerprintResult","getVoicesCount","selenium_in_document","getHeadlessResults","state","Microsoft Yi Baiti","Battery ","_POSignalsUtils","hasAutofill","WebGLMetadata","trustTokenOperationError","AppleGothic","GET","contains","seleniumInNavigator","fontPreferences","getCurrentBrowserFingerPrint","userAgent","magnetometer","Error during detection of aiasignals:","Noto Sans","getUndefinedValueLie","metadataQueue","serviceWorker","getHasLiedLanguages","eventlistener","getParameter","htmlGeoLocation_timestamp","renderer","Monotype Corsiva","video","BROWSER_ENGINE_NAME","Apple Chancery","abort","timezone","browserType","Swiss","BLUTOOTH_SUPPORTED","cell","fonts","WEBGL_MAXFRAGMENTUNIFORMVECTORS","ACCELEROMETER_SUPPORTED","blobconstructor","WEBGL_MAXVERTEXTEXTUREIMAGEUNITS","Constantia","safeAddModernizrFeatures","performance","simpleHash","EUROSTILE","Linux","Unknown","htmlGeoLocation_latitude","Phosphate","SQRT2","processInputsSynchronously","IFRAME_CHROME","IS_WEBGL2","Segoe UI Light","downlinkMax","all","FILE_INJECT_JS_FOUND","absolute","linux","fingerPrint"," inputs","catch","browserMajor","additionalMediaCodecs","query_selector","Failed to query input elements in async detection:","failed to get deviceId info","Times New Roman","getOps","iframe","notifications","VIDEO_INPUT_DEVICES","force_touch","Candara","NAVIGATOR_ON_LINE","htmlGeoLocation_speed","DetectStealth","Essential","SHADING_LANGUAGE_VERSION","LOG2E","tagName","getLineDash","6608340mbTdOA","OPS","fontFamily","sin"," in browser '","__selenium_unwrapped","Helvetica","fingerPrintComponentKeys","full_screen","osVersion","toUpperCase","log","http://127.0.0.1","webglVersion","Droid Sans","clear","numberOfVideoDevices","phone","Microsoft Himalaya","detectAutofillFields","MS Outlook","ccbot","Urdu Nastaliq Unicode","Liberation Sans Narrow","Lucida Sans","-9999px","floc","AUDIO","parentNode","win","Noto Mono","page_visibility","MEMORY_HEAP_SIZE_LIMIT","function query() { [native code] }","create","android","WEB_RTC_ENABLED","Futura Md BT","indexeddbblob","20030107","broJsFingerprint","atanh","cbrt","getDirectory","minDecibels","isWebGlSupported","Geolocation retrieval failed: Location information is unavailable.","failed to get font fingerprint info","Calibri","autofill-detector-styles","DEDVCE_LIGHT_SUPPORTED","PROXIMITY_SUPPORTED","Verdana","Failed to start async autofill detection:","queryselector-unsupported","Meiryo","contentDocument"," inputs, checking first ","message","ipad","min","chrome","contentWindow","matchMedia","timpibot","selenium-evaluate","Rachana","Merriweather","Microsoft Tai Le","Ink Free","keyboard"," failed","LIES.","gyroscope","NAVIGATOR_LANGUAGES","mac","floc_version","BankGothic Md BT","metadataBlackList","data-com-onepassword-filled","kind","extensions","TRAJAN PRO","Error processing input ","LIES","getObfsInfo","getFrequencyResponse","touch_events","SeleniumProperties","caller","Monaco","accuracy","NAVIGATOR_CONNECTION_RTT","propertyBlackList","then","Geolocation retrieval failed: Location request timed out.","addEventListener","contrast","srcdoc_triggers_window_proxy","event_listener","hasEmail","maxVaryingVectors","createObjectStore","_POSignalsMetadata","getWebglCanvas","writable","input","consistent_plugins_prototype","__driver_unwrapped","Palatino Linotype","page intentionally left blank","Bitstream Charter","cpuArchitecture","Letter Gothic","serviceworker","pass","GOTHAM","hashMini","Marker Felt","warn","NAVIGATOR_APP_VERSION","Meiryo UI","WEBGL2VENDORANDRENDERER","stringify","forcedColors","library","window_html_webdriver","webdriver-evaluate-response","NAVIGATOR_CLIENT_HINTS_ARCHITECTURE","audio","LN2","usedJSHeapSize","data-attribute","Gabriola","VENDOR_FLAVORS","quotamanagement","Metadata","webGlBasics","StackTraceTester","aiSignalsResult","e-mail","browser-class","__lastWatirPrompt","TOUCH_SUPPORT","lied","mediaDevices","Document not available for autofill detection","Agency FB","maxTouchPoints","webdriver","__webdriver_evaluate","toString","cros","BROWSER_VERSION","Skia","setupAutofillDetection","browserVersion","Logger","Nunito","userAgentData","IS_CHROME_FAMILY","animation-detection","extendPrimitiveValues","Fingerprint timeout","application/json","PingOne Signals deviceCreatedAt: ","Vrinda","HAS_CHROME_LOADTIMES","tablet","PingOne Signals deviceId: ","NAVIGATOR_WEB_DRIVER","NAVIGATOR_CLIENT_HINTS_BRAND_","srcdoc","outerWidth","OS_VERSION","reducedTransparency","DeviceOrientationEvent","Lohit Gujarati","removeEventListener","Function_prototype_toString_invalid_typeError","Impact","driver-evaluate","forEach","ambientlight","htmlGeoLocation_ErrorCode","WEBGL_EXTENSIONS","appendChild","function () { [native code] }","textSize","MS Gothic","deviceVendor","DEVICE_MODEL","AGENT_BASE_URL","NAVIGATOR_PLATFORM","Arial Unicode MS","queryselector","msSaveBlob","localAgentJwtRequestCount","velenpublicwebcrawler","Dell","Microsoft New Tai Lue","domAutomation","flatten","MAX_TEXTURE_SIZE","ARNO PRO","ChromeDriverw","failed to get private mode info","PERMISSIONS.geolocation","devToolsOrientation","Chromium","WEBGL_SHADINGLANGUAGEVERSION","Canvas font detection failed","autofillCount","_pingOneSignalsPingResult","Roboto","load","Javanese Text","pointer_lock","detectionMethods","delay","(prefers-color-scheme: dark)","scrapy","PDF_VIEWER_ENABLED","INCOMPATIBLE_BROWSER","fontSize","Charter","getPrototypeInFunctionLie","getExtension","audioOutputDevices","push","PLUGINS","Promise","getCurrentPosition","RCA","charging","isIAFDetectionEnabled","cryptography","replace","memory","setItem","NAVIGATOR_CLIENT_HINTS_MODEL","freeze","offsetHeight","components","() {","SCRIPTINA","voiceschanged","fullVersionList","htmlGeoLocation_longitude","web_gl","removeChild","json","Autofill detection timeout after processing ","videoCard","hidden","pointerEnabled","oai-searchbot","NuVision","Century Gothic","hdr","permissions_api_overriden","Optima","getProperty","Dragon Touch","audioIntVideoInit","engineName","MV Boli","Cantarell","getOwnPropertyDescriptor","HAS_TOUCH","_selenium","Chalkboard SE","amazonbot","createElement","browser-autofilled","JS_CHALLENGE","enumerateDevices() cannot run within safari iframe","race","getOwnPropertyNames","promiseTimeout","BLINK","left","VERSION","getHasLiedOs","getLocalAgentJwt","result","get","WEBGL_MAXRENDERBUFFERSIZE","sqrt","devToolsOpen","youbot","allSettled","navigator.webdriver_present","Incognito","DetectLies","Nirmala UI","trustToken","Roboto Condensed","toDataURL","fingerprint","Bitstream Vera Sans Mono","agentIdentificationEnabled","selenium_sequentum","FILE_CONTENT_JS_FOUND","appName","7884160moAMPL","brands","webzio-extended","Tibetan Machine Uni","BROWSER_TAB_HISTORY_LENGTH","Padauk","function get ","IFRAME_HEIGHT","Windows","microphone","LIES_IFRAME","HAS_MICROPHONE","iOS","longitude","custom_elements","lieTypes","domBlockers","getAutofillMetadataAsync","lieTests","OS_NAME","NAVIGATOR_MIME_TYPES_LENGTH","queryUsageAndQuota","disabledStorage","Opera","substr","MS Mincho","Oswald","getOwnPropertyLie","log10","isAIBot","background-sync","Noto Sans CJK KR","isElectronFamily","appVersion","permission","Leelawadee","isPrivateModeV2","enumerateDevices","9921562buzzOg","customprotocolhandler","AUDIO_INPUT_DEVICES","UNMASKED_RENDERER_WEBGL","platform","style","MT Extra","px)","IS_ACCEPT_COOKIES","HAS_CHROME_APP","[[IsRevoked]]","function","textContent","failed ","audio/x-m4a","sort","Leelawadee UI","hardwareConcurrency","rad.io","data-autofilled","substring","typed_arrays","DOCUMENT_ELEMENT_WEBDRIVER","localAgentAccessor","MS UI Gothic","label","exec","storage","pike","fetcher","getWebglData","firefox","accessibility-events","Lato","google-extended","product","field-type-heuristic","Abyssinica SIL","request_animation_frame","htmlGeoLocation_ErrorMessage","72px","WEBGL_MAXVERTEXUNIFORMVECTORS","Android","IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE","function ","NAVIGATOR_APP_NAME","STEALTH","hasMicrophone","BROWSER_MAJOR","cors","Failed to fetch the Workstation data: ","architecture","HASLIEDBROWSER","slice","Helvetica Neue","emit","horizontal","addAutofillResult","NETWORK_DOWNLOAD_MAX","Small Fonts","seleniumInWindow","NAVIGATOR_PLUGINS_LENGTH","aiaSignals","ai2bot","Neither WebGL 2.0 nor WebGL 1.0 is supported.","RTCPeerConnection","getMediaCodec","hasWebcam","applePay","Bodoni 72","HAS_CAMERA","Security error","isWebGl2","force_touch.mouse_force_will_begin","deviceMemory","runtime","document-unavailable","HASLIEDLANGUAGES","Buffer","FreeSerif","Gargi","appCodeName","Big Caslon","isFunction","level","availHeight","Util","RENDERER","body","window_geb","deviceModel","getTime","force_touch.webkit_force_at_mouse_down","batteryChargingTime","failed to add iframe data","some","messagechannel","user name","app","callPhantom","NAVIGATOR_PRESENTATION_SUPPORTED","getBroPrintFingerPrint","Source Sans Pro","navigator.plugins_empty","documentElement","Corbel","copyFromChannel","Document not available for async autofill detection","105246tdrkWn","Function","getVoices","customelements","getStealthResult","voicesCount","monospace","Modernizr.on Failed with feature ","detectedFields",'video/mp4;; codecs = "avc1.42E01E"',"POSITION_UNAVAILABLE","prefixed","Lohit Tamil","serializedDeviceAttributes","WEBGL_debug_renderer_info","Khmer OS System","hasNumber","hasSpeakers","email","force_touch.webkit_force_at_force_mouse_down","floc_id","Century Schoolbook L","[[Handler]]","permissions","PERMISSIONS","autoFillMeta","batteryLevel","candidate","address","safeModernizrOn","isWebGl","FONT_FINGERPRINT","iphone","Marlett","googleother","imagesiftbot","Geolocation retrieval failed: Unknown geolocation error occurred.","custom_protocol_handler","petalbot","moz-autofill","AutofillDetector","__driver_evaluate","isBot","details","headlessResults","BATTERY_CHARGING","exiforientation","navigator.languages_blank","devicePixelRatio","dateTimeLocale","fmget_targets","Sylfaen","iframe_window","Univers CE 55 Medium","Verizon","placeholder","clipboard-write","vibrate","Apple Color Emoji","Yu Gothic","domAutomationController","Arabic Typesetting","webkitRTCPeerConnection","[[Target]]","detectPageInputFields","toSource","UNMASKED_VENDOR_WEBGL","HEADLESS","setProperty","vendor","DejaVu Sans","hashFonts","applicationcache","' in browser '","Chrome","pointerlock","isPrivate","msMaxTouchPoints","signal","touchSupport","MEDIA_CODEC_X_M4A","2675716vuQeYs","Canvas context not available","Droid Serif","omgili","name","GPS_SUPPORTED","accelerometer","NAVIGATOR_HARDWARE_CONCURRENCY","isMobile","hide","window_awesomium","HELV","IS_PRIVATE_MODE","function () {","matches","evaluateModernizr","srcdoc_throws_error","WEBGL_MAXTEXTUREIMAGEUNITS","Microsoft PhagsPa","250, 255, 189","cookieEnabled","Failed to detect autofill:","__selenium_evaluate","indexOf","classList","googleother-image","getBattery","webgl","NAVIGATOR_CLIENT_HINTS_FORM_FACTORS","data-rapid-fill","service_worker","forcetouch","searchLies","Cambria","failed to get permissions info","proximity"," headless test was failed","midi","() { [native code] }","string","aria-label","remove","8763432iXdKsh","reducedMotion","Brush Script MT","PERMISSION_DENIED","data_view","indexedDB","tanh","filename","getDevicePayload","Arial Hebrew","bitness","head","NAVIGATOR_CLIENT_HINTS_PLATFORM","acosh","duration","text","info","WEBGL_MAXCOMBINEDTEXTUREIMAGEUNITS","getGeoSessionData","webdriver-evaluate","isPrivateMode","Safari","document","selenium","Comic Sans MS","important","querySelectorAll not supported for autofill detection","osName","assign","Geolocation permission state is '","match","fullscreen","cookieStore","__webdriverFunc","$chrome_asyncScriptInfo","onAutoFillStart","refreshDeviceAttributes","screenFrame","calledSelenium","ambient_light","referrer","enumerable","camera","deviceCreatedAt","IS_AIBot","calculateDeviceMetadata","innerWidth","enumerateDevices() not supported.","outerHeight"," -> ","Lucida Sans Unicode","detectChromium","enumerateDevicesEnabled","lastCalculatedMetadata","NAVIGATOR_PRODUCT","getFontFingerprint","platformVersion","NOTIFICATION_PERMISSION","agentTimeout","HAS_SPEAKERS","Liberation Serif","onupgradeneeded","batteryDischargingTime","resolve","Malgun Gothic","Segoe UI","addClientHints","position","Courier","tel","Lucida Console","NAVIGATOR_CLIENT_HINTS_MOBILE",":-webkit-autofill","BATTERY_LEVEL","Liberation Sans","function toString() { [native code] }","American Typewriter","Webdings","anthropic-ai","seleniumInDocument","C059","Barnes & Noble","hasAttribute","div","navigator","getRTCPeerConnection","WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN","pdfViewerEnabled","gamepads","maxRenderbufferSize","brand","Failed to get font fingerprint: ","username","window.chrome_missing","TypeError","BROWSER_NAME","__webdriver_script_function"," test execution","62671tHBJnn","calculatedDevToolsOpen","htmlGeoLocation","colorDepth","PREFERS_COLOR_SCHEME","claude-web","interestCohort","touchevents","call","getHighEntropyValues","Lucida Bright","webGlStatus","mozRTCPeerConnection","WINDOW_GLOBAL_KEY_FOUND","getComputedStyle","dischargingTime","maxTextureImageUnits","deviceCategory"];return _=function(){return h},_()};var ee;(function(h,y){typeof h.CustomEvent!="function"&&(h.CustomEvent=y())})(window,function(){function h(y,b){b=b||{bubbles:!1,cancelable:!1,detail:null};var c=document.createEvent("CustomEvent");return c.initCustomEvent(y,b.bubbles,b.cancelable,b.detail),c}return h}),function(){var h="PING-SDK-VERSION-PLACEHOLDER",y="st-ping-div",b=/(console|auth)-(test|staging)((\w|\d|-)*)\.pingone.com/,c=/(console|auth)((\w|\d|-)*)\.test-(one|two)-pingone\.com/,u=/(console|auth)((\w|\d|-)*)\.ort-(one|two)-pingone\.com/,f=/localhost/,s=window.location.hostname;function o(D){window["enable-logs-pingOneSignals"]&&console.log(D)}function a(D){function V(ie){ie=ie.replace(/\r\n/g,`
57
- `);for(var Se="",_e=0;_e<ie.length;_e++){var Ne=ie.charCodeAt(_e);Ne<128?Se+=String.fromCharCode(Ne):Ne>127&&Ne<2048?(Se+=String.fromCharCode(Ne>>6|192),Se+=String.fromCharCode(Ne&63|128)):(Se+=String.fromCharCode(Ne>>12|224),Se+=String.fromCharCode(Ne>>6&63|128),Se+=String.fromCharCode(Ne&63|128))}return Se}var j="",L,U,F,W,J,$,ne,ae=0,te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(D=V(D);ae<D.length;)L=D.charCodeAt(ae++),U=D.charCodeAt(ae++),F=D.charCodeAt(ae++),W=L>>2,J=(L&3)<<4|U>>4,$=(U&15)<<2|F>>6,ne=F&63,isNaN(U)?$=ne=64:isNaN(F)&&(ne=64),j=j+te.charAt(W)+te.charAt(J)+te.charAt($)+te.charAt(ne);return j}function m(){var D=document.getElementById(y);return D||(D=document.createElement("div"),D.style.border="none",D.style.position="absolute",D.style.top="-999px",D.style.left="-999px",D.style.width="0",D.style.height="0",D.style.visibility="hidden",D.style.overflow="hidden",D.id=y,document.body.appendChild(D),D)}function v(D){document.readyState!=="loading"?D():document.addEventListener("DOMContentLoaded",D)}function w(D){v(function(){if(D){var V=m();window._pingOneSignalsToken=getComputedStyle(V,"::after").content.replace(/['"]+/g,""),document.dispatchEvent(new CustomEvent("PingOneSignalsTokenReadyEvent"))}var j=D?"success":"failure";o("Finished - "+j)})}function A(D,V){for(var j=[],L=0;L<D.length;L++){var U=D.charCodeAt(L)^V.charCodeAt(L%V.length);j.push(String.fromCharCode(U))}return j.join("")}function E(D){var V={sdkVersion:h,platform:navigator.platform||""},j="dkiBm42",L=encodeURIComponent(a(A(JSON.stringify(V),j))),U=document.createElement("link");U.type="text/css",U.rel="stylesheet",U.href="https://"+D+"/signals/sdk/pong.css?body="+L+"&e=2";var F=document.head||document.getElementsByTagName("head")[0];F.appendChild(U),U.onload=function(){w(!0)},U.onerror=function(){w(!1)}}var O=document.querySelector("script[data-pingOneSignalsSkipToken]");if(O&&O.getAttribute("data-pingOneSignalsSkipToken")==="true"){window._pingOneSignalsToken="skipped_token_"+new Date().getTime(),v(function(){document.dispatchEvent(new CustomEvent("PingOneSignalsTokenSkippedEvent"))});return}window._pingOneSignalsToken||(window._pingOneSignalsToken="uninitialized_token_"+new Date().getTime());var T=window._pingOneSignalsCustomHost,M=T||"apps.test-one-pingone.com",P=T||"apps.ort-one-pingone.com",x=T||"apps.pingone.com",I=T||(f.test(s)||c.test(s)||b.test(s)?M:u.test(s)?P:x);E(I)}(),function(h){h._POSignalsEntities||(h._POSignalsEntities={}),h._pingOneSignals&&console.warn("PingOne Signals script was imported multiple times")}(window),function(h,y){y(h)}(window,function(h){function y(E){var O=this.constructor;return this.then(function(T){return O.resolve(E()).then(function(){return T})},function(T){return O.resolve(E()).then(function(){return O.reject(T)})})}var b=setTimeout;function c(E){return!!(E&&typeof E.length<"u")}function u(){}function f(E,O){return function(){E.apply(O,arguments)}}function s(E){if(!(this instanceof s))throw new TypeError("Promises must be constructed via new");if(typeof E!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],A(E,this)}function o(E,O){for(;E._state===3;)E=E._value;if(E._state===0){E._deferreds.push(O);return}E._handled=!0,s._immediateFn(function(){var T=E._state===1?O.onFulfilled:O.onRejected;if(T===null){(E._state===1?a:m)(O.promise,E._value);return}var M;try{M=T(E._value)}catch(P){m(O.promise,P);return}a(O.promise,M)})}function a(E,O){try{if(O===E)throw new TypeError("A promise cannot be resolved with itself.");if(O&&(typeof O=="object"||typeof O=="function")){var T=O.then;if(O instanceof s){E._state=3,E._value=O,v(E);return}else if(typeof T=="function"){A(f(T,O),E);return}}E._state=1,E._value=O,v(E)}catch(M){m(E,M)}}function m(E,O){E._state=2,E._value=O,v(E)}function v(E){E._state===2&&E._deferreds.length===0&&s._immediateFn(function(){E._handled||s._unhandledRejectionFn(E._value)});for(var O=0,T=E._deferreds.length;O<T;O++)o(E,E._deferreds[O]);E._deferreds=null}function w(E,O,T){this.onFulfilled=typeof E=="function"?E:null,this.onRejected=typeof O=="function"?O:null,this.promise=T}function A(E,O){var T=!1;try{E(function(M){T||(T=!0,a(O,M))},function(M){T||(T=!0,m(O,M))})}catch(M){if(T)return;T=!0,m(O,M)}}s.prototype.catch=function(E){return this.then(null,E)},s.prototype.then=function(E,O){var T=new this.constructor(u);return o(this,new w(E,O,T)),T},s.prototype.finally=y,s.all=function(E){return new s(function(O,T){if(!c(E))return T(new TypeError("Promise.all accepts an array"));var M=Array.prototype.slice.call(E);if(M.length===0)return O([]);var P=M.length;function x(D,V){try{if(V&&(typeof V=="object"||typeof V=="function")){var j=V.then;if(typeof j=="function"){j.call(V,function(L){x(D,L)},T);return}}M[D]=V,--P===0&&O(M)}catch(L){T(L)}}for(var I=0;I<M.length;I++)x(I,M[I])})},s.resolve=function(E){return E&&typeof E=="object"&&E.constructor===s?E:new s(function(O){O(E)})},s.reject=function(E){return new s(function(O,T){T(E)})},s.race=function(E){return new s(function(O,T){if(!c(E))return T(new TypeError("Promise.race accepts an array"));for(var M=0,P=E.length;M<P;M++)s.resolve(E[M]).then(O,T)})},s._immediateFn=typeof setImmediate=="function"&&function(E){setImmediate(E)}||function(E){b(E,0)},s._unhandledRejectionFn=function(E){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",E)},typeof h.Promise!="function"?h.Promise=s:h.Promise.prototype.finally||(h.Promise.prototype.finally=y)}),function(h,y){h.PromiseQueue=y()}(ee||(ee={}),function(){var h=function(){},y=function(c){return c&&typeof c.then=="function"?c:new Promise(function(u){u(c)})};function b(c,u,f){this.options=f=f||{},this.pendingPromises=0,this.maxPendingPromises=typeof c<"u"?c:1/0,this.maxQueuedPromises=typeof u<"u"?u:1/0,this.queue=[]}return b.prototype.add=function(c){var u=this;return new Promise(function(f,s,o){if(u.queue.length>=u.maxQueuedPromises){s(new Error("Queue limit reached"));return}u.queue.push({promiseGenerator:c,resolve:f,reject:s,notify:o||h}),u._dequeue()})},b.prototype.getPendingLength=function(){return this.pendingPromises},b.prototype.getQueueLength=function(){return this.queue.length},b.prototype._dequeue=function(){var c=this;if(this.pendingPromises>=this.maxPendingPromises)return!1;var u=this.queue.shift();if(!u)return this.options.onEmpty&&this.options.onEmpty(),!1;try{this.pendingPromises++,y(u.promiseGenerator()).then(function(f){c.pendingPromises--,u.resolve(f),c._dequeue()},function(f){c.pendingPromises--,u.reject(f),c._dequeue()},function(f){u.notify(f)})}catch(f){c.pendingPromises--,u.reject(f),c._dequeue()}return!0},b}),function(h){var y="input is invalid type",b=!h.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),u=[-2147483648,8388608,32768,128],f=[24,16,8,0],s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=["hex","array","digest","arrayBuffer"],a=[];(h.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(M){return Object.prototype.toString.call(M)==="[object Array]"}),b&&(h.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(M){return typeof M=="object"&&M.buffer&&M.buffer.constructor===ArrayBuffer});var m=function(M,P){return function(x){return new E(P,!0).update(x)[M]()}},v=function(M){var P=m("hex",M);P.create=function(){return new E(M)},P.update=function(D){return P.create().update(D)};for(var x=0;x<o.length;++x){var I=o[x];P[I]=m(I,M)}return P},w=function(M,P){return function(x,I){return new O(x,P,!0).update(I)[M]()}},A=function(M){var P=w("hex",M);P.create=function(D){return new O(D,M)},P.update=function(D,V){return P.create(D).update(V)};for(var x=0;x<o.length;++x){var I=o[x];P[I]=w(I,M)}return P};function E(M,P){P?(a[0]=a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0,this.blocks=a):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],M?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=M}E.prototype.update=function(M){if(!this.finalized){var P,x=typeof M;if(x!=="string"){if(x==="object"){if(M===null)throw new Error(y);if(b&&M.constructor===ArrayBuffer)M=new Uint8Array(M);else if(!Array.isArray(M)&&(!b||!ArrayBuffer.isView(M)))throw new Error(y)}else throw new Error(y);P=!0}for(var I,D=0,V,j=M.length,L=this.blocks;D<j;){if(this.hashed&&(this.hashed=!1,L[0]=this.block,L[16]=L[1]=L[2]=L[3]=L[4]=L[5]=L[6]=L[7]=L[8]=L[9]=L[10]=L[11]=L[12]=L[13]=L[14]=L[15]=0),P)for(V=this.start;D<j&&V<64;++D)L[V>>2]|=M[D]<<f[V++&3];else for(V=this.start;D<j&&V<64;++D)I=M.charCodeAt(D),I<128?L[V>>2]|=I<<f[V++&3]:I<2048?(L[V>>2]|=(192|I>>6)<<f[V++&3],L[V>>2]|=(128|I&63)<<f[V++&3]):I<55296||I>=57344?(L[V>>2]|=(224|I>>12)<<f[V++&3],L[V>>2]|=(128|I>>6&63)<<f[V++&3],L[V>>2]|=(128|I&63)<<f[V++&3]):(I=65536+((I&1023)<<10|M.charCodeAt(++D)&1023),L[V>>2]|=(240|I>>18)<<f[V++&3],L[V>>2]|=(128|I>>12&63)<<f[V++&3],L[V>>2]|=(128|I>>6&63)<<f[V++&3],L[V>>2]|=(128|I&63)<<f[V++&3]);this.lastByteIndex=V,this.bytes+=V-this.start,V>=64?(this.block=L[16],this.start=V-64,this.hash(),this.hashed=!0):this.start=V}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},E.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var M=this.blocks,P=this.lastByteIndex;M[16]=this.block,M[P>>2]|=u[P&3],this.block=M[16],P>=56&&(this.hashed||this.hash(),M[0]=this.block,M[16]=M[1]=M[2]=M[3]=M[4]=M[5]=M[6]=M[7]=M[8]=M[9]=M[10]=M[11]=M[12]=M[13]=M[14]=M[15]=0),M[14]=this.hBytes<<3|this.bytes>>>29,M[15]=this.bytes<<3,this.hash()}},E.prototype.hash=function(){var M=this.h0,P=this.h1,x=this.h2,I=this.h3,D=this.h4,V=this.h5,j=this.h6,L=this.h7,U=this.blocks,F,W,J,$,ne,ae,te,ie,Se,_e,Ne;for(F=16;F<64;++F)ne=U[F-15],W=(ne>>>7|ne<<25)^(ne>>>18|ne<<14)^ne>>>3,ne=U[F-2],J=(ne>>>17|ne<<15)^(ne>>>19|ne<<13)^ne>>>10,U[F]=U[F-16]+W+U[F-7]+J<<0;for(Ne=P&x,F=0;F<64;F+=4)this.first?(this.is224?(ie=300032,ne=U[0]-1413257819,L=ne-150054599<<0,I=ne+24177077<<0):(ie=704751109,ne=U[0]-210244248,L=ne-1521486534<<0,I=ne+143694565<<0),this.first=!1):(W=(M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10),J=(D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7),ie=M&P,$=ie^M&x^Ne,te=D&V^~D&j,ne=L+J+te+s[F]+U[F],ae=W+$,L=I+ne<<0,I=ne+ae<<0),W=(I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10),J=(L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7),Se=I&M,$=Se^I&P^ie,te=L&D^~L&V,ne=j+J+te+s[F+1]+U[F+1],ae=W+$,j=x+ne<<0,x=ne+ae<<0,W=(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),J=(j>>>6|j<<26)^(j>>>11|j<<21)^(j>>>25|j<<7),_e=x&I,$=_e^x&M^Se,te=j&L^~j&D,ne=V+J+te+s[F+2]+U[F+2],ae=W+$,V=P+ne<<0,P=ne+ae<<0,W=(P>>>2|P<<30)^(P>>>13|P<<19)^(P>>>22|P<<10),J=(V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7),Ne=P&x,$=Ne^P&I^_e,te=V&j^~V&L,ne=D+J+te+s[F+3]+U[F+3],ae=W+$,D=M+ne<<0,M=ne+ae<<0;this.h0=this.h0+M<<0,this.h1=this.h1+P<<0,this.h2=this.h2+x<<0,this.h3=this.h3+I<<0,this.h4=this.h4+D<<0,this.h5=this.h5+V<<0,this.h6=this.h6+j<<0,this.h7=this.h7+L<<0},E.prototype.hex=function(){this.finalize();var M=this.h0,P=this.h1,x=this.h2,I=this.h3,D=this.h4,V=this.h5,j=this.h6,L=this.h7,U=c[M>>28&15]+c[M>>24&15]+c[M>>20&15]+c[M>>16&15]+c[M>>12&15]+c[M>>8&15]+c[M>>4&15]+c[M&15]+c[P>>28&15]+c[P>>24&15]+c[P>>20&15]+c[P>>16&15]+c[P>>12&15]+c[P>>8&15]+c[P>>4&15]+c[P&15]+c[x>>28&15]+c[x>>24&15]+c[x>>20&15]+c[x>>16&15]+c[x>>12&15]+c[x>>8&15]+c[x>>4&15]+c[x&15]+c[I>>28&15]+c[I>>24&15]+c[I>>20&15]+c[I>>16&15]+c[I>>12&15]+c[I>>8&15]+c[I>>4&15]+c[I&15]+c[D>>28&15]+c[D>>24&15]+c[D>>20&15]+c[D>>16&15]+c[D>>12&15]+c[D>>8&15]+c[D>>4&15]+c[D&15]+c[V>>28&15]+c[V>>24&15]+c[V>>20&15]+c[V>>16&15]+c[V>>12&15]+c[V>>8&15]+c[V>>4&15]+c[V&15]+c[j>>28&15]+c[j>>24&15]+c[j>>20&15]+c[j>>16&15]+c[j>>12&15]+c[j>>8&15]+c[j>>4&15]+c[j&15];return this.is224||(U+=c[L>>28&15]+c[L>>24&15]+c[L>>20&15]+c[L>>16&15]+c[L>>12&15]+c[L>>8&15]+c[L>>4&15]+c[L&15]),U},E.prototype.toString=E.prototype.hex,E.prototype.digest=function(){this.finalize();var M=this.h0,P=this.h1,x=this.h2,I=this.h3,D=this.h4,V=this.h5,j=this.h6,L=this.h7,U=[M>>24&255,M>>16&255,M>>8&255,M&255,P>>24&255,P>>16&255,P>>8&255,P&255,x>>24&255,x>>16&255,x>>8&255,x&255,I>>24&255,I>>16&255,I>>8&255,I&255,D>>24&255,D>>16&255,D>>8&255,D&255,V>>24&255,V>>16&255,V>>8&255,V&255,j>>24&255,j>>16&255,j>>8&255,j&255];return this.is224||U.push(L>>24&255,L>>16&255,L>>8&255,L&255),U},E.prototype.array=E.prototype.digest,E.prototype.arrayBuffer=function(){this.finalize();var M=new ArrayBuffer(this.is224?28:32),P=new DataView(M);return P.setUint32(0,this.h0),P.setUint32(4,this.h1),P.setUint32(8,this.h2),P.setUint32(12,this.h3),P.setUint32(16,this.h4),P.setUint32(20,this.h5),P.setUint32(24,this.h6),this.is224||P.setUint32(28,this.h7),M};function O(M,P,x){var I,D=typeof M;if(D==="string"){var V=[],j=M.length,L=0,U;for(I=0;I<j;++I)U=M.charCodeAt(I),U<128?V[L++]=U:U<2048?(V[L++]=192|U>>6,V[L++]=128|U&63):U<55296||U>=57344?(V[L++]=224|U>>12,V[L++]=128|U>>6&63,V[L++]=128|U&63):(U=65536+((U&1023)<<10|M.charCodeAt(++I)&1023),V[L++]=240|U>>18,V[L++]=128|U>>12&63,V[L++]=128|U>>6&63,V[L++]=128|U&63);M=V}else if(D==="object"){if(M===null)throw new Error(y);if(b&&M.constructor===ArrayBuffer)M=new Uint8Array(M);else if(!Array.isArray(M)&&(!b||!ArrayBuffer.isView(M)))throw new Error(y)}else throw new Error(y);M.length>64&&(M=new E(P,!0).update(M).array());var F=[],W=[];for(I=0;I<64;++I){var J=M[I]||0;F[I]=92^J,W[I]=54^J}E.call(this,P,x),this.update(W),this.oKeyPad=F,this.inner=!0,this.sharedMemory=x}O.prototype=new E,O.prototype.finalize=function(){if(E.prototype.finalize.call(this),this.inner){this.inner=!1;var M=this.array();E.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(M),E.prototype.finalize.call(this)}};var T=v();T.sha256=T,T.sha224=v(!0),T.sha256.hmac=A(),T.sha224.hmac=A(!0),h.sha256=T.sha256,h.sha224=T.sha224}(ee||(ee={})),function(h){h.FingerprintJS=function(y){var b="5.0.1";function c(N,q){return new Promise(X=>setTimeout(X,N,q))}function u(){return new Promise(N=>{const q=new MessageChannel;q.port1.onmessage=()=>N(),q.port2.postMessage(null)})}function f(N,q=1/0){const{requestIdleCallback:X}=window;return X?new Promise(le=>X.call(window,()=>le(),{timeout:q})):c(Math.min(N,q))}function s(N){return!!N&&typeof N.then=="function"}function o(N,q){try{const X=N();s(X)?X.then(le=>q(!0,le),le=>q(!1,le)):q(!0,X)}catch(X){q(!1,X)}}async function a(N,q,X=16){const le=Array(N.length);let Te=Date.now();for(let Ye=0;Ye<N.length;++Ye){le[Ye]=q(N[Ye],Ye);const Oe=Date.now();Oe>=Te+X&&(Te=Oe,await u())}return le}function m(N){return N.then(void 0,()=>{}),N}function v(N,q){for(let X=0,le=N.length;X<le;++X)if(N[X]===q)return!0;return!1}function w(N,q){return!v(N,q)}function A(N){return parseInt(N)}function E(N){return parseFloat(N)}function O(N,q){return typeof N=="number"&&isNaN(N)?q:N}function T(N){return N.reduce((q,X)=>q+(X?1:0),0)}function M(N,q=1){if(Math.abs(q)>=1)return Math.round(N/q)*q;{const X=1/q;return Math.round(N*X)/X}}function P(N){var q,X;const le=`Unexpected syntax '${N}'`,Te=/^\s*([a-z-]*)(.*)$/i.exec(N),Ye=Te[1]||void 0,Oe={},Fe=/([.:#][\w-]+|\[.+?\])/gi,Qe=(at,Re)=>{Oe[at]=Oe[at]||[],Oe[at].push(Re)};for(;;){const at=Fe.exec(Te[2]);if(!at)break;const Re=at[0];switch(Re[0]){case".":Qe("class",Re.slice(1));break;case"#":Qe("id",Re.slice(1));break;case"[":{const xe=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(Re);if(xe)Qe(xe[1],(X=(q=xe[4])!==null&&q!==void 0?q:xe[5])!==null&&X!==void 0?X:"");else throw new Error(le);break}default:throw new Error(le)}}return[Ye,Oe]}function x(N){const q=new Uint8Array(N.length);for(let X=0;X<N.length;X++){const le=N.charCodeAt(X);if(le>127)return new TextEncoder().encode(N);q[X]=le}return q}function I(N,q){const X=N[0]>>>16,le=N[0]&65535,Te=N[1]>>>16,Ye=N[1]&65535,Oe=q[0]>>>16,Fe=q[0]&65535,Qe=q[1]>>>16,at=q[1]&65535;let Re=0,xe=0,Jt=0,kt=0;kt+=Ye+at,Jt+=kt>>>16,kt&=65535,Jt+=Te+Qe,xe+=Jt>>>16,Jt&=65535,xe+=le+Fe,Re+=xe>>>16,xe&=65535,Re+=X+Oe,Re&=65535,N[0]=Re<<16|xe,N[1]=Jt<<16|kt}function D(N,q){const X=N[0]>>>16,le=N[0]&65535,Te=N[1]>>>16,Ye=N[1]&65535,Oe=q[0]>>>16,Fe=q[0]&65535,Qe=q[1]>>>16,at=q[1]&65535;let Re=0,xe=0,Jt=0,kt=0;kt+=Ye*at,Jt+=kt>>>16,kt&=65535,Jt+=Te*at,xe+=Jt>>>16,Jt&=65535,Jt+=Ye*Qe,xe+=Jt>>>16,Jt&=65535,xe+=le*at,Re+=xe>>>16,xe&=65535,xe+=Te*Qe,Re+=xe>>>16,xe&=65535,xe+=Ye*Fe,Re+=xe>>>16,xe&=65535,Re+=X*at+le*Qe+Te*Fe+Ye*Oe,Re&=65535,N[0]=Re<<16|xe,N[1]=Jt<<16|kt}function V(N,q){const X=N[0];q%=64,q===32?(N[0]=N[1],N[1]=X):q<32?(N[0]=X<<q|N[1]>>>32-q,N[1]=N[1]<<q|X>>>32-q):(q-=32,N[0]=N[1]<<q|X>>>32-q,N[1]=X<<q|N[1]>>>32-q)}function j(N,q){q%=64,q!==0&&(q<32?(N[0]=N[1]>>>32-q,N[1]=N[1]<<q):(N[0]=N[1]<<q-32,N[1]=0))}function L(N,q){N[0]^=q[0],N[1]^=q[1]}const U=[4283543511,3981806797],F=[3301882366,444984403];function W(N){const q=[0,N[0]>>>1];L(N,q),D(N,U),q[1]=N[0]>>>1,L(N,q),D(N,F),q[1]=N[0]>>>1,L(N,q)}const J=[2277735313,289559509],$=[1291169091,658871167],ne=[0,5],ae=[0,1390208809],te=[0,944331445];function ie(N,q){const X=x(N);q=q||0;const le=[0,X.length],Te=le[1]%16,Ye=le[1]-Te,Oe=[0,q],Fe=[0,q],Qe=[0,0],at=[0,0];let Re;for(Re=0;Re<Ye;Re=Re+16)Qe[0]=X[Re+4]|X[Re+5]<<8|X[Re+6]<<16|X[Re+7]<<24,Qe[1]=X[Re]|X[Re+1]<<8|X[Re+2]<<16|X[Re+3]<<24,at[0]=X[Re+12]|X[Re+13]<<8|X[Re+14]<<16|X[Re+15]<<24,at[1]=X[Re+8]|X[Re+9]<<8|X[Re+10]<<16|X[Re+11]<<24,D(Qe,J),V(Qe,31),D(Qe,$),L(Oe,Qe),V(Oe,27),I(Oe,Fe),D(Oe,ne),I(Oe,ae),D(at,$),V(at,33),D(at,J),L(Fe,at),V(Fe,31),I(Fe,Oe),D(Fe,ne),I(Fe,te);Qe[0]=0,Qe[1]=0,at[0]=0,at[1]=0;const xe=[0,0];switch(Te){case 15:xe[1]=X[Re+14],j(xe,48),L(at,xe);case 14:xe[1]=X[Re+13],j(xe,40),L(at,xe);case 13:xe[1]=X[Re+12],j(xe,32),L(at,xe);case 12:xe[1]=X[Re+11],j(xe,24),L(at,xe);case 11:xe[1]=X[Re+10],j(xe,16),L(at,xe);case 10:xe[1]=X[Re+9],j(xe,8),L(at,xe);case 9:xe[1]=X[Re+8],L(at,xe),D(at,$),V(at,33),D(at,J),L(Fe,at);case 8:xe[1]=X[Re+7],j(xe,56),L(Qe,xe);case 7:xe[1]=X[Re+6],j(xe,48),L(Qe,xe);case 6:xe[1]=X[Re+5],j(xe,40),L(Qe,xe);case 5:xe[1]=X[Re+4],j(xe,32),L(Qe,xe);case 4:xe[1]=X[Re+3],j(xe,24),L(Qe,xe);case 3:xe[1]=X[Re+2],j(xe,16),L(Qe,xe);case 2:xe[1]=X[Re+1],j(xe,8),L(Qe,xe);case 1:xe[1]=X[Re],L(Qe,xe),D(Qe,J),V(Qe,31),D(Qe,$),L(Oe,Qe)}return L(Oe,le),L(Fe,le),I(Oe,Fe),I(Fe,Oe),W(Oe),W(Fe),I(Oe,Fe),I(Fe,Oe),("00000000"+(Oe[0]>>>0).toString(16)).slice(-8)+("00000000"+(Oe[1]>>>0).toString(16)).slice(-8)+("00000000"+(Fe[0]>>>0).toString(16)).slice(-8)+("00000000"+(Fe[1]>>>0).toString(16)).slice(-8)}function Se(N){var q;return{name:N.name,message:N.message,stack:(q=N.stack)===null||q===void 0?void 0:q.split(`
58
- `),...N}}function _e(N){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(N))}function Ne(N){return typeof N!="function"}function et(N,q){const X=m(new Promise(le=>{const Te=Date.now();o(N.bind(null,q),(...Ye)=>{const Oe=Date.now()-Te;if(!Ye[0])return le(()=>({error:Ye[1],duration:Oe}));const Fe=Ye[1];if(Ne(Fe))return le(()=>({value:Fe,duration:Oe}));le(()=>new Promise(Qe=>{const at=Date.now();o(Fe,(...Re)=>{const xe=Oe+Date.now()-at;if(!Re[0])return Qe({error:Re[1],duration:xe});Qe({value:Re[1],duration:xe})})}))})}));return function(){return X.then(le=>le())}}function Nt(N,q,X,le){const Te=Object.keys(N).filter(Oe=>w(X,Oe)),Ye=m(a(Te,Oe=>et(N[Oe],q),le));return async function(){const Oe=await Ye,Fe=await a(Oe,Re=>m(Re()),le),Qe=await Promise.all(Fe),at={};for(let Re=0;Re<Te.length;++Re)at[Te[Re]]=Qe[Re];return at}}function oe(N,q){const X=le=>Ne(le)?q(le):()=>{const Te=le();return s(Te)?Te.then(q):q(Te)};return le=>{const Te=N(le);return s(Te)?Te.then(X):X(Te)}}function Ie(){const N=window,q=navigator;return T(["MSCSSMatrix"in N,"msSetImmediate"in N,"msIndexedDB"in N,"msMaxTouchPoints"in q,"msPointerEnabled"in q])>=4}function Be(){const N=window,q=navigator;return T(["msWriteProfilerMark"in N,"MSStream"in N,"msLaunchUri"in q,"msSaveBlob"in q])>=3&&!Ie()}function $e(){const N=window,q=navigator;return T(["webkitPersistentStorage"in q,"webkitTemporaryStorage"in q,(q.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in N,"BatteryManager"in N,"webkitMediaStream"in N,"webkitSpeechGrammar"in N])>=5}function ke(){const N=window,q=navigator;return T(["ApplePayError"in N,"CSSPrimitiveValue"in N,"Counter"in N,q.vendor.indexOf("Apple")===0,"RGBColor"in N,"WebKitMediaKeys"in N])>=4}function Xe(){const N=window,{HTMLElement:q,Document:X}=N;return T(["safari"in N,!("ongestureend"in N),!("TouchEvent"in N),!("orientation"in N),q&&!("autocapitalize"in q.prototype),X&&"pointerLockElement"in X.prototype])>=4}function ge(){const N=window;return _e(N.print)&&String(N.browser)==="[object WebPageNamespace]"}function Le(){var N,q;const X=window;return T(["buildID"in navigator,"MozAppearance"in((q=(N=document.documentElement)===null||N===void 0?void 0:N.style)!==null&&q!==void 0?q:{}),"onmozfullscreenchange"in X,"mozInnerScreenX"in X,"CSSMozDocumentRule"in X,"CanvasCaptureMediaStream"in X])>=4}function Mt(){const N=window;return T([!("MediaSettingsRange"in N),"RTCEncodedAudioFrame"in N,""+N.Intl=="[object Intl]",""+N.Reflect=="[object Reflect]"])>=3}function Ct(){const N=window,{URLPattern:q}=N;return T(["union"in Set.prototype,"Iterator"in N,q&&"hasRegExpGroups"in q.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Ut(){const N=window;return T(["DOMRectList"in N,"RTCPeerConnectionIceEvent"in N,"SVGGeometryElement"in N,"ontransitioncancel"in N])>=3}function $t(){const N=window,q=navigator,{CSS:X,HTMLButtonElement:le}=N;return T([!("getStorageUpdates"in q),le&&"popover"in le.prototype,"CSSCounterStyleRule"in N,X.supports("font-size-adjust: ex-height 0.5"),X.supports("text-transform: full-width")])>=4}function bn(){if(navigator.platform==="iPad")return!0;const N=screen,q=N.width/N.height;return T(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,q>.65&&q<1.53])>=2}function Fn(){const N=document;return N.fullscreenElement||N.msFullscreenElement||N.mozFullScreenElement||N.webkitFullscreenElement||null}function Bn(){const N=document;return(N.exitFullscreen||N.msExitFullscreen||N.mozCancelFullScreen||N.webkitExitFullscreen).call(N)}function Sn(){const N=$e(),q=Le(),X=window,le=navigator,Te="connection";return N?T([!("SharedWorker"in X),le[Te]&&"ontypechange"in le[Te],!("sinkId"in new Audio)])>=2:q?T(["onorientationchange"in X,"orientation"in X,/android/i.test(le.appVersion)])>=2:!1}function _r(){const N=navigator,q=window,X=Audio.prototype,{visualViewport:le}=q;return T(["srLatency"in X,"srChannelCount"in X,"devicePosture"in N,le&&"segments"in le,"getTextInformation"in Image.prototype])>=3}function pt(){return Nr()?-4:gn()}function gn(){const N=window,q=N.OfflineAudioContext||N.webkitOfflineAudioContext;if(!q)return-2;if(vn())return-1;const X=4500,le=5e3,Te=new q(1,le,44100),Ye=Te.createOscillator();Ye.type="triangle",Ye.frequency.value=1e4;const Oe=Te.createDynamicsCompressor();Oe.threshold.value=-50,Oe.knee.value=40,Oe.ratio.value=12,Oe.attack.value=0,Oe.release.value=.25,Ye.connect(Oe),Oe.connect(Te.destination),Ye.start(0);const[Fe,Qe]=wr(Te),at=m(Fe.then(Re=>Yr(Re.getChannelData(0).subarray(X)),Re=>{if(Re.name==="timeout"||Re.name==="suspended")return-3;throw Re}));return()=>(Qe(),at)}function vn(){return ke()&&!Xe()&&!Ut()}function Nr(){return ke()&&$t()&&ge()||$e()&&_r()&&Ct()}function wr(N){let q=()=>{};return[new Promise((X,le)=>{let Te=!1,Ye=0,Oe=0;N.oncomplete=at=>X(at.renderedBuffer);const Fe=()=>{setTimeout(()=>le(ir("timeout")),Math.min(500,Oe+5e3-Date.now()))},Qe=()=>{try{const at=N.startRendering();switch(s(at)&&m(at),N.state){case"running":Oe=Date.now(),Te&&Fe();break;case"suspended":document.hidden||Ye++,Te&&Ye>=3?le(ir("suspended")):setTimeout(Qe,500);break}}catch(at){le(at)}};Qe(),q=()=>{Te||(Te=!0,Oe>0&&Fe())}}),q]}function Yr(N){let q=0;for(let X=0;X<N.length;++X)q+=Math.abs(N[X]);return q}function ir(N){const q=new Error(N);return q.name=N,q}async function Dn(N,q,X=50){var le,Te,Ye;const Oe=document;for(;!Oe.body;)await c(X);const Fe=Oe.createElement("iframe");try{for(await new Promise((Qe,at)=>{let Re=!1;const xe=()=>{Re=!0,Qe()},Jt=xn=>{Re=!0,at(xn)};Fe.onload=xe,Fe.onerror=Jt;const{style:kt}=Fe;kt.setProperty("display","block","important"),kt.position="absolute",kt.top="0",kt.left="0",kt.visibility="hidden",q&&"srcdoc"in Fe?Fe.srcdoc=q:Fe.src="about:blank",Oe.body.appendChild(Fe);const Nn=()=>{var xn,wl;Re||(((wl=(xn=Fe.contentWindow)===null||xn===void 0?void 0:xn.document)===null||wl===void 0?void 0:wl.readyState)==="complete"?xe():setTimeout(Nn,10))};Nn()});!(!((Te=(le=Fe.contentWindow)===null||le===void 0?void 0:le.document)===null||Te===void 0)&&Te.body);)await c(X);return await N(Fe,Fe.contentWindow)}finally{(Ye=Fe.parentNode)===null||Ye===void 0||Ye.removeChild(Fe)}}function H(N){const[q,X]=P(N),le=document.createElement(q??"div");for(const Te of Object.keys(X)){const Ye=X[Te].join(" ");Te==="style"?we(le.style,Ye):le.setAttribute(Te,Ye)}return le}function we(N,q){for(const X of q.split(";")){const le=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(X);if(le){const[,Te,Ye,,Oe]=le;N.setProperty(Te,Ye,Oe||"")}}}function Me(){let N=window;for(;;){const q=N.parent;if(!q||q===N)return!1;try{if(q.location.origin!==N.location.origin)return!0}catch(X){if(X instanceof Error&&X.name==="SecurityError")return!0;throw X}N=q}}const Ae="mmMwWLliI0O&1",Ue="48px",ze=["monospace","sans-serif","serif"],ft=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Pt(){return Dn(async(N,{document:q})=>{const X=q.body;X.style.fontSize=Ue;const le=q.createElement("div");le.style.setProperty("visibility","hidden","important");const Te={},Ye={},Oe=kt=>{const Nn=q.createElement("span"),{style:xn}=Nn;return xn.position="absolute",xn.top="0",xn.left="0",xn.fontFamily=kt,Nn.textContent=Ae,le.appendChild(Nn),Nn},Fe=(kt,Nn)=>Oe(`'${kt}',${Nn}`),Qe=()=>ze.map(Oe),at=()=>{const kt={};for(const Nn of ft)kt[Nn]=ze.map(xn=>Fe(Nn,xn));return kt},Re=kt=>ze.some((Nn,xn)=>kt[xn].offsetWidth!==Te[Nn]||kt[xn].offsetHeight!==Ye[Nn]),xe=Qe(),Jt=at();X.appendChild(le);for(let kt=0;kt<ze.length;kt++)Te[ze[kt]]=xe[kt].offsetWidth,Ye[ze[kt]]=xe[kt].offsetHeight;return ft.filter(kt=>Re(Jt[kt]))})}function R(){const N=navigator.plugins;if(!N)return;const q=[];for(let X=0;X<N.length;++X){const le=N[X];if(!le)continue;const Te=[];for(let Ye=0;Ye<le.length;++Ye){const Oe=le[Ye];Te.push({type:Oe.type,suffixes:Oe.suffixes})}q.push({name:le.name,description:le.description,mimeTypes:Te})}return q}function he(){return ve(Jr())}function ve(N){let q=!1,X,le;const[Te,Ye]=K();return Ve(Te,Ye)?(q=tt(Ye),N?X=le="skipped":[X,le]=nt(Te,Ye)):X=le="unsupported",{winding:q,geometry:X,text:le}}function K(){const N=document.createElement("canvas");return N.width=1,N.height=1,[N,N.getContext("2d")]}function Ve(N,q){return!!(q&&N.toDataURL)}function tt(N){return N.rect(0,0,10,10),N.rect(2,2,6,6),!N.isPointInPath(5,5,"evenodd")}function nt(N,q){ot(N,q);const X=yt(N),le=yt(N);return X!==le?["unstable","unstable"]:(yn(N,q),[yt(N),X])}function ot(N,q){N.width=240,N.height=60,q.textBaseline="alphabetic",q.fillStyle="#f60",q.fillRect(100,1,62,20),q.fillStyle="#069",q.font='11pt "Times New Roman"';const X="Cwm fjordbank gly 😃";q.fillText(X,2,15),q.fillStyle="rgba(102, 204, 0, 0.2)",q.font="18pt Arial",q.fillText(X,4,45)}function yn(N,q){N.width=122,N.height=110,q.globalCompositeOperation="multiply";for(const[X,le,Te]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])q.fillStyle=X,q.beginPath(),q.arc(le,Te,40,0,Math.PI*2,!0),q.closePath(),q.fill();q.fillStyle="#f9c",q.arc(60,60,60,0,Math.PI*2,!0),q.arc(60,60,20,0,Math.PI*2,!0),q.fill("evenodd")}function yt(N){return N.toDataURL()}function Jr(){return ke()&&$t()&&ge()}function Ta(){const N=navigator;let q=0,X;N.maxTouchPoints!==void 0?q=A(N.maxTouchPoints):N.msMaxTouchPoints!==void 0&&(q=N.msMaxTouchPoints);try{document.createEvent("TouchEvent"),X=!0}catch{X=!1}const le="ontouchstart"in window;return{maxTouchPoints:q,touchEvent:X,touchStart:le}}function ji(){return navigator.oscpu}function qi(){const N=navigator,q=[],X=N.language||N.userLanguage||N.browserLanguage||N.systemLanguage;if(X!==void 0&&q.push([X]),Array.isArray(N.languages))$e()&&Mt()||q.push(N.languages);else if(typeof N.languages=="string"){const le=N.languages;le&&q.push(le.split(","))}return q}function Xr(){return window.screen.colorDepth}function vl(){return O(E(navigator.deviceMemory),void 0)}function Qr(){if(!(ke()&&$t()&&ge()))return no()}function no(){const N=screen,q=le=>O(A(le),null),X=[q(N.width),q(N.height)];return X.sort().reverse(),X}const ei=2500,Oa=10;let wi,Gi;function yl(){if(Gi!==void 0)return;const N=()=>{const q=ro();io(q)?Gi=setTimeout(N,ei):(wi=q,Gi=void 0)};N()}function ti(){return yl(),async()=>{let N=ro();if(io(N)){if(wi)return[...wi];Fn()&&(await Bn(),N=ro())}return io(N)||(wi=N),N}}function mu(){if(ke()&&$t()&&ge())return()=>Promise.resolve(void 0);const N=ti();return async()=>{const q=await N(),X=le=>le===null?null:M(le,Oa);return[X(q[0]),X(q[1]),X(q[2]),X(q[3])]}}function ro(){const N=screen;return[O(E(N.availTop),null),O(E(N.width)-E(N.availWidth)-O(E(N.availLeft),0),null),O(E(N.height)-E(N.availHeight)-O(E(N.availTop),0),null),O(E(N.availLeft),null)]}function io(N){for(let q=0;q<4;++q)if(N[q])return!1;return!0}function ao(){return O(A(navigator.hardwareConcurrency),void 0)}function ch(){var N;const q=(N=window.Intl)===null||N===void 0?void 0:N.DateTimeFormat;if(q){const le=new q().resolvedOptions().timeZone;if(le)return le}const X=-vu();return`UTC${X>=0?"+":""}${X}`}function vu(){const N=new Date().getFullYear();return Math.max(E(new Date(N,0,1).getTimezoneOffset()),E(new Date(N,6,1).getTimezoneOffset()))}function yu(){try{return!!window.sessionStorage}catch{return!0}}function ni(){try{return!!window.localStorage}catch{return!0}}function De(){if(!(Ie()||Be()))try{return!!window.indexedDB}catch{return!0}}function rt(){return!!window.openDatabase}function it(){return navigator.cpuClass}function Ft(){const{platform:N}=navigator;return N==="MacIntel"&&ke()&&!Xe()?bn()?"iPad":"iPhone":N}function ht(){return navigator.vendor||""}function Gt(){const N=[];for(const q of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){const X=window[q];X&&typeof X=="object"&&N.push(q)}return N.sort()}function ct(){const N=document;try{N.cookie="cookietest=1; SameSite=Strict;";const q=N.cookie.indexOf("cookietest=")!==-1;return N.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",q}catch{return!1}}function zt(){const N=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',N("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",N("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",N("LnNwb25zb3JpdA=="),".ylamainos",N("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),N("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",N("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",N("LmhlYWRlci1ibG9ja2VkLWFk"),N("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",N("I2FkXzMwMFgyNTA="),N("I2Jhbm5lcmZsb2F0MjI="),N("I2NhbXBhaWduLWJhbm5lcg=="),N("I0FkLUNvbnRlbnQ=")],adGuardChinese:[N("LlppX2FkX2FfSA=="),N("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",N("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),N("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",N("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",N("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",N("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),N("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),N("LmFkZ29vZ2xl"),N("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[N("YW1wLWF1dG8tYWRz"),N("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",N("I2FkX2ludmlld19hcmVh")],adGuardRussian:[N("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),N("LnJlY2xhbWE="),'div[id^="smi2adblock"]',N("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[N("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),N("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",N("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),N("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),N("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",N("I3Jla2xhbWk="),N("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),N("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),N("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[N("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",N("LndpZGdldF9wb19hZHNfd2lkZ2V0"),N("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",N("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[N("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),N("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",N("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",N("I3Jla2xhbW5pLWJveA=="),N("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",N("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[N("I2FkdmVydGVudGll"),N("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",N("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",N("LnNwb25zb3JsaW5rZ3J1ZW4="),N("I3dlcmJ1bmdza3k="),N("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),N("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[N("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",N("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),N("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),N("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[N("LnJla2xhbW9zX3RhcnBhcw=="),N("LnJla2xhbW9zX251b3JvZG9z"),N("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),N("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),N("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[N("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[N("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),N("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",N("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[N("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),N("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),N("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",N("LmFkX19tYWlu"),N("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[N("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[N("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),N("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[N("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),N("I2xpdmVyZUFkV3JhcHBlcg=="),N("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),N("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[N("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",N("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),N("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),N("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[N("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),N("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),N("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",N("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),N("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),N("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),N("ZGl2I3NrYXBpZWNfYWQ=")],ro:[N("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),N("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),N("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),N("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[N("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),N("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),N("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",N("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),N("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",N("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}async function Et({debug:N}={}){if(!un())return;const q=zt(),X=Object.keys(q),le=[].concat(...X.map(Oe=>q[Oe])),Te=await ri(le);N&&fs(q,Te);const Ye=X.filter(Oe=>{const Fe=q[Oe];return T(Fe.map(Qe=>Te[Qe]))>Fe.length*.6});return Ye.sort(),Ye}function un(){return ke()||Sn()}async function ri(N){var q;const X=document,le=X.createElement("div"),Te=new Array(N.length),Ye={};ii(le);for(let Oe=0;Oe<N.length;++Oe){const Fe=H(N[Oe]);Fe.tagName==="DIALOG"&&Fe.show();const Qe=X.createElement("div");ii(Qe),Qe.appendChild(Fe),le.appendChild(Qe),Te[Oe]=Fe}for(;!X.body;)await c(50);X.body.appendChild(le);try{for(let Oe=0;Oe<N.length;++Oe)Te[Oe].offsetParent||(Ye[N[Oe]]=!0)}finally{(q=le.parentNode)===null||q===void 0||q.removeChild(le)}return Ye}function ii(N){N.style.setProperty("visibility","hidden","important"),N.style.setProperty("display","block","important")}function fs(N,q){let X="DOM blockers debug:\n```";for(const le of Object.keys(N)){X+=`
59
- ${le}:`;for(const Te of N[le])X+=`
60
- ${q[Te]?"🚫":"➡️"} ${Te}`}console.log(`${X}
61
- \`\`\``)}function so(){for(const N of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${N})`).matches)return N}function _u(){if(oo("inverted"))return!0;if(oo("none"))return!1}function oo(N){return matchMedia(`(inverted-colors: ${N})`).matches}function _l(){if(wu("active"))return!0;if(wu("none"))return!1}function wu(N){return matchMedia(`(forced-colors: ${N})`).matches}const hs=100;function uh(){if(matchMedia("(min-monochrome: 0)").matches){for(let N=0;N<=hs;++N)if(matchMedia(`(max-monochrome: ${N})`).matches)return N;throw new Error("Too high value")}}function xR(){if(lo("no-preference"))return 0;if(lo("high")||lo("more"))return 1;if(lo("low")||lo("less"))return-1;if(lo("forced"))return 10}function lo(N){return matchMedia(`(prefers-contrast: ${N})`).matches}function UR(){if(q_("reduce"))return!0;if(q_("no-preference"))return!1}function q_(N){return matchMedia(`(prefers-reduced-motion: ${N})`).matches}function FR(){if(G_("reduce"))return!0;if(G_("no-preference"))return!1}function G_(N){return matchMedia(`(prefers-reduced-transparency: ${N})`).matches}function BR(){if(W_("high"))return!0;if(W_("standard"))return!1}function W_(N){return matchMedia(`(dynamic-range: ${N})`).matches}const jt=Math,Gn=()=>0;function zR(){const N=jt.acos||Gn,q=jt.acosh||Gn,X=jt.asin||Gn,le=jt.asinh||Gn,Te=jt.atanh||Gn,Ye=jt.atan||Gn,Oe=jt.sin||Gn,Fe=jt.sinh||Gn,Qe=jt.cos||Gn,at=jt.cosh||Gn,Re=jt.tan||Gn,xe=jt.tanh||Gn,Jt=jt.exp||Gn,kt=jt.expm1||Gn,Nn=jt.log1p||Gn,xn=Xt=>jt.pow(jt.PI,Xt),wl=Xt=>jt.log(Xt+jt.sqrt(Xt*Xt-1)),_4=Xt=>jt.log(Xt+jt.sqrt(Xt*Xt+1)),w4=Xt=>jt.log((1+Xt)/(1-Xt))/2,b4=Xt=>jt.exp(Xt)-1/jt.exp(Xt)/2,S4=Xt=>(jt.exp(Xt)+1/jt.exp(Xt))/2,E4=Xt=>jt.exp(Xt)-1,k4=Xt=>(jt.exp(2*Xt)-1)/(jt.exp(2*Xt)+1),C4=Xt=>jt.log(1+Xt);return{acos:N(.12312423423423424),acosh:q(1e308),acoshPf:wl(1e154),asin:X(.12312423423423424),asinh:le(1),asinhPf:_4(1),atanh:Te(.5),atanhPf:w4(.5),atan:Ye(.5),sin:Oe(-1e300),sinh:Fe(1),sinhPf:b4(1),cos:Qe(10.000000000123),cosh:at(1),coshPf:S4(1),tan:Re(-1e300),tanh:xe(1),tanhPf:k4(1),exp:Jt(1),expm1:kt(1),expm1Pf:E4(1),log1p:Nn(10),log1pPf:C4(10),powPI:xn(-100)}}const VR="mmMwWLliI0fiflO&1",dh={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function HR(){return jR((N,q)=>{const X={},le={};for(const Te of Object.keys(dh)){const[Ye={},Oe=VR]=dh[Te],Fe=N.createElement("span");Fe.textContent=Oe,Fe.style.whiteSpace="nowrap";for(const Qe of Object.keys(Ye)){const at=Ye[Qe];at!==void 0&&(Fe.style[Qe]=at)}X[Te]=Fe,q.append(N.createElement("br"),Fe)}for(const Te of Object.keys(dh))le[Te]=X[Te].getBoundingClientRect().width;return le})}function jR(N,q=4e3){return Dn((X,le)=>{const Te=le.document,Ye=Te.body,Oe=Ye.style;Oe.width=`${q}px`,Oe.webkitTextSizeAdjust=Oe.textSizeAdjust="none",$e()?Ye.style.zoom=`${1/le.devicePixelRatio}`:ke()&&(Ye.style.zoom="reset");const Fe=Te.createElement("div");return Fe.textContent=[...Array(q/20<<0)].map(()=>"word").join(" "),Ye.appendChild(Fe),N(Te,Ye)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function qR(){return navigator.pdfViewerEnabled}function GR(){const N=new Float32Array(1),q=new Uint8Array(N.buffer);return N[0]=1/0,N[0]=N[0]-N[0],q[3]}function WR(){const{ApplePaySession:N}=window;if(typeof(N==null?void 0:N.canMakePayments)!="function")return-1;if(KR())return-3;try{return N.canMakePayments()?1:0}catch(q){return $R(q)}}const KR=Me;function $R(N){if(N instanceof Error&&N.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(N.message))return-2;throw N}function ZR(){var N;const q=document.createElement("a"),X=(N=q.attributionSourceId)!==null&&N!==void 0?N:q.attributionsourceid;return X===void 0?void 0:String(X)}const K_=-1,$_=-2,YR=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),JR=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),XR=["FRAGMENT_SHADER","VERTEX_SHADER"],QR=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Z_="WEBGL_debug_renderer_info",e4="WEBGL_polygon_mode";function t4({cache:N}){var q,X,le,Te,Ye,Oe;const Fe=fh(N);if(!Fe)return K_;if(!X_(Fe))return $_;const Qe=J_()?null:Fe.getExtension(Z_);return{version:((q=Fe.getParameter(Fe.VERSION))===null||q===void 0?void 0:q.toString())||"",vendor:((X=Fe.getParameter(Fe.VENDOR))===null||X===void 0?void 0:X.toString())||"",vendorUnmasked:Qe?(le=Fe.getParameter(Qe.UNMASKED_VENDOR_WEBGL))===null||le===void 0?void 0:le.toString():"",renderer:((Te=Fe.getParameter(Fe.RENDERER))===null||Te===void 0?void 0:Te.toString())||"",rendererUnmasked:Qe?(Ye=Fe.getParameter(Qe.UNMASKED_RENDERER_WEBGL))===null||Ye===void 0?void 0:Ye.toString():"",shadingLanguageVersion:((Oe=Fe.getParameter(Fe.SHADING_LANGUAGE_VERSION))===null||Oe===void 0?void 0:Oe.toString())||""}}function n4({cache:N}){const q=fh(N);if(!q)return K_;if(!X_(q))return $_;const X=q.getSupportedExtensions(),le=q.getContextAttributes(),Te=[],Ye=[],Oe=[],Fe=[],Qe=[];if(le)for(const Re of Object.keys(le))Ye.push(`${Re}=${le[Re]}`);const at=Y_(q);for(const Re of at){const xe=q[Re];Oe.push(`${Re}=${xe}${YR.has(xe)?`=${q.getParameter(xe)}`:""}`)}if(X)for(const Re of X){if(Re===Z_&&J_()||Re===e4&&a4())continue;const xe=q.getExtension(Re);if(!xe){Te.push(Re);continue}for(const Jt of Y_(xe)){const kt=xe[Jt];Fe.push(`${Jt}=${kt}${JR.has(kt)?`=${q.getParameter(kt)}`:""}`)}}for(const Re of XR)for(const xe of QR){const Jt=r4(q,Re,xe);Qe.push(`${Re}.${xe}=${Jt.join(",")}`)}return Fe.sort(),Oe.sort(),{contextAttributes:Ye,parameters:Oe,shaderPrecisions:Qe,extensions:X,extensionParameters:Fe,unsupportedExtensions:Te}}function fh(N){if(N.webgl)return N.webgl.context;const q=document.createElement("canvas");let X;q.addEventListener("webglCreateContextError",()=>X=void 0);for(const le of["webgl","experimental-webgl"]){try{X=q.getContext(le)}catch{}if(X)break}return N.webgl={context:X},X}function r4(N,q,X){const le=N.getShaderPrecisionFormat(N[q],N[X]);return le?[le.rangeMin,le.rangeMax,le.precision]:[]}function Y_(N){return Object.keys(N.__proto__).filter(i4)}function i4(N){return typeof N=="string"&&!N.match(/[^A-Z0-9_x]/)}function J_(){return Le()}function a4(){return $e()||ke()}function X_(N){return typeof N.getParameter=="function"}function s4(){if(!(Sn()||ke()))return-2;if(!window.AudioContext)return-1;const N=new AudioContext().baseLatency;return N==null?-1:isFinite(N)?N:-3}function o4(){if(!window.Intl)return-1;const N=window.Intl.DateTimeFormat;if(!N)return-2;const q=N().resolvedOptions().locale;return!q&&q!==""?-3:q}const Q_={fonts:Pt,domBlockers:Et,fontPreferences:HR,audio:pt,screenFrame:mu,canvas:he,osCpu:ji,languages:qi,colorDepth:Xr,deviceMemory:vl,screenResolution:Qr,hardwareConcurrency:ao,timezone:ch,sessionStorage:yu,localStorage:ni,indexedDB:De,openDatabase:rt,cpuClass:it,platform:Ft,plugins:R,touchSupport:Ta,vendor:ht,vendorFlavors:Gt,cookiesEnabled:ct,colorGamut:so,invertedColors:_u,forcedColors:_l,monochrome:uh,contrast:xR,reducedMotion:UR,reducedTransparency:FR,hdr:BR,math:zR,pdfViewerEnabled:qR,architecture:GR,applePay:WR,privateClickMeasurement:ZR,audioBaseLatency:s4,dateTimeLocale:o4,webGlBasics:t4,webGlExtensions:n4};function l4(N){return Nt(Q_,N,[])}const c4="$ if upgrade to Pro: https://fpjs.dev/pro";function u4(N){const q=d4(N),X=f4(q);return{score:q,comment:c4.replace(/\$/g,`${X}`)}}function d4(N){if(Sn())return .4;if(ke())return Xe()&&!($t()&&ge())?.5:.3;const q="value"in N.platform?N.platform.value:"";return/^Win/.test(q)?.6:/^Mac/.test(q)?.5:.7}function f4(N){return M(.99+.01*N,1e-4)}function h4(N){let q="";for(const X of Object.keys(N).sort()){const le=N[X],Te="error"in le?"error":JSON.stringify(le.value);q+=`${q?"|":""}${X.replace(/([:|\\])/g,"\\$1")}:${Te}`}return q}function hh(N){return JSON.stringify(N,(q,X)=>X instanceof Error?Se(X):X,2)}function gh(N){return ie(h4(N))}function g4(N){let q;const X=u4(N);return{get visitorId(){return q===void 0&&(q=gh(this.components)),q},set visitorId(le){q=le},confidence:X,components:N,version:b}}function e1(N=50){return f(N,N*2)}function p4(N,q){const X=Date.now();return{async get(le){const Te=Date.now(),Ye=await N(),Oe=g4(Ye);return(q||le!=null&&le.debug)&&console.log(`Copy the text below to get the debug data:
56
+ });`));let S=re(!1);const k=p()?C3(p()):null;function h(){var v;k==null||k.abort();const m=n().step;m&&m.type==="Step"&&((v=p())==null||v.next(m))}async function y(){var m,v;(m=p())==null||m.reset();try{const w=await dl.latest();await((v=p())==null?void 0:v.start(w))}catch(w){console.error("Unable to restart journey",w)}}Hn(()=>{Y(S,n()&&!n().successful)}),$w(()=>{k==null||k.destroy()});var b={get componentStyle(){return l()},set componentStyle(m){l(m),B()},get displayIcon(){return d()},set displayIcon(m){d(m),B()},get formEl(){return g()},set formEl(m){g(m),B()},get journeyStore(){return p()},set journeyStore(m){p(m),B()},get externalStages(){return _()},set externalStages(m){_(m),B()},$set:Ke,$on:(m,v)=>Ge(t,m,v)};dt();var c=mt(),u=qe(c);{var f=m=>{var v=mt(),w=qe(v);{var A=O=>{var T=$4(),L=de(T);pr(L,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),ce(T),Q(O,T)},E=O=>{var T=mt(),L=qe(T);{let P=me(()=>(W(d()),n(),Z(()=>{var I,D;return{icon:d(),message:((I=n().error)==null?void 0:I.message)||"",status:(D=n().error)!=null&&D.code?"error":"ok",submit:h}}))),N=me(()=>(n(),W(p()),W(dl),Z(()=>({loading:n().loading,pop:p().pop,push:p().push,stack:dl,redirect:p().redirect}))));Og(L,()=>K4(n().step,_()),(I,D)=>{D(I,{get componentStyle(){return l()},get form(){return C(P)},get journey(){return C(N)},get metadata(){return n(),Z(()=>n().metadata)},get step(){return n(),Z(()=>n().step)},get formEl(){return g()},set formEl(F){g(F)},$$legacy:!0})})}Q(O,T)};Ze(w,O=>{n(),Z(()=>n()&&!n().step)?O(A):(n(),Z(()=>{var T;return((T=n().step)==null?void 0:T.type)==="Step"})&&O(E,1))})}Q(m,v)},a=m=>{var v=Z4(),w=de(v);pr(w,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),ce(v),Q(m,v)},o=m=>{var v=Y4(),w=qe(v);Gn(w,{id:"unrecoverableStepError",get needsFocus(){return C(S)},type:"error",children:(E,O)=>{ut(E,{html:!0,key:"unrecoverableError"})},$$slots:{default:!0}});var A=pe(w,2);On(A,{style:"secondary",onClick:y,children:(E,O)=>{ut(E,{key:"tryAgain"})},$$slots:{default:!0}}),Q(m,v)};Ze(u,m=>{n(),Z(()=>n()&&!n().completed)?m(f):(n(),Z(()=>n()&&n().successful)?m(a,1):m(o,-1))})}Q(e,c);var s=He(b);return i(),s}const fl=d3(Ug()),J4=fl.configure,X4=fl.journey,Q4=Ug,eP=fl.user,tP=fl.protect;var nP=ke('<div class="fr_widget-root svelte-1qcpfdr"><!></div>'),rP=ke('<div class="fr_widget-root svelte-1qcpfdr"><!></div>');function I_(e,t){if(new.target)return We({component:I_,...e});Ve(t,!1);const n=()=>or(Kr,"$styleStore",r),[r,i]=Pr();let l=V(t,"type",12,"modal");const{journeyStore:d}=fl.getStores();let g=re(),p=re(),_=re(),S=re();jr(()=>{Yw(C(g),C(p))}),yt(()=>(C(S),n()),()=>{var f;y3(C(S),(f=n())==null?void 0:f.theme)}),Ot();var k={get type(){return l()},set type(f){l(f),B()},$set:Ke,$on:(f,a)=>Ge(t,f,a)};dt();var h=mt(),y=qe(h);{var b=f=>{var a=nP(),o=de(a);{let s=me(()=>(n(),Z(()=>{var m,v;return(v=(m=n())==null?void 0:m.sections)==null?void 0:v.header})));an(ky(o,{dialogId:"sampleDialog",get withHeader(){return C(s)},get dialogEl(){return C(p)},set dialogEl(m){Y(p,m)},children:(m,v)=>{{let w=me(()=>(n(),Z(()=>{var A,E,O;return((E=(A=n())==null?void 0:A.stage)==null?void 0:E.icon)??!((O=n())!=null&&O.logo)})));Jf(m,{componentStyle:"modal",get displayIcon(){return C(w)},get journeyStore(){return d},get formEl(){return C(_)},set formEl(A){Y(_,A)},$$legacy:!0})}},$$slots:{default:!0},$$legacy:!0}),m=>Y(g,m),()=>C(g))}ce(a),an(a,s=>Y(S,s),()=>C(S)),Q(f,a)},c=f=>{var a=rP(),o=de(a);{let s=me(()=>(n(),Z(()=>{var m,v;return((v=(m=n())==null?void 0:m.stage)==null?void 0:v.icon)??!0})));Jf(o,{componentStyle:"inline",get displayIcon(){return C(s)},get journeyStore(){return d},get formEl(){return C(_)},set formEl(m){Y(_,m)},$$legacy:!0})}ce(a),an(a,s=>Y(S,s),()=>C(S)),Q(f,a)};Ze(y,f=>{l()==="modal"?f(b):f(c,-1)})}Q(e,h);var u=He(k);return i(),u}if(typeof window<"u"){let p=function(h,y){const b=_();return p=function(c,u){return c=c-308,b[c]},p(h,y)},_=function(){const h=["NAVIGATOR_LANGUAGE","DeviceMotionEvent","languages","Microsoft YaHei","isBatterySupported","driver","RunPerfTest","ie8compat","UAParserHelperMetadata","hasInput","password","cpuClass","iframeWindow","Hoefler Text","Yahoo! Japan","getAutofillMetadataSmart","code","hasOwnProperty","fingerPrintComponents","LKLUG","debug","visibility","createDataChannel","animationstart","external","span","Segoe MDL2 Assets","input:-webkit-autofill { animation: autofill-detection 0.001s; }","_ST_PING","audio/aac","csi","width","Poppins"," [native code]","origin","__webdriver_unwrapped","VENDOR","hasTrustToken","NAVIGATOR_POINTER_ENABLED","websockets","window_fmget_targets","getFingerPrint","Open Sans","you","Battery not supported!","statusText","localStorage","window","next","removeItem","engine","trim","MS Reference Specialty","webgl2","matchmedia","__fxdriver_unwrapped","Pristina","hasPassword","Consolas","DetectHeadless","mmMwWLliI0O&1","includes","__fxdriver_evaluate","mozConnection","Herculanum","contextmenu","', ","Raleway","VIDEO_CARD","headlessTests","Menlo","Chalkboard","universalTrustEnabled","Apple Symbols","closed","inapp","sinh","BROWSER_VOICES_COUNT","safari","toLowerCase","selenium_in_window","ambient-light-sensor","getContext","baseFonts","internationalization","failed to get broJsFingerprint info","Windows Phone","Other","getLies","createOffer","Trattatello","Noto Sans CJK SC","webdriverCommand","__lastWatirAlert","HASLIEDRESOLUTION","engineVersion","getNewObjectToStringTypeErrorLie","documentLie","detectFontsQuick","onicecandidate","custom_event","ZTE","getHasLiedResolution","getAttribute","backgroundColor","size","Failed to setup autofill detection:","configurable","isIphoneOrIPad","Serifa","27szwMUD","indexed_db_blob","join","INPUT","Segoe Script","webkitRequestFileSystem","constructor","MAX_VARYING_VECTORS","Liberation Mono","Bodoni 72 Smallcaps","MingLiU-ExtB","LvTel","acos","timeout","Georgia","toFixed","Baskerville","Sawasdee","AGENT_DEVICE_URL","failed to add client hints","error_code","now","isCanvasSupported","rgb(250, 255, 189)","Futura Bk BT","quota detection failed: ","Cochin","htmlGeoLocation_heading","mediaplayer","detectAutofillFieldsAsync","version","setAttribute","light","NAVIGATOR_HID_SUPPORTED","spawn","type","testString","initDeviceIdentity","createInvisibleElement","awesomium","canPlayType","getAllLies","FingerPrint failed","open","AT&T","Noto Color Emoji","AUDIO_OUTPUT_DEVICES","formFactor","ondevicelight","cosh","addStealthTest","denied","getHasLiedBrowser","speechSynthesis","map","history","SimSun","getSupportedExtensions","keys","autocomplete","BATTERY_CHARGING_TIME","COOKIES_ENABLED","Zeki","sans-serif-medium","userLanguage","detectFontsWithCanvas","getQuickFingerprint","vendorFlavors","consistent_mimetypes_prototype","colorGamut","Envizen","batteryCharging","language","...","connect","Notification","NAVIGATOR_USER_AGENT","font","filter","requestanimationframe","webRtcIps","length","processInputsWithTimeout","sessionStorage.length","DejaVu Serif","isInvalidStackTraceSize","add","ontouchstart","addPropertyDescriptorInfo","split","getGeoLocationData","rgb(232, 240, 254)","Standard Symbols L","Modernizr","error","indexeddb","NAVIGATOR_KEYBOARD_SUPPORTED","dataforseobot","OS_CPU","HAS_HOVER","failed to get audio-video info","application_cache","FingerprintJS","Humanst521 BT","(any-hover: hover)","headless_chrome","getIoMetadata","detectFonts","getAiaSignals","Ubuntu","battery_api","latitude","apply","Ubuntu Condensed","sans-serif-thin","bluetooth","__proto__","webkitTemporaryStorage","screen","Arial","claudebot","Trebuchet MS","dark","query","openDatabase","PMingLiU","true","JS_FONTS","DOCUMENT_ELEMENT_DRIVER","Font detection failed","PromiseQueue","getPermissionsMetadata","browserInfo","semrushbot-ocob","vertical","(prefers-color-scheme: light)","Internet Explorer","Symbol","Segoe Print","web_sockets","Times","FontFingerprint","NAVIGATOR_CLIENT_HINTS_BITNESS","calculated browser device attributes.","test"," in async detection:","googleother-video","Meera","agentPort","selenium_in_navigator","videoInputDevices","has","MAX_VERTEX_ATTRIBS","$cdc_asdjflasutopfhvcZLmcfl_","_phantom","NAVIGATOR_DEVICE_MEMORY","Minion Pro","productSub","getIdentificationMetadata","BATTERY_DISCHARGING_TIME","fontHash","clipboard-read","SCREEN_FRAME","seleniumSequentum","***","Sitka","visitorId","granted","HAS_CHROME_RUNTIME","timestamp","canvas","sans-serif-light","find","none","FreeMono","cant","window_RunPerfTest","Copperplate","getOwnPropertyDescriptors","SignPainter","ondevicemotion","fillText","maxTextureSize","game_pads","MQ_SCREEN","webkit-autofill","ipod","LocalAgentAccessor","_WEBDRIVER_ELEM_CACHE","maxFragmentUniformVectors","unknown","addIframeData","getAutofillMetadata","undefined","coords","collectWebRtc","MAX_VERTEX_UNIFORM_VECTORS","Zapfino","gpsSupported","ondeviceproximity","FreeSans","Avenir Next Condensed","browser","NAVIGATOR_VIBRATE","ligatures","plugins","Century","AUDIO_FINGERPRINT","Failed to fetch the Workstation data. Invalid network response: ","externalIdentifiers","number","setTrustToken","Mukta","autocompleted","SDKBP_FINGERPRINT","blob_constructor","failed to get battery info","Montserrat","NAVIGATOR_SERIAL_SUPPORTED","maxVertexUniformVectors","height","batteryInit","audioInputDevices","ARCHITECTURE","Browser unknown","mobile","Ubuntu Mono","Roboto Slab","Avenir","privateClickMeasurement","querySelectorAll","requestIdleCallback","Tahoma","detectInputAutofill","AvantGarde Bk BT","fontList","pow","Haettenschweiler","set","getToStringLie","perplexitybot","Didot","Noto Sans CJK JP","Bahnschrift","data-lastpass-icon-id","GYROSCOPE_SUPPORTED","experimental-webgl","WEBGL_MAXVERTEXATTRIBS","Segoe UI Symbol","isChromeFamily","failed to get headless results","pointerevents","chrome_runtime_functions_invalid","animationName","Savoye LET","Error in smart autofill detection, falling back to sync:","DejaVu Sans Mono","__awaiter","MAX_RENDERBUFFER_SIZE","Courier New","Apple SD Gothic Neo","dataPoints","deviceId","top","SimHei","intl","isArray","isAutofilled","model","webRtcUrl","_FAILED","NAVIGATOR_CLIENT_HINTS_FULL_VERSION","user","Mac","trident","videoinput","onLine","Playfair Display","Firefox","expm1","metadataParams","cookiesEnabled","detectFontsWithIframe","Edge","notification","stealth test ","dataview","object","clearRect","Levenim MT","maxVertexTextureImageUnits","KacstOne","safeAddMetadata","querySelector","hasName","pwd","__webdriver_script_fn","value","hasEvent","autofilled","method","performFontDetection","localAgentJwt","omgilibot","TIMEOUT","flatAndAddMetadata","PUSH_NOTIFICATIONS_SUPPORTED","throw","__lastWatirConfirm","stack","geolocation","NAVIGATOR_VENDOR","geo_location","sessionData","MAX_TEXTURE_IMAGE_UNITS","RESOLUTION","windows phone","numberOfAudioDevices","random","connection","Geolocation retrieval failed: Location permission denied by the user.","tan","Ebrima","loadTimes","pagevisibility","jsHeapSizeLimit","gptbot","mimeTypes","Volvo","WEBKIT_FORCE_AT_MOUSE_DOWN","dom-query-error","bytespider","deleteDatabase","round","NAVIGATOR_APP_CODE_NAME","prototype","Failed to get FingerPrint ","fontFingerprintResult","getVoicesCount","selenium_in_document","getHeadlessResults","state","Microsoft Yi Baiti","Battery ","_POSignalsUtils","hasAutofill","WebGLMetadata","trustTokenOperationError","AppleGothic","GET","contains","seleniumInNavigator","fontPreferences","getCurrentBrowserFingerPrint","userAgent","magnetometer","Error during detection of aiasignals:","Noto Sans","getUndefinedValueLie","metadataQueue","serviceWorker","getHasLiedLanguages","eventlistener","getParameter","htmlGeoLocation_timestamp","renderer","Monotype Corsiva","video","BROWSER_ENGINE_NAME","Apple Chancery","abort","timezone","browserType","Swiss","BLUTOOTH_SUPPORTED","cell","fonts","WEBGL_MAXFRAGMENTUNIFORMVECTORS","ACCELEROMETER_SUPPORTED","blobconstructor","WEBGL_MAXVERTEXTEXTUREIMAGEUNITS","Constantia","safeAddModernizrFeatures","performance","simpleHash","EUROSTILE","Linux","Unknown","htmlGeoLocation_latitude","Phosphate","SQRT2","processInputsSynchronously","IFRAME_CHROME","IS_WEBGL2","Segoe UI Light","downlinkMax","all","FILE_INJECT_JS_FOUND","absolute","linux","fingerPrint"," inputs","catch","browserMajor","additionalMediaCodecs","query_selector","Failed to query input elements in async detection:","failed to get deviceId info","Times New Roman","getOps","iframe","notifications","VIDEO_INPUT_DEVICES","force_touch","Candara","NAVIGATOR_ON_LINE","htmlGeoLocation_speed","DetectStealth","Essential","SHADING_LANGUAGE_VERSION","LOG2E","tagName","getLineDash","6608340mbTdOA","OPS","fontFamily","sin"," in browser '","__selenium_unwrapped","Helvetica","fingerPrintComponentKeys","full_screen","osVersion","toUpperCase","log","http://127.0.0.1","webglVersion","Droid Sans","clear","numberOfVideoDevices","phone","Microsoft Himalaya","detectAutofillFields","MS Outlook","ccbot","Urdu Nastaliq Unicode","Liberation Sans Narrow","Lucida Sans","-9999px","floc","AUDIO","parentNode","win","Noto Mono","page_visibility","MEMORY_HEAP_SIZE_LIMIT","function query() { [native code] }","create","android","WEB_RTC_ENABLED","Futura Md BT","indexeddbblob","20030107","broJsFingerprint","atanh","cbrt","getDirectory","minDecibels","isWebGlSupported","Geolocation retrieval failed: Location information is unavailable.","failed to get font fingerprint info","Calibri","autofill-detector-styles","DEDVCE_LIGHT_SUPPORTED","PROXIMITY_SUPPORTED","Verdana","Failed to start async autofill detection:","queryselector-unsupported","Meiryo","contentDocument"," inputs, checking first ","message","ipad","min","chrome","contentWindow","matchMedia","timpibot","selenium-evaluate","Rachana","Merriweather","Microsoft Tai Le","Ink Free","keyboard"," failed","LIES.","gyroscope","NAVIGATOR_LANGUAGES","mac","floc_version","BankGothic Md BT","metadataBlackList","data-com-onepassword-filled","kind","extensions","TRAJAN PRO","Error processing input ","LIES","getObfsInfo","getFrequencyResponse","touch_events","SeleniumProperties","caller","Monaco","accuracy","NAVIGATOR_CONNECTION_RTT","propertyBlackList","then","Geolocation retrieval failed: Location request timed out.","addEventListener","contrast","srcdoc_triggers_window_proxy","event_listener","hasEmail","maxVaryingVectors","createObjectStore","_POSignalsMetadata","getWebglCanvas","writable","input","consistent_plugins_prototype","__driver_unwrapped","Palatino Linotype","page intentionally left blank","Bitstream Charter","cpuArchitecture","Letter Gothic","serviceworker","pass","GOTHAM","hashMini","Marker Felt","warn","NAVIGATOR_APP_VERSION","Meiryo UI","WEBGL2VENDORANDRENDERER","stringify","forcedColors","library","window_html_webdriver","webdriver-evaluate-response","NAVIGATOR_CLIENT_HINTS_ARCHITECTURE","audio","LN2","usedJSHeapSize","data-attribute","Gabriola","VENDOR_FLAVORS","quotamanagement","Metadata","webGlBasics","StackTraceTester","aiSignalsResult","e-mail","browser-class","__lastWatirPrompt","TOUCH_SUPPORT","lied","mediaDevices","Document not available for autofill detection","Agency FB","maxTouchPoints","webdriver","__webdriver_evaluate","toString","cros","BROWSER_VERSION","Skia","setupAutofillDetection","browserVersion","Logger","Nunito","userAgentData","IS_CHROME_FAMILY","animation-detection","extendPrimitiveValues","Fingerprint timeout","application/json","PingOne Signals deviceCreatedAt: ","Vrinda","HAS_CHROME_LOADTIMES","tablet","PingOne Signals deviceId: ","NAVIGATOR_WEB_DRIVER","NAVIGATOR_CLIENT_HINTS_BRAND_","srcdoc","outerWidth","OS_VERSION","reducedTransparency","DeviceOrientationEvent","Lohit Gujarati","removeEventListener","Function_prototype_toString_invalid_typeError","Impact","driver-evaluate","forEach","ambientlight","htmlGeoLocation_ErrorCode","WEBGL_EXTENSIONS","appendChild","function () { [native code] }","textSize","MS Gothic","deviceVendor","DEVICE_MODEL","AGENT_BASE_URL","NAVIGATOR_PLATFORM","Arial Unicode MS","queryselector","msSaveBlob","localAgentJwtRequestCount","velenpublicwebcrawler","Dell","Microsoft New Tai Lue","domAutomation","flatten","MAX_TEXTURE_SIZE","ARNO PRO","ChromeDriverw","failed to get private mode info","PERMISSIONS.geolocation","devToolsOrientation","Chromium","WEBGL_SHADINGLANGUAGEVERSION","Canvas font detection failed","autofillCount","_pingOneSignalsPingResult","Roboto","load","Javanese Text","pointer_lock","detectionMethods","delay","(prefers-color-scheme: dark)","scrapy","PDF_VIEWER_ENABLED","INCOMPATIBLE_BROWSER","fontSize","Charter","getPrototypeInFunctionLie","getExtension","audioOutputDevices","push","PLUGINS","Promise","getCurrentPosition","RCA","charging","isIAFDetectionEnabled","cryptography","replace","memory","setItem","NAVIGATOR_CLIENT_HINTS_MODEL","freeze","offsetHeight","components","() {","SCRIPTINA","voiceschanged","fullVersionList","htmlGeoLocation_longitude","web_gl","removeChild","json","Autofill detection timeout after processing ","videoCard","hidden","pointerEnabled","oai-searchbot","NuVision","Century Gothic","hdr","permissions_api_overriden","Optima","getProperty","Dragon Touch","audioIntVideoInit","engineName","MV Boli","Cantarell","getOwnPropertyDescriptor","HAS_TOUCH","_selenium","Chalkboard SE","amazonbot","createElement","browser-autofilled","JS_CHALLENGE","enumerateDevices() cannot run within safari iframe","race","getOwnPropertyNames","promiseTimeout","BLINK","left","VERSION","getHasLiedOs","getLocalAgentJwt","result","get","WEBGL_MAXRENDERBUFFERSIZE","sqrt","devToolsOpen","youbot","allSettled","navigator.webdriver_present","Incognito","DetectLies","Nirmala UI","trustToken","Roboto Condensed","toDataURL","fingerprint","Bitstream Vera Sans Mono","agentIdentificationEnabled","selenium_sequentum","FILE_CONTENT_JS_FOUND","appName","7884160moAMPL","brands","webzio-extended","Tibetan Machine Uni","BROWSER_TAB_HISTORY_LENGTH","Padauk","function get ","IFRAME_HEIGHT","Windows","microphone","LIES_IFRAME","HAS_MICROPHONE","iOS","longitude","custom_elements","lieTypes","domBlockers","getAutofillMetadataAsync","lieTests","OS_NAME","NAVIGATOR_MIME_TYPES_LENGTH","queryUsageAndQuota","disabledStorage","Opera","substr","MS Mincho","Oswald","getOwnPropertyLie","log10","isAIBot","background-sync","Noto Sans CJK KR","isElectronFamily","appVersion","permission","Leelawadee","isPrivateModeV2","enumerateDevices","9921562buzzOg","customprotocolhandler","AUDIO_INPUT_DEVICES","UNMASKED_RENDERER_WEBGL","platform","style","MT Extra","px)","IS_ACCEPT_COOKIES","HAS_CHROME_APP","[[IsRevoked]]","function","textContent","failed ","audio/x-m4a","sort","Leelawadee UI","hardwareConcurrency","rad.io","data-autofilled","substring","typed_arrays","DOCUMENT_ELEMENT_WEBDRIVER","localAgentAccessor","MS UI Gothic","label","exec","storage","pike","fetcher","getWebglData","firefox","accessibility-events","Lato","google-extended","product","field-type-heuristic","Abyssinica SIL","request_animation_frame","htmlGeoLocation_ErrorMessage","72px","WEBGL_MAXVERTEXUNIFORMVECTORS","Android","IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE","function ","NAVIGATOR_APP_NAME","STEALTH","hasMicrophone","BROWSER_MAJOR","cors","Failed to fetch the Workstation data: ","architecture","HASLIEDBROWSER","slice","Helvetica Neue","emit","horizontal","addAutofillResult","NETWORK_DOWNLOAD_MAX","Small Fonts","seleniumInWindow","NAVIGATOR_PLUGINS_LENGTH","aiaSignals","ai2bot","Neither WebGL 2.0 nor WebGL 1.0 is supported.","RTCPeerConnection","getMediaCodec","hasWebcam","applePay","Bodoni 72","HAS_CAMERA","Security error","isWebGl2","force_touch.mouse_force_will_begin","deviceMemory","runtime","document-unavailable","HASLIEDLANGUAGES","Buffer","FreeSerif","Gargi","appCodeName","Big Caslon","isFunction","level","availHeight","Util","RENDERER","body","window_geb","deviceModel","getTime","force_touch.webkit_force_at_mouse_down","batteryChargingTime","failed to add iframe data","some","messagechannel","user name","app","callPhantom","NAVIGATOR_PRESENTATION_SUPPORTED","getBroPrintFingerPrint","Source Sans Pro","navigator.plugins_empty","documentElement","Corbel","copyFromChannel","Document not available for async autofill detection","105246tdrkWn","Function","getVoices","customelements","getStealthResult","voicesCount","monospace","Modernizr.on Failed with feature ","detectedFields",'video/mp4;; codecs = "avc1.42E01E"',"POSITION_UNAVAILABLE","prefixed","Lohit Tamil","serializedDeviceAttributes","WEBGL_debug_renderer_info","Khmer OS System","hasNumber","hasSpeakers","email","force_touch.webkit_force_at_force_mouse_down","floc_id","Century Schoolbook L","[[Handler]]","permissions","PERMISSIONS","autoFillMeta","batteryLevel","candidate","address","safeModernizrOn","isWebGl","FONT_FINGERPRINT","iphone","Marlett","googleother","imagesiftbot","Geolocation retrieval failed: Unknown geolocation error occurred.","custom_protocol_handler","petalbot","moz-autofill","AutofillDetector","__driver_evaluate","isBot","details","headlessResults","BATTERY_CHARGING","exiforientation","navigator.languages_blank","devicePixelRatio","dateTimeLocale","fmget_targets","Sylfaen","iframe_window","Univers CE 55 Medium","Verizon","placeholder","clipboard-write","vibrate","Apple Color Emoji","Yu Gothic","domAutomationController","Arabic Typesetting","webkitRTCPeerConnection","[[Target]]","detectPageInputFields","toSource","UNMASKED_VENDOR_WEBGL","HEADLESS","setProperty","vendor","DejaVu Sans","hashFonts","applicationcache","' in browser '","Chrome","pointerlock","isPrivate","msMaxTouchPoints","signal","touchSupport","MEDIA_CODEC_X_M4A","2675716vuQeYs","Canvas context not available","Droid Serif","omgili","name","GPS_SUPPORTED","accelerometer","NAVIGATOR_HARDWARE_CONCURRENCY","isMobile","hide","window_awesomium","HELV","IS_PRIVATE_MODE","function () {","matches","evaluateModernizr","srcdoc_throws_error","WEBGL_MAXTEXTUREIMAGEUNITS","Microsoft PhagsPa","250, 255, 189","cookieEnabled","Failed to detect autofill:","__selenium_evaluate","indexOf","classList","googleother-image","getBattery","webgl","NAVIGATOR_CLIENT_HINTS_FORM_FACTORS","data-rapid-fill","service_worker","forcetouch","searchLies","Cambria","failed to get permissions info","proximity"," headless test was failed","midi","() { [native code] }","string","aria-label","remove","8763432iXdKsh","reducedMotion","Brush Script MT","PERMISSION_DENIED","data_view","indexedDB","tanh","filename","getDevicePayload","Arial Hebrew","bitness","head","NAVIGATOR_CLIENT_HINTS_PLATFORM","acosh","duration","text","info","WEBGL_MAXCOMBINEDTEXTUREIMAGEUNITS","getGeoSessionData","webdriver-evaluate","isPrivateMode","Safari","document","selenium","Comic Sans MS","important","querySelectorAll not supported for autofill detection","osName","assign","Geolocation permission state is '","match","fullscreen","cookieStore","__webdriverFunc","$chrome_asyncScriptInfo","onAutoFillStart","refreshDeviceAttributes","screenFrame","calledSelenium","ambient_light","referrer","enumerable","camera","deviceCreatedAt","IS_AIBot","calculateDeviceMetadata","innerWidth","enumerateDevices() not supported.","outerHeight"," -> ","Lucida Sans Unicode","detectChromium","enumerateDevicesEnabled","lastCalculatedMetadata","NAVIGATOR_PRODUCT","getFontFingerprint","platformVersion","NOTIFICATION_PERMISSION","agentTimeout","HAS_SPEAKERS","Liberation Serif","onupgradeneeded","batteryDischargingTime","resolve","Malgun Gothic","Segoe UI","addClientHints","position","Courier","tel","Lucida Console","NAVIGATOR_CLIENT_HINTS_MOBILE",":-webkit-autofill","BATTERY_LEVEL","Liberation Sans","function toString() { [native code] }","American Typewriter","Webdings","anthropic-ai","seleniumInDocument","C059","Barnes & Noble","hasAttribute","div","navigator","getRTCPeerConnection","WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN","pdfViewerEnabled","gamepads","maxRenderbufferSize","brand","Failed to get font fingerprint: ","username","window.chrome_missing","TypeError","BROWSER_NAME","__webdriver_script_function"," test execution","62671tHBJnn","calculatedDevToolsOpen","htmlGeoLocation","colorDepth","PREFERS_COLOR_SCHEME","claude-web","interestCohort","touchevents","call","getHighEntropyValues","Lucida Bright","webGlStatus","mozRTCPeerConnection","WINDOW_GLOBAL_KEY_FOUND","getComputedStyle","dischargingTime","maxTextureImageUnits","deviceCategory"];return _=function(){return h},_()};var ee;(function(h,y){typeof h.CustomEvent!="function"&&(h.CustomEvent=y())})(window,function(){function h(y,b){b=b||{bubbles:!1,cancelable:!1,detail:null};var c=document.createEvent("CustomEvent");return c.initCustomEvent(y,b.bubbles,b.cancelable,b.detail),c}return h}),function(){var h="PING-SDK-VERSION-PLACEHOLDER",y="st-ping-div",b=/(console|auth)-(test|staging)((\w|\d|-)*)\.pingone.com/,c=/(console|auth)((\w|\d|-)*)\.test-(one|two)-pingone\.com/,u=/(console|auth)((\w|\d|-)*)\.ort-(one|two)-pingone\.com/,f=/localhost/,a=window.location.hostname;function o(D){window["enable-logs-pingOneSignals"]&&console.log(D)}function s(D){function F(ie){ie=ie.replace(/\r\n/g,`
57
+ `);for(var Se="",_e=0;_e<ie.length;_e++){var xe=ie.charCodeAt(_e);xe<128?Se+=String.fromCharCode(xe):xe>127&&xe<2048?(Se+=String.fromCharCode(xe>>6|192),Se+=String.fromCharCode(xe&63|128)):(Se+=String.fromCharCode(xe>>12|224),Se+=String.fromCharCode(xe>>6&63|128),Se+=String.fromCharCode(xe&63|128))}return Se}var H="",R,U,z,G,J,$,ne,ae=0,te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(D=F(D);ae<D.length;)R=D.charCodeAt(ae++),U=D.charCodeAt(ae++),z=D.charCodeAt(ae++),G=R>>2,J=(R&3)<<4|U>>4,$=(U&15)<<2|z>>6,ne=z&63,isNaN(U)?$=ne=64:isNaN(z)&&(ne=64),H=H+te.charAt(G)+te.charAt(J)+te.charAt($)+te.charAt(ne);return H}function m(){var D=document.getElementById(y);return D||(D=document.createElement("div"),D.style.border="none",D.style.position="absolute",D.style.top="-999px",D.style.left="-999px",D.style.width="0",D.style.height="0",D.style.visibility="hidden",D.style.overflow="hidden",D.id=y,document.body.appendChild(D),D)}function v(D){document.readyState!=="loading"?D():document.addEventListener("DOMContentLoaded",D)}function w(D){v(function(){if(D){var F=m();window._pingOneSignalsToken=getComputedStyle(F,"::after").content.replace(/['"]+/g,""),document.dispatchEvent(new CustomEvent("PingOneSignalsTokenReadyEvent"))}var H=D?"success":"failure";o("Finished - "+H)})}function A(D,F){for(var H=[],R=0;R<D.length;R++){var U=D.charCodeAt(R)^F.charCodeAt(R%F.length);H.push(String.fromCharCode(U))}return H.join("")}function E(D){var F={sdkVersion:h,platform:navigator.platform||""},H="dkiBm42",R=encodeURIComponent(s(A(JSON.stringify(F),H))),U=document.createElement("link");U.type="text/css",U.rel="stylesheet",U.href="https://"+D+"/signals/sdk/pong.css?body="+R+"&e=2";var z=document.head||document.getElementsByTagName("head")[0];z.appendChild(U),U.onload=function(){w(!0)},U.onerror=function(){w(!1)}}var O=document.querySelector("script[data-pingOneSignalsSkipToken]");if(O&&O.getAttribute("data-pingOneSignalsSkipToken")==="true"){window._pingOneSignalsToken="skipped_token_"+new Date().getTime(),v(function(){document.dispatchEvent(new CustomEvent("PingOneSignalsTokenSkippedEvent"))});return}window._pingOneSignalsToken||(window._pingOneSignalsToken="uninitialized_token_"+new Date().getTime());var T=window._pingOneSignalsCustomHost,L=T||"apps.test-one-pingone.com",P=T||"apps.ort-one-pingone.com",N=T||"apps.pingone.com",I=T||(f.test(a)||c.test(a)||b.test(a)?L:u.test(a)?P:N);E(I)}(),function(h){h._POSignalsEntities||(h._POSignalsEntities={}),h._pingOneSignals&&console.warn("PingOne Signals script was imported multiple times")}(window),function(h,y){y(h)}(window,function(h){function y(E){var O=this.constructor;return this.then(function(T){return O.resolve(E()).then(function(){return T})},function(T){return O.resolve(E()).then(function(){return O.reject(T)})})}var b=setTimeout;function c(E){return!!(E&&typeof E.length<"u")}function u(){}function f(E,O){return function(){E.apply(O,arguments)}}function a(E){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if(typeof E!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],A(E,this)}function o(E,O){for(;E._state===3;)E=E._value;if(E._state===0){E._deferreds.push(O);return}E._handled=!0,a._immediateFn(function(){var T=E._state===1?O.onFulfilled:O.onRejected;if(T===null){(E._state===1?s:m)(O.promise,E._value);return}var L;try{L=T(E._value)}catch(P){m(O.promise,P);return}s(O.promise,L)})}function s(E,O){try{if(O===E)throw new TypeError("A promise cannot be resolved with itself.");if(O&&(typeof O=="object"||typeof O=="function")){var T=O.then;if(O instanceof a){E._state=3,E._value=O,v(E);return}else if(typeof T=="function"){A(f(T,O),E);return}}E._state=1,E._value=O,v(E)}catch(L){m(E,L)}}function m(E,O){E._state=2,E._value=O,v(E)}function v(E){E._state===2&&E._deferreds.length===0&&a._immediateFn(function(){E._handled||a._unhandledRejectionFn(E._value)});for(var O=0,T=E._deferreds.length;O<T;O++)o(E,E._deferreds[O]);E._deferreds=null}function w(E,O,T){this.onFulfilled=typeof E=="function"?E:null,this.onRejected=typeof O=="function"?O:null,this.promise=T}function A(E,O){var T=!1;try{E(function(L){T||(T=!0,s(O,L))},function(L){T||(T=!0,m(O,L))})}catch(L){if(T)return;T=!0,m(O,L)}}a.prototype.catch=function(E){return this.then(null,E)},a.prototype.then=function(E,O){var T=new this.constructor(u);return o(this,new w(E,O,T)),T},a.prototype.finally=y,a.all=function(E){return new a(function(O,T){if(!c(E))return T(new TypeError("Promise.all accepts an array"));var L=Array.prototype.slice.call(E);if(L.length===0)return O([]);var P=L.length;function N(D,F){try{if(F&&(typeof F=="object"||typeof F=="function")){var H=F.then;if(typeof H=="function"){H.call(F,function(R){N(D,R)},T);return}}L[D]=F,--P===0&&O(L)}catch(R){T(R)}}for(var I=0;I<L.length;I++)N(I,L[I])})},a.resolve=function(E){return E&&typeof E=="object"&&E.constructor===a?E:new a(function(O){O(E)})},a.reject=function(E){return new a(function(O,T){T(E)})},a.race=function(E){return new a(function(O,T){if(!c(E))return T(new TypeError("Promise.race accepts an array"));for(var L=0,P=E.length;L<P;L++)a.resolve(E[L]).then(O,T)})},a._immediateFn=typeof setImmediate=="function"&&function(E){setImmediate(E)}||function(E){b(E,0)},a._unhandledRejectionFn=function(E){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",E)},typeof h.Promise!="function"?h.Promise=a:h.Promise.prototype.finally||(h.Promise.prototype.finally=y)}),function(h,y){h.PromiseQueue=y()}(ee||(ee={}),function(){var h=function(){},y=function(c){return c&&typeof c.then=="function"?c:new Promise(function(u){u(c)})};function b(c,u,f){this.options=f=f||{},this.pendingPromises=0,this.maxPendingPromises=typeof c<"u"?c:1/0,this.maxQueuedPromises=typeof u<"u"?u:1/0,this.queue=[]}return b.prototype.add=function(c){var u=this;return new Promise(function(f,a,o){if(u.queue.length>=u.maxQueuedPromises){a(new Error("Queue limit reached"));return}u.queue.push({promiseGenerator:c,resolve:f,reject:a,notify:o||h}),u._dequeue()})},b.prototype.getPendingLength=function(){return this.pendingPromises},b.prototype.getQueueLength=function(){return this.queue.length},b.prototype._dequeue=function(){var c=this;if(this.pendingPromises>=this.maxPendingPromises)return!1;var u=this.queue.shift();if(!u)return this.options.onEmpty&&this.options.onEmpty(),!1;try{this.pendingPromises++,y(u.promiseGenerator()).then(function(f){c.pendingPromises--,u.resolve(f),c._dequeue()},function(f){c.pendingPromises--,u.reject(f),c._dequeue()},function(f){u.notify(f)})}catch(f){c.pendingPromises--,u.reject(f),c._dequeue()}return!0},b}),function(h){var y="input is invalid type",b=!h.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),u=[-2147483648,8388608,32768,128],f=[24,16,8,0],a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=["hex","array","digest","arrayBuffer"],s=[];(h.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(L){return Object.prototype.toString.call(L)==="[object Array]"}),b&&(h.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(L){return typeof L=="object"&&L.buffer&&L.buffer.constructor===ArrayBuffer});var m=function(L,P){return function(N){return new E(P,!0).update(N)[L]()}},v=function(L){var P=m("hex",L);P.create=function(){return new E(L)},P.update=function(D){return P.create().update(D)};for(var N=0;N<o.length;++N){var I=o[N];P[I]=m(I,L)}return P},w=function(L,P){return function(N,I){return new O(N,P,!0).update(I)[L]()}},A=function(L){var P=w("hex",L);P.create=function(D){return new O(D,L)},P.update=function(D,F){return P.create(D).update(F)};for(var N=0;N<o.length;++N){var I=o[N];P[I]=w(I,L)}return P};function E(L,P){P?(s[0]=s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0,this.blocks=s):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],L?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=L}E.prototype.update=function(L){if(!this.finalized){var P,N=typeof L;if(N!=="string"){if(N==="object"){if(L===null)throw new Error(y);if(b&&L.constructor===ArrayBuffer)L=new Uint8Array(L);else if(!Array.isArray(L)&&(!b||!ArrayBuffer.isView(L)))throw new Error(y)}else throw new Error(y);P=!0}for(var I,D=0,F,H=L.length,R=this.blocks;D<H;){if(this.hashed&&(this.hashed=!1,R[0]=this.block,R[16]=R[1]=R[2]=R[3]=R[4]=R[5]=R[6]=R[7]=R[8]=R[9]=R[10]=R[11]=R[12]=R[13]=R[14]=R[15]=0),P)for(F=this.start;D<H&&F<64;++D)R[F>>2]|=L[D]<<f[F++&3];else for(F=this.start;D<H&&F<64;++D)I=L.charCodeAt(D),I<128?R[F>>2]|=I<<f[F++&3]:I<2048?(R[F>>2]|=(192|I>>6)<<f[F++&3],R[F>>2]|=(128|I&63)<<f[F++&3]):I<55296||I>=57344?(R[F>>2]|=(224|I>>12)<<f[F++&3],R[F>>2]|=(128|I>>6&63)<<f[F++&3],R[F>>2]|=(128|I&63)<<f[F++&3]):(I=65536+((I&1023)<<10|L.charCodeAt(++D)&1023),R[F>>2]|=(240|I>>18)<<f[F++&3],R[F>>2]|=(128|I>>12&63)<<f[F++&3],R[F>>2]|=(128|I>>6&63)<<f[F++&3],R[F>>2]|=(128|I&63)<<f[F++&3]);this.lastByteIndex=F,this.bytes+=F-this.start,F>=64?(this.block=R[16],this.start=F-64,this.hash(),this.hashed=!0):this.start=F}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},E.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var L=this.blocks,P=this.lastByteIndex;L[16]=this.block,L[P>>2]|=u[P&3],this.block=L[16],P>=56&&(this.hashed||this.hash(),L[0]=this.block,L[16]=L[1]=L[2]=L[3]=L[4]=L[5]=L[6]=L[7]=L[8]=L[9]=L[10]=L[11]=L[12]=L[13]=L[14]=L[15]=0),L[14]=this.hBytes<<3|this.bytes>>>29,L[15]=this.bytes<<3,this.hash()}},E.prototype.hash=function(){var L=this.h0,P=this.h1,N=this.h2,I=this.h3,D=this.h4,F=this.h5,H=this.h6,R=this.h7,U=this.blocks,z,G,J,$,ne,ae,te,ie,Se,_e,xe;for(z=16;z<64;++z)ne=U[z-15],G=(ne>>>7|ne<<25)^(ne>>>18|ne<<14)^ne>>>3,ne=U[z-2],J=(ne>>>17|ne<<15)^(ne>>>19|ne<<13)^ne>>>10,U[z]=U[z-16]+G+U[z-7]+J<<0;for(xe=P&N,z=0;z<64;z+=4)this.first?(this.is224?(ie=300032,ne=U[0]-1413257819,R=ne-150054599<<0,I=ne+24177077<<0):(ie=704751109,ne=U[0]-210244248,R=ne-1521486534<<0,I=ne+143694565<<0),this.first=!1):(G=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),J=(D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7),ie=L&P,$=ie^L&N^xe,te=D&F^~D&H,ne=R+J+te+a[z]+U[z],ae=G+$,R=I+ne<<0,I=ne+ae<<0),G=(I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10),J=(R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7),Se=I&L,$=Se^I&P^ie,te=R&D^~R&F,ne=H+J+te+a[z+1]+U[z+1],ae=G+$,H=N+ne<<0,N=ne+ae<<0,G=(N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10),J=(H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7),_e=N&I,$=_e^N&L^Se,te=H&R^~H&D,ne=F+J+te+a[z+2]+U[z+2],ae=G+$,F=P+ne<<0,P=ne+ae<<0,G=(P>>>2|P<<30)^(P>>>13|P<<19)^(P>>>22|P<<10),J=(F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7),xe=P&N,$=xe^P&I^_e,te=F&H^~F&R,ne=D+J+te+a[z+3]+U[z+3],ae=G+$,D=L+ne<<0,L=ne+ae<<0;this.h0=this.h0+L<<0,this.h1=this.h1+P<<0,this.h2=this.h2+N<<0,this.h3=this.h3+I<<0,this.h4=this.h4+D<<0,this.h5=this.h5+F<<0,this.h6=this.h6+H<<0,this.h7=this.h7+R<<0},E.prototype.hex=function(){this.finalize();var L=this.h0,P=this.h1,N=this.h2,I=this.h3,D=this.h4,F=this.h5,H=this.h6,R=this.h7,U=c[L>>28&15]+c[L>>24&15]+c[L>>20&15]+c[L>>16&15]+c[L>>12&15]+c[L>>8&15]+c[L>>4&15]+c[L&15]+c[P>>28&15]+c[P>>24&15]+c[P>>20&15]+c[P>>16&15]+c[P>>12&15]+c[P>>8&15]+c[P>>4&15]+c[P&15]+c[N>>28&15]+c[N>>24&15]+c[N>>20&15]+c[N>>16&15]+c[N>>12&15]+c[N>>8&15]+c[N>>4&15]+c[N&15]+c[I>>28&15]+c[I>>24&15]+c[I>>20&15]+c[I>>16&15]+c[I>>12&15]+c[I>>8&15]+c[I>>4&15]+c[I&15]+c[D>>28&15]+c[D>>24&15]+c[D>>20&15]+c[D>>16&15]+c[D>>12&15]+c[D>>8&15]+c[D>>4&15]+c[D&15]+c[F>>28&15]+c[F>>24&15]+c[F>>20&15]+c[F>>16&15]+c[F>>12&15]+c[F>>8&15]+c[F>>4&15]+c[F&15]+c[H>>28&15]+c[H>>24&15]+c[H>>20&15]+c[H>>16&15]+c[H>>12&15]+c[H>>8&15]+c[H>>4&15]+c[H&15];return this.is224||(U+=c[R>>28&15]+c[R>>24&15]+c[R>>20&15]+c[R>>16&15]+c[R>>12&15]+c[R>>8&15]+c[R>>4&15]+c[R&15]),U},E.prototype.toString=E.prototype.hex,E.prototype.digest=function(){this.finalize();var L=this.h0,P=this.h1,N=this.h2,I=this.h3,D=this.h4,F=this.h5,H=this.h6,R=this.h7,U=[L>>24&255,L>>16&255,L>>8&255,L&255,P>>24&255,P>>16&255,P>>8&255,P&255,N>>24&255,N>>16&255,N>>8&255,N&255,I>>24&255,I>>16&255,I>>8&255,I&255,D>>24&255,D>>16&255,D>>8&255,D&255,F>>24&255,F>>16&255,F>>8&255,F&255,H>>24&255,H>>16&255,H>>8&255,H&255];return this.is224||U.push(R>>24&255,R>>16&255,R>>8&255,R&255),U},E.prototype.array=E.prototype.digest,E.prototype.arrayBuffer=function(){this.finalize();var L=new ArrayBuffer(this.is224?28:32),P=new DataView(L);return P.setUint32(0,this.h0),P.setUint32(4,this.h1),P.setUint32(8,this.h2),P.setUint32(12,this.h3),P.setUint32(16,this.h4),P.setUint32(20,this.h5),P.setUint32(24,this.h6),this.is224||P.setUint32(28,this.h7),L};function O(L,P,N){var I,D=typeof L;if(D==="string"){var F=[],H=L.length,R=0,U;for(I=0;I<H;++I)U=L.charCodeAt(I),U<128?F[R++]=U:U<2048?(F[R++]=192|U>>6,F[R++]=128|U&63):U<55296||U>=57344?(F[R++]=224|U>>12,F[R++]=128|U>>6&63,F[R++]=128|U&63):(U=65536+((U&1023)<<10|L.charCodeAt(++I)&1023),F[R++]=240|U>>18,F[R++]=128|U>>12&63,F[R++]=128|U>>6&63,F[R++]=128|U&63);L=F}else if(D==="object"){if(L===null)throw new Error(y);if(b&&L.constructor===ArrayBuffer)L=new Uint8Array(L);else if(!Array.isArray(L)&&(!b||!ArrayBuffer.isView(L)))throw new Error(y)}else throw new Error(y);L.length>64&&(L=new E(P,!0).update(L).array());var z=[],G=[];for(I=0;I<64;++I){var J=L[I]||0;z[I]=92^J,G[I]=54^J}E.call(this,P,N),this.update(G),this.oKeyPad=z,this.inner=!0,this.sharedMemory=N}O.prototype=new E,O.prototype.finalize=function(){if(E.prototype.finalize.call(this),this.inner){this.inner=!1;var L=this.array();E.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(L),E.prototype.finalize.call(this)}};var T=v();T.sha256=T,T.sha224=v(!0),T.sha256.hmac=A(),T.sha224.hmac=A(!0),h.sha256=T.sha256,h.sha224=T.sha224}(ee||(ee={})),function(h){h.FingerprintJS=function(y){var b="5.0.1";function c(x,q){return new Promise(X=>setTimeout(X,x,q))}function u(){return new Promise(x=>{const q=new MessageChannel;q.port1.onmessage=()=>x(),q.port2.postMessage(null)})}function f(x,q=1/0){const{requestIdleCallback:X}=window;return X?new Promise(le=>X.call(window,()=>le(),{timeout:q})):c(Math.min(x,q))}function a(x){return!!x&&typeof x.then=="function"}function o(x,q){try{const X=x();a(X)?X.then(le=>q(!0,le),le=>q(!1,le)):q(!0,X)}catch(X){q(!1,X)}}async function s(x,q,X=16){const le=Array(x.length);let Oe=Date.now();for(let Ye=0;Ye<x.length;++Ye){le[Ye]=q(x[Ye],Ye);const Pe=Date.now();Pe>=Oe+X&&(Oe=Pe,await u())}return le}function m(x){return x.then(void 0,()=>{}),x}function v(x,q){for(let X=0,le=x.length;X<le;++X)if(x[X]===q)return!0;return!1}function w(x,q){return!v(x,q)}function A(x){return parseInt(x)}function E(x){return parseFloat(x)}function O(x,q){return typeof x=="number"&&isNaN(x)?q:x}function T(x){return x.reduce((q,X)=>q+(X?1:0),0)}function L(x,q=1){if(Math.abs(q)>=1)return Math.round(x/q)*q;{const X=1/q;return Math.round(x*X)/X}}function P(x){var q,X;const le=`Unexpected syntax '${x}'`,Oe=/^\s*([a-z-]*)(.*)$/i.exec(x),Ye=Oe[1]||void 0,Pe={},Fe=/([.:#][\w-]+|\[.+?\])/gi,Qe=(at,Re)=>{Pe[at]=Pe[at]||[],Pe[at].push(Re)};for(;;){const at=Fe.exec(Oe[2]);if(!at)break;const Re=at[0];switch(Re[0]){case".":Qe("class",Re.slice(1));break;case"#":Qe("id",Re.slice(1));break;case"[":{const Ne=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(Re);if(Ne)Qe(Ne[1],(X=(q=Ne[4])!==null&&q!==void 0?q:Ne[5])!==null&&X!==void 0?X:"");else throw new Error(le);break}default:throw new Error(le)}}return[Ye,Pe]}function N(x){const q=new Uint8Array(x.length);for(let X=0;X<x.length;X++){const le=x.charCodeAt(X);if(le>127)return new TextEncoder().encode(x);q[X]=le}return q}function I(x,q){const X=x[0]>>>16,le=x[0]&65535,Oe=x[1]>>>16,Ye=x[1]&65535,Pe=q[0]>>>16,Fe=q[0]&65535,Qe=q[1]>>>16,at=q[1]&65535;let Re=0,Ne=0,Xt=0,kt=0;kt+=Ye+at,Xt+=kt>>>16,kt&=65535,Xt+=Oe+Qe,Ne+=Xt>>>16,Xt&=65535,Ne+=le+Fe,Re+=Ne>>>16,Ne&=65535,Re+=X+Pe,Re&=65535,x[0]=Re<<16|Ne,x[1]=Xt<<16|kt}function D(x,q){const X=x[0]>>>16,le=x[0]&65535,Oe=x[1]>>>16,Ye=x[1]&65535,Pe=q[0]>>>16,Fe=q[0]&65535,Qe=q[1]>>>16,at=q[1]&65535;let Re=0,Ne=0,Xt=0,kt=0;kt+=Ye*at,Xt+=kt>>>16,kt&=65535,Xt+=Oe*at,Ne+=Xt>>>16,Xt&=65535,Xt+=Ye*Qe,Ne+=Xt>>>16,Xt&=65535,Ne+=le*at,Re+=Ne>>>16,Ne&=65535,Ne+=Oe*Qe,Re+=Ne>>>16,Ne&=65535,Ne+=Ye*Fe,Re+=Ne>>>16,Ne&=65535,Re+=X*at+le*Qe+Oe*Fe+Ye*Pe,Re&=65535,x[0]=Re<<16|Ne,x[1]=Xt<<16|kt}function F(x,q){const X=x[0];q%=64,q===32?(x[0]=x[1],x[1]=X):q<32?(x[0]=X<<q|x[1]>>>32-q,x[1]=x[1]<<q|X>>>32-q):(q-=32,x[0]=x[1]<<q|X>>>32-q,x[1]=X<<q|x[1]>>>32-q)}function H(x,q){q%=64,q!==0&&(q<32?(x[0]=x[1]>>>32-q,x[1]=x[1]<<q):(x[0]=x[1]<<q-32,x[1]=0))}function R(x,q){x[0]^=q[0],x[1]^=q[1]}const U=[4283543511,3981806797],z=[3301882366,444984403];function G(x){const q=[0,x[0]>>>1];R(x,q),D(x,U),q[1]=x[0]>>>1,R(x,q),D(x,z),q[1]=x[0]>>>1,R(x,q)}const J=[2277735313,289559509],$=[1291169091,658871167],ne=[0,5],ae=[0,1390208809],te=[0,944331445];function ie(x,q){const X=N(x);q=q||0;const le=[0,X.length],Oe=le[1]%16,Ye=le[1]-Oe,Pe=[0,q],Fe=[0,q],Qe=[0,0],at=[0,0];let Re;for(Re=0;Re<Ye;Re=Re+16)Qe[0]=X[Re+4]|X[Re+5]<<8|X[Re+6]<<16|X[Re+7]<<24,Qe[1]=X[Re]|X[Re+1]<<8|X[Re+2]<<16|X[Re+3]<<24,at[0]=X[Re+12]|X[Re+13]<<8|X[Re+14]<<16|X[Re+15]<<24,at[1]=X[Re+8]|X[Re+9]<<8|X[Re+10]<<16|X[Re+11]<<24,D(Qe,J),F(Qe,31),D(Qe,$),R(Pe,Qe),F(Pe,27),I(Pe,Fe),D(Pe,ne),I(Pe,ae),D(at,$),F(at,33),D(at,J),R(Fe,at),F(Fe,31),I(Fe,Pe),D(Fe,ne),I(Fe,te);Qe[0]=0,Qe[1]=0,at[0]=0,at[1]=0;const Ne=[0,0];switch(Oe){case 15:Ne[1]=X[Re+14],H(Ne,48),R(at,Ne);case 14:Ne[1]=X[Re+13],H(Ne,40),R(at,Ne);case 13:Ne[1]=X[Re+12],H(Ne,32),R(at,Ne);case 12:Ne[1]=X[Re+11],H(Ne,24),R(at,Ne);case 11:Ne[1]=X[Re+10],H(Ne,16),R(at,Ne);case 10:Ne[1]=X[Re+9],H(Ne,8),R(at,Ne);case 9:Ne[1]=X[Re+8],R(at,Ne),D(at,$),F(at,33),D(at,J),R(Fe,at);case 8:Ne[1]=X[Re+7],H(Ne,56),R(Qe,Ne);case 7:Ne[1]=X[Re+6],H(Ne,48),R(Qe,Ne);case 6:Ne[1]=X[Re+5],H(Ne,40),R(Qe,Ne);case 5:Ne[1]=X[Re+4],H(Ne,32),R(Qe,Ne);case 4:Ne[1]=X[Re+3],H(Ne,24),R(Qe,Ne);case 3:Ne[1]=X[Re+2],H(Ne,16),R(Qe,Ne);case 2:Ne[1]=X[Re+1],H(Ne,8),R(Qe,Ne);case 1:Ne[1]=X[Re],R(Qe,Ne),D(Qe,J),F(Qe,31),D(Qe,$),R(Pe,Qe)}return R(Pe,le),R(Fe,le),I(Pe,Fe),I(Fe,Pe),G(Pe),G(Fe),I(Pe,Fe),I(Fe,Pe),("00000000"+(Pe[0]>>>0).toString(16)).slice(-8)+("00000000"+(Pe[1]>>>0).toString(16)).slice(-8)+("00000000"+(Fe[0]>>>0).toString(16)).slice(-8)+("00000000"+(Fe[1]>>>0).toString(16)).slice(-8)}function Se(x){var q;return{name:x.name,message:x.message,stack:(q=x.stack)===null||q===void 0?void 0:q.split(`
58
+ `),...x}}function _e(x){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(x))}function xe(x){return typeof x!="function"}function et(x,q){const X=m(new Promise(le=>{const Oe=Date.now();o(x.bind(null,q),(...Ye)=>{const Pe=Date.now()-Oe;if(!Ye[0])return le(()=>({error:Ye[1],duration:Pe}));const Fe=Ye[1];if(xe(Fe))return le(()=>({value:Fe,duration:Pe}));le(()=>new Promise(Qe=>{const at=Date.now();o(Fe,(...Re)=>{const Ne=Pe+Date.now()-at;if(!Re[0])return Qe({error:Re[1],duration:Ne});Qe({value:Re[1],duration:Ne})})}))})}));return function(){return X.then(le=>le())}}function xt(x,q,X,le){const Oe=Object.keys(x).filter(Pe=>w(X,Pe)),Ye=m(s(Oe,Pe=>et(x[Pe],q),le));return async function(){const Pe=await Ye,Fe=await s(Pe,Re=>m(Re()),le),Qe=await Promise.all(Fe),at={};for(let Re=0;Re<Oe.length;++Re)at[Oe[Re]]=Qe[Re];return at}}function oe(x,q){const X=le=>xe(le)?q(le):()=>{const Oe=le();return a(Oe)?Oe.then(q):q(Oe)};return le=>{const Oe=x(le);return a(Oe)?Oe.then(X):X(Oe)}}function Ie(){const x=window,q=navigator;return T(["MSCSSMatrix"in x,"msSetImmediate"in x,"msIndexedDB"in x,"msMaxTouchPoints"in q,"msPointerEnabled"in q])>=4}function Be(){const x=window,q=navigator;return T(["msWriteProfilerMark"in x,"MSStream"in x,"msLaunchUri"in q,"msSaveBlob"in q])>=3&&!Ie()}function $e(){const x=window,q=navigator;return T(["webkitPersistentStorage"in q,"webkitTemporaryStorage"in q,(q.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in x,"BatteryManager"in x,"webkitMediaStream"in x,"webkitSpeechGrammar"in x])>=5}function Ce(){const x=window,q=navigator;return T(["ApplePayError"in x,"CSSPrimitiveValue"in x,"Counter"in x,q.vendor.indexOf("Apple")===0,"RGBColor"in x,"WebKitMediaKeys"in x])>=4}function Xe(){const x=window,{HTMLElement:q,Document:X}=x;return T(["safari"in x,!("ongestureend"in x),!("TouchEvent"in x),!("orientation"in x),q&&!("autocapitalize"in q.prototype),X&&"pointerLockElement"in X.prototype])>=4}function ge(){const x=window;return _e(x.print)&&String(x.browser)==="[object WebPageNamespace]"}function Le(){var x,q;const X=window;return T(["buildID"in navigator,"MozAppearance"in((q=(x=document.documentElement)===null||x===void 0?void 0:x.style)!==null&&q!==void 0?q:{}),"onmozfullscreenchange"in X,"mozInnerScreenX"in X,"CSSMozDocumentRule"in X,"CanvasCaptureMediaStream"in X])>=4}function Mt(){const x=window;return T([!("MediaSettingsRange"in x),"RTCEncodedAudioFrame"in x,""+x.Intl=="[object Intl]",""+x.Reflect=="[object Reflect]"])>=3}function It(){const x=window,{URLPattern:q}=x;return T(["union"in Set.prototype,"Iterator"in x,q&&"hasRegExpGroups"in q.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Ut(){const x=window;return T(["DOMRectList"in x,"RTCPeerConnectionIceEvent"in x,"SVGGeometryElement"in x,"ontransitioncancel"in x])>=3}function $t(){const x=window,q=navigator,{CSS:X,HTMLButtonElement:le}=x;return T([!("getStorageUpdates"in q),le&&"popover"in le.prototype,"CSSCounterStyleRule"in x,X.supports("font-size-adjust: ex-height 0.5"),X.supports("text-transform: full-width")])>=4}function kn(){if(navigator.platform==="iPad")return!0;const x=screen,q=x.width/x.height;return T(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,q>.65&&q<1.53])>=2}function Bn(){const x=document;return x.fullscreenElement||x.msFullscreenElement||x.mozFullScreenElement||x.webkitFullscreenElement||null}function zn(){const x=document;return(x.exitFullscreen||x.msExitFullscreen||x.mozCancelFullScreen||x.webkitExitFullscreen).call(x)}function Cn(){const x=$e(),q=Le(),X=window,le=navigator,Oe="connection";return x?T([!("SharedWorker"in X),le[Oe]&&"ontypechange"in le[Oe],!("sinkId"in new Audio)])>=2:q?T(["onorientationchange"in X,"orientation"in X,/android/i.test(le.appVersion)])>=2:!1}function wr(){const x=navigator,q=window,X=Audio.prototype,{visualViewport:le}=q;return T(["srLatency"in X,"srChannelCount"in X,"devicePosture"in x,le&&"segments"in le,"getTextInformation"in Image.prototype])>=3}function pt(){return Nr()?-4:gn()}function gn(){const x=window,q=x.OfflineAudioContext||x.webkitOfflineAudioContext;if(!q)return-2;if(vn())return-1;const X=4500,le=5e3,Oe=new q(1,le,44100),Ye=Oe.createOscillator();Ye.type="triangle",Ye.frequency.value=1e4;const Pe=Oe.createDynamicsCompressor();Pe.threshold.value=-50,Pe.knee.value=40,Pe.ratio.value=12,Pe.attack.value=0,Pe.release.value=.25,Ye.connect(Pe),Pe.connect(Oe.destination),Ye.start(0);const[Fe,Qe]=br(Oe),at=m(Fe.then(Re=>Jr(Re.getChannelData(0).subarray(X)),Re=>{if(Re.name==="timeout"||Re.name==="suspended")return-3;throw Re}));return()=>(Qe(),at)}function vn(){return Ce()&&!Xe()&&!Ut()}function Nr(){return Ce()&&$t()&&ge()||$e()&&wr()&&It()}function br(x){let q=()=>{};return[new Promise((X,le)=>{let Oe=!1,Ye=0,Pe=0;x.oncomplete=at=>X(at.renderedBuffer);const Fe=()=>{setTimeout(()=>le(sr("timeout")),Math.min(500,Pe+5e3-Date.now()))},Qe=()=>{try{const at=x.startRendering();switch(a(at)&&m(at),x.state){case"running":Pe=Date.now(),Oe&&Fe();break;case"suspended":document.hidden||Ye++,Oe&&Ye>=3?le(sr("suspended")):setTimeout(Qe,500);break}}catch(at){le(at)}};Qe(),q=()=>{Oe||(Oe=!0,Pe>0&&Fe())}}),q]}function Jr(x){let q=0;for(let X=0;X<x.length;++X)q+=Math.abs(x[X]);return q}function sr(x){const q=new Error(x);return q.name=x,q}async function Nn(x,q,X=50){var le,Oe,Ye;const Pe=document;for(;!Pe.body;)await c(X);const Fe=Pe.createElement("iframe");try{for(await new Promise((Qe,at)=>{let Re=!1;const Ne=()=>{Re=!0,Qe()},Xt=Fn=>{Re=!0,at(Fn)};Fe.onload=Ne,Fe.onerror=Xt;const{style:kt}=Fe;kt.setProperty("display","block","important"),kt.position="absolute",kt.top="0",kt.left="0",kt.visibility="hidden",q&&"srcdoc"in Fe?Fe.srcdoc=q:Fe.src="about:blank",Pe.body.appendChild(Fe);const Un=()=>{var Fn,El;Re||(((El=(Fn=Fe.contentWindow)===null||Fn===void 0?void 0:Fn.document)===null||El===void 0?void 0:El.readyState)==="complete"?Ne():setTimeout(Un,10))};Un()});!(!((Oe=(le=Fe.contentWindow)===null||le===void 0?void 0:le.document)===null||Oe===void 0)&&Oe.body);)await c(X);return await x(Fe,Fe.contentWindow)}finally{(Ye=Fe.parentNode)===null||Ye===void 0||Ye.removeChild(Fe)}}function j(x){const[q,X]=P(x),le=document.createElement(q??"div");for(const Oe of Object.keys(X)){const Ye=X[Oe].join(" ");Oe==="style"?be(le.style,Ye):le.setAttribute(Oe,Ye)}return le}function be(x,q){for(const X of q.split(";")){const le=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(X);if(le){const[,Oe,Ye,,Pe]=le;x.setProperty(Oe,Ye,Pe||"")}}}function Me(){let x=window;for(;;){const q=x.parent;if(!q||q===x)return!1;try{if(q.location.origin!==x.location.origin)return!0}catch(X){if(X instanceof Error&&X.name==="SecurityError")return!0;throw X}x=q}}const Ae="mmMwWLliI0O&1",Ue="48px",ze=["monospace","sans-serif","serif"],ft=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Pt(){return Nn(async(x,{document:q})=>{const X=q.body;X.style.fontSize=Ue;const le=q.createElement("div");le.style.setProperty("visibility","hidden","important");const Oe={},Ye={},Pe=kt=>{const Un=q.createElement("span"),{style:Fn}=Un;return Fn.position="absolute",Fn.top="0",Fn.left="0",Fn.fontFamily=kt,Un.textContent=Ae,le.appendChild(Un),Un},Fe=(kt,Un)=>Pe(`'${kt}',${Un}`),Qe=()=>ze.map(Pe),at=()=>{const kt={};for(const Un of ft)kt[Un]=ze.map(Fn=>Fe(Un,Fn));return kt},Re=kt=>ze.some((Un,Fn)=>kt[Fn].offsetWidth!==Oe[Un]||kt[Fn].offsetHeight!==Ye[Un]),Ne=Qe(),Xt=at();X.appendChild(le);for(let kt=0;kt<ze.length;kt++)Oe[ze[kt]]=Ne[kt].offsetWidth,Ye[ze[kt]]=Ne[kt].offsetHeight;return ft.filter(kt=>Re(Xt[kt]))})}function M(){const x=navigator.plugins;if(!x)return;const q=[];for(let X=0;X<x.length;++X){const le=x[X];if(!le)continue;const Oe=[];for(let Ye=0;Ye<le.length;++Ye){const Pe=le[Ye];Oe.push({type:Pe.type,suffixes:Pe.suffixes})}q.push({name:le.name,description:le.description,mimeTypes:Oe})}return q}function he(){return ye(Xr())}function ye(x){let q=!1,X,le;const[Oe,Ye]=K();return je(Oe,Ye)?(q=tt(Ye),x?X=le="skipped":[X,le]=nt(Oe,Ye)):X=le="unsupported",{winding:q,geometry:X,text:le}}function K(){const x=document.createElement("canvas");return x.width=1,x.height=1,[x,x.getContext("2d")]}function je(x,q){return!!(q&&x.toDataURL)}function tt(x){return x.rect(0,0,10,10),x.rect(2,2,6,6),!x.isPointInPath(5,5,"evenodd")}function nt(x,q){ot(x,q);const X=_t(x),le=_t(x);return X!==le?["unstable","unstable"]:(yn(x,q),[_t(x),X])}function ot(x,q){x.width=240,x.height=60,q.textBaseline="alphabetic",q.fillStyle="#f60",q.fillRect(100,1,62,20),q.fillStyle="#069",q.font='11pt "Times New Roman"';const X="Cwm fjordbank gly 😃";q.fillText(X,2,15),q.fillStyle="rgba(102, 204, 0, 0.2)",q.font="18pt Arial",q.fillText(X,4,45)}function yn(x,q){x.width=122,x.height=110,q.globalCompositeOperation="multiply";for(const[X,le,Oe]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])q.fillStyle=X,q.beginPath(),q.arc(le,Oe,40,0,Math.PI*2,!0),q.closePath(),q.fill();q.fillStyle="#f9c",q.arc(60,60,60,0,Math.PI*2,!0),q.arc(60,60,20,0,Math.PI*2,!0),q.fill("evenodd")}function _t(x){return x.toDataURL()}function Xr(){return Ce()&&$t()&&ge()}function Ps(){const x=navigator;let q=0,X;x.maxTouchPoints!==void 0?q=A(x.maxTouchPoints):x.msMaxTouchPoints!==void 0&&(q=x.msMaxTouchPoints);try{document.createEvent("TouchEvent"),X=!0}catch{X=!1}const le="ontouchstart"in window;return{maxTouchPoints:q,touchEvent:X,touchStart:le}}function Wi(){return navigator.oscpu}function Gi(){const x=navigator,q=[],X=x.language||x.userLanguage||x.browserLanguage||x.systemLanguage;if(X!==void 0&&q.push([X]),Array.isArray(x.languages))$e()&&Mt()||q.push(x.languages);else if(typeof x.languages=="string"){const le=x.languages;le&&q.push(le.split(","))}return q}function Qr(){return window.screen.colorDepth}function wl(){return O(E(navigator.deviceMemory),void 0)}function ei(){if(!(Ce()&&$t()&&ge()))return ro()}function ro(){const x=screen,q=le=>O(A(le),null),X=[q(x.width),q(x.height)];return X.sort().reverse(),X}const ti=2500,Rs=10;let Ei,Ki;function bl(){if(Ki!==void 0)return;const x=()=>{const q=io();so(q)?Ki=setTimeout(x,ti):(Ei=q,Ki=void 0)};x()}function ni(){return bl(),async()=>{let x=io();if(so(x)){if(Ei)return[...Ei];Bn()&&(await zn(),x=io())}return so(x)||(Ei=x),x}}function bu(){if(Ce()&&$t()&&ge())return()=>Promise.resolve(void 0);const x=ni();return async()=>{const q=await x(),X=le=>le===null?null:L(le,Rs);return[X(q[0]),X(q[1]),X(q[2]),X(q[3])]}}function io(){const x=screen;return[O(E(x.availTop),null),O(E(x.width)-E(x.availWidth)-O(E(x.availLeft),0),null),O(E(x.height)-E(x.availHeight)-O(E(x.availTop),0),null),O(E(x.availLeft),null)]}function so(x){for(let q=0;q<4;++q)if(x[q])return!1;return!0}function ao(){return O(A(navigator.hardwareConcurrency),void 0)}function hh(){var x;const q=(x=window.Intl)===null||x===void 0?void 0:x.DateTimeFormat;if(q){const le=new q().resolvedOptions().timeZone;if(le)return le}const X=-Su();return`UTC${X>=0?"+":""}${X}`}function Su(){const x=new Date().getFullYear();return Math.max(E(new Date(x,0,1).getTimezoneOffset()),E(new Date(x,6,1).getTimezoneOffset()))}function Eu(){try{return!!window.sessionStorage}catch{return!0}}function ri(){try{return!!window.localStorage}catch{return!0}}function De(){if(!(Ie()||Be()))try{return!!window.indexedDB}catch{return!0}}function rt(){return!!window.openDatabase}function it(){return navigator.cpuClass}function Ft(){const{platform:x}=navigator;return x==="MacIntel"&&Ce()&&!Xe()?kn()?"iPad":"iPhone":x}function ht(){return navigator.vendor||""}function Wt(){const x=[];for(const q of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){const X=window[q];X&&typeof X=="object"&&x.push(q)}return x.sort()}function ct(){const x=document;try{x.cookie="cookietest=1; SameSite=Strict;";const q=x.cookie.indexOf("cookietest=")!==-1;return x.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",q}catch{return!1}}function zt(){const x=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',x("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",x("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",x("LnNwb25zb3JpdA=="),".ylamainos",x("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),x("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",x("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",x("LmhlYWRlci1ibG9ja2VkLWFk"),x("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",x("I2FkXzMwMFgyNTA="),x("I2Jhbm5lcmZsb2F0MjI="),x("I2NhbXBhaWduLWJhbm5lcg=="),x("I0FkLUNvbnRlbnQ=")],adGuardChinese:[x("LlppX2FkX2FfSA=="),x("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",x("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),x("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",x("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",x("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",x("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),x("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),x("LmFkZ29vZ2xl"),x("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[x("YW1wLWF1dG8tYWRz"),x("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",x("I2FkX2ludmlld19hcmVh")],adGuardRussian:[x("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),x("LnJlY2xhbWE="),'div[id^="smi2adblock"]',x("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[x("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),x("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",x("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),x("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),x("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",x("I3Jla2xhbWk="),x("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),x("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),x("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[x("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",x("LndpZGdldF9wb19hZHNfd2lkZ2V0"),x("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",x("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[x("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),x("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",x("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",x("I3Jla2xhbW5pLWJveA=="),x("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",x("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[x("I2FkdmVydGVudGll"),x("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",x("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",x("LnNwb25zb3JsaW5rZ3J1ZW4="),x("I3dlcmJ1bmdza3k="),x("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),x("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[x("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",x("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),x("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),x("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[x("LnJla2xhbW9zX3RhcnBhcw=="),x("LnJla2xhbW9zX251b3JvZG9z"),x("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),x("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),x("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[x("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[x("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),x("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",x("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[x("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),x("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),x("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",x("LmFkX19tYWlu"),x("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[x("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[x("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),x("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[x("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),x("I2xpdmVyZUFkV3JhcHBlcg=="),x("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),x("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[x("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",x("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),x("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),x("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[x("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),x("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),x("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",x("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),x("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),x("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),x("ZGl2I3NrYXBpZWNfYWQ=")],ro:[x("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),x("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),x("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),x("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[x("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),x("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),x("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",x("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),x("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",x("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}async function Et({debug:x}={}){if(!un())return;const q=zt(),X=Object.keys(q),le=[].concat(...X.map(Pe=>q[Pe])),Oe=await ii(le);x&&ha(q,Oe);const Ye=X.filter(Pe=>{const Fe=q[Pe];return T(Fe.map(Qe=>Oe[Qe]))>Fe.length*.6});return Ye.sort(),Ye}function un(){return Ce()||Cn()}async function ii(x){var q;const X=document,le=X.createElement("div"),Oe=new Array(x.length),Ye={};si(le);for(let Pe=0;Pe<x.length;++Pe){const Fe=j(x[Pe]);Fe.tagName==="DIALOG"&&Fe.show();const Qe=X.createElement("div");si(Qe),Qe.appendChild(Fe),le.appendChild(Qe),Oe[Pe]=Fe}for(;!X.body;)await c(50);X.body.appendChild(le);try{for(let Pe=0;Pe<x.length;++Pe)Oe[Pe].offsetParent||(Ye[x[Pe]]=!0)}finally{(q=le.parentNode)===null||q===void 0||q.removeChild(le)}return Ye}function si(x){x.style.setProperty("visibility","hidden","important"),x.style.setProperty("display","block","important")}function ha(x,q){let X="DOM blockers debug:\n```";for(const le of Object.keys(x)){X+=`
59
+ ${le}:`;for(const Oe of x[le])X+=`
60
+ ${q[Oe]?"🚫":"➡️"} ${Oe}`}console.log(`${X}
61
+ \`\`\``)}function oo(){for(const x of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${x})`).matches)return x}function ku(){if(lo("inverted"))return!0;if(lo("none"))return!1}function lo(x){return matchMedia(`(inverted-colors: ${x})`).matches}function Sl(){if(Cu("active"))return!0;if(Cu("none"))return!1}function Cu(x){return matchMedia(`(forced-colors: ${x})`).matches}const ga=100;function gh(){if(matchMedia("(min-monochrome: 0)").matches){for(let x=0;x<=ga;++x)if(matchMedia(`(max-monochrome: ${x})`).matches)return x;throw new Error("Too high value")}}function QP(){if(co("no-preference"))return 0;if(co("high")||co("more"))return 1;if(co("low")||co("less"))return-1;if(co("forced"))return 10}function co(x){return matchMedia(`(prefers-contrast: ${x})`).matches}function eR(){if(J_("reduce"))return!0;if(J_("no-preference"))return!1}function J_(x){return matchMedia(`(prefers-reduced-motion: ${x})`).matches}function tR(){if(X_("reduce"))return!0;if(X_("no-preference"))return!1}function X_(x){return matchMedia(`(prefers-reduced-transparency: ${x})`).matches}function nR(){if(Q_("high"))return!0;if(Q_("standard"))return!1}function Q_(x){return matchMedia(`(dynamic-range: ${x})`).matches}const qt=Math,Kn=()=>0;function rR(){const x=qt.acos||Kn,q=qt.acosh||Kn,X=qt.asin||Kn,le=qt.asinh||Kn,Oe=qt.atanh||Kn,Ye=qt.atan||Kn,Pe=qt.sin||Kn,Fe=qt.sinh||Kn,Qe=qt.cos||Kn,at=qt.cosh||Kn,Re=qt.tan||Kn,Ne=qt.tanh||Kn,Xt=qt.exp||Kn,kt=qt.expm1||Kn,Un=qt.log1p||Kn,Fn=Qt=>qt.pow(qt.PI,Qt),El=Qt=>qt.log(Qt+qt.sqrt(Qt*Qt-1)),NR=Qt=>qt.log(Qt+qt.sqrt(Qt*Qt+1)),UR=Qt=>qt.log((1+Qt)/(1-Qt))/2,FR=Qt=>qt.exp(Qt)-1/qt.exp(Qt)/2,BR=Qt=>(qt.exp(Qt)+1/qt.exp(Qt))/2,zR=Qt=>qt.exp(Qt)-1,VR=Qt=>(qt.exp(2*Qt)-1)/(qt.exp(2*Qt)+1),HR=Qt=>qt.log(1+Qt);return{acos:x(.12312423423423424),acosh:q(1e308),acoshPf:El(1e154),asin:X(.12312423423423424),asinh:le(1),asinhPf:NR(1),atanh:Oe(.5),atanhPf:UR(.5),atan:Ye(.5),sin:Pe(-1e300),sinh:Fe(1),sinhPf:FR(1),cos:Qe(10.000000000123),cosh:at(1),coshPf:BR(1),tan:Re(-1e300),tanh:Ne(1),tanhPf:VR(1),exp:Xt(1),expm1:kt(1),expm1Pf:zR(1),log1p:Un(10),log1pPf:HR(10),powPI:Fn(-100)}}const iR="mmMwWLliI0fiflO&1",ph={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function sR(){return aR((x,q)=>{const X={},le={};for(const Oe of Object.keys(ph)){const[Ye={},Pe=iR]=ph[Oe],Fe=x.createElement("span");Fe.textContent=Pe,Fe.style.whiteSpace="nowrap";for(const Qe of Object.keys(Ye)){const at=Ye[Qe];at!==void 0&&(Fe.style[Qe]=at)}X[Oe]=Fe,q.append(x.createElement("br"),Fe)}for(const Oe of Object.keys(ph))le[Oe]=X[Oe].getBoundingClientRect().width;return le})}function aR(x,q=4e3){return Nn((X,le)=>{const Oe=le.document,Ye=Oe.body,Pe=Ye.style;Pe.width=`${q}px`,Pe.webkitTextSizeAdjust=Pe.textSizeAdjust="none",$e()?Ye.style.zoom=`${1/le.devicePixelRatio}`:Ce()&&(Ye.style.zoom="reset");const Fe=Oe.createElement("div");return Fe.textContent=[...Array(q/20<<0)].map(()=>"word").join(" "),Ye.appendChild(Fe),x(Oe,Ye)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function oR(){return navigator.pdfViewerEnabled}function lR(){const x=new Float32Array(1),q=new Uint8Array(x.buffer);return x[0]=1/0,x[0]=x[0]-x[0],q[3]}function cR(){const{ApplePaySession:x}=window;if(typeof(x==null?void 0:x.canMakePayments)!="function")return-1;if(uR())return-3;try{return x.canMakePayments()?1:0}catch(q){return dR(q)}}const uR=Me;function dR(x){if(x instanceof Error&&x.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(x.message))return-2;throw x}function fR(){var x;const q=document.createElement("a"),X=(x=q.attributionSourceId)!==null&&x!==void 0?x:q.attributionsourceid;return X===void 0?void 0:String(X)}const e1=-1,t1=-2,hR=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),gR=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),pR=["FRAGMENT_SHADER","VERTEX_SHADER"],mR=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],n1="WEBGL_debug_renderer_info",vR="WEBGL_polygon_mode";function yR({cache:x}){var q,X,le,Oe,Ye,Pe;const Fe=mh(x);if(!Fe)return e1;if(!s1(Fe))return t1;const Qe=i1()?null:Fe.getExtension(n1);return{version:((q=Fe.getParameter(Fe.VERSION))===null||q===void 0?void 0:q.toString())||"",vendor:((X=Fe.getParameter(Fe.VENDOR))===null||X===void 0?void 0:X.toString())||"",vendorUnmasked:Qe?(le=Fe.getParameter(Qe.UNMASKED_VENDOR_WEBGL))===null||le===void 0?void 0:le.toString():"",renderer:((Oe=Fe.getParameter(Fe.RENDERER))===null||Oe===void 0?void 0:Oe.toString())||"",rendererUnmasked:Qe?(Ye=Fe.getParameter(Qe.UNMASKED_RENDERER_WEBGL))===null||Ye===void 0?void 0:Ye.toString():"",shadingLanguageVersion:((Pe=Fe.getParameter(Fe.SHADING_LANGUAGE_VERSION))===null||Pe===void 0?void 0:Pe.toString())||""}}function _R({cache:x}){const q=mh(x);if(!q)return e1;if(!s1(q))return t1;const X=q.getSupportedExtensions(),le=q.getContextAttributes(),Oe=[],Ye=[],Pe=[],Fe=[],Qe=[];if(le)for(const Re of Object.keys(le))Ye.push(`${Re}=${le[Re]}`);const at=r1(q);for(const Re of at){const Ne=q[Re];Pe.push(`${Re}=${Ne}${hR.has(Ne)?`=${q.getParameter(Ne)}`:""}`)}if(X)for(const Re of X){if(Re===n1&&i1()||Re===vR&&SR())continue;const Ne=q.getExtension(Re);if(!Ne){Oe.push(Re);continue}for(const Xt of r1(Ne)){const kt=Ne[Xt];Fe.push(`${Xt}=${kt}${gR.has(kt)?`=${q.getParameter(kt)}`:""}`)}}for(const Re of pR)for(const Ne of mR){const Xt=wR(q,Re,Ne);Qe.push(`${Re}.${Ne}=${Xt.join(",")}`)}return Fe.sort(),Pe.sort(),{contextAttributes:Ye,parameters:Pe,shaderPrecisions:Qe,extensions:X,extensionParameters:Fe,unsupportedExtensions:Oe}}function mh(x){if(x.webgl)return x.webgl.context;const q=document.createElement("canvas");let X;q.addEventListener("webglCreateContextError",()=>X=void 0);for(const le of["webgl","experimental-webgl"]){try{X=q.getContext(le)}catch{}if(X)break}return x.webgl={context:X},X}function wR(x,q,X){const le=x.getShaderPrecisionFormat(x[q],x[X]);return le?[le.rangeMin,le.rangeMax,le.precision]:[]}function r1(x){return Object.keys(x.__proto__).filter(bR)}function bR(x){return typeof x=="string"&&!x.match(/[^A-Z0-9_x]/)}function i1(){return Le()}function SR(){return $e()||Ce()}function s1(x){return typeof x.getParameter=="function"}function ER(){if(!(Cn()||Ce()))return-2;if(!window.AudioContext)return-1;const x=new AudioContext().baseLatency;return x==null?-1:isFinite(x)?x:-3}function kR(){if(!window.Intl)return-1;const x=window.Intl.DateTimeFormat;if(!x)return-2;const q=x().resolvedOptions().locale;return!q&&q!==""?-3:q}const a1={fonts:Pt,domBlockers:Et,fontPreferences:sR,audio:pt,screenFrame:bu,canvas:he,osCpu:Wi,languages:Gi,colorDepth:Qr,deviceMemory:wl,screenResolution:ei,hardwareConcurrency:ao,timezone:hh,sessionStorage:Eu,localStorage:ri,indexedDB:De,openDatabase:rt,cpuClass:it,platform:Ft,plugins:M,touchSupport:Ps,vendor:ht,vendorFlavors:Wt,cookiesEnabled:ct,colorGamut:oo,invertedColors:ku,forcedColors:Sl,monochrome:gh,contrast:QP,reducedMotion:eR,reducedTransparency:tR,hdr:nR,math:rR,pdfViewerEnabled:oR,architecture:lR,applePay:cR,privateClickMeasurement:fR,audioBaseLatency:ER,dateTimeLocale:kR,webGlBasics:yR,webGlExtensions:_R};function CR(x){return xt(a1,x,[])}const IR="$ if upgrade to Pro: https://fpjs.dev/pro";function AR(x){const q=TR(x),X=OR(q);return{score:q,comment:IR.replace(/\$/g,`${X}`)}}function TR(x){if(Cn())return .4;if(Ce())return Xe()&&!($t()&&ge())?.5:.3;const q="value"in x.platform?x.platform.value:"";return/^Win/.test(q)?.6:/^Mac/.test(q)?.5:.7}function OR(x){return L(.99+.01*x,1e-4)}function PR(x){let q="";for(const X of Object.keys(x).sort()){const le=x[X],Oe="error"in le?"error":JSON.stringify(le.value);q+=`${q?"|":""}${X.replace(/([:|\\])/g,"\\$1")}:${Oe}`}return q}function vh(x){return JSON.stringify(x,(q,X)=>X instanceof Error?Se(X):X,2)}function yh(x){return ie(PR(x))}function RR(x){let q;const X=AR(x);return{get visitorId(){return q===void 0&&(q=yh(this.components)),q},set visitorId(le){q=le},confidence:X,components:x,version:b}}function o1(x=50){return f(x,x*2)}function MR(x,q){const X=Date.now();return{async get(le){const Oe=Date.now(),Ye=await x(),Pe=RR(Ye);return(q||le!=null&&le.debug)&&console.log(`Copy the text below to get the debug data:
62
62
 
63
63
  \`\`\`
64
- version: ${Oe.version}
64
+ version: ${Pe.version}
65
65
  userAgent: ${navigator.userAgent}
66
- timeBetweenLoadAndGet: ${Te-X}
67
- visitorId: ${Oe.visitorId}
68
- components: ${hh(Ye)}
69
- \`\`\``),Oe}}}function m4(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{const N=new XMLHttpRequest;N.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${b}/npm-monitoring`,!0),N.send()}catch(N){console.error(N)}}async function t1(N={}){var q;(!((q=N.monitoring)!==null&&q!==void 0)||q)&&m4();const{delayFallback:X,debug:le}=N;await e1(X);const Te=l4({cache:{},debug:le});return p4(Te,le)}var v4={load:t1,hashComponents:gh,componentsToDebugString:hh};const y4=ie;return y.componentsToDebugString=hh,y.default=v4,y.getFullscreenElement=Fn,y.getUnstableAudioFingerprint=gn,y.getUnstableCanvasFingerprint=ve,y.getUnstableScreenFrame=ti,y.getUnstableScreenResolution=no,y.getWebGLContext=fh,y.hashComponents=gh,y.isAndroid=Sn,y.isChromium=$e,y.isDesktopWebKit=Xe,y.isEdgeHTML=Be,y.isGecko=Le,y.isSamsungInternet=_r,y.isTrident=Ie,y.isWebKit=ke,y.load=t1,y.loadSources=Nt,y.murmurX64Hash128=y4,y.prepareForSources=e1,y.sources=Q_,y.transformSource=oe,y.withIframe=Dn,Object.defineProperty(y,"__esModule",{value:!0}),y}({})}(ee||(ee={})),function(h){h.BroprintJS=function(y){const b=function(o,a=0){let m=3735928559^a,v=1103547991^a;for(let w=0,A;w<o.length;w++)A=o.charCodeAt(w),m=Math.imul(m^A,2654435761),v=Math.imul(v^A,1597334677);return m=Math.imul(m^m>>>16,2246822507)^Math.imul(v^v>>>13,3266489909),v=Math.imul(v^v>>>16,2246822507)^Math.imul(m^m>>>13,3266489909),4294967296*(2097151&v)+(m>>>0)},c=()=>{const o=document.createElement("canvas");return!!(o.getContext&&o.getContext("2d"))},u=()=>{if(!c())return"canvas not supported";var o=document.createElement("canvas"),a=o.getContext("2d"),m="BroPrint.65@345876";return a.textBaseline="top",a.font="14px 'Arial'",a.textBaseline="alphabetic",a.fillStyle="#f60",a.fillRect(125,1,62,20),a.fillStyle="#069",a.fillText(m,2,15),a.fillStyle="rgba(102, 204, 0, 0.7)",a.fillText(m,4,17),o.toDataURL()},f=function(){let o=null,a=null,m=null,v=null,w=null,A=null;function E(V,j=!1){A=V;try{O(),m.connect(v),v.connect(o.destination),m.start(0),o.startRendering(),o.oncomplete=I}catch(L){if(j)throw L}}function O(){T(),a=o.currentTime,M(),P()}function T(){let V=window.OfflineAudioContext||window.webkitOfflineAudioContext;o=new V(1,44100,44100)}function M(){m=o.createOscillator(),m.type="triangle",m.frequency.setValueAtTime(1e4,a)}function P(){v=o.createDynamicsCompressor(),x("threshold",-50),x("knee",40),x("ratio",12),x("reduction",-20),x("attack",0),x("release",.25)}function x(V,j){v[V]!==void 0&&typeof v[V].setValueAtTime=="function"&&v[V].setValueAtTime(j,o.currentTime)}function I(V){D(V),v.disconnect()}function D(V){let j=null;for(var L=4500;5e3>L;L++){var U=V.renderedBuffer.getChannelData(0)[L];j+=Math.abs(U)}if(w=j.toString(),typeof A=="function")return A(w)}return{run:E}}();function s(){const o=new Promise((a,m)=>{f.run(function(v){a(v)})});return new Promise((a,m)=>{o.then(async v=>{let w="";navigator.brave&&await navigator.brave.isBrave(),w=window.btoa(v)+u(),a(b(w,0))}).catch(()=>{try{a(b(u()).toString())}catch{m("Failed to generate the finger print of this browser")}})})}return y.getCurrentBrowserFingerPrint=s,Object.defineProperty(y,"__esModule",{value:!0}),y}({})}(ee||(ee={})),function(h,y){y(h)}(ee||(ee={}),function(h){var y,b,c=function(U,F){var W=typeof Symbol=="function"&&U[Symbol.iterator];if(!W)return U;var J,$,ne=W.call(U),ae=[];try{for(;(F===void 0||F-- >0)&&!(J=ne.next()).done;)ae.push(J.value)}catch(te){$={error:te}}finally{try{J&&!J.done&&(W=ne.return)&&W.call(ne)}finally{if($)throw $.error}}return ae},u=function(U,F,W){if(arguments.length===2)for(var J,$=0,ne=F.length;$<ne;$++)!J&&$ in F||(J||(J=Array.prototype.slice.call(F,0,$)),J[$]=F[$]);return U.concat(J||Array.prototype.slice.call(F))},f=new WeakMap,s=new WeakMap,o=new WeakMap,a=new WeakMap,m=new WeakMap,v={get:function(U,F,W){if(U instanceof IDBTransaction){if(F==="done")return s.get(U);if(F==="objectStoreNames")return U.objectStoreNames||o.get(U);if(F==="store")return W.objectStoreNames[1]?void 0:W.objectStore(W.objectStoreNames[0])}return E(U[F])},set:function(U,F,W){return U[F]=W,!0},has:function(U,F){return U instanceof IDBTransaction&&(F==="done"||F==="store")||F in U}};function w(U){return U!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(b||(b=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(U)?function(){for(var F=[],W=0;W<arguments.length;W++)F[W]=arguments[W];return U.apply(O(this),F),E(f.get(this))}:function(){for(var F=[],W=0;W<arguments.length;W++)F[W]=arguments[W];return E(U.apply(O(this),F))}:function(F){for(var W=[],J=1;J<arguments.length;J++)W[J-1]=arguments[J];var $=U.call.apply(U,u([O(this),F],c(W),!1));return o.set($,F.sort?F.sort():[F]),E($)}}function A(U){return typeof U=="function"?w(U):(U instanceof IDBTransaction&&function(W){if(!s.has(W)){var J=new Promise(function($,ne){var ae=function(){W.removeEventListener("complete",te),W.removeEventListener("error",ie),W.removeEventListener("abort",ie)},te=function(){$(),ae()},ie=function(){ne(W.error||new DOMException("AbortError","AbortError")),ae()};W.addEventListener("complete",te),W.addEventListener("error",ie),W.addEventListener("abort",ie)});s.set(W,J)}}(U),F=U,(y||(y=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(function(W){return F instanceof W})?new Proxy(U,v):U);var F}function E(U){if(U instanceof IDBRequest)return F=U,(W=new Promise(function($,ne){var ae=function(){F.removeEventListener("success",te),F.removeEventListener("error",ie)},te=function(){$(E(F.result)),ae()},ie=function(){ne(F.error),ae()};F.addEventListener("success",te),F.addEventListener("error",ie)})).then(function($){$ instanceof IDBCursor&&f.set($,F)}).catch(function(){}),m.set(W,F),W;var F,W;if(a.has(U))return a.get(U);var J=A(U);return J!==U&&(a.set(U,J),m.set(J,U)),J}var O=function(U){return m.get(U)},T=function(){return T=Object.assign||function(U){for(var F,W=1,J=arguments.length;W<J;W++)for(var $ in F=arguments[W])Object.prototype.hasOwnProperty.call(F,$)&&(U[$]=F[$]);return U},T.apply(this,arguments)},M=function(U,F,W,J){return new(W||(W=Promise))(function($,ne){function ae(Se){try{ie(J.next(Se))}catch(_e){ne(_e)}}function te(Se){try{ie(J.throw(Se))}catch(_e){ne(_e)}}function ie(Se){var _e;Se.done?$(Se.value):(_e=Se.value,_e instanceof W?_e:new W(function(Ne){Ne(_e)})).then(ae,te)}ie((J=J.apply(U,[])).next())})},P=function(U,F){var W,J,$,ne,ae={label:0,sent:function(){if(1&$[0])throw $[1];return $[1]},trys:[],ops:[]};return ne={next:te(0),throw:te(1),return:te(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function te(ie){return function(Se){return function(_e){if(W)throw new TypeError("Generator is already executing.");for(;ae;)try{if(W=1,J&&($=2&_e[0]?J.return:_e[0]?J.throw||(($=J.return)&&$.call(J),0):J.next)&&!($=$.call(J,_e[1])).done)return $;switch(J=0,$&&(_e=[2&_e[0],$.value]),_e[0]){case 0:case 1:$=_e;break;case 4:return ae.label++,{value:_e[1],done:!1};case 5:ae.label++,J=_e[1],_e=[0];continue;case 7:_e=ae.ops.pop(),ae.trys.pop();continue;default:if($=ae.trys,!(($=$.length>0&&$[$.length-1])||_e[0]!==6&&_e[0]!==2)){ae=0;continue}if(_e[0]===3&&(!$||_e[1]>$[0]&&_e[1]<$[3])){ae.label=_e[1];break}if(_e[0]===6&&ae.label<$[1]){ae.label=$[1],$=_e;break}if($&&ae.label<$[2]){ae.label=$[2],ae.ops.push(_e);break}$[2]&&ae.ops.pop(),ae.trys.pop();continue}_e=F.call(U,ae)}catch(Ne){_e=[6,Ne],J=0}finally{W=$=0}if(5&_e[0])throw _e[1];return{value:_e[0]?_e[1]:void 0,done:!0}}([ie,Se])}}},x=function(U,F){var W=typeof Symbol=="function"&&U[Symbol.iterator];if(!W)return U;var J,$,ne=W.call(U),ae=[];try{for(;(F===void 0||F-- >0)&&!(J=ne.next()).done;)ae.push(J.value)}catch(te){$={error:te}}finally{try{J&&!J.done&&(W=ne.return)&&W.call(ne)}finally{if($)throw $.error}}return ae},I=function(U,F,W){if(arguments.length===2)for(var J,$=0,ne=F.length;$<ne;$++)!J&&$ in F||(J||(J=Array.prototype.slice.call(F,0,$)),J[$]=F[$]);return U.concat(J||Array.prototype.slice.call(F))},D=["get","getKey","getAll","getAllKeys","count"],V=["put","add","delete","clear"],j=new Map;function L(U,F){if(U instanceof IDBDatabase&&!(F in U)&&typeof F=="string"){if(j.get(F))return j.get(F);var W=F.replace(/FromIndex$/,""),J=F!==W,$=V.includes(W);if(W in(J?IDBIndex:IDBObjectStore).prototype&&($||D.includes(W))){var ne=function(ae){for(var te=[],ie=1;ie<arguments.length;ie++)te[ie-1]=arguments[ie];return M(this,void 0,void 0,function(){var Se,_e,Ne;return P(this,function(et){switch(et.label){case 0:return Se=this.transaction(ae,$?"readwrite":"readonly"),_e=Se.store,J&&(_e=_e.index(te.shift())),[4,Promise.all([(Ne=_e)[W].apply(Ne,I([],x(te),!1)),$&&Se.done])];case 1:return[2,et.sent()[0]]}})})};return j.set(F,ne),ne}}}v=function(U){return T(T({},U),{get:function(F,W,J){return L(F,W)||U.get(F,W,J)},has:function(F,W){return!!L(F,W)||U.has(F,W)}})}(v),h.deleteDB=function(U,F){var W=(F===void 0?{}:F).blocked,J=indexedDB.deleteDatabase(U);return W&&J.addEventListener("blocked",function($){return W($.oldVersion,$)}),E(J).then(function(){})},h.openDB=function(U,F,W){var J=W===void 0?{}:W,$=J.blocked,ne=J.upgrade,ae=J.blocking,te=J.terminated,ie=indexedDB.open(U,F),Se=E(ie);return ne&&ie.addEventListener("upgradeneeded",function(_e){ne(E(ie.result),_e.oldVersion,_e.newVersion,E(ie.transaction),_e)}),$&&ie.addEventListener("blocked",function(_e){return $(_e.oldVersion,_e.newVersion,_e)}),Se.then(function(_e){te&&_e.addEventListener("close",function(){return te()}),ae&&_e.addEventListener("versionchange",function(Ne){return ae(Ne.oldVersion,Ne.newVersion,Ne)})}).catch(function(){}),Se},h.unwrap=O,h.wrap=E}),function(){typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(h,y){if(h==null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(h),c=1;c<arguments.length;c++){var u=arguments[c];if(u!=null)for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(b[f]=u[f])}return b},writable:!0,configurable:!0})}(),Array.from||(Array.from=function(){var h=Object.prototype.toString,y=function(f){return typeof f=="function"||h.call(f)==="[object Function]"},b=function(f){var s=Number(f);return isNaN(s)?0:s===0||!isFinite(s)?s:(s>0?1:-1)*Math.floor(Math.abs(s))},c=Math.pow(2,53)-1,u=function(f){var s=b(f);return Math.min(Math.max(s,0),c)};return function(f){var s=this,o=Object(f);if(f==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var a=arguments.length>1?arguments[1]:void 0,m;if(typeof a<"u"){if(!y(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(m=arguments[2])}for(var v=u(o.length),w=y(s)?Object(new s(v)):new Array(v),A=0,E;A<v;)E=o[A],a?w[A]=typeof m>"u"?a(E,A):a.call(m,E,A):w[A]=E,A+=1;return w.length=v,w}}()),function(){String.prototype.endsWith||(String.prototype.endsWith=function(h,y){return(y===void 0||y>this.length)&&(y=this.length),this.substring(y-h.length,y)===h})}(),function(){Promise.allSettled=Promise.allSettled||function(h){return Promise.all(h.map(function(y){return y.then(function(b){return{status:"fulfilled",value:b}}).catch(function(b){return{status:"rejected",reason:b}})}))}}(),function(h,y){var b="2.0.2",c=500,u="user-agent",f="",s="?",o="function",a="undefined",m="object",v="string",w="browser",A="cpu",E="device",O="engine",T="os",M="result",P="name",x="type",I="vendor",D="version",V="architecture",j="major",L="model",U="console",F="mobile",W="tablet",J="smarttv",$="wearable",ne="xr",ae="embedded",te="inapp",ie="brands",Se="formFactors",_e="fullVersionList",Ne="platform",et="platformVersion",Nt="bitness",oe="sec-ch-ua",Ie=oe+"-full-version-list",Be=oe+"-arch",$e=oe+"-"+Nt,ke=oe+"-form-factors",Xe=oe+"-"+F,ge=oe+"-"+L,Le=oe+"-"+Ne,Mt=Le+"-version",Ct=[ie,_e,F,L,Ne,et,V,Se,Nt],Ut="Amazon",$t="Apple",bn="ASUS",Fn="BlackBerry",Bn="Google",Sn="Huawei",_r="Lenovo",pt="Honor",gn="LG",vn="Microsoft",Nr="Motorola",wr="Nvidia",Yr="OnePlus",ir="OPPO",Dn="Samsung",H="Sharp",we="Sony",Me="Xiaomi",Ae="Zebra",Ue="Chrome",ze="Chromium",ft="Chromecast",Pt="Edge",R="Firefox",he="Opera",ve="Facebook",K="Sogou",Ve="Mobile ",tt=" Browser",nt="Windows",ot=typeof window!==a,yn=ot&&window.navigator?window.navigator:y,yt=yn&&yn.userAgentData?yn.userAgentData:y,Jr=function(De,rt){var it={},Ft=rt;if(!qi(rt)){Ft={};for(var ht in rt)for(var Gt in rt[ht])Ft[Gt]=rt[ht][Gt].concat(Ft[Gt]?Ft[Gt]:[])}for(var ct in De)it[ct]=Ft[ct]&&Ft[ct].length%2===0?Ft[ct].concat(De[ct]):De[ct];return it},Ta=function(De){for(var rt={},it=0;it<De.length;it++)rt[De[it].toUpperCase()]=De[it];return rt},ji=function(De,rt){if(typeof De===m&&De.length>0){for(var it in De)if(Qr(De[it])==Qr(rt))return!0;return!1}return Xr(De)?Qr(rt).indexOf(Qr(De))!==-1:!1},qi=function(De,rt){for(var it in De)return/^(browser|cpu|device|engine|os)$/.test(it)||(rt?qi(De[it]):!1)},Xr=function(De){return typeof De===v},vl=function(De){if(!De)return y;for(var rt=[],it=Oa(/\\?\"/g,De).split(","),Ft=0;Ft<it.length;Ft++)if(it[Ft].indexOf(";")>-1){var ht=Gi(it[Ft]).split(";v=");rt[Ft]={brand:ht[0],version:ht[1]}}else rt[Ft]=Gi(it[Ft]);return rt},Qr=function(De){return Xr(De)?De.toLowerCase():De},no=function(De){return Xr(De)?Oa(/[^\d\.]/g,De).split(".")[0]:y},ei=function(De){for(var rt in De){var it=De[rt];typeof it==m&&it.length==2?this[it[0]]=it[1]:this[it]=y}return this},Oa=function(De,rt){return Xr(rt)?rt.replace(De,f):rt},wi=function(De){return Oa(/\\?\"/g,De)},Gi=function(De,rt){if(Xr(De))return De=Oa(/^\s\s*/,De),typeof rt===a?De:De.substring(0,c)},yl=function(De,rt){if(!(!De||!rt))for(var it=0,Ft,ht,Gt,ct,zt,Et;it<rt.length&&!zt;){var un=rt[it],ri=rt[it+1];for(Ft=ht=0;Ft<un.length&&!zt&&un[Ft];)if(zt=un[Ft++].exec(De),zt)for(Gt=0;Gt<ri.length;Gt++)Et=zt[++ht],ct=ri[Gt],typeof ct===m&&ct.length>0?ct.length===2?typeof ct[1]==o?this[ct[0]]=ct[1].call(this,Et):this[ct[0]]=ct[1]:ct.length===3?typeof ct[1]===o&&!(ct[1].exec&&ct[1].test)?this[ct[0]]=Et?ct[1].call(this,Et,ct[2]):y:this[ct[0]]=Et?Et.replace(ct[1],ct[2]):y:ct.length===4&&(this[ct[0]]=Et?ct[3].call(this,Et.replace(ct[1],ct[2])):y):this[ct]=Et||y;it+=2}},ti=function(De,rt){for(var it in rt)if(typeof rt[it]===m&&rt[it].length>0){for(var Ft=0;Ft<rt[it].length;Ft++)if(ji(rt[it][Ft],De))return it===s?y:it}else if(ji(rt[it],De))return it===s?y:it;return rt.hasOwnProperty("*")?rt["*"]:De},mu={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ro={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":y},io={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[D,[P,Ve+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[D,[P,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[P,D],[/opios[\/ ]+([\w\.]+)/i],[D,[P,he+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[D,[P,he+" GX"]],[/\bopr\/([\w\.]+)/i],[D,[P,he]],[/\bb[a]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[D,[P,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[D,[P,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[P,D],[/quark(?:pc)?\/([-\w\.]+)/i],[D,[P,"Quark"]],[/\bddg\/([\w\.]+)/i],[D,[P,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[D,[P,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[D,[P,"WeChat"]],[/konqueror\/([\w\.]+)/i],[D,[P,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[D,[P,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[D,[P,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[D,[P,"Smart "+_r+tt]],[/(avast|avg)\/([\w\.]+)/i],[[P,/(.+)/,"$1 Secure"+tt],D],[/\bfocus\/([\w\.]+)/i],[D,[P,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[D,[P,he+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[D,[P,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[D,[P,"Dolphin"]],[/coast\/([\w\.]+)/i],[D,[P,he+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[D,[P,"MIUI"+tt]],[/fxios\/([\w\.-]+)/i],[D,[P,Ve+R]],[/\bqihoobrowser\/?([\w\.]*)/i],[D,[P,"360"]],[/\b(qq)\/([\w\.]+)/i],[[P,/(.+)/,"$1Browser"],D],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[P,/(.+)/,"$1"+tt],D],[/samsungbrowser\/([\w\.]+)/i],[D,[P,Dn+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[D,[P,K+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[P,K+" Mobile"],D],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[P,D],[/(lbbrowser|rekonq)/i],[P],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[D,P],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[P,ve],D,[x,te]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[P,D,[x,te]],[/\bgsa\/([\w\.]+) .*safari\//i],[D,[P,"GSA"],[x,te]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[D,[P,"TikTok"],[x,te]],[/\[(linkedin)app\]/i],[P,[x,te]],[/(chromium)[\/ ]([-\w\.]+)/i],[P,D],[/headlesschrome(?:\/([\w\.]+)| )/i],[D,[P,Ue+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[P,Ue+" WebView"],D],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[D,[P,"Android"+tt]],[/chrome\/([\w\.]+) mobile/i],[D,[P,Ve+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[P,D],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[D,[P,Ve+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[P,Ve+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[D,P],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[P,[D,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[P,D],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[P,Ve+R],D],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[P,"Netscape"],D],[/(wolvic|librewolf)\/([\w\.]+)/i],[P,D],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[D,[P,R+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[P,[D,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[P,[D,/[^\d\.]+./,f]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[V,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[V,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[V,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[V,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[V,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[V,/ower/,f,Qr]],[/ sun4\w[;\)]/i],[[V,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[V,Qr]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[L,[I,Dn],[x,W]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[L,[I,Dn],[x,F]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[L,[I,$t],[x,F]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[L,[I,$t],[x,W]],[/(macintosh);/i],[L,[I,$t]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[L,[I,H],[x,F]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[L,[I,pt],[x,W]],[/honor([-\w ]+)[;\)]/i],[L,[I,pt],[x,F]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[L,[I,Sn],[x,W]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[L,[I,Sn],[x,F]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[L,/_/g," "],[I,Me],[x,W]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[L,/_/g," "],[I,Me],[x,F]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[L,[I,ir],[x,F]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[L,[I,ti,{OnePlus:["304","403","203"],"*":ir}],[x,W]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[L,[I,"Vivo"],[x,F]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[L,[I,"Realme"],[x,F]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[L,[I,Nr],[x,F]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[L,[I,Nr],[x,W]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[L,[I,gn],[x,W]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[L,[I,gn],[x,F]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[L,[I,_r],[x,W]],[/(nokia) (t[12][01])/i],[I,L,[x,W]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[L,/_/g," "],[x,F],[I,"Nokia"]],[/(pixel (c|tablet))\b/i],[L,[I,Bn],[x,W]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[L,[I,Bn],[x,F]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[L,[I,we],[x,F]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[L,"Xperia Tablet"],[I,we],[x,W]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[L,[I,Yr],[x,F]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[L,[I,Ut],[x,W]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[L,/(.+)/g,"Fire Phone $1"],[I,Ut],[x,F]],[/(playbook);[-\w\),; ]+(rim)/i],[L,I,[x,W]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[L,[I,Fn],[x,F]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[L,[I,bn],[x,W]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[L,[I,bn],[x,F]],[/(nexus 9)/i],[L,[I,"HTC"],[x,W]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[I,[L,/_/g," "],[x,F]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[L,[I,"TCL"],[x,W]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[L,[I,"TCL"],[x,F]],[/(itel) ((\w+))/i],[[I,Qr],L,[x,ti,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[L,[I,"Acer"],[x,W]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[L,[I,"Meizu"],[x,F]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[L,[I,"Ulefone"],[x,F]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[L,[I,"Energizer"],[x,F]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[L,[I,"Cat"],[x,F]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[L,[I,"Smartfren"],[x,F]],[/droid.+; (a(?:015|06[35]|142p?))/i],[L,[I,"Nothing"],[x,F]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[I,L,[x,W]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[I,L,[x,F]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[I,L,[x,W]],[/(surface duo)/i],[L,[I,vn],[x,W]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[L,[I,"Fairphone"],[x,F]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[L,[I,wr],[x,W]],[/(sprint) (\w+)/i],[I,L,[x,F]],[/(kin\.[onetw]{3})/i],[[L,/\./g," "],[I,vn],[x,F]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[L,[I,Ae],[x,W]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[L,[I,Ae],[x,F]],[/smart-tv.+(samsung)/i],[I,[x,J]],[/hbbtv.+maple;(\d+)/i],[[L,/^/,"SmartTV"],[I,Dn],[x,J]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[I,gn],[x,J]],[/(apple) ?tv/i],[I,[L,$t+" TV"],[x,J]],[/crkey.*devicetype\/chromecast/i],[[L,ft+" Third Generation"],[I,Bn],[x,J]],[/crkey.*devicetype\/([^/]*)/i],[[L,/^/,"Chromecast "],[I,Bn],[x,J]],[/fuchsia.*crkey/i],[[L,ft+" Nest Hub"],[I,Bn],[x,J]],[/crkey/i],[[L,ft],[I,Bn],[x,J]],[/droid.+aft(\w+)( bui|\))/i],[L,[I,Ut],[x,J]],[/(shield \w+ tv)/i],[L,[I,wr],[x,J]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[L,[I,H],[x,J]],[/(bravia[\w ]+)( bui|\))/i],[L,[I,we],[x,J]],[/(mi(tv|box)-?\w+) bui/i],[L,[I,Me],[x,J]],[/Hbbtv.*(technisat) (.*);/i],[I,L,[x,J]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[I,Gi],[L,Gi],[x,J]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[L,[x,J]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[x,J]],[/(ouya)/i,/(nintendo) (\w+)/i],[I,L,[x,U]],[/droid.+; (shield)( bui|\))/i],[L,[I,wr],[x,U]],[/(playstation \w+)/i],[L,[I,we],[x,U]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[L,[I,vn],[x,U]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[L,[I,Dn],[x,$]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[I,L,[x,$]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[L,[I,ir],[x,$]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[L,[I,$t],[x,$]],[/(opwwe\d{3})/i],[L,[I,Yr],[x,$]],[/(moto 360)/i],[L,[I,Nr],[x,$]],[/(smartwatch 3)/i],[L,[I,we],[x,$]],[/(g watch r)/i],[L,[I,gn],[x,$]],[/droid.+; (wt63?0{2,3})\)/i],[L,[I,Ae],[x,$]],[/droid.+; (glass) \d/i],[L,[I,Bn],[x,ne]],[/(pico) (4|neo3(?: link|pro)?)/i],[I,L,[x,ne]],[/; (quest( \d| pro)?)/i],[L,[I,ve],[x,ne]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[I,[x,ae]],[/(aeobc)\b/i],[L,[I,Ut],[x,ae]],[/(homepod).+mac os/i],[L,[I,$t],[x,ae]],[/windows iot/i],[[x,ae]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[L,[x,ti,{mobile:"Mobile",xr:"VR","*":W}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[x,W]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[x,F]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[L,[I,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[D,[P,Pt+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[P,D],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[D,[P,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[P,D],[/ladybird\//i],[[P,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[D,P]],os:[[/microsoft (windows) (vista|xp)/i],[P,D],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[P,[D,ti,mu]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[D,ti,mu],[P,nt]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[D,/_/g,"."],[P,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[P,"macOS"],[D,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[D,[P,ft+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[D,[P,ft+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[D,[P,ft+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[D,[P,ft+" Linux"]],[/crkey\/([\d\.]+)/i],[D,[P,ft]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[D,P],[/(ubuntu) ([\w\.]+) like android/i],[[P,/(.+)/,"$1 Touch"],D],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[P,D],[/\(bb(10);/i],[D,[P,Fn]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[D,[P,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[D,[P,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[D,[P,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[D,[P,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[P,"Chrome OS"],D],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[P,D],[/(sunos) ?([\w\.\d]*)/i],[[P,"Solaris"],D],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[P,D]]},ao=function(){var De={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return ei.call(De.init,[[w,[P,D,j,x]],[A,[V]],[E,[x,L,I]],[O,[P,D]],[T,[P,D]]]),ei.call(De.isIgnore,[[w,[D,j]],[O,[D]],[T,[D]]]),ei.call(De.isIgnoreRgx,[[w,/ ?browser$/i],[T,/ ?os$/i]]),ei.call(De.toString,[[w,[P,D]],[A,[V]],[E,[I,L]],[O,[P,D]],[T,[P,D]]]),De}(),ch=function(De,rt){var it=ao.init[rt],Ft=ao.isIgnore[rt]||0,ht=ao.isIgnoreRgx[rt]||0,Gt=ao.toString[rt]||0;function ct(){ei.call(this,it)}return ct.prototype.getItem=function(){return De},ct.prototype.withClientHints=function(){return yt?yt.getHighEntropyValues(Ct).then(function(zt){return De.setCH(new vu(zt,!1)).parseCH().get()}):De.parseCH().get()},ct.prototype.withFeatureCheck=function(){return De.detectFeature().get()},rt!=M&&(ct.prototype.is=function(zt){var Et=!1;for(var un in this)if(this.hasOwnProperty(un)&&!ji(Ft,un)&&Qr(ht?Oa(ht,this[un]):this[un])==Qr(ht?Oa(ht,zt):zt)){if(Et=!0,zt!=a)break}else if(zt==a&&Et){Et=!Et;break}return Et},ct.prototype.toString=function(){var zt=f;for(var Et in Gt)typeof this[Gt[Et]]!==a&&(zt+=(zt?" ":f)+this[Gt[Et]]);return zt||a}),yt||(ct.prototype.then=function(zt){var Et=this,un=function(){for(var ii in Et)Et.hasOwnProperty(ii)&&(this[ii]=Et[ii])};un.prototype={is:ct.prototype.is,toString:ct.prototype.toString};var ri=new un;return zt(ri),ri}),new ct};function vu(De,rt){if(De=De||{},ei.call(this,Ct),rt)ei.call(this,[[ie,vl(De[oe])],[_e,vl(De[Ie])],[F,/\?1/.test(De[Xe])],[L,wi(De[ge])],[Ne,wi(De[Le])],[et,wi(De[Mt])],[V,wi(De[Be])],[Se,vl(De[ke])],[Nt,wi(De[$e])]]);else for(var it in De)this.hasOwnProperty(it)&&typeof De[it]!==a&&(this[it]=De[it])}function yu(De,rt,it,Ft){return this.get=function(ht){return ht?this.data.hasOwnProperty(ht)?this.data[ht]:y:this.data},this.set=function(ht,Gt){return this.data[ht]=Gt,this},this.setCH=function(ht){return this.uaCH=ht,this},this.detectFeature=function(){if(yn&&yn.userAgent==this.ua)switch(this.itemType){case w:yn.brave&&typeof yn.brave.isBrave==o&&this.set(P,"Brave");break;case E:!this.get(x)&&yt&&yt[F]&&this.set(x,F),this.get(L)=="Macintosh"&&yn&&typeof yn.standalone!==a&&yn.maxTouchPoints&&yn.maxTouchPoints>2&&this.set(L,"iPad").set(x,W);break;case T:!this.get(P)&&yt&&yt[Ne]&&this.set(P,yt[Ne]);break;case M:var ht=this.data,Gt=function(ct){return ht[ct].getItem().detectFeature().get()};this.set(w,Gt(w)).set(A,Gt(A)).set(E,Gt(E)).set(O,Gt(O)).set(T,Gt(T))}return this},this.parseUA=function(){return this.itemType!=M&&yl.call(this.data,this.ua,this.rgxMap),this.itemType==w&&this.set(j,no(this.get(D))),this},this.parseCH=function(){var ht=this.uaCH,Gt=this.rgxMap;switch(this.itemType){case w:case O:var ct=ht[_e]||ht[ie],zt;if(ct)for(var Et in ct){var un=ct[Et].brand||ct[Et],ri=ct[Et].version;this.itemType==w&&!/not.a.brand/i.test(un)&&(!zt||/chrom/i.test(zt)&&un!=ze)&&(un=ti(un,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome"}),this.set(P,un).set(D,ri).set(j,no(ri)),zt=un),this.itemType==O&&un==ze&&this.set(D,ri)}break;case A:var ii=ht[V];ii&&(ii&&ht[Nt]=="64"&&(ii+="64"),yl.call(this.data,ii+";",Gt));break;case E:if(ht[F]&&this.set(x,F),ht[L]&&(this.set(L,ht[L]),!this.get(x)||!this.get(I))){var fs={};yl.call(fs,"droid 9; "+ht[L]+")",Gt),!this.get(x)&&fs.type&&this.set(x,fs.type),!this.get(I)&&fs.vendor&&this.set(I,fs.vendor)}if(ht[Se]){var so;if(typeof ht[Se]!="string")for(var _u=0;!so&&_u<ht[Se].length;)so=ti(ht[Se][_u++],ro);else so=ti(ht[Se],ro);this.set(x,so)}break;case T:var oo=ht[Ne];if(oo){var _l=ht[et];oo==nt&&(_l=parseInt(no(_l),10)>=13?"11":"10"),this.set(P,oo).set(D,_l)}this.get(P)==nt&&ht[L]=="Xbox"&&this.set(P,"Xbox").set(D,y);break;case M:var wu=this.data,hs=function(uh){return wu[uh].getItem().setCH(ht).parseCH().get()};this.set(w,hs(w)).set(A,hs(A)).set(E,hs(E)).set(O,hs(O)).set(T,hs(T))}return this},ei.call(this,[["itemType",De],["ua",rt],["uaCH",Ft],["rgxMap",it],["data",ch(this,De)]]),this}function ni(De,rt,it){if(typeof De===m?(qi(De,!0)?(typeof rt===m&&(it=rt),rt=De):(it=De,rt=y),De=y):typeof De===v&&!qi(rt,!0)&&(it=rt,rt=y),it&&typeof it.append===o){var Ft={};it.forEach(function(Et,un){Ft[un]=Et}),it=Ft}if(!(this instanceof ni))return new ni(De,rt,it).getResult();var ht=typeof De===v?De:it&&it[u]?it[u]:yn&&yn.userAgent?yn.userAgent:f,Gt=new vu(it,!0),ct=rt?Jr(io,rt):io,zt=function(Et){return Et==M?function(){return new yu(Et,ht,ct,Gt).set("ua",ht).set(w,this.getBrowser()).set(A,this.getCPU()).set(E,this.getDevice()).set(O,this.getEngine()).set(T,this.getOS()).get()}:function(){return new yu(Et,ht,ct[Et],Gt).parseUA().get()}};return ei.call(this,[["getBrowser",zt(w)],["getCPU",zt(A)],["getDevice",zt(E)],["getEngine",zt(O)],["getOS",zt(T)],["getResult",zt(M)],["getUA",function(){return ht}],["setUA",function(Et){return Xr(Et)&&(ht=Et.length>c?Gi(Et,c):Et),this}]]).setUA(ht),this}ni.VERSION=b,ni.BROWSER=Ta([P,D,j,x]),ni.CPU=Ta([V]),ni.DEVICE=Ta([L,I,x,U,F,J,W,$,ae]),ni.ENGINE=ni.OS=Ta([P,D]),h.UAParser=ni}(ee||(ee={})),(ee||(ee={})).evaluateModernizr=function(){(function(h,y,b,c){function u(oe,Ie){return typeof oe===Ie}function f(){return typeof b.createElement!="function"?b.createElement(arguments[0]):L?b.createElementNS.call(b,"http://www.w3.org/2000/svg",arguments[0]):b.createElement.apply(b,arguments)}function s(oe,Ie){return!!~(""+oe).indexOf(Ie)}function o(){var oe=b.body;return oe||(oe=f(L?"svg":"body"),oe.fake=!0),oe}function a(oe,Ie,Be,$e){var ke,Xe,ge,Le,Mt="modernizr",Ct=f("div"),Ut=o();if(parseInt(Be,10))for(;Be--;)ge=f("div"),ge.id=Mt+(Be+1),Ct.appendChild(ge);return ke=f("style"),ke.type="text/css",ke.id="s"+Mt,(Ut.fake?Ut:Ct).appendChild(ke),Ut.appendChild(Ct),ke.styleSheet?ke.styleSheet.cssText=oe:ke.appendChild(b.createTextNode(oe)),Ct.id=Mt,Ut.fake&&(Ut.style.background="",Ut.style.overflow="hidden",Le=j.style.overflow,j.style.overflow="hidden",j.appendChild(Ut)),Xe=Ie(Ct,oe),Ut.fake&&Ut.parentNode?(Ut.parentNode.removeChild(Ut),j.style.overflow=Le,j.offsetHeight):Ct.parentNode.removeChild(Ct),!!Xe}function m(oe){return oe.replace(/([A-Z])/g,function(Ie,Be){return"-"+Be.toLowerCase()}).replace(/^ms-/,"-ms-")}function v(oe,Ie,Be){var $e;if("getComputedStyle"in y){$e=getComputedStyle.call(y,oe,Ie);var ke=y.console;if($e!==null)$e=$e.getPropertyValue(Be);else if(ke){var Xe=ke.error?"error":"log";ke[Xe].call(ke,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else $e=oe.currentStyle&&oe.currentStyle[Be];return $e}function w(oe,Ie){var Be=oe.length;if(y&&y.CSS&&"supports"in y.CSS){for(;Be--;)if(y.CSS.supports(m(oe[Be]),Ie))return!0;return!1}if("CSSSupportsRule"in y){for(var $e=[];Be--;)$e.push("("+m(oe[Be])+":"+Ie+")");return $e=$e.join(" or "),a("@supports ("+$e+") { #modernizr { position: absolute; } }",function(ke){return v(ke,null,"position")==="absolute"})}return c}function A(oe){return oe.replace(/([a-z])-([a-z])/g,function(Ie,Be,$e){return Be+$e.toUpperCase()}).replace(/^-/,"")}function E(oe,Ie,Be,$e){function ke(){ge&&(delete $.style,delete $.modElem)}if($e=!u($e,"undefined")&&$e,!u(Be,"undefined")){var Xe=w(oe,Be);if(!u(Xe,"undefined"))return Xe}for(var ge,Le,Mt,Ct,Ut,$t=["modernizr","tspan","samp"];!$.style&&$t.length;)ge=!0,$.modElem=f($t.shift()),$.style=$.modElem.style;for(Mt=oe.length,Le=0;Le<Mt;Le++)if(Ct=oe[Le],Ut=$.style[Ct],s(Ct,"-")&&(Ct=A(Ct)),$.style[Ct]!==c){if($e||u(Be,"undefined"))return ke(),Ie!=="pfx"||Ct;try{$.style[Ct]=Be}catch{}if($.style[Ct]!==Ut)return ke(),Ie!=="pfx"||Ct}return ke(),!1}function O(oe,Ie){return function(){return oe.apply(Ie,arguments)}}function T(oe,Ie,Be){var $e;for(var ke in oe)if(oe[ke]in Ie)return Be===!1?oe[ke]:($e=Ie[oe[ke]],u($e,"function")?O($e,Be||Ie):$e);return!1}function M(oe,Ie,Be,$e,ke){var Xe=oe.charAt(0).toUpperCase()+oe.slice(1),ge=(oe+" "+W.join(Xe+" ")+Xe).split(" ");return u(Ie,"string")||u(Ie,"undefined")?E(ge,Ie,$e,ke):(ge=(oe+" "+ne.join(Xe+" ")+Xe).split(" "),T(ge,Ie,Be))}function P(oe,Ie,Be){return M(oe,c,c,Ie,Be)}var x=[],I={_version:"3.13.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(oe,Ie){var Be=this;setTimeout(function(){Ie(Be[oe])},0)},addTest:function(oe,Ie,Be){x.push({name:oe,fn:Ie,options:Be})},addAsyncTest:function(oe){x.push({name:null,fn:oe})}},D=function(){};D.prototype=I,D=new D;var V=[],j=b.documentElement,L=j.nodeName.toLowerCase()==="svg",U=function(){function oe(Be,$e){var ke;return!!Be&&($e&&typeof $e!="string"||($e=f($e||"div")),Be="on"+Be,ke=Be in $e,!ke&&Ie&&($e.setAttribute||($e=f("div")),$e.setAttribute(Be,""),ke=typeof $e[Be]=="function",$e[Be]!==c&&($e[Be]=c),$e.removeAttribute(Be)),ke)}var Ie=!("onblur"in j);return oe}();I.hasEvent=U,D.addTest("ambientlight",U("devicelight",y)),D.addTest("applicationcache","applicationCache"in y),function(){var oe=f("audio");D.addTest("audio",function(){var Ie=!1;try{Ie=!!oe.canPlayType,Ie&&(Ie=new Boolean(Ie))}catch{}return Ie});try{oe.canPlayType&&(D.addTest("audio.ogg",oe.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"")),D.addTest("audio.mp3",oe.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,"")),D.addTest("audio.opus",oe.canPlayType('audio/ogg; codecs="opus"')||oe.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,"")),D.addTest("audio.wav",oe.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"")),D.addTest("audio.m4a",(oe.canPlayType("audio/x-m4a;")||oe.canPlayType("audio/aac;")).replace(/^no$/,"")))}catch{}}();var F="Moz O ms Webkit",W=I._config.usePrefixes?F.split(" "):[];I._cssomPrefixes=W;var J={elem:f("modernizr")};D._q.push(function(){delete J.elem});var $={style:J.elem.style};D._q.unshift(function(){delete $.style});var ne=I._config.usePrefixes?F.toLowerCase().split(" "):[];I._domPrefixes=ne,I.testAllProps=M;var ae=function(oe){var Ie,Be=_e.length,$e=y.CSSRule;if($e===void 0)return c;if(!oe)return!1;if(oe=oe.replace(/^@/,""),(Ie=oe.replace(/-/g,"_").toUpperCase()+"_RULE")in $e)return"@"+oe;for(var ke=0;ke<Be;ke++){var Xe=_e[ke];if(Xe.toUpperCase()+"_"+Ie in $e)return"@-"+Xe.toLowerCase()+"-"+oe}return!1};I.atRule=ae;var te=I.prefixed=function(oe,Ie,Be){return oe.indexOf("@")===0?ae(oe):(oe.indexOf("-")!==-1&&(oe=A(oe)),Ie?M(oe,Ie,Be):M(oe,"pfx"))};D.addTest("batteryapi",!!te("battery",navigator)||!!te("getBattery",navigator),{aliases:["battery-api"]}),D.addTest("blobconstructor",function(){try{return!!new Blob}catch{return!1}},{aliases:["blob-constructor"]}),D.addTest("contextmenu","contextMenu"in j&&"HTMLMenuItemElement"in y),D.addTest("cors","XMLHttpRequest"in y&&"withCredentials"in new XMLHttpRequest);var ie=te("crypto",y);D.addTest("crypto",!!te("subtle",ie)),D.addTest("customelements","customElements"in y),D.addTest("customprotocolhandler",function(){if(!navigator.registerProtocolHandler)return!1;try{navigator.registerProtocolHandler("thisShouldFail")}catch(oe){return oe instanceof TypeError}return!1}),D.addTest("customevent","CustomEvent"in y&&typeof y.CustomEvent=="function"),D.addTest("dart",!!te("startDart",navigator)),D.addTest("dataview",typeof DataView<"u"&&"getFloat64"in DataView.prototype),D.addTest("eventlistener","addEventListener"in y),D.addTest("forcetouch",function(){return!!U(te("mouseforcewillbegin",y,!1),y)&&MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN&&MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN}),D.addTest("fullscreen",!(!te("exitFullscreen",b,!1)&&!te("cancelFullScreen",b,!1))),D.addTest("gamepads",!!te("getGamepads",navigator)),D.addTest("geolocation","geolocation"in navigator),D.addTest("ie8compat",!y.addEventListener&&!!b.documentMode&&b.documentMode===7),D.addTest("intl",!!te("Intl",y)),D.addTest("json","JSON"in y&&"parse"in JSON&&"stringify"in JSON),I.testAllProps=P,D.addTest("ligatures",P("fontFeatureSettings",'"liga" 1')),D.addTest("messagechannel","MessageChannel"in y),D.addTest("notification",function(){if(!y.Notification||!y.Notification.requestPermission)return!1;if(y.Notification.permission==="granted")return!0;try{new y.Notification("")}catch(oe){if(oe.name==="TypeError")return!1}return!0}),D.addTest("pagevisibility",!!te("hidden",b,!1)),D.addTest("performance",!!te("performance",y));var Se=[""].concat(ne);I._domPrefixesAll=Se,D.addTest("pointerevents",function(){for(var oe=0,Ie=Se.length;oe<Ie;oe++)if(U(Se[oe]+"pointerdown"))return!0;return!1}),D.addTest("pointerlock",!!te("exitPointerLock",b)),D.addTest("queryselector","querySelector"in b&&"querySelectorAll"in b),D.addTest("quotamanagement",function(){var oe=te("temporaryStorage",navigator),Ie=te("persistentStorage",navigator);return!(!oe||!Ie)}),D.addTest("requestanimationframe",!!te("requestAnimationFrame",y),{aliases:["raf"]}),D.addTest("serviceworker","serviceWorker"in navigator);var _e=I._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];I._prefixes=_e;var Ne=function(){var oe=y.matchMedia||y.msMatchMedia;return oe?function(Ie){var Be=oe(Ie);return Be&&Be.matches||!1}:function(Ie){var Be=!1;return a("@media "+Ie+" { #modernizr { position: absolute; } }",function($e){Be=v($e,null,"position")==="absolute"}),Be}}();I.mq=Ne,D.addTest("touchevents",function(){if("ontouchstart"in y||y.TouchEvent||y.DocumentTouch&&b instanceof DocumentTouch)return!0;var oe=["(",_e.join("touch-enabled),("),"heartz",")"].join("");return Ne(oe)}),D.addTest("typedarrays","ArrayBuffer"in y),D.addTest("vibrate",!!te("vibrate",navigator)),function(){var oe=f("video");D.addTest("video",function(){var Ie=!1;try{Ie=!!oe.canPlayType,Ie&&(Ie=new Boolean(Ie))}catch{}return Ie});try{oe.canPlayType&&(D.addTest("video.ogg",oe.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"")),D.addTest("video.h264",oe.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"")),D.addTest("video.h265",oe.canPlayType('video/mp4; codecs="hev1"').replace(/^no$/,"")),D.addTest("video.webm",oe.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")),D.addTest("video.vp9",oe.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,"")),D.addTest("video.hls",oe.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")),D.addTest("video.av1",oe.canPlayType('video/mp4; codecs="av01"').replace(/^no$/,"")))}catch{}}(),D.addTest("webgl",function(){return"WebGLRenderingContext"in y});var et=!1;try{et="WebSocket"in y&&y.WebSocket.CLOSING===2}catch{}D.addTest("websockets",et),D.addTest("xdomainrequest","XDomainRequest"in y),D.addTest("matchmedia",!!te("matchMedia",y)),function(){var oe,Ie,Be,$e,ke,Xe,ge;for(var Le in x)if(x.hasOwnProperty(Le)){if(oe=[],Ie=x[Le],Ie.name&&(oe.push(Ie.name.toLowerCase()),Ie.options&&Ie.options.aliases&&Ie.options.aliases.length))for(Be=0;Be<Ie.options.aliases.length;Be++)oe.push(Ie.options.aliases[Be].toLowerCase());for($e=u(Ie.fn,"function")?Ie.fn():Ie.fn,ke=0;ke<oe.length;ke++)Xe=oe[ke],ge=Xe.split("."),ge.length===1?D[ge[0]]=$e:(D[ge[0]]&&(!D[ge[0]]||D[ge[0]]instanceof Boolean)||(D[ge[0]]=new Boolean(D[ge[0]])),D[ge[0]][ge[1]]=$e),V.push(($e?"":"no-")+ge.join("-"))}}(),delete I.addTest,delete I.addAsyncTest;for(var Nt=0;Nt<D._q.length;Nt++)D._q[Nt]();h.Modernizr=D})(ee||(ee={}),window,document)},function(h){h.AiaSignals=function(y){var b=[{name:"IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",value:!1,error:null},{name:"FILE_INJECT_JS_FOUND",value:!1,error:null},{name:"FILE_CONTENT_JS_FOUND",value:!1,error:null},{name:"WINDOW_GLOBAL_KEY_FOUND",value:!1,error:null}],c={webAuthn:1e3,manus:5e3,anchor:5e3,skyvern:5e3,detect:1e4};function u(A){for(var E=0;E<b.length;E++)if(b[E].name===A)return b[E];return null}function f(A,E){var O=u(A);O&&(O.value=E,O.error=null)}function s(A,E,O){var T=u(A);T&&(T.value=E,T.error=O)}function o(){return new Promise(function(A){var E=setTimeout(function(){A(b)},c.detect);a().then(function(O){var T=u("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE");if(T&&T.value){clearTimeout(E),A(b);return}for(var M=[m().then(function(D){return{key:"manus",result:D}}),v().then(function(D){return{key:"anchor",result:D}}),w().then(function(D){return{key:"skyvern",result:D}})],P=0,x=function(){P++,P===M.length&&(clearTimeout(E),A(b))},I=0;I<M.length;I++)(function(D){D.then(x).catch(function(){x()})})(M[I])}).catch(function(){clearTimeout(E),A(b)})})}function a(){return new Promise(function(A){var E=c.webAuthn,O=setTimeout(function(){s("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1004),A(b)},E);try{window.PublicKeyCredential&&typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable=="function"?PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable().then(function(T){clearTimeout(O),T?f("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!0):s("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1001),A(b)}).catch(function(){clearTimeout(O),s("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1002),A(b)}):(clearTimeout(O),s("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1003),A(b))}catch{clearTimeout(O),s("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1002),A(b)}})}function m(){return new Promise(function(A){var E=c.manus,O;function T(){clearTimeout(O),f("FILE_CONTENT_JS_FOUND",!0),A(b)}function M(){s("FILE_CONTENT_JS_FOUND",!1,2001),A(b)}var P=document.createElement("script");P.src="chrome-extension://mljmkmodkfigdopcpgboaalildgijkoc/content.ts.js",P.onload=T,P.onerror=function(){clearTimeout(O),s("FILE_CONTENT_JS_FOUND",!1,2002),A(b)},document.getElementsByTagName("head")[0].appendChild(P),O=setTimeout(M,E)})}function v(){return new Promise(function(A){var E=c.anchor,O;function T(){clearTimeout(O),f("FILE_INJECT_JS_FOUND",!0),A(b)}function M(){s("FILE_INJECT_JS_FOUND",!1,4001),A(b)}var P=document.createElement("script");P.src="chrome-extension://bppehibnhionalpjigdjdilknbljaeai/inject.js",P.onload=T,P.onerror=function(){clearTimeout(O),s("FILE_INJECT_JS_FOUND",!1,4002),A(b)},document.getElementsByTagName("head")[0].appendChild(P),O=setTimeout(M,E)})}function w(){return new Promise(function(A){var E=c.skyvern,O=1e3,T=0;function M(){if(window.globalDomDepthMap||window.GlobalEnableAllTextualElements||window.globalObserverForDOMIncrement||window.globalListnerFlag||window.globalDomDepthMap||window.globalOneTimeIncrementElements||window.globalHoverStylesMap||window.globalParsedElementCounter){f("WINDOW_GLOBAL_KEY_FOUND",!0),A(b);return}for(var P in window)if(typeof P=="string"){var x=P.toLowerCase();if(x.indexOf("skyvern")!==-1&&P!=="isSkyvern"){f("WINDOW_GLOBAL_KEY_FOUND",!0),A(b);return}}T+=O,T>=E?(s("WINDOW_GLOBAL_KEY_FOUND",!1,5002),A(b)):setTimeout(M,O)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",M):M()})}return y.detect=o,y.checkWebAuthnPlatformSupport=a,y.isManus=m,y.isAnchor=v,y.isSkyvern=w,Object.defineProperty(y,"__esModule",{value:!0}),y}({})}(typeof ee<"u"?ee:ee={}),function(h){(ee||(ee={})).pako=h()}(function(){return function h(y,b,c){function u(o,a){if(!b[o]){if(!y[o]){var m=typeof require=="function"&&require;if(!a&&m)return m(o,!0);if(f)return f(o,!0);var v=new Error("Cannot find module '"+o+"'");throw v.code="MODULE_NOT_FOUND",v}var w=b[o]={exports:{}};y[o][0].call(w.exports,function(A){var E=y[o][1][A];return u(E||A)},w,w.exports,h,y,b,c)}return b[o].exports}for(var f=typeof require=="function"&&require,s=0;s<c.length;s++)u(c[s]);return u}({1:[function(h,y,b){function c(o,a){return Object.prototype.hasOwnProperty.call(o,a)}var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";b.assign=function(o){for(var a=Array.prototype.slice.call(arguments,1);a.length;){var m=a.shift();if(m){if(typeof m!="object")throw new TypeError(m+"must be non-object");for(var v in m)c(m,v)&&(o[v]=m[v])}}return o},b.shrinkBuf=function(o,a){return o.length===a?o:o.subarray?o.subarray(0,a):(o.length=a,o)};var f={arraySet:function(o,a,m,v,w){if(a.subarray&&o.subarray)o.set(a.subarray(m,m+v),w);else for(var A=0;A<v;A++)o[w+A]=a[m+A]},flattenChunks:function(o){var a,m,v,w,A,E;for(v=0,a=0,m=o.length;a<m;a++)v+=o[a].length;for(E=new Uint8Array(v),w=0,a=0,m=o.length;a<m;a++)A=o[a],E.set(A,w),w+=A.length;return E}},s={arraySet:function(o,a,m,v,w){for(var A=0;A<v;A++)o[w+A]=a[m+A]},flattenChunks:function(o){return[].concat.apply([],o)}};b.setTyped=function(o){o?(b.Buf8=Uint8Array,b.Buf16=Uint16Array,b.Buf32=Int32Array,b.assign(b,f)):(b.Buf8=Array,b.Buf16=Array,b.Buf32=Array,b.assign(b,s))},b.setTyped(u)},{}],2:[function(h,y,b){function c(m,v){if(v<65537&&(m.subarray&&s||!m.subarray&&f))return String.fromCharCode.apply(null,u.shrinkBuf(m,v));for(var w="",A=0;A<v;A++)w+=String.fromCharCode(m[A]);return w}var u=h("./common"),f=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var o=new u.Buf8(256),a=0;a<256;a++)o[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;o[254]=o[254]=1,b.string2buf=function(m){var v,w,A,E,O,T=m.length,M=0;for(E=0;E<T;E++)(64512&(w=m.charCodeAt(E)))==55296&&E+1<T&&(64512&(A=m.charCodeAt(E+1)))==56320&&(w=65536+(w-55296<<10)+(A-56320),E++),M+=w<128?1:w<2048?2:w<65536?3:4;for(v=new u.Buf8(M),O=0,E=0;O<M;E++)(64512&(w=m.charCodeAt(E)))==55296&&E+1<T&&(64512&(A=m.charCodeAt(E+1)))==56320&&(w=65536+(w-55296<<10)+(A-56320),E++),w<128?v[O++]=w:w<2048?(v[O++]=192|w>>>6,v[O++]=128|63&w):w<65536?(v[O++]=224|w>>>12,v[O++]=128|w>>>6&63,v[O++]=128|63&w):(v[O++]=240|w>>>18,v[O++]=128|w>>>12&63,v[O++]=128|w>>>6&63,v[O++]=128|63&w);return v},b.buf2binstring=function(m){return c(m,m.length)},b.binstring2buf=function(m){for(var v=new u.Buf8(m.length),w=0,A=v.length;w<A;w++)v[w]=m.charCodeAt(w);return v},b.buf2string=function(m,v){var w,A,E,O,T=v||m.length,M=new Array(2*T);for(A=0,w=0;w<T;)if((E=m[w++])<128)M[A++]=E;else if((O=o[E])>4)M[A++]=65533,w+=O-1;else{for(E&=O===2?31:O===3?15:7;O>1&&w<T;)E=E<<6|63&m[w++],O--;O>1?M[A++]=65533:E<65536?M[A++]=E:(E-=65536,M[A++]=55296|E>>10&1023,M[A++]=56320|1023&E)}return c(M,A)},b.utf8border=function(m,v){var w;for((v=v||m.length)>m.length&&(v=m.length),w=v-1;w>=0&&(192&m[w])==128;)w--;return w<0||w===0?v:w+o[m[w]]>v?w:v}},{"./common":1}],3:[function(h,y,b){y.exports=function(c,u,f,s){for(var o=65535&c|0,a=c>>>16&65535|0,m=0;f!==0;){f-=m=f>2e3?2e3:f;do a=a+(o=o+u[s++]|0)|0;while(--m);o%=65521,a%=65521}return o|a<<16|0}},{}],4:[function(h,y,b){var c=function(){for(var u,f=[],s=0;s<256;s++){u=s;for(var o=0;o<8;o++)u=1&u?3988292384^u>>>1:u>>>1;f[s]=u}return f}();y.exports=function(u,f,s,o){var a=c,m=o+s;u^=-1;for(var v=o;v<m;v++)u=u>>>8^a[255&(u^f[v])];return-1^u}},{}],5:[function(h,y,b){function c(R,he){return R.msg=$[he],he}function u(R){return(R<<1)-(R>4?9:0)}function f(R){for(var he=R.length;--he>=0;)R[he]=0}function s(R){var he=R.state,ve=he.pending;ve>R.avail_out&&(ve=R.avail_out),ve!==0&&(U.arraySet(R.output,he.pending_buf,he.pending_out,ve,R.next_out),R.next_out+=ve,he.pending_out+=ve,R.total_out+=ve,R.avail_out-=ve,he.pending-=ve,he.pending===0&&(he.pending_out=0))}function o(R,he){F._tr_flush_block(R,R.block_start>=0?R.block_start:-1,R.strstart-R.block_start,he),R.block_start=R.strstart,s(R.strm)}function a(R,he){R.pending_buf[R.pending++]=he}function m(R,he){R.pending_buf[R.pending++]=he>>>8&255,R.pending_buf[R.pending++]=255&he}function v(R,he,ve,K){var Ve=R.avail_in;return Ve>K&&(Ve=K),Ve===0?0:(R.avail_in-=Ve,U.arraySet(he,R.input,R.next_in,Ve,ve),R.state.wrap===1?R.adler=W(R.adler,he,Ve,ve):R.state.wrap===2&&(R.adler=J(R.adler,he,Ve,ve)),R.next_in+=Ve,R.total_in+=Ve,Ve)}function w(R,he){var ve,K,Ve=R.max_chain_length,tt=R.strstart,nt=R.prev_length,ot=R.nice_match,yn=R.strstart>R.w_size-vn?R.strstart-(R.w_size-vn):0,yt=R.window,Jr=R.w_mask,Ta=R.prev,ji=R.strstart+gn,qi=yt[tt+nt-1],Xr=yt[tt+nt];R.prev_length>=R.good_match&&(Ve>>=2),ot>R.lookahead&&(ot=R.lookahead);do if(ve=he,yt[ve+nt]===Xr&&yt[ve+nt-1]===qi&&yt[ve]===yt[tt]&&yt[++ve]===yt[tt+1]){tt+=2,ve++;do;while(yt[++tt]===yt[++ve]&&yt[++tt]===yt[++ve]&&yt[++tt]===yt[++ve]&&yt[++tt]===yt[++ve]&&yt[++tt]===yt[++ve]&&yt[++tt]===yt[++ve]&&yt[++tt]===yt[++ve]&&yt[++tt]===yt[++ve]&&tt<ji);if(K=gn-(ji-tt),tt=ji-gn,K>nt){if(R.match_start=he,nt=K,K>=ot)break;qi=yt[tt+nt-1],Xr=yt[tt+nt]}}while((he=Ta[he&Jr])>yn&&--Ve!=0);return nt<=R.lookahead?nt:R.lookahead}function A(R){var he,ve,K,Ve,tt,nt=R.w_size;do{if(Ve=R.window_size-R.lookahead-R.strstart,R.strstart>=nt+(nt-vn)){U.arraySet(R.window,R.window,nt,nt,0),R.match_start-=nt,R.strstart-=nt,R.block_start-=nt,he=ve=R.hash_size;do K=R.head[--he],R.head[he]=K>=nt?K-nt:0;while(--ve);he=ve=nt;do K=R.prev[--he],R.prev[he]=K>=nt?K-nt:0;while(--ve);Ve+=nt}if(R.strm.avail_in===0)break;if(ve=v(R.strm,R.window,R.strstart+R.lookahead,Ve),R.lookahead+=ve,R.lookahead+R.insert>=pt)for(tt=R.strstart-R.insert,R.ins_h=R.window[tt],R.ins_h=(R.ins_h<<R.hash_shift^R.window[tt+1])&R.hash_mask;R.insert&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[tt+pt-1])&R.hash_mask,R.prev[tt&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=tt,tt++,R.insert--,!(R.lookahead+R.insert<pt)););}while(R.lookahead<vn&&R.strm.avail_in!==0)}function E(R,he){for(var ve,K;;){if(R.lookahead<vn){if(A(R),R.lookahead<vn&&he===ne)return Ae;if(R.lookahead===0)break}if(ve=0,R.lookahead>=pt&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+pt-1])&R.hash_mask,ve=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart),ve!==0&&R.strstart-ve<=R.w_size-vn&&(R.match_length=w(R,ve)),R.match_length>=pt)if(K=F._tr_tally(R,R.strstart-R.match_start,R.match_length-pt),R.lookahead-=R.match_length,R.match_length<=R.max_lazy_match&&R.lookahead>=pt){R.match_length--;do R.strstart++,R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+pt-1])&R.hash_mask,ve=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart;while(--R.match_length!=0);R.strstart++}else R.strstart+=R.match_length,R.match_length=0,R.ins_h=R.window[R.strstart],R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+1])&R.hash_mask;else K=F._tr_tally(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++;if(K&&(o(R,!1),R.strm.avail_out===0))return Ae}return R.insert=R.strstart<pt-1?R.strstart:pt-1,he===ie?(o(R,!0),R.strm.avail_out===0?ze:ft):R.last_lit&&(o(R,!1),R.strm.avail_out===0)?Ae:Ue}function O(R,he){for(var ve,K,Ve;;){if(R.lookahead<vn){if(A(R),R.lookahead<vn&&he===ne)return Ae;if(R.lookahead===0)break}if(ve=0,R.lookahead>=pt&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+pt-1])&R.hash_mask,ve=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart),R.prev_length=R.match_length,R.prev_match=R.match_start,R.match_length=pt-1,ve!==0&&R.prev_length<R.max_lazy_match&&R.strstart-ve<=R.w_size-vn&&(R.match_length=w(R,ve),R.match_length<=5&&(R.strategy===Be||R.match_length===pt&&R.strstart-R.match_start>4096)&&(R.match_length=pt-1)),R.prev_length>=pt&&R.match_length<=R.prev_length){Ve=R.strstart+R.lookahead-pt,K=F._tr_tally(R,R.strstart-1-R.prev_match,R.prev_length-pt),R.lookahead-=R.prev_length-1,R.prev_length-=2;do++R.strstart<=Ve&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+pt-1])&R.hash_mask,ve=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart);while(--R.prev_length!=0);if(R.match_available=0,R.match_length=pt-1,R.strstart++,K&&(o(R,!1),R.strm.avail_out===0))return Ae}else if(R.match_available){if((K=F._tr_tally(R,0,R.window[R.strstart-1]))&&o(R,!1),R.strstart++,R.lookahead--,R.strm.avail_out===0)return Ae}else R.match_available=1,R.strstart++,R.lookahead--}return R.match_available&&(K=F._tr_tally(R,0,R.window[R.strstart-1]),R.match_available=0),R.insert=R.strstart<pt-1?R.strstart:pt-1,he===ie?(o(R,!0),R.strm.avail_out===0?ze:ft):R.last_lit&&(o(R,!1),R.strm.avail_out===0)?Ae:Ue}function T(R,he){for(var ve,K,Ve,tt,nt=R.window;;){if(R.lookahead<=gn){if(A(R),R.lookahead<=gn&&he===ne)return Ae;if(R.lookahead===0)break}if(R.match_length=0,R.lookahead>=pt&&R.strstart>0&&(Ve=R.strstart-1,(K=nt[Ve])===nt[++Ve]&&K===nt[++Ve]&&K===nt[++Ve])){tt=R.strstart+gn;do;while(K===nt[++Ve]&&K===nt[++Ve]&&K===nt[++Ve]&&K===nt[++Ve]&&K===nt[++Ve]&&K===nt[++Ve]&&K===nt[++Ve]&&K===nt[++Ve]&&Ve<tt);R.match_length=gn-(tt-Ve),R.match_length>R.lookahead&&(R.match_length=R.lookahead)}if(R.match_length>=pt?(ve=F._tr_tally(R,1,R.match_length-pt),R.lookahead-=R.match_length,R.strstart+=R.match_length,R.match_length=0):(ve=F._tr_tally(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++),ve&&(o(R,!1),R.strm.avail_out===0))return Ae}return R.insert=0,he===ie?(o(R,!0),R.strm.avail_out===0?ze:ft):R.last_lit&&(o(R,!1),R.strm.avail_out===0)?Ae:Ue}function M(R,he){for(var ve;;){if(R.lookahead===0&&(A(R),R.lookahead===0)){if(he===ne)return Ae;break}if(R.match_length=0,ve=F._tr_tally(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++,ve&&(o(R,!1),R.strm.avail_out===0))return Ae}return R.insert=0,he===ie?(o(R,!0),R.strm.avail_out===0?ze:ft):R.last_lit&&(o(R,!1),R.strm.avail_out===0)?Ae:Ue}function P(R,he,ve,K,Ve){this.good_length=R,this.max_lazy=he,this.nice_length=ve,this.max_chain=K,this.func=Ve}function x(R){R.window_size=2*R.w_size,f(R.head),R.max_lazy_match=L[R.level].max_lazy,R.good_match=L[R.level].good_length,R.nice_match=L[R.level].nice_length,R.max_chain_length=L[R.level].max_chain,R.strstart=0,R.block_start=0,R.lookahead=0,R.insert=0,R.match_length=R.prev_length=pt-1,R.match_available=0,R.ins_h=0}function I(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Mt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new U.Buf16(2*Sn),this.dyn_dtree=new U.Buf16(2*(2*Fn+1)),this.bl_tree=new U.Buf16(2*(2*Bn+1)),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new U.Buf16(_r+1),this.heap=new U.Buf16(2*bn+1),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new U.Buf16(2*bn+1),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function D(R){var he;return R&&R.state?(R.total_in=R.total_out=0,R.data_type=Le,he=R.state,he.pending=0,he.pending_out=0,he.wrap<0&&(he.wrap=-he.wrap),he.status=he.wrap?wr:we,R.adler=he.wrap===2?0:1,he.last_flush=ne,F._tr_init(he),_e):c(R,et)}function V(R){var he=D(R);return he===_e&&x(R.state),he}function j(R,he,ve,K,Ve,tt){if(!R)return et;var nt=1;if(he===Ie&&(he=6),K<0?(nt=0,K=-K):K>15&&(nt=2,K-=16),Ve<1||Ve>Ct||ve!==Mt||K<8||K>15||he<0||he>9||tt<0||tt>Xe)return c(R,et);K===8&&(K=9);var ot=new I;return R.state=ot,ot.strm=R,ot.wrap=nt,ot.gzhead=null,ot.w_bits=K,ot.w_size=1<<ot.w_bits,ot.w_mask=ot.w_size-1,ot.hash_bits=Ve+7,ot.hash_size=1<<ot.hash_bits,ot.hash_mask=ot.hash_size-1,ot.hash_shift=~~((ot.hash_bits+pt-1)/pt),ot.window=new U.Buf8(2*ot.w_size),ot.head=new U.Buf16(ot.hash_size),ot.prev=new U.Buf16(ot.w_size),ot.lit_bufsize=1<<Ve+6,ot.pending_buf_size=4*ot.lit_bufsize,ot.pending_buf=new U.Buf8(ot.pending_buf_size),ot.d_buf=1*ot.lit_bufsize,ot.l_buf=3*ot.lit_bufsize,ot.level=he,ot.strategy=tt,ot.method=ve,V(R)}var L,U=h("../utils/common"),F=h("./trees"),W=h("./adler32"),J=h("./crc32"),$=h("./messages"),ne=0,ae=1,te=3,ie=4,Se=5,_e=0,Ne=1,et=-2,Nt=-3,oe=-5,Ie=-1,Be=1,$e=2,ke=3,Xe=4,ge=0,Le=2,Mt=8,Ct=9,Ut=15,$t=8,bn=286,Fn=30,Bn=19,Sn=2*bn+1,_r=15,pt=3,gn=258,vn=gn+pt+1,Nr=32,wr=42,Yr=69,ir=73,Dn=91,H=103,we=113,Me=666,Ae=1,Ue=2,ze=3,ft=4,Pt=3;L=[new P(0,0,0,0,function(R,he){var ve=65535;for(ve>R.pending_buf_size-5&&(ve=R.pending_buf_size-5);;){if(R.lookahead<=1){if(A(R),R.lookahead===0&&he===ne)return Ae;if(R.lookahead===0)break}R.strstart+=R.lookahead,R.lookahead=0;var K=R.block_start+ve;if((R.strstart===0||R.strstart>=K)&&(R.lookahead=R.strstart-K,R.strstart=K,o(R,!1),R.strm.avail_out===0)||R.strstart-R.block_start>=R.w_size-vn&&(o(R,!1),R.strm.avail_out===0))return Ae}return R.insert=0,he===ie?(o(R,!0),R.strm.avail_out===0?ze:ft):(R.strstart>R.block_start&&(o(R,!1),R.strm.avail_out),Ae)}),new P(4,4,8,4,E),new P(4,5,16,8,E),new P(4,6,32,32,E),new P(4,4,16,16,O),new P(8,16,32,32,O),new P(8,16,128,128,O),new P(8,32,128,256,O),new P(32,128,258,1024,O),new P(32,258,258,4096,O)],b.deflateInit=function(R,he){return j(R,he,Mt,Ut,$t,ge)},b.deflateInit2=j,b.deflateReset=V,b.deflateResetKeep=D,b.deflateSetHeader=function(R,he){return R&&R.state?R.state.wrap!==2?et:(R.state.gzhead=he,_e):et},b.deflate=function(R,he){var ve,K,Ve,tt;if(!R||!R.state||he>Se||he<0)return R?c(R,et):et;if(K=R.state,!R.output||!R.input&&R.avail_in!==0||K.status===Me&&he!==ie)return c(R,R.avail_out===0?oe:et);if(K.strm=R,ve=K.last_flush,K.last_flush=he,K.status===wr)if(K.wrap===2)R.adler=0,a(K,31),a(K,139),a(K,8),K.gzhead?(a(K,(K.gzhead.text?1:0)+(K.gzhead.hcrc?2:0)+(K.gzhead.extra?4:0)+(K.gzhead.name?8:0)+(K.gzhead.comment?16:0)),a(K,255&K.gzhead.time),a(K,K.gzhead.time>>8&255),a(K,K.gzhead.time>>16&255),a(K,K.gzhead.time>>24&255),a(K,K.level===9?2:K.strategy>=$e||K.level<2?4:0),a(K,255&K.gzhead.os),K.gzhead.extra&&K.gzhead.extra.length&&(a(K,255&K.gzhead.extra.length),a(K,K.gzhead.extra.length>>8&255)),K.gzhead.hcrc&&(R.adler=J(R.adler,K.pending_buf,K.pending,0)),K.gzindex=0,K.status=Yr):(a(K,0),a(K,0),a(K,0),a(K,0),a(K,0),a(K,K.level===9?2:K.strategy>=$e||K.level<2?4:0),a(K,Pt),K.status=we);else{var nt=Mt+(K.w_bits-8<<4)<<8;nt|=(K.strategy>=$e||K.level<2?0:K.level<6?1:K.level===6?2:3)<<6,K.strstart!==0&&(nt|=Nr),nt+=31-nt%31,K.status=we,m(K,nt),K.strstart!==0&&(m(K,R.adler>>>16),m(K,65535&R.adler)),R.adler=1}if(K.status===Yr)if(K.gzhead.extra){for(Ve=K.pending;K.gzindex<(65535&K.gzhead.extra.length)&&(K.pending!==K.pending_buf_size||(K.gzhead.hcrc&&K.pending>Ve&&(R.adler=J(R.adler,K.pending_buf,K.pending-Ve,Ve)),s(R),Ve=K.pending,K.pending!==K.pending_buf_size));)a(K,255&K.gzhead.extra[K.gzindex]),K.gzindex++;K.gzhead.hcrc&&K.pending>Ve&&(R.adler=J(R.adler,K.pending_buf,K.pending-Ve,Ve)),K.gzindex===K.gzhead.extra.length&&(K.gzindex=0,K.status=ir)}else K.status=ir;if(K.status===ir)if(K.gzhead.name){Ve=K.pending;do{if(K.pending===K.pending_buf_size&&(K.gzhead.hcrc&&K.pending>Ve&&(R.adler=J(R.adler,K.pending_buf,K.pending-Ve,Ve)),s(R),Ve=K.pending,K.pending===K.pending_buf_size)){tt=1;break}tt=K.gzindex<K.gzhead.name.length?255&K.gzhead.name.charCodeAt(K.gzindex++):0,a(K,tt)}while(tt!==0);K.gzhead.hcrc&&K.pending>Ve&&(R.adler=J(R.adler,K.pending_buf,K.pending-Ve,Ve)),tt===0&&(K.gzindex=0,K.status=Dn)}else K.status=Dn;if(K.status===Dn)if(K.gzhead.comment){Ve=K.pending;do{if(K.pending===K.pending_buf_size&&(K.gzhead.hcrc&&K.pending>Ve&&(R.adler=J(R.adler,K.pending_buf,K.pending-Ve,Ve)),s(R),Ve=K.pending,K.pending===K.pending_buf_size)){tt=1;break}tt=K.gzindex<K.gzhead.comment.length?255&K.gzhead.comment.charCodeAt(K.gzindex++):0,a(K,tt)}while(tt!==0);K.gzhead.hcrc&&K.pending>Ve&&(R.adler=J(R.adler,K.pending_buf,K.pending-Ve,Ve)),tt===0&&(K.status=H)}else K.status=H;if(K.status===H&&(K.gzhead.hcrc?(K.pending+2>K.pending_buf_size&&s(R),K.pending+2<=K.pending_buf_size&&(a(K,255&R.adler),a(K,R.adler>>8&255),R.adler=0,K.status=we)):K.status=we),K.pending!==0){if(s(R),R.avail_out===0)return K.last_flush=-1,_e}else if(R.avail_in===0&&u(he)<=u(ve)&&he!==ie)return c(R,oe);if(K.status===Me&&R.avail_in!==0)return c(R,oe);if(R.avail_in!==0||K.lookahead!==0||he!==ne&&K.status!==Me){var ot=K.strategy===$e?M(K,he):K.strategy===ke?T(K,he):L[K.level].func(K,he);if(ot!==ze&&ot!==ft||(K.status=Me),ot===Ae||ot===ze)return R.avail_out===0&&(K.last_flush=-1),_e;if(ot===Ue&&(he===ae?F._tr_align(K):he!==Se&&(F._tr_stored_block(K,0,0,!1),he===te&&(f(K.head),K.lookahead===0&&(K.strstart=0,K.block_start=0,K.insert=0))),s(R),R.avail_out===0))return K.last_flush=-1,_e}return he!==ie?_e:K.wrap<=0?Ne:(K.wrap===2?(a(K,255&R.adler),a(K,R.adler>>8&255),a(K,R.adler>>16&255),a(K,R.adler>>24&255),a(K,255&R.total_in),a(K,R.total_in>>8&255),a(K,R.total_in>>16&255),a(K,R.total_in>>24&255)):(m(K,R.adler>>>16),m(K,65535&R.adler)),s(R),K.wrap>0&&(K.wrap=-K.wrap),K.pending!==0?_e:Ne)},b.deflateEnd=function(R){var he;return R&&R.state?(he=R.state.status)!==wr&&he!==Yr&&he!==ir&&he!==Dn&&he!==H&&he!==we&&he!==Me?c(R,et):(R.state=null,he===we?c(R,Nt):_e):et},b.deflateSetDictionary=function(R,he){var ve,K,Ve,tt,nt,ot,yn,yt,Jr=he.length;if(!R||!R.state||(ve=R.state,(tt=ve.wrap)===2||tt===1&&ve.status!==wr||ve.lookahead))return et;for(tt===1&&(R.adler=W(R.adler,he,Jr,0)),ve.wrap=0,Jr>=ve.w_size&&(tt===0&&(f(ve.head),ve.strstart=0,ve.block_start=0,ve.insert=0),yt=new U.Buf8(ve.w_size),U.arraySet(yt,he,Jr-ve.w_size,ve.w_size,0),he=yt,Jr=ve.w_size),nt=R.avail_in,ot=R.next_in,yn=R.input,R.avail_in=Jr,R.next_in=0,R.input=he,A(ve);ve.lookahead>=pt;){K=ve.strstart,Ve=ve.lookahead-(pt-1);do ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[K+pt-1])&ve.hash_mask,ve.prev[K&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=K,K++;while(--Ve);ve.strstart=K,ve.lookahead=pt-1,A(ve)}return ve.strstart+=ve.lookahead,ve.block_start=ve.strstart,ve.insert=ve.lookahead,ve.lookahead=0,ve.match_length=ve.prev_length=pt-1,ve.match_available=0,R.next_in=ot,R.input=yn,R.avail_in=nt,ve.wrap=tt,_e},b.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(h,y,b){y.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],7:[function(h,y,b){function c(H){for(var we=H.length;--we>=0;)H[we]=0}function u(H,we,Me,Ae,Ue){this.static_tree=H,this.extra_bits=we,this.extra_base=Me,this.elems=Ae,this.max_length=Ue,this.has_stree=H&&H.length}function f(H,we){this.dyn_tree=H,this.max_code=0,this.stat_desc=we}function s(H){return H<256?pt[H]:pt[256+(H>>>7)]}function o(H,we){H.pending_buf[H.pending++]=255&we,H.pending_buf[H.pending++]=we>>>8&255}function a(H,we,Me){H.bi_valid>Xe-Me?(H.bi_buf|=we<<H.bi_valid&65535,o(H,H.bi_buf),H.bi_buf=we>>Xe-H.bi_valid,H.bi_valid+=Me-Xe):(H.bi_buf|=we<<H.bi_valid&65535,H.bi_valid+=Me)}function m(H,we,Me){a(H,Me[2*we],Me[2*we+1])}function v(H,we){var Me=0;do Me|=1&H,H>>>=1,Me<<=1;while(--we>0);return Me>>>1}function w(H){H.bi_valid===16?(o(H,H.bi_buf),H.bi_buf=0,H.bi_valid=0):H.bi_valid>=8&&(H.pending_buf[H.pending++]=255&H.bi_buf,H.bi_buf>>=8,H.bi_valid-=8)}function A(H,we){var Me,Ae,Ue,ze,ft,Pt,R=we.dyn_tree,he=we.max_code,ve=we.stat_desc.static_tree,K=we.stat_desc.has_stree,Ve=we.stat_desc.extra_bits,tt=we.stat_desc.extra_base,nt=we.stat_desc.max_length,ot=0;for(ze=0;ze<=ke;ze++)H.bl_count[ze]=0;for(R[2*H.heap[H.heap_max]+1]=0,Me=H.heap_max+1;Me<$e;Me++)(ze=R[2*R[2*(Ae=H.heap[Me])+1]+1]+1)>nt&&(ze=nt,ot++),R[2*Ae+1]=ze,Ae>he||(H.bl_count[ze]++,ft=0,Ae>=tt&&(ft=Ve[Ae-tt]),Pt=R[2*Ae],H.opt_len+=Pt*(ze+ft),K&&(H.static_len+=Pt*(ve[2*Ae+1]+ft)));if(ot!==0){do{for(ze=nt-1;H.bl_count[ze]===0;)ze--;H.bl_count[ze]--,H.bl_count[ze+1]+=2,H.bl_count[nt]--,ot-=2}while(ot>0);for(ze=nt;ze!==0;ze--)for(Ae=H.bl_count[ze];Ae!==0;)(Ue=H.heap[--Me])>he||(R[2*Ue+1]!==ze&&(H.opt_len+=(ze-R[2*Ue+1])*R[2*Ue],R[2*Ue+1]=ze),Ae--)}}function E(H,we,Me){var Ae,Ue,ze=new Array(ke+1),ft=0;for(Ae=1;Ae<=ke;Ae++)ze[Ae]=ft=ft+Me[Ae-1]<<1;for(Ue=0;Ue<=we;Ue++){var Pt=H[2*Ue+1];Pt!==0&&(H[2*Ue]=v(ze[Pt]++,Pt))}}function O(){var H,we,Me,Ae,Ue,ze=new Array(ke+1);for(Me=0,Ae=0;Ae<et-1;Ae++)for(vn[Ae]=Me,H=0;H<1<<$t[Ae];H++)gn[Me++]=Ae;for(gn[Me-1]=Ae,Ue=0,Ae=0;Ae<16;Ae++)for(Nr[Ae]=Ue,H=0;H<1<<bn[Ae];H++)pt[Ue++]=Ae;for(Ue>>=7;Ae<Ie;Ae++)for(Nr[Ae]=Ue<<7,H=0;H<1<<bn[Ae]-7;H++)pt[256+Ue++]=Ae;for(we=0;we<=ke;we++)ze[we]=0;for(H=0;H<=143;)Sn[2*H+1]=8,H++,ze[8]++;for(;H<=255;)Sn[2*H+1]=9,H++,ze[9]++;for(;H<=279;)Sn[2*H+1]=7,H++,ze[7]++;for(;H<=287;)Sn[2*H+1]=8,H++,ze[8]++;for(E(Sn,oe+1,ze),H=0;H<Ie;H++)_r[2*H+1]=5,_r[2*H]=v(H,5);wr=new u(Sn,$t,Nt+1,oe,ke),Yr=new u(_r,bn,0,Ie,ke),ir=new u(new Array(0),Fn,0,Be,ge)}function T(H){var we;for(we=0;we<oe;we++)H.dyn_ltree[2*we]=0;for(we=0;we<Ie;we++)H.dyn_dtree[2*we]=0;for(we=0;we<Be;we++)H.bl_tree[2*we]=0;H.dyn_ltree[2*Le]=1,H.opt_len=H.static_len=0,H.last_lit=H.matches=0}function M(H){H.bi_valid>8?o(H,H.bi_buf):H.bi_valid>0&&(H.pending_buf[H.pending++]=H.bi_buf),H.bi_buf=0,H.bi_valid=0}function P(H,we,Me,Ae){M(H),o(H,Me),o(H,~Me),$.arraySet(H.pending_buf,H.window,we,Me,H.pending),H.pending+=Me}function x(H,we,Me,Ae){var Ue=2*we,ze=2*Me;return H[Ue]<H[ze]||H[Ue]===H[ze]&&Ae[we]<=Ae[Me]}function I(H,we,Me){for(var Ae=H.heap[Me],Ue=Me<<1;Ue<=H.heap_len&&(Ue<H.heap_len&&x(we,H.heap[Ue+1],H.heap[Ue],H.depth)&&Ue++,!x(we,Ae,H.heap[Ue],H.depth));)H.heap[Me]=H.heap[Ue],Me=Ue,Ue<<=1;H.heap[Me]=Ae}function D(H,we,Me){var Ae,Ue,ze,ft,Pt=0;if(H.last_lit!==0)do Ae=H.pending_buf[H.d_buf+2*Pt]<<8|H.pending_buf[H.d_buf+2*Pt+1],Ue=H.pending_buf[H.l_buf+Pt],Pt++,Ae===0?m(H,Ue,we):(m(H,(ze=gn[Ue])+Nt+1,we),(ft=$t[ze])!==0&&a(H,Ue-=vn[ze],ft),m(H,ze=s(--Ae),Me),(ft=bn[ze])!==0&&a(H,Ae-=Nr[ze],ft));while(Pt<H.last_lit);m(H,Le,we)}function V(H,we){var Me,Ae,Ue,ze=we.dyn_tree,ft=we.stat_desc.static_tree,Pt=we.stat_desc.has_stree,R=we.stat_desc.elems,he=-1;for(H.heap_len=0,H.heap_max=$e,Me=0;Me<R;Me++)ze[2*Me]!==0?(H.heap[++H.heap_len]=he=Me,H.depth[Me]=0):ze[2*Me+1]=0;for(;H.heap_len<2;)ze[2*(Ue=H.heap[++H.heap_len]=he<2?++he:0)]=1,H.depth[Ue]=0,H.opt_len--,Pt&&(H.static_len-=ft[2*Ue+1]);for(we.max_code=he,Me=H.heap_len>>1;Me>=1;Me--)I(H,ze,Me);Ue=R;do Me=H.heap[1],H.heap[1]=H.heap[H.heap_len--],I(H,ze,1),Ae=H.heap[1],H.heap[--H.heap_max]=Me,H.heap[--H.heap_max]=Ae,ze[2*Ue]=ze[2*Me]+ze[2*Ae],H.depth[Ue]=(H.depth[Me]>=H.depth[Ae]?H.depth[Me]:H.depth[Ae])+1,ze[2*Me+1]=ze[2*Ae+1]=Ue,H.heap[1]=Ue++,I(H,ze,1);while(H.heap_len>=2);H.heap[--H.heap_max]=H.heap[1],A(H,we),E(ze,he,H.bl_count)}function j(H,we,Me){var Ae,Ue,ze=-1,ft=we[1],Pt=0,R=7,he=4;for(ft===0&&(R=138,he=3),we[2*(Me+1)+1]=65535,Ae=0;Ae<=Me;Ae++)Ue=ft,ft=we[2*(Ae+1)+1],++Pt<R&&Ue===ft||(Pt<he?H.bl_tree[2*Ue]+=Pt:Ue!==0?(Ue!==ze&&H.bl_tree[2*Ue]++,H.bl_tree[2*Mt]++):Pt<=10?H.bl_tree[2*Ct]++:H.bl_tree[2*Ut]++,Pt=0,ze=Ue,ft===0?(R=138,he=3):Ue===ft?(R=6,he=3):(R=7,he=4))}function L(H,we,Me){var Ae,Ue,ze=-1,ft=we[1],Pt=0,R=7,he=4;for(ft===0&&(R=138,he=3),Ae=0;Ae<=Me;Ae++)if(Ue=ft,ft=we[2*(Ae+1)+1],!(++Pt<R&&Ue===ft)){if(Pt<he)do m(H,Ue,H.bl_tree);while(--Pt!=0);else Ue!==0?(Ue!==ze&&(m(H,Ue,H.bl_tree),Pt--),m(H,Mt,H.bl_tree),a(H,Pt-3,2)):Pt<=10?(m(H,Ct,H.bl_tree),a(H,Pt-3,3)):(m(H,Ut,H.bl_tree),a(H,Pt-11,7));Pt=0,ze=Ue,ft===0?(R=138,he=3):Ue===ft?(R=6,he=3):(R=7,he=4)}}function U(H){var we;for(j(H,H.dyn_ltree,H.l_desc.max_code),j(H,H.dyn_dtree,H.d_desc.max_code),V(H,H.bl_desc),we=Be-1;we>=3&&H.bl_tree[2*Bn[we]+1]===0;we--);return H.opt_len+=3*(we+1)+5+5+4,we}function F(H,we,Me,Ae){var Ue;for(a(H,we-257,5),a(H,Me-1,5),a(H,Ae-4,4),Ue=0;Ue<Ae;Ue++)a(H,H.bl_tree[2*Bn[Ue]+1],3);L(H,H.dyn_ltree,we-1),L(H,H.dyn_dtree,Me-1)}function W(H){var we,Me=4093624447;for(we=0;we<=31;we++,Me>>>=1)if(1&Me&&H.dyn_ltree[2*we]!==0)return ae;if(H.dyn_ltree[18]!==0||H.dyn_ltree[20]!==0||H.dyn_ltree[26]!==0)return te;for(we=32;we<Nt;we++)if(H.dyn_ltree[2*we]!==0)return te;return ae}function J(H,we,Me,Ae){a(H,(Se<<1)+(Ae?1:0),3),P(H,we,Me)}var $=h("../utils/common"),ne=4,ae=0,te=1,ie=2,Se=0,_e=1,Ne=2,et=29,Nt=256,oe=Nt+1+et,Ie=30,Be=19,$e=2*oe+1,ke=15,Xe=16,ge=7,Le=256,Mt=16,Ct=17,Ut=18,$t=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],bn=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Fn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Bn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Sn=new Array(2*(oe+2));c(Sn);var _r=new Array(2*Ie);c(_r);var pt=new Array(512);c(pt);var gn=new Array(256);c(gn);var vn=new Array(et);c(vn);var Nr=new Array(Ie);c(Nr);var wr,Yr,ir,Dn=!1;b._tr_init=function(H){Dn||(O(),Dn=!0),H.l_desc=new f(H.dyn_ltree,wr),H.d_desc=new f(H.dyn_dtree,Yr),H.bl_desc=new f(H.bl_tree,ir),H.bi_buf=0,H.bi_valid=0,T(H)},b._tr_stored_block=J,b._tr_flush_block=function(H,we,Me,Ae){var Ue,ze,ft=0;H.level>0?(H.strm.data_type===ie&&(H.strm.data_type=W(H)),V(H,H.l_desc),V(H,H.d_desc),ft=U(H),Ue=H.opt_len+3+7>>>3,(ze=H.static_len+3+7>>>3)<=Ue&&(Ue=ze)):Ue=ze=Me+5,Me+4<=Ue&&we!==-1?J(H,we,Me,Ae):H.strategy===ne||ze===Ue?(a(H,(_e<<1)+(Ae?1:0),3),D(H,Sn,_r)):(a(H,(Ne<<1)+(Ae?1:0),3),F(H,H.l_desc.max_code+1,H.d_desc.max_code+1,ft+1),D(H,H.dyn_ltree,H.dyn_dtree)),T(H),Ae&&M(H)},b._tr_tally=function(H,we,Me){return H.pending_buf[H.d_buf+2*H.last_lit]=we>>>8&255,H.pending_buf[H.d_buf+2*H.last_lit+1]=255&we,H.pending_buf[H.l_buf+H.last_lit]=255&Me,H.last_lit++,we===0?H.dyn_ltree[2*Me]++:(H.matches++,we--,H.dyn_ltree[2*(gn[Me]+Nt+1)]++,H.dyn_dtree[2*s(we)]++),H.last_lit===H.lit_bufsize-1},b._tr_align=function(H){a(H,_e<<1,3),m(H,Le,Sn),w(H)}},{"../utils/common":1}],8:[function(h,y,b){y.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(h,y,b){function c(T){if(!(this instanceof c))return new c(T);this.options=s.assign({level:A,method:O,chunkSize:16384,windowBits:15,memLevel:8,strategy:E,to:""},T||{});var M=this.options;M.raw&&M.windowBits>0?M.windowBits=-M.windowBits:M.gzip&&M.windowBits>0&&M.windowBits<16&&(M.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var P=f.deflateInit2(this.strm,M.level,M.method,M.windowBits,M.memLevel,M.strategy);if(P!==w)throw new Error(a[P]);if(M.header&&f.deflateSetHeader(this.strm,M.header),M.dictionary){var x;if(x=typeof M.dictionary=="string"?o.string2buf(M.dictionary):v.call(M.dictionary)==="[object ArrayBuffer]"?new Uint8Array(M.dictionary):M.dictionary,(P=f.deflateSetDictionary(this.strm,x))!==w)throw new Error(a[P]);this._dict_set=!0}}function u(T,M){var P=new c(M);if(P.push(T,!0),P.err)throw P.msg||a[P.err];return P.result}var f=h("./zlib/deflate"),s=h("./utils/common"),o=h("./utils/strings"),a=h("./zlib/messages"),m=h("./zlib/zstream"),v=Object.prototype.toString,w=0,A=-1,E=0,O=8;c.prototype.push=function(T,M){var P,x,I=this.strm,D=this.options.chunkSize;if(this.ended)return!1;x=M===~~M?M:M===!0?4:0,typeof T=="string"?I.input=o.string2buf(T):v.call(T)==="[object ArrayBuffer]"?I.input=new Uint8Array(T):I.input=T,I.next_in=0,I.avail_in=I.input.length;do{if(I.avail_out===0&&(I.output=new s.Buf8(D),I.next_out=0,I.avail_out=D),(P=f.deflate(I,x))!==1&&P!==w)return this.onEnd(P),this.ended=!0,!1;I.avail_out!==0&&(I.avail_in!==0||x!==4&&x!==2)||(this.options.to==="string"?this.onData(o.buf2binstring(s.shrinkBuf(I.output,I.next_out))):this.onData(s.shrinkBuf(I.output,I.next_out)))}while((I.avail_in>0||I.avail_out===0)&&P!==1);return x===4?(P=f.deflateEnd(this.strm),this.onEnd(P),this.ended=!0,P===w):x!==2||(this.onEnd(w),I.avail_out=0,!0)},c.prototype.onData=function(T){this.chunks.push(T)},c.prototype.onEnd=function(T){T===w&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=T,this.msg=this.strm.msg},b.Deflate=c,b.deflate=u,b.deflateRaw=function(T,M){return M=M||{},M.raw=!0,u(T,M)},b.gzip=function(T,M){return M=M||{},M.gzip=!0,u(T,M)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")});var ee;(function(h){(function(y){class b{constructor(){this._isIphoneOrIPad=!1,(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i))&&(this._isIphoneOrIPad=!0),this.initUAParser()}get userAgentData(){return this._userAgentData}get deviceType(){return this._deviceType||(y.Util.isMobile?this._deviceType=this.mobileType||this.desktopType||b.UNKNOWN_DEVICE_TYPE:this._deviceType=this.desktopType||this.mobileType||b.UNKNOWN_DEVICE_TYPE),this._deviceType}get isIphoneOrIPad(){return this._isIphoneOrIPad}get browserName(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.name?this._userAgentData.browser.name.trim():""}get browserVersion(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.version?this._userAgentData.browser.version.trim():""}get browserMajor(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.major?this._userAgentData.browser.major.trim():""}get browserType(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.type?this._userAgentData.browser.type.trim():""}get osName(){return this._userAgentData&&this._userAgentData.os&&this._userAgentData.os.name?this._userAgentData.os.name.trim():""}get osVersion(){return this._userAgentData&&this._userAgentData.os&&this._userAgentData.os.version?this._userAgentData.os.version.trim():""}get deviceCategory(){return this._userAgentData&&this._userAgentData.device&&this._userAgentData.device.type?this._userAgentData.device.type.trim():""}get engineName(){return this._userAgentData&&this._userAgentData.engine&&this._userAgentData.engine.name?this._userAgentData.engine.name.trim():""}get engineVersion(){return this._userAgentData&&this._userAgentData.engine&&this._userAgentData.engine.version?this._userAgentData.engine.version.trim():""}get cpuArchitecture(){return this._userAgentData&&this._userAgentData.cpu&&this._userAgentData.cpu.architecture?this._userAgentData.cpu.architecture.trim():""}get deviceModel(){return this._userAgentData&&this._userAgentData.device&&this._userAgentData.device.model?this._userAgentData.device.model.trim():""}get deviceVendor(){return this._userAgentData&&this._userAgentData.device&&this._userAgentData.device.vendor?this._userAgentData.device.vendor.trim():""}get desktopType(){let u=this.browserName;this.browserVersion&&(u=u+`(${this.browserVersion})`);let f=this.osName;this.osVersion&&(f=f+`(${this.osVersion})`);const s=u&&f?`${u}-${f}`:u||f;return s?s.trim():""}get mobileType(){const u=this.deviceModel,f=this.deviceVendor,s=u&&f?`${u} ${f}`:u||f;return s?s.trim():""}initUAParser(){try{const u=new h.UAParser;u.setUA(navigator.userAgent),this._userAgentData=u.getResult()}catch(u){y.Logger.warn("UAParser failure",u)}}}b.UNKNOWN_DEVICE_TYPE="unknown",y.BrowserInfo=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{static get CLIENT_VERSION(){return"5.6.9w"}static get SALT(){return"ST8irbd3bB"}static get TAB_UUID_KEY(){return"pos_tid"}static get OPS_KEY(){return"pos_ops"}static get DEVICE_ID_KEY(){return"SecuredTouchDeviceId"}static get DEVICE_ID_CREATED_AT(){return"pos_dca"}static get LAST_DEVICE_KEY_RESYNC(){return"DeviceRefreshDate"}static get CAPTURED_KEYBOARD_INTERACTIONS(){return"pos_cki"}static get CAPTURED_MOUSE_INTERACTIONS(){return"pos_cmi"}static get CAPTURED_GESTURES(){return"pos_cg"}static get CAPTURED_INDIRECT(){return"pos_cie"}static get CAPTURED_TAGS(){return"pos_ct"}static get CAPTURED_MOUSE_INTERACTIONS_SUMMARY(){return"pos_mdp"}static get KEYBOARD_INTERACTIONS_COUNT(){return"pos_kic"}static get MOUSE_INTERACTIONS_COUNT(){return"pos_mic"}static get GESTURES_COUNT(){return"pos_gc"}static get EVENT_COUNTERS(){return"pos_ec"}static get PINGID_AGENT_DEFAULT_PORT(){return 9400}static get PINGID_AGENT_DEFAULT_TIMEOUT(){return 1e3}static get MOUSE_EVENT_COUNTERS(){return"pos_mec"}static get KEYBOARD_EVENT_COUNTERS(){return"pos_kec"}static get TOUCH_EVENT_COUNTERS(){return"pos_tec"}static get INDIRECT_EVENT_COUNTERS(){return"pos_iec"}static get GeoDataKey(){return"pos_geo"}}y.Constants=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{constructor(u="ECDSA",f=["sign","verify"],s="SHA-256"){if(this.signingKeyType=u,this.keyUsage=f,this.algorithm=s,this._crypto=window.crypto||window.msCrypto,!this._crypto||!this._crypto.subtle)throw new Error("Cryptography API not supported in this browser")}hexDecode(u){let f="";for(let s=0;s<u.length;s+=2)f+=String.fromCharCode(parseInt(u.substr(s,2),16));return f}async generateKeys(){return this._crypto.subtle.generateKey({name:this.signingKeyType,namedCurve:"P-256"},!1,this.keyUsage)}async exportPublicKey(u){const f=await this._crypto.subtle.exportKey("spki",u.publicKey),s=y.Util.ab2str(f),o=btoa(s),a=this.hexDecode("2d2d2d2d2d424547494e205055424c4943204b45592d2d2d2d2d0a"),m=this.hexDecode("0a2d2d2d2d2d454e44205055424c4943204b45592d2d2d2d2d"),v=`${a}${o}${m}`;return y.Logger.debug("Exported base64 pub key: ",v),v}async exportPublicKeyJwk(u){return await window.crypto.subtle.exportKey("jwk",u.publicKey)}async exportPrivateKey(u){const f=await this._crypto.subtle.exportKey("pkcs8",u.privateKey),s=y.Util.ab2str(f),o=btoa(s),a=this.hexDecode("2d2d2d2d2d424547494e2050524956415445204b45592d2d2d2d2d0a"),m=this.hexDecode("0a2d2d2d2d2d454e442050524956415445204b45592d2d2d2d2d"),v=`${a}${o}${m}`;return y.Logger.debug("Exported base64 pem:",v),v}async signJWT(u,f,s=0,o,a){const m={alg:"ES256",typ:"JWT",jwk:await this.exportPublicKeyJwk(f),kid:a},v={deviceAttributesSerialized:u,iat:Math.floor(o/1e3)};if(!f.privateKey)throw new Error("Require key");if(m.alg!=="ES256"&&m.typ!=="JWT")throw new Error("jwt-encode only support the ES256 algorithm and the JWT type of hash");const w=y.Util.encode(m),A=y.Util.encode(v),E=`${w}.${A}`,O=y.Util.string2buf(E),T=await this._crypto.subtle.sign({name:this.signingKeyType,hash:this.algorithm},f.privateKey,O),M=y.Util.base64url(btoa(y.Util.ab2str(T)));return y.Logger.debug("Signed JWT: ",`${E}.${M}`),`${E}.${M}`}async verifyJwtToken(u,f){const[s,o,a]=u.split("."),m=y.Util.parseJwt(s);if(m.alg!=="ES256"&&m.typ!=="JWT")throw new Error("JWT header supports only ES256 algorithm and the JWT type of hash");y.Util.parseJwt(o);const v=Uint8Array.from(atob(a.replace(/-/g,"+").replace(/_/g,"/")),A=>A.charCodeAt(0)),w=y.Util.string2buf(`${s}.${o}`);return await this._crypto.subtle.verify({name:this.signingKeyType,hash:this.algorithm},f,v,w)}}y.CryptoOperator=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{static get isLogEnabled(){return this._isLogEnabled||window["enable-logs-pingOneSignals"]}static set isLogEnabled(u){this._isLogEnabled=u}static debug(u,...f){u=`${b.TAG} ${u}`,b.isLogEnabled&&(f&&f.length>0?console.debug?console.debug(u,f):console.log(u,f):console.debug?console.debug(u):console.log(u))}static error(u,...f){u=`${b.TAG} ${u}`,b.isLogEnabled&&(f&&f.length>0?console.error(u,f):console.error(u))}static warn(u,...f){u=`${b.TAG} ${u}`,b.isLogEnabled&&(f&&f.length>0?console.warn(u,f):console.warn(u))}static info(u,...f){u=`${b.TAG} ${u}`,b.isLogEnabled&&(f&&f.length>0?console.info(u,f):console.info(u))}}b.TAG="[SignalsSDK]",y.Logger=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{static get INITIALIZATION_ERROR(){return"INITIALIZATION_ERROR"}static get UNEXPECTED_ERROR(){return"UNEXPECTED_ERROR"}}y.POErrorCodes=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));const e={115:"115",2345:"2345",360:"360",ALIPAY:"Alipay",AMAYA:"Amaya",ANDROID:"Android Browser",ARORA:"Arora",AVANT:"Avant",AVAST:"Avast Secure Browser",AVG:"AVG Secure Browser",BAIDU:"Baidu Browser",BASILISK:"Basilisk",BLAZER:"Blazer",BOLT:"Bolt",BOWSER:"Bowser",BRAVE:"Brave",CAMINO:"Camino",CHIMERA:"Chimera",CHROME:"Chrome",CHROME_HEADLESS:"Chrome Headless",CHROME_MOBILE:"Mobile Chrome",CHROME_WEBVIEW:"Chrome WebView",CHROMIUM:"Chromium",COBALT:"Cobalt",COC_COC:"Coc Coc",CONKEROR:"Conkeror",DAUM:"Daum",DILLO:"Dillo",DOLPHIN:"Dolphin",DORIS:"Doris",DRAGON:"Dragon",DUCKDUCKGO:"DuckDuckGo",EDGE:"Edge",EPIPHANY:"Epiphany",FACEBOOK:"Facebook",FALKON:"Falkon",FIREBIRD:"Firebird",FIREFOX:"Firefox",FIREFOX_FOCUS:"Firefox Focus",FIREFOX_MOBILE:"Mobile Firefox",FIREFOX_REALITY:"Firefox Reality",FENNEC:"Fennec",FLOCK:"Flock",FLOW:"Flow",GO:"GoBrowser",GOOGLE_SEARCH:"GSA",HELIO:"Helio",HEYTAP:"HeyTap",HONOR:"Honor",HUAWEI:"Huawei Browser",ICAB:"iCab",ICE:"ICE Browser",ICEAPE:"IceApe",ICECAT:"IceCat",ICEDRAGON:"IceDragon",ICEWEASEL:"IceWeasel",IE:"IE",INSTAGRAM:"Instagram",IRIDIUM:"Iridium",IRON:"Iron",JASMINE:"Jasmine",KONQUEROR:"Konqueror",KAKAO:"KakaoTalk",KHTML:"KHTML",K_MELEON:"K-Meleon",KLAR:"Klar",KLARNA:"Klarna",KINDLE:"Kindle",LENOVO:"Smart Lenovo Browser",LADYBIRD:"Ladybird",LIBREWOLF:"LibreWolf",LIEBAO:"LBBROWSER",LINE:"Line",LINKEDIN:"LinkedIn",LINKS:"Links",LUNASCAPE:"Lunascape",LYNX:"Lynx",MAEMO:"Maemo Browser",MAXTHON:"Maxthon",MIDORI:"Midori",MINIMO:"Minimo",MIUI:"MIUI Browser",MOZILLA:"Mozilla",MOSAIC:"Mosaic",NAVER:"Naver",NETFRONT:"NetFront",NETSCAPE:"Netscape",NETSURF:"Netsurf",NOKIA:"Nokia Browser",OBIGO:"Obigo",OCULUS:"Oculus Browser",OMNIWEB:"OmniWeb",OPERA:"Opera",OPERA_COAST:"Opera Coast",OPERA_GX:"Opera GX",OPERA_MINI:"Opera Mini",OPERA_MOBI:"Opera Mobi",OPERA_TABLET:"Opera Tablet",OPERA_TOUCH:"Opera Touch",OVI:"OviBrowser",PALEMOON:"PaleMoon",PHANTOMJS:"PhantomJS",PHOENIX:"Phoenix",PICOBROWSER:"Pico Browser",POLARIS:"Polaris",PUFFIN:"Puffin",QQ:"QQBrowser",QQ_LITE:"QQBrowserLite",QUARK:"Quark",QUPZILLA:"QupZilla",REKONQ:"rekonq",ROCKMELT:"Rockmelt",SAFARI:"Safari",SAFARI_MOBILE:"Mobile Safari",SAILFISH:"Sailfish Browser",SAMSUNG:"Samsung Internet",SEAMONKEY:"SeaMonkey",SILK:"Silk",SKYFIRE:"Skyfire",SLEIPNIR:"Sleipnir",SLIMBOAT:"SlimBoat",SLIMBROWSER:"SlimBrowser",SLIMJET:"Slimjet",SNAPCHAT:"Snapchat",SOGOU_EXPLORER:"Sogou Explorer",SOGOU_MOBILE:"Sogou Mobile",SWIFTFOX:"Swiftfox",TESLA:"Tesla",TIKTOK:"TikTok",TIZEN:"Tizen Browser",TWITTER:"Twitter",UC:"UCBrowser",UP:"UP.Browser",VIVALDI:"Vivaldi",VIVO:"Vivo Browser",W3M:"w3m",WATERFOX:"Waterfox",WEBKIT:"WebKit",WECHAT:"WeChat",WEIBO:"Weibo",WHALE:"Whale",WOLVIC:"Wolvic",YANDEX:"Yandex"},t={CRAWLER:"crawler",CLI:"cli",EMAIL:"email",FETCHER:"fetcher",INAPP:"inapp",MEDIAPLAYER:"mediaplayer",LIBRARY:"library"},n={"68K":"68k",ARM:"arm",ARM_64:"arm64",ARM_HF:"armhf",AVR:"avr",AVR_32:"avr32",IA64:"ia64",IRIX:"irix",IRIX_64:"irix64",MIPS:"mips",MIPS_64:"mips64",PA_RISC:"pa-risc",PPC:"ppc",SPARC:"sparc",SPARC_64:"sparc64",X86:"ia32",X86_64:"amd64"},r={CONSOLE:"console",DESKTOP:"desktop",EMBEDDED:"embedded",MOBILE:"mobile",SMARTTV:"smarttv",TABLET:"tablet",WEARABLE:"wearable",XR:"xr"},i={ACER:"Acer",ADVAN:"Advan",ALCATEL:"Alcatel",APPLE:"Apple",AMAZON:"Amazon",ARCHOS:"Archos",ASUS:"ASUS",ATT:"AT&T",BENQ:"BenQ",BLACKBERRY:"BlackBerry",CAT:"Cat",DELL:"Dell",ENERGIZER:"Energizer",ESSENTIAL:"Essential",FACEBOOK:"Facebook",FAIRPHONE:"Fairphone",GEEKSPHONE:"GeeksPhone",GENERIC:"Generic",GOOGLE:"Google",HMD:"HMD",HP:"HP",HTC:"HTC",HUAWEI:"Huawei",IMO:"IMO",INFINIX:"Infinix",ITEL:"itel",JOLLA:"Jolla",KOBO:"Kobo",LENOVO:"Lenovo",LG:"LG",MEIZU:"Meizu",MICROMAX:"Micromax",MICROSOFT:"Microsoft",MOTOROLA:"Motorola",NEXIAN:"Nexian",NINTENDO:"Nintendo",NOKIA:"Nokia",NOTHING:"Nothing",NVIDIA:"Nvidia",ONEPLUS:"OnePlus",OPPO:"OPPO",OUYA:"Ouya",PALM:"Palm",PANASONIC:"Panasonic",PEBBLE:"Pebble",PICO:"Pico",POLYTRON:"Polytron",REALME:"Realme",RIM:"RIM",ROKU:"Roku",SAMSUNG:"Samsung",SHARP:"Sharp",SIEMENS:"Siemens",SMARTFREN:"Smartfren",SONY:"Sony",SPRINT:"Sprint",TCL:"TCL",TECHNISAT:"TechniSAT",TECNO:"Tecno",TESLA:"Tesla",ULEFONE:"Ulefone",VIVO:"Vivo",VODAFONE:"Vodafone",XBOX:"Xbox",XIAOMI:"Xiaomi",ZEBRA:"Zebra",ZTE:"ZTE"},l={AMAYA:"Amaya",ARKWEB:"ArkWeb",BLINK:"Blink",EDGEHTML:"EdgeHTML",FLOW:"Flow",GECKO:"Gecko",GOANNA:"Goanna",ICAB:"iCab",KHTML:"KHTML",LIBWEB:"LibWeb",LINKS:"Links",LYNX:"Lynx",NETFRONT:"NetFront",NETSURF:"NetSurf",PRESTO:"Presto",SERVO:"Servo",TASMAN:"Tasman",TRIDENT:"Trident",W3M:"w3m",WEBKIT:"WebKit"},d={AIX:"AIX",AMIGA_OS:"Amiga OS",ANDROID:"Android",ANDROID_X86:"Android-x86",ARCH:"Arch",BADA:"Bada",BEOS:"BeOS",BLACKBERRY:"BlackBerry",CENTOS:"CentOS",CHROME_OS:"Chrome OS",CHROMECAST:"Chromecast",CHROMECAST_ANDROID:"Chromecast Android",CHROMECAST_FUCHSIA:"Chromecast Fuchsia",CHROMECAST_LINUX:"Chromecast Linux",CHROMECAST_SMARTSPEAKER:"Chromecast SmartSpeaker",CONTIKI:"Contiki",DEBIAN:"Debian",DEEPIN:"Deepin",DRAGONFLY:"DragonFly",ELEMENTARY_OS:"elementary OS",FEDORA:"Fedora",FIREFOX_OS:"Firefox OS",FREEBSD:"FreeBSD",FUCHSIA:"Fuchsia",GENTOO:"Gentoo",GHOSTBSD:"GhostBSD",GNU:"GNU",HAIKU:"Haiku",HARMONYOS:"HarmonyOS",HP_UX:"HP-UX",HURD:"Hurd",IOS:"iOS",JOLI:"Joli",KAIOS:"KaiOS",KUBUNTU:"Kubuntu",LINPUS:"Linpus",LINSPIRE:"Linspire",LINUX:"Linux",MACOS:"macOS",MAEMO:"Maemo",MAGEIA:"Mageia",MANDRIVA:"Mandriva",MANJARO:"Manjaro",MEEGO:"MeeGo",MINIX:"Minix",MINT:"Mint",MORPH_OS:"Morph OS",NETBSD:"NetBSD",NETRANGE:"NetRange",NETTV:"NetTV",NINTENDO:"Nintendo",OPENHARMONY:"OpenHarmony",OPENBSD:"OpenBSD",OPENVMS:"OpenVMS",OS2:"OS/2",PALM:"Palm",PC_BSD:"PC-BSD",PCLINUXOS:"PCLinuxOS",PICO:"Pico",PLAN9:"Plan9",PLAYSTATION:"PlayStation",QNX:"QNX",RASPBIAN:"Raspbian",REDHAT:"RedHat",RIM_TABLET_OS:"RIM Tablet OS",RISC_OS:"RISC OS",SABAYON:"Sabayon",SAILFISH:"Sailfish",SERENITYOS:"SerenityOS",SERIES40:"Series40",SLACKWARE:"Slackware",SOLARIS:"Solaris",SUSE:"SUSE",SYMBIAN:"Symbian",TIZEN:"Tizen",UBUNTU:"Ubuntu",UBUNTU_TOUCH:"Ubuntu Touch",UNIX:"Unix",VECTORLINUX:"VectorLinux",WATCHOS:"watchOS",WEBOS:"WebOS",WINDOWS:"Windows",WINDOWS_IOT:"Windows IoT",WINDOWS_MOBILE:"Windows Mobile",WINDOWS_PHONE:"Windows Phone",XBOX:"Xbox",ZENWALK:"Zenwalk"};var ee;(function(h){(function(y){class b{static get Browser(){return e}static get BrowserType(){return t}static get CPU(){return n}static get Device(){return r}static get Vendor(){return i}static get Engine(){return l}static get UAParserEnumOS(){return d}}y.UAParserEnums=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{static get isMobile(){let u=!1;return function(f){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(f)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(f.substr(0,4)))&&(u=!0)}(navigator.userAgent||navigator.vendor||window.opera),u}static newGuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(u){const f=Math.random()*16|0;return(u==="x"?f:f&3|8).toString(16)})}static ieFix(){let u;navigator.userAgent.indexOf("MSIE")!=-1?u=/MSIE (\d+\.\d+);/:u=/Trident.*rv[ :]*(\d+\.\d+)/,u.test(navigator.userAgent)&&(document.body.setAttribute("style","-ms-touch-action:none;"),document.body.style.touchAction="none",document.body.style.msTouchAction="none")}static now(){const u=window.performance||{};return u.now=function(){return u.now||u.webkitNow||u.msNow||u.oNow||u.mozNow||function(){return new Date().getTime()}}(),u.now()}static base64Uint8Array(u){const f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";let s,o=u.length,a="";for(s=0;s<o;s+=3)a+=f[u[s]>>2],a+=f[(u[s]&3)<<4|u[s+1]>>4],a+=f[(u[s+1]&15)<<2|u[s+2]>>6],a+=f[u[s+2]&63];return o%3===2?a=a.substring(0,a.length-1)+"=":o%3===1&&(a=a.substring(0,a.length-2)+"=="),a}static string2buf(u){if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(u);let f,s,o,a,m,v=u.length,w=0;for(a=0;a<v;a++)s=u.charCodeAt(a),(s&64512)===55296&&a+1<v&&(o=u.charCodeAt(a+1),(o&64512)===56320&&(s=65536+(s-55296<<10)+(o-56320),a++)),w+=s<128?1:s<2048?2:s<65536?3:4;for(f=new Uint8Array(w),m=0,a=0;m<w;a++)s=u.charCodeAt(a),(s&64512)===55296&&a+1<v&&(o=u.charCodeAt(a+1),(o&64512)===56320&&(s=65536+(s-55296<<10)+(o-56320),a++)),s<128?f[m++]=s:s<2048?(f[m++]=192|s>>>6,f[m++]=128|s&63):s<65536?(f[m++]=224|s>>>12,f[m++]=128|s>>>6&63,f[m++]=128|s&63):(f[m++]=240|s>>>18,f[m++]=128|s>>>12&63,f[m++]=128|s>>>6&63,f[m++]=128|s&63);return f}static utf8Encode(u){u=u.replace(/\r\n/g,`
70
- `);let f="";for(let s=0;s<u.length;s++){const o=u.charCodeAt(s);o<128?f+=String.fromCharCode(o):o>127&&o<2048?(f+=String.fromCharCode(o>>6|192),f+=String.fromCharCode(o&63|128)):(f+=String.fromCharCode(o>>12|224),f+=String.fromCharCode(o>>6&63|128),f+=String.fromCharCode(o&63|128))}return f}static hash(u){let f=b.hashCache.get(u);return f||(f=h.sha256(u+y.Constants.SALT),b.hashCache.set(u,f)),f}static hashMini(u){const f=`${JSON.stringify(u)}`;let s,o,a=2166136261;for(s=0,o=f.length;s<o;s++)a=Math.imul(31,a)+f.charCodeAt(s)|0;return("0000000"+(a>>>0).toString(16)).substr(-8)}static hashCode(u){let f=0,s=u?u.length:0,o=0;if(s>0)for(;o<s;)f=(f<<5)-f+u.charCodeAt(o++)|0;return f}static mod(u,f){return(b.hashCode(u)%f+f)%f}static isEmail(u){try{return u&&/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(u.toLowerCase())}catch(f){return y.Logger.warn("isEmail function failed to parse string",f),!1}}static getEmailDomain(u){return b.isEmail(u)?u.substring(u.lastIndexOf("@")+1):""}static extendPrimitiveValues(u,f,s){const o=b.allKeys(f);let a=0;for(;a<o.length;)!b.isObject(f[o[a]])&&(!s||s&&u[o[a]]===void 0)&&(u[o[a]]=f[o[a]]),a++;return u}static flatten(u){const f={};return b.dive("",u,f),f}static isFunction(u){return u&&typeof u=="function"}static isPassiveSupported(){let u=!1;const f=function(){};try{const s={get passive(){return u=!0,!0}};window.addEventListener("test",f,s),window.removeEventListener("test",f,!1)}catch{u=!1}return u}static getAttribute(u,f){try{if(u&&typeof u.getAttribute=="function")return u.getAttribute(f)||""}catch{}return""}static createInvisibleElement(u){try{const f=document.createElement(u);return f.style.display="none",f.style.border="none",f.style.position="absolute",f.style.top="-999px",f.style.left="-999px",f.style.width="0",f.style.height="0",f.style.visibility="hidden",f}catch(f){return y.Logger.warn("Failed to create element",f),null}}static values(u){const f=b.allKeys(u),s=f.length,o=Array(s);for(let a=0;a<s;a++)o[a]=u[f[a]];return o}static getValuesOfMap(u){if(this.isFunction(u.values))return Array.from(u.values());const f=[];return u.forEach(s=>f.push(s)),f}static typesCounter(u){const f={epochTs:Date.now()};for(const s of u)f[s.type]=(f[s.type]||0)+1;return f}static modifiersKeys(u){const f=["Alt","AltGraph","CapsLock","Control","Fn","FnLock","Hyper","Meta","NumLock","OS","ScrollLock","Shift","Super","Symbol","SymbolLock"],s=[];return u.getModifierState&&f.forEach(o=>{u.getModifierState(o.toString())&&s.push(o)}),s}static getElementText(u){var f,s;return u instanceof HTMLInputElement?["checkbox","radio"].indexOf(u.type)>=0?`${u.checked}`:u.value:u instanceof HTMLSelectElement?(s=(f=u.selectedOptions)===null||f===void 0?void 0:f[0])===null||s===void 0?void 0:s.innerText:u.innerText}static getSrcElement(u){return u.srcElement||u.target}static getObjectType(u){try{const f=/function (.{1,})\(/.exec(u.constructor.toString());return f&&f.length>1?f[1]:""}catch{return""}}static isSelectorMatches(u,f,s){try{const o=Element.prototype,a=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector;let m=0;do{if(a.call(u,f))return u;u=u.parentElement||u.parentNode}while(u!==null&&u.nodeType===1&&m++<s);return null}catch{return null}}static anySelectorMatches(u,f,s){try{for(const o of f)if(this.isSelectorMatches(u,o,s))return!0}catch(o){y.Logger.warn(o)}return!1}static isArray(u){return Array.isArray?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"}static safeJsonParse(u){let f=null;try{u&&(f=JSON.parse(u))}catch(s){y.Logger.warn("Failed to parse object "+s),f=null}return f}static getElementSelectionStart(u){let f;try{f=u.selectionStart}catch{f=""}return f}static getElementSelectionEnd(u){let f;try{f=u.selectionEnd}catch{f=""}return f}static isClickableInput(u){return u&&["button","checkbox","color","radio","range","image","submit","file","reset"].indexOf(u.type)>=0}static isTextInput(u){return u&&["date","datetime-local","email","month","number","password","search","tel","text","time","url","week","datetime"].indexOf(u.type)>=0}static getDeviceOrientation(){const u=screen.orientation||screen.mozOrientation||{},f=screen.msOrientation||u.type,s=u.angle;return{orientation:f==null?void 0:f.toString(),angle:s==null?void 0:s.toString()}}static getDevToolsState(){var u,f;const s=window.outerWidth-window.innerWidth>160,o=window.outerHeight-window.innerHeight>160,a=s?"vertical":"horizontal";return!(o&&s)&&(!((f=(u=window.Firebug)===null||u===void 0?void 0:u.chrome)===null||f===void 0)&&f.isInitialized||s||o)?{open:!0,orientation:a}:{open:!1,orientation:void 0}}static getCookie(u){const f=document.cookie.match("(^|;) ?"+u+"=([^;]*)(;|$)");return f?f[2]:null}static setCookie(u,f,s){const o=new Date;o.setTime(o.getTime()+1e3*s),document.cookie=u+"="+f+";path=/;secure;SameSite=None;expires="+o.toUTCString()}static deleteCookie(u){b.setCookie(u,"",-1)}static delay(u){return new Promise(f=>setTimeout(f,u))}static getHostnameFromRegex(u){if(u){const f=u.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return f&&f[1]}return null}static inIframe(){try{return window.self!==window.top}catch{return!0}}static promiseTimeout(u,f){const s=new Promise((o,a)=>{const m=setTimeout(()=>{clearTimeout(m),a(new Error("Timed out in "+u+"ms."))},u)});return Promise.race([f,s])}static getProperty(u,f){return f.split(".").reduce(function(s,o){return s?s[o]:null},u)}static filterReduce(u,f){return Object.keys(u).filter(s=>f(u[s])).reduce((s,o)=>({...s,[o]:u[o]}),{})}static dive(u,f,s){for(const o in f)if(f.hasOwnProperty(o)){let a=o;const m=f[o];u.length>0&&(a=u+"."+o),b.isObject(m)?b.dive(a,m,s):s[a]=m}}static isObject(u){const f=typeof u;return f==="function"||f==="object"&&!!u}static allKeys(u){if(!b.isObject(u))return[];const f=[];for(const s in u)f.push(s);return f}static encryptionString(u,f){const s=[];for(let o=0;o<u.length;o++){const a=u.charCodeAt(o)^f.charCodeAt(o%f.length);s.push(String.fromCharCode(a))}return s.join("")}static encryptionBytes(u,f){const s=new Uint8Array(u.length);for(let o=0;o<u.length;o++)s[o]=u[o]^f.charCodeAt(o%f.length);return s}static parseJwt(u){const f=u.replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(window.atob(f).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(s)}static calculateMeanTimeDeltasBetweenEvents(u){let f=0;if((u==null?void 0:u.length)>1){let s=u[0].epochTs;for(let o=1;o<u.length;o++)f+=u[o].epochTs-s,s=u[o].epochTs;f/=u.length-1}return f}static sortEventsByTimestamp(u){return u.sort((f,s)=>f.eventTs>s.eventTs?1:f.eventTs<s.eventTs?-1:f.epochTs>s.epochTs?1:f.epochTs<s.epochTs?-1:f.type==="click"?1:-1)}static distanceBetweenPoints(u,f){return Math.sqrt(Math.pow(u.getX()-f.getX(),2)+Math.pow(u.getY()-f.getY(),2))}static calculateMeanDistanceBetweenPoints(u){let f=0;if((u==null?void 0:u.length)>1){for(let s=1;s<u.length;s++)f+=b.distanceBetweenPoints(u[s-1],u[s]);f/=u.length-1}return f}static filterArrayByLength(u,f){return u.length<=f?u:u.slice(0,f).concat(u[u.length-1])}static keepFirstEventsWithDistance(u){const{events:f,threshold:s,min:o,max:a}=u;if(f.length<=o)return f;const m=f[0];let v;for(v=1;v<f.length&&v<a&&!(Math.max(Math.abs(f[v].getX()-m.getX()),Math.abs(f[v].getY()-m.getY()))>=s);v++);return f.slice(0,Math.max(v+1,o))}static ab2str(u){return String.fromCharCode.apply(null,new Uint8Array(u))}static str2ab(u){const f=new ArrayBuffer(u.length),s=new Uint8Array(f);for(let o=0,a=u.length;o<a;o++)s[o]=u.charCodeAt(o);return f}static encode(u){const f=JSON.stringify(u),s=new TextEncoder().encode(f),o=b.base64Uint8Array(s);return b.base64url(o)}static base64url(u){return u.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}}b.hashCache=new Map,b.keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",y.Util=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){var y=h.openDB;(function(b){class c{constructor(){}static async initDB(){if(!(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB))throw new Error("IndexedDB is not supported");const f=new c;return new Promise(async s=>{f.indexedDatabase=await y(this._PingDBName,c._version,{upgrade(o,a,m,v,w){o.createObjectStore(c._storeDefaultName)}}),s(f)})}close(){this.indexedDatabase.close()}getValue(f){return this.indexedDatabase.get(c._storeDefaultName,f)}setValue(f,s){return this.indexedDatabase.put(c._storeDefaultName,s,f)}}c._PingDBName="Ping",c._version=1,c._storeDefaultName="PING_ONE",b.IndexedDBStorage=c})(h._POSignalsStorage||(h._POSignalsStorage={}))})(ee||(ee={}));var ee;(function(h){class y{constructor(c,u,f){this.deviceId=c,this.dbStorage=u,this.cryptoHandler=f}async getExportedPublicKey(){if(!this.cachedPublicKey){const c=await this.getDeviceKeys();c&&(this.cachedPublicKey=await this.cryptoHandler.exportPublicKey(c))}return h._POSignalsUtils.Logger.info("Exported public key:",this.cachedPublicKey),this.cachedPublicKey}async setDeviceKeys(c){const u=await this.dbStorage.setValue(this.deviceId,c);return this.cachedDeviceKey=c,u}async associateDeviceKeys(){const c=await this.cryptoHandler.generateKeys();return h._POSignalsUtils.Logger.info("Associating new device domain keys"),await this.setDeviceKeys(c),c}async getDeviceKeys(){return this.cachedDeviceKey||(this.cachedDeviceKey=await this.dbStorage.getValue(this.deviceId)),this.cachedDeviceKey}async signDeviceAttributeWithJWT(c,u,f){return await this.cryptoHandler.signJWT(c,await this.getDeviceKeys(),y._default_salt,u,f)}async verifyJWT(c){return this.cryptoHandler.verifyJwtToken(c,(await this.getDeviceKeys()).publicKey)}}y._default_salt=32,h.DeviceKeys=y})(ee||(ee={}));var ee;(function(h){(function(y){class b{constructor(){this._disabledStorage=[],this.assertionValues=["BROWSER_ENGINE_VERSION","NAVIGATOR_LANGUAGE","OS_NAME","OS_VERSION","NAVIGATOR_USER_AGENT","FINGER_PRINT","RESOLUTION","PUSH_NOTIFICATIONS_SUPPORTED","COOKIES_ENABLED","IS_INCOGNITO","IS_PRIVATE_MODE"];try{window.sessionStorage.setItem("_st_storage_enabled_check","test"),window.sessionStorage.removeItem("_st_storage_enabled_check"),this.signalsSessionStorage=window.sessionStorage}catch{h._POSignalsUtils.Logger.warn("session storage disabled"),this._disabledStorage.push("sessionStorage"),this.signalsSessionStorage=new y.StorageFallback}try{window.localStorage.setItem("_st_storage_enabled_check","test"),window.localStorage.removeItem("_st_storage_enabled_check"),this.signalsLocalStorage=new y.StorageWrapper(window.localStorage)}catch{h._POSignalsUtils.Logger.warn("local storage disabled"),this._disabledStorage.push("localStorage"),this.signalsLocalStorage=new y.StorageWrapper(new y.StorageFallback)}}setStorageConfig(u){this.universalTrustEnabled=this.isConfigurationEnabled(u.universalDeviceIdentification),this.agentIdentificationEnabled=this.isConfigurationEnabled(u.agentIdentification),this.devEnv=u.devEnv,this.agentPort=u.agentPort,this.agentTimeout=u.agentTimeout,this.htmlGeoLocation=this.isConfigurationEnabled(u.htmlGeoLocation),this.isIAFDetectionEnabled=this.isConfigurationEnabled(u.isIAFDetectionEnabled)}static get instance(){return b._instance||(b._instance=new b),b._instance}get tabUUID(){let u=this.signalsSessionStorage.getItem(h._POSignalsUtils.Constants.TAB_UUID_KEY);return u||(u=h._POSignalsUtils.Util.newGuid(),this.signalsSessionStorage.setItem(h._POSignalsUtils.Constants.TAB_UUID_KEY,u)),u}get ops(){const u=Number(this.signalsSessionStorage.getItem(h._POSignalsUtils.Constants.OPS_KEY));return isNaN(u)?null:u}set ops(u){u?this.signalsSessionStorage.setItem(h._POSignalsUtils.Constants.OPS_KEY,u.toString()):this.signalsSessionStorage.removeItem(h._POSignalsUtils.Constants.OPS_KEY)}get disabledStorage(){return this._disabledStorage}get sessionStorage(){return this.signalsSessionStorage}get localStorage(){return this.signalsLocalStorage}async initDeviceIdentity(){let u;const f=this.signalsLocalStorage.getItem(h._POSignalsUtils.Constants.DEVICE_ID_KEY),s=this.signalsLocalStorage.getItem(h._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT);return f&&(this.cachedDeviceId=f),this.universalTrustEnabled&&(this.deviceTrust={attestation:{},dtts:new Date().getTime()},this.indexedDBStorage=await y.IndexedDBStorage.initDB(),u=await this.loadLocalDeviceTrust()),this.getDeviceId()||await this.associateDeviceDetails(),s||this.signalsLocalStorage.setItem(h._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT,Date.now()),this.universalTrustEnabled&&(!this.getDeviceId()||!u)&&await this.createDomainKeys(),this.getDeviceId()}shouldFallbackToP1Key(u){return this.universalTrustEnabled&&(!u||this.isRefreshRequired(this.deviceKeyRsyncIntervals))}isRefreshRequired(u=3){if(!this.deviceTrust.dtts)return!0;const f=this.signalsLocalStorage.getItem(h._POSignalsUtils.Constants.LAST_DEVICE_KEY_RESYNC);if(!f||isNaN(parseInt(f)))return!0;const s=this.deviceTrust.dtts-f>60*60*24*1e3*u;return s&&h._POSignalsUtils.Logger.debug("Refresh required"),s}async loadLocalDeviceTrust(){try{let u;if(!this.cachedDeviceId)return h._POSignalsUtils.Logger.debug("No device id found on customer domain"),!1;if(this.cachedDeviceId)return this.domainDeviceKeys=new h.DeviceKeys(this.getDeviceId(),this.indexedDBStorage,new h._POSignalsUtils.CryptoOperator),u=await this.domainDeviceKeys.getDeviceKeys(),u?(this.deviceTrust.attestation.deviceKey=await this.domainDeviceKeys.getExportedPublicKey(),!0):(h._POSignalsUtils.Logger.debug("No device keys found on customer domain"),!1)}catch(u){return h._POSignalsUtils.Logger.error("Domain PKI initialization failed",u),!1}}async createDomainKeys(){try{this.domainDeviceKeys=new h.DeviceKeys(this.getDeviceId(),this.indexedDBStorage,new h._POSignalsUtils.CryptoOperator),await this.domainDeviceKeys.associateDeviceKeys(),this.deviceTrust.attestation.deviceKey=await this.domainDeviceKeys.getExportedPublicKey()}catch(u){h._POSignalsUtils.Logger.error("Domain PKI initialization failed",u)}}getDeviceId(){return this.cachedDeviceId}getDeviceCreatedAt(){return this.signalsLocalStorage.getItem(h._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT)}async associateDeviceDetails(){var u,f;return h._POSignalsUtils.Logger.debug("Associating fresh device details"),this.cachedDeviceId=`Id-${h._POSignalsUtils.Util.newGuid()}`,this.signalsLocalStorage.setItem(h._POSignalsUtils.Constants.DEVICE_ID_KEY,this.cachedDeviceId),this.signalsLocalStorage.setItem(h._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT,Date.now()),h._POSignalsUtils.Logger.debug(`PingOne Signals deviceId: ${this.cachedDeviceId}`),[this.cachedDeviceId,(f=(u=this.deviceTrust)===null||u===void 0?void 0:u.attestation)===null||f===void 0?void 0:f.fallbackDeviceKey]}closeTrustStore(){try{this.indexedDBStorage&&this.indexedDBStorage.close()}catch(u){h._POSignalsUtils.Logger.info("Unable to close trust store:",u)}}isConfigurationEnabled(u){return u==null?!1:typeof u=="boolean"?u:typeof u=="string"&&u.toLowerCase()==="true"}async signJWTChallenge(u,f,s){return this.domainDeviceKeys.signDeviceAttributeWithJWT(u,f,s)}getGeoSessionData(){const u=this.signalsSessionStorage.getItem(h._POSignalsUtils.Constants.GeoDataKey);return u??null}}y.SessionStorage=b})(h._POSignalsStorage||(h._POSignalsStorage={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{constructor(f){this.storage=f}getItem(f){const s=h._POSignalsUtils.Util.hash(f);let o=this.storage.getItem(s);return o||(o=this.storage.getItem(f),o&&(this.storage.setItem(s,o),this.storage.removeItem(f))),o}removeItem(f){return this.storage.removeItem(h._POSignalsUtils.Util.hash(f))}setItem(f,s){return this.storage.setItem(h._POSignalsUtils.Util.hash(f),s)}}y.StorageWrapper=b;class c{constructor(){this.internalStorageMap=new Map}getItem(f){return this.internalStorageMap.get(f)}removeItem(f){this.internalStorageMap.delete(f)}setItem(f,s){this.internalStorageMap.set(f,s)}}y.StorageFallback=c})(h._POSignalsStorage||(h._POSignalsStorage={}))})(ee||(ee={}));const g=p;(function(h,y){const b=p,c=h();for(;;)try{if(-parseInt(b(1382))/1+parseInt(b(1161))/2*(parseInt(b(1510))/3)+parseInt(b(1242))/4+-parseInt(b(1015))/5+-parseInt(b(710))/6+parseInt(b(1053))/7+parseInt(b(1284))/8===y)break;c.push(c.shift())}catch{c.push(c.shift())}})(_,914438);var gt=function(h,y,b,c){function u(f){return f instanceof b?f:new b(function(s){s(f)})}return new(b||(b=Promise))(function(f,s){const o=p;function a(w){const A=p;try{v(c[A(1448)](w))}catch(E){s(E)}}function m(w){const A=p;try{v(c[A(594)](w))}catch(E){s(E)}}function v(w){const A=p;w.done?f(w[A(584)]):u(w[A(584)])[A(804)](a,m)}v((c=c[o(399)](h,y||[]))[o(1448)]())})},ee;(function(h){const y=g;(function(b){const c=p;class u{[c(729)](){const s=c;try{const o={hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[]};if(typeof document>"u")return h[s(631)].Logger[s(829)](s(856)),{hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[s(1129)]};if(!document[s(517)])return h[s(631)][s(867)][s(829)](s(1310)),{hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[s(764)]};let a;try{a=document.querySelectorAll(s(816))}catch(w){return h[s(631)][s(867)][s(829)]("Failed to query input elements:",w),{hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[s(617)]}}if(a[s(368)]<=50)return this[s(678)](a,o);const m=1e3,v=Math[s(770)](a[s(368)],m);return a.length>m&&h._POSignalsUtils.Logger.warn("Large DOM detected: "+a[s(368)]+s(767)+m),this[s(369)](a,v,o)}catch(o){return h._POSignalsUtils[s(867)].warn(s(1263),o),{hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:["error"]}}}processInputsSynchronously(s,o){const a=c;for(let m=0;m<s[a(368)];m++)try{const v=s[m],w=this.detectInputAutofill(v);w[a(554)]&&this[a(1110)](o,v,w)}catch(v){h[a(631)][a(867)].warn(a(793)+m+":",v)}return o}[c(369)](s,o,a){const m=c,v=performance[m(308)](),w=100,A=10;let E=0;for(;E<o;){if(performance[m(308)]()-v>w){h[m(631)][m(867)].warn(m(962)+E+"/"+o+m(688)),a[m(928)][m(1265)](m(1523))===-1&&a.detectionMethods[m(939)](m(1523));break}const O=Math[m(770)](E+A,o);for(let T=E;T<O;T++)try{const M=s[T],P=this[m(520)](M);P.isAutofilled&&this[m(1110)](a,M,P)}catch(M){h[m(631)][m(867)][m(829)](m(793)+T+":",M)}E=O}return a}[c(1110)](s,o,a){const m=c;s.hasAutofill=!0,s[m(922)]++,s[m(1169)][m(939)]({type:o[m(322)]||m(1299),name:o[m(1246)]||"",id:o.id||"",placeholder:o[m(1216)]||"",value:o[m(584)]?o[m(584)][m(1073)](0,3)+m(451):"",detectionMethod:a.method}),s[m(928)][m(1265)](a[m(587)])===-1&&s[m(928)][m(939)](a[m(587)])}detectInputAutofill(s){const o=c;if(!s||s[o(708)]!==o(1513))return{isAutofilled:!1,method:o(460)};try{if(s.matches&&s[o(1256)](o(1356)))return{isAutofilled:!0,method:o(472)}}catch{}try{if(s[o(1256)]&&s[o(1256)](":-moz-autofill"))return{isAutofilled:!0,method:o(1200)}}catch{}try{const a=window[o(1396)](s),m=a[o(1504)];if([o(310),o(378)][o(1265)](m)!==-1||m[o(1265)](o(1261))!==-1)return{isAutofilled:!0,method:"background-color"}}catch{}try{if(s[o(584)]&&s[o(584)][o(368)]>0){if(s[o(1366)](o(1072))||s[o(1366)](o(500)))return{isAutofilled:!0,method:o(842)};if(s.hasAttribute(o(1271))||s[o(1266)][o(637)](o(984))){const a=[o(1179),o(1410),o(1353),o(1246),o(1189)];if(a.indexOf(s[o(322)])!==-1||a[o(1148)](m=>s[o(1246)]&&s[o(1246)][o(1479)]()[o(1265)](m)!==-1))return{isAutofilled:!0,method:o(1089)}}}}catch{}try{if(s.classList[o(637)](o(586))||s.classList[o(637)]("auto-filled")||s[o(1366)](o(789))||s[o(1366)](o(531)))return{isAutofilled:!0,method:o(851)}}catch{}try{if(s[o(1058)][o(540)]==="autofill-detection"||s[o(1058)].animationName===o(1319))return{isAutofilled:!0,method:o(871)}}catch{}return{isAutofilled:!1,method:o(460)}}[c(1225)](){const s=c;try{if(typeof document>"u"||!document.querySelectorAll)return{hasEmail:!1,hasPassword:!1,hasName:!1,hasNumber:!1,hasInput:!1};const o=document.querySelectorAll("input");let a=!1,m=!1,v=!1,w=!1;const A=o[s(368)]>0;for(let E=0;E<o[s(368)];E++){const O=o[E],T=(O[s(322)]||"text")[s(1479)](),M=(O[s(1246)]||"")[s(1479)](),P=(O.id||"")[s(1479)](),x=(O[s(346)]||"")[s(1479)](),I=(O[s(1216)]||"").toLowerCase(),D=(O[s(1503)](s(1282))||"").toLowerCase();let V="";try{if(O.id){const j=document[s(580)]('label[for="'+O.id+'"]');j&&(V=(j[s(1065)]||"")[s(1479)]())}if(!V){const j=O.closest("label");j&&(V=(j.textContent||"")[s(1479)]())}}catch{}if(a||(T===s(1179)||M[s(1265)](s(1179))!==-1||P[s(1265)](s(1179))!==-1||x[s(1265)](s(1179))!==-1||I[s(1265)](s(1179))!==-1||D[s(1265)](s(1179))!==-1||V.indexOf("email")!==-1||V.indexOf(s(850))!==-1)&&(a=!0),m||(T===s(1410)||M[s(1265)](s(1410))!==-1||M.indexOf("passwd")!==-1||M.indexOf("pass")!==-1||M.indexOf(s(582))!==-1||P[s(1265)](s(1410))!==-1||P[s(1265)](s(825))!==-1||x.indexOf(s(1410))!==-1||I.indexOf("password")!==-1||V[s(1265)](s(1410))!==-1)&&(m=!0),v||(T===s(1246)||M.indexOf(s(1246))!==-1||M[s(1265)]("username")!==-1||M[s(1265)](s(559))!==-1||P[s(1265)](s(1246))!==-1||P[s(1265)](s(1376))!==-1||P[s(1265)](s(559))!==-1||x[s(1265)](s(1246))!==-1||x[s(1265)](s(1376))!==-1||I.indexOf(s(1246))!==-1||V[s(1265)]("name")!==-1||V.indexOf(s(1376))!==-1||V[s(1265)](s(1150))!==-1)&&(v=!0),w||(T===s(1353)||T===s(497)||M[s(1265)](s(727))!==-1||M[s(1265)](s(1353))!==-1||M.indexOf(s(512))!==-1||M.indexOf(s(662))!==-1||P[s(1265)](s(727))!==-1||P[s(1265)](s(1353))!==-1||P.indexOf(s(512))!==-1||x[s(1265)]("tel")!==-1||I[s(1265)](s(727))!==-1||V[s(1265)](s(727))!==-1||V[s(1265)](s(512))!==-1)&&(w=!0),a&&m&&v&&w)break}return{hasEmail:a,hasPassword:m,hasName:v,hasNumber:w,hasInput:A}}catch(o){return h[s(631)].Logger[s(829)]("Error detecting page input fields:",o),{hasEmail:!1,hasPassword:!1,hasName:!1,hasNumber:!1,hasInput:!1}}}static[c(865)](){const s=c;try{if(!document.getElementById(s(759))){const o=document[s(983)](s(1058));o.id=s(759),o.textContent=s(1427)+"@keyframes autofill-detection { 0% { opacity: 1; } 100% { opacity: 1; } }",document[s(1295)].appendChild(o)}document[s(806)](s(1423),function(o){const a=s;if(o[a(540)]==="autofill-detection"){const m=o.target;m&&m[a(708)]===a(1513)&&(m[a(318)](a(1072),a(413)),m[a(1266)][a(373)]("autofilled"))}},!0)}catch(o){h[s(631)].Logger[s(829)](s(1506),o)}}[c(479)](){const s=c,o=this.detectAutofillFields(),a=this.detectPageInputFields();return{AUTOFILL_DETECTED:o[s(632)],AUTOFILL_COUNT:o[s(922)],AUTOFILL_FIELDS_COUNT:o[s(1169)][s(368)],AUTOFILL_METHODS:o[s(928)][s(1512)](","),AUTOFILL_FIELD_TYPES:o[s(1169)][s(341)](m=>m.type)[s(1512)](","),HAS_EMAIL:a[s(810)],HAS_PASSWORD:a[s(1457)],HAS_NAME:a.hasName,HAS_NUMBER:a[s(1177)],HAS_INPUT:a.hasInput}}getAutofillMetadataAsync(){return gt(this,void 0,void 0,function*(){const s=p,o=yield this[s(316)](),a=this[s(1225)]();return{AUTOFILL_DETECTED:o[s(632)],AUTOFILL_COUNT:o[s(922)],AUTOFILL_FIELDS_COUNT:o[s(1169)][s(368)],AUTOFILL_METHODS:o.detectionMethods[s(1512)](","),AUTOFILL_FIELD_TYPES:o.detectedFields[s(341)](m=>m[s(322)]).join(","),HAS_EMAIL:a[s(810)],HAS_PASSWORD:a[s(1457)],HAS_NAME:a[s(581)],HAS_NUMBER:a[s(1177)],HAS_INPUT:a[s(1409)]}})}[c(1415)](){return gt(this,void 0,void 0,function*(){const s=p;try{return document[s(517)](s(816))[s(368)]>500?yield this[s(1032)]():this[s(479)]()}catch(o){return h._POSignalsUtils[s(867)][s(829)](s(542),o),this[s(479)]()}})}detectAutofillFieldsAsync(){return gt(this,void 0,void 0,function*(){return new Promise(s=>{const o=p;try{const a={hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[]};if(typeof document>"u"){h[o(631)][o(867)].warn(o(1160)),s({hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:["document-unavailable"]});return}let m;try{m=document[o(517)]("input")}catch(T){h._POSignalsUtils[o(867)][o(829)](o(693),T),s({hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[o(617)]});return}const v=2e3,w=Math[o(770)](m[o(368)],v),A=20;let E=0;const O=()=>{const T=o,M=Math.min(E+A,w);for(let P=E;P<M;P++)try{const x=m[P],I=this[T(520)](x);I[T(554)]&&this[T(1110)](a,x,I)}catch(x){h[T(631)][T(867)][T(829)](T(793)+P+T(432),x)}E=M,E>=w?s(a):window.requestIdleCallback?window.requestIdleCallback(O,{timeout:50}):setTimeout(O,0)};window[o(518)]?window[o(518)](O,{timeout:50}):setTimeout(O,0)}catch(a){h[o(631)][o(867)][o(829)](o(763),a),s({hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:["async-error"]})}})})}}b[c(1201)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{constructor(){const s=p;this[s(323)]=s(1460),this[s(898)]=s(1093),this[s(1483)]=[s(1167),"sans-serif","serif"],this[s(522)]=[s(406),"Arial Black","Arial Narrow","Arial Rounded MT Bold",s(530),s(758),"Cambria","Cambria Math",s(701),s(1308),s(1458),s(668),s(1158),s(546),s(609),"Franklin Gothic Medium",s(843),"Gadugi",s(1524),"HoloLens MDL2 Assets",s(890),s(779),s(926),s(1069),s(1354),s(1334),s(1348),s(1194),s(728),"Microsoft JhengHei",s(910),s(1260),"Microsoft Sans Serif",s(778),s(1403),s(629),s(1520),"Mongolian Baiti",s(899),s(976),"Myanmar Text",s(1005),s(819),s(1426),s(425),s(1514),s(1349),"Segoe UI Historic","Segoe UI Emoji",s(535),s(343),s(452),s(1212),s(424),s(519),s(695),s(408),"Verdana",s(1361),"Wingdings",s(1220),s(1360),"Andale Mono",s(656),s(1219),s(547),s(1473),s(635),"AppleMyungjo",s(1293),s(904),s(515),"Avenir Next",s(488),s(1526),s(1135),s(1122),"Bodoni 72 Oldstyle",s(1519),"Bradley Hand",s(1286),s(1471),s(981),"Chalkduster",s(935),s(313),s(464),s(1352),s(528),"Futura","Geneva","Gill Sans","Helvetica",s(1107),s(1464),"Hoefler Text",s(890),"Lucida Grande","Luminari",s(828),s(1470),s(800),"Noteworthy",s(971),"Palatino","Papyrus",s(676),"Rockwell",s(541),s(466),s(864),"Snell Roundhand","Tahoma",s(427),s(1490),s(484),s(1090),s(821),s(1364),s(977),s(1182),"DejaVu Sans",s(543),s(371),s(724),"Droid Sans Mono",s(1244),s(461),s(487),s(1132),s(1133),"Gubbi",s(578),"Khmer OS",s(1176),s(1419),s(1518),s(1358),s(733),s(1344),"Lohit Devanagari",s(887),s(1173),s(434),s(332),s(740),"Noto Nastaliq Urdu",s(644),s(529),s(1046),s(1491),"Noto Sans CJK TC","Noto Serif",s(1020),s(776),s(1527),s(379),s(1018),"Ubuntu",s(400),s(513),s(732),s(924),s(1007),s(724),s(1244),s(401),s(458),s(350),s(1442),s(504),s(1086),"Roboto Slab",s(1041),s(1155),s(1467),"PT Sans",s(777),s(396),s(564),s(1432),s(868),s(499),s(914),s(857),s(1222),s(521),s(787),"Batang",s(1010),s(493),s(968),"Clarendon",s(672),"Franklin Gothic",s(311),s(747),s(826),s(1253),s(524),s(390),s(1050),s(823),s(576),s(1392),s(734),s(1040),s(730),s(1452),s(1077),s(1059),"MYRIAD PRO",s(765),s(831),"Microsoft Uighur",s(443),s(653),s(412),s(1456),s(955),s(681),s(1509),s(551),s(1112),"Staccato222 BT",s(792),s(1214),s(876),"ZWAdobeF"]}[c(394)](){return gt(this,void 0,void 0,function*(){const s=p,o=performance.now();try{const a=yield this.detectFontsWithIframe(),m=performance[s(308)](),v=Math.round(m-o),w=this[s(1232)](a);return{availableFonts:a,fontHash:w,detectionMethod:s(1505)}}catch(a){return h[s(631)][s(867)].warn(s(416),a),{availableFonts:[],fontHash:"",detectionMethod:s(1505)}}})}[c(569)](){return new Promise((s,o)=>{const a=p,m=document[a(983)](a(697));m[a(1058)].setProperty(a(1421),a(964),a(1309)),m.style[a(1351)]=a(685),m.style[a(991)]="-9999px",m.style.top=a(735);const v=()=>{const A=a;try{const E=m[A(766)]||m[A(772)][A(1306)],O=this[A(588)](E);m[A(738)]&&m[A(738)].removeChild(m),s(O)}catch(E){m[A(738)]&&m.parentNode.removeChild(m),o(E)}},w=()=>{const A=a;m[A(738)]&&m.parentNode[A(960)](m),o(new Error("Failed to create iframe for font detection"))};m[a(806)](a(925),v),m[a(806)](a(381),w),document[a(1141)][a(896)](m)})}[c(588)](s){const o=c,a=s[o(1141)];a.style[o(934)]=this[o(898)];const m=s.createElement(o(1367));m[o(1058)][o(1229)]("visibility","hidden","important"),m[o(1058)][o(1351)]=o(685),m.style[o(991)]=o(735),m.style[o(550)]=o(735);const v={},w=this[o(1483)].map(E=>{const O=o,T=s.createElement(O(1425));return T.style[O(1351)]=O(685),T[O(1058)][O(550)]="0",T[O(1058)][O(991)]="0",T[O(1058)][O(712)]=E,T[O(1058)].fontSize=this[O(898)],T[O(1065)]=this[O(323)],m[O(896)](T),{font:E,span:T}});a.appendChild(m),w.forEach(({font:E,span:O})=>{v[E]={width:O.offsetWidth,height:O.offsetHeight}});const A=[];for(const E of this[o(522)]){let O=!1;for(const T of this[o(1483)]){const M=s.createElement(o(1425));M[o(1058)].position=o(685),M[o(1058)][o(550)]="0",M.style.left="0",M[o(1058)][o(712)]="'"+E+o(1466)+T,M[o(1058)][o(934)]=this[o(898)],M[o(1065)]=this[o(323)],m[o(896)](M);const P=M.offsetWidth,x=M[o(952)];if(P!==v[T][o(1431)]||x!==v[T][o(507)]){O=!0;break}}O&&A[o(939)](E)}return m[o(738)]&&m[o(738)][o(960)](m),A}[c(1232)](s){const o=c;if(s[o(368)]===0)return"";const a=s[o(1068)]()[o(1512)](",");return this[o(671)](a)}[c(671)](s){const o=c;let a=0,m=0;for(let O=0;O<s[o(368)];O++){const T=s.charCodeAt(O);a=(a<<5)-a+T,a=a|0,m=T+(m<<6)+(m<<16)-m,m=m|0}const v=a>>>0,w=m>>>0;let A=v[o(861)](16);for(;A[o(368)]<8;)A="0"+A;let E=w[o(861)](16);for(;E[o(368)]<8;)E="0"+E;return A+E}[c(352)](){return gt(this,void 0,void 0,function*(){const s=p,o=performance[s(308)]();try{const a=document[s(983)](s(457)),m=a[s(1482)]("2d");if(!m)throw new Error(s(1243));a.width=500,a[s(507)]=200;const v=[],w={};for(const T of this.baseFonts)m[s(575)](0,0,a[s(1431)],a[s(507)]),m[s(364)]=this[s(898)]+" "+T,m[s(468)](this.testString,0,100),w[T]=a[s(1008)]();for(const T of this[s(522)]){let M=!1;for(const P of this[s(1483)])if(m[s(575)](0,0,a[s(1431)],a[s(507)]),m[s(364)]=this[s(898)]+" '"+T+"', "+P,m[s(468)](this[s(323)],0,100),a[s(1008)]()!==w[P]){M=!0;break}M&&v[s(939)](T)}const A=performance[s(308)](),E=Math[s(620)](A-o),O=this[s(1232)](v);return{availableFonts:v,fontHash:O,detectionMethod:s(457)}}catch(a){return h[s(631)].Logger.warn(s(921),a),{availableFonts:[],fontHash:"",detectionMethod:s(457)}}})}[c(353)](){return gt(this,void 0,void 0,function*(){const s=p;performance.now();try{const o=[s(406),s(758),s(1275),s(1308),s(1458),s(546),"Georgia",s(890),s(1349),s(519),s(695),s(408),s(762),s(1360),s(1473),s(515),s(716),s(1107),s(1413),"Lucida Grande","Menlo",s(800),"Palatino",s(484),s(1231),s(543),s(371),s(1518),s(1358),s(1344),s(396),s(513),s(924),s(724),s(1244),"Open Sans",s(504),s(1086),s(514)],a=yield this[s(1498)](o),m=this[s(1232)](a);return{availableFonts:a,fontHash:m,detectionMethod:s(1505)}}catch(o){return h[s(631)].Logger[s(829)]("Quick font detection failed",o),{availableFonts:[],fontHash:"",detectionMethod:"size"}}})}[c(1498)](s){return new Promise((o,a)=>{const m=p,v=document[m(983)](m(697));v[m(1058)].setProperty(m(1421),m(964),m(1309)),v[m(1058)][m(1351)]=m(685),v[m(1058)][m(991)]=m(735),v[m(1058)].top="-9999px";const w=()=>{const E=m;try{const O=v[E(766)]||v.contentWindow[E(1306)],T=O[E(1141)];T[E(1058)].fontSize=this[E(898)];const M=O[E(983)](E(1367));M[E(1058)][E(1229)](E(1421),E(964),"important"),M[E(1058)][E(1351)]=E(685),M[E(1058)][E(991)]=E(735),M[E(1058)][E(550)]="-9999px";const P={},x=this[E(1483)][E(341)](D=>{const V=E,j=O[V(983)]("span");return j[V(1058)][V(1351)]="absolute",j[V(1058)][V(550)]="0",j[V(1058)][V(991)]="0",j.style[V(712)]=D,j[V(1058)][V(934)]=this[V(898)],j[V(1065)]=this.testString,M[V(896)](j),{font:D,span:j}});T[E(896)](M),x[E(892)](({font:D,span:V})=>{P[D]={width:V.offsetWidth,height:V.offsetHeight}});const I=[];for(const D of s){let V=!1;for(const j of this.baseFonts){const L=O[E(983)](E(1425));L.style[E(1351)]="absolute",L.style[E(550)]="0",L[E(1058)][E(991)]="0",L.style[E(712)]="'"+D+E(1466)+j,L[E(1058)][E(934)]=this[E(898)],L.textContent=this[E(323)],M.appendChild(L);const U=L.offsetWidth,F=L.offsetHeight;if(U!==P[j].width||F!==P[j].height){V=!0;break}}V&&I[E(939)](D)}M.parentNode&&M[E(738)][E(960)](M),v.parentNode&&v[E(738)].removeChild(v),o(I)}catch(O){v[E(738)]&&v[E(738)].removeChild(v),a(O)}},A=()=>{const E=m;v.parentNode&&v.parentNode[E(960)](v),a(new Error("Failed to create iframe for font detection"))};v[m(806)]("load",w),v[m(806)](m(381),A),document[m(1141)][m(896)](v)})}}b[c(428)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){(function(b){const c=p;class u{get[c(711)](){const o=c;if(!this[o(567)].browserInfo[o(1508)])return 0;let a=this[o(600)].ops;return!a&&(a=this[o(696)](),this[o(600)].ops=a),a}constructor(o,a,m,v){const w=c;this.sessionData=o,this.metadataParams=a,this[w(496)]=m,this.localAgentAccessor=v,this[w(549)]=null,this[w(1327)]=null,this[w(1100)]=null,this[w(1178)]=null,this[w(1120)]=null,this.isBatterySupported=null,this[w(1187)]=null,this[w(358)]=null,this.batteryChargingTime=null,this[w(1346)]=null,this[w(1469)]=new Map,this.lieTests={},this[w(485)]=null,this[w(717)]=new Set([w(1121),w(1104),"audio","audioBaseLatency",w(457),w(1385),w(356),w(807),w(568),w(1411),w(1210),w(1127),w(1031),w(639),w(663),w(834),w(1070),w(969),w(1289),"invertedColors","languages",w(1446),"monochrome",w(411),"osCpu",w(1371),w(1057),w(492),w(516),w(1285),w(885),"screenFrame","screenResolution","sessionStorage",w(658),w(1240),w(1230),w(354),w(847)]),this[w(1393)]=-1,this[w(726)]=0,this[w(604)]=0,this[w(437)]=[],this[w(509)]=[],this.audioOutputDevices=[],this[w(367)]=new Map,this[w(1337)]=null,this[w(589)]=null,this[w(907)]=0,this.metadataQueue=new h[w(417)](1),this[w(1174)]=null,this[w(849)]=null,this.autoFillMeta=new b.AutofillDetector,this[w(624)]=null,this[w(1166)]=null}getDeviceAttributes(){return gt(this,void 0,void 0,function*(){const o=p;return this[o(646)][o(373)](()=>gt(this,void 0,void 0,function*(){const a=o;!this[a(1337)]&&(this.lastCalculatedMetadata=yield this.calculateDeviceMetadata(),h._POSignalsUtils[a(867)][a(1300)](a(430)),h[a(631)][a(867)][a(1300)](a(879)+this.deviceId),h[a(631)][a(867)][a(1300)](a(875)+this[a(1327)]),this[a(600)].closeTrustStore());const m=typeof window!==a(480)&&window[a(342)]&&typeof window[a(342)][a(368)]===a(497)?window[a(342)][a(368)]:null;return this.lastCalculatedMetadata&&(this.lastCalculatedMetadata[a(1019)]=m),this[a(600)]&&this[a(600)][a(1384)]&&(yield this[a(377)]()),yield this[a(1320)](),this[a(600)]&&this[a(600)][a(945)]&&this[a(395)](),this[a(600)][a(1472)]&&(this[a(1174)]=JSON.stringify(this[a(1337)])),this[a(1337)]}))})}getGeoLocationData(){var o,a,m,v;return gt(this,void 0,void 0,function*(){const w=p;this[w(1337)]=Object.assign(Object.assign({},this[w(1337)]),{htmlGeoLocation_latitude:void 0,htmlGeoLocation_longitude:void 0,htmlGeoLocation_accuracy:void 0,htmlGeoLocation_speed:void 0,htmlGeoLocation_heading:void 0,htmlGeoLocation_timestamp:void 0,htmlGeoLocation_ErrorMessage:"",htmlGeoLocation_ErrorCode:""});const A=(D,V="")=>{const j=w,L=D[j(368)]>255?D[j(1106)](0,252)+j(360):D;return this[j(1337)].htmlGeoLocation_ErrorMessage=L,this[j(1337)][j(894)]=V,{status:j(381),message:L}},E=D=>{const V=w;switch(D){case 1:return A(V(607),V(1287));case 2:return A(V(756),V(1171));case 3:return A(V(805),V(591));default:return A(V(1197),V(1171))}};if(!navigator[w(597)])return A("Geolocation API is not supported by this browser.",w(933));const O=this[w(1337)][w(1379)].toLowerCase(),T=O[w(1461)](w(1084)),M=O[w(1461)](w(1478));let P=!1;const x=yield navigator[w(1184)][w(410)]({name:w(597)});if(this[w(1337)][w(917)]=x[w(628)],x[w(628)]===w(338))return A(w(1313)+x[w(628)]+w(714)+O+"'.","PERMISSION_DENIED");const I=this[w(600)][w(1302)]();if(I)try{const D=JSON.parse(I);if(D&&D.latitude&&D[w(1028)])this[w(1337)][w(675)]=D[w(398)]?parseFloat(D.latitude[w(1525)](2)):null,this[w(1337)][w(958)]=D[w(1028)]?parseFloat(D[w(1028)][w(1525)](2)):null,this[w(1337)].htmlGeoLocation_accuracy=(o=D[w(801)])!==null&&o!==void 0?o:null,this[w(1337)][w(703)]=(a=D.speed)!==null&&a!==void 0?a:null,this[w(1337)][w(314)]=(m=D.heading)!==null&&m!==void 0?m:null,this[w(1337)][w(651)]=(v=D[w(456)])!==null&&v!==void 0?v:null,delete this.lastCalculatedMetadata[w(1092)],delete this[w(1337)][w(894)],P=!0;else if(D&&D.error_code)return P=!1,E(D[w(1530)])}catch(D){h._POSignalsUtils.Logger[w(1300)]("Invalid geoData JSON in session storage:",D)}if(x[w(628)]==="granted")return yield new Promise(D=>{const V={timeout:500},j=(L=1)=>{const U=p;navigator.geolocation[U(942)](F=>{const W=U;var J;const{latitude:$,longitude:ne,accuracy:ae,speed:te,heading:ie}=F[W(481)];if((!$||!ne||$===0||ne===0)&&(T||M)&&L===1)return j(2);this[W(1337)].htmlGeoLocation_latitude=$?parseFloat($[W(1525)](2)):void 0,this[W(1337)].htmlGeoLocation_longitude=ne?parseFloat(ne[W(1525)](2)):void 0,this.lastCalculatedMetadata.htmlGeoLocation_accuracy=ae,this[W(1337)].htmlGeoLocation_speed=te,this.lastCalculatedMetadata.htmlGeoLocation_heading=ie,this[W(1337)].htmlGeoLocation_timestamp=(J=F[W(456)])!==null&&J!==void 0?J:null,delete this[W(1337)][W(1092)],delete this[W(1337)][W(894)],P=!0,D({status:W(454)})},F=>{D(E(F[U(1416)])),P=!1},V)};j()});if(!P)return A(w(1313)+x[w(628)]+w(1234)+O+"'",w(1171))})}refreshDeviceAttributes(){return gt(this,void 0,void 0,function*(){const o=p;yield this[o(1383)]();const a=typeof window<"u"&&window[o(342)]&&typeof window.history[o(368)]===o(497)?window[o(342)][o(368)]:null;this.lastCalculatedMetadata&&(this[o(1337)][o(1019)]=a);const m=this[o(1186)][o(479)]();Object.assign(this.lastCalculatedMetadata,m)})}[c(1383)](){return gt(this,void 0,void 0,function*(){const o=p,a=160,m=window[o(883)]-window[o(1330)]>a,v=window[o(1332)]-window.innerHeight>a,w=o(m?421:1109);this[o(1337)][o(999)]=o(m||v?330:1474),this[o(1337)][o(918)]=m||v?w:o(477)})}[c(994)](){return gt(this,void 0,void 0,function*(){const o=p;return this[o(646)][o(373)](()=>gt(this,void 0,void 0,function*(){const a=o;if(this[a(907)]>=5)return this.localAgentJwt;if(this[a(600)][a(1011)])return!this[a(589)]&&(this[a(589)]=yield this[a(1076)][a(1292)]()),this[a(907)]++,this[a(589)]}))})}[c(795)](){return{identifier:"x1",key:"Xq7tSbjB517mhZwt"}}getSerializedDeviceAttributes(){return this[c(1174)]}[c(1329)](){return gt(this,void 0,void 0,function*(){const o=p;this[o(485)]=navigator[o(597)]!=null;const a=this[o(567)][o(788)],m=[this.sessionData[o(324)]().catch(w=>{const A=o;h[A(631)][A(867)][A(1300)](A(694),w)}),this[o(1441)](a)[o(689)](w=>{const A=o;h[A(631)][A(867)][A(1300)]("failed to get fingerprint info",w.message)}),this[o(1154)]()[o(689)](w=>{const A=o;h[A(631)][A(867)].info(A(1485),w[A(768)])}),b[o(1003)][o(1304)]()[o(689)](w=>h._POSignalsUtils[o(867)][o(1300)](o(916),w)),this[o(418)]()[o(689)](w=>h[o(631)][o(867)][o(1300)](o(1276),w)),new b[o(1459)](a)[o(627)]()[o(689)](w=>h[o(631)][o(867)][o(1300)](o(537),w)),new b[o(1004)](a)[o(328)]().catch(w=>h._POSignalsUtils[o(867)][o(1300)]("failed to get lies results",w)),this.audioIntVideoInit()[o(689)](w=>h[o(631)].Logger.info(o(387),w)),this[o(508)]()[o(689)](w=>h[o(631)][o(867)][o(1300)](o(503),w)),this[o(1339)](a)[o(689)](w=>h._POSignalsUtils[o(867)].info(o(757),w)),this[o(625)]()[o(689)](w=>{const A=o;return h[A(631)][A(867)][A(1300)]("failed to get voices info",w),0})];[this[o(549)],this.fingerPrint,this[o(750)],this[o(1051)],this[o(1184)],this[o(1469)],this[o(1033)],,,this[o(624)],this[o(1166)]]=yield Promise[o(683)](m),this[o(1327)]=this.sessionData.getDeviceCreatedAt();const v={ops:this.OPS,devicePixelRatio:window[o(1209)],screenWidth:window[o(405)][o(1431)],screenHeight:window[o(405)][o(507)]};return h[o(631)][o(1139)][o(872)](v,screen,!1),Object[o(1312)](Object[o(1312)](Object[o(1312)](Object.assign({deviceId:this[o(549)],device_created_ts:this[o(1327)],deviceType:this[o(567)][o(419)].deviceType,osVersion:(this[o(567)][o(419)][o(1311)]+" "+this[o(567)][o(419)][o(719)])[o(1451)]()||"",externalIdentifiers:this[o(496)],origin:location[o(1434)],href:location.href},yield this[o(445)](a)),this[o(393)]()),this.getSensorsMetadata()),v)})}[c(508)](){return gt(this,void 0,void 0,function*(){const o=p,a=this;yield h[o(631)].Util[o(989)](50,new Promise((m,v)=>{const w=o;navigator[w(1268)]?(this[w(1404)]=!0,navigator.getBattery()[w(804)](A=>{const E=w;A&&(a.batteryLevel=A[E(1137)],a[E(358)]=A[E(944)],a[E(1146)]=A.chargingTime,a[E(1346)]=A[E(1397)]),m()})[w(689)](A=>{const E=w;h[E(631)][E(867)][E(1300)](E(630)+A),m()})):(h._POSignalsUtils[w(867)][w(1300)](w(1444)),m())}))})}[c(1336)](){const o=c,a=/^((?!chrome|android).)*safari/i[o(431)](navigator[o(641)]);return!h._POSignalsUtils[o(1139)].inIframe()||!a}getRTCPeerConnection(){const o=c;let a=window[o(1118)]||window[o(1394)]||window[o(1223)];if(!a){const m=window["iframe.contentWindow"];m&&(a=m[o(1118)]||m.mozRTCPeerConnection||m[o(1223)])}return a}[c(482)](){const o=c,a=this;try{const m={},v=this[o(1369)](),w={optional:[{RtpDataChannels:!0}]},A={iceServers:[{urls:this[o(567)][o(556)][o(1451)]()}]},E=new v(A,w);E[o(1499)]=O=>{const T=o,M=1;if(O[T(1188)]){const P=/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/,x=P[T(1079)](O[T(1188)][T(1188)])[1];m[x]===void 0&&(O[T(1188)][T(1188)][T(1265)]("host")>0?a[T(367)][T(525)]("WEB_RTC_HOST_IP",x):O[T(1188)][T(1188)][T(1265)]("srflx")>0&&a[T(367)][T(525)]("WEB_RTC_SRFLX_IP",x)),m[x]=!0}},E[o(1422)](""),E[o(1489)](function(O){E.setLocalDescription(O,function(){},function(){})},function(){})}catch{}}[c(974)](){return gt(this,void 0,void 0,function*(){const o=p,a=this;yield h[o(631)][o(1139)][o(989)](50,new Promise((m,v)=>{const w=o;if(!this[w(1336)]()){h._POSignalsUtils[w(867)][w(1420)](w(986)),m();return}if(!navigator[w(855)]||!navigator.mediaDevices[w(1052)]){h[w(631)][w(867)][w(1420)](w(1331)),m();return}navigator.mediaDevices[w(1052)]()[w(804)](A=>{const E=w;A[E(892)](O=>{const T=E;O[T(790)]&&(O[T(790)][T(1479)]()=="audioinput"?(a[T(1100)]=!0,a[T(604)]++,O[T(1078)]&&a.audioInputDevices[T(939)](O.label)):O[T(790)][T(1479)]()==T(562)?(a.hasWebcam=!0,a[T(726)]++,O[T(1078)]&&a.videoInputDevices[T(939)](O.label)):O[T(790)][T(1479)]()=="audiooutput"&&(a[T(1178)]=!0,a.numberOfAudioDevices++,O[T(1078)]&&a[T(938)][T(939)](O[T(1078)])))}),m()})[w(689)](A=>{const E=w;h[E(631)][E(867)][E(1300)]("enumerateDevices failed",A),m()})}))})}[c(1441)](o){return gt(this,void 0,void 0,function*(){const a=p;if(o[a(438)](a(1009)))return Promise[a(1347)]("");const m=new Promise((w,A)=>gt(this,void 0,void 0,function*(){const E=a;try{const O=yield h[E(389)][E(925)](),T=yield O[E(996)]();this[E(687)]=T[E(453)],this[E(1418)]=T[E(953)],w(T[E(453)])}catch(O){h[E(631)][E(867)][E(1300)](E(623)+O);const T={err:O,message:E(329)};A(T)}})),v=new Promise((w,A)=>gt(this,void 0,void 0,function*(){const E=a;yield h._POSignalsUtils[E(1139)][E(929)](this[E(567)].fingerprintTimeoutMillis);const O={message:E(873)};A(O)}));return yield Promise.race([m,v])})}[c(1154)](){return gt(this,void 0,void 0,function*(){return new Promise((o,a)=>{const m=p;h.BroprintJS[m(640)]().then(v=>{const w=m;this[w(750)]=v,o(v)})[m(689)](v=>{const w=m;h[w(631)][w(867)].info("Failed to get Fingerprint from getCurrentBrowserFingerPrint",v),a(v)})})})}[c(1339)](o){return gt(this,void 0,void 0,function*(){const a=p;if(o[a(438)]("fontFingerprint"))return Promise.resolve(null);try{const m=new b[a(428)],v=yield m.getQuickFingerprint();return this[a(624)]=v,v}catch(m){return h[a(631)][a(867)].info(a(1375)+m),null}})}getSensorsMetadata(){const o=c,a={};return this[o(592)](a,o(760),()=>o(335)in window),this[o(592)](a,"IS_TOUCH_DEVICE",()=>"ontouchstart"in window),!window[o(1401)]&&this[o(592)](a,o(665),()=>!1),!window[o(886)]&&this.flatAndAddMetadata(a,o(532),()=>!1),this[o(592)](a,o(761),()=>o(486)in window),a}getIdentificationMetadata(o){return gt(this,void 0,void 0,function*(){const a=p,m=this,v={};this[a(592)](v,"FINGER_PRINT",()=>this[a(687)]),this[a(592)](v,a(501),()=>this[a(750)]),this[a(624)]&&this[a(592)](v,a(1192),()=>{const I=a;return this[I(624)][I(447)]}),this[a(567)].browserInfo[a(869)]&&(this[a(592)](v,a(1034),()=>{const I=a;return this[I(567)][I(419)].osName}),this.flatAndAddMetadata(v,a(884),()=>{const I=a;return this[I(567)][I(419)][I(719)]})),this[a(567)][a(419)][a(869)]&&(this[a(592)](v,a(901),()=>{const I=a;return this.metadataParams[I(419)][I(1143)]}),this[a(592)](v,"DEVICE_VENDOR",()=>{const I=a;return this[I(567)][I(419)][I(900)]}),this[a(592)](v,"DEVICE_CATEGORY",()=>{const I=a;return this.metadataParams[I(419)][I(1399)]})),this[a(567)][a(419)][a(869)]&&(this[a(592)](v,a(655),()=>{const I=a;return this[I(567)][I(419)][I(975)]}),this[a(592)](v,"BROWSER_ENGINE_VERSION",()=>{const I=a;return this.metadataParams[I(419)][I(1495)]})),this[a(567)][a(419)].userAgentData&&this.flatAndAddMetadata(v,"CPU_ARCHITECTURE",()=>{const I=a;return this.metadataParams[I(419)][I(822)]}),this.metadataParams[a(419)].userAgentData&&(this[a(592)](v,"BROWSER_NAME",()=>{const I=a;return this[I(567)][I(419)].browserName}),this[a(592)](v,a(863),()=>{const I=a;return this.metadataParams[I(419)][I(866)]}),this.flatAndAddMetadata(v,a(1101),()=>{const I=a;return this[I(567)][I(419)][I(690)]}),this[a(592)](v,"BROWSER_TYPE",()=>{const I=a;return this[I(567)][I(419)][I(659)]}));const w=new b[a(1408)];this[a(592)](v,a(1328),()=>{const I=a;return w[I(1044)](this.metadataParams.browserInfo[I(869)].ua)}),this[a(592)](v,"IS_BOT",()=>{const I=a;return w[I(1203)](this.metadataParams[I(419)][I(869)].ua)}),this.flatAndAddMetadata(v,a(870),()=>{const I=a;return w.isChromeFamily(this[I(567)][I(419)][I(869)][I(1450)])}),this[a(592)](v,"IS_ELECTRON_FAMILY",()=>{const I=a;return w[I(1047)](this[I(567)][I(419)].userAgentData.ua)}),this.flatAndAddMetadata(v,a(598),()=>navigator.vendor),this[a(592)](v,a(1114),()=>{const I=a;return navigator[I(492)]?navigator[I(492)][I(368)]:null}),this.flatAndAddMetadata(v,a(1035),()=>{const I=a;return navigator.mimeTypes?navigator[I(614)][I(368)]:null}),this[a(592)](v,a(1400),()=>{const I=a;return navigator[I(359)]||navigator[I(351)]||navigator.browserLanguage||navigator.systemLanguage}),this.flatAndAddMetadata(v,a(784),()=>navigator[a(1402)]);const A=navigator[a(1402)]?navigator.languages[a(368)]:0;this[a(592)](v,"NAVIGATOR_LANGUAGES_COUNT",()=>A);const E=this[a(1166)]!==null?this[a(1166)]:0;this[a(592)](v,a(1477),()=>E),this[a(592)](v,"NAVIGATOR_MAX_TOUCH_POINTS",()=>{const I=a;return navigator[I(858)]||navigator[I(1238)]}),this[a(592)](v,a(1438),()=>navigator[a(965)]||navigator.msPointerEnabled),this[a(592)](v,a(880),()=>navigator.webdriver),this[a(592)](v,a(1249),()=>navigator[a(1070)]),this[a(592)](v,a(490),()=>navigator[a(1218)]!=null),this[a(592)](v,a(593),()=>"Notification"in window),this[a(592)](v,a(621),()=>navigator[a(1134)]),this.flatAndAddMetadata(v,a(1098),()=>navigator[a(1014)]),this.flatAndAddMetadata(v,a(830),()=>navigator[a(1048)]),this.flatAndAddMetadata(v,a(702),()=>navigator[a(563)]),this.flatAndAddMetadata(v,a(903),()=>navigator[a(1057)]),this[a(592)](v,a(1338),()=>navigator[a(1088)]),this[a(592)](v,a(363),()=>navigator[a(641)]),this.flatAndAddMetadata(v,"NAVIGATOR_PDF_VIEWER_ENABLED",()=>navigator[a(1371)]),this[a(592)](v,a(442),()=>navigator[a(1127)]),this[a(592)](v,a(802),()=>{const I=a;return navigator[I(606)]?navigator[I(606)].rtt:null}),!o[a(438)]("modernizr")&&(yield this.safeAddModernizrFeatures(v));const O=window[a(923)]||window[a(1428)];O?this[a(592)](v,"JS_CHALLENGE",()=>O):this.flatAndAddMetadata(v,a(985),()=>a(477)),this[a(592)](v,"BROWSER_TAB_HISTORY_LENGTH",()=>{const I=a;return typeof window!==I(480)&&window[I(342)]&&typeof window[I(342)][I(368)]=="number"?window[I(342)][I(368)]:null});const T=new b.WebGLMetadata;if(this[a(592)](v,"IS_WEBGL",()=>T[a(1191)]()),this[a(592)](v,"WEBGLVENDORANDRENDERER",()=>{const I=a;return T.getWebglData().vendor+"~"+T[I(1083)]()[I(652)]}),this[a(592)](v,a(680),()=>T[a(1125)]()),T[a(1125)]()?this[a(592)](v,a(832),()=>{const I=a;return T[I(1083)]()[I(1230)]+"~"+T[I(1083)]().renderer}):this[a(592)](v,"WEBGL2VENDORANDRENDERER",()=>""),this[a(592)](v,"WEBGL_VERSION",()=>{const I=a;return T[I(1083)]()[I(723)]}),this.flatAndAddMetadata(v,a(920),()=>T.getWebglData().shadingLanguageVersion),this[a(592)](v,a(895),()=>{const I=a;return T.getWebglData()[I(791)].length}),this[a(592)](v,"WEBGL_MAXTEXTURESIZE",()=>{const I=a;return T[I(1083)]()[I(469)]}),this[a(592)](v,a(997),()=>{const I=a;return T[I(1083)]()[I(1373)]}),this[a(592)](v,a(1259),()=>{const I=a;return T.getWebglData()[I(1398)]}),this[a(592)](v,a(667),()=>{const I=a;return T[I(1083)]()[I(577)]}),this[a(592)](v,a(1301),()=>T[a(1083)]().maxCombinedTextureImageUnits),this[a(592)](v,a(534),()=>T.getWebglData().maxVertexAttribs),this[a(592)](v,"WEBGL_MAXVARYINGVECTORS",()=>{const I=a;return T[I(1083)]()[I(811)]}),this[a(592)](v,a(1094),()=>{const I=a;return T[I(1083)]()[I(506)]}),this[a(592)](v,a(664),()=>{const I=a;return T[I(1083)]()[I(476)]}),this.flatAndAddMetadata(v,a(1130),()=>T[a(648)]()),this.flatAndAddMetadata(v,a(1494),()=>T[a(1502)]()),this.flatAndAddMetadata(v,"HASLIEDOS",()=>T[a(993)]()),this.flatAndAddMetadata(v,a(1105),()=>T.getHasLiedBrowser()),this[a(1418)])for(const I in this.fingerPrintComponents){if(!this[a(1418)][a(1417)](I))continue;const D=this[a(1418)][I];I==a(663)?this[a(592)](v,a(414),()=>{const V=a;return D[V(584)][V(368)]}):I==a(457)?this[a(592)](v,"IS_CANVAS",()=>D.value!=null):I=="screenResolution"&&D[a(584)]&&D.value.length?this.flatAndAddMetadata(v,a(602),()=>D.value.join(",")):I=="touchSupport"&&D.value?this[a(592)](v,a(853),()=>D.value):I=="audio"&&D[a(584)]?this[a(592)](v,a(494),()=>D[a(584)]):I=="osCpu"&&D[a(584)]?this[a(592)](v,a(385),()=>D[a(584)]):I=="cookiesEnabled"&&D[a(584)]?this[a(592)](v,a(348),()=>D[a(584)]):I==a(1321)&&D[a(584)]&&D[a(584)][a(368)]?this[a(592)](v,a(449),()=>{const V=a;return D[V(584)][V(1512)](",")}):I==a(1104)&&D[a(584)]?this[a(592)](v,a(510),()=>D[a(584)]):I=="domBlockers"&&D[a(1298)]?this[a(592)](v,"DOM_BLOCKERS",()=>D[a(1298)]):I==a(639)&&D[a(584)]?this[a(592)](v,"FONT_PREFERENCES",()=>D[a(584)]):I==a(1371)&&D.value?this.flatAndAddMetadata(v,a(932),()=>D[a(584)]):I=="vendorFlavors"&&D[a(584)]&&D[a(584)].length?this.flatAndAddMetadata(v,a(844),()=>{const V=a;return D[V(584)][V(1512)](",")}):I==a(963)&&D[a(584)]?this[a(592)](v,a(1468),()=>D[a(584)].renderer):m[a(717)].has(I)&&I!=null&&this[a(592)](v,I[a(720)](),()=>D.value)}this[a(592)](v,a(1254),()=>this[a(1051)]),this[a(592)](v,"IS_WEB_GLSTATUS",()=>this[a(1393)]);const M={selenium:navigator[a(859)]||h[a(631)][a(1139)][a(1503)](window[a(1306)][a(1157)],a(859))||"",phantomjs:{_phantom:window[a(441)]||"",__phantomas:window.__phantomas||"",callPhantom:window[a(1152)]||""},nodejs:{Buffer:window[a(1131)]||""},couchjs:{emit:window[a(1108)]||""},rhino:{spawn:window[a(321)]||""},chromium:{domAutomationController:window[a(1221)]||"",domAutomation:window[a(911)]||""},outerWidth:window.outerWidth,outerHeight:window.outerHeight};this[a(592)](v,a(1228),()=>M),this[a(592)](v,a(1228),()=>this[a(1469)]),this.flatAndAddMetadata(v,a(794),()=>{const I=a,D={};for(const V in this.lieTests)D[V]=JSON[I(833)](this[I(1033)][V]);return Object[I(345)](D)[I(368)]>0?D:null}),this[a(592)](v,a(1099),()=>new b[a(704)](o)[a(1165)]()),this[a(592)](v,"REF_LINK",()=>document[a(1324)]),this[a(592)](v,a(940),()=>{const I=a,D={length:navigator.plugins.length,details:[]};for(let V=0;V<D[I(368)];V++)D[I(1204)][I(939)]({length:navigator.plugins[V][I(368)],name:navigator[I(492)][V][I(1246)],version:navigator[I(492)][V][I(317)],filename:navigator[I(492)][V][I(1291)]});return D}),this[a(592)](v,a(737),()=>this[a(604)]),this.flatAndAddMetadata(v,"VIDEO",()=>this[a(726)]),this.videoInputDevices&&this[a(437)][a(368)]>0&&this[a(592)](v,a(699),()=>{const I=a;return this.videoInputDevices[I(861)]()}),this.audioInputDevices&&this[a(509)][a(368)]>0&&this[a(592)](v,a(1055),()=>this[a(509)].toString()),this[a(938)]&&this.audioOutputDevices[a(368)]>0&&this[a(592)](v,a(333),()=>{const I=a;return this[I(938)][I(861)]()}),this.flatAndAddMetadata(v,"MEDIA_CODEC_MP4_AVC1",()=>{const I=a;return this[I(1119)](I(1170))}),this[a(592)](v,a(1241),()=>{const I=a;return this[I(1119)](I(1067))}),this[a(592)](v,"MEDIA_CODEC_AAC",()=>{const I=a;return this.getMediaCodec(I(1429))});const P=this.metadataParams[a(691)];for(const I in P)P[a(1417)](I)&&this[a(592)](v,"MEDIA_CODEC_"+I,()=>this.getMediaCodec(P[I]));window.performance&&window[a(670)][a(948)]&&(this.flatAndAddMetadata(v,a(742),()=>{const I=a;return window[I(670)][I(948)][I(612)]}),this[a(592)](v,"MEMORY_TOTAL_HEAP_SIZE",()=>{const I=a;return window[I(670)][I(948)].totalJSHeapSize}),this[a(592)](v,"MEMORY_USED_HEAP_SIZE",()=>{const I=a;return window[I(670)][I(948)][I(841)]})),this[a(592)](v,a(1061),()=>navigator[a(1262)]),this[a(592)](v,a(626),()=>b[a(798)].seleniumInDocument()),this[a(592)](v,a(1480),()=>{const I=a;return b[I(798)][I(1113)]()}),this[a(592)](v,a(436),()=>{const I=a;return b[I(798)][I(638)]()}),this[a(592)](v,a(1012),()=>b[a(798)].seleniumSequentum()),this.flatAndAddMetadata(v,"DOCUMENT_ELEMENT_SELENIUM",()=>{const I=a;return h[I(631)].Util[I(1503)](window[I(1306)].documentElement,I(1307))}),this[a(592)](v,a(1075),()=>{const I=a;return h[I(631)][I(1139)].getAttribute(window[I(1306)][I(1157)],I(859))}),this[a(592)](v,a(415),()=>{const I=a;return h._POSignalsUtils[I(1139)][I(1503)](window[I(1306)].documentElement,I(1405))}),this.flatAndAddMetadata(v,a(836),()=>!!h[a(631)][a(1139)][a(1503)](document.getElementsByTagName("html")[0],a(859))),this[a(592)](v,a(1142),()=>!!window.geb),this[a(592)](v,a(1252),()=>!!window[a(326)]),this.flatAndAddMetadata(v,a(463),()=>!!window[a(1406)]),this[a(592)](v,a(1440),()=>!!window[a(1211)]),this[a(592)](v,a(1437),()=>a(1437)in document),this[a(592)](v,a(634),()=>"trustTokenOperationError"in XMLHttpRequest[a(622)]),this[a(592)](v,a(498),()=>a(498)in XMLHttpRequest.prototype),this[a(592)](v,"trustToken",()=>a(1006)in HTMLIFrameElement[a(622)]),this[a(592)](v,"localStorage.length",()=>localStorage[a(368)]),this[a(592)](v,a(370),()=>sessionStorage[a(368)]),this[a(600)][a(1037)].forEach(I=>{const D=a;this.flatAndAddMetadata(v,I[D(720)]()+D(557),()=>!0)}),this[a(592)](v,a(746),()=>!!this[a(1369)]()),this[a(567)][a(556)]&&this[a(567)][a(556)].length>0&&(this[a(482)](),this[a(367)][a(892)]((I,D)=>{D!=null&&I!=null&&this.flatAndAddMetadata(v,D,()=>I)}),this[a(367)][a(725)]()),window[a(773)]&&this[a(592)](v,a(471),()=>{const I=a,D=window[I(773)]("(min-width: "+(window[I(1330)]-1)+I(1060));return{matches:D[I(1256)],media:D.media}}),this[a(478)](v,o),window[a(362)]&&this.flatAndAddMetadata(v,a(1341),()=>{const I=a;return window[I(362)][I(1049)]}),this[a(592)](v,a(1062),()=>window[a(771)]&&a(1151)in window[a(771)]),this[a(592)](v,"HAS_CHROME_CSI",()=>window[a(771)]&&a(1430)in window.chrome),this[a(592)](v,a(877),()=>window[a(771)]&&a(610)in window[a(771)]),this.flatAndAddMetadata(v,a(455),()=>window[a(771)]&&a(1128)in window[a(771)]),yield this[a(1350)](v),this[a(592)](v,a(383),()=>!!navigator[a(780)]),this[a(592)](v,a(320),()=>!!navigator.hid),this[a(592)](v,a(505),()=>!!navigator.serial),this.flatAndAddMetadata(v,a(1153),()=>!!navigator.presentation);try{if(!o.has(a(736))&&h.Util[a(1136)](document[a(1388)])){const{id:I,version:D}=yield h[a(1139)][a(989)](100,document.interestCohort());this.flatAndAddMetadata(v,a(1181),()=>I),this.flatAndAddMetadata(v,a(786),()=>D)}}catch{}for(const I in this[a(567)][a(548)])this.flatAndAddMetadata(v,I,()=>h[a(631)][a(1139)][a(972)](window,this[a(567)][a(548)][I]));const x=this.metadataParams.propertyDescriptors;for(const I in x){if(!x[a(1417)](I))continue;const D=I===a(1447)?window:window[I];D&&this[a(375)](D,I.toUpperCase()+"_PROPERTY_DESCRIPTOR",x[I],v)}return v})}[c(1350)](o){return gt(this,void 0,void 0,function*(){const a=p;try{const m=navigator[a(869)];if(!m)return;this[a(592)](o,a(1296),()=>m[a(1057)]),this.flatAndAddMetadata(o,a(1355),()=>m[a(512)]);const v=m[a(1016)];if(!v)return;for(let w=0;w<v[a(368)];w++)if(v[w].hasOwnProperty("brand")&&v[w][a(1417)](a(317))){const A=v[w][a(1374)]+":"+v[w][a(317)];this.flatAndAddMetadata(o,a(881)+w,()=>A)}if(typeof m[a(1391)]===a(1064)){const w=[a(1104),a(1294),a(555),a(1340),a(957),"formFactor"],A=yield m[a(1391)](w);if(this[a(592)](o,a(838),()=>A[a(1104)]),this[a(592)](o,a(429),()=>A[a(1294)]),this[a(592)](o,a(950),()=>A.model),this[a(592)](o,"NAVIGATOR_CLIENT_HINTS_PLATFORM_VERSION",()=>A[a(1340)]),this[a(592)](o,a(1270),()=>{const E=a;return A[E(334)]?Array[E(553)](A[E(334)])?A[E(334)][E(1512)](", "):String(A[E(334)]):""}),A.fullVersionList){const E=A.fullVersionList[a(341)](O=>O.brand+" v"+O[a(317)])[a(1512)]("; ");this[a(592)](o,a(558),()=>E)}}}catch(m){h[a(631)][a(867)][a(1300)](a(1529),m)}})}[c(375)](o,a,m,v){const w=c;try{for(const A of m)this[w(592)](v,a+"_"+A[w(720)](),()=>{const E=w,O=o[E(622)]?o[E(622)]:o,T=Object.getOwnPropertyDescriptor(O,A);if(T){const M=T[E(996)]?T[E(996)][E(861)]():void 0;return JSON[E(833)]({configurable:T[E(1507)],enumerable:T[E(1325)],value:T[E(584)],writable:T[E(815)],getter:M!=null&&M.length<100?M:void 0})}return"undefined"})}catch(A){h[w(631)][w(867)][w(1300)]("failed to add properties descriptor",A)}}addIframeData(o,a){const m=c;if(!a[m(438)]("IFRAME_DATA"))try{const v=h[m(631)][m(1139)][m(325)](m(697));if(!v)return;v[m(882)]="blank page",document[m(1141)][m(896)](v),this[m(592)](o,m(679),()=>{const w=m;return typeof v[w(772)][w(771)]}),this[m(592)](o,"IFRAME_WIDTH",()=>{const w=m;return v[w(772)][w(405)][w(1431)]}),this[m(592)](o,m(1022),()=>{const w=m;return v[w(772)][w(405)][w(507)]}),v[m(1283)]()}catch(v){h[m(631)].Logger[m(1300)](m(1147),v)}}[c(418)](){return gt(this,void 0,void 0,function*(){const o=p,a={},m=[o(1248),o(1085),o(1481),o(1045),o(1326),o(448),o(1217),o(597),o(783),o(642),o(1024),o(1279),o(698),"payment-handler","persistent-storage",o(939)],v=[];if(navigator[o(1184)])for(const w in m){const A=m[w];v.push(navigator[o(1184)][o(410)]({name:A})[o(804)](E=>{const O=o;a[A]=E[O(628)]})[o(689)](E=>{}))}try{yield Promise[o(683)](v)}catch(w){h[o(631)].Logger[o(1300)](w)}return a})}[c(1119)](o){const a=c,m=document[a(983)]("video");if(m&&m[a(327)])return m[a(327)](o)}[c(669)](o){return gt(this,void 0,void 0,function*(){const a=p;h[a(1257)]();const m=this,v=h[a(380)],w=v[a(1172)],A=v[a(585)];this[a(592)](o,a(1323),()=>v[a(893)]),this[a(592)](o,a(388),()=>v[a(1233)]),this[a(592)](o,a(839),()=>!!v[a(839)]),v.audio&&this.flatAndAddMetadata(o,"audio",()=>v.audio),this[a(592)](o,a(397),()=>{const T=a;return!!w("battery",navigator)||!!w(T(1268),navigator)}),this[a(592)](o,a(502),()=>v[a(666)]),this[a(592)](o,"context_menu",()=>v[a(1465)]),this[a(592)](o,a(1102),()=>v.cors),this[a(592)](o,a(946),()=>v.cryptography),this.flatAndAddMetadata(o,a(1029),()=>v[a(1164)]),this[a(592)](o,a(1198),()=>v[a(1054)]),this[a(592)](o,a(1500),()=>v.customevent),this.flatAndAddMetadata(o,"dart",()=>v.dart),this[a(592)](o,a(1288),()=>v[a(573)]),this[a(592)](o,a(809),()=>v[a(649)]);const E=yield this[a(1190)](a(1207));m[a(592)](o,"exif_orientation",()=>E),this[a(592)](o,a(700),()=>v[a(1273)]),v.forcetouch&&(this[a(592)](o,a(1126),()=>A(w("mouseforcewillbegin",window,!1),window)),this[a(592)](o,a(1145),()=>MouseEvent[a(616)]),this[a(592)](o,a(1180),()=>MouseEvent[a(1370)])),this.flatAndAddMetadata(o,a(718),()=>v[a(1315)]),this[a(592)](o,a(470),()=>v[a(1372)]),this[a(592)](o,a(599),()=>v[a(597)]),this[a(592)](o,a(1407),()=>v[a(1407)]);const O=yield this[a(1190)](a(382));m[a(592)](o,"indexed_db",()=>O),this[a(592)](o,a(1511),()=>v[a(748)]),this[a(592)](o,a(1484),()=>v[a(552)]),this[a(592)](o,a(961),()=>v[a(961)]),this[a(592)](o,a(491),()=>v[a(491)]),this.flatAndAddMetadata(o,"media_source",()=>"MediaSource"in window),this[a(592)](o,"message_channel",()=>v[a(1149)]),this[a(592)](o,a(571),()=>v[a(571)]),this[a(592)](o,a(741),()=>v[a(611)]),this.flatAndAddMetadata(o,"performance",()=>v.performance),this.flatAndAddMetadata(o,"pointer_events",()=>v[a(538)]),this[a(592)](o,a(927),()=>v[a(1236)]),this[a(592)](o,a(1277),()=>v[a(1277)]),this[a(592)](o,a(692),()=>v[a(905)]),this.flatAndAddMetadata(o,"quota_management",()=>v[a(845)]),this[a(592)](o,a(1091),()=>v[a(366)]),this[a(592)](o,a(1272),()=>v[a(824)]),this[a(592)](o,a(797),()=>v[a(1389)]),this[a(592)](o,a(1074),()=>v.typedarrays),this[a(592)](o,a(1218),()=>v[a(1218)]),this[a(592)](o,a(654),()=>!!v[a(654)]),v.video&&this[a(592)](o,a(654),()=>v.video),this[a(592)](o,a(959),()=>v.webgl),this[a(592)](o,a(426),()=>v[a(1439)]),this[a(592)](o,"x_domain_request",()=>v.xdomainrequest),this[a(592)](o,"matchmedia",()=>v[a(1454)])})}[c(393)](){const o=c,a={},m=navigator.connection||navigator[o(1463)]||navigator.webkitConnection;return this[o(592)](a,"NETWORK_TYPE",()=>m?m.type:null),this[o(592)](a,o(1111),()=>m?m[o(682)]:null),this[o(592)](a,o(661),()=>!!navigator[o(402)]),this[o(592)](a,o(1343),()=>this.hasSpeakers),this.flatAndAddMetadata(a,o(1026),()=>this[o(1100)]),this.flatAndAddMetadata(a,o(1123),()=>this[o(1120)]),this[o(1404)]&&(this.flatAndAddMetadata(a,"BATTERY_SUPPORTED",()=>this.isBatterySupported),this[o(592)](a,o(1357),()=>this[o(1187)]),this.flatAndAddMetadata(a,o(1206),()=>this[o(358)]),this[o(592)](a,o(347),()=>this[o(1146)]),this[o(592)](a,o(446),()=>this.batteryDischargingTime)),this[o(592)](a,o(1247),()=>this[o(485)]),this[o(592)](a,"IS_MOBILE",()=>{const v=o;return h._POSignalsUtils[v(1139)][v(1250)]}),this[o(592)](a,o(979),()=>{const v=o;return v(374)in document[v(1157)]}),window[o(773)]&&(this.flatAndAddMetadata(a,"HAS_FINE_POINTER",()=>window[o(773)]("(any-pointer: fine)")[o(1256)]),this[o(592)](a,"HAS_COARSE_POINTER",()=>window[o(773)]("(any-pointer: coarse)").matches),this[o(592)](a,o(386),()=>window[o(773)](o(391))[o(1256)])),this[o(592)](a,o(1185),()=>this[o(1184)]),this[o(592)](a,o(1386),()=>{const v=o;return window[v(773)](v(422))[v(1256)]?v(319):window[v(773)](v(930))[v(1256)]?v(409):void 0}),a}[c(579)](o,a,m){const v=c;try{const w=new Set(this.metadataParams[v(788)]||[]);a!=null&&m!=null&&!w[v(438)](a)&&(o[a]=m)}catch(w){h._POSignalsUtils.Logger[v(1300)]("Failed to add "+a+v(1333)+m+", "+w)}}[c(1190)](o){return gt(this,void 0,void 0,function*(){const a=p,m=new Promise(w=>{const A=p;try{h[A(380)].on(o,E=>{w(E)})}catch(E){w(null),h[A(631)][A(867)].info(A(1168)+o,E)}}),v=h[a(631)][a(1139)][a(929)](250)[a(804)](()=>null);return yield Promise[a(987)]([m,v])})}[c(592)](o,a,m){const v=c;try{const w=new Set(this[v(567)][v(788)]||[]);if(!a||w[v(438)](a))return;const A=m();if(typeof A===v(574)&&A!==null){const E=h._POSignalsUtils.Util[v(912)](A);for(const O in E)this[v(579)](o,a+"."+O,E[O])}else this.safeAddMetadata(o,a,A)}catch(w){h[v(631)][v(867)][v(1300)]("Failed to add "+a,w)}}[c(696)](){const o=c;let a=new Date,m=0,v;do m++,v=new Date()[o(1144)]()-a.getTime(),Math[o(998)](m*Math[o(605)]());while(v<500);const w=m/v;return h[o(631)][o(867)][o(1420)]("Ops : "+w),w}[c(395)](){const o=c,a=[{name:o(1096),value:!1,error:null},{name:o(684),value:!1,error:null},{name:o(1013),value:!1,error:null},{name:o(1395),value:!1,error:null}];!this[o(849)]&&(this.aiSignalsResult=a,this[o(1337)][o(1115)]=a,h.AiaSignals.detect()[o(804)](m=>{const v=o;this[v(849)]=m,this[v(1337)].aiaSignals=m})[o(689)](m=>{const v=o;h._POSignalsUtils.Logger.info(v(643),m)})),this[o(849)]&&(this.lastCalculatedMetadata[o(1115)]=this.aiSignalsResult)}static[c(1335)](){const o=c;return Math[o(1522)](.123)==1.4474840516030247&&Math[o(1297)](Math[o(677)])==.881373587019543&&Math.atan(2)==1.1071487177940904&&Math[o(751)](.5)==.5493061443340548&&Math[o(752)](Math.PI)==1.4645918875615231&&Math.cos(21*Math[o(840)])==-.4067775970251724&&Math[o(336)](492*Math[o(707)])==9199870313877772e292&&Math[o(566)](1)==1.718281828459045&&Math.hypot(6*Math.PI,-100)==101.76102278593319&&Math[o(1043)](Math.PI)==.4971498726941338&&Math[o(713)](Math.PI)==12246467991473532e-32&&Math[o(1476)](Math.PI)==11.548739357257748&&Math[o(608)](10*Math[o(707)])==-3.3537128705376014&&Math[o(1290)](.123)==.12238344189440875&&Math[o(523)](Math.PI,-100)==19275814160560204e-66}[c(625)](){return gt(this,void 0,void 0,function*(){return new Promise(o=>{const a=p;if(typeof window===a(480)||!window.speechSynthesis)return o(0);const m=window[a(340)][a(1163)]();if(m[a(368)]>0)o(m.length);else{const v=()=>{const w=a,A=window[w(340)][w(1163)]();A[w(368)]>0&&(window[w(340)][w(888)](w(956),v),o(A[w(368)]))};window[a(340)][a(806)]("voiceschanged",v),window[a(340)][a(1163)](),setTimeout(()=>{const w=a;window[w(340)].removeEventListener(w(956),v),o(0)},500)}})})}}b[c(846)]=u;class f{constructor(o,a){const m=c;this[m(435)]=o,this[m(1342)]=a,this.AGENT_BASE_URL=m(722),this[m(1528)]="/device"}getDevicePayload(){return gt(this,void 0,void 0,function*(){const o=p,a=this[o(902)]+":"+this[o(435)]+this.AGENT_DEVICE_URL,m=new AbortController,v=m[o(1239)],w=setTimeout(()=>m[o(657)](),this[o(1342)]);try{const A=yield fetch(a,{method:o(636),headers:{"Content-Type":o(874)},signal:v});if(!A.ok)return h[o(631)][o(867)].info(o(495)+A[o(1445)]),void 0;const E=yield A[o(1299)]();return h[o(631)][o(867)][o(1300)]("calculated workstation device attributes."),E}catch(A){return A.name==="AbortError"?h[o(631)][o(867)].error("Failed to fetch the Workstation data. Request timed out after "+this[o(1342)]+"ms"):h[o(631)][o(867)].info(o(1103)+A[o(768)]),void 0}finally{clearTimeout(w)}})}}b[c(474)]=f})(h[g(813)]||(h._POSignalsMetadata={}))})(ee||(ee={}));var ee;(function(h){(function(b){const c=p;class u{static[c(1363)](){const s=c,o=["__webdriver_evaluate",s(1264),s(1380),"__webdriver_script_func",s(583),s(1462),s(818),"__webdriver_unwrapped",s(1202),"__selenium_unwrapped",s(1455)];for(const a of o)if(document[a])return!0;return!1}static[c(1113)](){const s=c,o=[s(441),"__nightmare",s(980),s(1152),"calledSelenium","callSelenium","_Selenium_IDE_Recorder"];for(const a of o)if(window[a])return!0;return!1}static[c(638)](){const s=c,o=["webdriver",s(1202),s(860),s(1264),"__fxdriver_evaluate",s(818),s(1435),s(715),s(1455),"_Selenium_IDE_Recorder",s(980),s(1322),s(475),s(915),s(891),s(1303),s(775),s(1492),s(837),s(1317),"__webdriver_script_fn","__$webdriverAsyncExecutor",s(1493),s(595),s(852),s(1318),s(440)];for(const a of o)if(navigator[a])return!0;return!1}static[c(450)](){const s=c;return window[s(1424)]&&window[s(1424)][s(861)]()&&window[s(1424)][s(861)]()[s(1265)]("Sequentum")!=-1}}b[c(798)]=u})(h[g(813)]||(h._POSignalsMetadata={}))})(ee||(ee={}));var ee;(function(h){(function(b){const c=p,u=c(555),f=c(1246),s=c(322),o=c(1230),a=c(317),m=c(512),v=c(878),w="crawler",A="cli",E=c(1179),O=c(1082),T=c(1475),M=c(315),P=c(835),x=Object.freeze({browser:[[/(wget|curl|lynx|elinks|httpie)[\/ ]\(?([\w\.-]+)/i],[f,a,[s,A]]]}),I=Object[c(951)]({browser:[[/((?:ahrefs|amazon|bing|cc|dot|duckduck|exa|facebook|gpt|mj12|mojeek|oai-search|perplexity|semrush|seznam)bot)\/([\w\.-]+)/i,/(applebot(?:-extended)?)\/([\w\.]+)/i,/(baiduspider)[-imagevdonsfcpr]{0,6}\/([\w\.]+)/i,/(claude(?:bot|-web)|anthropic-ai)\/?([\w\.]*)/i,/(coccocbot-(?:image|web))\/([\w\.]+)/i,/(facebook(?:externalhit|catalog)|meta-externalagent)\/([\w\.]+)/i,/(google(?:bot|other|-inspectiontool)(?:-image|-video|-news)?|storebot-google)\/?([\w\.]*)/i,/(ia_archiver|archive\.org_bot)\/?([\w\.]*)/i,/((?:semrush|splitsignal)bot[-abcfimostw]*)\/([\w\.-]+)/i,/(sogou (?:pic|head|web|orion|news) spider)\/([\w\.]+)/i,/(y!?j-(?:asr|br[uw]|dscv|mmp|vsidx|wsc))\/([\w\.]+)/i,/(yandex(?:(?:mobile)?(?:accessibility|additional|renderresources|screenshot|sprav)?bot|image(?:s|resizer)|video(?:parser)?|blogs|adnet|favicons|fordomain|market|media|metrika|news|ontodb(?:api)?|pagechecker|partner|rca|tracker|turbo|vertis|webmaster|antivirus))\/([\w\.]+)/i,/(yeti)\/([\w\.]+)/i,/((?:aihit|diff|timpi|you)bot|omgili(?:bot)?|(?:magpie-|velenpublicweb)crawler|webzio-extended|(?:screaming frog seo |yisou)spider)\/?([\w\.]*)/i],[f,a,[s,w]],[/((?:adsbot|apis|mediapartners)-google(?:-mobile)?|google-?(?:other|cloudvertexbot|extended|safety))/i,/\b(360spider-?(?:image|video)?|bytespider|(?:ai2|aspiegel|dataforseo|imagesift|petal|turnitin)bot|teoma|(?=yahoo! )slurp)/i],[f,[s,w]]]});Object[c(951)]({device:[[/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[o,u,[s,v]],[/(u304aa)/i],[u,[o,c(331)],[s,m]],[/\bsie-(\w*)/i],[u,[o,"Siemens"],[s,m]],[/\b(rct\w+) b/i],[u,[o,c(943)],[s,v]],[/\b(venue[\d ]{2,7}) b/i],[u,[o,c(909)],[s,v]],[/\b(q(?:mv|ta)\w+) b/i],[u,[o,c(1215)],[s,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[o,c(1365)],[s,v]],[/\b(tm\d{3}\w+) b/i],[u,[o,c(967)],[s,v]],[/\b(k88) b/i],[u,[o,c(1501)],[s,v]],[/\b(nx\d{3}j) b/i],[u,[o,"ZTE"],[s,m]],[/\b(gen\d{3}) b.+49h/i],[u,[o,c(660)],[s,m]],[/\b(zur\d{3}) b/i],[u,[o,c(660)],[s,v]],[/^((zeki)?tb.*\b) b/i],[u,[o,c(349)],[s,v]],[/\b([yr]\d{2}) b/i,/\b(?:dragon[- ]+touch |dt)(\w{5}) b/i],[u,[o,c(973)],[s,v]],[/\b(ns-?\w{0,9}) b/i],[u,[o,"Insignia"],[s,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[o,"NextBook"],[s,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[o,"Voice"],u,[s,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[o,c(1521)],u,[s,m]],[/\b(ph-1) /i],[u,[o,c(705)],[s,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[o,c(357)],[s,v]],[/\b(trio[-\w\. ]+) b/i],[u,[o,"MachSpeed"],[s,v]],[/\btu_(1491) b/i],[u,[o,"Rotor"],[s,v]]]}),Object[c(951)]({browser:[[/(airmail|bluemail|emclient|evolution|foxmail|kmail2?|kontact|(?:microsoft |mac)?outlook(?:-express)?|navermailapp|(?!chrom.+)sparrow|thunderbird|yahoo)(?:m.+ail; |[\/ ])([\w\.]+)/i],[f,a,[s,E]]]});const D=Object[c(951)]({browser:[[/(ahrefssiteaudit|bingpreview|chatgpt-user|mastodon|(?:discord|duckassist|linkedin|pinterest|reddit|roger|siteaudit|telegram|twitter|uptimero)bot|google-site-verification|meta-externalfetcher|y!?j-dlc|yandex(?:calendar|direct(?:dyn)?|searchshop)|yadirectfetcher)\/([\w\.]+)/i,/(bluesky) cardyb\/([\w\.]+)/i,/(slack(?:bot)?(?:-imgproxy|-linkexpanding)?) ([\w\.]+)/i,/(whatsapp)\/([\w\.]+)[\/ ][ianw]/i],[f,a,[s,O]],[/(cohere-ai|vercelbot|feedfetcher-google|google(?:-read-aloud|producer)|(?=bot; )snapchat|yandex(?:sitelinks|userproxy))/i],[f,[s,O]]]});Object[c(951)]({browser:[[/chatlyio\/([\d\.]+)/i],[a,"Slack",[s,T]],[/jp\.co\.yahoo\.android\.yjtop\/([\d\.]+)/i],[a,c(1414),[s,T]]]}),Object.freeze({browser:[[/(apple(?:coremedia|tv))\/([\w\._]+)/i,/(coremedia) v([\w\._]+)/i,/(ares|clementine|music player daemon|nexplayer|ossproxy) ([\w\.-]+)/i,/^(aqualung|audacious|audimusicstream|amarok|bass|bsplayer|core|gnomemplayer|gvfs|irapp|lyssna|music on console|nero (?:home|scout)|nokia\d+|nsplayer|psp-internetradioplayer|quicktime|rma|radioapp|radioclientapplication|soundtap|stagefright|streamium|totem|videos|xbmc|xine|xmms)\/([\w\.-]+)/i,/(lg player|nexplayer) ([\d\.]+)/i,/player\/(nexplayer|lg player) ([\w\.-]+)/i,/(gstreamer) souphttpsrc.+libsoup\/([\w\.-]+)/i,/(htc streaming player) [\w_]+ \/ ([\d\.]+)/i,/(lavf)([\d\.]+)/i,/(mplayer)(?: |\/)(?:(?:sherpya-){0,1}svn)(?:-| )(r\d+(?:-\d+[\w\.-]+))/i,/ (songbird)\/([\w\.-]+)/i,/(winamp)(?:3 version|mpeg| ) ([\w\.-]+)/i,/(vlc)(?:\/| media player - version )([\w\.-]+)/i,/^(foobar2000|itunes|smp)\/([\d\.]+)/i,/com\.(riseupradioalarm)\/([\d\.]*)/i,/(mplayer)(?:\s|\/| unknown-)([\w\.\-]+)/i,/(windows)\/([\w\.-]+) upnp\/[\d\.]+ dlnadoc\/[\d\.]+ home media server/i],[f,a,[s,M]],[/(flrp)\/([\w\.-]+)/i],[[f,"Flip Player"],a,[s,M]],[/(fstream|media player classic|inlight radio|mplayer|nativehost|nero showtime|ocms-bot|queryseekspider|tapinradio|tunein radio|winamp|yourmuze)/i],[f,[s,M]],[/(htc_one_s|windows-media-player|wmplayer)\/([\w\.-]+)/i],[[f,/[_-]/g," "],a,[s,M]],[/(rad.io|radio.(?:de|at|fr)) ([\d\.]+)/i],[[f,c(1071)],a,[s,M]]]});const V=Object.freeze({browser:[[/^(apache-httpclient|axios|(?:go|java)-http-client|got|guzzlehttp|java|libwww-perl|lua-resty-http|needle|node-(?:fetch|superagent)|okhttp|php-soap|postmanruntime|python-(?:urllib|requests)|scrapy)\/([\w\.]+)/i,/(jsdom|java)\/([\w\.]+)/i],[f,a,[s,P]]]});Object.freeze({device:[[/dilink.+(byd) auto/i],[o],[/(rivian) (r1t)/i],[o,u],[/vcc.+netfront/i],[[o,c(615)]]]});const j=Object[c(951)]({browser:[...x[c(489)],...I[c(489)],...D[c(489)],...V[c(489)]]});class L{constructor(){const F=c;this[F(1044)]=W=>[F(1116),F(982),F(1362),F(1387),F(407),"applebot","applebot-extended",F(618),F(731),F(384),"diffbot",F(1195),F(1267),F(433),F(1087),F(1196),F(1199),"facebookbot","meta-externalagent",F(613),F(966),F(527),F(420),F(774),F(908),F(1245),F(590),F(1017),F(1e3),F(931)][F(1148)](J=>W[F(1479)]().includes(J)),this[F(1203)]=W=>{const J=F,$=W[J(1479)](),ne=j[J(489)];for(let ae=0;ae<ne[J(368)];ae+=2){const te=ne[ae],ie=Array.isArray(te)?te:[te];for(const Se of ie)if(Se instanceof RegExp&&Se.test($))return!0}return!1},this[F(536)]=W=>W[F(1246)]===l[F(990)],this[F(1047)]=W=>W[F(1479)]()[F(1461)]("electron")}}b[c(1408)]=L})(h[g(813)]||(h._POSignalsMetadata={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{[c(309)](){const s=c,o=document.createElement(s(457));return!!(o.getContext&&o.getContext("2d"))}getWebglCanvas(s){const o=c,a=document.createElement(o(457));let m=null;try{s===o(1269)?m=a.getContext(o(1269))||a[o(1482)]("experimental-webgl"):m=a[o(1482)]("webgl2")}catch{}return m}[c(755)](){const s=c;if(!this[s(309)]())return{supported:!1,type:null};let o=this[s(814)](s(1453));return o?{supported:!0,type:s(1453)}:(o=this[s(814)]("webgl"),o?{supported:!0,type:s(1269)}:{supported:!1,type:null})}[c(1191)](){const s=c,{supported:o}=this[s(755)]();return o}[c(1125)](){const s=c,{supported:o,type:a}=this[s(755)]();return o&&a===s(1453)}[c(1083)](){const s=c,o=document[s(983)](s(457));let a,m,v,w;try{a=o[s(1482)](s(1453)),!a&&(a=o[s(1482)](s(1269))||o[s(1482)](s(533)),!a&&console[s(721)](s(1117)))}catch{console[s(721)]("Neither WebGL 2.0 nor WebGL 1.0 is supported.")}try{m=a[s(937)](s(1175)),v=a[s(650)](m[s(1227)]),w=a.getParameter(m[s(1056)])}catch{v=a.getParameter(a[s(1436)]),w=a.getParameter(a[s(1140)])}return{vendor:v,renderer:w,webglVersion:a.getParameter(a[s(992)]),shadingLanguageVersion:a[s(650)](a[s(706)]),extensions:a[s(344)](),maxTextureSize:a[s(650)](a[s(913)]),maxRenderbufferSize:a.getParameter(a[s(545)]),maxTextureImageUnits:a[s(650)](a[s(601)]),maxVertexTextureImageUnits:a[s(650)](a.MAX_VERTEX_TEXTURE_IMAGE_UNITS),maxCombinedTextureImageUnits:a[s(650)](a.MAX_COMBINED_TEXTURE_IMAGE_UNITS),maxVertexAttribs:a[s(650)](a[s(439)]),maxVaryingVectors:a[s(650)](a[s(1517)]),maxVertexUniformVectors:a[s(650)](a[s(483)]),maxFragmentUniformVectors:a.getParameter(a.MAX_FRAGMENT_UNIFORM_VECTORS)}}getHasLiedLanguages(){const s=c;if(typeof navigator[s(1402)]!==s(480))try{if(navigator[s(1402)][0][s(1039)](0,2)!==navigator.language.substr(0,2))return!0}catch{return!0}return!1}getHasLiedResolution(){const s=c;return window[s(405)][s(1431)]<window[s(405)].availWidth||window[s(405)][s(507)]<window[s(405)][s(1138)]}[c(993)](){const s=c,o=navigator[s(641)][s(1479)]();let a=navigator.oscpu;const m=navigator[s(1057)][s(1479)]();let v;return o.indexOf(s(603))>=0?v=s(1486):o[s(1265)](s(739))>=0?v="Windows":o.indexOf(s(745))>=0?v=s(1095):o[s(1265)](s(686))>=0||o[s(1265)](s(862))>=0?v=s(673):o[s(1265)](s(1193))>=0||o[s(1265)](s(769))>=0?v=s(1027):o[s(1265)](s(785))>=0?v=s(560):v=s(1487),(s(374)in window||navigator[s(858)]>0||navigator[s(1238)]>0)&&v!=="Windows Phone"&&v!==s(1095)&&v!=="iOS"&&v!=="Other"||typeof a!==s(480)&&(a=a.toLowerCase(),a[s(1265)](s(739))>=0&&v!==s(1023)&&v!==s(1486)||a[s(1265)](s(686))>=0&&v!==s(673)&&v!==s(1095)||a[s(1265)](s(785))>=0&&v!=="Mac"&&v!==s(1027)||(a[s(1265)](s(739))===-1&&a[s(1265)](s(686))===-1&&a[s(1265)](s(785))===-1)!=(v===s(1487)))||m[s(1265)](s(739))>=0&&v!=="Windows"&&v!=="Windows Phone"||(m.indexOf("linux")>=0||m.indexOf(s(745))>=0||m[s(1265)](s(1081))>=0)&&v!==s(673)&&v!==s(1095)||(m[s(1265)](s(785))>=0||m[s(1265)]("ipad")>=0||m.indexOf(s(473))>=0||m.indexOf(s(1193))>=0)&&v!==s(560)&&v!=="iOS"||(m[s(1265)](s(739))<0&&m[s(1265)](s(686))<0&&m[s(1265)](s(785))<0&&m[s(1265)](s(1193))<0&&m[s(1265)]("ipad")<0)!=(v==="Other")?!0:typeof navigator.plugins===s(480)&&v!=="Windows"&&v!==s(1486)}[c(339)](){const s=c,o=navigator.userAgent[s(1479)](),a=navigator[s(444)];let m;if(o[s(1265)](s(1084))>=0?m=s(565):o.indexOf("opera")>=0||o.indexOf("opr")>=0?m=s(1038):o[s(1265)](s(771))>=0?m=s(1235):o[s(1265)](s(1478))>=0?m="Safari":o[s(1265)](s(561))>=0?m=s(423):m="Other",(m===s(1235)||m==="Safari"||m===s(1038))&&a!==s(749))return!0;const v=eval[s(861)]()[s(368)];if(v===37&&m!=="Safari"&&m!==s(565)&&m!=="Other"||v===39&&m!==s(423)&&m!=="Other"||v===33&&m!==s(1235)&&m!==s(1038)&&m!=="Other")return!0;let w;try{throw"a"}catch(A){try{A[s(1226)](),w=!0}catch{w=!1}}return w&&m!==s(565)&&m!==s(1487)}}b[c(633)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{constructor(s){const o=p;this[o(803)]=s}[c(627)](){return gt(this,void 0,void 0,function*(){const s=p,o=yield this[s(1205)](window);return yield this[s(431)](o,s(1213),()=>gt(this,void 0,void 0,function*(){const a=s;if(!Object[a(465)])return;const m=h[a(631)][a(1139)][a(325)]("iframe");if(!m)return;if(m[a(882)]=a(820),document.body[a(896)](m),Object[a(465)](HTMLIFrameElement[a(622)])[a(772)][a(996)][a(861)]()!=="function get contentWindow() { [native code] }"||m[a(772)]===window)return!0;const v=yield this[a(1205)](m[a(772)]);return m.remove(),v})),o})}headlessResults(s){return gt(this,void 0,void 0,function*(){const o=p,a=new Map,m=[];return m[o(939)](this[o(431)](a,o(392),()=>gt(this,void 0,void 0,function*(){const v=o;return/HeadlessChrome/.test(s[v(1368)][v(641)])}))),m[o(939)](this.test(a,o(1002),()=>gt(this,void 0,void 0,function*(){const v=o;return s[v(1368)][v(859)]}))),m[o(939)](this[o(431)](a,o(1377),()=>gt(this,void 0,void 0,function*(){const v=o;return/Chrome/.test(s.navigator.userAgent)&&!s[v(771)]}))),m[o(939)](this[o(431)](a,"permissions_api",()=>gt(this,void 0,void 0,function*(){const v=o;if(s[v(1368)][v(1184)]&&s[v(362)]){const w=yield s.navigator.permissions.query({name:"notifications"});return s[v(362)][v(1049)]===v(338)&&w[v(628)]==="prompt"}}))),m[o(939)](this[o(431)](a,o(970),()=>gt(this,void 0,void 0,function*(){const v=o,w=s[v(1368)][v(1184)];if(w)return w[v(410)][v(861)]()!==v(743)||w[v(410)][v(861)][v(861)]()!==v(1359)||w[v(410)].toString[v(1417)](v(1183))&&w[v(410)][v(861)].hasOwnProperty(v(1224))&&w.query[v(861)][v(1417)](v(1063))?!0:w[v(1417)](v(410))}))),m[o(939)](this[o(431)](a,o(1156),()=>gt(this,void 0,void 0,function*(){return navigator[o(492)].length===0}))),m[o(939)](this[o(431)](a,o(1208),()=>gt(this,void 0,void 0,function*(){return navigator[o(1402)]===""}))),m[o(939)](this[o(431)](a,o(817),()=>gt(this,void 0,void 0,function*(){const v=o;let w=PluginArray[v(622)]===navigator[v(492)].__proto__;return navigator[v(492)][v(368)]>0&&(w=w&&Plugin[v(622)]===navigator.plugins[0].__proto__),w}))),m[o(939)](this.test(a,o(355),()=>gt(this,void 0,void 0,function*(){const v=o;let w=MimeTypeArray[v(622)]===navigator[v(614)].__proto__;return navigator[v(614)].length>0&&(w=w&&MimeType[v(622)]===navigator[v(614)][0][v(403)]),w}))),yield Promise[o(683)](m),a})}[c(431)](s,o,a){return gt(this,void 0,void 0,function*(){const m=p;try{if(!this[m(803)][m(438)](o)){const v=yield h[m(631)][m(1139)][m(989)](100,a());v!=null&&(s[o]=v)}}catch(v){h[m(631)][m(867)].warn(o+m(1278),v)}})}}b[c(1459)]=u})(h._POSignalsMetadata||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){function c(){return new Promise((u,f)=>{const s=p;let o=s(674),a=!1;function m($){a||(a=!0,u({isPrivate:$,browserName:o}))}function v(){const $=s,ne=navigator[$(641)];return ne.match(/Chrome/)?navigator.brave!==void 0?"Brave":ne[$(1314)](/Edg/)?$(570):ne[$(1314)](/OPR/)?$(1038):$(1235):$(919)}function w($){const ne=s;try{return $===eval[ne(861)]()[ne(368)]}catch{return!1}}function A(){const $=s;let ne=0;const ae=parseInt("-1");try{ae[$(1525)](ae)}catch(te){ne=te[$(768)][$(368)]}return ne}function E(){return A()===44}function O(){return A()===51}function T(){return A()===25}function M(){return navigator[s(906)]!==void 0&&w(39)}function P(){var $;return gt(this,void 0,void 0,function*(){const ne=p;try{const ae=navigator[ne(1080)];typeof(ae==null?void 0:ae[ne(753)])===ne(1064)&&(yield ae[ne(753)]()),m(!1)}catch(ae){const te=ae instanceof Error&&($=ae[ne(768)])!==null&&$!==void 0?$:ae;m(typeof te===ne(1281)&&te.includes("unknown transient reason"))}})}function x(){const $=s,ne=String(Math[$(605)]());try{const ae=indexedDB[$(330)](ne,1);ae[$(1345)]=te=>{const ie=$,Se=te.target.result;try{Se[ie(812)]("t",{autoIncrement:!0}).put(new Blob),m(!1)}catch(_e){const Ne=_e.message||"";m(Ne[ie(1461)]("are not yet supported"))}finally{Se.close(),indexedDB[ie(619)](ne)}},ae.onerror=()=>m(!1)}catch{m(!1)}}function I(){const $=s;try{window[$(411)](null,null,null,null)}catch{return m(!0)}try{localStorage[$(949)]($(431),"1"),localStorage[$(1449)]($(431))}catch{return m(!0)}m(!1)}function D(){return gt(this,void 0,void 0,function*(){const $=p,ne=navigator[$(1080)];typeof(ne==null?void 0:ne[$(753)])===$(1064)?yield P():navigator[$(858)]!==void 0?x():I()})}function V(){const $=s;var ne;const ae=(ne=performance==null?void 0:performance.memory)===null||ne===void 0?void 0:ne[$(612)];return ae??1073741824}function j(){const $=s;navigator[$(404)][$(1036)](function(ne,ae){const te=Math.round(ae/1048576),ie=Math.round(V()/(1024*1024))*2;m(te<ie)},function(ne){const ae=$;f(new Error(ae(312)+ne[ae(768)]))})}function L(){const $=s,ne=window[$(1515)];ne(0,1,()=>m(!1),()=>m(!0))}function U(){const $=s;self[$(941)]&&self[$(941)][$(1001)]?j():L()}function F(){return gt(this,void 0,void 0,function*(){const $=p,ne=navigator[$(1080)];if(typeof(ne==null?void 0:ne.getDirectory)=="function")try{yield ne[$(753)](),m(!1)}catch(ae){const te=ae instanceof Error?ae[$(768)]:String(ae);m(typeof te===$(1281)&&te[$(1461)]($(1124)));return}else m(navigator[$(647)]===void 0)})}function W(){m(window[s(1289)]===void 0)}function J(){return gt(this,void 0,void 0,function*(){const $=p;E()?(o=$(1305),yield D()):O()?(o=v(),U()):T()?(o=$(565),yield F()):M()?(o="Internet Explorer",W()):f(new Error($(511)))})}J()[s(689)](f)})}b.detectIncognitoInternal=c})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){(function(b){const c=p;class u{constructor(s){const o=p;this.propertyBlackList=s,this[o(995)]={}}[c(1497)](s,o){const a=c;if(o[a(854)])for(const m of o[a(1030)])!this.result[m]&&(this[a(995)][m]=[]),this.result[m][a(939)](s)}getLies(s,o,a=null){const m=c;if(typeof s!="function")return{lied:!1,lieTypes:[]};const v=s[m(1246)][m(947)](/get\s/,""),w={undefined_properties:()=>a?u[m(645)](a,v):!1,to_string:()=>u[m(526)](s,v,this[m(1412)]),prototype_in_function:()=>u[m(936)](s),own_property:()=>u[m(1042)](s),object_to_string_error:()=>u[m(1496)](s)},A=Object[m(345)](w)[m(365)](E=>!this[m(803)][m(438)](m(782)+E)&&!!w[E]());return{lied:A[m(368)]>0,lieTypes:A}}[c(328)](){return gt(this,void 0,void 0,function*(){const s=p;if(this.propertyBlackList[s(438)](s(794)))return this[s(995)];if(!this[s(803)][s(438)](s(1025))){const o=h[s(631)][s(1139)].createInvisibleElement(s(697));o&&(document[s(1141)][s(896)](o),this.iframeWindow=o)}return yield Promise.all([this[s(1274)](()=>AnalyserNode,{target:[s(754)]}),this[s(1274)](()=>AudioBuffer,{target:[s(1159)]}),this[s(1274)](()=>BiquadFilterNode,{target:[s(796)]}),this[s(1274)](()=>CanvasRenderingContext2D,{target:[s(709)]}),this[s(1274)](()=>DOMRect,{target:[s(507)]}),this[s(1274)](()=>DOMRectReadOnly,{target:["left"]}),this.searchLies(()=>Element,{target:["getClientRects"]}),this[s(1274)](()=>HTMLCanvasElement,{target:[s(507)]}),this[s(1274)](()=>Math,{target:[s(1476)]}),this[s(1274)](()=>MediaDevices,{target:[s(1052)]}),this[s(1274)](()=>Navigator,{target:[s(492)]}),this[s(1274)](()=>OffscreenCanvasRenderingContext2D,{target:[s(709)]}),this[s(1274)](()=>SVGRect,{target:["x"]})]),this.iframeWindow[s(1283)](),this[s(995)]})}[c(1274)](s,{target:o=[],ignore:a=[]}={}){return gt(this,void 0,void 0,function*(){const m=p;function v(E){return typeof E!=p(480)&&!!E}let w;try{if(w=s(),!v(w))return}catch{return}const A=w.prototype?w.prototype:w;Object[m(988)](A)[m(892)](E=>{const O=m;if(E==O(1516)||o.length&&!new Set(o)[O(438)](E)||a.length&&new Set(a).has(E))return;const T=/\s(.+)\]/,M=(w[O(1246)]?w.name:T[O(431)](w)?T.exec(w)[1]:void 0)+"."+E;try{const P=w.prototype?w[O(622)]:w;try{if(typeof P[E]=="function"){const D=this[O(1488)](P[E],P);this[O(1497)](M,D);return}}catch{}const x=Object[O(978)](P,E)[O(996)],I=this.getLies(x,P,w);this.documentLie(M,I)}catch(P){h[O(631)][O(867)][O(829)](O(1066)+E+O(1381),P)}})})}static[c(645)](s,o){const a=c,m=s.name,v=window[m.charAt(0).toLowerCase()+m[a(1106)](1)];return!!v&&(typeof Object[a(978)](v,o)!=a(480)||typeof Reflect[a(978)](v,o)!=a(480))}static[c(526)](s,o,a){const m=c;let v,w;try{v=a[m(1162)][m(622)][m(861)][m(1390)](s)}catch{}try{w=a.Function[m(622)].toString.call(s[m(861)])}catch{}const A=v||s[m(861)](),E=w||s[m(861)][m(861)](),O=T=>({[m(1097)+T+"() { [native code] }"]:!0,["function get "+T+m(1280)]:!0,[m(897)]:!0,[m(1097)+T+m(954)+`
66
+ timeBetweenLoadAndGet: ${Oe-X}
67
+ visitorId: ${Pe.visitorId}
68
+ components: ${vh(Ye)}
69
+ \`\`\``),Pe}}}function LR(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{const x=new XMLHttpRequest;x.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${b}/npm-monitoring`,!0),x.send()}catch(x){console.error(x)}}async function l1(x={}){var q;(!((q=x.monitoring)!==null&&q!==void 0)||q)&&LR();const{delayFallback:X,debug:le}=x;await o1(X);const Oe=CR({cache:{},debug:le});return MR(Oe,le)}var DR={load:l1,hashComponents:yh,componentsToDebugString:vh};const xR=ie;return y.componentsToDebugString=vh,y.default=DR,y.getFullscreenElement=Bn,y.getUnstableAudioFingerprint=gn,y.getUnstableCanvasFingerprint=ye,y.getUnstableScreenFrame=ni,y.getUnstableScreenResolution=ro,y.getWebGLContext=mh,y.hashComponents=yh,y.isAndroid=Cn,y.isChromium=$e,y.isDesktopWebKit=Xe,y.isEdgeHTML=Be,y.isGecko=Le,y.isSamsungInternet=wr,y.isTrident=Ie,y.isWebKit=Ce,y.load=l1,y.loadSources=xt,y.murmurX64Hash128=xR,y.prepareForSources=o1,y.sources=a1,y.transformSource=oe,y.withIframe=Nn,Object.defineProperty(y,"__esModule",{value:!0}),y}({})}(ee||(ee={})),function(h){h.BroprintJS=function(y){const b=function(o,s=0){let m=3735928559^s,v=1103547991^s;for(let w=0,A;w<o.length;w++)A=o.charCodeAt(w),m=Math.imul(m^A,2654435761),v=Math.imul(v^A,1597334677);return m=Math.imul(m^m>>>16,2246822507)^Math.imul(v^v>>>13,3266489909),v=Math.imul(v^v>>>16,2246822507)^Math.imul(m^m>>>13,3266489909),4294967296*(2097151&v)+(m>>>0)},c=()=>{const o=document.createElement("canvas");return!!(o.getContext&&o.getContext("2d"))},u=()=>{if(!c())return"canvas not supported";var o=document.createElement("canvas"),s=o.getContext("2d"),m="BroPrint.65@345876";return s.textBaseline="top",s.font="14px 'Arial'",s.textBaseline="alphabetic",s.fillStyle="#f60",s.fillRect(125,1,62,20),s.fillStyle="#069",s.fillText(m,2,15),s.fillStyle="rgba(102, 204, 0, 0.7)",s.fillText(m,4,17),o.toDataURL()},f=function(){let o=null,s=null,m=null,v=null,w=null,A=null;function E(F,H=!1){A=F;try{O(),m.connect(v),v.connect(o.destination),m.start(0),o.startRendering(),o.oncomplete=I}catch(R){if(H)throw R}}function O(){T(),s=o.currentTime,L(),P()}function T(){let F=window.OfflineAudioContext||window.webkitOfflineAudioContext;o=new F(1,44100,44100)}function L(){m=o.createOscillator(),m.type="triangle",m.frequency.setValueAtTime(1e4,s)}function P(){v=o.createDynamicsCompressor(),N("threshold",-50),N("knee",40),N("ratio",12),N("reduction",-20),N("attack",0),N("release",.25)}function N(F,H){v[F]!==void 0&&typeof v[F].setValueAtTime=="function"&&v[F].setValueAtTime(H,o.currentTime)}function I(F){D(F),v.disconnect()}function D(F){let H=null;for(var R=4500;5e3>R;R++){var U=F.renderedBuffer.getChannelData(0)[R];H+=Math.abs(U)}if(w=H.toString(),typeof A=="function")return A(w)}return{run:E}}();function a(){const o=new Promise((s,m)=>{f.run(function(v){s(v)})});return new Promise((s,m)=>{o.then(async v=>{let w="";navigator.brave&&await navigator.brave.isBrave(),w=window.btoa(v)+u(),s(b(w,0))}).catch(()=>{try{s(b(u()).toString())}catch{m("Failed to generate the finger print of this browser")}})})}return y.getCurrentBrowserFingerPrint=a,Object.defineProperty(y,"__esModule",{value:!0}),y}({})}(ee||(ee={})),function(h,y){y(h)}(ee||(ee={}),function(h){var y,b,c=function(U,z){var G=typeof Symbol=="function"&&U[Symbol.iterator];if(!G)return U;var J,$,ne=G.call(U),ae=[];try{for(;(z===void 0||z-- >0)&&!(J=ne.next()).done;)ae.push(J.value)}catch(te){$={error:te}}finally{try{J&&!J.done&&(G=ne.return)&&G.call(ne)}finally{if($)throw $.error}}return ae},u=function(U,z,G){if(arguments.length===2)for(var J,$=0,ne=z.length;$<ne;$++)!J&&$ in z||(J||(J=Array.prototype.slice.call(z,0,$)),J[$]=z[$]);return U.concat(J||Array.prototype.slice.call(z))},f=new WeakMap,a=new WeakMap,o=new WeakMap,s=new WeakMap,m=new WeakMap,v={get:function(U,z,G){if(U instanceof IDBTransaction){if(z==="done")return a.get(U);if(z==="objectStoreNames")return U.objectStoreNames||o.get(U);if(z==="store")return G.objectStoreNames[1]?void 0:G.objectStore(G.objectStoreNames[0])}return E(U[z])},set:function(U,z,G){return U[z]=G,!0},has:function(U,z){return U instanceof IDBTransaction&&(z==="done"||z==="store")||z in U}};function w(U){return U!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(b||(b=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(U)?function(){for(var z=[],G=0;G<arguments.length;G++)z[G]=arguments[G];return U.apply(O(this),z),E(f.get(this))}:function(){for(var z=[],G=0;G<arguments.length;G++)z[G]=arguments[G];return E(U.apply(O(this),z))}:function(z){for(var G=[],J=1;J<arguments.length;J++)G[J-1]=arguments[J];var $=U.call.apply(U,u([O(this),z],c(G),!1));return o.set($,z.sort?z.sort():[z]),E($)}}function A(U){return typeof U=="function"?w(U):(U instanceof IDBTransaction&&function(G){if(!a.has(G)){var J=new Promise(function($,ne){var ae=function(){G.removeEventListener("complete",te),G.removeEventListener("error",ie),G.removeEventListener("abort",ie)},te=function(){$(),ae()},ie=function(){ne(G.error||new DOMException("AbortError","AbortError")),ae()};G.addEventListener("complete",te),G.addEventListener("error",ie),G.addEventListener("abort",ie)});a.set(G,J)}}(U),z=U,(y||(y=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(function(G){return z instanceof G})?new Proxy(U,v):U);var z}function E(U){if(U instanceof IDBRequest)return z=U,(G=new Promise(function($,ne){var ae=function(){z.removeEventListener("success",te),z.removeEventListener("error",ie)},te=function(){$(E(z.result)),ae()},ie=function(){ne(z.error),ae()};z.addEventListener("success",te),z.addEventListener("error",ie)})).then(function($){$ instanceof IDBCursor&&f.set($,z)}).catch(function(){}),m.set(G,z),G;var z,G;if(s.has(U))return s.get(U);var J=A(U);return J!==U&&(s.set(U,J),m.set(J,U)),J}var O=function(U){return m.get(U)},T=function(){return T=Object.assign||function(U){for(var z,G=1,J=arguments.length;G<J;G++)for(var $ in z=arguments[G])Object.prototype.hasOwnProperty.call(z,$)&&(U[$]=z[$]);return U},T.apply(this,arguments)},L=function(U,z,G,J){return new(G||(G=Promise))(function($,ne){function ae(Se){try{ie(J.next(Se))}catch(_e){ne(_e)}}function te(Se){try{ie(J.throw(Se))}catch(_e){ne(_e)}}function ie(Se){var _e;Se.done?$(Se.value):(_e=Se.value,_e instanceof G?_e:new G(function(xe){xe(_e)})).then(ae,te)}ie((J=J.apply(U,[])).next())})},P=function(U,z){var G,J,$,ne,ae={label:0,sent:function(){if(1&$[0])throw $[1];return $[1]},trys:[],ops:[]};return ne={next:te(0),throw:te(1),return:te(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function te(ie){return function(Se){return function(_e){if(G)throw new TypeError("Generator is already executing.");for(;ae;)try{if(G=1,J&&($=2&_e[0]?J.return:_e[0]?J.throw||(($=J.return)&&$.call(J),0):J.next)&&!($=$.call(J,_e[1])).done)return $;switch(J=0,$&&(_e=[2&_e[0],$.value]),_e[0]){case 0:case 1:$=_e;break;case 4:return ae.label++,{value:_e[1],done:!1};case 5:ae.label++,J=_e[1],_e=[0];continue;case 7:_e=ae.ops.pop(),ae.trys.pop();continue;default:if($=ae.trys,!(($=$.length>0&&$[$.length-1])||_e[0]!==6&&_e[0]!==2)){ae=0;continue}if(_e[0]===3&&(!$||_e[1]>$[0]&&_e[1]<$[3])){ae.label=_e[1];break}if(_e[0]===6&&ae.label<$[1]){ae.label=$[1],$=_e;break}if($&&ae.label<$[2]){ae.label=$[2],ae.ops.push(_e);break}$[2]&&ae.ops.pop(),ae.trys.pop();continue}_e=z.call(U,ae)}catch(xe){_e=[6,xe],J=0}finally{G=$=0}if(5&_e[0])throw _e[1];return{value:_e[0]?_e[1]:void 0,done:!0}}([ie,Se])}}},N=function(U,z){var G=typeof Symbol=="function"&&U[Symbol.iterator];if(!G)return U;var J,$,ne=G.call(U),ae=[];try{for(;(z===void 0||z-- >0)&&!(J=ne.next()).done;)ae.push(J.value)}catch(te){$={error:te}}finally{try{J&&!J.done&&(G=ne.return)&&G.call(ne)}finally{if($)throw $.error}}return ae},I=function(U,z,G){if(arguments.length===2)for(var J,$=0,ne=z.length;$<ne;$++)!J&&$ in z||(J||(J=Array.prototype.slice.call(z,0,$)),J[$]=z[$]);return U.concat(J||Array.prototype.slice.call(z))},D=["get","getKey","getAll","getAllKeys","count"],F=["put","add","delete","clear"],H=new Map;function R(U,z){if(U instanceof IDBDatabase&&!(z in U)&&typeof z=="string"){if(H.get(z))return H.get(z);var G=z.replace(/FromIndex$/,""),J=z!==G,$=F.includes(G);if(G in(J?IDBIndex:IDBObjectStore).prototype&&($||D.includes(G))){var ne=function(ae){for(var te=[],ie=1;ie<arguments.length;ie++)te[ie-1]=arguments[ie];return L(this,void 0,void 0,function(){var Se,_e,xe;return P(this,function(et){switch(et.label){case 0:return Se=this.transaction(ae,$?"readwrite":"readonly"),_e=Se.store,J&&(_e=_e.index(te.shift())),[4,Promise.all([(xe=_e)[G].apply(xe,I([],N(te),!1)),$&&Se.done])];case 1:return[2,et.sent()[0]]}})})};return H.set(z,ne),ne}}}v=function(U){return T(T({},U),{get:function(z,G,J){return R(z,G)||U.get(z,G,J)},has:function(z,G){return!!R(z,G)||U.has(z,G)}})}(v),h.deleteDB=function(U,z){var G=(z===void 0?{}:z).blocked,J=indexedDB.deleteDatabase(U);return G&&J.addEventListener("blocked",function($){return G($.oldVersion,$)}),E(J).then(function(){})},h.openDB=function(U,z,G){var J=G===void 0?{}:G,$=J.blocked,ne=J.upgrade,ae=J.blocking,te=J.terminated,ie=indexedDB.open(U,z),Se=E(ie);return ne&&ie.addEventListener("upgradeneeded",function(_e){ne(E(ie.result),_e.oldVersion,_e.newVersion,E(ie.transaction),_e)}),$&&ie.addEventListener("blocked",function(_e){return $(_e.oldVersion,_e.newVersion,_e)}),Se.then(function(_e){te&&_e.addEventListener("close",function(){return te()}),ae&&_e.addEventListener("versionchange",function(xe){return ae(xe.oldVersion,xe.newVersion,xe)})}).catch(function(){}),Se},h.unwrap=O,h.wrap=E}),function(){typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(h,y){if(h==null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(h),c=1;c<arguments.length;c++){var u=arguments[c];if(u!=null)for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(b[f]=u[f])}return b},writable:!0,configurable:!0})}(),Array.from||(Array.from=function(){var h=Object.prototype.toString,y=function(f){return typeof f=="function"||h.call(f)==="[object Function]"},b=function(f){var a=Number(f);return isNaN(a)?0:a===0||!isFinite(a)?a:(a>0?1:-1)*Math.floor(Math.abs(a))},c=Math.pow(2,53)-1,u=function(f){var a=b(f);return Math.min(Math.max(a,0),c)};return function(f){var a=this,o=Object(f);if(f==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var s=arguments.length>1?arguments[1]:void 0,m;if(typeof s<"u"){if(!y(s))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(m=arguments[2])}for(var v=u(o.length),w=y(a)?Object(new a(v)):new Array(v),A=0,E;A<v;)E=o[A],s?w[A]=typeof m>"u"?s(E,A):s.call(m,E,A):w[A]=E,A+=1;return w.length=v,w}}()),function(){String.prototype.endsWith||(String.prototype.endsWith=function(h,y){return(y===void 0||y>this.length)&&(y=this.length),this.substring(y-h.length,y)===h})}(),function(){Promise.allSettled=Promise.allSettled||function(h){return Promise.all(h.map(function(y){return y.then(function(b){return{status:"fulfilled",value:b}}).catch(function(b){return{status:"rejected",reason:b}})}))}}(),function(h,y){var b="2.0.2",c=500,u="user-agent",f="",a="?",o="function",s="undefined",m="object",v="string",w="browser",A="cpu",E="device",O="engine",T="os",L="result",P="name",N="type",I="vendor",D="version",F="architecture",H="major",R="model",U="console",z="mobile",G="tablet",J="smarttv",$="wearable",ne="xr",ae="embedded",te="inapp",ie="brands",Se="formFactors",_e="fullVersionList",xe="platform",et="platformVersion",xt="bitness",oe="sec-ch-ua",Ie=oe+"-full-version-list",Be=oe+"-arch",$e=oe+"-"+xt,Ce=oe+"-form-factors",Xe=oe+"-"+z,ge=oe+"-"+R,Le=oe+"-"+xe,Mt=Le+"-version",It=[ie,_e,z,R,xe,et,F,Se,xt],Ut="Amazon",$t="Apple",kn="ASUS",Bn="BlackBerry",zn="Google",Cn="Huawei",wr="Lenovo",pt="Honor",gn="LG",vn="Microsoft",Nr="Motorola",br="Nvidia",Jr="OnePlus",sr="OPPO",Nn="Samsung",j="Sharp",be="Sony",Me="Xiaomi",Ae="Zebra",Ue="Chrome",ze="Chromium",ft="Chromecast",Pt="Edge",M="Firefox",he="Opera",ye="Facebook",K="Sogou",je="Mobile ",tt=" Browser",nt="Windows",ot=typeof window!==s,yn=ot&&window.navigator?window.navigator:y,_t=yn&&yn.userAgentData?yn.userAgentData:y,Xr=function(De,rt){var it={},Ft=rt;if(!Gi(rt)){Ft={};for(var ht in rt)for(var Wt in rt[ht])Ft[Wt]=rt[ht][Wt].concat(Ft[Wt]?Ft[Wt]:[])}for(var ct in De)it[ct]=Ft[ct]&&Ft[ct].length%2===0?Ft[ct].concat(De[ct]):De[ct];return it},Ps=function(De){for(var rt={},it=0;it<De.length;it++)rt[De[it].toUpperCase()]=De[it];return rt},Wi=function(De,rt){if(typeof De===m&&De.length>0){for(var it in De)if(ei(De[it])==ei(rt))return!0;return!1}return Qr(De)?ei(rt).indexOf(ei(De))!==-1:!1},Gi=function(De,rt){for(var it in De)return/^(browser|cpu|device|engine|os)$/.test(it)||(rt?Gi(De[it]):!1)},Qr=function(De){return typeof De===v},wl=function(De){if(!De)return y;for(var rt=[],it=Rs(/\\?\"/g,De).split(","),Ft=0;Ft<it.length;Ft++)if(it[Ft].indexOf(";")>-1){var ht=Ki(it[Ft]).split(";v=");rt[Ft]={brand:ht[0],version:ht[1]}}else rt[Ft]=Ki(it[Ft]);return rt},ei=function(De){return Qr(De)?De.toLowerCase():De},ro=function(De){return Qr(De)?Rs(/[^\d\.]/g,De).split(".")[0]:y},ti=function(De){for(var rt in De){var it=De[rt];typeof it==m&&it.length==2?this[it[0]]=it[1]:this[it]=y}return this},Rs=function(De,rt){return Qr(rt)?rt.replace(De,f):rt},Ei=function(De){return Rs(/\\?\"/g,De)},Ki=function(De,rt){if(Qr(De))return De=Rs(/^\s\s*/,De),typeof rt===s?De:De.substring(0,c)},bl=function(De,rt){if(!(!De||!rt))for(var it=0,Ft,ht,Wt,ct,zt,Et;it<rt.length&&!zt;){var un=rt[it],ii=rt[it+1];for(Ft=ht=0;Ft<un.length&&!zt&&un[Ft];)if(zt=un[Ft++].exec(De),zt)for(Wt=0;Wt<ii.length;Wt++)Et=zt[++ht],ct=ii[Wt],typeof ct===m&&ct.length>0?ct.length===2?typeof ct[1]==o?this[ct[0]]=ct[1].call(this,Et):this[ct[0]]=ct[1]:ct.length===3?typeof ct[1]===o&&!(ct[1].exec&&ct[1].test)?this[ct[0]]=Et?ct[1].call(this,Et,ct[2]):y:this[ct[0]]=Et?Et.replace(ct[1],ct[2]):y:ct.length===4&&(this[ct[0]]=Et?ct[3].call(this,Et.replace(ct[1],ct[2])):y):this[ct]=Et||y;it+=2}},ni=function(De,rt){for(var it in rt)if(typeof rt[it]===m&&rt[it].length>0){for(var Ft=0;Ft<rt[it].length;Ft++)if(Wi(rt[it][Ft],De))return it===a?y:it}else if(Wi(rt[it],De))return it===a?y:it;return rt.hasOwnProperty("*")?rt["*"]:De},bu={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},io={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":y},so={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[D,[P,je+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[D,[P,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[P,D],[/opios[\/ ]+([\w\.]+)/i],[D,[P,he+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[D,[P,he+" GX"]],[/\bopr\/([\w\.]+)/i],[D,[P,he]],[/\bb[a]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[D,[P,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[D,[P,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[P,D],[/quark(?:pc)?\/([-\w\.]+)/i],[D,[P,"Quark"]],[/\bddg\/([\w\.]+)/i],[D,[P,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[D,[P,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[D,[P,"WeChat"]],[/konqueror\/([\w\.]+)/i],[D,[P,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[D,[P,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[D,[P,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[D,[P,"Smart "+wr+tt]],[/(avast|avg)\/([\w\.]+)/i],[[P,/(.+)/,"$1 Secure"+tt],D],[/\bfocus\/([\w\.]+)/i],[D,[P,M+" Focus"]],[/\bopt\/([\w\.]+)/i],[D,[P,he+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[D,[P,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[D,[P,"Dolphin"]],[/coast\/([\w\.]+)/i],[D,[P,he+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[D,[P,"MIUI"+tt]],[/fxios\/([\w\.-]+)/i],[D,[P,je+M]],[/\bqihoobrowser\/?([\w\.]*)/i],[D,[P,"360"]],[/\b(qq)\/([\w\.]+)/i],[[P,/(.+)/,"$1Browser"],D],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[P,/(.+)/,"$1"+tt],D],[/samsungbrowser\/([\w\.]+)/i],[D,[P,Nn+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[D,[P,K+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[P,K+" Mobile"],D],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[P,D],[/(lbbrowser|rekonq)/i],[P],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[D,P],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[P,ye],D,[N,te]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[P,D,[N,te]],[/\bgsa\/([\w\.]+) .*safari\//i],[D,[P,"GSA"],[N,te]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[D,[P,"TikTok"],[N,te]],[/\[(linkedin)app\]/i],[P,[N,te]],[/(chromium)[\/ ]([-\w\.]+)/i],[P,D],[/headlesschrome(?:\/([\w\.]+)| )/i],[D,[P,Ue+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[P,Ue+" WebView"],D],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[D,[P,"Android"+tt]],[/chrome\/([\w\.]+) mobile/i],[D,[P,je+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[P,D],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[D,[P,je+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[P,je+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[D,P],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[P,[D,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[P,D],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[P,je+M],D],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[P,"Netscape"],D],[/(wolvic|librewolf)\/([\w\.]+)/i],[P,D],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[D,[P,M+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[P,[D,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[P,[D,/[^\d\.]+./,f]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[F,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[F,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[F,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[F,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[F,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[F,/ower/,f,ei]],[/ sun4\w[;\)]/i],[[F,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[F,ei]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[R,[I,Nn],[N,G]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[R,[I,Nn],[N,z]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[R,[I,$t],[N,z]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[R,[I,$t],[N,G]],[/(macintosh);/i],[R,[I,$t]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[R,[I,j],[N,z]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[R,[I,pt],[N,G]],[/honor([-\w ]+)[;\)]/i],[R,[I,pt],[N,z]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[R,[I,Cn],[N,G]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[R,[I,Cn],[N,z]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[R,/_/g," "],[I,Me],[N,G]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[R,/_/g," "],[I,Me],[N,z]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[R,[I,sr],[N,z]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[R,[I,ni,{OnePlus:["304","403","203"],"*":sr}],[N,G]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[R,[I,"Vivo"],[N,z]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[R,[I,"Realme"],[N,z]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[R,[I,Nr],[N,z]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[R,[I,Nr],[N,G]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[R,[I,gn],[N,G]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[R,[I,gn],[N,z]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[R,[I,wr],[N,G]],[/(nokia) (t[12][01])/i],[I,R,[N,G]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[R,/_/g," "],[N,z],[I,"Nokia"]],[/(pixel (c|tablet))\b/i],[R,[I,zn],[N,G]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[R,[I,zn],[N,z]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[R,[I,be],[N,z]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[R,"Xperia Tablet"],[I,be],[N,G]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[R,[I,Jr],[N,z]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[R,[I,Ut],[N,G]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[R,/(.+)/g,"Fire Phone $1"],[I,Ut],[N,z]],[/(playbook);[-\w\),; ]+(rim)/i],[R,I,[N,G]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[R,[I,Bn],[N,z]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[R,[I,kn],[N,G]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[R,[I,kn],[N,z]],[/(nexus 9)/i],[R,[I,"HTC"],[N,G]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[I,[R,/_/g," "],[N,z]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[R,[I,"TCL"],[N,G]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[R,[I,"TCL"],[N,z]],[/(itel) ((\w+))/i],[[I,ei],R,[N,ni,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[R,[I,"Acer"],[N,G]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[R,[I,"Meizu"],[N,z]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[R,[I,"Ulefone"],[N,z]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[R,[I,"Energizer"],[N,z]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[R,[I,"Cat"],[N,z]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[R,[I,"Smartfren"],[N,z]],[/droid.+; (a(?:015|06[35]|142p?))/i],[R,[I,"Nothing"],[N,z]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[I,R,[N,G]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[I,R,[N,z]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[I,R,[N,G]],[/(surface duo)/i],[R,[I,vn],[N,G]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[R,[I,"Fairphone"],[N,z]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[R,[I,br],[N,G]],[/(sprint) (\w+)/i],[I,R,[N,z]],[/(kin\.[onetw]{3})/i],[[R,/\./g," "],[I,vn],[N,z]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[R,[I,Ae],[N,G]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[R,[I,Ae],[N,z]],[/smart-tv.+(samsung)/i],[I,[N,J]],[/hbbtv.+maple;(\d+)/i],[[R,/^/,"SmartTV"],[I,Nn],[N,J]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[I,gn],[N,J]],[/(apple) ?tv/i],[I,[R,$t+" TV"],[N,J]],[/crkey.*devicetype\/chromecast/i],[[R,ft+" Third Generation"],[I,zn],[N,J]],[/crkey.*devicetype\/([^/]*)/i],[[R,/^/,"Chromecast "],[I,zn],[N,J]],[/fuchsia.*crkey/i],[[R,ft+" Nest Hub"],[I,zn],[N,J]],[/crkey/i],[[R,ft],[I,zn],[N,J]],[/droid.+aft(\w+)( bui|\))/i],[R,[I,Ut],[N,J]],[/(shield \w+ tv)/i],[R,[I,br],[N,J]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[R,[I,j],[N,J]],[/(bravia[\w ]+)( bui|\))/i],[R,[I,be],[N,J]],[/(mi(tv|box)-?\w+) bui/i],[R,[I,Me],[N,J]],[/Hbbtv.*(technisat) (.*);/i],[I,R,[N,J]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[I,Ki],[R,Ki],[N,J]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[R,[N,J]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[N,J]],[/(ouya)/i,/(nintendo) (\w+)/i],[I,R,[N,U]],[/droid.+; (shield)( bui|\))/i],[R,[I,br],[N,U]],[/(playstation \w+)/i],[R,[I,be],[N,U]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[R,[I,vn],[N,U]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[R,[I,Nn],[N,$]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[I,R,[N,$]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[R,[I,sr],[N,$]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[R,[I,$t],[N,$]],[/(opwwe\d{3})/i],[R,[I,Jr],[N,$]],[/(moto 360)/i],[R,[I,Nr],[N,$]],[/(smartwatch 3)/i],[R,[I,be],[N,$]],[/(g watch r)/i],[R,[I,gn],[N,$]],[/droid.+; (wt63?0{2,3})\)/i],[R,[I,Ae],[N,$]],[/droid.+; (glass) \d/i],[R,[I,zn],[N,ne]],[/(pico) (4|neo3(?: link|pro)?)/i],[I,R,[N,ne]],[/; (quest( \d| pro)?)/i],[R,[I,ye],[N,ne]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[I,[N,ae]],[/(aeobc)\b/i],[R,[I,Ut],[N,ae]],[/(homepod).+mac os/i],[R,[I,$t],[N,ae]],[/windows iot/i],[[N,ae]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[R,[N,ni,{mobile:"Mobile",xr:"VR","*":G}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[N,G]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[N,z]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[R,[I,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[D,[P,Pt+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[P,D],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[D,[P,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[P,D],[/ladybird\//i],[[P,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[D,P]],os:[[/microsoft (windows) (vista|xp)/i],[P,D],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[P,[D,ni,bu]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[D,ni,bu],[P,nt]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[D,/_/g,"."],[P,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[P,"macOS"],[D,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[D,[P,ft+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[D,[P,ft+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[D,[P,ft+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[D,[P,ft+" Linux"]],[/crkey\/([\d\.]+)/i],[D,[P,ft]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[D,P],[/(ubuntu) ([\w\.]+) like android/i],[[P,/(.+)/,"$1 Touch"],D],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[P,D],[/\(bb(10);/i],[D,[P,Bn]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[D,[P,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[D,[P,M+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[D,[P,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[D,[P,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[P,"Chrome OS"],D],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[P,D],[/(sunos) ?([\w\.\d]*)/i],[[P,"Solaris"],D],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[P,D]]},ao=function(){var De={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return ti.call(De.init,[[w,[P,D,H,N]],[A,[F]],[E,[N,R,I]],[O,[P,D]],[T,[P,D]]]),ti.call(De.isIgnore,[[w,[D,H]],[O,[D]],[T,[D]]]),ti.call(De.isIgnoreRgx,[[w,/ ?browser$/i],[T,/ ?os$/i]]),ti.call(De.toString,[[w,[P,D]],[A,[F]],[E,[I,R]],[O,[P,D]],[T,[P,D]]]),De}(),hh=function(De,rt){var it=ao.init[rt],Ft=ao.isIgnore[rt]||0,ht=ao.isIgnoreRgx[rt]||0,Wt=ao.toString[rt]||0;function ct(){ti.call(this,it)}return ct.prototype.getItem=function(){return De},ct.prototype.withClientHints=function(){return _t?_t.getHighEntropyValues(It).then(function(zt){return De.setCH(new Su(zt,!1)).parseCH().get()}):De.parseCH().get()},ct.prototype.withFeatureCheck=function(){return De.detectFeature().get()},rt!=L&&(ct.prototype.is=function(zt){var Et=!1;for(var un in this)if(this.hasOwnProperty(un)&&!Wi(Ft,un)&&ei(ht?Rs(ht,this[un]):this[un])==ei(ht?Rs(ht,zt):zt)){if(Et=!0,zt!=s)break}else if(zt==s&&Et){Et=!Et;break}return Et},ct.prototype.toString=function(){var zt=f;for(var Et in Wt)typeof this[Wt[Et]]!==s&&(zt+=(zt?" ":f)+this[Wt[Et]]);return zt||s}),_t||(ct.prototype.then=function(zt){var Et=this,un=function(){for(var si in Et)Et.hasOwnProperty(si)&&(this[si]=Et[si])};un.prototype={is:ct.prototype.is,toString:ct.prototype.toString};var ii=new un;return zt(ii),ii}),new ct};function Su(De,rt){if(De=De||{},ti.call(this,It),rt)ti.call(this,[[ie,wl(De[oe])],[_e,wl(De[Ie])],[z,/\?1/.test(De[Xe])],[R,Ei(De[ge])],[xe,Ei(De[Le])],[et,Ei(De[Mt])],[F,Ei(De[Be])],[Se,wl(De[Ce])],[xt,Ei(De[$e])]]);else for(var it in De)this.hasOwnProperty(it)&&typeof De[it]!==s&&(this[it]=De[it])}function Eu(De,rt,it,Ft){return this.get=function(ht){return ht?this.data.hasOwnProperty(ht)?this.data[ht]:y:this.data},this.set=function(ht,Wt){return this.data[ht]=Wt,this},this.setCH=function(ht){return this.uaCH=ht,this},this.detectFeature=function(){if(yn&&yn.userAgent==this.ua)switch(this.itemType){case w:yn.brave&&typeof yn.brave.isBrave==o&&this.set(P,"Brave");break;case E:!this.get(N)&&_t&&_t[z]&&this.set(N,z),this.get(R)=="Macintosh"&&yn&&typeof yn.standalone!==s&&yn.maxTouchPoints&&yn.maxTouchPoints>2&&this.set(R,"iPad").set(N,G);break;case T:!this.get(P)&&_t&&_t[xe]&&this.set(P,_t[xe]);break;case L:var ht=this.data,Wt=function(ct){return ht[ct].getItem().detectFeature().get()};this.set(w,Wt(w)).set(A,Wt(A)).set(E,Wt(E)).set(O,Wt(O)).set(T,Wt(T))}return this},this.parseUA=function(){return this.itemType!=L&&bl.call(this.data,this.ua,this.rgxMap),this.itemType==w&&this.set(H,ro(this.get(D))),this},this.parseCH=function(){var ht=this.uaCH,Wt=this.rgxMap;switch(this.itemType){case w:case O:var ct=ht[_e]||ht[ie],zt;if(ct)for(var Et in ct){var un=ct[Et].brand||ct[Et],ii=ct[Et].version;this.itemType==w&&!/not.a.brand/i.test(un)&&(!zt||/chrom/i.test(zt)&&un!=ze)&&(un=ni(un,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome"}),this.set(P,un).set(D,ii).set(H,ro(ii)),zt=un),this.itemType==O&&un==ze&&this.set(D,ii)}break;case A:var si=ht[F];si&&(si&&ht[xt]=="64"&&(si+="64"),bl.call(this.data,si+";",Wt));break;case E:if(ht[z]&&this.set(N,z),ht[R]&&(this.set(R,ht[R]),!this.get(N)||!this.get(I))){var ha={};bl.call(ha,"droid 9; "+ht[R]+")",Wt),!this.get(N)&&ha.type&&this.set(N,ha.type),!this.get(I)&&ha.vendor&&this.set(I,ha.vendor)}if(ht[Se]){var oo;if(typeof ht[Se]!="string")for(var ku=0;!oo&&ku<ht[Se].length;)oo=ni(ht[Se][ku++],io);else oo=ni(ht[Se],io);this.set(N,oo)}break;case T:var lo=ht[xe];if(lo){var Sl=ht[et];lo==nt&&(Sl=parseInt(ro(Sl),10)>=13?"11":"10"),this.set(P,lo).set(D,Sl)}this.get(P)==nt&&ht[R]=="Xbox"&&this.set(P,"Xbox").set(D,y);break;case L:var Cu=this.data,ga=function(gh){return Cu[gh].getItem().setCH(ht).parseCH().get()};this.set(w,ga(w)).set(A,ga(A)).set(E,ga(E)).set(O,ga(O)).set(T,ga(T))}return this},ti.call(this,[["itemType",De],["ua",rt],["uaCH",Ft],["rgxMap",it],["data",hh(this,De)]]),this}function ri(De,rt,it){if(typeof De===m?(Gi(De,!0)?(typeof rt===m&&(it=rt),rt=De):(it=De,rt=y),De=y):typeof De===v&&!Gi(rt,!0)&&(it=rt,rt=y),it&&typeof it.append===o){var Ft={};it.forEach(function(Et,un){Ft[un]=Et}),it=Ft}if(!(this instanceof ri))return new ri(De,rt,it).getResult();var ht=typeof De===v?De:it&&it[u]?it[u]:yn&&yn.userAgent?yn.userAgent:f,Wt=new Su(it,!0),ct=rt?Xr(so,rt):so,zt=function(Et){return Et==L?function(){return new Eu(Et,ht,ct,Wt).set("ua",ht).set(w,this.getBrowser()).set(A,this.getCPU()).set(E,this.getDevice()).set(O,this.getEngine()).set(T,this.getOS()).get()}:function(){return new Eu(Et,ht,ct[Et],Wt).parseUA().get()}};return ti.call(this,[["getBrowser",zt(w)],["getCPU",zt(A)],["getDevice",zt(E)],["getEngine",zt(O)],["getOS",zt(T)],["getResult",zt(L)],["getUA",function(){return ht}],["setUA",function(Et){return Qr(Et)&&(ht=Et.length>c?Ki(Et,c):Et),this}]]).setUA(ht),this}ri.VERSION=b,ri.BROWSER=Ps([P,D,H,N]),ri.CPU=Ps([F]),ri.DEVICE=Ps([R,I,N,U,z,J,G,$,ae]),ri.ENGINE=ri.OS=Ps([P,D]),h.UAParser=ri}(ee||(ee={})),(ee||(ee={})).evaluateModernizr=function(){(function(h,y,b,c){function u(oe,Ie){return typeof oe===Ie}function f(){return typeof b.createElement!="function"?b.createElement(arguments[0]):R?b.createElementNS.call(b,"http://www.w3.org/2000/svg",arguments[0]):b.createElement.apply(b,arguments)}function a(oe,Ie){return!!~(""+oe).indexOf(Ie)}function o(){var oe=b.body;return oe||(oe=f(R?"svg":"body"),oe.fake=!0),oe}function s(oe,Ie,Be,$e){var Ce,Xe,ge,Le,Mt="modernizr",It=f("div"),Ut=o();if(parseInt(Be,10))for(;Be--;)ge=f("div"),ge.id=Mt+(Be+1),It.appendChild(ge);return Ce=f("style"),Ce.type="text/css",Ce.id="s"+Mt,(Ut.fake?Ut:It).appendChild(Ce),Ut.appendChild(It),Ce.styleSheet?Ce.styleSheet.cssText=oe:Ce.appendChild(b.createTextNode(oe)),It.id=Mt,Ut.fake&&(Ut.style.background="",Ut.style.overflow="hidden",Le=H.style.overflow,H.style.overflow="hidden",H.appendChild(Ut)),Xe=Ie(It,oe),Ut.fake&&Ut.parentNode?(Ut.parentNode.removeChild(Ut),H.style.overflow=Le,H.offsetHeight):It.parentNode.removeChild(It),!!Xe}function m(oe){return oe.replace(/([A-Z])/g,function(Ie,Be){return"-"+Be.toLowerCase()}).replace(/^ms-/,"-ms-")}function v(oe,Ie,Be){var $e;if("getComputedStyle"in y){$e=getComputedStyle.call(y,oe,Ie);var Ce=y.console;if($e!==null)$e=$e.getPropertyValue(Be);else if(Ce){var Xe=Ce.error?"error":"log";Ce[Xe].call(Ce,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else $e=oe.currentStyle&&oe.currentStyle[Be];return $e}function w(oe,Ie){var Be=oe.length;if(y&&y.CSS&&"supports"in y.CSS){for(;Be--;)if(y.CSS.supports(m(oe[Be]),Ie))return!0;return!1}if("CSSSupportsRule"in y){for(var $e=[];Be--;)$e.push("("+m(oe[Be])+":"+Ie+")");return $e=$e.join(" or "),s("@supports ("+$e+") { #modernizr { position: absolute; } }",function(Ce){return v(Ce,null,"position")==="absolute"})}return c}function A(oe){return oe.replace(/([a-z])-([a-z])/g,function(Ie,Be,$e){return Be+$e.toUpperCase()}).replace(/^-/,"")}function E(oe,Ie,Be,$e){function Ce(){ge&&(delete $.style,delete $.modElem)}if($e=!u($e,"undefined")&&$e,!u(Be,"undefined")){var Xe=w(oe,Be);if(!u(Xe,"undefined"))return Xe}for(var ge,Le,Mt,It,Ut,$t=["modernizr","tspan","samp"];!$.style&&$t.length;)ge=!0,$.modElem=f($t.shift()),$.style=$.modElem.style;for(Mt=oe.length,Le=0;Le<Mt;Le++)if(It=oe[Le],Ut=$.style[It],a(It,"-")&&(It=A(It)),$.style[It]!==c){if($e||u(Be,"undefined"))return Ce(),Ie!=="pfx"||It;try{$.style[It]=Be}catch{}if($.style[It]!==Ut)return Ce(),Ie!=="pfx"||It}return Ce(),!1}function O(oe,Ie){return function(){return oe.apply(Ie,arguments)}}function T(oe,Ie,Be){var $e;for(var Ce in oe)if(oe[Ce]in Ie)return Be===!1?oe[Ce]:($e=Ie[oe[Ce]],u($e,"function")?O($e,Be||Ie):$e);return!1}function L(oe,Ie,Be,$e,Ce){var Xe=oe.charAt(0).toUpperCase()+oe.slice(1),ge=(oe+" "+G.join(Xe+" ")+Xe).split(" ");return u(Ie,"string")||u(Ie,"undefined")?E(ge,Ie,$e,Ce):(ge=(oe+" "+ne.join(Xe+" ")+Xe).split(" "),T(ge,Ie,Be))}function P(oe,Ie,Be){return L(oe,c,c,Ie,Be)}var N=[],I={_version:"3.13.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(oe,Ie){var Be=this;setTimeout(function(){Ie(Be[oe])},0)},addTest:function(oe,Ie,Be){N.push({name:oe,fn:Ie,options:Be})},addAsyncTest:function(oe){N.push({name:null,fn:oe})}},D=function(){};D.prototype=I,D=new D;var F=[],H=b.documentElement,R=H.nodeName.toLowerCase()==="svg",U=function(){function oe(Be,$e){var Ce;return!!Be&&($e&&typeof $e!="string"||($e=f($e||"div")),Be="on"+Be,Ce=Be in $e,!Ce&&Ie&&($e.setAttribute||($e=f("div")),$e.setAttribute(Be,""),Ce=typeof $e[Be]=="function",$e[Be]!==c&&($e[Be]=c),$e.removeAttribute(Be)),Ce)}var Ie=!("onblur"in H);return oe}();I.hasEvent=U,D.addTest("ambientlight",U("devicelight",y)),D.addTest("applicationcache","applicationCache"in y),function(){var oe=f("audio");D.addTest("audio",function(){var Ie=!1;try{Ie=!!oe.canPlayType,Ie&&(Ie=new Boolean(Ie))}catch{}return Ie});try{oe.canPlayType&&(D.addTest("audio.ogg",oe.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"")),D.addTest("audio.mp3",oe.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,"")),D.addTest("audio.opus",oe.canPlayType('audio/ogg; codecs="opus"')||oe.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,"")),D.addTest("audio.wav",oe.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"")),D.addTest("audio.m4a",(oe.canPlayType("audio/x-m4a;")||oe.canPlayType("audio/aac;")).replace(/^no$/,"")))}catch{}}();var z="Moz O ms Webkit",G=I._config.usePrefixes?z.split(" "):[];I._cssomPrefixes=G;var J={elem:f("modernizr")};D._q.push(function(){delete J.elem});var $={style:J.elem.style};D._q.unshift(function(){delete $.style});var ne=I._config.usePrefixes?z.toLowerCase().split(" "):[];I._domPrefixes=ne,I.testAllProps=L;var ae=function(oe){var Ie,Be=_e.length,$e=y.CSSRule;if($e===void 0)return c;if(!oe)return!1;if(oe=oe.replace(/^@/,""),(Ie=oe.replace(/-/g,"_").toUpperCase()+"_RULE")in $e)return"@"+oe;for(var Ce=0;Ce<Be;Ce++){var Xe=_e[Ce];if(Xe.toUpperCase()+"_"+Ie in $e)return"@-"+Xe.toLowerCase()+"-"+oe}return!1};I.atRule=ae;var te=I.prefixed=function(oe,Ie,Be){return oe.indexOf("@")===0?ae(oe):(oe.indexOf("-")!==-1&&(oe=A(oe)),Ie?L(oe,Ie,Be):L(oe,"pfx"))};D.addTest("batteryapi",!!te("battery",navigator)||!!te("getBattery",navigator),{aliases:["battery-api"]}),D.addTest("blobconstructor",function(){try{return!!new Blob}catch{return!1}},{aliases:["blob-constructor"]}),D.addTest("contextmenu","contextMenu"in H&&"HTMLMenuItemElement"in y),D.addTest("cors","XMLHttpRequest"in y&&"withCredentials"in new XMLHttpRequest);var ie=te("crypto",y);D.addTest("crypto",!!te("subtle",ie)),D.addTest("customelements","customElements"in y),D.addTest("customprotocolhandler",function(){if(!navigator.registerProtocolHandler)return!1;try{navigator.registerProtocolHandler("thisShouldFail")}catch(oe){return oe instanceof TypeError}return!1}),D.addTest("customevent","CustomEvent"in y&&typeof y.CustomEvent=="function"),D.addTest("dart",!!te("startDart",navigator)),D.addTest("dataview",typeof DataView<"u"&&"getFloat64"in DataView.prototype),D.addTest("eventlistener","addEventListener"in y),D.addTest("forcetouch",function(){return!!U(te("mouseforcewillbegin",y,!1),y)&&MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN&&MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN}),D.addTest("fullscreen",!(!te("exitFullscreen",b,!1)&&!te("cancelFullScreen",b,!1))),D.addTest("gamepads",!!te("getGamepads",navigator)),D.addTest("geolocation","geolocation"in navigator),D.addTest("ie8compat",!y.addEventListener&&!!b.documentMode&&b.documentMode===7),D.addTest("intl",!!te("Intl",y)),D.addTest("json","JSON"in y&&"parse"in JSON&&"stringify"in JSON),I.testAllProps=P,D.addTest("ligatures",P("fontFeatureSettings",'"liga" 1')),D.addTest("messagechannel","MessageChannel"in y),D.addTest("notification",function(){if(!y.Notification||!y.Notification.requestPermission)return!1;if(y.Notification.permission==="granted")return!0;try{new y.Notification("")}catch(oe){if(oe.name==="TypeError")return!1}return!0}),D.addTest("pagevisibility",!!te("hidden",b,!1)),D.addTest("performance",!!te("performance",y));var Se=[""].concat(ne);I._domPrefixesAll=Se,D.addTest("pointerevents",function(){for(var oe=0,Ie=Se.length;oe<Ie;oe++)if(U(Se[oe]+"pointerdown"))return!0;return!1}),D.addTest("pointerlock",!!te("exitPointerLock",b)),D.addTest("queryselector","querySelector"in b&&"querySelectorAll"in b),D.addTest("quotamanagement",function(){var oe=te("temporaryStorage",navigator),Ie=te("persistentStorage",navigator);return!(!oe||!Ie)}),D.addTest("requestanimationframe",!!te("requestAnimationFrame",y),{aliases:["raf"]}),D.addTest("serviceworker","serviceWorker"in navigator);var _e=I._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];I._prefixes=_e;var xe=function(){var oe=y.matchMedia||y.msMatchMedia;return oe?function(Ie){var Be=oe(Ie);return Be&&Be.matches||!1}:function(Ie){var Be=!1;return s("@media "+Ie+" { #modernizr { position: absolute; } }",function($e){Be=v($e,null,"position")==="absolute"}),Be}}();I.mq=xe,D.addTest("touchevents",function(){if("ontouchstart"in y||y.TouchEvent||y.DocumentTouch&&b instanceof DocumentTouch)return!0;var oe=["(",_e.join("touch-enabled),("),"heartz",")"].join("");return xe(oe)}),D.addTest("typedarrays","ArrayBuffer"in y),D.addTest("vibrate",!!te("vibrate",navigator)),function(){var oe=f("video");D.addTest("video",function(){var Ie=!1;try{Ie=!!oe.canPlayType,Ie&&(Ie=new Boolean(Ie))}catch{}return Ie});try{oe.canPlayType&&(D.addTest("video.ogg",oe.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"")),D.addTest("video.h264",oe.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"")),D.addTest("video.h265",oe.canPlayType('video/mp4; codecs="hev1"').replace(/^no$/,"")),D.addTest("video.webm",oe.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")),D.addTest("video.vp9",oe.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,"")),D.addTest("video.hls",oe.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")),D.addTest("video.av1",oe.canPlayType('video/mp4; codecs="av01"').replace(/^no$/,"")))}catch{}}(),D.addTest("webgl",function(){return"WebGLRenderingContext"in y});var et=!1;try{et="WebSocket"in y&&y.WebSocket.CLOSING===2}catch{}D.addTest("websockets",et),D.addTest("xdomainrequest","XDomainRequest"in y),D.addTest("matchmedia",!!te("matchMedia",y)),function(){var oe,Ie,Be,$e,Ce,Xe,ge;for(var Le in N)if(N.hasOwnProperty(Le)){if(oe=[],Ie=N[Le],Ie.name&&(oe.push(Ie.name.toLowerCase()),Ie.options&&Ie.options.aliases&&Ie.options.aliases.length))for(Be=0;Be<Ie.options.aliases.length;Be++)oe.push(Ie.options.aliases[Be].toLowerCase());for($e=u(Ie.fn,"function")?Ie.fn():Ie.fn,Ce=0;Ce<oe.length;Ce++)Xe=oe[Ce],ge=Xe.split("."),ge.length===1?D[ge[0]]=$e:(D[ge[0]]&&(!D[ge[0]]||D[ge[0]]instanceof Boolean)||(D[ge[0]]=new Boolean(D[ge[0]])),D[ge[0]][ge[1]]=$e),F.push(($e?"":"no-")+ge.join("-"))}}(),delete I.addTest,delete I.addAsyncTest;for(var xt=0;xt<D._q.length;xt++)D._q[xt]();h.Modernizr=D})(ee||(ee={}),window,document)},function(h){h.AiaSignals=function(y){var b=[{name:"IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",value:!1,error:null},{name:"FILE_INJECT_JS_FOUND",value:!1,error:null},{name:"FILE_CONTENT_JS_FOUND",value:!1,error:null},{name:"WINDOW_GLOBAL_KEY_FOUND",value:!1,error:null}],c={webAuthn:1e3,manus:5e3,anchor:5e3,skyvern:5e3,detect:1e4};function u(A){for(var E=0;E<b.length;E++)if(b[E].name===A)return b[E];return null}function f(A,E){var O=u(A);O&&(O.value=E,O.error=null)}function a(A,E,O){var T=u(A);T&&(T.value=E,T.error=O)}function o(){return new Promise(function(A){var E=setTimeout(function(){A(b)},c.detect);s().then(function(O){var T=u("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE");if(T&&T.value){clearTimeout(E),A(b);return}for(var L=[m().then(function(D){return{key:"manus",result:D}}),v().then(function(D){return{key:"anchor",result:D}}),w().then(function(D){return{key:"skyvern",result:D}})],P=0,N=function(){P++,P===L.length&&(clearTimeout(E),A(b))},I=0;I<L.length;I++)(function(D){D.then(N).catch(function(){N()})})(L[I])}).catch(function(){clearTimeout(E),A(b)})})}function s(){return new Promise(function(A){var E=c.webAuthn,O=setTimeout(function(){a("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1004),A(b)},E);try{window.PublicKeyCredential&&typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable=="function"?PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable().then(function(T){clearTimeout(O),T?f("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!0):a("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1001),A(b)}).catch(function(){clearTimeout(O),a("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1002),A(b)}):(clearTimeout(O),a("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1003),A(b))}catch{clearTimeout(O),a("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1002),A(b)}})}function m(){return new Promise(function(A){var E=c.manus,O;function T(){clearTimeout(O),f("FILE_CONTENT_JS_FOUND",!0),A(b)}function L(){a("FILE_CONTENT_JS_FOUND",!1,2001),A(b)}var P=document.createElement("script");P.src="chrome-extension://mljmkmodkfigdopcpgboaalildgijkoc/content.ts.js",P.onload=T,P.onerror=function(){clearTimeout(O),a("FILE_CONTENT_JS_FOUND",!1,2002),A(b)},document.getElementsByTagName("head")[0].appendChild(P),O=setTimeout(L,E)})}function v(){return new Promise(function(A){var E=c.anchor,O;function T(){clearTimeout(O),f("FILE_INJECT_JS_FOUND",!0),A(b)}function L(){a("FILE_INJECT_JS_FOUND",!1,4001),A(b)}var P=document.createElement("script");P.src="chrome-extension://bppehibnhionalpjigdjdilknbljaeai/inject.js",P.onload=T,P.onerror=function(){clearTimeout(O),a("FILE_INJECT_JS_FOUND",!1,4002),A(b)},document.getElementsByTagName("head")[0].appendChild(P),O=setTimeout(L,E)})}function w(){return new Promise(function(A){var E=c.skyvern,O=1e3,T=0;function L(){if(window.globalDomDepthMap||window.GlobalEnableAllTextualElements||window.globalObserverForDOMIncrement||window.globalListnerFlag||window.globalDomDepthMap||window.globalOneTimeIncrementElements||window.globalHoverStylesMap||window.globalParsedElementCounter){f("WINDOW_GLOBAL_KEY_FOUND",!0),A(b);return}for(var P in window)if(typeof P=="string"){var N=P.toLowerCase();if(N.indexOf("skyvern")!==-1&&P!=="isSkyvern"){f("WINDOW_GLOBAL_KEY_FOUND",!0),A(b);return}}T+=O,T>=E?(a("WINDOW_GLOBAL_KEY_FOUND",!1,5002),A(b)):setTimeout(L,O)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",L):L()})}return y.detect=o,y.checkWebAuthnPlatformSupport=s,y.isManus=m,y.isAnchor=v,y.isSkyvern=w,Object.defineProperty(y,"__esModule",{value:!0}),y}({})}(typeof ee<"u"?ee:ee={}),function(h){(ee||(ee={})).pako=h()}(function(){return function h(y,b,c){function u(o,s){if(!b[o]){if(!y[o]){var m=typeof require=="function"&&require;if(!s&&m)return m(o,!0);if(f)return f(o,!0);var v=new Error("Cannot find module '"+o+"'");throw v.code="MODULE_NOT_FOUND",v}var w=b[o]={exports:{}};y[o][0].call(w.exports,function(A){var E=y[o][1][A];return u(E||A)},w,w.exports,h,y,b,c)}return b[o].exports}for(var f=typeof require=="function"&&require,a=0;a<c.length;a++)u(c[a]);return u}({1:[function(h,y,b){function c(o,s){return Object.prototype.hasOwnProperty.call(o,s)}var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";b.assign=function(o){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var m=s.shift();if(m){if(typeof m!="object")throw new TypeError(m+"must be non-object");for(var v in m)c(m,v)&&(o[v]=m[v])}}return o},b.shrinkBuf=function(o,s){return o.length===s?o:o.subarray?o.subarray(0,s):(o.length=s,o)};var f={arraySet:function(o,s,m,v,w){if(s.subarray&&o.subarray)o.set(s.subarray(m,m+v),w);else for(var A=0;A<v;A++)o[w+A]=s[m+A]},flattenChunks:function(o){var s,m,v,w,A,E;for(v=0,s=0,m=o.length;s<m;s++)v+=o[s].length;for(E=new Uint8Array(v),w=0,s=0,m=o.length;s<m;s++)A=o[s],E.set(A,w),w+=A.length;return E}},a={arraySet:function(o,s,m,v,w){for(var A=0;A<v;A++)o[w+A]=s[m+A]},flattenChunks:function(o){return[].concat.apply([],o)}};b.setTyped=function(o){o?(b.Buf8=Uint8Array,b.Buf16=Uint16Array,b.Buf32=Int32Array,b.assign(b,f)):(b.Buf8=Array,b.Buf16=Array,b.Buf32=Array,b.assign(b,a))},b.setTyped(u)},{}],2:[function(h,y,b){function c(m,v){if(v<65537&&(m.subarray&&a||!m.subarray&&f))return String.fromCharCode.apply(null,u.shrinkBuf(m,v));for(var w="",A=0;A<v;A++)w+=String.fromCharCode(m[A]);return w}var u=h("./common"),f=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var o=new u.Buf8(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;o[254]=o[254]=1,b.string2buf=function(m){var v,w,A,E,O,T=m.length,L=0;for(E=0;E<T;E++)(64512&(w=m.charCodeAt(E)))==55296&&E+1<T&&(64512&(A=m.charCodeAt(E+1)))==56320&&(w=65536+(w-55296<<10)+(A-56320),E++),L+=w<128?1:w<2048?2:w<65536?3:4;for(v=new u.Buf8(L),O=0,E=0;O<L;E++)(64512&(w=m.charCodeAt(E)))==55296&&E+1<T&&(64512&(A=m.charCodeAt(E+1)))==56320&&(w=65536+(w-55296<<10)+(A-56320),E++),w<128?v[O++]=w:w<2048?(v[O++]=192|w>>>6,v[O++]=128|63&w):w<65536?(v[O++]=224|w>>>12,v[O++]=128|w>>>6&63,v[O++]=128|63&w):(v[O++]=240|w>>>18,v[O++]=128|w>>>12&63,v[O++]=128|w>>>6&63,v[O++]=128|63&w);return v},b.buf2binstring=function(m){return c(m,m.length)},b.binstring2buf=function(m){for(var v=new u.Buf8(m.length),w=0,A=v.length;w<A;w++)v[w]=m.charCodeAt(w);return v},b.buf2string=function(m,v){var w,A,E,O,T=v||m.length,L=new Array(2*T);for(A=0,w=0;w<T;)if((E=m[w++])<128)L[A++]=E;else if((O=o[E])>4)L[A++]=65533,w+=O-1;else{for(E&=O===2?31:O===3?15:7;O>1&&w<T;)E=E<<6|63&m[w++],O--;O>1?L[A++]=65533:E<65536?L[A++]=E:(E-=65536,L[A++]=55296|E>>10&1023,L[A++]=56320|1023&E)}return c(L,A)},b.utf8border=function(m,v){var w;for((v=v||m.length)>m.length&&(v=m.length),w=v-1;w>=0&&(192&m[w])==128;)w--;return w<0||w===0?v:w+o[m[w]]>v?w:v}},{"./common":1}],3:[function(h,y,b){y.exports=function(c,u,f,a){for(var o=65535&c|0,s=c>>>16&65535|0,m=0;f!==0;){f-=m=f>2e3?2e3:f;do s=s+(o=o+u[a++]|0)|0;while(--m);o%=65521,s%=65521}return o|s<<16|0}},{}],4:[function(h,y,b){var c=function(){for(var u,f=[],a=0;a<256;a++){u=a;for(var o=0;o<8;o++)u=1&u?3988292384^u>>>1:u>>>1;f[a]=u}return f}();y.exports=function(u,f,a,o){var s=c,m=o+a;u^=-1;for(var v=o;v<m;v++)u=u>>>8^s[255&(u^f[v])];return-1^u}},{}],5:[function(h,y,b){function c(M,he){return M.msg=$[he],he}function u(M){return(M<<1)-(M>4?9:0)}function f(M){for(var he=M.length;--he>=0;)M[he]=0}function a(M){var he=M.state,ye=he.pending;ye>M.avail_out&&(ye=M.avail_out),ye!==0&&(U.arraySet(M.output,he.pending_buf,he.pending_out,ye,M.next_out),M.next_out+=ye,he.pending_out+=ye,M.total_out+=ye,M.avail_out-=ye,he.pending-=ye,he.pending===0&&(he.pending_out=0))}function o(M,he){z._tr_flush_block(M,M.block_start>=0?M.block_start:-1,M.strstart-M.block_start,he),M.block_start=M.strstart,a(M.strm)}function s(M,he){M.pending_buf[M.pending++]=he}function m(M,he){M.pending_buf[M.pending++]=he>>>8&255,M.pending_buf[M.pending++]=255&he}function v(M,he,ye,K){var je=M.avail_in;return je>K&&(je=K),je===0?0:(M.avail_in-=je,U.arraySet(he,M.input,M.next_in,je,ye),M.state.wrap===1?M.adler=G(M.adler,he,je,ye):M.state.wrap===2&&(M.adler=J(M.adler,he,je,ye)),M.next_in+=je,M.total_in+=je,je)}function w(M,he){var ye,K,je=M.max_chain_length,tt=M.strstart,nt=M.prev_length,ot=M.nice_match,yn=M.strstart>M.w_size-vn?M.strstart-(M.w_size-vn):0,_t=M.window,Xr=M.w_mask,Ps=M.prev,Wi=M.strstart+gn,Gi=_t[tt+nt-1],Qr=_t[tt+nt];M.prev_length>=M.good_match&&(je>>=2),ot>M.lookahead&&(ot=M.lookahead);do if(ye=he,_t[ye+nt]===Qr&&_t[ye+nt-1]===Gi&&_t[ye]===_t[tt]&&_t[++ye]===_t[tt+1]){tt+=2,ye++;do;while(_t[++tt]===_t[++ye]&&_t[++tt]===_t[++ye]&&_t[++tt]===_t[++ye]&&_t[++tt]===_t[++ye]&&_t[++tt]===_t[++ye]&&_t[++tt]===_t[++ye]&&_t[++tt]===_t[++ye]&&_t[++tt]===_t[++ye]&&tt<Wi);if(K=gn-(Wi-tt),tt=Wi-gn,K>nt){if(M.match_start=he,nt=K,K>=ot)break;Gi=_t[tt+nt-1],Qr=_t[tt+nt]}}while((he=Ps[he&Xr])>yn&&--je!=0);return nt<=M.lookahead?nt:M.lookahead}function A(M){var he,ye,K,je,tt,nt=M.w_size;do{if(je=M.window_size-M.lookahead-M.strstart,M.strstart>=nt+(nt-vn)){U.arraySet(M.window,M.window,nt,nt,0),M.match_start-=nt,M.strstart-=nt,M.block_start-=nt,he=ye=M.hash_size;do K=M.head[--he],M.head[he]=K>=nt?K-nt:0;while(--ye);he=ye=nt;do K=M.prev[--he],M.prev[he]=K>=nt?K-nt:0;while(--ye);je+=nt}if(M.strm.avail_in===0)break;if(ye=v(M.strm,M.window,M.strstart+M.lookahead,je),M.lookahead+=ye,M.lookahead+M.insert>=pt)for(tt=M.strstart-M.insert,M.ins_h=M.window[tt],M.ins_h=(M.ins_h<<M.hash_shift^M.window[tt+1])&M.hash_mask;M.insert&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[tt+pt-1])&M.hash_mask,M.prev[tt&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=tt,tt++,M.insert--,!(M.lookahead+M.insert<pt)););}while(M.lookahead<vn&&M.strm.avail_in!==0)}function E(M,he){for(var ye,K;;){if(M.lookahead<vn){if(A(M),M.lookahead<vn&&he===ne)return Ae;if(M.lookahead===0)break}if(ye=0,M.lookahead>=pt&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+pt-1])&M.hash_mask,ye=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart),ye!==0&&M.strstart-ye<=M.w_size-vn&&(M.match_length=w(M,ye)),M.match_length>=pt)if(K=z._tr_tally(M,M.strstart-M.match_start,M.match_length-pt),M.lookahead-=M.match_length,M.match_length<=M.max_lazy_match&&M.lookahead>=pt){M.match_length--;do M.strstart++,M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+pt-1])&M.hash_mask,ye=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart;while(--M.match_length!=0);M.strstart++}else M.strstart+=M.match_length,M.match_length=0,M.ins_h=M.window[M.strstart],M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+1])&M.hash_mask;else K=z._tr_tally(M,0,M.window[M.strstart]),M.lookahead--,M.strstart++;if(K&&(o(M,!1),M.strm.avail_out===0))return Ae}return M.insert=M.strstart<pt-1?M.strstart:pt-1,he===ie?(o(M,!0),M.strm.avail_out===0?ze:ft):M.last_lit&&(o(M,!1),M.strm.avail_out===0)?Ae:Ue}function O(M,he){for(var ye,K,je;;){if(M.lookahead<vn){if(A(M),M.lookahead<vn&&he===ne)return Ae;if(M.lookahead===0)break}if(ye=0,M.lookahead>=pt&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+pt-1])&M.hash_mask,ye=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart),M.prev_length=M.match_length,M.prev_match=M.match_start,M.match_length=pt-1,ye!==0&&M.prev_length<M.max_lazy_match&&M.strstart-ye<=M.w_size-vn&&(M.match_length=w(M,ye),M.match_length<=5&&(M.strategy===Be||M.match_length===pt&&M.strstart-M.match_start>4096)&&(M.match_length=pt-1)),M.prev_length>=pt&&M.match_length<=M.prev_length){je=M.strstart+M.lookahead-pt,K=z._tr_tally(M,M.strstart-1-M.prev_match,M.prev_length-pt),M.lookahead-=M.prev_length-1,M.prev_length-=2;do++M.strstart<=je&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+pt-1])&M.hash_mask,ye=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart);while(--M.prev_length!=0);if(M.match_available=0,M.match_length=pt-1,M.strstart++,K&&(o(M,!1),M.strm.avail_out===0))return Ae}else if(M.match_available){if((K=z._tr_tally(M,0,M.window[M.strstart-1]))&&o(M,!1),M.strstart++,M.lookahead--,M.strm.avail_out===0)return Ae}else M.match_available=1,M.strstart++,M.lookahead--}return M.match_available&&(K=z._tr_tally(M,0,M.window[M.strstart-1]),M.match_available=0),M.insert=M.strstart<pt-1?M.strstart:pt-1,he===ie?(o(M,!0),M.strm.avail_out===0?ze:ft):M.last_lit&&(o(M,!1),M.strm.avail_out===0)?Ae:Ue}function T(M,he){for(var ye,K,je,tt,nt=M.window;;){if(M.lookahead<=gn){if(A(M),M.lookahead<=gn&&he===ne)return Ae;if(M.lookahead===0)break}if(M.match_length=0,M.lookahead>=pt&&M.strstart>0&&(je=M.strstart-1,(K=nt[je])===nt[++je]&&K===nt[++je]&&K===nt[++je])){tt=M.strstart+gn;do;while(K===nt[++je]&&K===nt[++je]&&K===nt[++je]&&K===nt[++je]&&K===nt[++je]&&K===nt[++je]&&K===nt[++je]&&K===nt[++je]&&je<tt);M.match_length=gn-(tt-je),M.match_length>M.lookahead&&(M.match_length=M.lookahead)}if(M.match_length>=pt?(ye=z._tr_tally(M,1,M.match_length-pt),M.lookahead-=M.match_length,M.strstart+=M.match_length,M.match_length=0):(ye=z._tr_tally(M,0,M.window[M.strstart]),M.lookahead--,M.strstart++),ye&&(o(M,!1),M.strm.avail_out===0))return Ae}return M.insert=0,he===ie?(o(M,!0),M.strm.avail_out===0?ze:ft):M.last_lit&&(o(M,!1),M.strm.avail_out===0)?Ae:Ue}function L(M,he){for(var ye;;){if(M.lookahead===0&&(A(M),M.lookahead===0)){if(he===ne)return Ae;break}if(M.match_length=0,ye=z._tr_tally(M,0,M.window[M.strstart]),M.lookahead--,M.strstart++,ye&&(o(M,!1),M.strm.avail_out===0))return Ae}return M.insert=0,he===ie?(o(M,!0),M.strm.avail_out===0?ze:ft):M.last_lit&&(o(M,!1),M.strm.avail_out===0)?Ae:Ue}function P(M,he,ye,K,je){this.good_length=M,this.max_lazy=he,this.nice_length=ye,this.max_chain=K,this.func=je}function N(M){M.window_size=2*M.w_size,f(M.head),M.max_lazy_match=R[M.level].max_lazy,M.good_match=R[M.level].good_length,M.nice_match=R[M.level].nice_length,M.max_chain_length=R[M.level].max_chain,M.strstart=0,M.block_start=0,M.lookahead=0,M.insert=0,M.match_length=M.prev_length=pt-1,M.match_available=0,M.ins_h=0}function I(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Mt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new U.Buf16(2*Cn),this.dyn_dtree=new U.Buf16(2*(2*Bn+1)),this.bl_tree=new U.Buf16(2*(2*zn+1)),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new U.Buf16(wr+1),this.heap=new U.Buf16(2*kn+1),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new U.Buf16(2*kn+1),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function D(M){var he;return M&&M.state?(M.total_in=M.total_out=0,M.data_type=Le,he=M.state,he.pending=0,he.pending_out=0,he.wrap<0&&(he.wrap=-he.wrap),he.status=he.wrap?br:be,M.adler=he.wrap===2?0:1,he.last_flush=ne,z._tr_init(he),_e):c(M,et)}function F(M){var he=D(M);return he===_e&&N(M.state),he}function H(M,he,ye,K,je,tt){if(!M)return et;var nt=1;if(he===Ie&&(he=6),K<0?(nt=0,K=-K):K>15&&(nt=2,K-=16),je<1||je>It||ye!==Mt||K<8||K>15||he<0||he>9||tt<0||tt>Xe)return c(M,et);K===8&&(K=9);var ot=new I;return M.state=ot,ot.strm=M,ot.wrap=nt,ot.gzhead=null,ot.w_bits=K,ot.w_size=1<<ot.w_bits,ot.w_mask=ot.w_size-1,ot.hash_bits=je+7,ot.hash_size=1<<ot.hash_bits,ot.hash_mask=ot.hash_size-1,ot.hash_shift=~~((ot.hash_bits+pt-1)/pt),ot.window=new U.Buf8(2*ot.w_size),ot.head=new U.Buf16(ot.hash_size),ot.prev=new U.Buf16(ot.w_size),ot.lit_bufsize=1<<je+6,ot.pending_buf_size=4*ot.lit_bufsize,ot.pending_buf=new U.Buf8(ot.pending_buf_size),ot.d_buf=1*ot.lit_bufsize,ot.l_buf=3*ot.lit_bufsize,ot.level=he,ot.strategy=tt,ot.method=ye,F(M)}var R,U=h("../utils/common"),z=h("./trees"),G=h("./adler32"),J=h("./crc32"),$=h("./messages"),ne=0,ae=1,te=3,ie=4,Se=5,_e=0,xe=1,et=-2,xt=-3,oe=-5,Ie=-1,Be=1,$e=2,Ce=3,Xe=4,ge=0,Le=2,Mt=8,It=9,Ut=15,$t=8,kn=286,Bn=30,zn=19,Cn=2*kn+1,wr=15,pt=3,gn=258,vn=gn+pt+1,Nr=32,br=42,Jr=69,sr=73,Nn=91,j=103,be=113,Me=666,Ae=1,Ue=2,ze=3,ft=4,Pt=3;R=[new P(0,0,0,0,function(M,he){var ye=65535;for(ye>M.pending_buf_size-5&&(ye=M.pending_buf_size-5);;){if(M.lookahead<=1){if(A(M),M.lookahead===0&&he===ne)return Ae;if(M.lookahead===0)break}M.strstart+=M.lookahead,M.lookahead=0;var K=M.block_start+ye;if((M.strstart===0||M.strstart>=K)&&(M.lookahead=M.strstart-K,M.strstart=K,o(M,!1),M.strm.avail_out===0)||M.strstart-M.block_start>=M.w_size-vn&&(o(M,!1),M.strm.avail_out===0))return Ae}return M.insert=0,he===ie?(o(M,!0),M.strm.avail_out===0?ze:ft):(M.strstart>M.block_start&&(o(M,!1),M.strm.avail_out),Ae)}),new P(4,4,8,4,E),new P(4,5,16,8,E),new P(4,6,32,32,E),new P(4,4,16,16,O),new P(8,16,32,32,O),new P(8,16,128,128,O),new P(8,32,128,256,O),new P(32,128,258,1024,O),new P(32,258,258,4096,O)],b.deflateInit=function(M,he){return H(M,he,Mt,Ut,$t,ge)},b.deflateInit2=H,b.deflateReset=F,b.deflateResetKeep=D,b.deflateSetHeader=function(M,he){return M&&M.state?M.state.wrap!==2?et:(M.state.gzhead=he,_e):et},b.deflate=function(M,he){var ye,K,je,tt;if(!M||!M.state||he>Se||he<0)return M?c(M,et):et;if(K=M.state,!M.output||!M.input&&M.avail_in!==0||K.status===Me&&he!==ie)return c(M,M.avail_out===0?oe:et);if(K.strm=M,ye=K.last_flush,K.last_flush=he,K.status===br)if(K.wrap===2)M.adler=0,s(K,31),s(K,139),s(K,8),K.gzhead?(s(K,(K.gzhead.text?1:0)+(K.gzhead.hcrc?2:0)+(K.gzhead.extra?4:0)+(K.gzhead.name?8:0)+(K.gzhead.comment?16:0)),s(K,255&K.gzhead.time),s(K,K.gzhead.time>>8&255),s(K,K.gzhead.time>>16&255),s(K,K.gzhead.time>>24&255),s(K,K.level===9?2:K.strategy>=$e||K.level<2?4:0),s(K,255&K.gzhead.os),K.gzhead.extra&&K.gzhead.extra.length&&(s(K,255&K.gzhead.extra.length),s(K,K.gzhead.extra.length>>8&255)),K.gzhead.hcrc&&(M.adler=J(M.adler,K.pending_buf,K.pending,0)),K.gzindex=0,K.status=Jr):(s(K,0),s(K,0),s(K,0),s(K,0),s(K,0),s(K,K.level===9?2:K.strategy>=$e||K.level<2?4:0),s(K,Pt),K.status=be);else{var nt=Mt+(K.w_bits-8<<4)<<8;nt|=(K.strategy>=$e||K.level<2?0:K.level<6?1:K.level===6?2:3)<<6,K.strstart!==0&&(nt|=Nr),nt+=31-nt%31,K.status=be,m(K,nt),K.strstart!==0&&(m(K,M.adler>>>16),m(K,65535&M.adler)),M.adler=1}if(K.status===Jr)if(K.gzhead.extra){for(je=K.pending;K.gzindex<(65535&K.gzhead.extra.length)&&(K.pending!==K.pending_buf_size||(K.gzhead.hcrc&&K.pending>je&&(M.adler=J(M.adler,K.pending_buf,K.pending-je,je)),a(M),je=K.pending,K.pending!==K.pending_buf_size));)s(K,255&K.gzhead.extra[K.gzindex]),K.gzindex++;K.gzhead.hcrc&&K.pending>je&&(M.adler=J(M.adler,K.pending_buf,K.pending-je,je)),K.gzindex===K.gzhead.extra.length&&(K.gzindex=0,K.status=sr)}else K.status=sr;if(K.status===sr)if(K.gzhead.name){je=K.pending;do{if(K.pending===K.pending_buf_size&&(K.gzhead.hcrc&&K.pending>je&&(M.adler=J(M.adler,K.pending_buf,K.pending-je,je)),a(M),je=K.pending,K.pending===K.pending_buf_size)){tt=1;break}tt=K.gzindex<K.gzhead.name.length?255&K.gzhead.name.charCodeAt(K.gzindex++):0,s(K,tt)}while(tt!==0);K.gzhead.hcrc&&K.pending>je&&(M.adler=J(M.adler,K.pending_buf,K.pending-je,je)),tt===0&&(K.gzindex=0,K.status=Nn)}else K.status=Nn;if(K.status===Nn)if(K.gzhead.comment){je=K.pending;do{if(K.pending===K.pending_buf_size&&(K.gzhead.hcrc&&K.pending>je&&(M.adler=J(M.adler,K.pending_buf,K.pending-je,je)),a(M),je=K.pending,K.pending===K.pending_buf_size)){tt=1;break}tt=K.gzindex<K.gzhead.comment.length?255&K.gzhead.comment.charCodeAt(K.gzindex++):0,s(K,tt)}while(tt!==0);K.gzhead.hcrc&&K.pending>je&&(M.adler=J(M.adler,K.pending_buf,K.pending-je,je)),tt===0&&(K.status=j)}else K.status=j;if(K.status===j&&(K.gzhead.hcrc?(K.pending+2>K.pending_buf_size&&a(M),K.pending+2<=K.pending_buf_size&&(s(K,255&M.adler),s(K,M.adler>>8&255),M.adler=0,K.status=be)):K.status=be),K.pending!==0){if(a(M),M.avail_out===0)return K.last_flush=-1,_e}else if(M.avail_in===0&&u(he)<=u(ye)&&he!==ie)return c(M,oe);if(K.status===Me&&M.avail_in!==0)return c(M,oe);if(M.avail_in!==0||K.lookahead!==0||he!==ne&&K.status!==Me){var ot=K.strategy===$e?L(K,he):K.strategy===Ce?T(K,he):R[K.level].func(K,he);if(ot!==ze&&ot!==ft||(K.status=Me),ot===Ae||ot===ze)return M.avail_out===0&&(K.last_flush=-1),_e;if(ot===Ue&&(he===ae?z._tr_align(K):he!==Se&&(z._tr_stored_block(K,0,0,!1),he===te&&(f(K.head),K.lookahead===0&&(K.strstart=0,K.block_start=0,K.insert=0))),a(M),M.avail_out===0))return K.last_flush=-1,_e}return he!==ie?_e:K.wrap<=0?xe:(K.wrap===2?(s(K,255&M.adler),s(K,M.adler>>8&255),s(K,M.adler>>16&255),s(K,M.adler>>24&255),s(K,255&M.total_in),s(K,M.total_in>>8&255),s(K,M.total_in>>16&255),s(K,M.total_in>>24&255)):(m(K,M.adler>>>16),m(K,65535&M.adler)),a(M),K.wrap>0&&(K.wrap=-K.wrap),K.pending!==0?_e:xe)},b.deflateEnd=function(M){var he;return M&&M.state?(he=M.state.status)!==br&&he!==Jr&&he!==sr&&he!==Nn&&he!==j&&he!==be&&he!==Me?c(M,et):(M.state=null,he===be?c(M,xt):_e):et},b.deflateSetDictionary=function(M,he){var ye,K,je,tt,nt,ot,yn,_t,Xr=he.length;if(!M||!M.state||(ye=M.state,(tt=ye.wrap)===2||tt===1&&ye.status!==br||ye.lookahead))return et;for(tt===1&&(M.adler=G(M.adler,he,Xr,0)),ye.wrap=0,Xr>=ye.w_size&&(tt===0&&(f(ye.head),ye.strstart=0,ye.block_start=0,ye.insert=0),_t=new U.Buf8(ye.w_size),U.arraySet(_t,he,Xr-ye.w_size,ye.w_size,0),he=_t,Xr=ye.w_size),nt=M.avail_in,ot=M.next_in,yn=M.input,M.avail_in=Xr,M.next_in=0,M.input=he,A(ye);ye.lookahead>=pt;){K=ye.strstart,je=ye.lookahead-(pt-1);do ye.ins_h=(ye.ins_h<<ye.hash_shift^ye.window[K+pt-1])&ye.hash_mask,ye.prev[K&ye.w_mask]=ye.head[ye.ins_h],ye.head[ye.ins_h]=K,K++;while(--je);ye.strstart=K,ye.lookahead=pt-1,A(ye)}return ye.strstart+=ye.lookahead,ye.block_start=ye.strstart,ye.insert=ye.lookahead,ye.lookahead=0,ye.match_length=ye.prev_length=pt-1,ye.match_available=0,M.next_in=ot,M.input=yn,M.avail_in=nt,ye.wrap=tt,_e},b.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(h,y,b){y.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],7:[function(h,y,b){function c(j){for(var be=j.length;--be>=0;)j[be]=0}function u(j,be,Me,Ae,Ue){this.static_tree=j,this.extra_bits=be,this.extra_base=Me,this.elems=Ae,this.max_length=Ue,this.has_stree=j&&j.length}function f(j,be){this.dyn_tree=j,this.max_code=0,this.stat_desc=be}function a(j){return j<256?pt[j]:pt[256+(j>>>7)]}function o(j,be){j.pending_buf[j.pending++]=255&be,j.pending_buf[j.pending++]=be>>>8&255}function s(j,be,Me){j.bi_valid>Xe-Me?(j.bi_buf|=be<<j.bi_valid&65535,o(j,j.bi_buf),j.bi_buf=be>>Xe-j.bi_valid,j.bi_valid+=Me-Xe):(j.bi_buf|=be<<j.bi_valid&65535,j.bi_valid+=Me)}function m(j,be,Me){s(j,Me[2*be],Me[2*be+1])}function v(j,be){var Me=0;do Me|=1&j,j>>>=1,Me<<=1;while(--be>0);return Me>>>1}function w(j){j.bi_valid===16?(o(j,j.bi_buf),j.bi_buf=0,j.bi_valid=0):j.bi_valid>=8&&(j.pending_buf[j.pending++]=255&j.bi_buf,j.bi_buf>>=8,j.bi_valid-=8)}function A(j,be){var Me,Ae,Ue,ze,ft,Pt,M=be.dyn_tree,he=be.max_code,ye=be.stat_desc.static_tree,K=be.stat_desc.has_stree,je=be.stat_desc.extra_bits,tt=be.stat_desc.extra_base,nt=be.stat_desc.max_length,ot=0;for(ze=0;ze<=Ce;ze++)j.bl_count[ze]=0;for(M[2*j.heap[j.heap_max]+1]=0,Me=j.heap_max+1;Me<$e;Me++)(ze=M[2*M[2*(Ae=j.heap[Me])+1]+1]+1)>nt&&(ze=nt,ot++),M[2*Ae+1]=ze,Ae>he||(j.bl_count[ze]++,ft=0,Ae>=tt&&(ft=je[Ae-tt]),Pt=M[2*Ae],j.opt_len+=Pt*(ze+ft),K&&(j.static_len+=Pt*(ye[2*Ae+1]+ft)));if(ot!==0){do{for(ze=nt-1;j.bl_count[ze]===0;)ze--;j.bl_count[ze]--,j.bl_count[ze+1]+=2,j.bl_count[nt]--,ot-=2}while(ot>0);for(ze=nt;ze!==0;ze--)for(Ae=j.bl_count[ze];Ae!==0;)(Ue=j.heap[--Me])>he||(M[2*Ue+1]!==ze&&(j.opt_len+=(ze-M[2*Ue+1])*M[2*Ue],M[2*Ue+1]=ze),Ae--)}}function E(j,be,Me){var Ae,Ue,ze=new Array(Ce+1),ft=0;for(Ae=1;Ae<=Ce;Ae++)ze[Ae]=ft=ft+Me[Ae-1]<<1;for(Ue=0;Ue<=be;Ue++){var Pt=j[2*Ue+1];Pt!==0&&(j[2*Ue]=v(ze[Pt]++,Pt))}}function O(){var j,be,Me,Ae,Ue,ze=new Array(Ce+1);for(Me=0,Ae=0;Ae<et-1;Ae++)for(vn[Ae]=Me,j=0;j<1<<$t[Ae];j++)gn[Me++]=Ae;for(gn[Me-1]=Ae,Ue=0,Ae=0;Ae<16;Ae++)for(Nr[Ae]=Ue,j=0;j<1<<kn[Ae];j++)pt[Ue++]=Ae;for(Ue>>=7;Ae<Ie;Ae++)for(Nr[Ae]=Ue<<7,j=0;j<1<<kn[Ae]-7;j++)pt[256+Ue++]=Ae;for(be=0;be<=Ce;be++)ze[be]=0;for(j=0;j<=143;)Cn[2*j+1]=8,j++,ze[8]++;for(;j<=255;)Cn[2*j+1]=9,j++,ze[9]++;for(;j<=279;)Cn[2*j+1]=7,j++,ze[7]++;for(;j<=287;)Cn[2*j+1]=8,j++,ze[8]++;for(E(Cn,oe+1,ze),j=0;j<Ie;j++)wr[2*j+1]=5,wr[2*j]=v(j,5);br=new u(Cn,$t,xt+1,oe,Ce),Jr=new u(wr,kn,0,Ie,Ce),sr=new u(new Array(0),Bn,0,Be,ge)}function T(j){var be;for(be=0;be<oe;be++)j.dyn_ltree[2*be]=0;for(be=0;be<Ie;be++)j.dyn_dtree[2*be]=0;for(be=0;be<Be;be++)j.bl_tree[2*be]=0;j.dyn_ltree[2*Le]=1,j.opt_len=j.static_len=0,j.last_lit=j.matches=0}function L(j){j.bi_valid>8?o(j,j.bi_buf):j.bi_valid>0&&(j.pending_buf[j.pending++]=j.bi_buf),j.bi_buf=0,j.bi_valid=0}function P(j,be,Me,Ae){L(j),o(j,Me),o(j,~Me),$.arraySet(j.pending_buf,j.window,be,Me,j.pending),j.pending+=Me}function N(j,be,Me,Ae){var Ue=2*be,ze=2*Me;return j[Ue]<j[ze]||j[Ue]===j[ze]&&Ae[be]<=Ae[Me]}function I(j,be,Me){for(var Ae=j.heap[Me],Ue=Me<<1;Ue<=j.heap_len&&(Ue<j.heap_len&&N(be,j.heap[Ue+1],j.heap[Ue],j.depth)&&Ue++,!N(be,Ae,j.heap[Ue],j.depth));)j.heap[Me]=j.heap[Ue],Me=Ue,Ue<<=1;j.heap[Me]=Ae}function D(j,be,Me){var Ae,Ue,ze,ft,Pt=0;if(j.last_lit!==0)do Ae=j.pending_buf[j.d_buf+2*Pt]<<8|j.pending_buf[j.d_buf+2*Pt+1],Ue=j.pending_buf[j.l_buf+Pt],Pt++,Ae===0?m(j,Ue,be):(m(j,(ze=gn[Ue])+xt+1,be),(ft=$t[ze])!==0&&s(j,Ue-=vn[ze],ft),m(j,ze=a(--Ae),Me),(ft=kn[ze])!==0&&s(j,Ae-=Nr[ze],ft));while(Pt<j.last_lit);m(j,Le,be)}function F(j,be){var Me,Ae,Ue,ze=be.dyn_tree,ft=be.stat_desc.static_tree,Pt=be.stat_desc.has_stree,M=be.stat_desc.elems,he=-1;for(j.heap_len=0,j.heap_max=$e,Me=0;Me<M;Me++)ze[2*Me]!==0?(j.heap[++j.heap_len]=he=Me,j.depth[Me]=0):ze[2*Me+1]=0;for(;j.heap_len<2;)ze[2*(Ue=j.heap[++j.heap_len]=he<2?++he:0)]=1,j.depth[Ue]=0,j.opt_len--,Pt&&(j.static_len-=ft[2*Ue+1]);for(be.max_code=he,Me=j.heap_len>>1;Me>=1;Me--)I(j,ze,Me);Ue=M;do Me=j.heap[1],j.heap[1]=j.heap[j.heap_len--],I(j,ze,1),Ae=j.heap[1],j.heap[--j.heap_max]=Me,j.heap[--j.heap_max]=Ae,ze[2*Ue]=ze[2*Me]+ze[2*Ae],j.depth[Ue]=(j.depth[Me]>=j.depth[Ae]?j.depth[Me]:j.depth[Ae])+1,ze[2*Me+1]=ze[2*Ae+1]=Ue,j.heap[1]=Ue++,I(j,ze,1);while(j.heap_len>=2);j.heap[--j.heap_max]=j.heap[1],A(j,be),E(ze,he,j.bl_count)}function H(j,be,Me){var Ae,Ue,ze=-1,ft=be[1],Pt=0,M=7,he=4;for(ft===0&&(M=138,he=3),be[2*(Me+1)+1]=65535,Ae=0;Ae<=Me;Ae++)Ue=ft,ft=be[2*(Ae+1)+1],++Pt<M&&Ue===ft||(Pt<he?j.bl_tree[2*Ue]+=Pt:Ue!==0?(Ue!==ze&&j.bl_tree[2*Ue]++,j.bl_tree[2*Mt]++):Pt<=10?j.bl_tree[2*It]++:j.bl_tree[2*Ut]++,Pt=0,ze=Ue,ft===0?(M=138,he=3):Ue===ft?(M=6,he=3):(M=7,he=4))}function R(j,be,Me){var Ae,Ue,ze=-1,ft=be[1],Pt=0,M=7,he=4;for(ft===0&&(M=138,he=3),Ae=0;Ae<=Me;Ae++)if(Ue=ft,ft=be[2*(Ae+1)+1],!(++Pt<M&&Ue===ft)){if(Pt<he)do m(j,Ue,j.bl_tree);while(--Pt!=0);else Ue!==0?(Ue!==ze&&(m(j,Ue,j.bl_tree),Pt--),m(j,Mt,j.bl_tree),s(j,Pt-3,2)):Pt<=10?(m(j,It,j.bl_tree),s(j,Pt-3,3)):(m(j,Ut,j.bl_tree),s(j,Pt-11,7));Pt=0,ze=Ue,ft===0?(M=138,he=3):Ue===ft?(M=6,he=3):(M=7,he=4)}}function U(j){var be;for(H(j,j.dyn_ltree,j.l_desc.max_code),H(j,j.dyn_dtree,j.d_desc.max_code),F(j,j.bl_desc),be=Be-1;be>=3&&j.bl_tree[2*zn[be]+1]===0;be--);return j.opt_len+=3*(be+1)+5+5+4,be}function z(j,be,Me,Ae){var Ue;for(s(j,be-257,5),s(j,Me-1,5),s(j,Ae-4,4),Ue=0;Ue<Ae;Ue++)s(j,j.bl_tree[2*zn[Ue]+1],3);R(j,j.dyn_ltree,be-1),R(j,j.dyn_dtree,Me-1)}function G(j){var be,Me=4093624447;for(be=0;be<=31;be++,Me>>>=1)if(1&Me&&j.dyn_ltree[2*be]!==0)return ae;if(j.dyn_ltree[18]!==0||j.dyn_ltree[20]!==0||j.dyn_ltree[26]!==0)return te;for(be=32;be<xt;be++)if(j.dyn_ltree[2*be]!==0)return te;return ae}function J(j,be,Me,Ae){s(j,(Se<<1)+(Ae?1:0),3),P(j,be,Me)}var $=h("../utils/common"),ne=4,ae=0,te=1,ie=2,Se=0,_e=1,xe=2,et=29,xt=256,oe=xt+1+et,Ie=30,Be=19,$e=2*oe+1,Ce=15,Xe=16,ge=7,Le=256,Mt=16,It=17,Ut=18,$t=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],kn=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Bn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],zn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Cn=new Array(2*(oe+2));c(Cn);var wr=new Array(2*Ie);c(wr);var pt=new Array(512);c(pt);var gn=new Array(256);c(gn);var vn=new Array(et);c(vn);var Nr=new Array(Ie);c(Nr);var br,Jr,sr,Nn=!1;b._tr_init=function(j){Nn||(O(),Nn=!0),j.l_desc=new f(j.dyn_ltree,br),j.d_desc=new f(j.dyn_dtree,Jr),j.bl_desc=new f(j.bl_tree,sr),j.bi_buf=0,j.bi_valid=0,T(j)},b._tr_stored_block=J,b._tr_flush_block=function(j,be,Me,Ae){var Ue,ze,ft=0;j.level>0?(j.strm.data_type===ie&&(j.strm.data_type=G(j)),F(j,j.l_desc),F(j,j.d_desc),ft=U(j),Ue=j.opt_len+3+7>>>3,(ze=j.static_len+3+7>>>3)<=Ue&&(Ue=ze)):Ue=ze=Me+5,Me+4<=Ue&&be!==-1?J(j,be,Me,Ae):j.strategy===ne||ze===Ue?(s(j,(_e<<1)+(Ae?1:0),3),D(j,Cn,wr)):(s(j,(xe<<1)+(Ae?1:0),3),z(j,j.l_desc.max_code+1,j.d_desc.max_code+1,ft+1),D(j,j.dyn_ltree,j.dyn_dtree)),T(j),Ae&&L(j)},b._tr_tally=function(j,be,Me){return j.pending_buf[j.d_buf+2*j.last_lit]=be>>>8&255,j.pending_buf[j.d_buf+2*j.last_lit+1]=255&be,j.pending_buf[j.l_buf+j.last_lit]=255&Me,j.last_lit++,be===0?j.dyn_ltree[2*Me]++:(j.matches++,be--,j.dyn_ltree[2*(gn[Me]+xt+1)]++,j.dyn_dtree[2*a(be)]++),j.last_lit===j.lit_bufsize-1},b._tr_align=function(j){s(j,_e<<1,3),m(j,Le,Cn),w(j)}},{"../utils/common":1}],8:[function(h,y,b){y.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(h,y,b){function c(T){if(!(this instanceof c))return new c(T);this.options=a.assign({level:A,method:O,chunkSize:16384,windowBits:15,memLevel:8,strategy:E,to:""},T||{});var L=this.options;L.raw&&L.windowBits>0?L.windowBits=-L.windowBits:L.gzip&&L.windowBits>0&&L.windowBits<16&&(L.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var P=f.deflateInit2(this.strm,L.level,L.method,L.windowBits,L.memLevel,L.strategy);if(P!==w)throw new Error(s[P]);if(L.header&&f.deflateSetHeader(this.strm,L.header),L.dictionary){var N;if(N=typeof L.dictionary=="string"?o.string2buf(L.dictionary):v.call(L.dictionary)==="[object ArrayBuffer]"?new Uint8Array(L.dictionary):L.dictionary,(P=f.deflateSetDictionary(this.strm,N))!==w)throw new Error(s[P]);this._dict_set=!0}}function u(T,L){var P=new c(L);if(P.push(T,!0),P.err)throw P.msg||s[P.err];return P.result}var f=h("./zlib/deflate"),a=h("./utils/common"),o=h("./utils/strings"),s=h("./zlib/messages"),m=h("./zlib/zstream"),v=Object.prototype.toString,w=0,A=-1,E=0,O=8;c.prototype.push=function(T,L){var P,N,I=this.strm,D=this.options.chunkSize;if(this.ended)return!1;N=L===~~L?L:L===!0?4:0,typeof T=="string"?I.input=o.string2buf(T):v.call(T)==="[object ArrayBuffer]"?I.input=new Uint8Array(T):I.input=T,I.next_in=0,I.avail_in=I.input.length;do{if(I.avail_out===0&&(I.output=new a.Buf8(D),I.next_out=0,I.avail_out=D),(P=f.deflate(I,N))!==1&&P!==w)return this.onEnd(P),this.ended=!0,!1;I.avail_out!==0&&(I.avail_in!==0||N!==4&&N!==2)||(this.options.to==="string"?this.onData(o.buf2binstring(a.shrinkBuf(I.output,I.next_out))):this.onData(a.shrinkBuf(I.output,I.next_out)))}while((I.avail_in>0||I.avail_out===0)&&P!==1);return N===4?(P=f.deflateEnd(this.strm),this.onEnd(P),this.ended=!0,P===w):N!==2||(this.onEnd(w),I.avail_out=0,!0)},c.prototype.onData=function(T){this.chunks.push(T)},c.prototype.onEnd=function(T){T===w&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=T,this.msg=this.strm.msg},b.Deflate=c,b.deflate=u,b.deflateRaw=function(T,L){return L=L||{},L.raw=!0,u(T,L)},b.gzip=function(T,L){return L=L||{},L.gzip=!0,u(T,L)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")});var ee;(function(h){(function(y){class b{constructor(){this._isIphoneOrIPad=!1,(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i))&&(this._isIphoneOrIPad=!0),this.initUAParser()}get userAgentData(){return this._userAgentData}get deviceType(){return this._deviceType||(y.Util.isMobile?this._deviceType=this.mobileType||this.desktopType||b.UNKNOWN_DEVICE_TYPE:this._deviceType=this.desktopType||this.mobileType||b.UNKNOWN_DEVICE_TYPE),this._deviceType}get isIphoneOrIPad(){return this._isIphoneOrIPad}get browserName(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.name?this._userAgentData.browser.name.trim():""}get browserVersion(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.version?this._userAgentData.browser.version.trim():""}get browserMajor(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.major?this._userAgentData.browser.major.trim():""}get browserType(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.type?this._userAgentData.browser.type.trim():""}get osName(){return this._userAgentData&&this._userAgentData.os&&this._userAgentData.os.name?this._userAgentData.os.name.trim():""}get osVersion(){return this._userAgentData&&this._userAgentData.os&&this._userAgentData.os.version?this._userAgentData.os.version.trim():""}get deviceCategory(){return this._userAgentData&&this._userAgentData.device&&this._userAgentData.device.type?this._userAgentData.device.type.trim():""}get engineName(){return this._userAgentData&&this._userAgentData.engine&&this._userAgentData.engine.name?this._userAgentData.engine.name.trim():""}get engineVersion(){return this._userAgentData&&this._userAgentData.engine&&this._userAgentData.engine.version?this._userAgentData.engine.version.trim():""}get cpuArchitecture(){return this._userAgentData&&this._userAgentData.cpu&&this._userAgentData.cpu.architecture?this._userAgentData.cpu.architecture.trim():""}get deviceModel(){return this._userAgentData&&this._userAgentData.device&&this._userAgentData.device.model?this._userAgentData.device.model.trim():""}get deviceVendor(){return this._userAgentData&&this._userAgentData.device&&this._userAgentData.device.vendor?this._userAgentData.device.vendor.trim():""}get desktopType(){let u=this.browserName;this.browserVersion&&(u=u+`(${this.browserVersion})`);let f=this.osName;this.osVersion&&(f=f+`(${this.osVersion})`);const a=u&&f?`${u}-${f}`:u||f;return a?a.trim():""}get mobileType(){const u=this.deviceModel,f=this.deviceVendor,a=u&&f?`${u} ${f}`:u||f;return a?a.trim():""}initUAParser(){try{const u=new h.UAParser;u.setUA(navigator.userAgent),this._userAgentData=u.getResult()}catch(u){y.Logger.warn("UAParser failure",u)}}}b.UNKNOWN_DEVICE_TYPE="unknown",y.BrowserInfo=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{static get CLIENT_VERSION(){return"5.6.9w"}static get SALT(){return"ST8irbd3bB"}static get TAB_UUID_KEY(){return"pos_tid"}static get OPS_KEY(){return"pos_ops"}static get DEVICE_ID_KEY(){return"SecuredTouchDeviceId"}static get DEVICE_ID_CREATED_AT(){return"pos_dca"}static get LAST_DEVICE_KEY_RESYNC(){return"DeviceRefreshDate"}static get CAPTURED_KEYBOARD_INTERACTIONS(){return"pos_cki"}static get CAPTURED_MOUSE_INTERACTIONS(){return"pos_cmi"}static get CAPTURED_GESTURES(){return"pos_cg"}static get CAPTURED_INDIRECT(){return"pos_cie"}static get CAPTURED_TAGS(){return"pos_ct"}static get CAPTURED_MOUSE_INTERACTIONS_SUMMARY(){return"pos_mdp"}static get KEYBOARD_INTERACTIONS_COUNT(){return"pos_kic"}static get MOUSE_INTERACTIONS_COUNT(){return"pos_mic"}static get GESTURES_COUNT(){return"pos_gc"}static get EVENT_COUNTERS(){return"pos_ec"}static get PINGID_AGENT_DEFAULT_PORT(){return 9400}static get PINGID_AGENT_DEFAULT_TIMEOUT(){return 1e3}static get MOUSE_EVENT_COUNTERS(){return"pos_mec"}static get KEYBOARD_EVENT_COUNTERS(){return"pos_kec"}static get TOUCH_EVENT_COUNTERS(){return"pos_tec"}static get INDIRECT_EVENT_COUNTERS(){return"pos_iec"}static get GeoDataKey(){return"pos_geo"}}y.Constants=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{constructor(u="ECDSA",f=["sign","verify"],a="SHA-256"){if(this.signingKeyType=u,this.keyUsage=f,this.algorithm=a,this._crypto=window.crypto||window.msCrypto,!this._crypto||!this._crypto.subtle)throw new Error("Cryptography API not supported in this browser")}hexDecode(u){let f="";for(let a=0;a<u.length;a+=2)f+=String.fromCharCode(parseInt(u.substr(a,2),16));return f}async generateKeys(){return this._crypto.subtle.generateKey({name:this.signingKeyType,namedCurve:"P-256"},!1,this.keyUsage)}async exportPublicKey(u){const f=await this._crypto.subtle.exportKey("spki",u.publicKey),a=y.Util.ab2str(f),o=btoa(a),s=this.hexDecode("2d2d2d2d2d424547494e205055424c4943204b45592d2d2d2d2d0a"),m=this.hexDecode("0a2d2d2d2d2d454e44205055424c4943204b45592d2d2d2d2d"),v=`${s}${o}${m}`;return y.Logger.debug("Exported base64 pub key: ",v),v}async exportPublicKeyJwk(u){return await window.crypto.subtle.exportKey("jwk",u.publicKey)}async exportPrivateKey(u){const f=await this._crypto.subtle.exportKey("pkcs8",u.privateKey),a=y.Util.ab2str(f),o=btoa(a),s=this.hexDecode("2d2d2d2d2d424547494e2050524956415445204b45592d2d2d2d2d0a"),m=this.hexDecode("0a2d2d2d2d2d454e442050524956415445204b45592d2d2d2d2d"),v=`${s}${o}${m}`;return y.Logger.debug("Exported base64 pem:",v),v}async signJWT(u,f,a=0,o,s){const m={alg:"ES256",typ:"JWT",jwk:await this.exportPublicKeyJwk(f),kid:s},v={deviceAttributesSerialized:u,iat:Math.floor(o/1e3)};if(!f.privateKey)throw new Error("Require key");if(m.alg!=="ES256"&&m.typ!=="JWT")throw new Error("jwt-encode only support the ES256 algorithm and the JWT type of hash");const w=y.Util.encode(m),A=y.Util.encode(v),E=`${w}.${A}`,O=y.Util.string2buf(E),T=await this._crypto.subtle.sign({name:this.signingKeyType,hash:this.algorithm},f.privateKey,O),L=y.Util.base64url(btoa(y.Util.ab2str(T)));return y.Logger.debug("Signed JWT: ",`${E}.${L}`),`${E}.${L}`}async verifyJwtToken(u,f){const[a,o,s]=u.split("."),m=y.Util.parseJwt(a);if(m.alg!=="ES256"&&m.typ!=="JWT")throw new Error("JWT header supports only ES256 algorithm and the JWT type of hash");y.Util.parseJwt(o);const v=Uint8Array.from(atob(s.replace(/-/g,"+").replace(/_/g,"/")),A=>A.charCodeAt(0)),w=y.Util.string2buf(`${a}.${o}`);return await this._crypto.subtle.verify({name:this.signingKeyType,hash:this.algorithm},f,v,w)}}y.CryptoOperator=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{static get isLogEnabled(){return this._isLogEnabled||window["enable-logs-pingOneSignals"]}static set isLogEnabled(u){this._isLogEnabled=u}static debug(u,...f){u=`${b.TAG} ${u}`,b.isLogEnabled&&(f&&f.length>0?console.debug?console.debug(u,f):console.log(u,f):console.debug?console.debug(u):console.log(u))}static error(u,...f){u=`${b.TAG} ${u}`,b.isLogEnabled&&(f&&f.length>0?console.error(u,f):console.error(u))}static warn(u,...f){u=`${b.TAG} ${u}`,b.isLogEnabled&&(f&&f.length>0?console.warn(u,f):console.warn(u))}static info(u,...f){u=`${b.TAG} ${u}`,b.isLogEnabled&&(f&&f.length>0?console.info(u,f):console.info(u))}}b.TAG="[SignalsSDK]",y.Logger=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{static get INITIALIZATION_ERROR(){return"INITIALIZATION_ERROR"}static get UNEXPECTED_ERROR(){return"UNEXPECTED_ERROR"}}y.POErrorCodes=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));const e={115:"115",2345:"2345",360:"360",ALIPAY:"Alipay",AMAYA:"Amaya",ANDROID:"Android Browser",ARORA:"Arora",AVANT:"Avant",AVAST:"Avast Secure Browser",AVG:"AVG Secure Browser",BAIDU:"Baidu Browser",BASILISK:"Basilisk",BLAZER:"Blazer",BOLT:"Bolt",BOWSER:"Bowser",BRAVE:"Brave",CAMINO:"Camino",CHIMERA:"Chimera",CHROME:"Chrome",CHROME_HEADLESS:"Chrome Headless",CHROME_MOBILE:"Mobile Chrome",CHROME_WEBVIEW:"Chrome WebView",CHROMIUM:"Chromium",COBALT:"Cobalt",COC_COC:"Coc Coc",CONKEROR:"Conkeror",DAUM:"Daum",DILLO:"Dillo",DOLPHIN:"Dolphin",DORIS:"Doris",DRAGON:"Dragon",DUCKDUCKGO:"DuckDuckGo",EDGE:"Edge",EPIPHANY:"Epiphany",FACEBOOK:"Facebook",FALKON:"Falkon",FIREBIRD:"Firebird",FIREFOX:"Firefox",FIREFOX_FOCUS:"Firefox Focus",FIREFOX_MOBILE:"Mobile Firefox",FIREFOX_REALITY:"Firefox Reality",FENNEC:"Fennec",FLOCK:"Flock",FLOW:"Flow",GO:"GoBrowser",GOOGLE_SEARCH:"GSA",HELIO:"Helio",HEYTAP:"HeyTap",HONOR:"Honor",HUAWEI:"Huawei Browser",ICAB:"iCab",ICE:"ICE Browser",ICEAPE:"IceApe",ICECAT:"IceCat",ICEDRAGON:"IceDragon",ICEWEASEL:"IceWeasel",IE:"IE",INSTAGRAM:"Instagram",IRIDIUM:"Iridium",IRON:"Iron",JASMINE:"Jasmine",KONQUEROR:"Konqueror",KAKAO:"KakaoTalk",KHTML:"KHTML",K_MELEON:"K-Meleon",KLAR:"Klar",KLARNA:"Klarna",KINDLE:"Kindle",LENOVO:"Smart Lenovo Browser",LADYBIRD:"Ladybird",LIBREWOLF:"LibreWolf",LIEBAO:"LBBROWSER",LINE:"Line",LINKEDIN:"LinkedIn",LINKS:"Links",LUNASCAPE:"Lunascape",LYNX:"Lynx",MAEMO:"Maemo Browser",MAXTHON:"Maxthon",MIDORI:"Midori",MINIMO:"Minimo",MIUI:"MIUI Browser",MOZILLA:"Mozilla",MOSAIC:"Mosaic",NAVER:"Naver",NETFRONT:"NetFront",NETSCAPE:"Netscape",NETSURF:"Netsurf",NOKIA:"Nokia Browser",OBIGO:"Obigo",OCULUS:"Oculus Browser",OMNIWEB:"OmniWeb",OPERA:"Opera",OPERA_COAST:"Opera Coast",OPERA_GX:"Opera GX",OPERA_MINI:"Opera Mini",OPERA_MOBI:"Opera Mobi",OPERA_TABLET:"Opera Tablet",OPERA_TOUCH:"Opera Touch",OVI:"OviBrowser",PALEMOON:"PaleMoon",PHANTOMJS:"PhantomJS",PHOENIX:"Phoenix",PICOBROWSER:"Pico Browser",POLARIS:"Polaris",PUFFIN:"Puffin",QQ:"QQBrowser",QQ_LITE:"QQBrowserLite",QUARK:"Quark",QUPZILLA:"QupZilla",REKONQ:"rekonq",ROCKMELT:"Rockmelt",SAFARI:"Safari",SAFARI_MOBILE:"Mobile Safari",SAILFISH:"Sailfish Browser",SAMSUNG:"Samsung Internet",SEAMONKEY:"SeaMonkey",SILK:"Silk",SKYFIRE:"Skyfire",SLEIPNIR:"Sleipnir",SLIMBOAT:"SlimBoat",SLIMBROWSER:"SlimBrowser",SLIMJET:"Slimjet",SNAPCHAT:"Snapchat",SOGOU_EXPLORER:"Sogou Explorer",SOGOU_MOBILE:"Sogou Mobile",SWIFTFOX:"Swiftfox",TESLA:"Tesla",TIKTOK:"TikTok",TIZEN:"Tizen Browser",TWITTER:"Twitter",UC:"UCBrowser",UP:"UP.Browser",VIVALDI:"Vivaldi",VIVO:"Vivo Browser",W3M:"w3m",WATERFOX:"Waterfox",WEBKIT:"WebKit",WECHAT:"WeChat",WEIBO:"Weibo",WHALE:"Whale",WOLVIC:"Wolvic",YANDEX:"Yandex"},t={CRAWLER:"crawler",CLI:"cli",EMAIL:"email",FETCHER:"fetcher",INAPP:"inapp",MEDIAPLAYER:"mediaplayer",LIBRARY:"library"},n={"68K":"68k",ARM:"arm",ARM_64:"arm64",ARM_HF:"armhf",AVR:"avr",AVR_32:"avr32",IA64:"ia64",IRIX:"irix",IRIX_64:"irix64",MIPS:"mips",MIPS_64:"mips64",PA_RISC:"pa-risc",PPC:"ppc",SPARC:"sparc",SPARC_64:"sparc64",X86:"ia32",X86_64:"amd64"},r={CONSOLE:"console",DESKTOP:"desktop",EMBEDDED:"embedded",MOBILE:"mobile",SMARTTV:"smarttv",TABLET:"tablet",WEARABLE:"wearable",XR:"xr"},i={ACER:"Acer",ADVAN:"Advan",ALCATEL:"Alcatel",APPLE:"Apple",AMAZON:"Amazon",ARCHOS:"Archos",ASUS:"ASUS",ATT:"AT&T",BENQ:"BenQ",BLACKBERRY:"BlackBerry",CAT:"Cat",DELL:"Dell",ENERGIZER:"Energizer",ESSENTIAL:"Essential",FACEBOOK:"Facebook",FAIRPHONE:"Fairphone",GEEKSPHONE:"GeeksPhone",GENERIC:"Generic",GOOGLE:"Google",HMD:"HMD",HP:"HP",HTC:"HTC",HUAWEI:"Huawei",IMO:"IMO",INFINIX:"Infinix",ITEL:"itel",JOLLA:"Jolla",KOBO:"Kobo",LENOVO:"Lenovo",LG:"LG",MEIZU:"Meizu",MICROMAX:"Micromax",MICROSOFT:"Microsoft",MOTOROLA:"Motorola",NEXIAN:"Nexian",NINTENDO:"Nintendo",NOKIA:"Nokia",NOTHING:"Nothing",NVIDIA:"Nvidia",ONEPLUS:"OnePlus",OPPO:"OPPO",OUYA:"Ouya",PALM:"Palm",PANASONIC:"Panasonic",PEBBLE:"Pebble",PICO:"Pico",POLYTRON:"Polytron",REALME:"Realme",RIM:"RIM",ROKU:"Roku",SAMSUNG:"Samsung",SHARP:"Sharp",SIEMENS:"Siemens",SMARTFREN:"Smartfren",SONY:"Sony",SPRINT:"Sprint",TCL:"TCL",TECHNISAT:"TechniSAT",TECNO:"Tecno",TESLA:"Tesla",ULEFONE:"Ulefone",VIVO:"Vivo",VODAFONE:"Vodafone",XBOX:"Xbox",XIAOMI:"Xiaomi",ZEBRA:"Zebra",ZTE:"ZTE"},l={AMAYA:"Amaya",ARKWEB:"ArkWeb",BLINK:"Blink",EDGEHTML:"EdgeHTML",FLOW:"Flow",GECKO:"Gecko",GOANNA:"Goanna",ICAB:"iCab",KHTML:"KHTML",LIBWEB:"LibWeb",LINKS:"Links",LYNX:"Lynx",NETFRONT:"NetFront",NETSURF:"NetSurf",PRESTO:"Presto",SERVO:"Servo",TASMAN:"Tasman",TRIDENT:"Trident",W3M:"w3m",WEBKIT:"WebKit"},d={AIX:"AIX",AMIGA_OS:"Amiga OS",ANDROID:"Android",ANDROID_X86:"Android-x86",ARCH:"Arch",BADA:"Bada",BEOS:"BeOS",BLACKBERRY:"BlackBerry",CENTOS:"CentOS",CHROME_OS:"Chrome OS",CHROMECAST:"Chromecast",CHROMECAST_ANDROID:"Chromecast Android",CHROMECAST_FUCHSIA:"Chromecast Fuchsia",CHROMECAST_LINUX:"Chromecast Linux",CHROMECAST_SMARTSPEAKER:"Chromecast SmartSpeaker",CONTIKI:"Contiki",DEBIAN:"Debian",DEEPIN:"Deepin",DRAGONFLY:"DragonFly",ELEMENTARY_OS:"elementary OS",FEDORA:"Fedora",FIREFOX_OS:"Firefox OS",FREEBSD:"FreeBSD",FUCHSIA:"Fuchsia",GENTOO:"Gentoo",GHOSTBSD:"GhostBSD",GNU:"GNU",HAIKU:"Haiku",HARMONYOS:"HarmonyOS",HP_UX:"HP-UX",HURD:"Hurd",IOS:"iOS",JOLI:"Joli",KAIOS:"KaiOS",KUBUNTU:"Kubuntu",LINPUS:"Linpus",LINSPIRE:"Linspire",LINUX:"Linux",MACOS:"macOS",MAEMO:"Maemo",MAGEIA:"Mageia",MANDRIVA:"Mandriva",MANJARO:"Manjaro",MEEGO:"MeeGo",MINIX:"Minix",MINT:"Mint",MORPH_OS:"Morph OS",NETBSD:"NetBSD",NETRANGE:"NetRange",NETTV:"NetTV",NINTENDO:"Nintendo",OPENHARMONY:"OpenHarmony",OPENBSD:"OpenBSD",OPENVMS:"OpenVMS",OS2:"OS/2",PALM:"Palm",PC_BSD:"PC-BSD",PCLINUXOS:"PCLinuxOS",PICO:"Pico",PLAN9:"Plan9",PLAYSTATION:"PlayStation",QNX:"QNX",RASPBIAN:"Raspbian",REDHAT:"RedHat",RIM_TABLET_OS:"RIM Tablet OS",RISC_OS:"RISC OS",SABAYON:"Sabayon",SAILFISH:"Sailfish",SERENITYOS:"SerenityOS",SERIES40:"Series40",SLACKWARE:"Slackware",SOLARIS:"Solaris",SUSE:"SUSE",SYMBIAN:"Symbian",TIZEN:"Tizen",UBUNTU:"Ubuntu",UBUNTU_TOUCH:"Ubuntu Touch",UNIX:"Unix",VECTORLINUX:"VectorLinux",WATCHOS:"watchOS",WEBOS:"WebOS",WINDOWS:"Windows",WINDOWS_IOT:"Windows IoT",WINDOWS_MOBILE:"Windows Mobile",WINDOWS_PHONE:"Windows Phone",XBOX:"Xbox",ZENWALK:"Zenwalk"};var ee;(function(h){(function(y){class b{static get Browser(){return e}static get BrowserType(){return t}static get CPU(){return n}static get Device(){return r}static get Vendor(){return i}static get Engine(){return l}static get UAParserEnumOS(){return d}}y.UAParserEnums=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{static get isMobile(){let u=!1;return function(f){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(f)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(f.substr(0,4)))&&(u=!0)}(navigator.userAgent||navigator.vendor||window.opera),u}static newGuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(u){const f=Math.random()*16|0;return(u==="x"?f:f&3|8).toString(16)})}static ieFix(){let u;navigator.userAgent.indexOf("MSIE")!=-1?u=/MSIE (\d+\.\d+);/:u=/Trident.*rv[ :]*(\d+\.\d+)/,u.test(navigator.userAgent)&&(document.body.setAttribute("style","-ms-touch-action:none;"),document.body.style.touchAction="none",document.body.style.msTouchAction="none")}static now(){const u=window.performance||{};return u.now=function(){return u.now||u.webkitNow||u.msNow||u.oNow||u.mozNow||function(){return new Date().getTime()}}(),u.now()}static base64Uint8Array(u){const f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";let a,o=u.length,s="";for(a=0;a<o;a+=3)s+=f[u[a]>>2],s+=f[(u[a]&3)<<4|u[a+1]>>4],s+=f[(u[a+1]&15)<<2|u[a+2]>>6],s+=f[u[a+2]&63];return o%3===2?s=s.substring(0,s.length-1)+"=":o%3===1&&(s=s.substring(0,s.length-2)+"=="),s}static string2buf(u){if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(u);let f,a,o,s,m,v=u.length,w=0;for(s=0;s<v;s++)a=u.charCodeAt(s),(a&64512)===55296&&s+1<v&&(o=u.charCodeAt(s+1),(o&64512)===56320&&(a=65536+(a-55296<<10)+(o-56320),s++)),w+=a<128?1:a<2048?2:a<65536?3:4;for(f=new Uint8Array(w),m=0,s=0;m<w;s++)a=u.charCodeAt(s),(a&64512)===55296&&s+1<v&&(o=u.charCodeAt(s+1),(o&64512)===56320&&(a=65536+(a-55296<<10)+(o-56320),s++)),a<128?f[m++]=a:a<2048?(f[m++]=192|a>>>6,f[m++]=128|a&63):a<65536?(f[m++]=224|a>>>12,f[m++]=128|a>>>6&63,f[m++]=128|a&63):(f[m++]=240|a>>>18,f[m++]=128|a>>>12&63,f[m++]=128|a>>>6&63,f[m++]=128|a&63);return f}static utf8Encode(u){u=u.replace(/\r\n/g,`
70
+ `);let f="";for(let a=0;a<u.length;a++){const o=u.charCodeAt(a);o<128?f+=String.fromCharCode(o):o>127&&o<2048?(f+=String.fromCharCode(o>>6|192),f+=String.fromCharCode(o&63|128)):(f+=String.fromCharCode(o>>12|224),f+=String.fromCharCode(o>>6&63|128),f+=String.fromCharCode(o&63|128))}return f}static hash(u){let f=b.hashCache.get(u);return f||(f=h.sha256(u+y.Constants.SALT),b.hashCache.set(u,f)),f}static hashMini(u){const f=`${JSON.stringify(u)}`;let a,o,s=2166136261;for(a=0,o=f.length;a<o;a++)s=Math.imul(31,s)+f.charCodeAt(a)|0;return("0000000"+(s>>>0).toString(16)).substr(-8)}static hashCode(u){let f=0,a=u?u.length:0,o=0;if(a>0)for(;o<a;)f=(f<<5)-f+u.charCodeAt(o++)|0;return f}static mod(u,f){return(b.hashCode(u)%f+f)%f}static isEmail(u){try{return u&&/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(u.toLowerCase())}catch(f){return y.Logger.warn("isEmail function failed to parse string",f),!1}}static getEmailDomain(u){return b.isEmail(u)?u.substring(u.lastIndexOf("@")+1):""}static extendPrimitiveValues(u,f,a){const o=b.allKeys(f);let s=0;for(;s<o.length;)!b.isObject(f[o[s]])&&(!a||a&&u[o[s]]===void 0)&&(u[o[s]]=f[o[s]]),s++;return u}static flatten(u){const f={};return b.dive("",u,f),f}static isFunction(u){return u&&typeof u=="function"}static isPassiveSupported(){let u=!1;const f=function(){};try{const a={get passive(){return u=!0,!0}};window.addEventListener("test",f,a),window.removeEventListener("test",f,!1)}catch{u=!1}return u}static getAttribute(u,f){try{if(u&&typeof u.getAttribute=="function")return u.getAttribute(f)||""}catch{}return""}static createInvisibleElement(u){try{const f=document.createElement(u);return f.style.display="none",f.style.border="none",f.style.position="absolute",f.style.top="-999px",f.style.left="-999px",f.style.width="0",f.style.height="0",f.style.visibility="hidden",f}catch(f){return y.Logger.warn("Failed to create element",f),null}}static values(u){const f=b.allKeys(u),a=f.length,o=Array(a);for(let s=0;s<a;s++)o[s]=u[f[s]];return o}static getValuesOfMap(u){if(this.isFunction(u.values))return Array.from(u.values());const f=[];return u.forEach(a=>f.push(a)),f}static typesCounter(u){const f={epochTs:Date.now()};for(const a of u)f[a.type]=(f[a.type]||0)+1;return f}static modifiersKeys(u){const f=["Alt","AltGraph","CapsLock","Control","Fn","FnLock","Hyper","Meta","NumLock","OS","ScrollLock","Shift","Super","Symbol","SymbolLock"],a=[];return u.getModifierState&&f.forEach(o=>{u.getModifierState(o.toString())&&a.push(o)}),a}static getElementText(u){var f,a;return u instanceof HTMLInputElement?["checkbox","radio"].indexOf(u.type)>=0?`${u.checked}`:u.value:u instanceof HTMLSelectElement?(a=(f=u.selectedOptions)===null||f===void 0?void 0:f[0])===null||a===void 0?void 0:a.innerText:u.innerText}static getSrcElement(u){return u.srcElement||u.target}static getObjectType(u){try{const f=/function (.{1,})\(/.exec(u.constructor.toString());return f&&f.length>1?f[1]:""}catch{return""}}static isSelectorMatches(u,f,a){try{const o=Element.prototype,s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector;let m=0;do{if(s.call(u,f))return u;u=u.parentElement||u.parentNode}while(u!==null&&u.nodeType===1&&m++<a);return null}catch{return null}}static anySelectorMatches(u,f,a){try{for(const o of f)if(this.isSelectorMatches(u,o,a))return!0}catch(o){y.Logger.warn(o)}return!1}static isArray(u){return Array.isArray?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"}static safeJsonParse(u){let f=null;try{u&&(f=JSON.parse(u))}catch(a){y.Logger.warn("Failed to parse object "+a),f=null}return f}static getElementSelectionStart(u){let f;try{f=u.selectionStart}catch{f=""}return f}static getElementSelectionEnd(u){let f;try{f=u.selectionEnd}catch{f=""}return f}static isClickableInput(u){return u&&["button","checkbox","color","radio","range","image","submit","file","reset"].indexOf(u.type)>=0}static isTextInput(u){return u&&["date","datetime-local","email","month","number","password","search","tel","text","time","url","week","datetime"].indexOf(u.type)>=0}static getDeviceOrientation(){const u=screen.orientation||screen.mozOrientation||{},f=screen.msOrientation||u.type,a=u.angle;return{orientation:f==null?void 0:f.toString(),angle:a==null?void 0:a.toString()}}static getDevToolsState(){var u,f;const a=window.outerWidth-window.innerWidth>160,o=window.outerHeight-window.innerHeight>160,s=a?"vertical":"horizontal";return!(o&&a)&&(!((f=(u=window.Firebug)===null||u===void 0?void 0:u.chrome)===null||f===void 0)&&f.isInitialized||a||o)?{open:!0,orientation:s}:{open:!1,orientation:void 0}}static getCookie(u){const f=document.cookie.match("(^|;) ?"+u+"=([^;]*)(;|$)");return f?f[2]:null}static setCookie(u,f,a){const o=new Date;o.setTime(o.getTime()+1e3*a),document.cookie=u+"="+f+";path=/;secure;SameSite=None;expires="+o.toUTCString()}static deleteCookie(u){b.setCookie(u,"",-1)}static delay(u){return new Promise(f=>setTimeout(f,u))}static getHostnameFromRegex(u){if(u){const f=u.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return f&&f[1]}return null}static inIframe(){try{return window.self!==window.top}catch{return!0}}static promiseTimeout(u,f){const a=new Promise((o,s)=>{const m=setTimeout(()=>{clearTimeout(m),s(new Error("Timed out in "+u+"ms."))},u)});return Promise.race([f,a])}static getProperty(u,f){return f.split(".").reduce(function(a,o){return a?a[o]:null},u)}static filterReduce(u,f){return Object.keys(u).filter(a=>f(u[a])).reduce((a,o)=>({...a,[o]:u[o]}),{})}static dive(u,f,a){for(const o in f)if(f.hasOwnProperty(o)){let s=o;const m=f[o];u.length>0&&(s=u+"."+o),b.isObject(m)?b.dive(s,m,a):a[s]=m}}static isObject(u){const f=typeof u;return f==="function"||f==="object"&&!!u}static allKeys(u){if(!b.isObject(u))return[];const f=[];for(const a in u)f.push(a);return f}static encryptionString(u,f){const a=[];for(let o=0;o<u.length;o++){const s=u.charCodeAt(o)^f.charCodeAt(o%f.length);a.push(String.fromCharCode(s))}return a.join("")}static encryptionBytes(u,f){const a=new Uint8Array(u.length);for(let o=0;o<u.length;o++)a[o]=u[o]^f.charCodeAt(o%f.length);return a}static parseJwt(u){const f=u.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(window.atob(f).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(a)}static calculateMeanTimeDeltasBetweenEvents(u){let f=0;if((u==null?void 0:u.length)>1){let a=u[0].epochTs;for(let o=1;o<u.length;o++)f+=u[o].epochTs-a,a=u[o].epochTs;f/=u.length-1}return f}static sortEventsByTimestamp(u){return u.sort((f,a)=>f.eventTs>a.eventTs?1:f.eventTs<a.eventTs?-1:f.epochTs>a.epochTs?1:f.epochTs<a.epochTs?-1:f.type==="click"?1:-1)}static distanceBetweenPoints(u,f){return Math.sqrt(Math.pow(u.getX()-f.getX(),2)+Math.pow(u.getY()-f.getY(),2))}static calculateMeanDistanceBetweenPoints(u){let f=0;if((u==null?void 0:u.length)>1){for(let a=1;a<u.length;a++)f+=b.distanceBetweenPoints(u[a-1],u[a]);f/=u.length-1}return f}static filterArrayByLength(u,f){return u.length<=f?u:u.slice(0,f).concat(u[u.length-1])}static keepFirstEventsWithDistance(u){const{events:f,threshold:a,min:o,max:s}=u;if(f.length<=o)return f;const m=f[0];let v;for(v=1;v<f.length&&v<s&&!(Math.max(Math.abs(f[v].getX()-m.getX()),Math.abs(f[v].getY()-m.getY()))>=a);v++);return f.slice(0,Math.max(v+1,o))}static ab2str(u){return String.fromCharCode.apply(null,new Uint8Array(u))}static str2ab(u){const f=new ArrayBuffer(u.length),a=new Uint8Array(f);for(let o=0,s=u.length;o<s;o++)a[o]=u.charCodeAt(o);return f}static encode(u){const f=JSON.stringify(u),a=new TextEncoder().encode(f),o=b.base64Uint8Array(a);return b.base64url(o)}static base64url(u){return u.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}}b.hashCache=new Map,b.keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",y.Util=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){var y=h.openDB;(function(b){class c{constructor(){}static async initDB(){if(!(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB))throw new Error("IndexedDB is not supported");const f=new c;return new Promise(async a=>{f.indexedDatabase=await y(this._PingDBName,c._version,{upgrade(o,s,m,v,w){o.createObjectStore(c._storeDefaultName)}}),a(f)})}close(){this.indexedDatabase.close()}getValue(f){return this.indexedDatabase.get(c._storeDefaultName,f)}setValue(f,a){return this.indexedDatabase.put(c._storeDefaultName,a,f)}}c._PingDBName="Ping",c._version=1,c._storeDefaultName="PING_ONE",b.IndexedDBStorage=c})(h._POSignalsStorage||(h._POSignalsStorage={}))})(ee||(ee={}));var ee;(function(h){class y{constructor(c,u,f){this.deviceId=c,this.dbStorage=u,this.cryptoHandler=f}async getExportedPublicKey(){if(!this.cachedPublicKey){const c=await this.getDeviceKeys();c&&(this.cachedPublicKey=await this.cryptoHandler.exportPublicKey(c))}return h._POSignalsUtils.Logger.info("Exported public key:",this.cachedPublicKey),this.cachedPublicKey}async setDeviceKeys(c){const u=await this.dbStorage.setValue(this.deviceId,c);return this.cachedDeviceKey=c,u}async associateDeviceKeys(){const c=await this.cryptoHandler.generateKeys();return h._POSignalsUtils.Logger.info("Associating new device domain keys"),await this.setDeviceKeys(c),c}async getDeviceKeys(){return this.cachedDeviceKey||(this.cachedDeviceKey=await this.dbStorage.getValue(this.deviceId)),this.cachedDeviceKey}async signDeviceAttributeWithJWT(c,u,f){return await this.cryptoHandler.signJWT(c,await this.getDeviceKeys(),y._default_salt,u,f)}async verifyJWT(c){return this.cryptoHandler.verifyJwtToken(c,(await this.getDeviceKeys()).publicKey)}}y._default_salt=32,h.DeviceKeys=y})(ee||(ee={}));var ee;(function(h){(function(y){class b{constructor(){this._disabledStorage=[],this.assertionValues=["BROWSER_ENGINE_VERSION","NAVIGATOR_LANGUAGE","OS_NAME","OS_VERSION","NAVIGATOR_USER_AGENT","FINGER_PRINT","RESOLUTION","PUSH_NOTIFICATIONS_SUPPORTED","COOKIES_ENABLED","IS_INCOGNITO","IS_PRIVATE_MODE"];try{window.sessionStorage.setItem("_st_storage_enabled_check","test"),window.sessionStorage.removeItem("_st_storage_enabled_check"),this.signalsSessionStorage=window.sessionStorage}catch{h._POSignalsUtils.Logger.warn("session storage disabled"),this._disabledStorage.push("sessionStorage"),this.signalsSessionStorage=new y.StorageFallback}try{window.localStorage.setItem("_st_storage_enabled_check","test"),window.localStorage.removeItem("_st_storage_enabled_check"),this.signalsLocalStorage=new y.StorageWrapper(window.localStorage)}catch{h._POSignalsUtils.Logger.warn("local storage disabled"),this._disabledStorage.push("localStorage"),this.signalsLocalStorage=new y.StorageWrapper(new y.StorageFallback)}}setStorageConfig(u){this.universalTrustEnabled=this.isConfigurationEnabled(u.universalDeviceIdentification),this.agentIdentificationEnabled=this.isConfigurationEnabled(u.agentIdentification),this.devEnv=u.devEnv,this.agentPort=u.agentPort,this.agentTimeout=u.agentTimeout,this.htmlGeoLocation=this.isConfigurationEnabled(u.htmlGeoLocation),this.isIAFDetectionEnabled=this.isConfigurationEnabled(u.isIAFDetectionEnabled)}static get instance(){return b._instance||(b._instance=new b),b._instance}get tabUUID(){let u=this.signalsSessionStorage.getItem(h._POSignalsUtils.Constants.TAB_UUID_KEY);return u||(u=h._POSignalsUtils.Util.newGuid(),this.signalsSessionStorage.setItem(h._POSignalsUtils.Constants.TAB_UUID_KEY,u)),u}get ops(){const u=Number(this.signalsSessionStorage.getItem(h._POSignalsUtils.Constants.OPS_KEY));return isNaN(u)?null:u}set ops(u){u?this.signalsSessionStorage.setItem(h._POSignalsUtils.Constants.OPS_KEY,u.toString()):this.signalsSessionStorage.removeItem(h._POSignalsUtils.Constants.OPS_KEY)}get disabledStorage(){return this._disabledStorage}get sessionStorage(){return this.signalsSessionStorage}get localStorage(){return this.signalsLocalStorage}async initDeviceIdentity(){let u;const f=this.signalsLocalStorage.getItem(h._POSignalsUtils.Constants.DEVICE_ID_KEY),a=this.signalsLocalStorage.getItem(h._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT);return f&&(this.cachedDeviceId=f),this.universalTrustEnabled&&(this.deviceTrust={attestation:{},dtts:new Date().getTime()},this.indexedDBStorage=await y.IndexedDBStorage.initDB(),u=await this.loadLocalDeviceTrust()),this.getDeviceId()||await this.associateDeviceDetails(),a||this.signalsLocalStorage.setItem(h._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT,Date.now()),this.universalTrustEnabled&&(!this.getDeviceId()||!u)&&await this.createDomainKeys(),this.getDeviceId()}shouldFallbackToP1Key(u){return this.universalTrustEnabled&&(!u||this.isRefreshRequired(this.deviceKeyRsyncIntervals))}isRefreshRequired(u=3){if(!this.deviceTrust.dtts)return!0;const f=this.signalsLocalStorage.getItem(h._POSignalsUtils.Constants.LAST_DEVICE_KEY_RESYNC);if(!f||isNaN(parseInt(f)))return!0;const a=this.deviceTrust.dtts-f>60*60*24*1e3*u;return a&&h._POSignalsUtils.Logger.debug("Refresh required"),a}async loadLocalDeviceTrust(){try{let u;if(!this.cachedDeviceId)return h._POSignalsUtils.Logger.debug("No device id found on customer domain"),!1;if(this.cachedDeviceId)return this.domainDeviceKeys=new h.DeviceKeys(this.getDeviceId(),this.indexedDBStorage,new h._POSignalsUtils.CryptoOperator),u=await this.domainDeviceKeys.getDeviceKeys(),u?(this.deviceTrust.attestation.deviceKey=await this.domainDeviceKeys.getExportedPublicKey(),!0):(h._POSignalsUtils.Logger.debug("No device keys found on customer domain"),!1)}catch(u){return h._POSignalsUtils.Logger.error("Domain PKI initialization failed",u),!1}}async createDomainKeys(){try{this.domainDeviceKeys=new h.DeviceKeys(this.getDeviceId(),this.indexedDBStorage,new h._POSignalsUtils.CryptoOperator),await this.domainDeviceKeys.associateDeviceKeys(),this.deviceTrust.attestation.deviceKey=await this.domainDeviceKeys.getExportedPublicKey()}catch(u){h._POSignalsUtils.Logger.error("Domain PKI initialization failed",u)}}getDeviceId(){return this.cachedDeviceId}getDeviceCreatedAt(){return this.signalsLocalStorage.getItem(h._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT)}async associateDeviceDetails(){var u,f;return h._POSignalsUtils.Logger.debug("Associating fresh device details"),this.cachedDeviceId=`Id-${h._POSignalsUtils.Util.newGuid()}`,this.signalsLocalStorage.setItem(h._POSignalsUtils.Constants.DEVICE_ID_KEY,this.cachedDeviceId),this.signalsLocalStorage.setItem(h._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT,Date.now()),h._POSignalsUtils.Logger.debug(`PingOne Signals deviceId: ${this.cachedDeviceId}`),[this.cachedDeviceId,(f=(u=this.deviceTrust)===null||u===void 0?void 0:u.attestation)===null||f===void 0?void 0:f.fallbackDeviceKey]}closeTrustStore(){try{this.indexedDBStorage&&this.indexedDBStorage.close()}catch(u){h._POSignalsUtils.Logger.info("Unable to close trust store:",u)}}isConfigurationEnabled(u){return u==null?!1:typeof u=="boolean"?u:typeof u=="string"&&u.toLowerCase()==="true"}async signJWTChallenge(u,f,a){return this.domainDeviceKeys.signDeviceAttributeWithJWT(u,f,a)}getGeoSessionData(){const u=this.signalsSessionStorage.getItem(h._POSignalsUtils.Constants.GeoDataKey);return u??null}}y.SessionStorage=b})(h._POSignalsStorage||(h._POSignalsStorage={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{constructor(f){this.storage=f}getItem(f){const a=h._POSignalsUtils.Util.hash(f);let o=this.storage.getItem(a);return o||(o=this.storage.getItem(f),o&&(this.storage.setItem(a,o),this.storage.removeItem(f))),o}removeItem(f){return this.storage.removeItem(h._POSignalsUtils.Util.hash(f))}setItem(f,a){return this.storage.setItem(h._POSignalsUtils.Util.hash(f),a)}}y.StorageWrapper=b;class c{constructor(){this.internalStorageMap=new Map}getItem(f){return this.internalStorageMap.get(f)}removeItem(f){this.internalStorageMap.delete(f)}setItem(f,a){this.internalStorageMap.set(f,a)}}y.StorageFallback=c})(h._POSignalsStorage||(h._POSignalsStorage={}))})(ee||(ee={}));const g=p;(function(h,y){const b=p,c=h();for(;;)try{if(-parseInt(b(1382))/1+parseInt(b(1161))/2*(parseInt(b(1510))/3)+parseInt(b(1242))/4+-parseInt(b(1015))/5+-parseInt(b(710))/6+parseInt(b(1053))/7+parseInt(b(1284))/8===y)break;c.push(c.shift())}catch{c.push(c.shift())}})(_,914438);var gt=function(h,y,b,c){function u(f){return f instanceof b?f:new b(function(a){a(f)})}return new(b||(b=Promise))(function(f,a){const o=p;function s(w){const A=p;try{v(c[A(1448)](w))}catch(E){a(E)}}function m(w){const A=p;try{v(c[A(594)](w))}catch(E){a(E)}}function v(w){const A=p;w.done?f(w[A(584)]):u(w[A(584)])[A(804)](s,m)}v((c=c[o(399)](h,y||[]))[o(1448)]())})},ee;(function(h){const y=g;(function(b){const c=p;class u{[c(729)](){const a=c;try{const o={hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[]};if(typeof document>"u")return h[a(631)].Logger[a(829)](a(856)),{hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[a(1129)]};if(!document[a(517)])return h[a(631)][a(867)][a(829)](a(1310)),{hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[a(764)]};let s;try{s=document.querySelectorAll(a(816))}catch(w){return h[a(631)][a(867)][a(829)]("Failed to query input elements:",w),{hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[a(617)]}}if(s[a(368)]<=50)return this[a(678)](s,o);const m=1e3,v=Math[a(770)](s[a(368)],m);return s.length>m&&h._POSignalsUtils.Logger.warn("Large DOM detected: "+s[a(368)]+a(767)+m),this[a(369)](s,v,o)}catch(o){return h._POSignalsUtils[a(867)].warn(a(1263),o),{hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:["error"]}}}processInputsSynchronously(a,o){const s=c;for(let m=0;m<a[s(368)];m++)try{const v=a[m],w=this.detectInputAutofill(v);w[s(554)]&&this[s(1110)](o,v,w)}catch(v){h[s(631)][s(867)].warn(s(793)+m+":",v)}return o}[c(369)](a,o,s){const m=c,v=performance[m(308)](),w=100,A=10;let E=0;for(;E<o;){if(performance[m(308)]()-v>w){h[m(631)][m(867)].warn(m(962)+E+"/"+o+m(688)),s[m(928)][m(1265)](m(1523))===-1&&s.detectionMethods[m(939)](m(1523));break}const O=Math[m(770)](E+A,o);for(let T=E;T<O;T++)try{const L=a[T],P=this[m(520)](L);P.isAutofilled&&this[m(1110)](s,L,P)}catch(L){h[m(631)][m(867)][m(829)](m(793)+T+":",L)}E=O}return s}[c(1110)](a,o,s){const m=c;a.hasAutofill=!0,a[m(922)]++,a[m(1169)][m(939)]({type:o[m(322)]||m(1299),name:o[m(1246)]||"",id:o.id||"",placeholder:o[m(1216)]||"",value:o[m(584)]?o[m(584)][m(1073)](0,3)+m(451):"",detectionMethod:s.method}),a[m(928)][m(1265)](s[m(587)])===-1&&a[m(928)][m(939)](s[m(587)])}detectInputAutofill(a){const o=c;if(!a||a[o(708)]!==o(1513))return{isAutofilled:!1,method:o(460)};try{if(a.matches&&a[o(1256)](o(1356)))return{isAutofilled:!0,method:o(472)}}catch{}try{if(a[o(1256)]&&a[o(1256)](":-moz-autofill"))return{isAutofilled:!0,method:o(1200)}}catch{}try{const s=window[o(1396)](a),m=s[o(1504)];if([o(310),o(378)][o(1265)](m)!==-1||m[o(1265)](o(1261))!==-1)return{isAutofilled:!0,method:"background-color"}}catch{}try{if(a[o(584)]&&a[o(584)][o(368)]>0){if(a[o(1366)](o(1072))||a[o(1366)](o(500)))return{isAutofilled:!0,method:o(842)};if(a.hasAttribute(o(1271))||a[o(1266)][o(637)](o(984))){const s=[o(1179),o(1410),o(1353),o(1246),o(1189)];if(s.indexOf(a[o(322)])!==-1||s[o(1148)](m=>a[o(1246)]&&a[o(1246)][o(1479)]()[o(1265)](m)!==-1))return{isAutofilled:!0,method:o(1089)}}}}catch{}try{if(a.classList[o(637)](o(586))||a.classList[o(637)]("auto-filled")||a[o(1366)](o(789))||a[o(1366)](o(531)))return{isAutofilled:!0,method:o(851)}}catch{}try{if(a[o(1058)][o(540)]==="autofill-detection"||a[o(1058)].animationName===o(1319))return{isAutofilled:!0,method:o(871)}}catch{}return{isAutofilled:!1,method:o(460)}}[c(1225)](){const a=c;try{if(typeof document>"u"||!document.querySelectorAll)return{hasEmail:!1,hasPassword:!1,hasName:!1,hasNumber:!1,hasInput:!1};const o=document.querySelectorAll("input");let s=!1,m=!1,v=!1,w=!1;const A=o[a(368)]>0;for(let E=0;E<o[a(368)];E++){const O=o[E],T=(O[a(322)]||"text")[a(1479)](),L=(O[a(1246)]||"")[a(1479)](),P=(O.id||"")[a(1479)](),N=(O[a(346)]||"")[a(1479)](),I=(O[a(1216)]||"").toLowerCase(),D=(O[a(1503)](a(1282))||"").toLowerCase();let F="";try{if(O.id){const H=document[a(580)]('label[for="'+O.id+'"]');H&&(F=(H[a(1065)]||"")[a(1479)]())}if(!F){const H=O.closest("label");H&&(F=(H.textContent||"")[a(1479)]())}}catch{}if(s||(T===a(1179)||L[a(1265)](a(1179))!==-1||P[a(1265)](a(1179))!==-1||N[a(1265)](a(1179))!==-1||I[a(1265)](a(1179))!==-1||D[a(1265)](a(1179))!==-1||F.indexOf("email")!==-1||F.indexOf(a(850))!==-1)&&(s=!0),m||(T===a(1410)||L[a(1265)](a(1410))!==-1||L.indexOf("passwd")!==-1||L.indexOf("pass")!==-1||L.indexOf(a(582))!==-1||P[a(1265)](a(1410))!==-1||P[a(1265)](a(825))!==-1||N.indexOf(a(1410))!==-1||I.indexOf("password")!==-1||F[a(1265)](a(1410))!==-1)&&(m=!0),v||(T===a(1246)||L.indexOf(a(1246))!==-1||L[a(1265)]("username")!==-1||L[a(1265)](a(559))!==-1||P[a(1265)](a(1246))!==-1||P[a(1265)](a(1376))!==-1||P[a(1265)](a(559))!==-1||N[a(1265)](a(1246))!==-1||N[a(1265)](a(1376))!==-1||I.indexOf(a(1246))!==-1||F[a(1265)]("name")!==-1||F.indexOf(a(1376))!==-1||F[a(1265)](a(1150))!==-1)&&(v=!0),w||(T===a(1353)||T===a(497)||L[a(1265)](a(727))!==-1||L[a(1265)](a(1353))!==-1||L.indexOf(a(512))!==-1||L.indexOf(a(662))!==-1||P[a(1265)](a(727))!==-1||P[a(1265)](a(1353))!==-1||P.indexOf(a(512))!==-1||N[a(1265)]("tel")!==-1||I[a(1265)](a(727))!==-1||F[a(1265)](a(727))!==-1||F[a(1265)](a(512))!==-1)&&(w=!0),s&&m&&v&&w)break}return{hasEmail:s,hasPassword:m,hasName:v,hasNumber:w,hasInput:A}}catch(o){return h[a(631)].Logger[a(829)]("Error detecting page input fields:",o),{hasEmail:!1,hasPassword:!1,hasName:!1,hasNumber:!1,hasInput:!1}}}static[c(865)](){const a=c;try{if(!document.getElementById(a(759))){const o=document[a(983)](a(1058));o.id=a(759),o.textContent=a(1427)+"@keyframes autofill-detection { 0% { opacity: 1; } 100% { opacity: 1; } }",document[a(1295)].appendChild(o)}document[a(806)](a(1423),function(o){const s=a;if(o[s(540)]==="autofill-detection"){const m=o.target;m&&m[s(708)]===s(1513)&&(m[s(318)](s(1072),s(413)),m[s(1266)][s(373)]("autofilled"))}},!0)}catch(o){h[a(631)].Logger[a(829)](a(1506),o)}}[c(479)](){const a=c,o=this.detectAutofillFields(),s=this.detectPageInputFields();return{AUTOFILL_DETECTED:o[a(632)],AUTOFILL_COUNT:o[a(922)],AUTOFILL_FIELDS_COUNT:o[a(1169)][a(368)],AUTOFILL_METHODS:o[a(928)][a(1512)](","),AUTOFILL_FIELD_TYPES:o[a(1169)][a(341)](m=>m.type)[a(1512)](","),HAS_EMAIL:s[a(810)],HAS_PASSWORD:s[a(1457)],HAS_NAME:s.hasName,HAS_NUMBER:s[a(1177)],HAS_INPUT:s.hasInput}}getAutofillMetadataAsync(){return gt(this,void 0,void 0,function*(){const a=p,o=yield this[a(316)](),s=this[a(1225)]();return{AUTOFILL_DETECTED:o[a(632)],AUTOFILL_COUNT:o[a(922)],AUTOFILL_FIELDS_COUNT:o[a(1169)][a(368)],AUTOFILL_METHODS:o.detectionMethods[a(1512)](","),AUTOFILL_FIELD_TYPES:o.detectedFields[a(341)](m=>m[a(322)]).join(","),HAS_EMAIL:s[a(810)],HAS_PASSWORD:s[a(1457)],HAS_NAME:s[a(581)],HAS_NUMBER:s[a(1177)],HAS_INPUT:s[a(1409)]}})}[c(1415)](){return gt(this,void 0,void 0,function*(){const a=p;try{return document[a(517)](a(816))[a(368)]>500?yield this[a(1032)]():this[a(479)]()}catch(o){return h._POSignalsUtils[a(867)][a(829)](a(542),o),this[a(479)]()}})}detectAutofillFieldsAsync(){return gt(this,void 0,void 0,function*(){return new Promise(a=>{const o=p;try{const s={hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[]};if(typeof document>"u"){h[o(631)][o(867)].warn(o(1160)),a({hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:["document-unavailable"]});return}let m;try{m=document[o(517)]("input")}catch(T){h._POSignalsUtils[o(867)][o(829)](o(693),T),a({hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[o(617)]});return}const v=2e3,w=Math[o(770)](m[o(368)],v),A=20;let E=0;const O=()=>{const T=o,L=Math.min(E+A,w);for(let P=E;P<L;P++)try{const N=m[P],I=this[T(520)](N);I[T(554)]&&this[T(1110)](s,N,I)}catch(N){h[T(631)][T(867)][T(829)](T(793)+P+T(432),N)}E=L,E>=w?a(s):window.requestIdleCallback?window.requestIdleCallback(O,{timeout:50}):setTimeout(O,0)};window[o(518)]?window[o(518)](O,{timeout:50}):setTimeout(O,0)}catch(s){h[o(631)][o(867)][o(829)](o(763),s),a({hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:["async-error"]})}})})}}b[c(1201)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{constructor(){const a=p;this[a(323)]=a(1460),this[a(898)]=a(1093),this[a(1483)]=[a(1167),"sans-serif","serif"],this[a(522)]=[a(406),"Arial Black","Arial Narrow","Arial Rounded MT Bold",a(530),a(758),"Cambria","Cambria Math",a(701),a(1308),a(1458),a(668),a(1158),a(546),a(609),"Franklin Gothic Medium",a(843),"Gadugi",a(1524),"HoloLens MDL2 Assets",a(890),a(779),a(926),a(1069),a(1354),a(1334),a(1348),a(1194),a(728),"Microsoft JhengHei",a(910),a(1260),"Microsoft Sans Serif",a(778),a(1403),a(629),a(1520),"Mongolian Baiti",a(899),a(976),"Myanmar Text",a(1005),a(819),a(1426),a(425),a(1514),a(1349),"Segoe UI Historic","Segoe UI Emoji",a(535),a(343),a(452),a(1212),a(424),a(519),a(695),a(408),"Verdana",a(1361),"Wingdings",a(1220),a(1360),"Andale Mono",a(656),a(1219),a(547),a(1473),a(635),"AppleMyungjo",a(1293),a(904),a(515),"Avenir Next",a(488),a(1526),a(1135),a(1122),"Bodoni 72 Oldstyle",a(1519),"Bradley Hand",a(1286),a(1471),a(981),"Chalkduster",a(935),a(313),a(464),a(1352),a(528),"Futura","Geneva","Gill Sans","Helvetica",a(1107),a(1464),"Hoefler Text",a(890),"Lucida Grande","Luminari",a(828),a(1470),a(800),"Noteworthy",a(971),"Palatino","Papyrus",a(676),"Rockwell",a(541),a(466),a(864),"Snell Roundhand","Tahoma",a(427),a(1490),a(484),a(1090),a(821),a(1364),a(977),a(1182),"DejaVu Sans",a(543),a(371),a(724),"Droid Sans Mono",a(1244),a(461),a(487),a(1132),a(1133),"Gubbi",a(578),"Khmer OS",a(1176),a(1419),a(1518),a(1358),a(733),a(1344),"Lohit Devanagari",a(887),a(1173),a(434),a(332),a(740),"Noto Nastaliq Urdu",a(644),a(529),a(1046),a(1491),"Noto Sans CJK TC","Noto Serif",a(1020),a(776),a(1527),a(379),a(1018),"Ubuntu",a(400),a(513),a(732),a(924),a(1007),a(724),a(1244),a(401),a(458),a(350),a(1442),a(504),a(1086),"Roboto Slab",a(1041),a(1155),a(1467),"PT Sans",a(777),a(396),a(564),a(1432),a(868),a(499),a(914),a(857),a(1222),a(521),a(787),"Batang",a(1010),a(493),a(968),"Clarendon",a(672),"Franklin Gothic",a(311),a(747),a(826),a(1253),a(524),a(390),a(1050),a(823),a(576),a(1392),a(734),a(1040),a(730),a(1452),a(1077),a(1059),"MYRIAD PRO",a(765),a(831),"Microsoft Uighur",a(443),a(653),a(412),a(1456),a(955),a(681),a(1509),a(551),a(1112),"Staccato222 BT",a(792),a(1214),a(876),"ZWAdobeF"]}[c(394)](){return gt(this,void 0,void 0,function*(){const a=p,o=performance.now();try{const s=yield this.detectFontsWithIframe(),m=performance[a(308)](),v=Math.round(m-o),w=this[a(1232)](s);return{availableFonts:s,fontHash:w,detectionMethod:a(1505)}}catch(s){return h[a(631)][a(867)].warn(a(416),s),{availableFonts:[],fontHash:"",detectionMethod:a(1505)}}})}[c(569)](){return new Promise((a,o)=>{const s=p,m=document[s(983)](s(697));m[s(1058)].setProperty(s(1421),s(964),s(1309)),m.style[s(1351)]=s(685),m.style[s(991)]="-9999px",m.style.top=s(735);const v=()=>{const A=s;try{const E=m[A(766)]||m[A(772)][A(1306)],O=this[A(588)](E);m[A(738)]&&m[A(738)].removeChild(m),a(O)}catch(E){m[A(738)]&&m.parentNode.removeChild(m),o(E)}},w=()=>{const A=s;m[A(738)]&&m.parentNode[A(960)](m),o(new Error("Failed to create iframe for font detection"))};m[s(806)](s(925),v),m[s(806)](s(381),w),document[s(1141)][s(896)](m)})}[c(588)](a){const o=c,s=a[o(1141)];s.style[o(934)]=this[o(898)];const m=a.createElement(o(1367));m[o(1058)][o(1229)]("visibility","hidden","important"),m[o(1058)][o(1351)]=o(685),m.style[o(991)]=o(735),m.style[o(550)]=o(735);const v={},w=this[o(1483)].map(E=>{const O=o,T=a.createElement(O(1425));return T.style[O(1351)]=O(685),T[O(1058)][O(550)]="0",T[O(1058)][O(991)]="0",T[O(1058)][O(712)]=E,T[O(1058)].fontSize=this[O(898)],T[O(1065)]=this[O(323)],m[O(896)](T),{font:E,span:T}});s.appendChild(m),w.forEach(({font:E,span:O})=>{v[E]={width:O.offsetWidth,height:O.offsetHeight}});const A=[];for(const E of this[o(522)]){let O=!1;for(const T of this[o(1483)]){const L=a.createElement(o(1425));L[o(1058)].position=o(685),L[o(1058)][o(550)]="0",L.style.left="0",L[o(1058)][o(712)]="'"+E+o(1466)+T,L[o(1058)][o(934)]=this[o(898)],L[o(1065)]=this[o(323)],m[o(896)](L);const P=L.offsetWidth,N=L[o(952)];if(P!==v[T][o(1431)]||N!==v[T][o(507)]){O=!0;break}}O&&A[o(939)](E)}return m[o(738)]&&m[o(738)][o(960)](m),A}[c(1232)](a){const o=c;if(a[o(368)]===0)return"";const s=a[o(1068)]()[o(1512)](",");return this[o(671)](s)}[c(671)](a){const o=c;let s=0,m=0;for(let O=0;O<a[o(368)];O++){const T=a.charCodeAt(O);s=(s<<5)-s+T,s=s|0,m=T+(m<<6)+(m<<16)-m,m=m|0}const v=s>>>0,w=m>>>0;let A=v[o(861)](16);for(;A[o(368)]<8;)A="0"+A;let E=w[o(861)](16);for(;E[o(368)]<8;)E="0"+E;return A+E}[c(352)](){return gt(this,void 0,void 0,function*(){const a=p,o=performance[a(308)]();try{const s=document[a(983)](a(457)),m=s[a(1482)]("2d");if(!m)throw new Error(a(1243));s.width=500,s[a(507)]=200;const v=[],w={};for(const T of this.baseFonts)m[a(575)](0,0,s[a(1431)],s[a(507)]),m[a(364)]=this[a(898)]+" "+T,m[a(468)](this.testString,0,100),w[T]=s[a(1008)]();for(const T of this[a(522)]){let L=!1;for(const P of this[a(1483)])if(m[a(575)](0,0,s[a(1431)],s[a(507)]),m[a(364)]=this[a(898)]+" '"+T+"', "+P,m[a(468)](this[a(323)],0,100),s[a(1008)]()!==w[P]){L=!0;break}L&&v[a(939)](T)}const A=performance[a(308)](),E=Math[a(620)](A-o),O=this[a(1232)](v);return{availableFonts:v,fontHash:O,detectionMethod:a(457)}}catch(s){return h[a(631)].Logger.warn(a(921),s),{availableFonts:[],fontHash:"",detectionMethod:a(457)}}})}[c(353)](){return gt(this,void 0,void 0,function*(){const a=p;performance.now();try{const o=[a(406),a(758),a(1275),a(1308),a(1458),a(546),"Georgia",a(890),a(1349),a(519),a(695),a(408),a(762),a(1360),a(1473),a(515),a(716),a(1107),a(1413),"Lucida Grande","Menlo",a(800),"Palatino",a(484),a(1231),a(543),a(371),a(1518),a(1358),a(1344),a(396),a(513),a(924),a(724),a(1244),"Open Sans",a(504),a(1086),a(514)],s=yield this[a(1498)](o),m=this[a(1232)](s);return{availableFonts:s,fontHash:m,detectionMethod:a(1505)}}catch(o){return h[a(631)].Logger[a(829)]("Quick font detection failed",o),{availableFonts:[],fontHash:"",detectionMethod:"size"}}})}[c(1498)](a){return new Promise((o,s)=>{const m=p,v=document[m(983)](m(697));v[m(1058)].setProperty(m(1421),m(964),m(1309)),v[m(1058)][m(1351)]=m(685),v[m(1058)][m(991)]=m(735),v[m(1058)].top="-9999px";const w=()=>{const E=m;try{const O=v[E(766)]||v.contentWindow[E(1306)],T=O[E(1141)];T[E(1058)].fontSize=this[E(898)];const L=O[E(983)](E(1367));L[E(1058)][E(1229)](E(1421),E(964),"important"),L[E(1058)][E(1351)]=E(685),L[E(1058)][E(991)]=E(735),L[E(1058)][E(550)]="-9999px";const P={},N=this[E(1483)][E(341)](D=>{const F=E,H=O[F(983)]("span");return H[F(1058)][F(1351)]="absolute",H[F(1058)][F(550)]="0",H[F(1058)][F(991)]="0",H.style[F(712)]=D,H[F(1058)][F(934)]=this[F(898)],H[F(1065)]=this.testString,L[F(896)](H),{font:D,span:H}});T[E(896)](L),N[E(892)](({font:D,span:F})=>{P[D]={width:F.offsetWidth,height:F.offsetHeight}});const I=[];for(const D of a){let F=!1;for(const H of this.baseFonts){const R=O[E(983)](E(1425));R.style[E(1351)]="absolute",R.style[E(550)]="0",R[E(1058)][E(991)]="0",R.style[E(712)]="'"+D+E(1466)+H,R[E(1058)][E(934)]=this[E(898)],R.textContent=this[E(323)],L.appendChild(R);const U=R.offsetWidth,z=R.offsetHeight;if(U!==P[H].width||z!==P[H].height){F=!0;break}}F&&I[E(939)](D)}L.parentNode&&L[E(738)][E(960)](L),v.parentNode&&v[E(738)].removeChild(v),o(I)}catch(O){v[E(738)]&&v[E(738)].removeChild(v),s(O)}},A=()=>{const E=m;v.parentNode&&v.parentNode[E(960)](v),s(new Error("Failed to create iframe for font detection"))};v[m(806)]("load",w),v[m(806)](m(381),A),document[m(1141)][m(896)](v)})}}b[c(428)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){(function(b){const c=p;class u{get[c(711)](){const o=c;if(!this[o(567)].browserInfo[o(1508)])return 0;let s=this[o(600)].ops;return!s&&(s=this[o(696)](),this[o(600)].ops=s),s}constructor(o,s,m,v){const w=c;this.sessionData=o,this.metadataParams=s,this[w(496)]=m,this.localAgentAccessor=v,this[w(549)]=null,this[w(1327)]=null,this[w(1100)]=null,this[w(1178)]=null,this[w(1120)]=null,this.isBatterySupported=null,this[w(1187)]=null,this[w(358)]=null,this.batteryChargingTime=null,this[w(1346)]=null,this[w(1469)]=new Map,this.lieTests={},this[w(485)]=null,this[w(717)]=new Set([w(1121),w(1104),"audio","audioBaseLatency",w(457),w(1385),w(356),w(807),w(568),w(1411),w(1210),w(1127),w(1031),w(639),w(663),w(834),w(1070),w(969),w(1289),"invertedColors","languages",w(1446),"monochrome",w(411),"osCpu",w(1371),w(1057),w(492),w(516),w(1285),w(885),"screenFrame","screenResolution","sessionStorage",w(658),w(1240),w(1230),w(354),w(847)]),this[w(1393)]=-1,this[w(726)]=0,this[w(604)]=0,this[w(437)]=[],this[w(509)]=[],this.audioOutputDevices=[],this[w(367)]=new Map,this[w(1337)]=null,this[w(589)]=null,this[w(907)]=0,this.metadataQueue=new h[w(417)](1),this[w(1174)]=null,this[w(849)]=null,this.autoFillMeta=new b.AutofillDetector,this[w(624)]=null,this[w(1166)]=null}getDeviceAttributes(){return gt(this,void 0,void 0,function*(){const o=p;return this[o(646)][o(373)](()=>gt(this,void 0,void 0,function*(){const s=o;!this[s(1337)]&&(this.lastCalculatedMetadata=yield this.calculateDeviceMetadata(),h._POSignalsUtils[s(867)][s(1300)](s(430)),h[s(631)][s(867)][s(1300)](s(879)+this.deviceId),h[s(631)][s(867)][s(1300)](s(875)+this[s(1327)]),this[s(600)].closeTrustStore());const m=typeof window!==s(480)&&window[s(342)]&&typeof window[s(342)][s(368)]===s(497)?window[s(342)][s(368)]:null;return this.lastCalculatedMetadata&&(this.lastCalculatedMetadata[s(1019)]=m),this[s(600)]&&this[s(600)][s(1384)]&&(yield this[s(377)]()),yield this[s(1320)](),this[s(600)]&&this[s(600)][s(945)]&&this[s(395)](),this[s(600)][s(1472)]&&(this[s(1174)]=JSON.stringify(this[s(1337)])),this[s(1337)]}))})}getGeoLocationData(){var o,s,m,v;return gt(this,void 0,void 0,function*(){const w=p;this[w(1337)]=Object.assign(Object.assign({},this[w(1337)]),{htmlGeoLocation_latitude:void 0,htmlGeoLocation_longitude:void 0,htmlGeoLocation_accuracy:void 0,htmlGeoLocation_speed:void 0,htmlGeoLocation_heading:void 0,htmlGeoLocation_timestamp:void 0,htmlGeoLocation_ErrorMessage:"",htmlGeoLocation_ErrorCode:""});const A=(D,F="")=>{const H=w,R=D[H(368)]>255?D[H(1106)](0,252)+H(360):D;return this[H(1337)].htmlGeoLocation_ErrorMessage=R,this[H(1337)][H(894)]=F,{status:H(381),message:R}},E=D=>{const F=w;switch(D){case 1:return A(F(607),F(1287));case 2:return A(F(756),F(1171));case 3:return A(F(805),F(591));default:return A(F(1197),F(1171))}};if(!navigator[w(597)])return A("Geolocation API is not supported by this browser.",w(933));const O=this[w(1337)][w(1379)].toLowerCase(),T=O[w(1461)](w(1084)),L=O[w(1461)](w(1478));let P=!1;const N=yield navigator[w(1184)][w(410)]({name:w(597)});if(this[w(1337)][w(917)]=N[w(628)],N[w(628)]===w(338))return A(w(1313)+N[w(628)]+w(714)+O+"'.","PERMISSION_DENIED");const I=this[w(600)][w(1302)]();if(I)try{const D=JSON.parse(I);if(D&&D.latitude&&D[w(1028)])this[w(1337)][w(675)]=D[w(398)]?parseFloat(D.latitude[w(1525)](2)):null,this[w(1337)][w(958)]=D[w(1028)]?parseFloat(D[w(1028)][w(1525)](2)):null,this[w(1337)].htmlGeoLocation_accuracy=(o=D[w(801)])!==null&&o!==void 0?o:null,this[w(1337)][w(703)]=(s=D.speed)!==null&&s!==void 0?s:null,this[w(1337)][w(314)]=(m=D.heading)!==null&&m!==void 0?m:null,this[w(1337)][w(651)]=(v=D[w(456)])!==null&&v!==void 0?v:null,delete this.lastCalculatedMetadata[w(1092)],delete this[w(1337)][w(894)],P=!0;else if(D&&D.error_code)return P=!1,E(D[w(1530)])}catch(D){h._POSignalsUtils.Logger[w(1300)]("Invalid geoData JSON in session storage:",D)}if(N[w(628)]==="granted")return yield new Promise(D=>{const F={timeout:500},H=(R=1)=>{const U=p;navigator.geolocation[U(942)](z=>{const G=U;var J;const{latitude:$,longitude:ne,accuracy:ae,speed:te,heading:ie}=z[G(481)];if((!$||!ne||$===0||ne===0)&&(T||L)&&R===1)return H(2);this[G(1337)].htmlGeoLocation_latitude=$?parseFloat($[G(1525)](2)):void 0,this[G(1337)].htmlGeoLocation_longitude=ne?parseFloat(ne[G(1525)](2)):void 0,this.lastCalculatedMetadata.htmlGeoLocation_accuracy=ae,this[G(1337)].htmlGeoLocation_speed=te,this.lastCalculatedMetadata.htmlGeoLocation_heading=ie,this[G(1337)].htmlGeoLocation_timestamp=(J=z[G(456)])!==null&&J!==void 0?J:null,delete this[G(1337)][G(1092)],delete this[G(1337)][G(894)],P=!0,D({status:G(454)})},z=>{D(E(z[U(1416)])),P=!1},F)};H()});if(!P)return A(w(1313)+N[w(628)]+w(1234)+O+"'",w(1171))})}refreshDeviceAttributes(){return gt(this,void 0,void 0,function*(){const o=p;yield this[o(1383)]();const s=typeof window<"u"&&window[o(342)]&&typeof window.history[o(368)]===o(497)?window[o(342)][o(368)]:null;this.lastCalculatedMetadata&&(this[o(1337)][o(1019)]=s);const m=this[o(1186)][o(479)]();Object.assign(this.lastCalculatedMetadata,m)})}[c(1383)](){return gt(this,void 0,void 0,function*(){const o=p,s=160,m=window[o(883)]-window[o(1330)]>s,v=window[o(1332)]-window.innerHeight>s,w=o(m?421:1109);this[o(1337)][o(999)]=o(m||v?330:1474),this[o(1337)][o(918)]=m||v?w:o(477)})}[c(994)](){return gt(this,void 0,void 0,function*(){const o=p;return this[o(646)][o(373)](()=>gt(this,void 0,void 0,function*(){const s=o;if(this[s(907)]>=5)return this.localAgentJwt;if(this[s(600)][s(1011)])return!this[s(589)]&&(this[s(589)]=yield this[s(1076)][s(1292)]()),this[s(907)]++,this[s(589)]}))})}[c(795)](){return{identifier:"x1",key:"Xq7tSbjB517mhZwt"}}getSerializedDeviceAttributes(){return this[c(1174)]}[c(1329)](){return gt(this,void 0,void 0,function*(){const o=p;this[o(485)]=navigator[o(597)]!=null;const s=this[o(567)][o(788)],m=[this.sessionData[o(324)]().catch(w=>{const A=o;h[A(631)][A(867)][A(1300)](A(694),w)}),this[o(1441)](s)[o(689)](w=>{const A=o;h[A(631)][A(867)][A(1300)]("failed to get fingerprint info",w.message)}),this[o(1154)]()[o(689)](w=>{const A=o;h[A(631)][A(867)].info(A(1485),w[A(768)])}),b[o(1003)][o(1304)]()[o(689)](w=>h._POSignalsUtils[o(867)][o(1300)](o(916),w)),this[o(418)]()[o(689)](w=>h[o(631)][o(867)][o(1300)](o(1276),w)),new b[o(1459)](s)[o(627)]()[o(689)](w=>h[o(631)][o(867)][o(1300)](o(537),w)),new b[o(1004)](s)[o(328)]().catch(w=>h._POSignalsUtils[o(867)][o(1300)]("failed to get lies results",w)),this.audioIntVideoInit()[o(689)](w=>h[o(631)].Logger.info(o(387),w)),this[o(508)]()[o(689)](w=>h[o(631)][o(867)][o(1300)](o(503),w)),this[o(1339)](s)[o(689)](w=>h._POSignalsUtils[o(867)].info(o(757),w)),this[o(625)]()[o(689)](w=>{const A=o;return h[A(631)][A(867)][A(1300)]("failed to get voices info",w),0})];[this[o(549)],this.fingerPrint,this[o(750)],this[o(1051)],this[o(1184)],this[o(1469)],this[o(1033)],,,this[o(624)],this[o(1166)]]=yield Promise[o(683)](m),this[o(1327)]=this.sessionData.getDeviceCreatedAt();const v={ops:this.OPS,devicePixelRatio:window[o(1209)],screenWidth:window[o(405)][o(1431)],screenHeight:window[o(405)][o(507)]};return h[o(631)][o(1139)][o(872)](v,screen,!1),Object[o(1312)](Object[o(1312)](Object[o(1312)](Object.assign({deviceId:this[o(549)],device_created_ts:this[o(1327)],deviceType:this[o(567)][o(419)].deviceType,osVersion:(this[o(567)][o(419)][o(1311)]+" "+this[o(567)][o(419)][o(719)])[o(1451)]()||"",externalIdentifiers:this[o(496)],origin:location[o(1434)],href:location.href},yield this[o(445)](s)),this[o(393)]()),this.getSensorsMetadata()),v)})}[c(508)](){return gt(this,void 0,void 0,function*(){const o=p,s=this;yield h[o(631)].Util[o(989)](50,new Promise((m,v)=>{const w=o;navigator[w(1268)]?(this[w(1404)]=!0,navigator.getBattery()[w(804)](A=>{const E=w;A&&(s.batteryLevel=A[E(1137)],s[E(358)]=A[E(944)],s[E(1146)]=A.chargingTime,s[E(1346)]=A[E(1397)]),m()})[w(689)](A=>{const E=w;h[E(631)][E(867)][E(1300)](E(630)+A),m()})):(h._POSignalsUtils[w(867)][w(1300)](w(1444)),m())}))})}[c(1336)](){const o=c,s=/^((?!chrome|android).)*safari/i[o(431)](navigator[o(641)]);return!h._POSignalsUtils[o(1139)].inIframe()||!s}getRTCPeerConnection(){const o=c;let s=window[o(1118)]||window[o(1394)]||window[o(1223)];if(!s){const m=window["iframe.contentWindow"];m&&(s=m[o(1118)]||m.mozRTCPeerConnection||m[o(1223)])}return s}[c(482)](){const o=c,s=this;try{const m={},v=this[o(1369)](),w={optional:[{RtpDataChannels:!0}]},A={iceServers:[{urls:this[o(567)][o(556)][o(1451)]()}]},E=new v(A,w);E[o(1499)]=O=>{const T=o,L=1;if(O[T(1188)]){const P=/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/,N=P[T(1079)](O[T(1188)][T(1188)])[1];m[N]===void 0&&(O[T(1188)][T(1188)][T(1265)]("host")>0?s[T(367)][T(525)]("WEB_RTC_HOST_IP",N):O[T(1188)][T(1188)][T(1265)]("srflx")>0&&s[T(367)][T(525)]("WEB_RTC_SRFLX_IP",N)),m[N]=!0}},E[o(1422)](""),E[o(1489)](function(O){E.setLocalDescription(O,function(){},function(){})},function(){})}catch{}}[c(974)](){return gt(this,void 0,void 0,function*(){const o=p,s=this;yield h[o(631)][o(1139)][o(989)](50,new Promise((m,v)=>{const w=o;if(!this[w(1336)]()){h._POSignalsUtils[w(867)][w(1420)](w(986)),m();return}if(!navigator[w(855)]||!navigator.mediaDevices[w(1052)]){h[w(631)][w(867)][w(1420)](w(1331)),m();return}navigator.mediaDevices[w(1052)]()[w(804)](A=>{const E=w;A[E(892)](O=>{const T=E;O[T(790)]&&(O[T(790)][T(1479)]()=="audioinput"?(s[T(1100)]=!0,s[T(604)]++,O[T(1078)]&&s.audioInputDevices[T(939)](O.label)):O[T(790)][T(1479)]()==T(562)?(s.hasWebcam=!0,s[T(726)]++,O[T(1078)]&&s.videoInputDevices[T(939)](O.label)):O[T(790)][T(1479)]()=="audiooutput"&&(s[T(1178)]=!0,s.numberOfAudioDevices++,O[T(1078)]&&s[T(938)][T(939)](O[T(1078)])))}),m()})[w(689)](A=>{const E=w;h[E(631)][E(867)][E(1300)]("enumerateDevices failed",A),m()})}))})}[c(1441)](o){return gt(this,void 0,void 0,function*(){const s=p;if(o[s(438)](s(1009)))return Promise[s(1347)]("");const m=new Promise((w,A)=>gt(this,void 0,void 0,function*(){const E=s;try{const O=yield h[E(389)][E(925)](),T=yield O[E(996)]();this[E(687)]=T[E(453)],this[E(1418)]=T[E(953)],w(T[E(453)])}catch(O){h[E(631)][E(867)][E(1300)](E(623)+O);const T={err:O,message:E(329)};A(T)}})),v=new Promise((w,A)=>gt(this,void 0,void 0,function*(){const E=s;yield h._POSignalsUtils[E(1139)][E(929)](this[E(567)].fingerprintTimeoutMillis);const O={message:E(873)};A(O)}));return yield Promise.race([m,v])})}[c(1154)](){return gt(this,void 0,void 0,function*(){return new Promise((o,s)=>{const m=p;h.BroprintJS[m(640)]().then(v=>{const w=m;this[w(750)]=v,o(v)})[m(689)](v=>{const w=m;h[w(631)][w(867)].info("Failed to get Fingerprint from getCurrentBrowserFingerPrint",v),s(v)})})})}[c(1339)](o){return gt(this,void 0,void 0,function*(){const s=p;if(o[s(438)]("fontFingerprint"))return Promise.resolve(null);try{const m=new b[s(428)],v=yield m.getQuickFingerprint();return this[s(624)]=v,v}catch(m){return h[s(631)][s(867)].info(s(1375)+m),null}})}getSensorsMetadata(){const o=c,s={};return this[o(592)](s,o(760),()=>o(335)in window),this[o(592)](s,"IS_TOUCH_DEVICE",()=>"ontouchstart"in window),!window[o(1401)]&&this[o(592)](s,o(665),()=>!1),!window[o(886)]&&this.flatAndAddMetadata(s,o(532),()=>!1),this[o(592)](s,o(761),()=>o(486)in window),s}getIdentificationMetadata(o){return gt(this,void 0,void 0,function*(){const s=p,m=this,v={};this[s(592)](v,"FINGER_PRINT",()=>this[s(687)]),this[s(592)](v,s(501),()=>this[s(750)]),this[s(624)]&&this[s(592)](v,s(1192),()=>{const I=s;return this[I(624)][I(447)]}),this[s(567)].browserInfo[s(869)]&&(this[s(592)](v,s(1034),()=>{const I=s;return this[I(567)][I(419)].osName}),this.flatAndAddMetadata(v,s(884),()=>{const I=s;return this[I(567)][I(419)][I(719)]})),this[s(567)][s(419)][s(869)]&&(this[s(592)](v,s(901),()=>{const I=s;return this.metadataParams[I(419)][I(1143)]}),this[s(592)](v,"DEVICE_VENDOR",()=>{const I=s;return this[I(567)][I(419)][I(900)]}),this[s(592)](v,"DEVICE_CATEGORY",()=>{const I=s;return this.metadataParams[I(419)][I(1399)]})),this[s(567)][s(419)][s(869)]&&(this[s(592)](v,s(655),()=>{const I=s;return this[I(567)][I(419)][I(975)]}),this[s(592)](v,"BROWSER_ENGINE_VERSION",()=>{const I=s;return this.metadataParams[I(419)][I(1495)]})),this[s(567)][s(419)].userAgentData&&this.flatAndAddMetadata(v,"CPU_ARCHITECTURE",()=>{const I=s;return this.metadataParams[I(419)][I(822)]}),this.metadataParams[s(419)].userAgentData&&(this[s(592)](v,"BROWSER_NAME",()=>{const I=s;return this[I(567)][I(419)].browserName}),this[s(592)](v,s(863),()=>{const I=s;return this.metadataParams[I(419)][I(866)]}),this.flatAndAddMetadata(v,s(1101),()=>{const I=s;return this[I(567)][I(419)][I(690)]}),this[s(592)](v,"BROWSER_TYPE",()=>{const I=s;return this[I(567)][I(419)][I(659)]}));const w=new b[s(1408)];this[s(592)](v,s(1328),()=>{const I=s;return w[I(1044)](this.metadataParams.browserInfo[I(869)].ua)}),this[s(592)](v,"IS_BOT",()=>{const I=s;return w[I(1203)](this.metadataParams[I(419)][I(869)].ua)}),this.flatAndAddMetadata(v,s(870),()=>{const I=s;return w.isChromeFamily(this[I(567)][I(419)][I(869)][I(1450)])}),this[s(592)](v,"IS_ELECTRON_FAMILY",()=>{const I=s;return w[I(1047)](this[I(567)][I(419)].userAgentData.ua)}),this.flatAndAddMetadata(v,s(598),()=>navigator.vendor),this[s(592)](v,s(1114),()=>{const I=s;return navigator[I(492)]?navigator[I(492)][I(368)]:null}),this.flatAndAddMetadata(v,s(1035),()=>{const I=s;return navigator.mimeTypes?navigator[I(614)][I(368)]:null}),this[s(592)](v,s(1400),()=>{const I=s;return navigator[I(359)]||navigator[I(351)]||navigator.browserLanguage||navigator.systemLanguage}),this.flatAndAddMetadata(v,s(784),()=>navigator[s(1402)]);const A=navigator[s(1402)]?navigator.languages[s(368)]:0;this[s(592)](v,"NAVIGATOR_LANGUAGES_COUNT",()=>A);const E=this[s(1166)]!==null?this[s(1166)]:0;this[s(592)](v,s(1477),()=>E),this[s(592)](v,"NAVIGATOR_MAX_TOUCH_POINTS",()=>{const I=s;return navigator[I(858)]||navigator[I(1238)]}),this[s(592)](v,s(1438),()=>navigator[s(965)]||navigator.msPointerEnabled),this[s(592)](v,s(880),()=>navigator.webdriver),this[s(592)](v,s(1249),()=>navigator[s(1070)]),this[s(592)](v,s(490),()=>navigator[s(1218)]!=null),this[s(592)](v,s(593),()=>"Notification"in window),this[s(592)](v,s(621),()=>navigator[s(1134)]),this.flatAndAddMetadata(v,s(1098),()=>navigator[s(1014)]),this.flatAndAddMetadata(v,s(830),()=>navigator[s(1048)]),this.flatAndAddMetadata(v,s(702),()=>navigator[s(563)]),this.flatAndAddMetadata(v,s(903),()=>navigator[s(1057)]),this[s(592)](v,s(1338),()=>navigator[s(1088)]),this[s(592)](v,s(363),()=>navigator[s(641)]),this.flatAndAddMetadata(v,"NAVIGATOR_PDF_VIEWER_ENABLED",()=>navigator[s(1371)]),this[s(592)](v,s(442),()=>navigator[s(1127)]),this[s(592)](v,s(802),()=>{const I=s;return navigator[I(606)]?navigator[I(606)].rtt:null}),!o[s(438)]("modernizr")&&(yield this.safeAddModernizrFeatures(v));const O=window[s(923)]||window[s(1428)];O?this[s(592)](v,"JS_CHALLENGE",()=>O):this.flatAndAddMetadata(v,s(985),()=>s(477)),this[s(592)](v,"BROWSER_TAB_HISTORY_LENGTH",()=>{const I=s;return typeof window!==I(480)&&window[I(342)]&&typeof window[I(342)][I(368)]=="number"?window[I(342)][I(368)]:null});const T=new b.WebGLMetadata;if(this[s(592)](v,"IS_WEBGL",()=>T[s(1191)]()),this[s(592)](v,"WEBGLVENDORANDRENDERER",()=>{const I=s;return T.getWebglData().vendor+"~"+T[I(1083)]()[I(652)]}),this[s(592)](v,s(680),()=>T[s(1125)]()),T[s(1125)]()?this[s(592)](v,s(832),()=>{const I=s;return T[I(1083)]()[I(1230)]+"~"+T[I(1083)]().renderer}):this[s(592)](v,"WEBGL2VENDORANDRENDERER",()=>""),this[s(592)](v,"WEBGL_VERSION",()=>{const I=s;return T[I(1083)]()[I(723)]}),this.flatAndAddMetadata(v,s(920),()=>T.getWebglData().shadingLanguageVersion),this[s(592)](v,s(895),()=>{const I=s;return T.getWebglData()[I(791)].length}),this[s(592)](v,"WEBGL_MAXTEXTURESIZE",()=>{const I=s;return T[I(1083)]()[I(469)]}),this[s(592)](v,s(997),()=>{const I=s;return T[I(1083)]()[I(1373)]}),this[s(592)](v,s(1259),()=>{const I=s;return T.getWebglData()[I(1398)]}),this[s(592)](v,s(667),()=>{const I=s;return T[I(1083)]()[I(577)]}),this[s(592)](v,s(1301),()=>T[s(1083)]().maxCombinedTextureImageUnits),this[s(592)](v,s(534),()=>T.getWebglData().maxVertexAttribs),this[s(592)](v,"WEBGL_MAXVARYINGVECTORS",()=>{const I=s;return T[I(1083)]()[I(811)]}),this[s(592)](v,s(1094),()=>{const I=s;return T[I(1083)]()[I(506)]}),this[s(592)](v,s(664),()=>{const I=s;return T[I(1083)]()[I(476)]}),this.flatAndAddMetadata(v,s(1130),()=>T[s(648)]()),this.flatAndAddMetadata(v,s(1494),()=>T[s(1502)]()),this.flatAndAddMetadata(v,"HASLIEDOS",()=>T[s(993)]()),this.flatAndAddMetadata(v,s(1105),()=>T.getHasLiedBrowser()),this[s(1418)])for(const I in this.fingerPrintComponents){if(!this[s(1418)][s(1417)](I))continue;const D=this[s(1418)][I];I==s(663)?this[s(592)](v,s(414),()=>{const F=s;return D[F(584)][F(368)]}):I==s(457)?this[s(592)](v,"IS_CANVAS",()=>D.value!=null):I=="screenResolution"&&D[s(584)]&&D.value.length?this.flatAndAddMetadata(v,s(602),()=>D.value.join(",")):I=="touchSupport"&&D.value?this[s(592)](v,s(853),()=>D.value):I=="audio"&&D[s(584)]?this[s(592)](v,s(494),()=>D[s(584)]):I=="osCpu"&&D[s(584)]?this[s(592)](v,s(385),()=>D[s(584)]):I=="cookiesEnabled"&&D[s(584)]?this[s(592)](v,s(348),()=>D[s(584)]):I==s(1321)&&D[s(584)]&&D[s(584)][s(368)]?this[s(592)](v,s(449),()=>{const F=s;return D[F(584)][F(1512)](",")}):I==s(1104)&&D[s(584)]?this[s(592)](v,s(510),()=>D[s(584)]):I=="domBlockers"&&D[s(1298)]?this[s(592)](v,"DOM_BLOCKERS",()=>D[s(1298)]):I==s(639)&&D[s(584)]?this[s(592)](v,"FONT_PREFERENCES",()=>D[s(584)]):I==s(1371)&&D.value?this.flatAndAddMetadata(v,s(932),()=>D[s(584)]):I=="vendorFlavors"&&D[s(584)]&&D[s(584)].length?this.flatAndAddMetadata(v,s(844),()=>{const F=s;return D[F(584)][F(1512)](",")}):I==s(963)&&D[s(584)]?this[s(592)](v,s(1468),()=>D[s(584)].renderer):m[s(717)].has(I)&&I!=null&&this[s(592)](v,I[s(720)](),()=>D.value)}this[s(592)](v,s(1254),()=>this[s(1051)]),this[s(592)](v,"IS_WEB_GLSTATUS",()=>this[s(1393)]);const L={selenium:navigator[s(859)]||h[s(631)][s(1139)][s(1503)](window[s(1306)][s(1157)],s(859))||"",phantomjs:{_phantom:window[s(441)]||"",__phantomas:window.__phantomas||"",callPhantom:window[s(1152)]||""},nodejs:{Buffer:window[s(1131)]||""},couchjs:{emit:window[s(1108)]||""},rhino:{spawn:window[s(321)]||""},chromium:{domAutomationController:window[s(1221)]||"",domAutomation:window[s(911)]||""},outerWidth:window.outerWidth,outerHeight:window.outerHeight};this[s(592)](v,s(1228),()=>L),this[s(592)](v,s(1228),()=>this[s(1469)]),this.flatAndAddMetadata(v,s(794),()=>{const I=s,D={};for(const F in this.lieTests)D[F]=JSON[I(833)](this[I(1033)][F]);return Object[I(345)](D)[I(368)]>0?D:null}),this[s(592)](v,s(1099),()=>new b[s(704)](o)[s(1165)]()),this[s(592)](v,"REF_LINK",()=>document[s(1324)]),this[s(592)](v,s(940),()=>{const I=s,D={length:navigator.plugins.length,details:[]};for(let F=0;F<D[I(368)];F++)D[I(1204)][I(939)]({length:navigator.plugins[F][I(368)],name:navigator[I(492)][F][I(1246)],version:navigator[I(492)][F][I(317)],filename:navigator[I(492)][F][I(1291)]});return D}),this[s(592)](v,s(737),()=>this[s(604)]),this.flatAndAddMetadata(v,"VIDEO",()=>this[s(726)]),this.videoInputDevices&&this[s(437)][s(368)]>0&&this[s(592)](v,s(699),()=>{const I=s;return this.videoInputDevices[I(861)]()}),this.audioInputDevices&&this[s(509)][s(368)]>0&&this[s(592)](v,s(1055),()=>this[s(509)].toString()),this[s(938)]&&this.audioOutputDevices[s(368)]>0&&this[s(592)](v,s(333),()=>{const I=s;return this[I(938)][I(861)]()}),this.flatAndAddMetadata(v,"MEDIA_CODEC_MP4_AVC1",()=>{const I=s;return this[I(1119)](I(1170))}),this[s(592)](v,s(1241),()=>{const I=s;return this[I(1119)](I(1067))}),this[s(592)](v,"MEDIA_CODEC_AAC",()=>{const I=s;return this.getMediaCodec(I(1429))});const P=this.metadataParams[s(691)];for(const I in P)P[s(1417)](I)&&this[s(592)](v,"MEDIA_CODEC_"+I,()=>this.getMediaCodec(P[I]));window.performance&&window[s(670)][s(948)]&&(this.flatAndAddMetadata(v,s(742),()=>{const I=s;return window[I(670)][I(948)][I(612)]}),this[s(592)](v,"MEMORY_TOTAL_HEAP_SIZE",()=>{const I=s;return window[I(670)][I(948)].totalJSHeapSize}),this[s(592)](v,"MEMORY_USED_HEAP_SIZE",()=>{const I=s;return window[I(670)][I(948)][I(841)]})),this[s(592)](v,s(1061),()=>navigator[s(1262)]),this[s(592)](v,s(626),()=>b[s(798)].seleniumInDocument()),this[s(592)](v,s(1480),()=>{const I=s;return b[I(798)][I(1113)]()}),this[s(592)](v,s(436),()=>{const I=s;return b[I(798)][I(638)]()}),this[s(592)](v,s(1012),()=>b[s(798)].seleniumSequentum()),this.flatAndAddMetadata(v,"DOCUMENT_ELEMENT_SELENIUM",()=>{const I=s;return h[I(631)].Util[I(1503)](window[I(1306)].documentElement,I(1307))}),this[s(592)](v,s(1075),()=>{const I=s;return h[I(631)][I(1139)].getAttribute(window[I(1306)][I(1157)],I(859))}),this[s(592)](v,s(415),()=>{const I=s;return h._POSignalsUtils[I(1139)][I(1503)](window[I(1306)].documentElement,I(1405))}),this.flatAndAddMetadata(v,s(836),()=>!!h[s(631)][s(1139)][s(1503)](document.getElementsByTagName("html")[0],s(859))),this[s(592)](v,s(1142),()=>!!window.geb),this[s(592)](v,s(1252),()=>!!window[s(326)]),this.flatAndAddMetadata(v,s(463),()=>!!window[s(1406)]),this[s(592)](v,s(1440),()=>!!window[s(1211)]),this[s(592)](v,s(1437),()=>s(1437)in document),this[s(592)](v,s(634),()=>"trustTokenOperationError"in XMLHttpRequest[s(622)]),this[s(592)](v,s(498),()=>s(498)in XMLHttpRequest.prototype),this[s(592)](v,"trustToken",()=>s(1006)in HTMLIFrameElement[s(622)]),this[s(592)](v,"localStorage.length",()=>localStorage[s(368)]),this[s(592)](v,s(370),()=>sessionStorage[s(368)]),this[s(600)][s(1037)].forEach(I=>{const D=s;this.flatAndAddMetadata(v,I[D(720)]()+D(557),()=>!0)}),this[s(592)](v,s(746),()=>!!this[s(1369)]()),this[s(567)][s(556)]&&this[s(567)][s(556)].length>0&&(this[s(482)](),this[s(367)][s(892)]((I,D)=>{D!=null&&I!=null&&this.flatAndAddMetadata(v,D,()=>I)}),this[s(367)][s(725)]()),window[s(773)]&&this[s(592)](v,s(471),()=>{const I=s,D=window[I(773)]("(min-width: "+(window[I(1330)]-1)+I(1060));return{matches:D[I(1256)],media:D.media}}),this[s(478)](v,o),window[s(362)]&&this.flatAndAddMetadata(v,s(1341),()=>{const I=s;return window[I(362)][I(1049)]}),this[s(592)](v,s(1062),()=>window[s(771)]&&s(1151)in window[s(771)]),this[s(592)](v,"HAS_CHROME_CSI",()=>window[s(771)]&&s(1430)in window.chrome),this[s(592)](v,s(877),()=>window[s(771)]&&s(610)in window[s(771)]),this.flatAndAddMetadata(v,s(455),()=>window[s(771)]&&s(1128)in window[s(771)]),yield this[s(1350)](v),this[s(592)](v,s(383),()=>!!navigator[s(780)]),this[s(592)](v,s(320),()=>!!navigator.hid),this[s(592)](v,s(505),()=>!!navigator.serial),this.flatAndAddMetadata(v,s(1153),()=>!!navigator.presentation);try{if(!o.has(s(736))&&h.Util[s(1136)](document[s(1388)])){const{id:I,version:D}=yield h[s(1139)][s(989)](100,document.interestCohort());this.flatAndAddMetadata(v,s(1181),()=>I),this.flatAndAddMetadata(v,s(786),()=>D)}}catch{}for(const I in this[s(567)][s(548)])this.flatAndAddMetadata(v,I,()=>h[s(631)][s(1139)][s(972)](window,this[s(567)][s(548)][I]));const N=this.metadataParams.propertyDescriptors;for(const I in N){if(!N[s(1417)](I))continue;const D=I===s(1447)?window:window[I];D&&this[s(375)](D,I.toUpperCase()+"_PROPERTY_DESCRIPTOR",N[I],v)}return v})}[c(1350)](o){return gt(this,void 0,void 0,function*(){const s=p;try{const m=navigator[s(869)];if(!m)return;this[s(592)](o,s(1296),()=>m[s(1057)]),this.flatAndAddMetadata(o,s(1355),()=>m[s(512)]);const v=m[s(1016)];if(!v)return;for(let w=0;w<v[s(368)];w++)if(v[w].hasOwnProperty("brand")&&v[w][s(1417)](s(317))){const A=v[w][s(1374)]+":"+v[w][s(317)];this.flatAndAddMetadata(o,s(881)+w,()=>A)}if(typeof m[s(1391)]===s(1064)){const w=[s(1104),s(1294),s(555),s(1340),s(957),"formFactor"],A=yield m[s(1391)](w);if(this[s(592)](o,s(838),()=>A[s(1104)]),this[s(592)](o,s(429),()=>A[s(1294)]),this[s(592)](o,s(950),()=>A.model),this[s(592)](o,"NAVIGATOR_CLIENT_HINTS_PLATFORM_VERSION",()=>A[s(1340)]),this[s(592)](o,s(1270),()=>{const E=s;return A[E(334)]?Array[E(553)](A[E(334)])?A[E(334)][E(1512)](", "):String(A[E(334)]):""}),A.fullVersionList){const E=A.fullVersionList[s(341)](O=>O.brand+" v"+O[s(317)])[s(1512)]("; ");this[s(592)](o,s(558),()=>E)}}}catch(m){h[s(631)][s(867)][s(1300)](s(1529),m)}})}[c(375)](o,s,m,v){const w=c;try{for(const A of m)this[w(592)](v,s+"_"+A[w(720)](),()=>{const E=w,O=o[E(622)]?o[E(622)]:o,T=Object.getOwnPropertyDescriptor(O,A);if(T){const L=T[E(996)]?T[E(996)][E(861)]():void 0;return JSON[E(833)]({configurable:T[E(1507)],enumerable:T[E(1325)],value:T[E(584)],writable:T[E(815)],getter:L!=null&&L.length<100?L:void 0})}return"undefined"})}catch(A){h[w(631)][w(867)][w(1300)]("failed to add properties descriptor",A)}}addIframeData(o,s){const m=c;if(!s[m(438)]("IFRAME_DATA"))try{const v=h[m(631)][m(1139)][m(325)](m(697));if(!v)return;v[m(882)]="blank page",document[m(1141)][m(896)](v),this[m(592)](o,m(679),()=>{const w=m;return typeof v[w(772)][w(771)]}),this[m(592)](o,"IFRAME_WIDTH",()=>{const w=m;return v[w(772)][w(405)][w(1431)]}),this[m(592)](o,m(1022),()=>{const w=m;return v[w(772)][w(405)][w(507)]}),v[m(1283)]()}catch(v){h[m(631)].Logger[m(1300)](m(1147),v)}}[c(418)](){return gt(this,void 0,void 0,function*(){const o=p,s={},m=[o(1248),o(1085),o(1481),o(1045),o(1326),o(448),o(1217),o(597),o(783),o(642),o(1024),o(1279),o(698),"payment-handler","persistent-storage",o(939)],v=[];if(navigator[o(1184)])for(const w in m){const A=m[w];v.push(navigator[o(1184)][o(410)]({name:A})[o(804)](E=>{const O=o;s[A]=E[O(628)]})[o(689)](E=>{}))}try{yield Promise[o(683)](v)}catch(w){h[o(631)].Logger[o(1300)](w)}return s})}[c(1119)](o){const s=c,m=document[s(983)]("video");if(m&&m[s(327)])return m[s(327)](o)}[c(669)](o){return gt(this,void 0,void 0,function*(){const s=p;h[s(1257)]();const m=this,v=h[s(380)],w=v[s(1172)],A=v[s(585)];this[s(592)](o,s(1323),()=>v[s(893)]),this[s(592)](o,s(388),()=>v[s(1233)]),this[s(592)](o,s(839),()=>!!v[s(839)]),v.audio&&this.flatAndAddMetadata(o,"audio",()=>v.audio),this[s(592)](o,s(397),()=>{const T=s;return!!w("battery",navigator)||!!w(T(1268),navigator)}),this[s(592)](o,s(502),()=>v[s(666)]),this[s(592)](o,"context_menu",()=>v[s(1465)]),this[s(592)](o,s(1102),()=>v.cors),this[s(592)](o,s(946),()=>v.cryptography),this.flatAndAddMetadata(o,s(1029),()=>v[s(1164)]),this[s(592)](o,s(1198),()=>v[s(1054)]),this[s(592)](o,s(1500),()=>v.customevent),this.flatAndAddMetadata(o,"dart",()=>v.dart),this[s(592)](o,s(1288),()=>v[s(573)]),this[s(592)](o,s(809),()=>v[s(649)]);const E=yield this[s(1190)](s(1207));m[s(592)](o,"exif_orientation",()=>E),this[s(592)](o,s(700),()=>v[s(1273)]),v.forcetouch&&(this[s(592)](o,s(1126),()=>A(w("mouseforcewillbegin",window,!1),window)),this[s(592)](o,s(1145),()=>MouseEvent[s(616)]),this[s(592)](o,s(1180),()=>MouseEvent[s(1370)])),this.flatAndAddMetadata(o,s(718),()=>v[s(1315)]),this[s(592)](o,s(470),()=>v[s(1372)]),this[s(592)](o,s(599),()=>v[s(597)]),this[s(592)](o,s(1407),()=>v[s(1407)]);const O=yield this[s(1190)](s(382));m[s(592)](o,"indexed_db",()=>O),this[s(592)](o,s(1511),()=>v[s(748)]),this[s(592)](o,s(1484),()=>v[s(552)]),this[s(592)](o,s(961),()=>v[s(961)]),this[s(592)](o,s(491),()=>v[s(491)]),this.flatAndAddMetadata(o,"media_source",()=>"MediaSource"in window),this[s(592)](o,"message_channel",()=>v[s(1149)]),this[s(592)](o,s(571),()=>v[s(571)]),this[s(592)](o,s(741),()=>v[s(611)]),this.flatAndAddMetadata(o,"performance",()=>v.performance),this.flatAndAddMetadata(o,"pointer_events",()=>v[s(538)]),this[s(592)](o,s(927),()=>v[s(1236)]),this[s(592)](o,s(1277),()=>v[s(1277)]),this[s(592)](o,s(692),()=>v[s(905)]),this.flatAndAddMetadata(o,"quota_management",()=>v[s(845)]),this[s(592)](o,s(1091),()=>v[s(366)]),this[s(592)](o,s(1272),()=>v[s(824)]),this[s(592)](o,s(797),()=>v[s(1389)]),this[s(592)](o,s(1074),()=>v.typedarrays),this[s(592)](o,s(1218),()=>v[s(1218)]),this[s(592)](o,s(654),()=>!!v[s(654)]),v.video&&this[s(592)](o,s(654),()=>v.video),this[s(592)](o,s(959),()=>v.webgl),this[s(592)](o,s(426),()=>v[s(1439)]),this[s(592)](o,"x_domain_request",()=>v.xdomainrequest),this[s(592)](o,"matchmedia",()=>v[s(1454)])})}[c(393)](){const o=c,s={},m=navigator.connection||navigator[o(1463)]||navigator.webkitConnection;return this[o(592)](s,"NETWORK_TYPE",()=>m?m.type:null),this[o(592)](s,o(1111),()=>m?m[o(682)]:null),this[o(592)](s,o(661),()=>!!navigator[o(402)]),this[o(592)](s,o(1343),()=>this.hasSpeakers),this.flatAndAddMetadata(s,o(1026),()=>this[o(1100)]),this.flatAndAddMetadata(s,o(1123),()=>this[o(1120)]),this[o(1404)]&&(this.flatAndAddMetadata(s,"BATTERY_SUPPORTED",()=>this.isBatterySupported),this[o(592)](s,o(1357),()=>this[o(1187)]),this.flatAndAddMetadata(s,o(1206),()=>this[o(358)]),this[o(592)](s,o(347),()=>this[o(1146)]),this[o(592)](s,o(446),()=>this.batteryDischargingTime)),this[o(592)](s,o(1247),()=>this[o(485)]),this[o(592)](s,"IS_MOBILE",()=>{const v=o;return h._POSignalsUtils[v(1139)][v(1250)]}),this[o(592)](s,o(979),()=>{const v=o;return v(374)in document[v(1157)]}),window[o(773)]&&(this.flatAndAddMetadata(s,"HAS_FINE_POINTER",()=>window[o(773)]("(any-pointer: fine)")[o(1256)]),this[o(592)](s,"HAS_COARSE_POINTER",()=>window[o(773)]("(any-pointer: coarse)").matches),this[o(592)](s,o(386),()=>window[o(773)](o(391))[o(1256)])),this[o(592)](s,o(1185),()=>this[o(1184)]),this[o(592)](s,o(1386),()=>{const v=o;return window[v(773)](v(422))[v(1256)]?v(319):window[v(773)](v(930))[v(1256)]?v(409):void 0}),s}[c(579)](o,s,m){const v=c;try{const w=new Set(this.metadataParams[v(788)]||[]);s!=null&&m!=null&&!w[v(438)](s)&&(o[s]=m)}catch(w){h._POSignalsUtils.Logger[v(1300)]("Failed to add "+s+v(1333)+m+", "+w)}}[c(1190)](o){return gt(this,void 0,void 0,function*(){const s=p,m=new Promise(w=>{const A=p;try{h[A(380)].on(o,E=>{w(E)})}catch(E){w(null),h[A(631)][A(867)].info(A(1168)+o,E)}}),v=h[s(631)][s(1139)][s(929)](250)[s(804)](()=>null);return yield Promise[s(987)]([m,v])})}[c(592)](o,s,m){const v=c;try{const w=new Set(this[v(567)][v(788)]||[]);if(!s||w[v(438)](s))return;const A=m();if(typeof A===v(574)&&A!==null){const E=h._POSignalsUtils.Util[v(912)](A);for(const O in E)this[v(579)](o,s+"."+O,E[O])}else this.safeAddMetadata(o,s,A)}catch(w){h[v(631)][v(867)][v(1300)]("Failed to add "+s,w)}}[c(696)](){const o=c;let s=new Date,m=0,v;do m++,v=new Date()[o(1144)]()-s.getTime(),Math[o(998)](m*Math[o(605)]());while(v<500);const w=m/v;return h[o(631)][o(867)][o(1420)]("Ops : "+w),w}[c(395)](){const o=c,s=[{name:o(1096),value:!1,error:null},{name:o(684),value:!1,error:null},{name:o(1013),value:!1,error:null},{name:o(1395),value:!1,error:null}];!this[o(849)]&&(this.aiSignalsResult=s,this[o(1337)][o(1115)]=s,h.AiaSignals.detect()[o(804)](m=>{const v=o;this[v(849)]=m,this[v(1337)].aiaSignals=m})[o(689)](m=>{const v=o;h._POSignalsUtils.Logger.info(v(643),m)})),this[o(849)]&&(this.lastCalculatedMetadata[o(1115)]=this.aiSignalsResult)}static[c(1335)](){const o=c;return Math[o(1522)](.123)==1.4474840516030247&&Math[o(1297)](Math[o(677)])==.881373587019543&&Math.atan(2)==1.1071487177940904&&Math[o(751)](.5)==.5493061443340548&&Math[o(752)](Math.PI)==1.4645918875615231&&Math.cos(21*Math[o(840)])==-.4067775970251724&&Math[o(336)](492*Math[o(707)])==9199870313877772e292&&Math[o(566)](1)==1.718281828459045&&Math.hypot(6*Math.PI,-100)==101.76102278593319&&Math[o(1043)](Math.PI)==.4971498726941338&&Math[o(713)](Math.PI)==12246467991473532e-32&&Math[o(1476)](Math.PI)==11.548739357257748&&Math[o(608)](10*Math[o(707)])==-3.3537128705376014&&Math[o(1290)](.123)==.12238344189440875&&Math[o(523)](Math.PI,-100)==19275814160560204e-66}[c(625)](){return gt(this,void 0,void 0,function*(){return new Promise(o=>{const s=p;if(typeof window===s(480)||!window.speechSynthesis)return o(0);const m=window[s(340)][s(1163)]();if(m[s(368)]>0)o(m.length);else{const v=()=>{const w=s,A=window[w(340)][w(1163)]();A[w(368)]>0&&(window[w(340)][w(888)](w(956),v),o(A[w(368)]))};window[s(340)][s(806)]("voiceschanged",v),window[s(340)][s(1163)](),setTimeout(()=>{const w=s;window[w(340)].removeEventListener(w(956),v),o(0)},500)}})})}}b[c(846)]=u;class f{constructor(o,s){const m=c;this[m(435)]=o,this[m(1342)]=s,this.AGENT_BASE_URL=m(722),this[m(1528)]="/device"}getDevicePayload(){return gt(this,void 0,void 0,function*(){const o=p,s=this[o(902)]+":"+this[o(435)]+this.AGENT_DEVICE_URL,m=new AbortController,v=m[o(1239)],w=setTimeout(()=>m[o(657)](),this[o(1342)]);try{const A=yield fetch(s,{method:o(636),headers:{"Content-Type":o(874)},signal:v});if(!A.ok)return h[o(631)][o(867)].info(o(495)+A[o(1445)]),void 0;const E=yield A[o(1299)]();return h[o(631)][o(867)][o(1300)]("calculated workstation device attributes."),E}catch(A){return A.name==="AbortError"?h[o(631)][o(867)].error("Failed to fetch the Workstation data. Request timed out after "+this[o(1342)]+"ms"):h[o(631)][o(867)].info(o(1103)+A[o(768)]),void 0}finally{clearTimeout(w)}})}}b[c(474)]=f})(h[g(813)]||(h._POSignalsMetadata={}))})(ee||(ee={}));var ee;(function(h){(function(b){const c=p;class u{static[c(1363)](){const a=c,o=["__webdriver_evaluate",a(1264),a(1380),"__webdriver_script_func",a(583),a(1462),a(818),"__webdriver_unwrapped",a(1202),"__selenium_unwrapped",a(1455)];for(const s of o)if(document[s])return!0;return!1}static[c(1113)](){const a=c,o=[a(441),"__nightmare",a(980),a(1152),"calledSelenium","callSelenium","_Selenium_IDE_Recorder"];for(const s of o)if(window[s])return!0;return!1}static[c(638)](){const a=c,o=["webdriver",a(1202),a(860),a(1264),"__fxdriver_evaluate",a(818),a(1435),a(715),a(1455),"_Selenium_IDE_Recorder",a(980),a(1322),a(475),a(915),a(891),a(1303),a(775),a(1492),a(837),a(1317),"__webdriver_script_fn","__$webdriverAsyncExecutor",a(1493),a(595),a(852),a(1318),a(440)];for(const s of o)if(navigator[s])return!0;return!1}static[c(450)](){const a=c;return window[a(1424)]&&window[a(1424)][a(861)]()&&window[a(1424)][a(861)]()[a(1265)]("Sequentum")!=-1}}b[c(798)]=u})(h[g(813)]||(h._POSignalsMetadata={}))})(ee||(ee={}));var ee;(function(h){(function(b){const c=p,u=c(555),f=c(1246),a=c(322),o=c(1230),s=c(317),m=c(512),v=c(878),w="crawler",A="cli",E=c(1179),O=c(1082),T=c(1475),L=c(315),P=c(835),N=Object.freeze({browser:[[/(wget|curl|lynx|elinks|httpie)[\/ ]\(?([\w\.-]+)/i],[f,s,[a,A]]]}),I=Object[c(951)]({browser:[[/((?:ahrefs|amazon|bing|cc|dot|duckduck|exa|facebook|gpt|mj12|mojeek|oai-search|perplexity|semrush|seznam)bot)\/([\w\.-]+)/i,/(applebot(?:-extended)?)\/([\w\.]+)/i,/(baiduspider)[-imagevdonsfcpr]{0,6}\/([\w\.]+)/i,/(claude(?:bot|-web)|anthropic-ai)\/?([\w\.]*)/i,/(coccocbot-(?:image|web))\/([\w\.]+)/i,/(facebook(?:externalhit|catalog)|meta-externalagent)\/([\w\.]+)/i,/(google(?:bot|other|-inspectiontool)(?:-image|-video|-news)?|storebot-google)\/?([\w\.]*)/i,/(ia_archiver|archive\.org_bot)\/?([\w\.]*)/i,/((?:semrush|splitsignal)bot[-abcfimostw]*)\/([\w\.-]+)/i,/(sogou (?:pic|head|web|orion|news) spider)\/([\w\.]+)/i,/(y!?j-(?:asr|br[uw]|dscv|mmp|vsidx|wsc))\/([\w\.]+)/i,/(yandex(?:(?:mobile)?(?:accessibility|additional|renderresources|screenshot|sprav)?bot|image(?:s|resizer)|video(?:parser)?|blogs|adnet|favicons|fordomain|market|media|metrika|news|ontodb(?:api)?|pagechecker|partner|rca|tracker|turbo|vertis|webmaster|antivirus))\/([\w\.]+)/i,/(yeti)\/([\w\.]+)/i,/((?:aihit|diff|timpi|you)bot|omgili(?:bot)?|(?:magpie-|velenpublicweb)crawler|webzio-extended|(?:screaming frog seo |yisou)spider)\/?([\w\.]*)/i],[f,s,[a,w]],[/((?:adsbot|apis|mediapartners)-google(?:-mobile)?|google-?(?:other|cloudvertexbot|extended|safety))/i,/\b(360spider-?(?:image|video)?|bytespider|(?:ai2|aspiegel|dataforseo|imagesift|petal|turnitin)bot|teoma|(?=yahoo! )slurp)/i],[f,[a,w]]]});Object[c(951)]({device:[[/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[o,u,[a,v]],[/(u304aa)/i],[u,[o,c(331)],[a,m]],[/\bsie-(\w*)/i],[u,[o,"Siemens"],[a,m]],[/\b(rct\w+) b/i],[u,[o,c(943)],[a,v]],[/\b(venue[\d ]{2,7}) b/i],[u,[o,c(909)],[a,v]],[/\b(q(?:mv|ta)\w+) b/i],[u,[o,c(1215)],[a,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[o,c(1365)],[a,v]],[/\b(tm\d{3}\w+) b/i],[u,[o,c(967)],[a,v]],[/\b(k88) b/i],[u,[o,c(1501)],[a,v]],[/\b(nx\d{3}j) b/i],[u,[o,"ZTE"],[a,m]],[/\b(gen\d{3}) b.+49h/i],[u,[o,c(660)],[a,m]],[/\b(zur\d{3}) b/i],[u,[o,c(660)],[a,v]],[/^((zeki)?tb.*\b) b/i],[u,[o,c(349)],[a,v]],[/\b([yr]\d{2}) b/i,/\b(?:dragon[- ]+touch |dt)(\w{5}) b/i],[u,[o,c(973)],[a,v]],[/\b(ns-?\w{0,9}) b/i],[u,[o,"Insignia"],[a,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[o,"NextBook"],[a,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[o,"Voice"],u,[a,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[o,c(1521)],u,[a,m]],[/\b(ph-1) /i],[u,[o,c(705)],[a,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[o,c(357)],[a,v]],[/\b(trio[-\w\. ]+) b/i],[u,[o,"MachSpeed"],[a,v]],[/\btu_(1491) b/i],[u,[o,"Rotor"],[a,v]]]}),Object[c(951)]({browser:[[/(airmail|bluemail|emclient|evolution|foxmail|kmail2?|kontact|(?:microsoft |mac)?outlook(?:-express)?|navermailapp|(?!chrom.+)sparrow|thunderbird|yahoo)(?:m.+ail; |[\/ ])([\w\.]+)/i],[f,s,[a,E]]]});const D=Object[c(951)]({browser:[[/(ahrefssiteaudit|bingpreview|chatgpt-user|mastodon|(?:discord|duckassist|linkedin|pinterest|reddit|roger|siteaudit|telegram|twitter|uptimero)bot|google-site-verification|meta-externalfetcher|y!?j-dlc|yandex(?:calendar|direct(?:dyn)?|searchshop)|yadirectfetcher)\/([\w\.]+)/i,/(bluesky) cardyb\/([\w\.]+)/i,/(slack(?:bot)?(?:-imgproxy|-linkexpanding)?) ([\w\.]+)/i,/(whatsapp)\/([\w\.]+)[\/ ][ianw]/i],[f,s,[a,O]],[/(cohere-ai|vercelbot|feedfetcher-google|google(?:-read-aloud|producer)|(?=bot; )snapchat|yandex(?:sitelinks|userproxy))/i],[f,[a,O]]]});Object[c(951)]({browser:[[/chatlyio\/([\d\.]+)/i],[s,"Slack",[a,T]],[/jp\.co\.yahoo\.android\.yjtop\/([\d\.]+)/i],[s,c(1414),[a,T]]]}),Object.freeze({browser:[[/(apple(?:coremedia|tv))\/([\w\._]+)/i,/(coremedia) v([\w\._]+)/i,/(ares|clementine|music player daemon|nexplayer|ossproxy) ([\w\.-]+)/i,/^(aqualung|audacious|audimusicstream|amarok|bass|bsplayer|core|gnomemplayer|gvfs|irapp|lyssna|music on console|nero (?:home|scout)|nokia\d+|nsplayer|psp-internetradioplayer|quicktime|rma|radioapp|radioclientapplication|soundtap|stagefright|streamium|totem|videos|xbmc|xine|xmms)\/([\w\.-]+)/i,/(lg player|nexplayer) ([\d\.]+)/i,/player\/(nexplayer|lg player) ([\w\.-]+)/i,/(gstreamer) souphttpsrc.+libsoup\/([\w\.-]+)/i,/(htc streaming player) [\w_]+ \/ ([\d\.]+)/i,/(lavf)([\d\.]+)/i,/(mplayer)(?: |\/)(?:(?:sherpya-){0,1}svn)(?:-| )(r\d+(?:-\d+[\w\.-]+))/i,/ (songbird)\/([\w\.-]+)/i,/(winamp)(?:3 version|mpeg| ) ([\w\.-]+)/i,/(vlc)(?:\/| media player - version )([\w\.-]+)/i,/^(foobar2000|itunes|smp)\/([\d\.]+)/i,/com\.(riseupradioalarm)\/([\d\.]*)/i,/(mplayer)(?:\s|\/| unknown-)([\w\.\-]+)/i,/(windows)\/([\w\.-]+) upnp\/[\d\.]+ dlnadoc\/[\d\.]+ home media server/i],[f,s,[a,L]],[/(flrp)\/([\w\.-]+)/i],[[f,"Flip Player"],s,[a,L]],[/(fstream|media player classic|inlight radio|mplayer|nativehost|nero showtime|ocms-bot|queryseekspider|tapinradio|tunein radio|winamp|yourmuze)/i],[f,[a,L]],[/(htc_one_s|windows-media-player|wmplayer)\/([\w\.-]+)/i],[[f,/[_-]/g," "],s,[a,L]],[/(rad.io|radio.(?:de|at|fr)) ([\d\.]+)/i],[[f,c(1071)],s,[a,L]]]});const F=Object.freeze({browser:[[/^(apache-httpclient|axios|(?:go|java)-http-client|got|guzzlehttp|java|libwww-perl|lua-resty-http|needle|node-(?:fetch|superagent)|okhttp|php-soap|postmanruntime|python-(?:urllib|requests)|scrapy)\/([\w\.]+)/i,/(jsdom|java)\/([\w\.]+)/i],[f,s,[a,P]]]});Object.freeze({device:[[/dilink.+(byd) auto/i],[o],[/(rivian) (r1t)/i],[o,u],[/vcc.+netfront/i],[[o,c(615)]]]});const H=Object[c(951)]({browser:[...N[c(489)],...I[c(489)],...D[c(489)],...F[c(489)]]});class R{constructor(){const z=c;this[z(1044)]=G=>[z(1116),z(982),z(1362),z(1387),z(407),"applebot","applebot-extended",z(618),z(731),z(384),"diffbot",z(1195),z(1267),z(433),z(1087),z(1196),z(1199),"facebookbot","meta-externalagent",z(613),z(966),z(527),z(420),z(774),z(908),z(1245),z(590),z(1017),z(1e3),z(931)][z(1148)](J=>G[z(1479)]().includes(J)),this[z(1203)]=G=>{const J=z,$=G[J(1479)](),ne=H[J(489)];for(let ae=0;ae<ne[J(368)];ae+=2){const te=ne[ae],ie=Array.isArray(te)?te:[te];for(const Se of ie)if(Se instanceof RegExp&&Se.test($))return!0}return!1},this[z(536)]=G=>G[z(1246)]===l[z(990)],this[z(1047)]=G=>G[z(1479)]()[z(1461)]("electron")}}b[c(1408)]=R})(h[g(813)]||(h._POSignalsMetadata={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{[c(309)](){const a=c,o=document.createElement(a(457));return!!(o.getContext&&o.getContext("2d"))}getWebglCanvas(a){const o=c,s=document.createElement(o(457));let m=null;try{a===o(1269)?m=s.getContext(o(1269))||s[o(1482)]("experimental-webgl"):m=s[o(1482)]("webgl2")}catch{}return m}[c(755)](){const a=c;if(!this[a(309)]())return{supported:!1,type:null};let o=this[a(814)](a(1453));return o?{supported:!0,type:a(1453)}:(o=this[a(814)]("webgl"),o?{supported:!0,type:a(1269)}:{supported:!1,type:null})}[c(1191)](){const a=c,{supported:o}=this[a(755)]();return o}[c(1125)](){const a=c,{supported:o,type:s}=this[a(755)]();return o&&s===a(1453)}[c(1083)](){const a=c,o=document[a(983)](a(457));let s,m,v,w;try{s=o[a(1482)](a(1453)),!s&&(s=o[a(1482)](a(1269))||o[a(1482)](a(533)),!s&&console[a(721)](a(1117)))}catch{console[a(721)]("Neither WebGL 2.0 nor WebGL 1.0 is supported.")}try{m=s[a(937)](a(1175)),v=s[a(650)](m[a(1227)]),w=s.getParameter(m[a(1056)])}catch{v=s.getParameter(s[a(1436)]),w=s.getParameter(s[a(1140)])}return{vendor:v,renderer:w,webglVersion:s.getParameter(s[a(992)]),shadingLanguageVersion:s[a(650)](s[a(706)]),extensions:s[a(344)](),maxTextureSize:s[a(650)](s[a(913)]),maxRenderbufferSize:s.getParameter(s[a(545)]),maxTextureImageUnits:s[a(650)](s[a(601)]),maxVertexTextureImageUnits:s[a(650)](s.MAX_VERTEX_TEXTURE_IMAGE_UNITS),maxCombinedTextureImageUnits:s[a(650)](s.MAX_COMBINED_TEXTURE_IMAGE_UNITS),maxVertexAttribs:s[a(650)](s[a(439)]),maxVaryingVectors:s[a(650)](s[a(1517)]),maxVertexUniformVectors:s[a(650)](s[a(483)]),maxFragmentUniformVectors:s.getParameter(s.MAX_FRAGMENT_UNIFORM_VECTORS)}}getHasLiedLanguages(){const a=c;if(typeof navigator[a(1402)]!==a(480))try{if(navigator[a(1402)][0][a(1039)](0,2)!==navigator.language.substr(0,2))return!0}catch{return!0}return!1}getHasLiedResolution(){const a=c;return window[a(405)][a(1431)]<window[a(405)].availWidth||window[a(405)][a(507)]<window[a(405)][a(1138)]}[c(993)](){const a=c,o=navigator[a(641)][a(1479)]();let s=navigator.oscpu;const m=navigator[a(1057)][a(1479)]();let v;return o.indexOf(a(603))>=0?v=a(1486):o[a(1265)](a(739))>=0?v="Windows":o.indexOf(a(745))>=0?v=a(1095):o[a(1265)](a(686))>=0||o[a(1265)](a(862))>=0?v=a(673):o[a(1265)](a(1193))>=0||o[a(1265)](a(769))>=0?v=a(1027):o[a(1265)](a(785))>=0?v=a(560):v=a(1487),(a(374)in window||navigator[a(858)]>0||navigator[a(1238)]>0)&&v!=="Windows Phone"&&v!==a(1095)&&v!=="iOS"&&v!=="Other"||typeof s!==a(480)&&(s=s.toLowerCase(),s[a(1265)](a(739))>=0&&v!==a(1023)&&v!==a(1486)||s[a(1265)](a(686))>=0&&v!==a(673)&&v!==a(1095)||s[a(1265)](a(785))>=0&&v!=="Mac"&&v!==a(1027)||(s[a(1265)](a(739))===-1&&s[a(1265)](a(686))===-1&&s[a(1265)](a(785))===-1)!=(v===a(1487)))||m[a(1265)](a(739))>=0&&v!=="Windows"&&v!=="Windows Phone"||(m.indexOf("linux")>=0||m.indexOf(a(745))>=0||m[a(1265)](a(1081))>=0)&&v!==a(673)&&v!==a(1095)||(m[a(1265)](a(785))>=0||m[a(1265)]("ipad")>=0||m.indexOf(a(473))>=0||m.indexOf(a(1193))>=0)&&v!==a(560)&&v!=="iOS"||(m[a(1265)](a(739))<0&&m[a(1265)](a(686))<0&&m[a(1265)](a(785))<0&&m[a(1265)](a(1193))<0&&m[a(1265)]("ipad")<0)!=(v==="Other")?!0:typeof navigator.plugins===a(480)&&v!=="Windows"&&v!==a(1486)}[c(339)](){const a=c,o=navigator.userAgent[a(1479)](),s=navigator[a(444)];let m;if(o[a(1265)](a(1084))>=0?m=a(565):o.indexOf("opera")>=0||o.indexOf("opr")>=0?m=a(1038):o[a(1265)](a(771))>=0?m=a(1235):o[a(1265)](a(1478))>=0?m="Safari":o[a(1265)](a(561))>=0?m=a(423):m="Other",(m===a(1235)||m==="Safari"||m===a(1038))&&s!==a(749))return!0;const v=eval[a(861)]()[a(368)];if(v===37&&m!=="Safari"&&m!==a(565)&&m!=="Other"||v===39&&m!==a(423)&&m!=="Other"||v===33&&m!==a(1235)&&m!==a(1038)&&m!=="Other")return!0;let w;try{throw"a"}catch(A){try{A[a(1226)](),w=!0}catch{w=!1}}return w&&m!==a(565)&&m!==a(1487)}}b[c(633)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{constructor(a){const o=p;this[o(803)]=a}[c(627)](){return gt(this,void 0,void 0,function*(){const a=p,o=yield this[a(1205)](window);return yield this[a(431)](o,a(1213),()=>gt(this,void 0,void 0,function*(){const s=a;if(!Object[s(465)])return;const m=h[s(631)][s(1139)][s(325)]("iframe");if(!m)return;if(m[s(882)]=s(820),document.body[s(896)](m),Object[s(465)](HTMLIFrameElement[s(622)])[s(772)][s(996)][s(861)]()!=="function get contentWindow() { [native code] }"||m[s(772)]===window)return!0;const v=yield this[s(1205)](m[s(772)]);return m.remove(),v})),o})}headlessResults(a){return gt(this,void 0,void 0,function*(){const o=p,s=new Map,m=[];return m[o(939)](this[o(431)](s,o(392),()=>gt(this,void 0,void 0,function*(){const v=o;return/HeadlessChrome/.test(a[v(1368)][v(641)])}))),m[o(939)](this.test(s,o(1002),()=>gt(this,void 0,void 0,function*(){const v=o;return a[v(1368)][v(859)]}))),m[o(939)](this[o(431)](s,o(1377),()=>gt(this,void 0,void 0,function*(){const v=o;return/Chrome/.test(a.navigator.userAgent)&&!a[v(771)]}))),m[o(939)](this[o(431)](s,"permissions_api",()=>gt(this,void 0,void 0,function*(){const v=o;if(a[v(1368)][v(1184)]&&a[v(362)]){const w=yield a.navigator.permissions.query({name:"notifications"});return a[v(362)][v(1049)]===v(338)&&w[v(628)]==="prompt"}}))),m[o(939)](this[o(431)](s,o(970),()=>gt(this,void 0,void 0,function*(){const v=o,w=a[v(1368)][v(1184)];if(w)return w[v(410)][v(861)]()!==v(743)||w[v(410)][v(861)][v(861)]()!==v(1359)||w[v(410)].toString[v(1417)](v(1183))&&w[v(410)][v(861)].hasOwnProperty(v(1224))&&w.query[v(861)][v(1417)](v(1063))?!0:w[v(1417)](v(410))}))),m[o(939)](this[o(431)](s,o(1156),()=>gt(this,void 0,void 0,function*(){return navigator[o(492)].length===0}))),m[o(939)](this[o(431)](s,o(1208),()=>gt(this,void 0,void 0,function*(){return navigator[o(1402)]===""}))),m[o(939)](this[o(431)](s,o(817),()=>gt(this,void 0,void 0,function*(){const v=o;let w=PluginArray[v(622)]===navigator[v(492)].__proto__;return navigator[v(492)][v(368)]>0&&(w=w&&Plugin[v(622)]===navigator.plugins[0].__proto__),w}))),m[o(939)](this.test(s,o(355),()=>gt(this,void 0,void 0,function*(){const v=o;let w=MimeTypeArray[v(622)]===navigator[v(614)].__proto__;return navigator[v(614)].length>0&&(w=w&&MimeType[v(622)]===navigator[v(614)][0][v(403)]),w}))),yield Promise[o(683)](m),s})}[c(431)](a,o,s){return gt(this,void 0,void 0,function*(){const m=p;try{if(!this[m(803)][m(438)](o)){const v=yield h[m(631)][m(1139)][m(989)](100,s());v!=null&&(a[o]=v)}}catch(v){h[m(631)][m(867)].warn(o+m(1278),v)}})}}b[c(1459)]=u})(h._POSignalsMetadata||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){function c(){return new Promise((u,f)=>{const a=p;let o=a(674),s=!1;function m($){s||(s=!0,u({isPrivate:$,browserName:o}))}function v(){const $=a,ne=navigator[$(641)];return ne.match(/Chrome/)?navigator.brave!==void 0?"Brave":ne[$(1314)](/Edg/)?$(570):ne[$(1314)](/OPR/)?$(1038):$(1235):$(919)}function w($){const ne=a;try{return $===eval[ne(861)]()[ne(368)]}catch{return!1}}function A(){const $=a;let ne=0;const ae=parseInt("-1");try{ae[$(1525)](ae)}catch(te){ne=te[$(768)][$(368)]}return ne}function E(){return A()===44}function O(){return A()===51}function T(){return A()===25}function L(){return navigator[a(906)]!==void 0&&w(39)}function P(){var $;return gt(this,void 0,void 0,function*(){const ne=p;try{const ae=navigator[ne(1080)];typeof(ae==null?void 0:ae[ne(753)])===ne(1064)&&(yield ae[ne(753)]()),m(!1)}catch(ae){const te=ae instanceof Error&&($=ae[ne(768)])!==null&&$!==void 0?$:ae;m(typeof te===ne(1281)&&te.includes("unknown transient reason"))}})}function N(){const $=a,ne=String(Math[$(605)]());try{const ae=indexedDB[$(330)](ne,1);ae[$(1345)]=te=>{const ie=$,Se=te.target.result;try{Se[ie(812)]("t",{autoIncrement:!0}).put(new Blob),m(!1)}catch(_e){const xe=_e.message||"";m(xe[ie(1461)]("are not yet supported"))}finally{Se.close(),indexedDB[ie(619)](ne)}},ae.onerror=()=>m(!1)}catch{m(!1)}}function I(){const $=a;try{window[$(411)](null,null,null,null)}catch{return m(!0)}try{localStorage[$(949)]($(431),"1"),localStorage[$(1449)]($(431))}catch{return m(!0)}m(!1)}function D(){return gt(this,void 0,void 0,function*(){const $=p,ne=navigator[$(1080)];typeof(ne==null?void 0:ne[$(753)])===$(1064)?yield P():navigator[$(858)]!==void 0?N():I()})}function F(){const $=a;var ne;const ae=(ne=performance==null?void 0:performance.memory)===null||ne===void 0?void 0:ne[$(612)];return ae??1073741824}function H(){const $=a;navigator[$(404)][$(1036)](function(ne,ae){const te=Math.round(ae/1048576),ie=Math.round(F()/(1024*1024))*2;m(te<ie)},function(ne){const ae=$;f(new Error(ae(312)+ne[ae(768)]))})}function R(){const $=a,ne=window[$(1515)];ne(0,1,()=>m(!1),()=>m(!0))}function U(){const $=a;self[$(941)]&&self[$(941)][$(1001)]?H():R()}function z(){return gt(this,void 0,void 0,function*(){const $=p,ne=navigator[$(1080)];if(typeof(ne==null?void 0:ne.getDirectory)=="function")try{yield ne[$(753)](),m(!1)}catch(ae){const te=ae instanceof Error?ae[$(768)]:String(ae);m(typeof te===$(1281)&&te[$(1461)]($(1124)));return}else m(navigator[$(647)]===void 0)})}function G(){m(window[a(1289)]===void 0)}function J(){return gt(this,void 0,void 0,function*(){const $=p;E()?(o=$(1305),yield D()):O()?(o=v(),U()):T()?(o=$(565),yield z()):L()?(o="Internet Explorer",G()):f(new Error($(511)))})}J()[a(689)](f)})}b.detectIncognitoInternal=c})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){(function(b){const c=p;class u{constructor(a){const o=p;this.propertyBlackList=a,this[o(995)]={}}[c(1497)](a,o){const s=c;if(o[s(854)])for(const m of o[s(1030)])!this.result[m]&&(this[s(995)][m]=[]),this.result[m][s(939)](a)}getLies(a,o,s=null){const m=c;if(typeof a!="function")return{lied:!1,lieTypes:[]};const v=a[m(1246)][m(947)](/get\s/,""),w={undefined_properties:()=>s?u[m(645)](s,v):!1,to_string:()=>u[m(526)](a,v,this[m(1412)]),prototype_in_function:()=>u[m(936)](a),own_property:()=>u[m(1042)](a),object_to_string_error:()=>u[m(1496)](a)},A=Object[m(345)](w)[m(365)](E=>!this[m(803)][m(438)](m(782)+E)&&!!w[E]());return{lied:A[m(368)]>0,lieTypes:A}}[c(328)](){return gt(this,void 0,void 0,function*(){const a=p;if(this.propertyBlackList[a(438)](a(794)))return this[a(995)];if(!this[a(803)][a(438)](a(1025))){const o=h[a(631)][a(1139)].createInvisibleElement(a(697));o&&(document[a(1141)][a(896)](o),this.iframeWindow=o)}return yield Promise.all([this[a(1274)](()=>AnalyserNode,{target:[a(754)]}),this[a(1274)](()=>AudioBuffer,{target:[a(1159)]}),this[a(1274)](()=>BiquadFilterNode,{target:[a(796)]}),this[a(1274)](()=>CanvasRenderingContext2D,{target:[a(709)]}),this[a(1274)](()=>DOMRect,{target:[a(507)]}),this[a(1274)](()=>DOMRectReadOnly,{target:["left"]}),this.searchLies(()=>Element,{target:["getClientRects"]}),this[a(1274)](()=>HTMLCanvasElement,{target:[a(507)]}),this[a(1274)](()=>Math,{target:[a(1476)]}),this[a(1274)](()=>MediaDevices,{target:[a(1052)]}),this[a(1274)](()=>Navigator,{target:[a(492)]}),this[a(1274)](()=>OffscreenCanvasRenderingContext2D,{target:[a(709)]}),this[a(1274)](()=>SVGRect,{target:["x"]})]),this.iframeWindow[a(1283)](),this[a(995)]})}[c(1274)](a,{target:o=[],ignore:s=[]}={}){return gt(this,void 0,void 0,function*(){const m=p;function v(E){return typeof E!=p(480)&&!!E}let w;try{if(w=a(),!v(w))return}catch{return}const A=w.prototype?w.prototype:w;Object[m(988)](A)[m(892)](E=>{const O=m;if(E==O(1516)||o.length&&!new Set(o)[O(438)](E)||s.length&&new Set(s).has(E))return;const T=/\s(.+)\]/,L=(w[O(1246)]?w.name:T[O(431)](w)?T.exec(w)[1]:void 0)+"."+E;try{const P=w.prototype?w[O(622)]:w;try{if(typeof P[E]=="function"){const D=this[O(1488)](P[E],P);this[O(1497)](L,D);return}}catch{}const N=Object[O(978)](P,E)[O(996)],I=this.getLies(N,P,w);this.documentLie(L,I)}catch(P){h[O(631)][O(867)][O(829)](O(1066)+E+O(1381),P)}})})}static[c(645)](a,o){const s=c,m=a.name,v=window[m.charAt(0).toLowerCase()+m[s(1106)](1)];return!!v&&(typeof Object[s(978)](v,o)!=s(480)||typeof Reflect[s(978)](v,o)!=s(480))}static[c(526)](a,o,s){const m=c;let v,w;try{v=s[m(1162)][m(622)][m(861)][m(1390)](a)}catch{}try{w=s.Function[m(622)].toString.call(a[m(861)])}catch{}const A=v||a[m(861)](),E=w||a[m(861)][m(861)](),O=T=>({[m(1097)+T+"() { [native code] }"]:!0,["function get "+T+m(1280)]:!0,[m(897)]:!0,[m(1097)+T+m(954)+`
71
71
  [native code]
72
72
  }`]:!0,[m(1021)+T+m(954)+`
73
73
  [native code]
74
74
  }`]:!0,[m(1255)+`
75
75
  `+m(1433)+`
76
- }`]:!0});return!O(o)[A]||!O(m(861))[E]}static[c(936)](s){return c(622)in s}static[c(1042)](s){const o=c;return s.hasOwnProperty("arguments")||s[o(1417)](o(799))||s.hasOwnProperty(o(622))||s[o(1417)]("toString")}static getNewObjectToStringTypeErrorLie(s){const o=c;try{return Object[o(744)](s)[o(861)](),!0}catch(a){const m=a[o(596)][o(376)](`
77
- `),v=m.slice(1),w=/at Object\.apply/,A=/at Function\.toString/,E=!v[o(459)](M=>w[o(431)](M)),O=a[o(1516)][o(1246)]==o(1378)&&m.length>1,T=o(771)in window||b[o(846)].detectChromium();return O&&T&&(!A[o(431)](m[1])||!E)?!0:!O}}}b[c(1004)]=u})(h[g(813)]||(h._POSignalsMetadata={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{constructor(s){const o=p;this[o(803)]=s,this[o(995)]=new Map}[c(1165)](){const s=c;return this.addStealthTest(s(1258),()=>{const o=s;try{const{srcdoc:a}=document[o(983)](o(697));return!!a}catch{return!0}}),this[s(337)](s(808),()=>{const o=s,a=document[o(983)](o(697));return a.srcdoc=""+h[o(631)][o(1139)][o(827)](crypto.getRandomValues(new Uint32Array(10))),!!a[o(772)]}),this[s(337)]("index_chrome_too_high",()=>{const o=s,a=o(1316)in window?o(1316):o(467)in window?o(467):o(340),m=[];for(const A in window)m[o(939)](A);const v=m.indexOf("chrome"),w=m[o(1265)](a);return v>w}),this[s(337)](s(539),()=>{const o=s;if(!("chrome"in window&&o(1128)in window[o(771)]))return!1;try{return o(622)in window[o(771)][o(1128)].sendMessage||o(622)in window[o(771)][o(1128)][o(361)]||(new window[o(771)].runtime.sendMessage,new window[o(771)][o(1128)][o(361)]),!0}catch(a){return a[o(1516)][o(1246)]!=o(1378)}}),this[s(337)](s(889),()=>{const o=s,a=new u[o(848)];return a[o(372)](Function[o(622)][o(861)])||a[o(372)](()=>{})}),this[s(995)]}[c(337)](s,o){const a=c;if(!this[a(803)][a(438)](s))try{this[a(995)][s]=o()}catch(m){h[a(631)][a(867)][a(829)](a(572)+s+a(781),m)}}}u[c(848)]=class{[c(372)](f){const s=c;try{return this[s(1443)]=()=>Object[s(744)](f)[s(861)](),this[s(462)]=()=>this[s(1443)](),this[s(1251)]=()=>this[s(462)](),this[s(1251)](),!0}catch(o){const a=o[s(596)].split(`
78
- `),m=!/at Object\.apply/[s(431)](a[1]),v=o[s(1516)].name=="TypeError"&&a.length>=5,w="chrome"in window||b[s(846)][s(1335)]();return v&&w&&(!m||!/at Function\.toString/[s(431)](a[1])||!/\.you/[s(431)](a[2])||!/\.cant/[s(431)](a[3])||!/\.hide/[s(431)](a[4]))?!0:!v}}},b[c(704)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{static[c(1304)](){const s=c;return h[s(813)].detectIncognitoInternal()[s(804)](o=>o[s(1237)])[s(689)](()=>!1)}}b[c(1003)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){(function(y){y[y.Unknown=0]="Unknown",y[y.FlingRight=1]="FlingRight",y[y.FlingLeft=2]="FlingLeft",y[y.FlingUp=3]="FlingUp",y[y.FlingDown=4]="FlingDown",y[y.Diagonal=5]="Diagonal",y[y.ScrollRight=6]="ScrollRight",y[y.ScrollLeft=7]="ScrollLeft",y[y.ScrollUp=8]="ScrollUp",y[y.ScrollDown=9]="ScrollDown",y[y.Tap=10]="Tap",y[y.DoubleTap=11]="DoubleTap"})(h.GestureType||(h.GestureType={}))})(ee||(ee={}));var ee;(function(h){class y{constructor(s,o){this.handler=s,this.isOnce=o,this.isExecuted=!1}execute(s,o,a){if(!this.isOnce||!this.isExecuted){this.isExecuted=!0;const m=this.handler;s?setTimeout(()=>{m.apply(o,a)},1):m.apply(o,a)}}}class b{constructor(){this._wrap=new u(this),this._subscriptions=new Array}subscribe(s){s&&this._subscriptions.push(new y(s,!1))}sub(s){this.subscribe(s)}one(s){s&&this._subscriptions.push(new y(s,!0))}has(s){if(s){for(const o of this._subscriptions)if(o.handler==s)return!0}return!1}unsubscribe(s){if(s){for(let o=0;o<this._subscriptions.length;o++)if(this._subscriptions[o].handler==s){this._subscriptions.splice(o,1);break}}}unsub(s){this.unsubscribe(s)}_dispatch(s,o,a){for(let m=0;m<this._subscriptions.length;m++){const v=this._subscriptions[m];if(v.isOnce){if(v.isExecuted===!0)continue;this._subscriptions.splice(m,1),m--}v.execute(s,o,a)}}asEvent(){return this._wrap}}h.DispatcherBase=b;class c extends b{dispatch(s,o){this._dispatch(!1,this,arguments)}dispatchAsync(s,o){this._dispatch(!0,this,arguments)}}h.EventDispatcher=c;class u{constructor(s){this._subscribe=o=>s.subscribe(o),this._unsubscribe=o=>s.unsubscribe(o),this._one=o=>s.one(o),this._has=o=>s.has(o)}subscribe(s){this._subscribe(s)}sub(s){this.subscribe(s)}unsubscribe(s){this._unsubscribe(s)}unsub(s){this.unsubscribe(s)}one(s){this._one(s)}has(s){return this._has(s)}}})(ee||(ee={}));var ee;(function(h){class y{get LAST_GESTURE_SENSOR_TIMEOUT_MILI_SECONDS(){return 3e3}get accX(){return this._accX}get accY(){return this._accY}get accZ(){return this._accZ}get lienarAccX(){return this._lienarAccX}get lienarAccY(){return this._lienarAccY}get lienarAccZ(){return this._lienarAccZ}get isStarted(){return this._isStarted}get rotX(){return this._rotX}get rotY(){return this._rotY}get rotZ(){return this._rotZ}get maxSensorSamples(){return this._maxSensorSamples}set maxSensorSamples(c){this._maxSensorSamples=c}get sensorsTimestampDeltaInMillis(){return this._sensorsTimestampDeltaInMillis}set sensorsTimestampDeltaInMillis(c){this._sensorsTimestampDeltaInMillis=c}get accelerometerList(){return this.getRelevantSensorSamples(this._accelerometerList)}get gyroscopeList(){return this.getRelevantSensorSamples(this._gyroscopeList)}get linearAccelerometerList(){return this.getRelevantSensorSamples(this._linearAccelerometerList)}get rotationList(){return this._rotationList}constructor(c){this._isStarted=!1,this._isEventsStarted=!1,this._gestureTimestamps=[],this._maxSensorSamples=0,this._sensorsTimestampDeltaInMillis=0,this._accelerometerList=[],this._gyroscopeList=[],this._linearAccelerometerList=[],this._rotationList=[],this.orientationImplementationFix=1,this.delegate=c,window.navigator.userAgent.match(/^.*(iPhone|iPad).*(OS\s[0-9]).*(CriOS|Version)\/[.0-9]*\sMobile.*$/i)&&(this.orientationImplementationFix=-1),this.accelerometerUpdateHandle=this.accelerometerUpdate.bind(this),this.orientationUpdateHandle=this.orientationUpdate.bind(this)}start(){this._isStarted||(this._isStarted=!0,h._POSignalsUtils.Logger.debug("Sensor events started..."))}getRotationListCopy(){return this._rotationList?Array.from(this._rotationList):[]}stop(){this._isStarted&&(window.DeviceMotionEvent!=null&&window.removeEventListener("devicemotion",this.accelerometerUpdateHandle,!0),window.DeviceOrientationEvent&&window.removeEventListener("deviceorientation",this.orientationUpdateHandle,!0),this._isStarted=!1,h._POSignalsUtils.Logger.debug("Sensor events stopped"))}getRelevantSensorSamples(c){if(c.length==0||this._sensorsTimestampDeltaInMillis<1||this._gestureTimestamps.length==0)return c;const u=new Map;let f=null,s=0;for(let o=0;o<c.length;o++)for(let a=0;a<this._gestureTimestamps.length;a++)s=c[o].timestamp,f=this._gestureTimestamps[a],s>=f.start-this._sensorsTimestampDeltaInMillis&&s<=f.end+this._sensorsTimestampDeltaInMillis&&u.set(c[o].timestamp,c[o]);return h._POSignalsUtils.Util.getValuesOfMap(u)}stopEvents(){this._isEventsStarted&&(window.DeviceMotionEvent!=null&&window.removeEventListener("devicemotion",this.accelerometerUpdateHandle,!0),window.DeviceOrientationEvent&&window.removeEventListener("deviceorientation",this.orientationUpdateHandle,!0),this._isEventsStarted=!1,h._POSignalsUtils.Logger.debug("Sensor events stopped listening"))}async startEvents(){if(!this._isEventsStarted){if(typeof DeviceMotionEvent<"u"&&typeof DeviceMotionEvent.requestPermission=="function"&&h._POSignalsUtils.Logger.debug("iOS detected. Attaching passive sensor listeners (data will flow if host app grants permission)."),navigator.permissions)try{if((await navigator.permissions.query({name:"accelerometer"})).state!=="granted"){h._POSignalsUtils.Logger.debug("Sensor permission not granted. Skipping.");return}}catch{}window.DeviceMotionEvent!=null?this.delegate.addEventListener(window,"devicemotion",this.accelerometerUpdateHandle,!0):h._POSignalsUtils.Logger.warn("DeviceMotion not supported!"),window.DeviceOrientationEvent?this.delegate.addEventListener(window,"deviceorientation",this.orientationUpdateHandle,!0):h._POSignalsUtils.Logger.warn("DeviceOrientation not supported!"),h._POSignalsUtils.Logger.debug("Sensor events start listening..."),this._isEventsStarted=!0}}reset(){this._accelerometerList=[],this._gyroscopeList=[],this._linearAccelerometerList=[],this._rotationList=[],this._gestureTimestamps.length>0?this._gestureTimestamps=[this._gestureTimestamps[this._gestureTimestamps.length-1]]:this._gestureTimestamps=[],this._accX=0,this._accY=0,this._accZ=0,this._rotX=0,this._rotY=0,this._rotZ=0}onGesture(c){this._isEventsStarted||this.startEvents(),c.events.length>1&&this._gestureTimestamps.push({start:c.events[0].eventTs,end:c.events[c.events.length-1].eventTs})}puaseSensorsCollectionIfNoActivity(c){if((this._gestureTimestamps.length>0?this._gestureTimestamps[this._gestureTimestamps.length-1].end:0)>0){if(Math.abs(c-this._gestureTimestamps[this._gestureTimestamps.length-1].end)>this.LAST_GESTURE_SENSOR_TIMEOUT_MILI_SECONDS)return this.stopEvents(),!0}else return this.stopEvents(),!0;return!1}getDeviceAcceleration(c){return!c||c.x==null||c.y==null||c.z==null?null:c}accelerometerUpdate(c){try{if(!this.delegate.collectBehavioralData()||this.puaseSensorsCollectionIfNoActivity(h._POSignalsUtils.Util.now()))return;const u=this.getDeviceAcceleration(c.accelerationIncludingGravity);u&&(this._accX=u.x*this.orientationImplementationFix,this._accY=u.y*this.orientationImplementationFix,this._accZ=u.z,this.safeAddSensorSample({x:this._accX,y:this._accY,z:this._accX,timestamp:h._POSignalsUtils.Util.now()},this._accelerometerList));const f=this.getDeviceAcceleration(c.acceleration);f&&(this._lienarAccX=f.x*this.orientationImplementationFix,this._lienarAccY=f.y*this.orientationImplementationFix,this._lienarAccZ=f.z,this.safeAddSensorSample({x:this._lienarAccX,y:this._lienarAccY,z:this._lienarAccZ,timestamp:h._POSignalsUtils.Util.now()},this._linearAccelerometerList)),c.rotationRate&&c.rotationRate.alpha!=null&&c.rotationRate.beta!=null&&c.rotationRate.gamma!=null&&(this._rotX=c.rotationRate.alpha,this._rotY=c.rotationRate.beta,this._rotZ=c.rotationRate.gamma,this.safeAddSensorSample({x:this._rotX,y:this._rotY,z:this._rotZ,timestamp:h._POSignalsUtils.Util.now()},this._gyroscopeList))}catch(u){h._POSignalsUtils.Logger.warn("error in accelerometer handler",u)}}orientationUpdate(c){try{if(!this.delegate.collectBehavioralData()||this.puaseSensorsCollectionIfNoActivity(h._POSignalsUtils.Util.now()))return;c.alpha!=null&&c.beta!=null&&c.gamma!=null&&this.safeAddSensorSample({x:c.alpha,y:c.beta,z:c.gamma,timestamp:h._POSignalsUtils.Util.now()},this._rotationList)}catch(u){h._POSignalsUtils.Logger.warn("error in orientation handler",u)}}safeAddSensorSample(c,u){this.maxSensorSamples>u.length&&u.push(c)}}h.Sensors=y})(ee||(ee={}));var ee;(function(h){class y{static get instance(){return y._instance||(y._instance=new y),y._instance}constructor(){this._pointerParams=new h.PointerParams}get pointerParams(){return this._pointerParams}}h.PointerConfig=y})(ee||(ee={}));var ee;(function(h){let y;(function(c){c[c.Up=1]="Up",c[c.Down=2]="Down",c[c.Left=3]="Left",c[c.Right=4]="Right"})(y||(y={}));class b{get onGesture(){return this._onGesture.asEvent()}get isStarted(){return this._isStarted}get SCROLL_MIN_DURATION(){return 500}get SWIPE_MAX_ANGLE(){return 45}get TAP_MOVEMENT_TRESHOLD(){return 10}constructor(u,f){this.BEHAVIORAL_TYPE="gestures",this._isStarted=!1,this._onGesture=new h.EventDispatcher,this.touchSnapshotsMap=new Map,this.snapshotStartTime=new Map,this.delegate=u,this.sensors=f,this.touchStartHandler=this.touchStart.bind(this),this.touchMoveHandler=this.touchMove.bind(this),this.touchEndHandler=this.touchEnd.bind(this),this.touchCancelHandler=this.touchCancel.bind(this)}countEvents(u){const f={epochTs:Date.now()};for(const s of u)f[s.type]=(f[s.type]||0)+1;return f}clearTouchSnapshots(u){this.touchSnapshotsMap.delete(u),this.snapshotStartTime.delete(u)}getTouchSnapshots(u){let f;return this.touchSnapshotsMap.has(u)?f=this.touchSnapshotsMap.get(u):(f=[],this.touchSnapshotsMap.set(u,f)),f}isEmpty(){return this.touchSnapshotsMap.size===0}start(){this._isStarted||(this.delegate.addEventListener(document,"touchstart",this.touchStartHandler),this.delegate.addEventListener(document,"touchmove",this.touchMoveHandler),this.delegate.addEventListener(document,"touchend",this.touchEndHandler),this.delegate.addEventListener(document,"touchcancel",this.touchCancelHandler),this._isStarted=!0)}stop(){this._isStarted&&(document.removeEventListener("touchstart",this.touchStartHandler),document.removeEventListener("touchmove",this.touchMoveHandler),document.removeEventListener("touchend",this.touchEndHandler),document.removeEventListener("touchcancel",this.touchCancelHandler),this._isStarted=!1)}touchStart(u){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||h.PointerConfig.instance.pointerParams.eventsToIgnore.has(u.type))return;h._POSignalsUtils.Logger.debug("touchstart("+u.changedTouches.length+")",u),u.changedTouches.length>0&&this.pushSnapshot(u)}catch(f){h._POSignalsUtils.Logger.warn("error in touchStart handler",f)}}touchMove(u){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||h.PointerConfig.instance.pointerParams.eventsToIgnore.has(u.type))return;h._POSignalsUtils.Logger.debug("touchmove("+u.changedTouches.length+")",u),u.changedTouches.length>0&&this.pushSnapshot(u)}catch(f){h._POSignalsUtils.Logger.warn("error in touchMove handler",f)}}touchEnd(u){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onGesture.dispatch(this,null);return}if(h.PointerConfig.instance.pointerParams.eventsToIgnore.has(u.type))return;h._POSignalsUtils.Logger.debug("touchend("+u.changedTouches.length+")",u),this.gestureEnd(u)}catch(f){h._POSignalsUtils.Logger.warn("error in touchEnd handler",f)}}touchCancel(u){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onGesture.dispatch(this,null);return}if(h.PointerConfig.instance.pointerParams.eventsToIgnore.has(u.type))return;h._POSignalsUtils.Logger.debug("touchcancel("+u.changedTouches.length+")",u),this.gestureEnd(u)}catch(f){h._POSignalsUtils.Logger.warn("error in touchCancel handler",f)}}gestureEnd(u){u.changedTouches.length>0&&this.pushSnapshot(u);for(let f=0;f<u.changedTouches.length;f++){const s=u.changedTouches.item(f),o=this.getTouchSnapshots(s.identifier);o.length>0&&(this.isTap(o)?this.dispatchGesture(h.GestureType.Tap,s.identifier):this.dispatchGesture(this.calcGestureType(o),s.identifier))}}calcGestureType(u){let f;const s=this.getDirection(u);if(this.isFling(u))switch(s){case y.Up:{f=h.GestureType.FlingUp;break}case y.Right:{f=h.GestureType.FlingRight;break}case y.Down:{f=h.GestureType.FlingDown;break}case y.Left:{f=h.GestureType.FlingLeft;break}}else if(this.isScroll(u))switch(s){case y.Up:{f=h.GestureType.ScrollUp;break}case y.Right:{f=h.GestureType.ScrollRight;break}case y.Down:{f=h.GestureType.ScrollDown;break}case y.Left:{f=h.GestureType.ScrollLeft;break}}return f}pushSnapshot(u){if(u.changedTouches&&u.changedTouches.length>0)for(let f=0;f<u.changedTouches.length;f++){const s=u.changedTouches.item(f),o=s.radiusX&&s.radiusY?(s.radiusX+s.radiusY)/2:null;this.snapshotStartTime.has(s.identifier)||this.snapshotStartTime.set(s.identifier,Date.now());const a=this.getTouchSnapshots(s.identifier);a.length<h.PointerConfig.instance.pointerParams.maxSnapshotsCount&&a.push({type:u.type,eventTs:u.timeStamp,epochTs:Date.now(),relativeX:s.screenX,relativeY:s.screenY,x:s.clientX,y:s.clientY,pressure:s.force,size:o,xaccelerometer:this.sensors.accX,yaccelerometer:this.sensors.accY,zaccelerometer:this.sensors.accZ,xlinearaccelerometer:this.sensors.lienarAccX,ylinearaccelerometer:this.sensors.lienarAccY,zlinearaccelerometer:this.sensors.lienarAccZ,xrotation:this.sensors.rotX,yrotation:this.sensors.rotY,zrotation:this.sensors.rotZ,radiusX:s.radiusX,radiusY:s.radiusY,rotationAngle:s.rotationAngle,pageX:s.pageX,pageY:s.pageY,getX(){return s.screenX},getY(){return s.screenY}})}}dispatchGesture(u,f){const s=this.touchSnapshotsMap.get(f)||[],o=s.filter(a=>a.type==="touchmove");this._onGesture.dispatch(this,{epochTs:this.snapshotStartTime.get(f)||0,counter:this.delegate.gesturesCounter,type:u,events:s,eventCounters:this.countEvents(s),duration:this.delegate.getInteractionDuration(s),additionalData:this.delegate.additionalData,uiControl:void 0,timeProximity:h._POSignalsUtils.Util.calculateMeanTimeDeltasBetweenEvents(o),meanEuclidean:h._POSignalsUtils.Util.calculateMeanDistanceBetweenPoints(o),reduction:{},quality:""}),this.clearTouchSnapshots(f)}isTap(u){const f=Math.abs(u[0].x-u[1].x),s=Math.abs(u[0].y-u[1].y);return u.length==2&&f<this.TAP_MOVEMENT_TRESHOLD&&s<this.TAP_MOVEMENT_TRESHOLD}isFling(u){return u.length>1&&u[u.length-1].eventTs-u[0].eventTs<this.SCROLL_MIN_DURATION}isScroll(u){return u.length>1&&u[u.length-1].eventTs-u[0].eventTs>this.SCROLL_MIN_DURATION}getDirection(u){const f=this.calcAngle(u[0],u[u.length-1]);return f>90-this.SWIPE_MAX_ANGLE&&f<=90+this.SWIPE_MAX_ANGLE?y.Up:f>180-this.SWIPE_MAX_ANGLE&&f<=180+this.SWIPE_MAX_ANGLE?y.Right:f>270-this.SWIPE_MAX_ANGLE&&f<=270+this.SWIPE_MAX_ANGLE?y.Down:y.Left}calcAngle(u,f){return Math.atan2(f.y-u.y,f.x-u.x)*180/Math.PI+180}}h.GestureEvents=b})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.key=c,this.cache=this.loadFromStorage()}loadFromStorage(){let c=y.sessionStorage.getItem(this.key);return c||(c=JSON.stringify([])),JSON.parse(c)}get(){return this.cache}get length(){return this.cache.length}push(c){const u=this.cache.push(c);return y.sessionStorage.setItem(this.key,JSON.stringify(this.cache)),u}set(c){this.cache=c,y.sessionStorage.setItem(this.key,JSON.stringify(this.cache))}remove(c){this.cache.splice(c,1),y.sessionStorage.setItem(this.key,JSON.stringify(this.cache))}concat(c){return this.cache.concat(c)}clear(){this.cache=[],y.sessionStorage.removeItem(this.key)}}y.sessionStorage=h._POSignalsStorage.SessionStorage.instance.sessionStorage,h.StorageArray=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this.MAX_TAGS=10,this._tags=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_TAGS)}static get instance(){return y._instance||(y._instance=new y),y._instance}get tags(){return this._tags.get()}set disableTags(c){this._disableTags=c}setTag(c,u){var f;if(this._disableTags)return;if(!h.PointerConfig.instance.pointerParams.enabled){h._POSignalsUtils.Logger.info("Can't add tag, PingOneSignals SDK is disabled");return}if(!c){h._POSignalsUtils.Logger.info("Can't add tag, missing name");return}const s=h.PointerConfig.instance.pointerParams.tagsBlacklistRegex;if(s&&(c.match(s)||typeof u=="string"&&u!=null&&u.match(s))){h._POSignalsUtils.Logger.info("Tag name or value is blacklisted");return}if(this._tags.length>=this.MAX_TAGS)return;typeof u!="number"?this._tags.push({name:c.trim(),value:((f=u==null?void 0:u.trim)===null||f===void 0?void 0:f.call(u))||void 0,epochTs:Date.now(),timestamp:Date.now()}):this._tags.push({name:c.trim(),value:u,epochTs:Date.now(),timestamp:Date.now()});const o=u?`${c}:${u}`:c;h._POSignalsUtils.Logger.info(`Add tag: ${o}`)}reset(){this._tags.clear()}}h.Tags=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.client=c}calculateStrategyResult(c,u){return{shouldCollect:this.client.getBufferSize()<h.PointerConfig.instance.pointerParams.bufferSize}}}h.FirstInteractionsStrategy=y})(ee||(ee={}));var ee;(function(h){let y;(function(c){c[c.RICH=3]="RICH",c[c.CLICK=2]="CLICK",c[c.MOVE=1]="MOVE",c[c.POOR=0]="POOR"})(y||(y={}));class b{constructor(u){this.client=u,this.MAX_INTERACTIONS_PER_TYPE=7,this.RICH_MOUSE_MOVES_AMOUNT=8,this.MIN_KEYBOARD_EVENTS=6,this.MIN_TOUCH_EVENTS=20}isRichMouseInteraction(u){return u.mousemove>=this.RICH_MOUSE_MOVES_AMOUNT&&this.isClickInteraction(u)}isClickInteraction(u){return u.mousedown>0&&u.mouseup>0}isMoveInteraction(u){return u.mousemove>=this.RICH_MOUSE_MOVES_AMOUNT}classifyMouseInteraction(u){const f=h._POSignalsUtils.Util.typesCounter(u.events);return this.isRichMouseInteraction(f)?y.RICH:this.isClickInteraction(f)?y.CLICK:this.isMoveInteraction(f)?y.MOVE:y.POOR}classifyKeyboardInteraction(u){return u.events.length>=this.MIN_KEYBOARD_EVENTS?y.RICH:y.POOR}classifyTouchInteraction(u){return u.events.length>=this.MIN_TOUCH_EVENTS?y.RICH:y.POOR}handleMouseInteraction(u,f){const s=Date.now(),o=this.classifyMouseInteraction(u),a=this.getEnumKeyByValue(o);if(f.mouse.interactions.length<this.MAX_INTERACTIONS_PER_TYPE)return{shouldCollect:!0,quality:a};if(o===y.RICH){const w=this.findOldestInteractionWithLowestQuality(f.mouse.interactions);if(w!==-1)return{shouldCollect:!0,remove:{type:"mouse",index:w},quality:a}}const[m,v]=this.splitInteractionsByTime(f.mouse.interactions,s,18e4);return m.length<2?this.handleOlderInteractions(v,a):this.handleRecentInteractions(m,v,o,a)}splitInteractionsByTime(u,f,s){return u.reduce((o,a)=>(a.epochTs>=f-s?o[0].push(a):o[1].push(a),o),[[],[]])}handleOlderInteractions(u,f){const s=this.findOldestInteractionWithLowestQuality(u);return s!==-1?{shouldCollect:!0,remove:{type:"mouse",index:s},quality:f}:{shouldCollect:!1,quality:f}}handleRecentInteractions(u,f,s,o){const a=this.findOldestInteractionWithLowestQuality(u,s);if(a!==-1){const m=u[a],v=this.client.getBehavioralData().mouse.interactions.indexOf(m),w=this.findOldestInteractionWithLowestQuality(f,y[this.client.getBehavioralData().mouse.interactions[v].quality]);return w!==-1?{shouldCollect:!0,remove:{type:"mouse",index:w},quality:o}:{shouldCollect:!0,remove:{type:"mouse",index:v},quality:o}}return{shouldCollect:!1,quality:o}}handleKeyboardInteraction(u,f){const s=Date.now(),o=this.classifyKeyboardInteraction(u),a=this.getEnumKeyByValue(o);if(f.keyboard.interactions.length<this.MAX_INTERACTIONS_PER_TYPE)return{shouldCollect:!0,quality:a};if(o===y.RICH){const w=this.findOldestInteractionWithLowestQuality(f.keyboard.interactions);if(w!==-1)return{shouldCollect:!0,remove:{type:"keyboard",index:w},quality:a}}const[m,v]=this.splitInteractionsByTime(f.keyboard.interactions,s,18e4);return m.length<2?this.handleOlderInteractions(v,a):this.handleRecentInteractions(m,v,o,a)}handleTouchInteraction(u,f){const s=Date.now(),o=this.classifyTouchInteraction(u),a=this.getEnumKeyByValue(o);if(f.touch.interactions.length<this.MAX_INTERACTIONS_PER_TYPE)return{shouldCollect:!0,quality:a};if(o===y.RICH){const w=this.findOldestInteractionWithLowestQuality(f.touch.interactions);if(w!==-1)return{shouldCollect:!0,remove:{type:"touch",index:w},quality:a}}const[m,v]=this.splitInteractionsByTime(f.touch.interactions,s,18e4);return m.length<2?this.handleOlderInteractions(v,a):this.handleRecentInteractions(m,v,o,a)}calculateStrategyResult(u,f){const s=this.client.getBehavioralData();switch(f){case"mouse":return this.handleMouseInteraction(u,s);case"keyboard":return this.handleKeyboardInteraction(u,s);case"touch":return this.handleTouchInteraction(u,s);default:throw new Error(`Unknown interaction type: ${f}`)}}getEnumKeyByValue(u){return Object.keys(y).find(f=>y[f]===u)}findOldestInteractionWithLowestQuality(u,f){let s=f??y.RICH,o=-1,a=Number.MAX_SAFE_INTEGER;for(let m=0;m<u.length;m++){const v=y[u[m].quality];(v<s||v===s&&u[m].epochTs<a)&&(s=v,a=u[m].epochTs,o=m)}return o}}h.PriorityStrategy=b})(ee||(ee={}));var ee;(function(h){let y;(function(c){c[c.FIRST_INTERACTIONS=0]="FIRST_INTERACTIONS",c[c.PRIORITY_INTERACTIONS=1]="PRIORITY_INTERACTIONS"})(y=h.BufferingStrategyType||(h.BufferingStrategyType={}));class b{static createBufferingStrategy(u,f){switch(u){case y.FIRST_INTERACTIONS:return new h.FirstInteractionsStrategy(f);case y.PRIORITY_INTERACTIONS:return new h.PriorityStrategy(f)}}}h.StrategyFactory=b})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.sessionData=c,this.instanceUUID=h._POSignalsUtils.Util.newGuid(),this._isBehavioralDataPaused=!1,this.started=!1,this.initQueue=new h.PromiseQueue(1)}static instance(){if(!this._instance){const c=h._POSignalsStorage.SessionStorage.instance;if(!document.body)throw h._POSignalsUtils.Logger.error("PingOne Signals can be started only after DOM Ready!"),new Error("PingOne Signals can be started only after DOM Ready!");this._instance=new h.Client(c,h.BufferingStrategyType.PRIORITY_INTERACTIONS)}return this._instance}async getData(){if(!this.startedPromise)throw new Error("SDK not initialized");return await this.startedPromise,await this.dataHandler.getData(Date.now())}addTag(c,u){h.Tags.instance.setTag(c,u)}async start(c={}){var u,f,s,o;if((!((u=c.waitForWindowLoad)!==null&&u!==void 0)||u)&&await this.loadEventPromise(),this.initParams=c,this.validateStartParams(c),this.clientVersion=h._POSignalsUtils.Constants.CLIENT_VERSION,this.started){h._POSignalsUtils.Logger.warn("SDK already initialized");return}this.browserInfo=new h._POSignalsUtils.BrowserInfo,h._POSignalsUtils.Logger.isLogEnabled=!!c.consoleLogEnabled||!!c.devEnv,h._POSignalsUtils.Logger.info("Starting Signals SDK..."),h.Tags.instance.disableTags=!!this.initParams.disableTags,this.sessionData.setStorageConfig(c);const a=h.PointerConfig.instance.pointerParams,m={additionalMediaCodecs:a.additionalMediaCodecs,browserInfo:this.browserInfo,fingerprintTimeoutMillis:a.fingerprintTimeoutMillis,metadataBlackList:new Set(a.metadataBlackList.concat(c.deviceAttributesToIgnore)),propertyDescriptors:a.propertyDescriptors,webRtcUrl:a.webRtcUrl,dataPoints:a.metadataDataPoints};this.localAgentAccessor=new h._POSignalsMetadata.LocalAgentAccessor((f=c.agentPort)!==null&&f!==void 0?f:h._POSignalsUtils.Constants.PINGID_AGENT_DEFAULT_PORT,(s=c.agentTimeout)!==null&&s!==void 0?s:h._POSignalsUtils.Constants.PINGID_AGENT_DEFAULT_TIMEOUT),this.metadata=new h._POSignalsMetadata.Metadata(this.sessionData,m,c.externalIdentifiers,this.localAgentAccessor),this.dataHandler=new h.DataHandler(this.clientVersion,this.instanceUUID,this.initParams,this.metadata,this,this.sessionData),(!((o=this.initParams.behavioralDataCollection)!==null&&o!==void 0)||o)&&this.refreshListening(),c.lazyMetadata||(this.metadata.getDeviceAttributes(),this.metadata.getLocalAgentJwt()),this.started=!0;try{this.logInit(),this.addStartupTags()}catch(v){h._POSignalsUtils.Logger.warn("SDK post init failed",v)}}logInit(){var c,u;h._POSignalsUtils.Logger.info(`PingOne Signals initialized. ${JSON.stringify({timestamp:new Date().getTime(),sdkVersion:this.clientVersion,instanceUUID:this.instanceUUID,tabUUID:this.sessionData.tabUUID},null,2)}`);const f=()=>h._POSignalsUtils.Logger.info(`Token Ready: ${window._pingOneSignalsToken}`),s=()=>{h._POSignalsUtils.Logger.info("Signals token fetch is disabled"),window._pingOneSignalsToken=void 0},o="uninitialized",a="skipped";((c=window._pingOneSignalsToken)===null||c===void 0?void 0:c.substring(0,a.length))===a?s():((u=window._pingOneSignalsToken)===null||u===void 0?void 0:u.substring(0,o.length))!==o&&f(),document.addEventListener("PingOneSignalsTokenReadyEvent",f),document.addEventListener("PingOneSignalsTokenSkippedEvent",s)}get isBehavioralDataPaused(){return this._isBehavioralDataPaused}getSignalsToken(){let c="";if(typeof window._pingOneSignalsToken=="string"&&0<=window._pingOneSignalsToken.indexOf(":")){const u=window._pingOneSignalsToken.match(/t:(.*?)(&|$)/g);u&&0<u.length&&(c=u[0].replace(/&s*$/,"").replace(/t:/,""))}else typeof window._pingOneSignalsToken=="string"&&(c=window._pingOneSignalsToken);return c}pauseBehavioralData(){this._isBehavioralDataPaused||(this._isBehavioralDataPaused=!0,this.addTag("SDK paused behaviorally"))}resumeBehavioralData(){this._isBehavioralDataPaused&&(this._isBehavioralDataPaused=!1,this.addTag("SDK resumed behaviorally"))}async startSignals(c){try{return this.startedPromise=this.initQueue.add(()=>this.start(c)),await this.startedPromise}catch(u){const f={id:h._POSignalsUtils.POErrorCodes.INITIALIZATION_ERROR,message:u.message,code:"SDK initialization failed."};throw new Error(JSON.stringify(f))}}validateStartParams(c){if(!document.body)throw h._POSignalsUtils.Logger.error("PingOne Signals can be started only after DOM Ready!"),new Error("PingOne Signals can be started only after DOM Ready!");c.externalIdentifiers=c.externalIdentifiers||{}}async loadEventPromise(){return new Promise(c=>{document.readyState==="complete"?c():window.addEventListener("load",u=>{c()})})}addStartupTags(){this.addTag("SDK started"),document.referrer&&this.addTag("referrer",document.referrer),this.addTag("location",window.location.href)}}h.ClientBase=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onClipboardEvent=new h.EventDispatcher,this.delegate=c,this.onClipboardEventHandler=this.onEvent.bind(this)}get isStarted(){return this._isStarted}get onClipboardEvent(){return this._onClipboardEvent.asEvent()}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onClipboardEvent.dispatch(this,this.createClipboardEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in clipboard handler",u)}}createClipboardEvent(c){const u=h._POSignalsUtils.Util.getSrcElement(c);return{category:"ClipboardEvent",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href,stId:this.delegate.getElementsStID(u),elementId:u==null?void 0:u.id}}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"cut",this.onClipboardEventHandler),this.delegate.addEventListener(document,"copy",this.onClipboardEventHandler),this.delegate.addEventListener(document,"paste",this.onClipboardEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("cut",this.onClipboardEventHandler),document.removeEventListener("copy",this.onClipboardEventHandler),document.removeEventListener("paste",this.onClipboardEventHandler))}}h.ClipboardEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onDragEvent=new h.EventDispatcher,this.delegate=c,this.onDragEventHandler=this.onEvent.bind(this)}get isStarted(){return this._isStarted}get onDragEvent(){return this._onDragEvent.asEvent()}createDragEvent(c){return{category:"DragEvent",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href}}}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onDragEvent.dispatch(this,this.createDragEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in drag handler",u)}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"dragstart",this.onDragEventHandler),this.delegate.addEventListener(document,"dragexit",this.onDragEventHandler),this.delegate.addEventListener(document,"drop",this.onDragEventHandler),this.delegate.addEventListener(document,"dragend",this.onDragEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("dragstart",this.onDragEventHandler),document.removeEventListener("dragexit",this.onDragEventHandler),document.removeEventListener("drop",this.onDragEventHandler),document.removeEventListener("dragend",this.onDragEventHandler))}}h.DragEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onFocusEvent=new h.EventDispatcher,this.delegate=c,this.onFocusEventHandler=this.onEvent.bind(this)}get isStarted(){return this._isStarted}get onFocusEvent(){return this._onFocusEvent.asEvent()}getRelatedTarget(c){if(!c.relatedTarget)return{type:"",stId:"",elementId:""};const u={type:h._POSignalsUtils.Util.getObjectType(c.relatedTarget),stId:"",elementId:""};c.relatedTarget.id&&(u.elementId=c.relatedTarget.id);try{const f=c.relatedTarget;u.stId=this.delegate.getElementsStID(f)}catch{}return u}createFocusEvent(c){const u=h._POSignalsUtils.Util.getSrcElement(c),f=this.getRelatedTarget(c);return{category:"FocusEvent",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href,stId:this.delegate.getElementsStID(u),elementId:u?u.id:"",relatedTarget:f}}}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onFocusEvent.dispatch(this,this.createFocusEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in focus handler",u)}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"DOMFocusIn",this.onFocusEventHandler),this.delegate.addEventListener(document,"DOMFocusOut",this.onFocusEventHandler),this.delegate.addEventListener(document,"focus",this.onFocusEventHandler),this.delegate.addEventListener(document,"focusin",this.onFocusEventHandler),this.delegate.addEventListener(document,"focusout",this.onFocusEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("DOMFocusIn",this.onFocusEventHandler),document.removeEventListener("DOMFocusOut",this.onFocusEventHandler),document.removeEventListener("focus",this.onFocusEventHandler),document.removeEventListener("focusin",this.onFocusEventHandler),document.removeEventListener("focusout",this.onFocusEventHandler))}}h.FocusEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onUIEvent=new h.EventDispatcher,this.delegate=c,this.onUIEventHandler=this.onEvent.bind(this)}get isStarted(){return this._isStarted}get onUIEvent(){return this._onUIEvent.asEvent()}createUIEvent(c){return{category:"UIEvent",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href}}}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onUIEvent.dispatch(this,this.createUIEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in UIEvent handler",u)}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"resize",this.onUIEventHandler),this.delegate.addEventListener(document,"scroll",this.onUIEventHandler),this.delegate.addEventListener(document,"select",this.onUIEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("resize",this.onUIEventHandler),document.removeEventListener("scroll",this.onUIEventHandler),document.removeEventListener("select",this.onUIEventHandler))}}h.UIEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this.visibilityChangeEventName="visibilitychange",this.hiddenProperty="hidden",this._isStarted=!1,this._onGeneralEvent=new h.EventDispatcher,this.delegate=c,this.onGeneralEventHandler=this.onEvent.bind(this),this.onLangChangeHandler=this.onLangChangeEvent.bind(this),this.onOrientationChangeHandler=this.onOrientationChangeEvent.bind(this),this.onVisibilityChangeHandler=this.onVisibilityChangeEvent.bind(this),typeof document.msHidden<"u"?(this.hiddenProperty="msHidden",this.visibilityChangeEventName="msvisibilitychange"):typeof document.webkitHidden<"u"&&(this.hiddenProperty="webkitHidden",this.visibilityChangeEventName="webkitvisibilitychange")}get isStarted(){return this._isStarted}get onGeneralEvent(){return this._onGeneralEvent.asEvent()}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onGeneralEvent.dispatch(this,this.createGeneralEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in general event handler",u)}}onLangChangeEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;const u=this.createGeneralEvent(c);this._onGeneralEvent.dispatch(this,u)}catch(u){h._POSignalsUtils.Logger.warn("error in LangChange event handler",u)}}onOrientationChangeEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;const u=this.createGeneralEvent(c),f=h._POSignalsUtils.Util.getDeviceOrientation();u.additionalData.deviceOrientation=f.orientation,u.additionalData.deviceAngle=f.angle,this._onGeneralEvent.dispatch(this,u)}catch(u){h._POSignalsUtils.Logger.warn("error in OrientationChange event handler",u)}}onVisibilityChangeEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;const u=this.createGeneralEvent(c);u.additionalData.hidden=!!document[this.hiddenProperty],document.visibilityState&&(u.additionalData.visibilityState=document.visibilityState.toString()),this._onGeneralEvent.dispatch(this,u)}catch(u){h._POSignalsUtils.Logger.warn("error in VisibilityChange event handler",u)}}createGeneralEvent(c){return{category:"Event",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href}}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,this.visibilityChangeEventName,this.onVisibilityChangeHandler),this.delegate.addEventListener(document,"change",this.onGeneralEventHandler),this.delegate.addEventListener(document,"fullscreenchange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"invalid",this.onGeneralEventHandler),this.delegate.addEventListener(window,"languagechange",this.onLangChangeHandler),this.delegate.addEventListener(window,"orientationchange",this.onOrientationChangeHandler),this.delegate.addEventListener(document,"seeked",this.onGeneralEventHandler),this.delegate.addEventListener(document,"seeking",this.onGeneralEventHandler),this.delegate.addEventListener(document,"selectstart",this.onGeneralEventHandler),this.delegate.addEventListener(document,"selectionchange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"submit",this.onGeneralEventHandler),this.delegate.addEventListener(document,"volumechange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"reset",this.onGeneralEventHandler),this.delegate.addEventListener(document,"textInput",this.onGeneralEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener(this.visibilityChangeEventName,this.onVisibilityChangeHandler),document.removeEventListener("change",this.onGeneralEventHandler),document.removeEventListener("fullscreenchange",this.onGeneralEventHandler),document.removeEventListener("invalid",this.onGeneralEventHandler),window.removeEventListener("languagechange",this.onLangChangeHandler),window.removeEventListener("orientationchange",this.onOrientationChangeHandler),document.removeEventListener("seeked",this.onGeneralEventHandler),document.removeEventListener("seeking",this.onGeneralEventHandler),document.removeEventListener("selectstart",this.onGeneralEventHandler),document.removeEventListener("selectionchange",this.onGeneralEventHandler),document.removeEventListener("submit",this.onGeneralEventHandler),document.removeEventListener("volumechange",this.onGeneralEventHandler),document.removeEventListener("reset",this.onGeneralEventHandler),document.removeEventListener("textInput",this.onGeneralEventHandler))}}h.GeneralEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.DEFAULT_INDIRECT_IDLE_INTERVAL=1e3,this.MAX_INDIRECT_EVENTS=25,this._onIndirect=new h.EventDispatcher,this.indirectEvents=[],this.idleTimeInMillis=this.DEFAULT_INDIRECT_IDLE_INTERVAL,this.lastIndirectEventTimestamp=0,this._isStarted=!1,this.clipboardEvents=new h.ClipboardEvents(c),this.clipboardEvents.onClipboardEvent.subscribe(this.handleEvent.bind(this)),this.dragEvents=new h.DragEvents(c),this.dragEvents.onDragEvent.subscribe(this.handleEvent.bind(this)),this.focusEvents=new h.FocusEvents(c),this.focusEvents.onFocusEvent.subscribe(this.handleEvent.bind(this)),this.uiEvents=new h.UIEvents(c),this.uiEvents.onUIEvent.subscribe(this.handleEvent.bind(this)),this.generalEvents=new h.GeneralEvents(c),this.generalEvents.onGeneralEvent.subscribe(this.handleEvent.bind(this)),this.onTimeElapsedHandler=this.onTimeElapsed.bind(this)}get onIndirect(){return this._onIndirect.asEvent()}async onTimeElapsed(){this.indirectEvents.length>0&&new Date().getTime()-this.lastIndirectEventTimestamp>=this.idleTimeInMillis&&this.dispatch()}handleEvent(c,u){this.lastIndirectEventTimestamp=new Date().getTime(),this.pushEvent(u)}pushEvent(c){this.indirectEvents.push(c),this.indirectEvents.length>=this.MAX_INDIRECT_EVENTS&&this.dispatch()}clearBuffer(){const c={events:this.indirectEvents};return this.indirectEvents=[],c}dispatch(){try{clearInterval(this.updateIntervalHandle),this._onIndirect.dispatch(this,this.clearBuffer()),this.updateIntervalHandle=setInterval(this.onTimeElapsedHandler,h.PointerConfig.instance.pointerParams.indirectIntervalMillis)}catch(c){h._POSignalsUtils.Logger.warn("Failed to dispatch indirect events",c)}}get isStarted(){return this._isStarted}start(){this._isStarted||(this.updateIntervalHandle=setInterval(this.onTimeElapsedHandler,h.PointerConfig.instance.pointerParams.indirectIntervalMillis),this.clipboardEvents.start(),this.dragEvents.start(),this.focusEvents.start(),this.uiEvents.start(),this.generalEvents.start(),this._isStarted=!0)}stop(){this._isStarted&&(this.clipboardEvents.stop(),this.dragEvents.stop(),this.focusEvents.stop(),this.uiEvents.stop(),this.generalEvents.stop(),clearInterval(this.updateIntervalHandle),this.updateIntervalHandle=null,this._isStarted=!1)}unsubscribe(){this.clipboardEvents.onClipboardEvent.unsubscribe(this.handleEvent.bind(this)),this.dragEvents.onDragEvent.unsubscribe(this.handleEvent.bind(this)),this.focusEvents.onFocusEvent.unsubscribe(this.handleEvent.bind(this)),this.uiEvents.onUIEvent.unsubscribe(this.handleEvent.bind(this)),this.generalEvents.onGeneralEvent.unsubscribe(this.handleEvent.bind(this))}}h.IndirectClient=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this.config={},this._cacheHash=0,this.cache=new Map}refreshCssSelectors(c){try{if(!c)return;const u=h._POSignalsUtils.Util.hashCode(JSON.stringify(c));if(this._cacheHash===u)return;this.config=c,this._cacheHash=u,this.cache=new Map}catch(u){h._POSignalsUtils.Logger.warn("Failed to set css selectors",u)}}getIdentification(c,u){if(this.cache.get(c)===null)return null;if(this.cache.get(c)!==void 0)return this.cache.get(c);for(const f in this.config)try{if(!this.config.hasOwnProperty(f))continue;let s=this.config[f]||[];h._POSignalsUtils.Util.isArray(s)||(s=[].concat(s));for(const o of s)if(h._POSignalsUtils.Util.isSelectorMatches(c,o,u))return this.cache.set(c,f),f}catch(s){h._POSignalsUtils.Logger.warn(`Failed to find selector for ${f}`,s)}return this.cache.set(c,null),null}get cacheHash(){return this._cacheHash}}h.ElementsIdentifications=y})(ee||(ee={}));var ee;(function(h){const y="keydown",b="keyup",c="blur",u="focus";class f{get isStarted(){return this._isStarted}get onInteraction(){return this._onInteraction.asEvent()}get onEnterPress(){return this._onEnterPress.asEvent()}get onObfuscatedValue(){return this._onObfuscatedValue.asEvent()}refreshKeyboardCssSelectors(o){this._fieldsIdentifications.refreshCssSelectors(o)}get modifiersKeys(){return["Alt","AltGraph","CapsLock","Control","Fn","FnLock","Hyper","Meta","NumLock","OS","ScrollLock","Shift","Super","Symbol","SymbolLock"]}get specialKeys(){return["Tab","Shift","Backspace","Enter","CapsLock","Meta","Delete","Alt","ArrowDown","ArrowUp","Control","ArrowLeft","End","Unidentified","Home","ArrowRight","Insert","Pause","PageDown","PageUp","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","AltGraph","Escape"]}constructor(o,a){this.BEHAVIORAL_TYPE="eventKeyboard",this._isStarted=!1,this._onInteraction=new h.EventDispatcher,this._onEnterPress=new h.EventDispatcher,this._onObfuscatedValue=new h.EventDispatcher,this.interactionsMap=new Map,this._fieldsIdentifications=new h.ElementsIdentifications,this.keyStrokeMap=new Map,this.delegate=o,this.uiControlManager=a,this.onKeyDownHandle=this.onKeyDown.bind(this),this.onKeyUpHandle=this.onKeyUp.bind(this),this.onFocusHandle=this.onFocus.bind(this),this.onBlurHandle=this.onBlur.bind(this)}countEvent(o,a){a&&(a.eventCounters[o]=(a.eventCounters[o]||0)+1)}clearBuffer(){const o=h._POSignalsUtils.Util.getValuesOfMap(this.interactionsMap);return this.interactionsMap.clear(),o}start(){this._isStarted?h._POSignalsUtils.Logger.debug("Desktop Keyboard events already listening"):(this.delegate.addEventListener(document,y,this.onKeyDownHandle),this.delegate.addEventListener(document,b,this.onKeyUpHandle),this.delegate.addEventListener(document,u,this.onFocusHandle,!0),this.delegate.addEventListener(document,c,this.onBlurHandle,!0),this._isStarted=!0,h._POSignalsUtils.Logger.debug("Desktop Keyboard events start listening..."))}stop(){this._isStarted?(document.removeEventListener(y,this.onKeyDownHandle),document.removeEventListener(b,this.onKeyUpHandle),document.removeEventListener(u,this.onFocusHandle,!0),document.removeEventListener(c,this.onBlurHandle,!0),this._isStarted=!1,h._POSignalsUtils.Logger.debug("Desktop Keyboard events stop listening...")):h._POSignalsUtils.Logger.debug("Desktop Keyboard events already stopped")}getInteractionFromElement(o){var a;let m=null,v=null;const w=h._POSignalsUtils.Util.getSrcElement(o);if(w&&w instanceof HTMLInputElement&&!h._POSignalsUtils.Util.isClickableInput(w)&&h._POSignalsUtils.Util.isFunction(w.getAttribute)&&!(!((a=w.hasAttribute)===null||a===void 0)&&a.call(w,"data-st-ignore"))&&!h._POSignalsUtils.Util.anySelectorMatches(w,h.PointerConfig.instance.pointerParams.keyboardCssSelectorsBlacklist,0)){v=this.delegate.getElementsStID(w);const A=h.PointerConfig.instance.pointerParams.keyboardIdentifierAttributes;for(let E=0;E<A.length&&!v;E++)v=w.getAttribute(A[E]);v&&!h.PointerConfig.instance.pointerParams.keyboardFieldBlackList.has(v)&&(m=this.interactionsMap.get(w),m||(m={epochTs:Date.now(),stId:v,elementId:h._POSignalsUtils.Util.getAttribute(w,"id"),name:h._POSignalsUtils.Util.getAttribute(w,"name"),type:h._POSignalsUtils.Util.getAttribute(w,"type"),events:[],counter:this.delegate.keyboardCounter,eventCounters:{epochTs:Date.now()},duration:0,numOfDeletions:0,additionalData:this.delegate.additionalData,quality:""},this.interactionsMap.set(w,m)))}return m}getKeyCode(o){return o.keyCode?o.keyCode:o.which?o.which:o.code?h._POSignalsUtils.Util.hashCode(o.code):h._POSignalsUtils.Util.hashCode(o.key)+(o.location||0)}getKeyboardEvent(o){return o||window.event}getKeystrokeId(o,a){const m=this.getKeyCode(o);let v;return a===b&&(this.keyStrokeMap.has(m)?(v=this.keyStrokeMap.get(m),this.keyStrokeMap.delete(m)):v=h._POSignalsUtils.Util.newGuid()),a===y&&(this.keyStrokeMap.has(m)&&o.repeat?v=this.keyStrokeMap.get(m):(v=h._POSignalsUtils.Util.newGuid(),this.keyStrokeMap.set(m,v))),v}createKeyboardInteractionEvent(o,a){const m=h._POSignalsUtils.Util.getSrcElement(a),v=m.value?m.value.toString().length:0;return{type:o,eventTs:a.timeStamp,epochTs:Date.now(),selectionStart:h._POSignalsUtils.Util.getElementSelectionStart(m),selectionEnd:h._POSignalsUtils.Util.getElementSelectionEnd(m),key:a.key,keystrokeId:null,currentLength:v}}enrichKeyboardEvent(o,a){(this.modifiersKeys.indexOf(o.key)>=0||this.specialKeys.indexOf(o.key)>=0)&&(a.key=o.key),a.keystrokeId=this.getKeystrokeId(o,a.type);const m=h._POSignalsUtils.Util.getSrcElement(o);a.currentLength=String(m.value).length}onFocus(o){var a,m;try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onInteraction.dispatch(this,null);return}o=this.getKeyboardEvent(o);const v=this.getInteractionFromElement(o);if(this.countEvent(o.type,v),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(o.type))return;if(v){const w=this.createKeyboardInteractionEvent(u,o);v.events.push(w);const A=this.uiControlManager.createUIControlData(o);A&&(v.uiControl={uiElement:A.uiElement,enrichedData:A.enrichedData},((m=(a=A.uiElement)===null||a===void 0?void 0:a.id)===null||m===void 0?void 0:m.length)>0&&h._POSignalsUtils.Logger.info(`Typing in element with id '${A.uiElement.id}'`))}}catch(v){h._POSignalsUtils.Logger.warn("error in keyboard focus handler",v)}}onKeyUp(o){try{if(o=this.getKeyboardEvent(o),(o.keyCode===13||o.which===13)&&this._onEnterPress.dispatch(this,h._POSignalsUtils.Util.getSrcElement(o)),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onInteraction.dispatch(this,null);return}const a=this.getInteractionFromElement(o);if(this.countEvent(o.type,a),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(o.type))return;if(a){const m=this.createKeyboardInteractionEvent(b,o);this.enrichKeyboardEvent(o,m),a.events.push(m)}else this.keyStrokeMap.delete(this.getKeyCode(o))}catch(a){h._POSignalsUtils.Logger.warn("error in keyUp handler",a)}}isEmpty(){return this.interactionsMap.size===0}onKeyDown(o){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onInteraction.dispatch(this,null);return}o=this.getKeyboardEvent(o);const a=this.getInteractionFromElement(o);if(this.countEvent(o.type,a),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(o.type))return;if(a){const m=this.createKeyboardInteractionEvent(y,o);this.enrichKeyboardEvent(o,m),a.events.push(m)}}catch(a){h._POSignalsUtils.Logger.warn("error in keyDown handler",a)}}onBlur(o){try{o=this.getKeyboardEvent(o);const a=this.getInteractionFromElement(o);if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onInteraction.dispatch(this,null);return}if(this.countEvent(o.type,a),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(o.type))return;if(a){const m=this.createKeyboardInteractionEvent(c,o);a.events.push(m),a.duration=this.delegate.getInteractionDuration(a.events),a.numOfDeletions=this.calculateNumOfDeletions(a.events);const v=h._POSignalsUtils.Util.getSrcElement(o);this.interactionsMap.delete(v),this._onInteraction.dispatch(this,a)}}catch(a){h._POSignalsUtils.Logger.warn("error in blur handler",a)}}calculateNumOfDeletions(o){if(!(o!=null&&o[0]))return 0;let a=0,m=o[0].currentLength;for(let v=1;v<o.length;v++)o[v].currentLength<m&&a++,m=o[v].currentLength;return a}get fieldsIdentifications(){return this._fieldsIdentifications}}h.Keyboard=f})(ee||(ee={}));var ee;(function(h){class y{constructor(c,u){var f;const s=h.PointerConfig.instance.pointerParams.uiModelingElementFilters,o=h._POSignalsUtils.Util.getAttribute,a=(f=c.getBoundingClientRect)===null||f===void 0?void 0:f.call(c);this._htmlElement=c,this._data={location:this.getUIElementAttribute(s.location,()=>window.location.href),id:this.getUIElementAttribute(s.id,()=>o(c,"id")),aria_label:this.getUIElementAttribute(s.aria_label,()=>o(c,"aria-label")),data_st_field:this.getUIElementAttribute(s.data_st_field,()=>u.getElementsStID(c)),data_st_tag:this.getUIElementAttribute(s.data_st_tag,()=>o(c,"data-st-tag")),data_selenium:this.getUIElementAttribute(s.data_selenium,()=>o(c,"data-selenium")),data_selenium_id:this.getUIElementAttribute(s.data_selenium_id,()=>o(c,"data-selenium-id")),data_testid:this.getUIElementAttribute(s.data_testid,()=>o(c,"data-testid")),data_test_id:this.getUIElementAttribute(s.data_test_id,()=>o(c,"data-test-id")),data_qa_id:this.getUIElementAttribute(s.data_qa_id,()=>o(c,"data-qa-id")),data_id:this.getUIElementAttribute(s.data_id,()=>o(c,"data-id")),name:this.getUIElementAttribute(s.name,()=>o(c,"name")),placeholder:this.getUIElementAttribute(s.placeholder,()=>o(c,"placeholder")),role:this.getUIElementAttribute(s.role,()=>o(c,"role")),type:this.getUIElementAttribute(s.type,()=>o(c,"type")),nodeTypeInt:this.getUIElementAttribute(s.nodeTypeInt,()=>c.nodeType),nodeName:this.getUIElementAttribute(s.nodeName,()=>c.nodeName),cursorType:this.getUIElementAttribute(s.cursorType,()=>window.getComputedStyle(c).cursor),text:this.getUIElementAttribute(s.text,()=>this.getElementText(c)),textLength:this.getUIElementAttribute(s.textLength,()=>{var m;return((m=this.getElementText(c))===null||m===void 0?void 0:m.length)||null}),bottom:this.getUIElementAttribute(s.bottom,()=>a==null?void 0:a.bottom),height:this.getUIElementAttribute(s.height,()=>a==null?void 0:a.height),left:this.getUIElementAttribute(s.left,()=>a==null?void 0:a.left),right:this.getUIElementAttribute(s.right,()=>a==null?void 0:a.right),top:this.getUIElementAttribute(s.top,()=>a==null?void 0:a.top),width:this.getUIElementAttribute(s.width,()=>a==null?void 0:a.width),x:this.getUIElementAttribute(s.x,()=>a==null?void 0:a.x),y:this.getUIElementAttribute(s.y,()=>a==null?void 0:a.y)},this._data.elementId=this.getStrongestElementID()}get data(){return h._POSignalsUtils.Util.filterReduce(this._data,c=>c!=null&&c!=="")}get htmlElement(){return this._htmlElement}getUIElementAttribute(c,u){var f;try{if(!((f=c==null?void 0:c.enabled)!==null&&f!==void 0)||f){let s=u();return typeof s=="string"&&(typeof(c==null?void 0:c.maxLength)=="number"&&s.length>c.maxLength&&(s=s.substring(0,c.maxLength)),c!=null&&c.filterRegex&&(s=s.replace(new RegExp(c.filterRegex,"g"),"*"))),s}}catch(s){h._POSignalsUtils.Logger.warn("Failed to add ui element attribute",s)}return null}getStrongestElementID(){return this._data.data_st_field||this._data.data_selenium_id||this._data.data_selenium||this._data.data_testid||this._data.data_test_id||this._data.data_qa_id||this._data.data_id||this._data.id||""}getElementText(c){return c instanceof HTMLInputElement&&!h._POSignalsUtils.Util.isClickableInput(c)?null:h._POSignalsUtils.Util.getElementText(c)}equals(c){return!(!c||c.location&&location.href.indexOf(c.location)<0||c.elementId&&c.elementId!==this._data.elementId||c.id&&c.id!==this._data.id||c.aria_label&&c.aria_label!==this._data.aria_label||c.data_st_field&&c.data_st_field!==this._data.data_st_field||c.data_st_tag&&c.data_st_tag!==this._data.data_st_tag||c.data_selenium&&c.data_selenium!==this._data.data_selenium||c.data_selenium_id&&c.data_selenium_id!==this._data.data_selenium_id||c.data_testid&&c.data_testid!==this._data.data_testid||c.data_test_id&&c.data_test_id!==this._data.data_test_id||c.data_qa_id&&c.data_qa_id!==this._data.data_qa_id||c.data_id&&c.data_id!==this._data.data_id||c.name&&c.name!==this._data.name||c.placeholder&&c.placeholder!==this._data.placeholder||c.role&&c.role!==this._data.role||c.type&&c.type!==this._data.type||c.nodeTypeInt&&c.nodeTypeInt!==this._data.nodeTypeInt||c.nodeName&&c.nodeName!==this._data.nodeName||c.cursorType&&c.cursorType!==this._data.cursorType||c.text&&c.text!==this._data.text||c.textLength&&c.textLength!==this._data.textLength||c.bottom&&c.bottom!==this._data.bottom||c.height&&c.height!==this._data.height||c.left&&c.left!==this._data.left||c.right&&c.right!==this._data.right||c.top&&c.top!==this._data.top||c.width&&c.width!==this._data.width||c.x&&c.x!==this._data.x||c.y&&c.y!==this._data.y)}static createCssSelector(c){let u="";return c!=null&&c.nodeName&&(u+=c.nodeName.toLowerCase()),c!=null&&c.id&&(u+=`[id="${c.id}"]`),c!=null&&c.aria_label&&(u+=`[aria-label="${c.aria_label}"]`),c!=null&&c.data_st_field&&(u+=`[data-st-field="${c.data_st_field}"]`),c!=null&&c.data_st_tag&&(u+=`[data-st-tag="${c.data_st_tag}"]`),c!=null&&c.data_selenium&&(u+=`[data-selenium="${c.data_selenium}"]`),c!=null&&c.data_selenium_id&&(u+=`[data-selenium-id="${c.data_selenium_id}"]`),c!=null&&c.data_testid&&(u+=`[data-testid="${c.data_testid}"]`),c!=null&&c.data_test_id&&(u+=`[data-test-id="${c.data_test_id}"]`),c!=null&&c.data_qa_id&&(u+=`[data-qa-id="${c.data_qa_id}"]`),c!=null&&c.data_id&&(u+=`[data-id="${c.data_id}"]`),c!=null&&c.name&&(u+=`[name="${c.name}"]`),c!=null&&c.placeholder&&(u+=`[placeholder="${c.placeholder}"]`),c!=null&&c.role&&(u+=`[role="${c.role}"]`),c!=null&&c.type&&(u+=`[type="${c.type}"]`),u}}h.UiElement=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this._clientDelegate=c}createUIControlData(c){const u=h._POSignalsUtils.Util.getSrcElement(c);if(!u)return null;const f=h.PointerConfig.instance.pointerParams.uiModelingBlacklistRegex;if(f&&window.location.href.match(f))return h._POSignalsUtils.Logger.debug("ui control data is disabled for this url"),null;const s=new h.UiElement(u,this._clientDelegate);return this.findMatchingUiControl(s)||{uiElement:s.data}}findMatchingUiControl(c,u=0){try{const f=h.PointerConfig.instance.pointerParams.uiControlsConfig;if(f.length===0||u>h.PointerConfig.instance.pointerParams.uiModelingMaxMatchingParents)return null;let s=!1;for(const a of f)if(!(!a.tagConfig&&!a.enrichedData)&&(s=!0,c.equals(a.uiElement)))return{uiElement:c.data,enrichedData:a.enrichedData,tagConfig:a.tagConfig};if(!s)return null;const o=c.htmlElement.parentElement;if((o==null?void 0:o.nodeType)===Node.ELEMENT_NODE){const a=new h.UiElement(o,this._clientDelegate);return this.findMatchingUiControl(a,u+1)}}catch(f){h._POSignalsUtils.Logger.warn("failed to find matching ui control",f)}return null}convertToTagValueConfig(c){var u;return{context:(u=c==null?void 0:c.uiElement)===null||u===void 0?void 0:u.location,valueSelector:h.UiElement.createCssSelector(c==null?void 0:c.uiElement),operation:c==null?void 0:c.operation,valueMandatory:c==null?void 0:c.valueMandatory}}}h.UIControlManager=y})(ee||(ee={}));var ee;(function(h){class y{get isStarted(){return this._isStarted}get onInteraction(){return this._onInteraction.asEvent()}get onClickEvent(){return this._onClickEvent.asEvent()}constructor(c,u){this.BEHAVIORAL_TYPE="mouse",this._isStarted=!1,this._onInteraction=new h.EventDispatcher,this._onClickEvent=new h.EventDispatcher,this.lastMouseInteractionTimestamp=null,this.mouseEventsCounter=0,this.eventCounters={epochTs:Date.now()},this.delegate=c,this.uiControlManager=u,this.wheelOptions=h._POSignalsUtils.Util.isPassiveSupported()?{passive:!0}:!1,this.onPointerHandle=this.onPointerEvent.bind(this),this.onClickHandle=this.onClick.bind(this),this.onDblclickHandle=this.onMouseClickEvent.bind(this),this.onMousedownHandle=this.onMouseClickEvent.bind(this),this.onMousemoveHandle=this.onMouseEvent.bind(this),this.onMouseoutHandle=this.onMouseout.bind(this),this.onMouseoverHandle=this.onMouseEvent.bind(this),this.onMouseupHandle=this.onMouseClickEvent.bind(this),this.onWheelHandle=this.onMouseEvent.bind(this),this.interactionUpdateHandle=this.interactionUpdate.bind(this)}countEvent(c){this.eventCounters[c]=(this.eventCounters[c]||0)+1}interactionUpdate(){this.lastMouseInteraction?Date.now()-this.lastMouseInteractionTimestamp>=h.PointerConfig.instance.pointerParams.mouseIdleTimeoutMillis&&this.dispatch():!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)&&Date.now()-this.lastMouseInteractionTimestamp<=h.PointerConfig.instance.pointerParams.mouseIntervalMillis&&this.dispatch()}enrichLastInteraction(){var c;if(!this.lastMouseInteraction)return;this.lastMouseInteraction.eventCounters=this.eventCounters,this.lastMouseInteraction.duration=this.delegate.getInteractionDuration(this.lastMouseInteraction.events);const u=(c=this.lastMouseInteraction.events)===null||c===void 0?void 0:c.filter(f=>f.type==="mousemove");this.lastMouseInteraction.timeProximity=h._POSignalsUtils.Util.calculateMeanTimeDeltasBetweenEvents(u),this.lastMouseInteraction.meanEuclidean=h._POSignalsUtils.Util.calculateMeanDistanceBetweenPoints(u)}dispatch(){try{this.enrichLastInteraction(),this._onInteraction.dispatch(this,this.lastMouseInteraction),this.eventCounters={epochTs:Date.now()},this.lastMouseInteraction=null,this.mouseEventsCounter=0}catch(c){h._POSignalsUtils.Logger.warn("Failed to dispatch mouse events",c)}}updateInteraction(c,u){this.lastMouseInteraction||(this.lastMouseInteraction={epochTs:Date.now(),events:[],counter:this.delegate.mouseCounter,additionalData:this.delegate.additionalData,eventCounters:{epochTs:Date.now()},duration:0,timeProximity:0,uiControl:void 0,meanEuclidean:0,reduction:{},quality:""}),this.lastMouseInteraction.events.push(c),this.mouseEventsCounter++,u&&(this.lastMouseInteraction.uiControl={uiElement:u.uiElement,enrichedData:u.enrichedData},this.delegate.addUiControlTags(u.tagConfig)),this.mouseEventsCounter>=h.PointerConfig.instance.pointerParams.maxMouseEvents&&this.dispatch()}start(){this._isStarted?h._POSignalsUtils.Logger.debug("Desktop Mouse events already listening"):(this.delegate.addEventListener(document,"click",this.onClickHandle,!0),this.delegate.addEventListener(document,"dblclick",this.onDblclickHandle),this.delegate.addEventListener(document,"mousedown",this.onMousedownHandle),this.delegate.addEventListener(document,"mousemove",this.onMousemoveHandle),this.delegate.addEventListener(document,"mouseout",this.onMouseoutHandle),this.delegate.addEventListener(document,"mouseover",this.onMouseoverHandle),this.delegate.addEventListener(document,"mouseup",this.onMouseupHandle),this.delegate.addEventListener(document,"wheel",this.onWheelHandle,this.wheelOptions),this.delegate.addEventListener(document,"pointerover",this.onPointerHandle),this.delegate.addEventListener(document,"pointerenter",this.onPointerHandle),this.delegate.addEventListener(document,"pointerdown",this.onPointerHandle),this.delegate.addEventListener(document,"pointermove",this.onPointerHandle),this.delegate.addEventListener(document,"pointerup",this.onPointerHandle),this.delegate.addEventListener(document,"pointercancel",this.onPointerHandle),this.delegate.addEventListener(document,"pointerout",this.onPointerHandle),this.delegate.addEventListener(document,"pointerleave",this.onPointerHandle),this.updateIntervalHandle=setInterval(this.interactionUpdateHandle,h.PointerConfig.instance.pointerParams.mouseIntervalMillis),this._isStarted=!0,h._POSignalsUtils.Logger.debug("Desktop Mouse events start listening..."))}stop(){this._isStarted?(document.removeEventListener("click",this.onClickHandle,!0),document.removeEventListener("dblclick",this.onDblclickHandle),document.removeEventListener("mousedown",this.onMousedownHandle),document.removeEventListener("mousemove",this.onMousemoveHandle),document.removeEventListener("mouseout",this.onMouseoutHandle),document.removeEventListener("mouseover",this.onMouseoverHandle),document.removeEventListener("mouseup",this.onMouseupHandle),document.removeEventListener("wheel",this.onWheelHandle,this.wheelOptions),document.removeEventListener("pointerover",this.onPointerHandle),document.removeEventListener("pointerenter",this.onPointerHandle),document.removeEventListener("pointerdown",this.onPointerHandle),document.removeEventListener("pointermove",this.onPointerHandle),document.removeEventListener("pointerup",this.onPointerHandle),document.removeEventListener("pointercancel",this.onPointerHandle),document.removeEventListener("pointerout",this.onPointerHandle),document.removeEventListener("pointerleave",this.onPointerHandle),clearInterval(this.updateIntervalHandle),this.updateIntervalHandle=null,this._isStarted=!1,h._POSignalsUtils.Logger.debug("Desktop Mouse events stop listening...")):h._POSignalsUtils.Logger.debug("Desktop Mouse events already stopped")}onClick(c){var u,f;try{this.lastMouseInteractionTimestamp=Date.now();const s=h._POSignalsUtils.Util.getSrcElement(c);if(this._onClickEvent.dispatch(this,s),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(c.type),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(c.type)))return;const o=this.uiControlManager.createUIControlData(c);this.updateInteraction(this.createMouseClickEvent(c.type,c),o),this.dispatch(),((f=(u=o==null?void 0:o.uiElement)===null||u===void 0?void 0:u.id)===null||f===void 0?void 0:f.length)>0&&h._POSignalsUtils.Logger.info(`Tapped on element with id '${o.uiElement.id}'`)}catch(s){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,s)}}onMouseout(c){try{this.onMouseEvent(c);const u=c.relatedTarget||c.toElement;(!u||u.nodeName==="HTML")&&this.dispatch()}catch(u){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,u)}}onMouseEvent(c){try{if(c.type!=="wheel"&&(this.lastMouseInteractionTimestamp=Date.now()),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(c.type),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(c.type)))return;this.updateInteraction(this.createMouseEvent(c.type,c))}catch(u){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,u)}}onMouseClickEvent(c){try{if(this.lastMouseInteractionTimestamp=Date.now(),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(c.type),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(c.type)))return;this.updateInteraction(this.createMouseClickEvent(c.type,c))}catch(u){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,u)}}onPointerEvent(c){try{if(this.lastMouseInteractionTimestamp=Date.now(),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(c.type),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(c.type)))return;this.updateInteraction(this.createPointerEvent(c.type,c))}catch(u){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,u)}}clearBuffer(){let c=null;return this.lastMouseInteraction&&(c=this.lastMouseInteraction),this.lastMouseInteraction=null,c}isEmpty(){return!this.lastMouseInteraction}createMouseEvent(c,u){return{type:c,eventTs:u.timeStamp,epochTs:Date.now(),button:u.button,offsetX:u.offsetX,offsetY:u.offsetY,pageX:u.pageX,pageY:u.pageY,screenX:u.screenX,screenY:u.screenY,getX(){return u.screenX},getY(){return u.screenY}}}createPointerEvent(c,u){return{...this.createMouseEvent(c,u),pointerId:u.pointerId,width:u.width,height:u.height,pressure:u.pressure,tangentialPressure:u.tangentialPressure,tiltX:u.tiltX,tiltY:u.tiltY,twist:u.twist,pointerType:u.pointerType,isPrimary:u.isPrimary}}createMouseClickEvent(c,u){const f=this.createMouseEvent(c,u);if(u.target&&h._POSignalsUtils.Util.isFunction(u.target.getBoundingClientRect)){const s=u.target.getBoundingClientRect();f.targetBottom=s.bottom,f.targetHeight=s.height,f.targetLeft=s.left,f.targetRight=s.right,f.targetTop=s.top,f.targetWidth=s.width,f.targetX=s.x,f.targetY=s.y}return f}}h.Mouse=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.counter=0,this.key=c,this.counter=this.loadFromStorage()}loadFromStorage(){const c=y.sessionStorage.getItem(this.key);return Number(c)||0}get(){return this.counter}increment(c=1){this.counter+=c,y.sessionStorage.setItem(this.key,this.counter)}decrement(c=1){this.increment(c*-1)}reset(){this.counter=0,y.sessionStorage.removeItem(this.key)}}y.sessionStorage=h._POSignalsStorage.SessionStorage.instance.sessionStorage,h.StorageCounter=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.mapKey=c,this.cache=this.loadFromStorage()}loadFromStorage(){let c=y.sessionStorage.getItem(this.mapKey);return c||(c=JSON.stringify({})),JSON.parse(c)}asMap(){return this.cache}set(c,u,f=!0){this.cache[c]=u,f&&y.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))}sync(){y.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))}get(c){return this.cache[c]}delete(c){delete this.cache[c],y.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))}values(){return h._POSignalsUtils.Util.values(this.cache)}clear(){this.cache={},y.sessionStorage.removeItem(this.mapKey)}forEach(c){for(const u in this.cache)this.cache.hasOwnProperty(u)&&c(this.cache[u],u)}}y.sessionStorage=h._POSignalsStorage.SessionStorage.instance.sessionStorage,h.StorageMap=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this.config={},this._cacheHash=0,this.cache=new Map}refreshConfig(c){try{if(!c)return;const u=h._POSignalsUtils.Util.hashCode(JSON.stringify(c));if(this._cacheHash===u)return;this.config=c,this._cacheHash=u,this.cache=new Map}catch(u){h._POSignalsUtils.Logger.warn("Failed to set css selectors",u)}}getMatchingTags(c,u){const f=this.cache.get(c);if(f)return f;const s={};for(const o in this.config)try{if(!this.config.hasOwnProperty(o))continue;let a=this.config[o].selector||[];h._POSignalsUtils.Util.isArray(a)||(a=[].concat(a));for(const m of a)h._POSignalsUtils.Util.isSelectorMatches(c,m,u)&&(s[o]=this.config[o])}catch(a){h._POSignalsUtils.Logger.warn(`Failed to get the config for ${o} tag`,a)}return this.cache.set(c,s),s}getValue(c,u){if(u&&c)switch(u=u.trim(),c){case"email_domain":return h._POSignalsUtils.Util.getEmailDomain(u);case"obfuscate":return`${h._POSignalsUtils.Util.mod(u,1e3)}`;case"plain":return u;case"zip":return u.substr(0,3);case"length":return`${u.length}`}return""}get cacheHash(){return this._cacheHash}}h.TagsIdentifications=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this._reduceFactorMap=null}set reduceFactorMap(c){this._reduceFactorMap=c}get reduceFactorMap(){return this._reduceFactorMap}reduceEventsByFactor(c){try{if(!c||c.length===0||!this.reduceFactorMap)return c;const u=new Map,f=[];for(let o=0;o<c.length;o++)u.get(c[o].type)?u.get(c[o].type).push(o):u.set(c[o].type,[o]);u.forEach((o,a)=>{const m=this.reduceFactorMap[a]?Number(this.reduceFactorMap[a]):0;this.reduceByFactor(m,o,v=>{f[o[v]]=!0})});const s=[];for(let o=0;o<c.length;o++)f[o]&&s.push(c[o]);return c.length!==s.length&&h._POSignalsUtils.Logger.debug(`${c.length-s.length} events reduced out of ${c.length}`),s}catch(u){return h._POSignalsUtils.Logger.warn("Failed to reduce events",u),c}}reduceByFactor(c,u,f){c=Math.min(c,1);const s=Math.round(Math.max(u.length*(1-c),2)),o=(u.length-1)/(s-1),a=Math.min(u.length,s);for(let m=0;m<a;m++){const v=Math.round(m*o);f(v)}}}h.ReduceFactor=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.algorithm=c}reduce(c,u){if(y.TYPES_TO_REDUCE.indexOf(u)===-1)return{keptEvents:c,epsilon:0};if(c.length<=y.MIN_EVENTS_TO_REDUCE)return{keptEvents:c,epsilon:0};const f=c.length<50?.55:c.length<100?.35:.2,s=c.length<50?1:c.length<100?3:7,o=this.algorithm.reduceEvents(c,s),a=o.length/c.length;if(o.length>=10&&a>=f)return{keptEvents:o,epsilon:s};const m=c.length<50?.1:c.length<100?.3:.7,v=this.algorithm.reduceEvents(c,m),w=v.length/c.length;if(v.length<=y.MIN_EVENTS_TO_REDUCE||w<=f)return{keptEvents:v,epsilon:m};const A=(Math.min(s,Math.pow(s,a/f))*Math.abs(w-f)+m*Math.abs(a-f))/Math.abs(a-w);return(A<m||A>s)&&h._POSignalsUtils.Logger.warn(`linear weighted average - calculated epsilon is out of range, lowEpsilon: ${m}, highEpsilon: ${s}, epsilon: ${A}`),{keptEvents:this.algorithm.reduceEvents(c,A),epsilon:A}}}y.MIN_EVENTS_TO_REDUCE=18,y.TYPES_TO_REDUCE=["mousemove","touchmove"],h.RDPEpsilonStrategy=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.rdpStrategy=c}reduceWithRPD(c){if(!c||c.length===0)return{events:c,reductionInfo:{}};const u=new Map;let f=[];for(const o of c)u.get(o.type)?u.get(o.type).push(o):u.set(o.type,[o]);const s={};return u.forEach((o,a)=>{const{keptEvents:m,epsilon:v}=this.rdpStrategy.reduce(o,a);v>0&&(s[a]={epsilon:v,originalLength:o.length,keptLength:m.length}),f=f.concat(m)}),{events:h._POSignalsUtils.Util.sortEventsByTimestamp(f),reductionInfo:s}}}h.ReduceRDP=y})(ee||(ee={}));var ee;(function(h){class y{getSqDist(c,u){const f=c.getX()-u.getX(),s=c.getY()-u.getY();return f*f+s*s}getSqSegDist(c,u,f){let s=u.getX(),o=u.getY(),a=f.getX()-s,m=f.getY()-o;if(a!==0||m!==0){const v=((c.getX()-s)*a+(c.getY()-o)*m)/(a*a+m*m);v>1?(s=f.getX(),o=f.getY()):v>0&&(s+=a*v,o+=m*v)}return a=c.getX()-s,m=c.getY()-o,a*a+m*m}simplifyRadialDist(c,u){let f=c[0],s=[f],o;for(let a=1,m=c.length;a<m;a++)o=c[a],this.getSqDist(o,f)>u&&(s.push(o),f=o);return f!==o&&s.push(o),s}simplifyDPStep(c,u,f,s,o){let a=s,m;for(let v=u+1;v<f;v++){const w=this.getSqSegDist(c[v],c[u],c[f]);w>a&&(m=v,a=w)}a>s&&(m-u>1&&this.simplifyDPStep(c,u,m,s,o),o.push(c[m]),f-m>1&&this.simplifyDPStep(c,m,f,s,o))}simplifyDouglasPeucker(c,u){const f=c.length-1,s=[c[0]];return this.simplifyDPStep(c,0,f,u,s),s.push(c[f]),s}simplify(c,u,f){if(c.length<=2)return c;const s=u!==void 0?u*u:1;return c=f?c:this.simplifyRadialDist(c,s),c=this.simplifyDouglasPeucker(c,s),c}reduceEvents(c,u){return this.simplify(c,u)}}h.RDPReduction=y})(ee||(ee={}));var ee;(function(h){class y{filterMoveEvents(c,u){if(c.length<=18)return c;const f=c.filter(m=>m.type===u),s=h._POSignalsUtils.Util.keepFirstEventsWithDistance({events:f,threshold:200,min:18,max:30});let o=-1;const a={};for(let m=0;m<c.length;m++){const v=c[m];if(v.type!==u){if(v.type==="mousedown"){o=m;continue}a[v.type]||(s.push(v),a[v.type]=!0)}}return o>=0&&s.push(c[o]),h._POSignalsUtils.Util.sortEventsByTimestamp(s)}}h.EventsReduction=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this.reduceFactor=new h.ReduceFactor,this.reduceRDP=new h.ReduceRDP(new h.RDPEpsilonStrategy(new h.RDPReduction)),this.eventsReduction=new h.EventsReduction}set reduceFactorMap(c){this.reduceFactor.reduceFactorMap=c}reduceGesture(c){const u=this.reduceRDP.reduceWithRPD(c.events);c.events=this.eventsReduction.filterMoveEvents(u.events,"touchmove"),c.reduction=u.reductionInfo}reduceKeyboardInteraction(c){c.events=h._POSignalsUtils.Util.filterArrayByLength(c.events,50)}reduceMouseInteraction(c){const u=this.reduceRDP.reduceWithRPD(c.events);c.events=this.eventsReduction.filterMoveEvents(u.events,"mousemove"),c.reduction=u.reductionInfo}}h.ReductionManager=y})(ee||(ee={}));var ee;(function(h){class y extends h.ClientBase{constructor(c,u){super(c),this.tagsWithValueIdentifications=new h.TagsIdentifications,this.reductionManager=new h.ReductionManager,this.lastGestureTimestamp=0,this.currentBufferSize=0,this.MAX_EVENT_COUNTERS=20,this.bufferingStrategy=h.StrategyFactory.createBufferingStrategy(u,this),this.capturedKeyboardInteractions=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_KEYBOARD_INTERACTIONS),this.keyboardInteractionsCount=new h.StorageCounter(h._POSignalsUtils.Constants.KEYBOARD_INTERACTIONS_COUNT),this.mouseInteractionsCount=new h.StorageCounter(h._POSignalsUtils.Constants.MOUSE_INTERACTIONS_COUNT),this.gesturesCount=new h.StorageCounter(h._POSignalsUtils.Constants.GESTURES_COUNT),this.mouseEventCounters=new h.StorageArray(h._POSignalsUtils.Constants.MOUSE_EVENT_COUNTERS),this.keyboardEventCounters=new h.StorageArray(h._POSignalsUtils.Constants.KEYBOARD_EVENT_COUNTERS),this.touchEventCounters=new h.StorageArray(h._POSignalsUtils.Constants.TOUCH_EVENT_COUNTERS),this.indirectEventCounters=new h.StorageArray(h._POSignalsUtils.Constants.INDIRECT_EVENT_COUNTERS),this.capturedMouseInteractions=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_MOUSE_INTERACTIONS),this.capturedGestures=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_GESTURES),this.capturedIndirectEvents=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_INDIRECT),this.capturedMouseInteractionSummary=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_MOUSE_INTERACTIONS_SUMMARY),this.currentBufferSize=this.capturedGestures.length+this.capturedMouseInteractions.length+this.capturedKeyboardInteractions.length,this.uiControlManager=new h.UIControlManager(this),this.keyboard=new h.Keyboard(this,this.uiControlManager),this.keyboard.onInteraction.subscribe(this.handleKeyboardInteraction.bind(this)),this.keyboard.onEnterPress.subscribe(this.handleStTagOnEnter.bind(this)),this.keyboard.onObfuscatedValue.subscribe(this.handleTagValueOnBlur.bind(this)),this.mouse=new h.Mouse(this,this.uiControlManager),this.mouse.onInteraction.subscribe(this.handleMouseInteraction.bind(this)),this.mouse.onClickEvent.subscribe(this.handleStTagOnClick.bind(this)),this.sensors=new h.Sensors(this),this.gesture=new h.GestureEvents(this,this.sensors),this.gesture.onGesture.subscribe(this.handleGesture.bind(this)),this.indirect=new h.IndirectClient(this),this.indirect.onIndirect.subscribe(this.handleIndirect.bind(this)),this.onUrlChangeHandler=this.onUrlChange.bind(this)}get keyboardCounter(){return this.keyboardInteractionsCount.get()}get mouseCounter(){return this.mouseInteractionsCount.get()}get gesturesCounter(){return this.gesturesCount.get()}get additionalData(){const c=h._POSignalsUtils.Util.getDeviceOrientation();return{locationHref:location.href,devTools:h._POSignalsUtils.Util.getDevToolsState(),innerWidth:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,innerHeight:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,outerWidth:window.outerWidth,outerHeight:window.outerHeight,width:screen.width,height:screen.height,availWidth:screen.availWidth,availHeight:screen.availHeight,pixelRatio:window.devicePixelRatio,deviceOrientation:c.orientation,deviceAngle:c.angle}}getBehavioralData(){this.clearIndirectBuffer();const c=this.reduceEpochEventCounters();return{mouse:{count:this.mouseInteractionsCount.get(),interactions:this.capturedMouseInteractions.get()},keyboard:{count:this.keyboardInteractionsCount.get(),interactions:this.capturedKeyboardInteractions.get()},touch:{count:this.gesturesCount.get(),interactions:this.capturedGestures.get()},indirect:{events:this.capturedIndirectEvents.get()},mouseSummary:{events:this.capturedMouseInteractionSummary.get()},eventCounters:c}}getBufferSize(){return this.currentBufferSize}getInteractionDuration(c){return(c==null?void 0:c.length)>0?c[c.length-1].epochTs-c[0].epochTs:0}async dispose(){this.stopListening(),this.keyboard.onInteraction.unsubscribe(this.handleKeyboardInteraction.bind(this)),this.keyboard.onEnterPress.unsubscribe(this.handleStTagOnEnter.bind(this)),this.keyboard.onObfuscatedValue.unsubscribe(this.handleTagValueOnBlur.bind(this)),this.mouse.onInteraction.unsubscribe(this.handleMouseInteraction.bind(this)),this.mouse.onClickEvent.unsubscribe(this.handleStTagOnClick.bind(this)),this.gesture.onGesture.unsubscribe(this.handleGesture.bind(this)),this.indirect.unsubscribe(),this.indirect.onIndirect.unsubscribe(this.handleIndirect.bind(this))}collectBehavioralData(c){if(this.isBehavioralDataPaused)return!1;const u=h.PointerConfig.instance.pointerParams.behavioralBlacklist;return!c||!u||!u[c]?!0:!window.location.href.match(u[c])}getElementsStID(c){try{return h._POSignalsUtils.Util.getAttribute(c,"data-st-field")||this.keyboard.fieldsIdentifications.getIdentification(c,0)||""}catch(u){return h._POSignalsUtils.Logger.warn("failed to get element stId",u),""}}addEventListener(c,u,f,s){h.PointerConfig.instance.pointerParams.eventsBlackList.has(u)||(c.addEventListener(u,this.onEventHandler,s),c.addEventListener(u,f,s))}addUiControlTags(c){if((c==null?void 0:c.length)>0){let u=!1;for(const f of c)try{if(f!=null&&f.name){const s=this.uiControlManager.convertToTagValueConfig(f.value);u=this.addSingleTagWithValue(f.name,s)||u}}catch(s){h._POSignalsUtils.Logger.warn("failed to add tag config",s)}}}refreshListening(){const c=h.PointerConfig.instance;this.tagsWithValueIdentifications.refreshConfig(c.pointerParams.remoteTags),this.reductionManager.reduceFactorMap=c.pointerParams.eventsReduceFactorMap,this.keyboard.refreshKeyboardCssSelectors(c.pointerParams.keyboardCssSelectors),this.sensors.maxSensorSamples=c.pointerParams.maxSensorSamples,this.sensors.sensorsTimestampDeltaInMillis=c.pointerParams.sensorsDeltaInMillis,this.mouse.start(),this.keyboard.start(),this.gesture.start(),this.indirect.start(),c.pointerParams.maxSensorSamples==0?this.sensors.stop():this.sensors.start(),this.addEventListener(window,"_onlocationchange",this.onUrlChangeHandler),this.addEventListener(window,"popstate",this.onUrlChangeHandler)}addSingleTagWithValue(c,u){try{if(u!=null&&u.context&&!window.location.href.match(u.context))return!1;let f="";if(u!=null&&u.operation&&u!=null&&u.valueSelector){const s=document.querySelector(u.valueSelector);if(s){const o=h._POSignalsUtils.Util.getElementText(s);f=this.tagsWithValueIdentifications.getValue(u.operation,o)}}if(u!=null&&u.valueMandatory&&!f)return h._POSignalsUtils.Logger.warn(`tag '${c}' wasn't added. value is missing`),!1;this.addTag(c,f)}catch(f){h._POSignalsUtils.Logger.warn(`failed to add ${c} tag`,f)}return!1}addTagsWithValue(c){let u=!1;for(const f in c)c.hasOwnProperty(f)&&(u=this.addSingleTagWithValue(f,c[f])||u)}handleStTagOnEnter(c,u){u instanceof HTMLInputElement&&h._POSignalsUtils.Util.isTextInput(u)&&this.handleStTagElement(u)}handleTagValueOnBlur(c,u){u&&this.addTag(u.fieldKey,u.obfuscatedValue)}handleStTagOnClick(c,u){(!(u instanceof HTMLInputElement)||h._POSignalsUtils.Util.isClickableInput(u))&&this.handleStTagElement(u)}handleMouseInteraction(c,u){if(!u)return;this.incrementEventCounters(u.eventCounters,"mouse"),this.filterOldMouseEvents(),this.mouseInteractionsCount.increment(),this.reductionManager.reduceMouseInteraction(u);const f=this.bufferingStrategy.calculateStrategyResult(u,"mouse");u.quality=f.quality,this.handleMouseInteractionSummary(u),f.shouldCollect&&(f.remove&&this.removeInteraction(f.remove),this.capturedMouseInteractions.push(u),this.lastGestureTimestamp!==u.events[u.events.length-1].eventTs&&this.currentBufferSize++)}handleMouseInteractionSummary(c){const u={epochTs:c.epochTs,duration:this.getInteractionDuration(c.events),quality:c.quality};this.capturedMouseInteractionSummary.push(u),this.capturedMouseInteractionSummary.length>10&&this.capturedMouseInteractionSummary.remove(0)}handleIndirect(c,u){this.filterOldIndirectEvents(),this.addIndirectEvents(u)}handleKeyboardInteraction(c,u){if(!u)return;this.incrementEventCounters(u.eventCounters,"keyboard"),this.filterOldKeyboardEvents(),this.keyboardInteractionsCount.increment(),this.reductionManager.reduceKeyboardInteraction(u);const f=this.bufferingStrategy.calculateStrategyResult(u,"keyboard");f.shouldCollect&&(f.remove&&this.removeInteraction(f.remove),u.quality=f.quality,this.capturedKeyboardInteractions.push(u),this.currentBufferSize++)}handleGesture(c,u){var f;if(!this.isValidGesture(u))return;this.incrementEventCounters(u.eventCounters,"touch"),this.filterOldGesturesEvents(),this.gesturesCount.increment(),this.reductionManager.reduceGesture(u);const s=this.bufferingStrategy.calculateStrategyResult(u,"touch");s.shouldCollect&&(s.remove&&this.removeInteraction(s.remove),u.quality=s.quality,this.sensors.onGesture(u),this.capturedGestures.push(u),this.currentBufferSize++,this.lastGestureTimestamp=(f=u.events[u.events.length-1])===null||f===void 0?void 0:f.eventTs)}clearIndirectBuffer(){const c=this.indirect.clearBuffer();this.addIndirectEvents(c)}removeInteraction(c){switch(c.type){case"mouse":this.capturedMouseInteractions.remove(c.index);break;case"keyboard":this.capturedKeyboardInteractions.remove(c.index);break;case"touch":this.capturedGestures.remove(c.index);break}}addIndirectEvents(c){var u;if(((u=c==null?void 0:c.events)===null||u===void 0?void 0:u.length)>0){const f=[],s=h._POSignalsUtils.Util.typesCounter(this.capturedIndirectEvents.get());for(const o of c.events)h.PointerConfig.instance.pointerParams.highPriorityIndirectEvents.has(o.type)&&this.capturedIndirectEvents.length+f.length<h.PointerConfig.instance.pointerParams.maxIndirectEvents&&f.push(o),s[o.type]>0||(f.push(o),s[o.type]=1);this.incrementEventCounters(s,"indirect"),this.capturedIndirectEvents.set(this.capturedIndirectEvents.concat(f))}}onUrlChange(){this.addTag("location",window.location.href)}handleStTagElement(c){if(c){const u=h.PointerConfig.instance.pointerParams.maxSelectorChildren,f=this.tagsWithValueIdentifications.getMatchingTags(c,u);this.addTagsWithValue(f);const s=h._POSignalsUtils.Util.isSelectorMatches(c,"[data-st-tag]",u);if(s instanceof Element){const o=h._POSignalsUtils.Util.getAttribute(s,"data-st-tag"),a=h._POSignalsUtils.Util.getAttribute(s,"data-st-tag-value");o&&this.addTag(o,a)}}}stopListening(){this.keyboard.stop(),this.mouse.stop(),this.gesture.stop(),this.indirect.stop(),this.sensors.stop(),window.removeEventListener("_onlocationchange",this.onUrlChangeHandler),window.removeEventListener("popstate",this.onUrlChangeHandler)}clearBehavioralData(){this.capturedKeyboardInteractions.clear(),this.capturedMouseInteractions.clear(),this.capturedGestures.clear(),this.capturedIndirectEvents.clear(),this.sensors.reset(),h.Tags.instance.reset(),this.currentBufferSize=0,this.keyboardInteractionsCount.reset(),this.mouseInteractionsCount.reset(),this.gesturesCount.reset(),this.mouseEventCounters.clear(),this.mouseEventCounters.clear(),this.indirectEventCounters.clear(),this.keyboardEventCounters.clear(),this.touchEventCounters.clear(),this.eventCounters.clear()}isValidGesture(c){var u,f;return((u=c==null?void 0:c.events)===null||u===void 0?void 0:u.length)>0&&((f=c==null?void 0:c.events)===null||f===void 0?void 0:f.length)<h.PointerConfig.instance.pointerParams.maxSnapshotsCount}filterOldIndirectEvents(){const c=new Date().getTime();this.capturedIndirectEvents.set(this.capturedIndirectEvents.get().filter(u=>c-u.epochTs<=36e5))}filterOldMouseEvents(){const c=new Date().getTime();this.capturedMouseInteractions.set(this.capturedMouseInteractions.get().filter(u=>c-u.epochTs<=36e5))}filterOldKeyboardEvents(){const c=new Date().getTime();this.capturedKeyboardInteractions.set(this.capturedKeyboardInteractions.get().filter(u=>c-u.epochTs<=36e5))}filterOldGesturesEvents(){const c=new Date().getTime();this.capturedGestures.set(this.capturedGestures.get().filter(u=>c-u.epochTs<=36e5))}incrementEventCounters(c,u){const f=Date.now();let s;switch(u){case"mouse":s=this.mouseEventCounters;break;case"keyboard":s=this.keyboardEventCounters;break;case"touch":s=this.touchEventCounters;break;case"indirect":s=this.indirectEventCounters;break}s.set(s.get().filter(o=>f-o.epochTs<=36e5)),s.length<this.MAX_EVENT_COUNTERS||s.remove(0),s.push(c)}reduceEpochEventCounters(){const c={epochTs:Date.now()};return[...this.mouseEventCounters.get(),...this.keyboardEventCounters.get(),...this.touchEventCounters.get(),...this.indirectEventCounters.get()].forEach(u=>{Object.keys(u).forEach(f=>{f!=="epochTs"&&(c[f]?c[f]+=u[f]:c[f]=u[f])})}),delete c.epochTs,c}}h.Client=y})(ee||(ee={}));class S{static getData(){return ee.ClientBase.instance().getData()}static init(y){return ee._POSignalsUtils.Util.ieFix(),ee.ClientBase.instance().startSignals(y)}static initSilent(y){return this.init(y)}static pauseBehavioralData(){ee.ClientBase.instance().pauseBehavioralData()}static resumeBehavioralData(){ee.ClientBase.instance().resumeBehavioralData()}}(function(h){document.readyState!=="loading"?h():document.addEventListener("DOMContentLoaded",h)})(function(){if(!window._pingOneSignalsReady){const h=new CustomEvent("PingOneSignalsReadyEvent");document.dispatchEvent(h),window._pingOneSignalsReady=!0}});var ee;(function(h){let y;(function(c){c[c.RICH=3]="RICH",c[c.CLICK=2]="CLICK",c[c.MOVE=1]="MOVE",c[c.POOR=0]="POOR"})(y||(y={}));class b{constructor(u,f,s,o,a,m){this.clientVersion=u,this.instanceUUID=f,this.initParams=s,this.metadata=o,this.behavioralDataHandler=a,this.sessionData=m,this.Max_Mouse_Touch_Interactions=6}async getData(u){this.incrementGetData();const f=await this.getRiskData(u),s=f.tags.findIndex(o=>o.name==="Get Data");return s!==-1?f.tags[s]=this._getDataCounter:f.tags.push(this._getDataCounter),this.toString(f)}async getRiskData(u){const[f,s]=await Promise.all([this.metadata.getDeviceAttributes(),this.metadata.getLocalAgentJwt()]);let o=this.behavioralDataHandler.getBehavioralData();o=await this.modifyBehavioralData(o);const a={behavioral:o,tags:h.Tags.instance.tags,sdkConfig:this.initParams,epochTs:u,instanceUUID:this.instanceUUID,tabUUID:h._POSignalsStorage.SessionStorage.instance.tabUUID,sdkVersion:this.clientVersion,platform:"web",clientToken:window._pingOneSignalsToken};let m;return this.sessionData.universalTrustEnabled?m={jwtDeviceAttributes:await this.getJWTSignedPayload(u,f.deviceId),...a}:m={deviceAttributes:f,...a},this.sessionData.agentIdentificationEnabled&&(m={jwtAgentPayload:s,...m}),m}toString(u){let f;const s=this.metadata.getObfsInfo();try{f=h._POSignalsUtils.Util.string2buf(JSON.stringify(u))}catch(o){throw new Error(`Failed to create data, ${o.message}`)}try{f=h.pako.gzip(f)}catch(o){throw new Error(`Failed to compress data, ${o.message}`)}try{f=h._POSignalsUtils.Util.encryptionBytes(f,s.key)}catch(o){throw new Error(`failed to obfuscate data, ${o.message}`)}try{return`${h._POSignalsUtils.Util.base64Uint8Array(f)}.${btoa(s.identifier)}`}catch(o){throw new Error(`failed to encode data, ${o.message}`)}}async getJWTSignedPayload(u,f){const s=this.metadata.getSerializedDeviceAttributes();return this.sessionData.signJWTChallenge(s,u,f)}async modifyBehavioralData(u){return u.mouse.interactions=this.getBestMouseInteractions(u.mouse.interactions),u.touch.interactions=this.getBestTouchInteractions(u.touch.interactions,u.mouse.interactions),u.keyboard.interactions=this.getBestKeyboardInteractions(u.keyboard.interactions),u}getBestInteractions(u){const f=Date.now();h._POSignalsUtils.Logger.debug("total interactions:",u);const s=u.filter(v=>f-v.epochTs<=18e4),o=this.sortInteractions(s).slice(0,2),a=u.filter(v=>!o.some(w=>w.epochTs===v.epochTs)),m=this.sortInteractions(a).slice(0,5-o.length);return h._POSignalsUtils.Logger.debug("final interactions for getData:",[...o,...m]),[...o,...m].sort((v,w)=>v.epochTs-w.epochTs)}getBestMouseInteractions(u){return this.getBestInteractions(u)}getBestKeyboardInteractions(u){return this.getBestInteractions(u)}getBestTouchInteractions(u,f){const s=this.Max_Mouse_Touch_Interactions-f.length;return this.getTouchBestInteraction(u,s)}incrementGetData(){this._getDataCounter?(this._getDataCounter.value++,this._getDataCounter.timestamp=Date.now()):this._getDataCounter={value:1,name:"Get Data",timestamp:Date.now(),epochTs:Date.now()}}getTouchBestInteraction(u,f){return u=this.sortInteractions(u),u.slice(0,f)}sortInteractions(u){return u.sort((f,s)=>{const o=y[f.quality],a=y[s.quality];return o===a?s.epochTs-f.epochTs:a-o})}}h.DataHandler=b})(ee||(ee={}));var ee;(function(h){class y{constructor(){this._configuration={enabled:y.ENABLED_DEFAULT,bufferSize:y.BUFFER_SIZE_DEFAULT,maxSnapshotsCount:y.MAX_SNAPSHOTS_COUNT_DEFAULT,sensors:y.SENSORS_DEFAULT,metadataBlacklist:y.METADATA_BLACK_LIST_DEFAULT,tagsBlacklistRegex:y.TAGS_BLACK_LIST_REGEX_DEFAULT,behavioralBlacklist:y.BEHAVIORAL_BLACK_LIST_DEFAULT,webRtcUrl:y.WEB_RTC_URL_DEFAULT,eventsBlackList:y.EVENTS_BLACK_LIST_DEFAULT,eventsToIgnore:y.EVENTS_TO_IGNORE_DEFAULT,highPriorityIndirectEvents:y.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT,indirectIntervalMillis:y.INDIRECT_INTERVAL_MILLIS_DEFAULT,mouseIntervalMillis:y.MOUSE_INTERVAL_MILLIS_DEFAULT,mouseIdleTimeoutMillis:y.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT,maxMouseEvents:y.MAX_MOUSE_EVENTS_DEFAULT,maxIndirectEvents:y.MAX_INDIRECT_EVENTS_DEFAULT,keyboardFieldBlackList:y.KEYBOARD_FIELD_BLACK_LIST_DEFAULT,keyboardCssSelectors:y.KEYBOARD_CSS_SELECTORS_DEFAULT,keyboardCssSelectorsBlacklist:y.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT,keyboardIdentifierAttributes:y.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT,remoteTags:y.REMOTE_TAGS_DEFAULT,maxSelectorChildren:y.MAX_SELECTOR_CHILDREN_DEFAULT,eventsReduceFactorMap:y.EVENTS_REDUCE_FACTOR_MAP_DEFAULT,propertyDescriptors:y.PROPERTY_DESCRIPTORS_DEFAULT,additionalMediaCodecs:y.ADDITIONAL_MEDIA_CODECS_DEFAULT,fingerprintTimeoutMillis:y.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT,metadataDataPoints:y.METADATA_DATA_POINTS_DEFAULT,uiModeling:y.UI_MODELING_CONFIG_DEFAULT,uiControl:y.UI_CONTROL_LIST_DEFAULT}}updateParams(c){c&&(this._configuration=c)}get enabled(){return typeof this._configuration.enabled=="boolean"?this._configuration.enabled:y.ENABLED_DEFAULT}get bufferSize(){return typeof this._configuration.bufferSize=="number"&&this._configuration.bufferSize>0?this._configuration.bufferSize:y.BUFFER_SIZE_DEFAULT}get maxSnapshotsCount(){return typeof this._configuration.maxSnapshotsCount=="number"&&this._configuration.maxSnapshotsCount>=0?this._configuration.maxSnapshotsCount:y.MAX_SNAPSHOTS_COUNT_DEFAULT}get maxSensorSamples(){const c=this._configuration.sensors;return c&&typeof c.maxSensorSamples=="number"&&c.maxSensorSamples>=0?c.maxSensorSamples:y.SENSORS_DEFAULT.maxSensorSamples}get sensorsDeltaInMillis(){const c=this._configuration.sensors;return c&&typeof c.sensorsDeltaInMillis=="number"&&c.sensorsDeltaInMillis>=0?c.sensorsDeltaInMillis:y.SENSORS_DEFAULT.sensorsDeltaInMillis}get metadataBlackList(){var c;return h._POSignalsUtils.Util.isArray(this._configuration.metadataBlacklist)&&((c=this._configuration.metadataBlacklist)===null||c===void 0?void 0:c.length)>0?this._configuration.metadataBlacklist:y.METADATA_BLACK_LIST_DEFAULT}get behavioralBlacklist(){return this._configuration.behavioralBlacklist?this._configuration.behavioralBlacklist:y.BEHAVIORAL_BLACK_LIST_DEFAULT}get tagsBlacklistRegex(){return typeof this._configuration.tagsBlacklistRegex=="string"?this._configuration.tagsBlacklistRegex:y.TAGS_BLACK_LIST_REGEX_DEFAULT}get webRtcUrl(){return typeof this._configuration.webRtcUrl=="string"?this._configuration.webRtcUrl:y.WEB_RTC_URL_DEFAULT}get eventsBlackList(){return h._POSignalsUtils.Util.isArray(this._configuration.eventsBlackList)&&(this._configuration.eventsBlackList=new Set(this._configuration.eventsBlackList)),this._configuration.eventsBlackList instanceof Set?this._configuration.eventsBlackList:y.EVENTS_BLACK_LIST_DEFAULT}get eventsToIgnore(){return h._POSignalsUtils.Util.isArray(this._configuration.eventsToIgnore)&&(this._configuration.eventsToIgnore=new Set(this._configuration.eventsToIgnore)),this._configuration.eventsToIgnore instanceof Set?this._configuration.eventsToIgnore:y.EVENTS_TO_IGNORE_DEFAULT}get highPriorityIndirectEvents(){return h._POSignalsUtils.Util.isArray(this._configuration.highPriorityIndirectEvents)&&(this._configuration.highPriorityIndirectEvents=new Set(this._configuration.highPriorityIndirectEvents)),this._configuration.highPriorityIndirectEvents instanceof Set?this._configuration.highPriorityIndirectEvents:y.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT}get indirectIntervalMillis(){return typeof this._configuration.indirectIntervalMillis=="number"&&this._configuration.indirectIntervalMillis>0?this._configuration.indirectIntervalMillis:y.INDIRECT_INTERVAL_MILLIS_DEFAULT}get mouseIntervalMillis(){return typeof this._configuration.mouseIntervalMillis=="number"&&this._configuration.mouseIntervalMillis>0?this._configuration.mouseIntervalMillis:y.MOUSE_INTERVAL_MILLIS_DEFAULT}get mouseIdleTimeoutMillis(){return typeof this._configuration.mouseIdleTimeoutMillis=="number"&&this._configuration.mouseIdleTimeoutMillis>0?this._configuration.mouseIdleTimeoutMillis:y.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT}get maxMouseEvents(){return typeof this._configuration.maxMouseEvents=="number"&&this._configuration.maxMouseEvents>=0?this._configuration.maxMouseEvents:y.MAX_MOUSE_EVENTS_DEFAULT}get maxIndirectEvents(){return typeof this._configuration.maxIndirectEvents=="number"&&this._configuration.maxIndirectEvents>=0?this._configuration.maxIndirectEvents:y.MAX_INDIRECT_EVENTS_DEFAULT}get keyboardFieldBlackList(){return h._POSignalsUtils.Util.isArray(this._configuration.keyboardFieldBlackList)&&(this._configuration.keyboardFieldBlackList=new Set(this._configuration.keyboardFieldBlackList)),this._configuration.keyboardFieldBlackList instanceof Set?this._configuration.keyboardFieldBlackList:y.KEYBOARD_FIELD_BLACK_LIST_DEFAULT}get keyboardCssSelectors(){return this._configuration.keyboardCssSelectors?this._configuration.keyboardCssSelectors:y.KEYBOARD_CSS_SELECTORS_DEFAULT}get keyboardCssSelectorsBlacklist(){return h._POSignalsUtils.Util.isArray(this._configuration.keyboardCssSelectorsBlacklist)?this._configuration.keyboardCssSelectorsBlacklist:y.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT}get keyboardIdentifierAttributes(){return h._POSignalsUtils.Util.isArray(this._configuration.keyboardIdentifierAttributes)?this._configuration.keyboardIdentifierAttributes:y.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT}get remoteTags(){return this._configuration.remoteTags?this._configuration.remoteTags:y.REMOTE_TAGS_DEFAULT}get maxSelectorChildren(){return typeof this._configuration.maxSelectorChildren=="number"&&this._configuration.maxSelectorChildren>0?this._configuration.maxSelectorChildren:y.MAX_SELECTOR_CHILDREN_DEFAULT}get eventsReduceFactorMap(){return this._configuration.eventsReduceFactorMap?this._configuration.eventsReduceFactorMap:y.EVENTS_REDUCE_FACTOR_MAP_DEFAULT}get propertyDescriptors(){return this._configuration.propertyDescriptors?this._configuration.propertyDescriptors:y.PROPERTY_DESCRIPTORS_DEFAULT}get additionalMediaCodecs(){return this._configuration.additionalMediaCodecs?this._configuration.additionalMediaCodecs:y.ADDITIONAL_MEDIA_CODECS_DEFAULT}get fingerprintTimeoutMillis(){return typeof this._configuration.fingerprintTimeoutMillis=="number"&&this._configuration.fingerprintTimeoutMillis>0?this._configuration.fingerprintTimeoutMillis:y.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT}get metadataDataPoints(){return this._configuration.metadataDataPoints?this._configuration.metadataDataPoints:y.METADATA_DATA_POINTS_DEFAULT}get uiModelingBlacklistRegex(){var c;return typeof((c=this._configuration.uiModeling)===null||c===void 0?void 0:c.blacklistRegex)=="string"?this._configuration.uiModeling.blacklistRegex:y.UI_MODELING_CONFIG_DEFAULT.blacklistRegex}get uiModelingElementFilters(){var c;return!((c=this._configuration.uiModeling)===null||c===void 0)&&c.uiElementFilters?this._configuration.uiModeling.uiElementFilters:y.UI_MODELING_CONFIG_DEFAULT.uiElementFilters}get uiModelingMaxMatchingParents(){var c;return typeof((c=this._configuration.uiModeling)===null||c===void 0?void 0:c.maxMatchingParents)=="number"?this._configuration.uiModeling.maxMatchingParents:y.UI_MODELING_CONFIG_DEFAULT.maxMatchingParents}get uiControlsConfig(){return h._POSignalsUtils.Util.isArray(this._configuration.uiControl)?this._configuration.uiControl:y.UI_CONTROL_LIST_DEFAULT}}y.ENABLED_DEFAULT=!0,y.BUFFER_SIZE_DEFAULT=10,y.MAX_SNAPSHOTS_COUNT_DEFAULT=500,y.METADATA_BLACK_LIST_DEFAULT=[],y.TAGS_BLACK_LIST_REGEX_DEFAULT="",y.BEHAVIORAL_BLACK_LIST_DEFAULT={},y.WEB_RTC_URL_DEFAULT="",y.EVENTS_BLACK_LIST_DEFAULT=new Set,y.EVENTS_TO_IGNORE_DEFAULT=new Set(["pointerover","pointerenter","pointerdown","pointermove","pointerup","pointercancel","pointerout","pointerleave","dragstart","dragexit","drop","dragend"]),y.MAX_INDIRECT_EVENTS_DEFAULT=15,y.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT=new Set(["copy","cut","paste","resize","orientationchange","languagechange","submit","select"]),y.INDIRECT_INTERVAL_MILLIS_DEFAULT=1e3,y.MOUSE_INTERVAL_MILLIS_DEFAULT=1e3,y.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT=1e3,y.MAX_MOUSE_EVENTS_DEFAULT=500,y.KEYBOARD_FIELD_BLACK_LIST_DEFAULT=new Set,y.KEYBOARD_CSS_SELECTORS_DEFAULT={},y.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT=[],y.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT=["data-selenium","data-selenium-id","data-testid","data-test-id","data-qa-id","data-id","id"],y.REMOTE_TAGS_DEFAULT={dv_form_submit:{selector:'[data-skbuttontype="form-submit"]'},login_attempt_email_domain:{selector:'[data-st-tag="login.login_attempt"]',operation:"email_domain",valueSelector:'[data-st-field="username"]',valueMandatory:!0},login_attempt_hash:{selector:'[data-st-tag="login.login_attempt"]',operation:"obfuscate",valueSelector:'[data-st-field="username"]',valueMandatory:!0},login_attempt_length:{selector:'[data-st-tag="login.login_attempt"]',operation:"length",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_email_domain:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"email_domain",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_hash:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"obfuscate",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_length:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"length",valueSelector:'[data-st-field="username"]',valueMandatory:!0}},y.MAX_SELECTOR_CHILDREN_DEFAULT=2,y.EVENTS_REDUCE_FACTOR_MAP_DEFAULT={},y.PROPERTY_DESCRIPTORS_DEFAULT={chrome:["app","csi","loadtimes","runtime"],navigator:["webdriver"],Navigator:["languages","hardwareConcurrency"],window:["outerWidth","outerHeight"],Screen:["width","height"]},y.ADDITIONAL_MEDIA_CODECS_DEFAULT={},y.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT=3e3,y.METADATA_DATA_POINTS_DEFAULT={},y.UI_CONTROL_LIST_DEFAULT=[],y.UI_MODELING_CONFIG_DEFAULT={blacklistRegex:"",uiElementFilters:{text:{maxLength:25},placeholder:{maxLength:25}},maxMatchingParents:2},y.SENSORS_DEFAULT={maxSensorSamples:1,sensorsDeltaInMillis:0},h.PointerParams=y})(ee||(ee={})),window._POSignalsEntities=ee,window._pingOneSignals=S;/**
76
+ }`]:!0});return!O(o)[A]||!O(m(861))[E]}static[c(936)](a){return c(622)in a}static[c(1042)](a){const o=c;return a.hasOwnProperty("arguments")||a[o(1417)](o(799))||a.hasOwnProperty(o(622))||a[o(1417)]("toString")}static getNewObjectToStringTypeErrorLie(a){const o=c;try{return Object[o(744)](a)[o(861)](),!0}catch(s){const m=s[o(596)][o(376)](`
77
+ `),v=m.slice(1),w=/at Object\.apply/,A=/at Function\.toString/,E=!v[o(459)](L=>w[o(431)](L)),O=s[o(1516)][o(1246)]==o(1378)&&m.length>1,T=o(771)in window||b[o(846)].detectChromium();return O&&T&&(!A[o(431)](m[1])||!E)?!0:!O}}}b[c(1004)]=u})(h[g(813)]||(h._POSignalsMetadata={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{constructor(a){const o=p;this[o(803)]=a,this[o(995)]=new Map}[c(1165)](){const a=c;return this.addStealthTest(a(1258),()=>{const o=a;try{const{srcdoc:s}=document[o(983)](o(697));return!!s}catch{return!0}}),this[a(337)](a(808),()=>{const o=a,s=document[o(983)](o(697));return s.srcdoc=""+h[o(631)][o(1139)][o(827)](crypto.getRandomValues(new Uint32Array(10))),!!s[o(772)]}),this[a(337)]("index_chrome_too_high",()=>{const o=a,s=o(1316)in window?o(1316):o(467)in window?o(467):o(340),m=[];for(const A in window)m[o(939)](A);const v=m.indexOf("chrome"),w=m[o(1265)](s);return v>w}),this[a(337)](a(539),()=>{const o=a;if(!("chrome"in window&&o(1128)in window[o(771)]))return!1;try{return o(622)in window[o(771)][o(1128)].sendMessage||o(622)in window[o(771)][o(1128)][o(361)]||(new window[o(771)].runtime.sendMessage,new window[o(771)][o(1128)][o(361)]),!0}catch(s){return s[o(1516)][o(1246)]!=o(1378)}}),this[a(337)](a(889),()=>{const o=a,s=new u[o(848)];return s[o(372)](Function[o(622)][o(861)])||s[o(372)](()=>{})}),this[a(995)]}[c(337)](a,o){const s=c;if(!this[s(803)][s(438)](a))try{this[s(995)][a]=o()}catch(m){h[s(631)][s(867)][s(829)](s(572)+a+s(781),m)}}}u[c(848)]=class{[c(372)](f){const a=c;try{return this[a(1443)]=()=>Object[a(744)](f)[a(861)](),this[a(462)]=()=>this[a(1443)](),this[a(1251)]=()=>this[a(462)](),this[a(1251)](),!0}catch(o){const s=o[a(596)].split(`
78
+ `),m=!/at Object\.apply/[a(431)](s[1]),v=o[a(1516)].name=="TypeError"&&s.length>=5,w="chrome"in window||b[a(846)][a(1335)]();return v&&w&&(!m||!/at Function\.toString/[a(431)](s[1])||!/\.you/[a(431)](s[2])||!/\.cant/[a(431)](s[3])||!/\.hide/[a(431)](s[4]))?!0:!v}}},b[c(704)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{static[c(1304)](){const a=c;return h[a(813)].detectIncognitoInternal()[a(804)](o=>o[a(1237)])[a(689)](()=>!1)}}b[c(1003)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){(function(y){y[y.Unknown=0]="Unknown",y[y.FlingRight=1]="FlingRight",y[y.FlingLeft=2]="FlingLeft",y[y.FlingUp=3]="FlingUp",y[y.FlingDown=4]="FlingDown",y[y.Diagonal=5]="Diagonal",y[y.ScrollRight=6]="ScrollRight",y[y.ScrollLeft=7]="ScrollLeft",y[y.ScrollUp=8]="ScrollUp",y[y.ScrollDown=9]="ScrollDown",y[y.Tap=10]="Tap",y[y.DoubleTap=11]="DoubleTap"})(h.GestureType||(h.GestureType={}))})(ee||(ee={}));var ee;(function(h){class y{constructor(a,o){this.handler=a,this.isOnce=o,this.isExecuted=!1}execute(a,o,s){if(!this.isOnce||!this.isExecuted){this.isExecuted=!0;const m=this.handler;a?setTimeout(()=>{m.apply(o,s)},1):m.apply(o,s)}}}class b{constructor(){this._wrap=new u(this),this._subscriptions=new Array}subscribe(a){a&&this._subscriptions.push(new y(a,!1))}sub(a){this.subscribe(a)}one(a){a&&this._subscriptions.push(new y(a,!0))}has(a){if(a){for(const o of this._subscriptions)if(o.handler==a)return!0}return!1}unsubscribe(a){if(a){for(let o=0;o<this._subscriptions.length;o++)if(this._subscriptions[o].handler==a){this._subscriptions.splice(o,1);break}}}unsub(a){this.unsubscribe(a)}_dispatch(a,o,s){for(let m=0;m<this._subscriptions.length;m++){const v=this._subscriptions[m];if(v.isOnce){if(v.isExecuted===!0)continue;this._subscriptions.splice(m,1),m--}v.execute(a,o,s)}}asEvent(){return this._wrap}}h.DispatcherBase=b;class c extends b{dispatch(a,o){this._dispatch(!1,this,arguments)}dispatchAsync(a,o){this._dispatch(!0,this,arguments)}}h.EventDispatcher=c;class u{constructor(a){this._subscribe=o=>a.subscribe(o),this._unsubscribe=o=>a.unsubscribe(o),this._one=o=>a.one(o),this._has=o=>a.has(o)}subscribe(a){this._subscribe(a)}sub(a){this.subscribe(a)}unsubscribe(a){this._unsubscribe(a)}unsub(a){this.unsubscribe(a)}one(a){this._one(a)}has(a){return this._has(a)}}})(ee||(ee={}));var ee;(function(h){class y{get LAST_GESTURE_SENSOR_TIMEOUT_MILI_SECONDS(){return 3e3}get accX(){return this._accX}get accY(){return this._accY}get accZ(){return this._accZ}get lienarAccX(){return this._lienarAccX}get lienarAccY(){return this._lienarAccY}get lienarAccZ(){return this._lienarAccZ}get isStarted(){return this._isStarted}get rotX(){return this._rotX}get rotY(){return this._rotY}get rotZ(){return this._rotZ}get maxSensorSamples(){return this._maxSensorSamples}set maxSensorSamples(c){this._maxSensorSamples=c}get sensorsTimestampDeltaInMillis(){return this._sensorsTimestampDeltaInMillis}set sensorsTimestampDeltaInMillis(c){this._sensorsTimestampDeltaInMillis=c}get accelerometerList(){return this.getRelevantSensorSamples(this._accelerometerList)}get gyroscopeList(){return this.getRelevantSensorSamples(this._gyroscopeList)}get linearAccelerometerList(){return this.getRelevantSensorSamples(this._linearAccelerometerList)}get rotationList(){return this._rotationList}constructor(c){this._isStarted=!1,this._isEventsStarted=!1,this._gestureTimestamps=[],this._maxSensorSamples=0,this._sensorsTimestampDeltaInMillis=0,this._accelerometerList=[],this._gyroscopeList=[],this._linearAccelerometerList=[],this._rotationList=[],this.orientationImplementationFix=1,this.delegate=c,window.navigator.userAgent.match(/^.*(iPhone|iPad).*(OS\s[0-9]).*(CriOS|Version)\/[.0-9]*\sMobile.*$/i)&&(this.orientationImplementationFix=-1),this.accelerometerUpdateHandle=this.accelerometerUpdate.bind(this),this.orientationUpdateHandle=this.orientationUpdate.bind(this)}start(){this._isStarted||(this._isStarted=!0,h._POSignalsUtils.Logger.debug("Sensor events started..."))}getRotationListCopy(){return this._rotationList?Array.from(this._rotationList):[]}stop(){this._isStarted&&(window.DeviceMotionEvent!=null&&window.removeEventListener("devicemotion",this.accelerometerUpdateHandle,!0),window.DeviceOrientationEvent&&window.removeEventListener("deviceorientation",this.orientationUpdateHandle,!0),this._isStarted=!1,h._POSignalsUtils.Logger.debug("Sensor events stopped"))}getRelevantSensorSamples(c){if(c.length==0||this._sensorsTimestampDeltaInMillis<1||this._gestureTimestamps.length==0)return c;const u=new Map;let f=null,a=0;for(let o=0;o<c.length;o++)for(let s=0;s<this._gestureTimestamps.length;s++)a=c[o].timestamp,f=this._gestureTimestamps[s],a>=f.start-this._sensorsTimestampDeltaInMillis&&a<=f.end+this._sensorsTimestampDeltaInMillis&&u.set(c[o].timestamp,c[o]);return h._POSignalsUtils.Util.getValuesOfMap(u)}stopEvents(){this._isEventsStarted&&(window.DeviceMotionEvent!=null&&window.removeEventListener("devicemotion",this.accelerometerUpdateHandle,!0),window.DeviceOrientationEvent&&window.removeEventListener("deviceorientation",this.orientationUpdateHandle,!0),this._isEventsStarted=!1,h._POSignalsUtils.Logger.debug("Sensor events stopped listening"))}async startEvents(){if(!this._isEventsStarted){if(typeof DeviceMotionEvent<"u"&&typeof DeviceMotionEvent.requestPermission=="function"&&h._POSignalsUtils.Logger.debug("iOS detected. Attaching passive sensor listeners (data will flow if host app grants permission)."),navigator.permissions)try{if((await navigator.permissions.query({name:"accelerometer"})).state!=="granted"){h._POSignalsUtils.Logger.debug("Sensor permission not granted. Skipping.");return}}catch{}window.DeviceMotionEvent!=null?this.delegate.addEventListener(window,"devicemotion",this.accelerometerUpdateHandle,!0):h._POSignalsUtils.Logger.warn("DeviceMotion not supported!"),window.DeviceOrientationEvent?this.delegate.addEventListener(window,"deviceorientation",this.orientationUpdateHandle,!0):h._POSignalsUtils.Logger.warn("DeviceOrientation not supported!"),h._POSignalsUtils.Logger.debug("Sensor events start listening..."),this._isEventsStarted=!0}}reset(){this._accelerometerList=[],this._gyroscopeList=[],this._linearAccelerometerList=[],this._rotationList=[],this._gestureTimestamps.length>0?this._gestureTimestamps=[this._gestureTimestamps[this._gestureTimestamps.length-1]]:this._gestureTimestamps=[],this._accX=0,this._accY=0,this._accZ=0,this._rotX=0,this._rotY=0,this._rotZ=0}onGesture(c){this._isEventsStarted||this.startEvents(),c.events.length>1&&this._gestureTimestamps.push({start:c.events[0].eventTs,end:c.events[c.events.length-1].eventTs})}puaseSensorsCollectionIfNoActivity(c){if((this._gestureTimestamps.length>0?this._gestureTimestamps[this._gestureTimestamps.length-1].end:0)>0){if(Math.abs(c-this._gestureTimestamps[this._gestureTimestamps.length-1].end)>this.LAST_GESTURE_SENSOR_TIMEOUT_MILI_SECONDS)return this.stopEvents(),!0}else return this.stopEvents(),!0;return!1}getDeviceAcceleration(c){return!c||c.x==null||c.y==null||c.z==null?null:c}accelerometerUpdate(c){try{if(!this.delegate.collectBehavioralData()||this.puaseSensorsCollectionIfNoActivity(h._POSignalsUtils.Util.now()))return;const u=this.getDeviceAcceleration(c.accelerationIncludingGravity);u&&(this._accX=u.x*this.orientationImplementationFix,this._accY=u.y*this.orientationImplementationFix,this._accZ=u.z,this.safeAddSensorSample({x:this._accX,y:this._accY,z:this._accX,timestamp:h._POSignalsUtils.Util.now()},this._accelerometerList));const f=this.getDeviceAcceleration(c.acceleration);f&&(this._lienarAccX=f.x*this.orientationImplementationFix,this._lienarAccY=f.y*this.orientationImplementationFix,this._lienarAccZ=f.z,this.safeAddSensorSample({x:this._lienarAccX,y:this._lienarAccY,z:this._lienarAccZ,timestamp:h._POSignalsUtils.Util.now()},this._linearAccelerometerList)),c.rotationRate&&c.rotationRate.alpha!=null&&c.rotationRate.beta!=null&&c.rotationRate.gamma!=null&&(this._rotX=c.rotationRate.alpha,this._rotY=c.rotationRate.beta,this._rotZ=c.rotationRate.gamma,this.safeAddSensorSample({x:this._rotX,y:this._rotY,z:this._rotZ,timestamp:h._POSignalsUtils.Util.now()},this._gyroscopeList))}catch(u){h._POSignalsUtils.Logger.warn("error in accelerometer handler",u)}}orientationUpdate(c){try{if(!this.delegate.collectBehavioralData()||this.puaseSensorsCollectionIfNoActivity(h._POSignalsUtils.Util.now()))return;c.alpha!=null&&c.beta!=null&&c.gamma!=null&&this.safeAddSensorSample({x:c.alpha,y:c.beta,z:c.gamma,timestamp:h._POSignalsUtils.Util.now()},this._rotationList)}catch(u){h._POSignalsUtils.Logger.warn("error in orientation handler",u)}}safeAddSensorSample(c,u){this.maxSensorSamples>u.length&&u.push(c)}}h.Sensors=y})(ee||(ee={}));var ee;(function(h){class y{static get instance(){return y._instance||(y._instance=new y),y._instance}constructor(){this._pointerParams=new h.PointerParams}get pointerParams(){return this._pointerParams}}h.PointerConfig=y})(ee||(ee={}));var ee;(function(h){let y;(function(c){c[c.Up=1]="Up",c[c.Down=2]="Down",c[c.Left=3]="Left",c[c.Right=4]="Right"})(y||(y={}));class b{get onGesture(){return this._onGesture.asEvent()}get isStarted(){return this._isStarted}get SCROLL_MIN_DURATION(){return 500}get SWIPE_MAX_ANGLE(){return 45}get TAP_MOVEMENT_TRESHOLD(){return 10}constructor(u,f){this.BEHAVIORAL_TYPE="gestures",this._isStarted=!1,this._onGesture=new h.EventDispatcher,this.touchSnapshotsMap=new Map,this.snapshotStartTime=new Map,this.delegate=u,this.sensors=f,this.touchStartHandler=this.touchStart.bind(this),this.touchMoveHandler=this.touchMove.bind(this),this.touchEndHandler=this.touchEnd.bind(this),this.touchCancelHandler=this.touchCancel.bind(this)}countEvents(u){const f={epochTs:Date.now()};for(const a of u)f[a.type]=(f[a.type]||0)+1;return f}clearTouchSnapshots(u){this.touchSnapshotsMap.delete(u),this.snapshotStartTime.delete(u)}getTouchSnapshots(u){let f;return this.touchSnapshotsMap.has(u)?f=this.touchSnapshotsMap.get(u):(f=[],this.touchSnapshotsMap.set(u,f)),f}isEmpty(){return this.touchSnapshotsMap.size===0}start(){this._isStarted||(this.delegate.addEventListener(document,"touchstart",this.touchStartHandler),this.delegate.addEventListener(document,"touchmove",this.touchMoveHandler),this.delegate.addEventListener(document,"touchend",this.touchEndHandler),this.delegate.addEventListener(document,"touchcancel",this.touchCancelHandler),this._isStarted=!0)}stop(){this._isStarted&&(document.removeEventListener("touchstart",this.touchStartHandler),document.removeEventListener("touchmove",this.touchMoveHandler),document.removeEventListener("touchend",this.touchEndHandler),document.removeEventListener("touchcancel",this.touchCancelHandler),this._isStarted=!1)}touchStart(u){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||h.PointerConfig.instance.pointerParams.eventsToIgnore.has(u.type))return;h._POSignalsUtils.Logger.debug("touchstart("+u.changedTouches.length+")",u),u.changedTouches.length>0&&this.pushSnapshot(u)}catch(f){h._POSignalsUtils.Logger.warn("error in touchStart handler",f)}}touchMove(u){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||h.PointerConfig.instance.pointerParams.eventsToIgnore.has(u.type))return;h._POSignalsUtils.Logger.debug("touchmove("+u.changedTouches.length+")",u),u.changedTouches.length>0&&this.pushSnapshot(u)}catch(f){h._POSignalsUtils.Logger.warn("error in touchMove handler",f)}}touchEnd(u){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onGesture.dispatch(this,null);return}if(h.PointerConfig.instance.pointerParams.eventsToIgnore.has(u.type))return;h._POSignalsUtils.Logger.debug("touchend("+u.changedTouches.length+")",u),this.gestureEnd(u)}catch(f){h._POSignalsUtils.Logger.warn("error in touchEnd handler",f)}}touchCancel(u){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onGesture.dispatch(this,null);return}if(h.PointerConfig.instance.pointerParams.eventsToIgnore.has(u.type))return;h._POSignalsUtils.Logger.debug("touchcancel("+u.changedTouches.length+")",u),this.gestureEnd(u)}catch(f){h._POSignalsUtils.Logger.warn("error in touchCancel handler",f)}}gestureEnd(u){u.changedTouches.length>0&&this.pushSnapshot(u);for(let f=0;f<u.changedTouches.length;f++){const a=u.changedTouches.item(f),o=this.getTouchSnapshots(a.identifier);o.length>0&&(this.isTap(o)?this.dispatchGesture(h.GestureType.Tap,a.identifier):this.dispatchGesture(this.calcGestureType(o),a.identifier))}}calcGestureType(u){let f;const a=this.getDirection(u);if(this.isFling(u))switch(a){case y.Up:{f=h.GestureType.FlingUp;break}case y.Right:{f=h.GestureType.FlingRight;break}case y.Down:{f=h.GestureType.FlingDown;break}case y.Left:{f=h.GestureType.FlingLeft;break}}else if(this.isScroll(u))switch(a){case y.Up:{f=h.GestureType.ScrollUp;break}case y.Right:{f=h.GestureType.ScrollRight;break}case y.Down:{f=h.GestureType.ScrollDown;break}case y.Left:{f=h.GestureType.ScrollLeft;break}}return f}pushSnapshot(u){if(u.changedTouches&&u.changedTouches.length>0)for(let f=0;f<u.changedTouches.length;f++){const a=u.changedTouches.item(f),o=a.radiusX&&a.radiusY?(a.radiusX+a.radiusY)/2:null;this.snapshotStartTime.has(a.identifier)||this.snapshotStartTime.set(a.identifier,Date.now());const s=this.getTouchSnapshots(a.identifier);s.length<h.PointerConfig.instance.pointerParams.maxSnapshotsCount&&s.push({type:u.type,eventTs:u.timeStamp,epochTs:Date.now(),relativeX:a.screenX,relativeY:a.screenY,x:a.clientX,y:a.clientY,pressure:a.force,size:o,xaccelerometer:this.sensors.accX,yaccelerometer:this.sensors.accY,zaccelerometer:this.sensors.accZ,xlinearaccelerometer:this.sensors.lienarAccX,ylinearaccelerometer:this.sensors.lienarAccY,zlinearaccelerometer:this.sensors.lienarAccZ,xrotation:this.sensors.rotX,yrotation:this.sensors.rotY,zrotation:this.sensors.rotZ,radiusX:a.radiusX,radiusY:a.radiusY,rotationAngle:a.rotationAngle,pageX:a.pageX,pageY:a.pageY,getX(){return a.screenX},getY(){return a.screenY}})}}dispatchGesture(u,f){const a=this.touchSnapshotsMap.get(f)||[],o=a.filter(s=>s.type==="touchmove");this._onGesture.dispatch(this,{epochTs:this.snapshotStartTime.get(f)||0,counter:this.delegate.gesturesCounter,type:u,events:a,eventCounters:this.countEvents(a),duration:this.delegate.getInteractionDuration(a),additionalData:this.delegate.additionalData,uiControl:void 0,timeProximity:h._POSignalsUtils.Util.calculateMeanTimeDeltasBetweenEvents(o),meanEuclidean:h._POSignalsUtils.Util.calculateMeanDistanceBetweenPoints(o),reduction:{},quality:""}),this.clearTouchSnapshots(f)}isTap(u){const f=Math.abs(u[0].x-u[1].x),a=Math.abs(u[0].y-u[1].y);return u.length==2&&f<this.TAP_MOVEMENT_TRESHOLD&&a<this.TAP_MOVEMENT_TRESHOLD}isFling(u){return u.length>1&&u[u.length-1].eventTs-u[0].eventTs<this.SCROLL_MIN_DURATION}isScroll(u){return u.length>1&&u[u.length-1].eventTs-u[0].eventTs>this.SCROLL_MIN_DURATION}getDirection(u){const f=this.calcAngle(u[0],u[u.length-1]);return f>90-this.SWIPE_MAX_ANGLE&&f<=90+this.SWIPE_MAX_ANGLE?y.Up:f>180-this.SWIPE_MAX_ANGLE&&f<=180+this.SWIPE_MAX_ANGLE?y.Right:f>270-this.SWIPE_MAX_ANGLE&&f<=270+this.SWIPE_MAX_ANGLE?y.Down:y.Left}calcAngle(u,f){return Math.atan2(f.y-u.y,f.x-u.x)*180/Math.PI+180}}h.GestureEvents=b})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.key=c,this.cache=this.loadFromStorage()}loadFromStorage(){let c=y.sessionStorage.getItem(this.key);return c||(c=JSON.stringify([])),JSON.parse(c)}get(){return this.cache}get length(){return this.cache.length}push(c){const u=this.cache.push(c);return y.sessionStorage.setItem(this.key,JSON.stringify(this.cache)),u}set(c){this.cache=c,y.sessionStorage.setItem(this.key,JSON.stringify(this.cache))}remove(c){this.cache.splice(c,1),y.sessionStorage.setItem(this.key,JSON.stringify(this.cache))}concat(c){return this.cache.concat(c)}clear(){this.cache=[],y.sessionStorage.removeItem(this.key)}}y.sessionStorage=h._POSignalsStorage.SessionStorage.instance.sessionStorage,h.StorageArray=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this.MAX_TAGS=10,this._tags=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_TAGS)}static get instance(){return y._instance||(y._instance=new y),y._instance}get tags(){return this._tags.get()}set disableTags(c){this._disableTags=c}setTag(c,u){var f;if(this._disableTags)return;if(!h.PointerConfig.instance.pointerParams.enabled){h._POSignalsUtils.Logger.info("Can't add tag, PingOneSignals SDK is disabled");return}if(!c){h._POSignalsUtils.Logger.info("Can't add tag, missing name");return}const a=h.PointerConfig.instance.pointerParams.tagsBlacklistRegex;if(a&&(c.match(a)||typeof u=="string"&&u!=null&&u.match(a))){h._POSignalsUtils.Logger.info("Tag name or value is blacklisted");return}if(this._tags.length>=this.MAX_TAGS)return;typeof u!="number"?this._tags.push({name:c.trim(),value:((f=u==null?void 0:u.trim)===null||f===void 0?void 0:f.call(u))||void 0,epochTs:Date.now(),timestamp:Date.now()}):this._tags.push({name:c.trim(),value:u,epochTs:Date.now(),timestamp:Date.now()});const o=u?`${c}:${u}`:c;h._POSignalsUtils.Logger.info(`Add tag: ${o}`)}reset(){this._tags.clear()}}h.Tags=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.client=c}calculateStrategyResult(c,u){return{shouldCollect:this.client.getBufferSize()<h.PointerConfig.instance.pointerParams.bufferSize}}}h.FirstInteractionsStrategy=y})(ee||(ee={}));var ee;(function(h){let y;(function(c){c[c.RICH=3]="RICH",c[c.CLICK=2]="CLICK",c[c.MOVE=1]="MOVE",c[c.POOR=0]="POOR"})(y||(y={}));class b{constructor(u){this.client=u,this.MAX_INTERACTIONS_PER_TYPE=7,this.RICH_MOUSE_MOVES_AMOUNT=8,this.MIN_KEYBOARD_EVENTS=6,this.MIN_TOUCH_EVENTS=20}isRichMouseInteraction(u){return u.mousemove>=this.RICH_MOUSE_MOVES_AMOUNT&&this.isClickInteraction(u)}isClickInteraction(u){return u.mousedown>0&&u.mouseup>0}isMoveInteraction(u){return u.mousemove>=this.RICH_MOUSE_MOVES_AMOUNT}classifyMouseInteraction(u){const f=h._POSignalsUtils.Util.typesCounter(u.events);return this.isRichMouseInteraction(f)?y.RICH:this.isClickInteraction(f)?y.CLICK:this.isMoveInteraction(f)?y.MOVE:y.POOR}classifyKeyboardInteraction(u){return u.events.length>=this.MIN_KEYBOARD_EVENTS?y.RICH:y.POOR}classifyTouchInteraction(u){return u.events.length>=this.MIN_TOUCH_EVENTS?y.RICH:y.POOR}handleMouseInteraction(u,f){const a=Date.now(),o=this.classifyMouseInteraction(u),s=this.getEnumKeyByValue(o);if(f.mouse.interactions.length<this.MAX_INTERACTIONS_PER_TYPE)return{shouldCollect:!0,quality:s};if(o===y.RICH){const w=this.findOldestInteractionWithLowestQuality(f.mouse.interactions);if(w!==-1)return{shouldCollect:!0,remove:{type:"mouse",index:w},quality:s}}const[m,v]=this.splitInteractionsByTime(f.mouse.interactions,a,18e4);return m.length<2?this.handleOlderInteractions(v,s):this.handleRecentInteractions(m,v,o,s)}splitInteractionsByTime(u,f,a){return u.reduce((o,s)=>(s.epochTs>=f-a?o[0].push(s):o[1].push(s),o),[[],[]])}handleOlderInteractions(u,f){const a=this.findOldestInteractionWithLowestQuality(u);return a!==-1?{shouldCollect:!0,remove:{type:"mouse",index:a},quality:f}:{shouldCollect:!1,quality:f}}handleRecentInteractions(u,f,a,o){const s=this.findOldestInteractionWithLowestQuality(u,a);if(s!==-1){const m=u[s],v=this.client.getBehavioralData().mouse.interactions.indexOf(m),w=this.findOldestInteractionWithLowestQuality(f,y[this.client.getBehavioralData().mouse.interactions[v].quality]);return w!==-1?{shouldCollect:!0,remove:{type:"mouse",index:w},quality:o}:{shouldCollect:!0,remove:{type:"mouse",index:v},quality:o}}return{shouldCollect:!1,quality:o}}handleKeyboardInteraction(u,f){const a=Date.now(),o=this.classifyKeyboardInteraction(u),s=this.getEnumKeyByValue(o);if(f.keyboard.interactions.length<this.MAX_INTERACTIONS_PER_TYPE)return{shouldCollect:!0,quality:s};if(o===y.RICH){const w=this.findOldestInteractionWithLowestQuality(f.keyboard.interactions);if(w!==-1)return{shouldCollect:!0,remove:{type:"keyboard",index:w},quality:s}}const[m,v]=this.splitInteractionsByTime(f.keyboard.interactions,a,18e4);return m.length<2?this.handleOlderInteractions(v,s):this.handleRecentInteractions(m,v,o,s)}handleTouchInteraction(u,f){const a=Date.now(),o=this.classifyTouchInteraction(u),s=this.getEnumKeyByValue(o);if(f.touch.interactions.length<this.MAX_INTERACTIONS_PER_TYPE)return{shouldCollect:!0,quality:s};if(o===y.RICH){const w=this.findOldestInteractionWithLowestQuality(f.touch.interactions);if(w!==-1)return{shouldCollect:!0,remove:{type:"touch",index:w},quality:s}}const[m,v]=this.splitInteractionsByTime(f.touch.interactions,a,18e4);return m.length<2?this.handleOlderInteractions(v,s):this.handleRecentInteractions(m,v,o,s)}calculateStrategyResult(u,f){const a=this.client.getBehavioralData();switch(f){case"mouse":return this.handleMouseInteraction(u,a);case"keyboard":return this.handleKeyboardInteraction(u,a);case"touch":return this.handleTouchInteraction(u,a);default:throw new Error(`Unknown interaction type: ${f}`)}}getEnumKeyByValue(u){return Object.keys(y).find(f=>y[f]===u)}findOldestInteractionWithLowestQuality(u,f){let a=f??y.RICH,o=-1,s=Number.MAX_SAFE_INTEGER;for(let m=0;m<u.length;m++){const v=y[u[m].quality];(v<a||v===a&&u[m].epochTs<s)&&(a=v,s=u[m].epochTs,o=m)}return o}}h.PriorityStrategy=b})(ee||(ee={}));var ee;(function(h){let y;(function(c){c[c.FIRST_INTERACTIONS=0]="FIRST_INTERACTIONS",c[c.PRIORITY_INTERACTIONS=1]="PRIORITY_INTERACTIONS"})(y=h.BufferingStrategyType||(h.BufferingStrategyType={}));class b{static createBufferingStrategy(u,f){switch(u){case y.FIRST_INTERACTIONS:return new h.FirstInteractionsStrategy(f);case y.PRIORITY_INTERACTIONS:return new h.PriorityStrategy(f)}}}h.StrategyFactory=b})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.sessionData=c,this.instanceUUID=h._POSignalsUtils.Util.newGuid(),this._isBehavioralDataPaused=!1,this.started=!1,this.initQueue=new h.PromiseQueue(1)}static instance(){if(!this._instance){const c=h._POSignalsStorage.SessionStorage.instance;if(!document.body)throw h._POSignalsUtils.Logger.error("PingOne Signals can be started only after DOM Ready!"),new Error("PingOne Signals can be started only after DOM Ready!");this._instance=new h.Client(c,h.BufferingStrategyType.PRIORITY_INTERACTIONS)}return this._instance}async getData(){if(!this.startedPromise)throw new Error("SDK not initialized");return await this.startedPromise,await this.dataHandler.getData(Date.now())}addTag(c,u){h.Tags.instance.setTag(c,u)}async start(c={}){var u,f,a,o;if((!((u=c.waitForWindowLoad)!==null&&u!==void 0)||u)&&await this.loadEventPromise(),this.initParams=c,this.validateStartParams(c),this.clientVersion=h._POSignalsUtils.Constants.CLIENT_VERSION,this.started){h._POSignalsUtils.Logger.warn("SDK already initialized");return}this.browserInfo=new h._POSignalsUtils.BrowserInfo,h._POSignalsUtils.Logger.isLogEnabled=!!c.consoleLogEnabled||!!c.devEnv,h._POSignalsUtils.Logger.info("Starting Signals SDK..."),h.Tags.instance.disableTags=!!this.initParams.disableTags,this.sessionData.setStorageConfig(c);const s=h.PointerConfig.instance.pointerParams,m={additionalMediaCodecs:s.additionalMediaCodecs,browserInfo:this.browserInfo,fingerprintTimeoutMillis:s.fingerprintTimeoutMillis,metadataBlackList:new Set(s.metadataBlackList.concat(c.deviceAttributesToIgnore)),propertyDescriptors:s.propertyDescriptors,webRtcUrl:s.webRtcUrl,dataPoints:s.metadataDataPoints};this.localAgentAccessor=new h._POSignalsMetadata.LocalAgentAccessor((f=c.agentPort)!==null&&f!==void 0?f:h._POSignalsUtils.Constants.PINGID_AGENT_DEFAULT_PORT,(a=c.agentTimeout)!==null&&a!==void 0?a:h._POSignalsUtils.Constants.PINGID_AGENT_DEFAULT_TIMEOUT),this.metadata=new h._POSignalsMetadata.Metadata(this.sessionData,m,c.externalIdentifiers,this.localAgentAccessor),this.dataHandler=new h.DataHandler(this.clientVersion,this.instanceUUID,this.initParams,this.metadata,this,this.sessionData),(!((o=this.initParams.behavioralDataCollection)!==null&&o!==void 0)||o)&&this.refreshListening(),c.lazyMetadata||(this.metadata.getDeviceAttributes(),this.metadata.getLocalAgentJwt()),this.started=!0;try{this.logInit(),this.addStartupTags()}catch(v){h._POSignalsUtils.Logger.warn("SDK post init failed",v)}}logInit(){var c,u;h._POSignalsUtils.Logger.info(`PingOne Signals initialized. ${JSON.stringify({timestamp:new Date().getTime(),sdkVersion:this.clientVersion,instanceUUID:this.instanceUUID,tabUUID:this.sessionData.tabUUID},null,2)}`);const f=()=>h._POSignalsUtils.Logger.info(`Token Ready: ${window._pingOneSignalsToken}`),a=()=>{h._POSignalsUtils.Logger.info("Signals token fetch is disabled"),window._pingOneSignalsToken=void 0},o="uninitialized",s="skipped";((c=window._pingOneSignalsToken)===null||c===void 0?void 0:c.substring(0,s.length))===s?a():((u=window._pingOneSignalsToken)===null||u===void 0?void 0:u.substring(0,o.length))!==o&&f(),document.addEventListener("PingOneSignalsTokenReadyEvent",f),document.addEventListener("PingOneSignalsTokenSkippedEvent",a)}get isBehavioralDataPaused(){return this._isBehavioralDataPaused}getSignalsToken(){let c="";if(typeof window._pingOneSignalsToken=="string"&&0<=window._pingOneSignalsToken.indexOf(":")){const u=window._pingOneSignalsToken.match(/t:(.*?)(&|$)/g);u&&0<u.length&&(c=u[0].replace(/&s*$/,"").replace(/t:/,""))}else typeof window._pingOneSignalsToken=="string"&&(c=window._pingOneSignalsToken);return c}pauseBehavioralData(){this._isBehavioralDataPaused||(this._isBehavioralDataPaused=!0,this.addTag("SDK paused behaviorally"))}resumeBehavioralData(){this._isBehavioralDataPaused&&(this._isBehavioralDataPaused=!1,this.addTag("SDK resumed behaviorally"))}async startSignals(c){try{return this.startedPromise=this.initQueue.add(()=>this.start(c)),await this.startedPromise}catch(u){const f={id:h._POSignalsUtils.POErrorCodes.INITIALIZATION_ERROR,message:u.message,code:"SDK initialization failed."};throw new Error(JSON.stringify(f))}}validateStartParams(c){if(!document.body)throw h._POSignalsUtils.Logger.error("PingOne Signals can be started only after DOM Ready!"),new Error("PingOne Signals can be started only after DOM Ready!");c.externalIdentifiers=c.externalIdentifiers||{}}async loadEventPromise(){return new Promise(c=>{document.readyState==="complete"?c():window.addEventListener("load",u=>{c()})})}addStartupTags(){this.addTag("SDK started"),document.referrer&&this.addTag("referrer",document.referrer),this.addTag("location",window.location.href)}}h.ClientBase=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onClipboardEvent=new h.EventDispatcher,this.delegate=c,this.onClipboardEventHandler=this.onEvent.bind(this)}get isStarted(){return this._isStarted}get onClipboardEvent(){return this._onClipboardEvent.asEvent()}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onClipboardEvent.dispatch(this,this.createClipboardEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in clipboard handler",u)}}createClipboardEvent(c){const u=h._POSignalsUtils.Util.getSrcElement(c);return{category:"ClipboardEvent",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href,stId:this.delegate.getElementsStID(u),elementId:u==null?void 0:u.id}}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"cut",this.onClipboardEventHandler),this.delegate.addEventListener(document,"copy",this.onClipboardEventHandler),this.delegate.addEventListener(document,"paste",this.onClipboardEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("cut",this.onClipboardEventHandler),document.removeEventListener("copy",this.onClipboardEventHandler),document.removeEventListener("paste",this.onClipboardEventHandler))}}h.ClipboardEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onDragEvent=new h.EventDispatcher,this.delegate=c,this.onDragEventHandler=this.onEvent.bind(this)}get isStarted(){return this._isStarted}get onDragEvent(){return this._onDragEvent.asEvent()}createDragEvent(c){return{category:"DragEvent",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href}}}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onDragEvent.dispatch(this,this.createDragEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in drag handler",u)}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"dragstart",this.onDragEventHandler),this.delegate.addEventListener(document,"dragexit",this.onDragEventHandler),this.delegate.addEventListener(document,"drop",this.onDragEventHandler),this.delegate.addEventListener(document,"dragend",this.onDragEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("dragstart",this.onDragEventHandler),document.removeEventListener("dragexit",this.onDragEventHandler),document.removeEventListener("drop",this.onDragEventHandler),document.removeEventListener("dragend",this.onDragEventHandler))}}h.DragEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onFocusEvent=new h.EventDispatcher,this.delegate=c,this.onFocusEventHandler=this.onEvent.bind(this)}get isStarted(){return this._isStarted}get onFocusEvent(){return this._onFocusEvent.asEvent()}getRelatedTarget(c){if(!c.relatedTarget)return{type:"",stId:"",elementId:""};const u={type:h._POSignalsUtils.Util.getObjectType(c.relatedTarget),stId:"",elementId:""};c.relatedTarget.id&&(u.elementId=c.relatedTarget.id);try{const f=c.relatedTarget;u.stId=this.delegate.getElementsStID(f)}catch{}return u}createFocusEvent(c){const u=h._POSignalsUtils.Util.getSrcElement(c),f=this.getRelatedTarget(c);return{category:"FocusEvent",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href,stId:this.delegate.getElementsStID(u),elementId:u?u.id:"",relatedTarget:f}}}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onFocusEvent.dispatch(this,this.createFocusEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in focus handler",u)}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"DOMFocusIn",this.onFocusEventHandler),this.delegate.addEventListener(document,"DOMFocusOut",this.onFocusEventHandler),this.delegate.addEventListener(document,"focus",this.onFocusEventHandler),this.delegate.addEventListener(document,"focusin",this.onFocusEventHandler),this.delegate.addEventListener(document,"focusout",this.onFocusEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("DOMFocusIn",this.onFocusEventHandler),document.removeEventListener("DOMFocusOut",this.onFocusEventHandler),document.removeEventListener("focus",this.onFocusEventHandler),document.removeEventListener("focusin",this.onFocusEventHandler),document.removeEventListener("focusout",this.onFocusEventHandler))}}h.FocusEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onUIEvent=new h.EventDispatcher,this.delegate=c,this.onUIEventHandler=this.onEvent.bind(this)}get isStarted(){return this._isStarted}get onUIEvent(){return this._onUIEvent.asEvent()}createUIEvent(c){return{category:"UIEvent",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href}}}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onUIEvent.dispatch(this,this.createUIEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in UIEvent handler",u)}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"resize",this.onUIEventHandler),this.delegate.addEventListener(document,"scroll",this.onUIEventHandler),this.delegate.addEventListener(document,"select",this.onUIEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("resize",this.onUIEventHandler),document.removeEventListener("scroll",this.onUIEventHandler),document.removeEventListener("select",this.onUIEventHandler))}}h.UIEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this.visibilityChangeEventName="visibilitychange",this.hiddenProperty="hidden",this._isStarted=!1,this._onGeneralEvent=new h.EventDispatcher,this.delegate=c,this.onGeneralEventHandler=this.onEvent.bind(this),this.onLangChangeHandler=this.onLangChangeEvent.bind(this),this.onOrientationChangeHandler=this.onOrientationChangeEvent.bind(this),this.onVisibilityChangeHandler=this.onVisibilityChangeEvent.bind(this),typeof document.msHidden<"u"?(this.hiddenProperty="msHidden",this.visibilityChangeEventName="msvisibilitychange"):typeof document.webkitHidden<"u"&&(this.hiddenProperty="webkitHidden",this.visibilityChangeEventName="webkitvisibilitychange")}get isStarted(){return this._isStarted}get onGeneralEvent(){return this._onGeneralEvent.asEvent()}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onGeneralEvent.dispatch(this,this.createGeneralEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in general event handler",u)}}onLangChangeEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;const u=this.createGeneralEvent(c);this._onGeneralEvent.dispatch(this,u)}catch(u){h._POSignalsUtils.Logger.warn("error in LangChange event handler",u)}}onOrientationChangeEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;const u=this.createGeneralEvent(c),f=h._POSignalsUtils.Util.getDeviceOrientation();u.additionalData.deviceOrientation=f.orientation,u.additionalData.deviceAngle=f.angle,this._onGeneralEvent.dispatch(this,u)}catch(u){h._POSignalsUtils.Logger.warn("error in OrientationChange event handler",u)}}onVisibilityChangeEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;const u=this.createGeneralEvent(c);u.additionalData.hidden=!!document[this.hiddenProperty],document.visibilityState&&(u.additionalData.visibilityState=document.visibilityState.toString()),this._onGeneralEvent.dispatch(this,u)}catch(u){h._POSignalsUtils.Logger.warn("error in VisibilityChange event handler",u)}}createGeneralEvent(c){return{category:"Event",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href}}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,this.visibilityChangeEventName,this.onVisibilityChangeHandler),this.delegate.addEventListener(document,"change",this.onGeneralEventHandler),this.delegate.addEventListener(document,"fullscreenchange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"invalid",this.onGeneralEventHandler),this.delegate.addEventListener(window,"languagechange",this.onLangChangeHandler),this.delegate.addEventListener(window,"orientationchange",this.onOrientationChangeHandler),this.delegate.addEventListener(document,"seeked",this.onGeneralEventHandler),this.delegate.addEventListener(document,"seeking",this.onGeneralEventHandler),this.delegate.addEventListener(document,"selectstart",this.onGeneralEventHandler),this.delegate.addEventListener(document,"selectionchange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"submit",this.onGeneralEventHandler),this.delegate.addEventListener(document,"volumechange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"reset",this.onGeneralEventHandler),this.delegate.addEventListener(document,"textInput",this.onGeneralEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener(this.visibilityChangeEventName,this.onVisibilityChangeHandler),document.removeEventListener("change",this.onGeneralEventHandler),document.removeEventListener("fullscreenchange",this.onGeneralEventHandler),document.removeEventListener("invalid",this.onGeneralEventHandler),window.removeEventListener("languagechange",this.onLangChangeHandler),window.removeEventListener("orientationchange",this.onOrientationChangeHandler),document.removeEventListener("seeked",this.onGeneralEventHandler),document.removeEventListener("seeking",this.onGeneralEventHandler),document.removeEventListener("selectstart",this.onGeneralEventHandler),document.removeEventListener("selectionchange",this.onGeneralEventHandler),document.removeEventListener("submit",this.onGeneralEventHandler),document.removeEventListener("volumechange",this.onGeneralEventHandler),document.removeEventListener("reset",this.onGeneralEventHandler),document.removeEventListener("textInput",this.onGeneralEventHandler))}}h.GeneralEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.DEFAULT_INDIRECT_IDLE_INTERVAL=1e3,this.MAX_INDIRECT_EVENTS=25,this._onIndirect=new h.EventDispatcher,this.indirectEvents=[],this.idleTimeInMillis=this.DEFAULT_INDIRECT_IDLE_INTERVAL,this.lastIndirectEventTimestamp=0,this._isStarted=!1,this.clipboardEvents=new h.ClipboardEvents(c),this.clipboardEvents.onClipboardEvent.subscribe(this.handleEvent.bind(this)),this.dragEvents=new h.DragEvents(c),this.dragEvents.onDragEvent.subscribe(this.handleEvent.bind(this)),this.focusEvents=new h.FocusEvents(c),this.focusEvents.onFocusEvent.subscribe(this.handleEvent.bind(this)),this.uiEvents=new h.UIEvents(c),this.uiEvents.onUIEvent.subscribe(this.handleEvent.bind(this)),this.generalEvents=new h.GeneralEvents(c),this.generalEvents.onGeneralEvent.subscribe(this.handleEvent.bind(this)),this.onTimeElapsedHandler=this.onTimeElapsed.bind(this)}get onIndirect(){return this._onIndirect.asEvent()}async onTimeElapsed(){this.indirectEvents.length>0&&new Date().getTime()-this.lastIndirectEventTimestamp>=this.idleTimeInMillis&&this.dispatch()}handleEvent(c,u){this.lastIndirectEventTimestamp=new Date().getTime(),this.pushEvent(u)}pushEvent(c){this.indirectEvents.push(c),this.indirectEvents.length>=this.MAX_INDIRECT_EVENTS&&this.dispatch()}clearBuffer(){const c={events:this.indirectEvents};return this.indirectEvents=[],c}dispatch(){try{clearInterval(this.updateIntervalHandle),this._onIndirect.dispatch(this,this.clearBuffer()),this.updateIntervalHandle=setInterval(this.onTimeElapsedHandler,h.PointerConfig.instance.pointerParams.indirectIntervalMillis)}catch(c){h._POSignalsUtils.Logger.warn("Failed to dispatch indirect events",c)}}get isStarted(){return this._isStarted}start(){this._isStarted||(this.updateIntervalHandle=setInterval(this.onTimeElapsedHandler,h.PointerConfig.instance.pointerParams.indirectIntervalMillis),this.clipboardEvents.start(),this.dragEvents.start(),this.focusEvents.start(),this.uiEvents.start(),this.generalEvents.start(),this._isStarted=!0)}stop(){this._isStarted&&(this.clipboardEvents.stop(),this.dragEvents.stop(),this.focusEvents.stop(),this.uiEvents.stop(),this.generalEvents.stop(),clearInterval(this.updateIntervalHandle),this.updateIntervalHandle=null,this._isStarted=!1)}unsubscribe(){this.clipboardEvents.onClipboardEvent.unsubscribe(this.handleEvent.bind(this)),this.dragEvents.onDragEvent.unsubscribe(this.handleEvent.bind(this)),this.focusEvents.onFocusEvent.unsubscribe(this.handleEvent.bind(this)),this.uiEvents.onUIEvent.unsubscribe(this.handleEvent.bind(this)),this.generalEvents.onGeneralEvent.unsubscribe(this.handleEvent.bind(this))}}h.IndirectClient=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this.config={},this._cacheHash=0,this.cache=new Map}refreshCssSelectors(c){try{if(!c)return;const u=h._POSignalsUtils.Util.hashCode(JSON.stringify(c));if(this._cacheHash===u)return;this.config=c,this._cacheHash=u,this.cache=new Map}catch(u){h._POSignalsUtils.Logger.warn("Failed to set css selectors",u)}}getIdentification(c,u){if(this.cache.get(c)===null)return null;if(this.cache.get(c)!==void 0)return this.cache.get(c);for(const f in this.config)try{if(!this.config.hasOwnProperty(f))continue;let a=this.config[f]||[];h._POSignalsUtils.Util.isArray(a)||(a=[].concat(a));for(const o of a)if(h._POSignalsUtils.Util.isSelectorMatches(c,o,u))return this.cache.set(c,f),f}catch(a){h._POSignalsUtils.Logger.warn(`Failed to find selector for ${f}`,a)}return this.cache.set(c,null),null}get cacheHash(){return this._cacheHash}}h.ElementsIdentifications=y})(ee||(ee={}));var ee;(function(h){const y="keydown",b="keyup",c="blur",u="focus";class f{get isStarted(){return this._isStarted}get onInteraction(){return this._onInteraction.asEvent()}get onEnterPress(){return this._onEnterPress.asEvent()}get onObfuscatedValue(){return this._onObfuscatedValue.asEvent()}refreshKeyboardCssSelectors(o){this._fieldsIdentifications.refreshCssSelectors(o)}get modifiersKeys(){return["Alt","AltGraph","CapsLock","Control","Fn","FnLock","Hyper","Meta","NumLock","OS","ScrollLock","Shift","Super","Symbol","SymbolLock"]}get specialKeys(){return["Tab","Shift","Backspace","Enter","CapsLock","Meta","Delete","Alt","ArrowDown","ArrowUp","Control","ArrowLeft","End","Unidentified","Home","ArrowRight","Insert","Pause","PageDown","PageUp","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","AltGraph","Escape"]}constructor(o,s){this.BEHAVIORAL_TYPE="eventKeyboard",this._isStarted=!1,this._onInteraction=new h.EventDispatcher,this._onEnterPress=new h.EventDispatcher,this._onObfuscatedValue=new h.EventDispatcher,this.interactionsMap=new Map,this._fieldsIdentifications=new h.ElementsIdentifications,this.keyStrokeMap=new Map,this.delegate=o,this.uiControlManager=s,this.onKeyDownHandle=this.onKeyDown.bind(this),this.onKeyUpHandle=this.onKeyUp.bind(this),this.onFocusHandle=this.onFocus.bind(this),this.onBlurHandle=this.onBlur.bind(this)}countEvent(o,s){s&&(s.eventCounters[o]=(s.eventCounters[o]||0)+1)}clearBuffer(){const o=h._POSignalsUtils.Util.getValuesOfMap(this.interactionsMap);return this.interactionsMap.clear(),o}start(){this._isStarted?h._POSignalsUtils.Logger.debug("Desktop Keyboard events already listening"):(this.delegate.addEventListener(document,y,this.onKeyDownHandle),this.delegate.addEventListener(document,b,this.onKeyUpHandle),this.delegate.addEventListener(document,u,this.onFocusHandle,!0),this.delegate.addEventListener(document,c,this.onBlurHandle,!0),this._isStarted=!0,h._POSignalsUtils.Logger.debug("Desktop Keyboard events start listening..."))}stop(){this._isStarted?(document.removeEventListener(y,this.onKeyDownHandle),document.removeEventListener(b,this.onKeyUpHandle),document.removeEventListener(u,this.onFocusHandle,!0),document.removeEventListener(c,this.onBlurHandle,!0),this._isStarted=!1,h._POSignalsUtils.Logger.debug("Desktop Keyboard events stop listening...")):h._POSignalsUtils.Logger.debug("Desktop Keyboard events already stopped")}getInteractionFromElement(o){var s;let m=null,v=null;const w=h._POSignalsUtils.Util.getSrcElement(o);if(w&&w instanceof HTMLInputElement&&!h._POSignalsUtils.Util.isClickableInput(w)&&h._POSignalsUtils.Util.isFunction(w.getAttribute)&&!(!((s=w.hasAttribute)===null||s===void 0)&&s.call(w,"data-st-ignore"))&&!h._POSignalsUtils.Util.anySelectorMatches(w,h.PointerConfig.instance.pointerParams.keyboardCssSelectorsBlacklist,0)){v=this.delegate.getElementsStID(w);const A=h.PointerConfig.instance.pointerParams.keyboardIdentifierAttributes;for(let E=0;E<A.length&&!v;E++)v=w.getAttribute(A[E]);v&&!h.PointerConfig.instance.pointerParams.keyboardFieldBlackList.has(v)&&(m=this.interactionsMap.get(w),m||(m={epochTs:Date.now(),stId:v,elementId:h._POSignalsUtils.Util.getAttribute(w,"id"),name:h._POSignalsUtils.Util.getAttribute(w,"name"),type:h._POSignalsUtils.Util.getAttribute(w,"type"),events:[],counter:this.delegate.keyboardCounter,eventCounters:{epochTs:Date.now()},duration:0,numOfDeletions:0,additionalData:this.delegate.additionalData,quality:""},this.interactionsMap.set(w,m)))}return m}getKeyCode(o){return o.keyCode?o.keyCode:o.which?o.which:o.code?h._POSignalsUtils.Util.hashCode(o.code):h._POSignalsUtils.Util.hashCode(o.key)+(o.location||0)}getKeyboardEvent(o){return o||window.event}getKeystrokeId(o,s){const m=this.getKeyCode(o);let v;return s===b&&(this.keyStrokeMap.has(m)?(v=this.keyStrokeMap.get(m),this.keyStrokeMap.delete(m)):v=h._POSignalsUtils.Util.newGuid()),s===y&&(this.keyStrokeMap.has(m)&&o.repeat?v=this.keyStrokeMap.get(m):(v=h._POSignalsUtils.Util.newGuid(),this.keyStrokeMap.set(m,v))),v}createKeyboardInteractionEvent(o,s){const m=h._POSignalsUtils.Util.getSrcElement(s),v=m.value?m.value.toString().length:0;return{type:o,eventTs:s.timeStamp,epochTs:Date.now(),selectionStart:h._POSignalsUtils.Util.getElementSelectionStart(m),selectionEnd:h._POSignalsUtils.Util.getElementSelectionEnd(m),key:s.key,keystrokeId:null,currentLength:v}}enrichKeyboardEvent(o,s){(this.modifiersKeys.indexOf(o.key)>=0||this.specialKeys.indexOf(o.key)>=0)&&(s.key=o.key),s.keystrokeId=this.getKeystrokeId(o,s.type);const m=h._POSignalsUtils.Util.getSrcElement(o);s.currentLength=String(m.value).length}onFocus(o){var s,m;try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onInteraction.dispatch(this,null);return}o=this.getKeyboardEvent(o);const v=this.getInteractionFromElement(o);if(this.countEvent(o.type,v),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(o.type))return;if(v){const w=this.createKeyboardInteractionEvent(u,o);v.events.push(w);const A=this.uiControlManager.createUIControlData(o);A&&(v.uiControl={uiElement:A.uiElement,enrichedData:A.enrichedData},((m=(s=A.uiElement)===null||s===void 0?void 0:s.id)===null||m===void 0?void 0:m.length)>0&&h._POSignalsUtils.Logger.info(`Typing in element with id '${A.uiElement.id}'`))}}catch(v){h._POSignalsUtils.Logger.warn("error in keyboard focus handler",v)}}onKeyUp(o){try{if(o=this.getKeyboardEvent(o),(o.keyCode===13||o.which===13)&&this._onEnterPress.dispatch(this,h._POSignalsUtils.Util.getSrcElement(o)),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onInteraction.dispatch(this,null);return}const s=this.getInteractionFromElement(o);if(this.countEvent(o.type,s),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(o.type))return;if(s){const m=this.createKeyboardInteractionEvent(b,o);this.enrichKeyboardEvent(o,m),s.events.push(m)}else this.keyStrokeMap.delete(this.getKeyCode(o))}catch(s){h._POSignalsUtils.Logger.warn("error in keyUp handler",s)}}isEmpty(){return this.interactionsMap.size===0}onKeyDown(o){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onInteraction.dispatch(this,null);return}o=this.getKeyboardEvent(o);const s=this.getInteractionFromElement(o);if(this.countEvent(o.type,s),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(o.type))return;if(s){const m=this.createKeyboardInteractionEvent(y,o);this.enrichKeyboardEvent(o,m),s.events.push(m)}}catch(s){h._POSignalsUtils.Logger.warn("error in keyDown handler",s)}}onBlur(o){try{o=this.getKeyboardEvent(o);const s=this.getInteractionFromElement(o);if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onInteraction.dispatch(this,null);return}if(this.countEvent(o.type,s),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(o.type))return;if(s){const m=this.createKeyboardInteractionEvent(c,o);s.events.push(m),s.duration=this.delegate.getInteractionDuration(s.events),s.numOfDeletions=this.calculateNumOfDeletions(s.events);const v=h._POSignalsUtils.Util.getSrcElement(o);this.interactionsMap.delete(v),this._onInteraction.dispatch(this,s)}}catch(s){h._POSignalsUtils.Logger.warn("error in blur handler",s)}}calculateNumOfDeletions(o){if(!(o!=null&&o[0]))return 0;let s=0,m=o[0].currentLength;for(let v=1;v<o.length;v++)o[v].currentLength<m&&s++,m=o[v].currentLength;return s}get fieldsIdentifications(){return this._fieldsIdentifications}}h.Keyboard=f})(ee||(ee={}));var ee;(function(h){class y{constructor(c,u){var f;const a=h.PointerConfig.instance.pointerParams.uiModelingElementFilters,o=h._POSignalsUtils.Util.getAttribute,s=(f=c.getBoundingClientRect)===null||f===void 0?void 0:f.call(c);this._htmlElement=c,this._data={location:this.getUIElementAttribute(a.location,()=>window.location.href),id:this.getUIElementAttribute(a.id,()=>o(c,"id")),aria_label:this.getUIElementAttribute(a.aria_label,()=>o(c,"aria-label")),data_st_field:this.getUIElementAttribute(a.data_st_field,()=>u.getElementsStID(c)),data_st_tag:this.getUIElementAttribute(a.data_st_tag,()=>o(c,"data-st-tag")),data_selenium:this.getUIElementAttribute(a.data_selenium,()=>o(c,"data-selenium")),data_selenium_id:this.getUIElementAttribute(a.data_selenium_id,()=>o(c,"data-selenium-id")),data_testid:this.getUIElementAttribute(a.data_testid,()=>o(c,"data-testid")),data_test_id:this.getUIElementAttribute(a.data_test_id,()=>o(c,"data-test-id")),data_qa_id:this.getUIElementAttribute(a.data_qa_id,()=>o(c,"data-qa-id")),data_id:this.getUIElementAttribute(a.data_id,()=>o(c,"data-id")),name:this.getUIElementAttribute(a.name,()=>o(c,"name")),placeholder:this.getUIElementAttribute(a.placeholder,()=>o(c,"placeholder")),role:this.getUIElementAttribute(a.role,()=>o(c,"role")),type:this.getUIElementAttribute(a.type,()=>o(c,"type")),nodeTypeInt:this.getUIElementAttribute(a.nodeTypeInt,()=>c.nodeType),nodeName:this.getUIElementAttribute(a.nodeName,()=>c.nodeName),cursorType:this.getUIElementAttribute(a.cursorType,()=>window.getComputedStyle(c).cursor),text:this.getUIElementAttribute(a.text,()=>this.getElementText(c)),textLength:this.getUIElementAttribute(a.textLength,()=>{var m;return((m=this.getElementText(c))===null||m===void 0?void 0:m.length)||null}),bottom:this.getUIElementAttribute(a.bottom,()=>s==null?void 0:s.bottom),height:this.getUIElementAttribute(a.height,()=>s==null?void 0:s.height),left:this.getUIElementAttribute(a.left,()=>s==null?void 0:s.left),right:this.getUIElementAttribute(a.right,()=>s==null?void 0:s.right),top:this.getUIElementAttribute(a.top,()=>s==null?void 0:s.top),width:this.getUIElementAttribute(a.width,()=>s==null?void 0:s.width),x:this.getUIElementAttribute(a.x,()=>s==null?void 0:s.x),y:this.getUIElementAttribute(a.y,()=>s==null?void 0:s.y)},this._data.elementId=this.getStrongestElementID()}get data(){return h._POSignalsUtils.Util.filterReduce(this._data,c=>c!=null&&c!=="")}get htmlElement(){return this._htmlElement}getUIElementAttribute(c,u){var f;try{if(!((f=c==null?void 0:c.enabled)!==null&&f!==void 0)||f){let a=u();return typeof a=="string"&&(typeof(c==null?void 0:c.maxLength)=="number"&&a.length>c.maxLength&&(a=a.substring(0,c.maxLength)),c!=null&&c.filterRegex&&(a=a.replace(new RegExp(c.filterRegex,"g"),"*"))),a}}catch(a){h._POSignalsUtils.Logger.warn("Failed to add ui element attribute",a)}return null}getStrongestElementID(){return this._data.data_st_field||this._data.data_selenium_id||this._data.data_selenium||this._data.data_testid||this._data.data_test_id||this._data.data_qa_id||this._data.data_id||this._data.id||""}getElementText(c){return c instanceof HTMLInputElement&&!h._POSignalsUtils.Util.isClickableInput(c)?null:h._POSignalsUtils.Util.getElementText(c)}equals(c){return!(!c||c.location&&location.href.indexOf(c.location)<0||c.elementId&&c.elementId!==this._data.elementId||c.id&&c.id!==this._data.id||c.aria_label&&c.aria_label!==this._data.aria_label||c.data_st_field&&c.data_st_field!==this._data.data_st_field||c.data_st_tag&&c.data_st_tag!==this._data.data_st_tag||c.data_selenium&&c.data_selenium!==this._data.data_selenium||c.data_selenium_id&&c.data_selenium_id!==this._data.data_selenium_id||c.data_testid&&c.data_testid!==this._data.data_testid||c.data_test_id&&c.data_test_id!==this._data.data_test_id||c.data_qa_id&&c.data_qa_id!==this._data.data_qa_id||c.data_id&&c.data_id!==this._data.data_id||c.name&&c.name!==this._data.name||c.placeholder&&c.placeholder!==this._data.placeholder||c.role&&c.role!==this._data.role||c.type&&c.type!==this._data.type||c.nodeTypeInt&&c.nodeTypeInt!==this._data.nodeTypeInt||c.nodeName&&c.nodeName!==this._data.nodeName||c.cursorType&&c.cursorType!==this._data.cursorType||c.text&&c.text!==this._data.text||c.textLength&&c.textLength!==this._data.textLength||c.bottom&&c.bottom!==this._data.bottom||c.height&&c.height!==this._data.height||c.left&&c.left!==this._data.left||c.right&&c.right!==this._data.right||c.top&&c.top!==this._data.top||c.width&&c.width!==this._data.width||c.x&&c.x!==this._data.x||c.y&&c.y!==this._data.y)}static createCssSelector(c){let u="";return c!=null&&c.nodeName&&(u+=c.nodeName.toLowerCase()),c!=null&&c.id&&(u+=`[id="${c.id}"]`),c!=null&&c.aria_label&&(u+=`[aria-label="${c.aria_label}"]`),c!=null&&c.data_st_field&&(u+=`[data-st-field="${c.data_st_field}"]`),c!=null&&c.data_st_tag&&(u+=`[data-st-tag="${c.data_st_tag}"]`),c!=null&&c.data_selenium&&(u+=`[data-selenium="${c.data_selenium}"]`),c!=null&&c.data_selenium_id&&(u+=`[data-selenium-id="${c.data_selenium_id}"]`),c!=null&&c.data_testid&&(u+=`[data-testid="${c.data_testid}"]`),c!=null&&c.data_test_id&&(u+=`[data-test-id="${c.data_test_id}"]`),c!=null&&c.data_qa_id&&(u+=`[data-qa-id="${c.data_qa_id}"]`),c!=null&&c.data_id&&(u+=`[data-id="${c.data_id}"]`),c!=null&&c.name&&(u+=`[name="${c.name}"]`),c!=null&&c.placeholder&&(u+=`[placeholder="${c.placeholder}"]`),c!=null&&c.role&&(u+=`[role="${c.role}"]`),c!=null&&c.type&&(u+=`[type="${c.type}"]`),u}}h.UiElement=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this._clientDelegate=c}createUIControlData(c){const u=h._POSignalsUtils.Util.getSrcElement(c);if(!u)return null;const f=h.PointerConfig.instance.pointerParams.uiModelingBlacklistRegex;if(f&&window.location.href.match(f))return h._POSignalsUtils.Logger.debug("ui control data is disabled for this url"),null;const a=new h.UiElement(u,this._clientDelegate);return this.findMatchingUiControl(a)||{uiElement:a.data}}findMatchingUiControl(c,u=0){try{const f=h.PointerConfig.instance.pointerParams.uiControlsConfig;if(f.length===0||u>h.PointerConfig.instance.pointerParams.uiModelingMaxMatchingParents)return null;let a=!1;for(const s of f)if(!(!s.tagConfig&&!s.enrichedData)&&(a=!0,c.equals(s.uiElement)))return{uiElement:c.data,enrichedData:s.enrichedData,tagConfig:s.tagConfig};if(!a)return null;const o=c.htmlElement.parentElement;if((o==null?void 0:o.nodeType)===Node.ELEMENT_NODE){const s=new h.UiElement(o,this._clientDelegate);return this.findMatchingUiControl(s,u+1)}}catch(f){h._POSignalsUtils.Logger.warn("failed to find matching ui control",f)}return null}convertToTagValueConfig(c){var u;return{context:(u=c==null?void 0:c.uiElement)===null||u===void 0?void 0:u.location,valueSelector:h.UiElement.createCssSelector(c==null?void 0:c.uiElement),operation:c==null?void 0:c.operation,valueMandatory:c==null?void 0:c.valueMandatory}}}h.UIControlManager=y})(ee||(ee={}));var ee;(function(h){class y{get isStarted(){return this._isStarted}get onInteraction(){return this._onInteraction.asEvent()}get onClickEvent(){return this._onClickEvent.asEvent()}constructor(c,u){this.BEHAVIORAL_TYPE="mouse",this._isStarted=!1,this._onInteraction=new h.EventDispatcher,this._onClickEvent=new h.EventDispatcher,this.lastMouseInteractionTimestamp=null,this.mouseEventsCounter=0,this.eventCounters={epochTs:Date.now()},this.delegate=c,this.uiControlManager=u,this.wheelOptions=h._POSignalsUtils.Util.isPassiveSupported()?{passive:!0}:!1,this.onPointerHandle=this.onPointerEvent.bind(this),this.onClickHandle=this.onClick.bind(this),this.onDblclickHandle=this.onMouseClickEvent.bind(this),this.onMousedownHandle=this.onMouseClickEvent.bind(this),this.onMousemoveHandle=this.onMouseEvent.bind(this),this.onMouseoutHandle=this.onMouseout.bind(this),this.onMouseoverHandle=this.onMouseEvent.bind(this),this.onMouseupHandle=this.onMouseClickEvent.bind(this),this.onWheelHandle=this.onMouseEvent.bind(this),this.interactionUpdateHandle=this.interactionUpdate.bind(this)}countEvent(c){this.eventCounters[c]=(this.eventCounters[c]||0)+1}interactionUpdate(){this.lastMouseInteraction?Date.now()-this.lastMouseInteractionTimestamp>=h.PointerConfig.instance.pointerParams.mouseIdleTimeoutMillis&&this.dispatch():!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)&&Date.now()-this.lastMouseInteractionTimestamp<=h.PointerConfig.instance.pointerParams.mouseIntervalMillis&&this.dispatch()}enrichLastInteraction(){var c;if(!this.lastMouseInteraction)return;this.lastMouseInteraction.eventCounters=this.eventCounters,this.lastMouseInteraction.duration=this.delegate.getInteractionDuration(this.lastMouseInteraction.events);const u=(c=this.lastMouseInteraction.events)===null||c===void 0?void 0:c.filter(f=>f.type==="mousemove");this.lastMouseInteraction.timeProximity=h._POSignalsUtils.Util.calculateMeanTimeDeltasBetweenEvents(u),this.lastMouseInteraction.meanEuclidean=h._POSignalsUtils.Util.calculateMeanDistanceBetweenPoints(u)}dispatch(){try{this.enrichLastInteraction(),this._onInteraction.dispatch(this,this.lastMouseInteraction),this.eventCounters={epochTs:Date.now()},this.lastMouseInteraction=null,this.mouseEventsCounter=0}catch(c){h._POSignalsUtils.Logger.warn("Failed to dispatch mouse events",c)}}updateInteraction(c,u){this.lastMouseInteraction||(this.lastMouseInteraction={epochTs:Date.now(),events:[],counter:this.delegate.mouseCounter,additionalData:this.delegate.additionalData,eventCounters:{epochTs:Date.now()},duration:0,timeProximity:0,uiControl:void 0,meanEuclidean:0,reduction:{},quality:""}),this.lastMouseInteraction.events.push(c),this.mouseEventsCounter++,u&&(this.lastMouseInteraction.uiControl={uiElement:u.uiElement,enrichedData:u.enrichedData},this.delegate.addUiControlTags(u.tagConfig)),this.mouseEventsCounter>=h.PointerConfig.instance.pointerParams.maxMouseEvents&&this.dispatch()}start(){this._isStarted?h._POSignalsUtils.Logger.debug("Desktop Mouse events already listening"):(this.delegate.addEventListener(document,"click",this.onClickHandle,!0),this.delegate.addEventListener(document,"dblclick",this.onDblclickHandle),this.delegate.addEventListener(document,"mousedown",this.onMousedownHandle),this.delegate.addEventListener(document,"mousemove",this.onMousemoveHandle),this.delegate.addEventListener(document,"mouseout",this.onMouseoutHandle),this.delegate.addEventListener(document,"mouseover",this.onMouseoverHandle),this.delegate.addEventListener(document,"mouseup",this.onMouseupHandle),this.delegate.addEventListener(document,"wheel",this.onWheelHandle,this.wheelOptions),this.delegate.addEventListener(document,"pointerover",this.onPointerHandle),this.delegate.addEventListener(document,"pointerenter",this.onPointerHandle),this.delegate.addEventListener(document,"pointerdown",this.onPointerHandle),this.delegate.addEventListener(document,"pointermove",this.onPointerHandle),this.delegate.addEventListener(document,"pointerup",this.onPointerHandle),this.delegate.addEventListener(document,"pointercancel",this.onPointerHandle),this.delegate.addEventListener(document,"pointerout",this.onPointerHandle),this.delegate.addEventListener(document,"pointerleave",this.onPointerHandle),this.updateIntervalHandle=setInterval(this.interactionUpdateHandle,h.PointerConfig.instance.pointerParams.mouseIntervalMillis),this._isStarted=!0,h._POSignalsUtils.Logger.debug("Desktop Mouse events start listening..."))}stop(){this._isStarted?(document.removeEventListener("click",this.onClickHandle,!0),document.removeEventListener("dblclick",this.onDblclickHandle),document.removeEventListener("mousedown",this.onMousedownHandle),document.removeEventListener("mousemove",this.onMousemoveHandle),document.removeEventListener("mouseout",this.onMouseoutHandle),document.removeEventListener("mouseover",this.onMouseoverHandle),document.removeEventListener("mouseup",this.onMouseupHandle),document.removeEventListener("wheel",this.onWheelHandle,this.wheelOptions),document.removeEventListener("pointerover",this.onPointerHandle),document.removeEventListener("pointerenter",this.onPointerHandle),document.removeEventListener("pointerdown",this.onPointerHandle),document.removeEventListener("pointermove",this.onPointerHandle),document.removeEventListener("pointerup",this.onPointerHandle),document.removeEventListener("pointercancel",this.onPointerHandle),document.removeEventListener("pointerout",this.onPointerHandle),document.removeEventListener("pointerleave",this.onPointerHandle),clearInterval(this.updateIntervalHandle),this.updateIntervalHandle=null,this._isStarted=!1,h._POSignalsUtils.Logger.debug("Desktop Mouse events stop listening...")):h._POSignalsUtils.Logger.debug("Desktop Mouse events already stopped")}onClick(c){var u,f;try{this.lastMouseInteractionTimestamp=Date.now();const a=h._POSignalsUtils.Util.getSrcElement(c);if(this._onClickEvent.dispatch(this,a),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(c.type),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(c.type)))return;const o=this.uiControlManager.createUIControlData(c);this.updateInteraction(this.createMouseClickEvent(c.type,c),o),this.dispatch(),((f=(u=o==null?void 0:o.uiElement)===null||u===void 0?void 0:u.id)===null||f===void 0?void 0:f.length)>0&&h._POSignalsUtils.Logger.info(`Tapped on element with id '${o.uiElement.id}'`)}catch(a){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,a)}}onMouseout(c){try{this.onMouseEvent(c);const u=c.relatedTarget||c.toElement;(!u||u.nodeName==="HTML")&&this.dispatch()}catch(u){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,u)}}onMouseEvent(c){try{if(c.type!=="wheel"&&(this.lastMouseInteractionTimestamp=Date.now()),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(c.type),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(c.type)))return;this.updateInteraction(this.createMouseEvent(c.type,c))}catch(u){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,u)}}onMouseClickEvent(c){try{if(this.lastMouseInteractionTimestamp=Date.now(),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(c.type),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(c.type)))return;this.updateInteraction(this.createMouseClickEvent(c.type,c))}catch(u){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,u)}}onPointerEvent(c){try{if(this.lastMouseInteractionTimestamp=Date.now(),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(c.type),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(c.type)))return;this.updateInteraction(this.createPointerEvent(c.type,c))}catch(u){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,u)}}clearBuffer(){let c=null;return this.lastMouseInteraction&&(c=this.lastMouseInteraction),this.lastMouseInteraction=null,c}isEmpty(){return!this.lastMouseInteraction}createMouseEvent(c,u){return{type:c,eventTs:u.timeStamp,epochTs:Date.now(),button:u.button,offsetX:u.offsetX,offsetY:u.offsetY,pageX:u.pageX,pageY:u.pageY,screenX:u.screenX,screenY:u.screenY,getX(){return u.screenX},getY(){return u.screenY}}}createPointerEvent(c,u){return{...this.createMouseEvent(c,u),pointerId:u.pointerId,width:u.width,height:u.height,pressure:u.pressure,tangentialPressure:u.tangentialPressure,tiltX:u.tiltX,tiltY:u.tiltY,twist:u.twist,pointerType:u.pointerType,isPrimary:u.isPrimary}}createMouseClickEvent(c,u){const f=this.createMouseEvent(c,u);if(u.target&&h._POSignalsUtils.Util.isFunction(u.target.getBoundingClientRect)){const a=u.target.getBoundingClientRect();f.targetBottom=a.bottom,f.targetHeight=a.height,f.targetLeft=a.left,f.targetRight=a.right,f.targetTop=a.top,f.targetWidth=a.width,f.targetX=a.x,f.targetY=a.y}return f}}h.Mouse=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.counter=0,this.key=c,this.counter=this.loadFromStorage()}loadFromStorage(){const c=y.sessionStorage.getItem(this.key);return Number(c)||0}get(){return this.counter}increment(c=1){this.counter+=c,y.sessionStorage.setItem(this.key,this.counter)}decrement(c=1){this.increment(c*-1)}reset(){this.counter=0,y.sessionStorage.removeItem(this.key)}}y.sessionStorage=h._POSignalsStorage.SessionStorage.instance.sessionStorage,h.StorageCounter=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.mapKey=c,this.cache=this.loadFromStorage()}loadFromStorage(){let c=y.sessionStorage.getItem(this.mapKey);return c||(c=JSON.stringify({})),JSON.parse(c)}asMap(){return this.cache}set(c,u,f=!0){this.cache[c]=u,f&&y.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))}sync(){y.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))}get(c){return this.cache[c]}delete(c){delete this.cache[c],y.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))}values(){return h._POSignalsUtils.Util.values(this.cache)}clear(){this.cache={},y.sessionStorage.removeItem(this.mapKey)}forEach(c){for(const u in this.cache)this.cache.hasOwnProperty(u)&&c(this.cache[u],u)}}y.sessionStorage=h._POSignalsStorage.SessionStorage.instance.sessionStorage,h.StorageMap=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this.config={},this._cacheHash=0,this.cache=new Map}refreshConfig(c){try{if(!c)return;const u=h._POSignalsUtils.Util.hashCode(JSON.stringify(c));if(this._cacheHash===u)return;this.config=c,this._cacheHash=u,this.cache=new Map}catch(u){h._POSignalsUtils.Logger.warn("Failed to set css selectors",u)}}getMatchingTags(c,u){const f=this.cache.get(c);if(f)return f;const a={};for(const o in this.config)try{if(!this.config.hasOwnProperty(o))continue;let s=this.config[o].selector||[];h._POSignalsUtils.Util.isArray(s)||(s=[].concat(s));for(const m of s)h._POSignalsUtils.Util.isSelectorMatches(c,m,u)&&(a[o]=this.config[o])}catch(s){h._POSignalsUtils.Logger.warn(`Failed to get the config for ${o} tag`,s)}return this.cache.set(c,a),a}getValue(c,u){if(u&&c)switch(u=u.trim(),c){case"email_domain":return h._POSignalsUtils.Util.getEmailDomain(u);case"obfuscate":return`${h._POSignalsUtils.Util.mod(u,1e3)}`;case"plain":return u;case"zip":return u.substr(0,3);case"length":return`${u.length}`}return""}get cacheHash(){return this._cacheHash}}h.TagsIdentifications=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this._reduceFactorMap=null}set reduceFactorMap(c){this._reduceFactorMap=c}get reduceFactorMap(){return this._reduceFactorMap}reduceEventsByFactor(c){try{if(!c||c.length===0||!this.reduceFactorMap)return c;const u=new Map,f=[];for(let o=0;o<c.length;o++)u.get(c[o].type)?u.get(c[o].type).push(o):u.set(c[o].type,[o]);u.forEach((o,s)=>{const m=this.reduceFactorMap[s]?Number(this.reduceFactorMap[s]):0;this.reduceByFactor(m,o,v=>{f[o[v]]=!0})});const a=[];for(let o=0;o<c.length;o++)f[o]&&a.push(c[o]);return c.length!==a.length&&h._POSignalsUtils.Logger.debug(`${c.length-a.length} events reduced out of ${c.length}`),a}catch(u){return h._POSignalsUtils.Logger.warn("Failed to reduce events",u),c}}reduceByFactor(c,u,f){c=Math.min(c,1);const a=Math.round(Math.max(u.length*(1-c),2)),o=(u.length-1)/(a-1),s=Math.min(u.length,a);for(let m=0;m<s;m++){const v=Math.round(m*o);f(v)}}}h.ReduceFactor=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.algorithm=c}reduce(c,u){if(y.TYPES_TO_REDUCE.indexOf(u)===-1)return{keptEvents:c,epsilon:0};if(c.length<=y.MIN_EVENTS_TO_REDUCE)return{keptEvents:c,epsilon:0};const f=c.length<50?.55:c.length<100?.35:.2,a=c.length<50?1:c.length<100?3:7,o=this.algorithm.reduceEvents(c,a),s=o.length/c.length;if(o.length>=10&&s>=f)return{keptEvents:o,epsilon:a};const m=c.length<50?.1:c.length<100?.3:.7,v=this.algorithm.reduceEvents(c,m),w=v.length/c.length;if(v.length<=y.MIN_EVENTS_TO_REDUCE||w<=f)return{keptEvents:v,epsilon:m};const A=(Math.min(a,Math.pow(a,s/f))*Math.abs(w-f)+m*Math.abs(s-f))/Math.abs(s-w);return(A<m||A>a)&&h._POSignalsUtils.Logger.warn(`linear weighted average - calculated epsilon is out of range, lowEpsilon: ${m}, highEpsilon: ${a}, epsilon: ${A}`),{keptEvents:this.algorithm.reduceEvents(c,A),epsilon:A}}}y.MIN_EVENTS_TO_REDUCE=18,y.TYPES_TO_REDUCE=["mousemove","touchmove"],h.RDPEpsilonStrategy=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.rdpStrategy=c}reduceWithRPD(c){if(!c||c.length===0)return{events:c,reductionInfo:{}};const u=new Map;let f=[];for(const o of c)u.get(o.type)?u.get(o.type).push(o):u.set(o.type,[o]);const a={};return u.forEach((o,s)=>{const{keptEvents:m,epsilon:v}=this.rdpStrategy.reduce(o,s);v>0&&(a[s]={epsilon:v,originalLength:o.length,keptLength:m.length}),f=f.concat(m)}),{events:h._POSignalsUtils.Util.sortEventsByTimestamp(f),reductionInfo:a}}}h.ReduceRDP=y})(ee||(ee={}));var ee;(function(h){class y{getSqDist(c,u){const f=c.getX()-u.getX(),a=c.getY()-u.getY();return f*f+a*a}getSqSegDist(c,u,f){let a=u.getX(),o=u.getY(),s=f.getX()-a,m=f.getY()-o;if(s!==0||m!==0){const v=((c.getX()-a)*s+(c.getY()-o)*m)/(s*s+m*m);v>1?(a=f.getX(),o=f.getY()):v>0&&(a+=s*v,o+=m*v)}return s=c.getX()-a,m=c.getY()-o,s*s+m*m}simplifyRadialDist(c,u){let f=c[0],a=[f],o;for(let s=1,m=c.length;s<m;s++)o=c[s],this.getSqDist(o,f)>u&&(a.push(o),f=o);return f!==o&&a.push(o),a}simplifyDPStep(c,u,f,a,o){let s=a,m;for(let v=u+1;v<f;v++){const w=this.getSqSegDist(c[v],c[u],c[f]);w>s&&(m=v,s=w)}s>a&&(m-u>1&&this.simplifyDPStep(c,u,m,a,o),o.push(c[m]),f-m>1&&this.simplifyDPStep(c,m,f,a,o))}simplifyDouglasPeucker(c,u){const f=c.length-1,a=[c[0]];return this.simplifyDPStep(c,0,f,u,a),a.push(c[f]),a}simplify(c,u,f){if(c.length<=2)return c;const a=u!==void 0?u*u:1;return c=f?c:this.simplifyRadialDist(c,a),c=this.simplifyDouglasPeucker(c,a),c}reduceEvents(c,u){return this.simplify(c,u)}}h.RDPReduction=y})(ee||(ee={}));var ee;(function(h){class y{filterMoveEvents(c,u){if(c.length<=18)return c;const f=c.filter(m=>m.type===u),a=h._POSignalsUtils.Util.keepFirstEventsWithDistance({events:f,threshold:200,min:18,max:30});let o=-1;const s={};for(let m=0;m<c.length;m++){const v=c[m];if(v.type!==u){if(v.type==="mousedown"){o=m;continue}s[v.type]||(a.push(v),s[v.type]=!0)}}return o>=0&&a.push(c[o]),h._POSignalsUtils.Util.sortEventsByTimestamp(a)}}h.EventsReduction=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this.reduceFactor=new h.ReduceFactor,this.reduceRDP=new h.ReduceRDP(new h.RDPEpsilonStrategy(new h.RDPReduction)),this.eventsReduction=new h.EventsReduction}set reduceFactorMap(c){this.reduceFactor.reduceFactorMap=c}reduceGesture(c){const u=this.reduceRDP.reduceWithRPD(c.events);c.events=this.eventsReduction.filterMoveEvents(u.events,"touchmove"),c.reduction=u.reductionInfo}reduceKeyboardInteraction(c){c.events=h._POSignalsUtils.Util.filterArrayByLength(c.events,50)}reduceMouseInteraction(c){const u=this.reduceRDP.reduceWithRPD(c.events);c.events=this.eventsReduction.filterMoveEvents(u.events,"mousemove"),c.reduction=u.reductionInfo}}h.ReductionManager=y})(ee||(ee={}));var ee;(function(h){class y extends h.ClientBase{constructor(c,u){super(c),this.tagsWithValueIdentifications=new h.TagsIdentifications,this.reductionManager=new h.ReductionManager,this.lastGestureTimestamp=0,this.currentBufferSize=0,this.MAX_EVENT_COUNTERS=20,this.bufferingStrategy=h.StrategyFactory.createBufferingStrategy(u,this),this.capturedKeyboardInteractions=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_KEYBOARD_INTERACTIONS),this.keyboardInteractionsCount=new h.StorageCounter(h._POSignalsUtils.Constants.KEYBOARD_INTERACTIONS_COUNT),this.mouseInteractionsCount=new h.StorageCounter(h._POSignalsUtils.Constants.MOUSE_INTERACTIONS_COUNT),this.gesturesCount=new h.StorageCounter(h._POSignalsUtils.Constants.GESTURES_COUNT),this.mouseEventCounters=new h.StorageArray(h._POSignalsUtils.Constants.MOUSE_EVENT_COUNTERS),this.keyboardEventCounters=new h.StorageArray(h._POSignalsUtils.Constants.KEYBOARD_EVENT_COUNTERS),this.touchEventCounters=new h.StorageArray(h._POSignalsUtils.Constants.TOUCH_EVENT_COUNTERS),this.indirectEventCounters=new h.StorageArray(h._POSignalsUtils.Constants.INDIRECT_EVENT_COUNTERS),this.capturedMouseInteractions=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_MOUSE_INTERACTIONS),this.capturedGestures=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_GESTURES),this.capturedIndirectEvents=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_INDIRECT),this.capturedMouseInteractionSummary=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_MOUSE_INTERACTIONS_SUMMARY),this.currentBufferSize=this.capturedGestures.length+this.capturedMouseInteractions.length+this.capturedKeyboardInteractions.length,this.uiControlManager=new h.UIControlManager(this),this.keyboard=new h.Keyboard(this,this.uiControlManager),this.keyboard.onInteraction.subscribe(this.handleKeyboardInteraction.bind(this)),this.keyboard.onEnterPress.subscribe(this.handleStTagOnEnter.bind(this)),this.keyboard.onObfuscatedValue.subscribe(this.handleTagValueOnBlur.bind(this)),this.mouse=new h.Mouse(this,this.uiControlManager),this.mouse.onInteraction.subscribe(this.handleMouseInteraction.bind(this)),this.mouse.onClickEvent.subscribe(this.handleStTagOnClick.bind(this)),this.sensors=new h.Sensors(this),this.gesture=new h.GestureEvents(this,this.sensors),this.gesture.onGesture.subscribe(this.handleGesture.bind(this)),this.indirect=new h.IndirectClient(this),this.indirect.onIndirect.subscribe(this.handleIndirect.bind(this)),this.onUrlChangeHandler=this.onUrlChange.bind(this)}get keyboardCounter(){return this.keyboardInteractionsCount.get()}get mouseCounter(){return this.mouseInteractionsCount.get()}get gesturesCounter(){return this.gesturesCount.get()}get additionalData(){const c=h._POSignalsUtils.Util.getDeviceOrientation();return{locationHref:location.href,devTools:h._POSignalsUtils.Util.getDevToolsState(),innerWidth:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,innerHeight:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,outerWidth:window.outerWidth,outerHeight:window.outerHeight,width:screen.width,height:screen.height,availWidth:screen.availWidth,availHeight:screen.availHeight,pixelRatio:window.devicePixelRatio,deviceOrientation:c.orientation,deviceAngle:c.angle}}getBehavioralData(){this.clearIndirectBuffer();const c=this.reduceEpochEventCounters();return{mouse:{count:this.mouseInteractionsCount.get(),interactions:this.capturedMouseInteractions.get()},keyboard:{count:this.keyboardInteractionsCount.get(),interactions:this.capturedKeyboardInteractions.get()},touch:{count:this.gesturesCount.get(),interactions:this.capturedGestures.get()},indirect:{events:this.capturedIndirectEvents.get()},mouseSummary:{events:this.capturedMouseInteractionSummary.get()},eventCounters:c}}getBufferSize(){return this.currentBufferSize}getInteractionDuration(c){return(c==null?void 0:c.length)>0?c[c.length-1].epochTs-c[0].epochTs:0}async dispose(){this.stopListening(),this.keyboard.onInteraction.unsubscribe(this.handleKeyboardInteraction.bind(this)),this.keyboard.onEnterPress.unsubscribe(this.handleStTagOnEnter.bind(this)),this.keyboard.onObfuscatedValue.unsubscribe(this.handleTagValueOnBlur.bind(this)),this.mouse.onInteraction.unsubscribe(this.handleMouseInteraction.bind(this)),this.mouse.onClickEvent.unsubscribe(this.handleStTagOnClick.bind(this)),this.gesture.onGesture.unsubscribe(this.handleGesture.bind(this)),this.indirect.unsubscribe(),this.indirect.onIndirect.unsubscribe(this.handleIndirect.bind(this))}collectBehavioralData(c){if(this.isBehavioralDataPaused)return!1;const u=h.PointerConfig.instance.pointerParams.behavioralBlacklist;return!c||!u||!u[c]?!0:!window.location.href.match(u[c])}getElementsStID(c){try{return h._POSignalsUtils.Util.getAttribute(c,"data-st-field")||this.keyboard.fieldsIdentifications.getIdentification(c,0)||""}catch(u){return h._POSignalsUtils.Logger.warn("failed to get element stId",u),""}}addEventListener(c,u,f,a){h.PointerConfig.instance.pointerParams.eventsBlackList.has(u)||(c.addEventListener(u,this.onEventHandler,a),c.addEventListener(u,f,a))}addUiControlTags(c){if((c==null?void 0:c.length)>0){let u=!1;for(const f of c)try{if(f!=null&&f.name){const a=this.uiControlManager.convertToTagValueConfig(f.value);u=this.addSingleTagWithValue(f.name,a)||u}}catch(a){h._POSignalsUtils.Logger.warn("failed to add tag config",a)}}}refreshListening(){const c=h.PointerConfig.instance;this.tagsWithValueIdentifications.refreshConfig(c.pointerParams.remoteTags),this.reductionManager.reduceFactorMap=c.pointerParams.eventsReduceFactorMap,this.keyboard.refreshKeyboardCssSelectors(c.pointerParams.keyboardCssSelectors),this.sensors.maxSensorSamples=c.pointerParams.maxSensorSamples,this.sensors.sensorsTimestampDeltaInMillis=c.pointerParams.sensorsDeltaInMillis,this.mouse.start(),this.keyboard.start(),this.gesture.start(),this.indirect.start(),c.pointerParams.maxSensorSamples==0?this.sensors.stop():this.sensors.start(),this.addEventListener(window,"_onlocationchange",this.onUrlChangeHandler),this.addEventListener(window,"popstate",this.onUrlChangeHandler)}addSingleTagWithValue(c,u){try{if(u!=null&&u.context&&!window.location.href.match(u.context))return!1;let f="";if(u!=null&&u.operation&&u!=null&&u.valueSelector){const a=document.querySelector(u.valueSelector);if(a){const o=h._POSignalsUtils.Util.getElementText(a);f=this.tagsWithValueIdentifications.getValue(u.operation,o)}}if(u!=null&&u.valueMandatory&&!f)return h._POSignalsUtils.Logger.warn(`tag '${c}' wasn't added. value is missing`),!1;this.addTag(c,f)}catch(f){h._POSignalsUtils.Logger.warn(`failed to add ${c} tag`,f)}return!1}addTagsWithValue(c){let u=!1;for(const f in c)c.hasOwnProperty(f)&&(u=this.addSingleTagWithValue(f,c[f])||u)}handleStTagOnEnter(c,u){u instanceof HTMLInputElement&&h._POSignalsUtils.Util.isTextInput(u)&&this.handleStTagElement(u)}handleTagValueOnBlur(c,u){u&&this.addTag(u.fieldKey,u.obfuscatedValue)}handleStTagOnClick(c,u){(!(u instanceof HTMLInputElement)||h._POSignalsUtils.Util.isClickableInput(u))&&this.handleStTagElement(u)}handleMouseInteraction(c,u){if(!u)return;this.incrementEventCounters(u.eventCounters,"mouse"),this.filterOldMouseEvents(),this.mouseInteractionsCount.increment(),this.reductionManager.reduceMouseInteraction(u);const f=this.bufferingStrategy.calculateStrategyResult(u,"mouse");u.quality=f.quality,this.handleMouseInteractionSummary(u),f.shouldCollect&&(f.remove&&this.removeInteraction(f.remove),this.capturedMouseInteractions.push(u),this.lastGestureTimestamp!==u.events[u.events.length-1].eventTs&&this.currentBufferSize++)}handleMouseInteractionSummary(c){const u={epochTs:c.epochTs,duration:this.getInteractionDuration(c.events),quality:c.quality};this.capturedMouseInteractionSummary.push(u),this.capturedMouseInteractionSummary.length>10&&this.capturedMouseInteractionSummary.remove(0)}handleIndirect(c,u){this.filterOldIndirectEvents(),this.addIndirectEvents(u)}handleKeyboardInteraction(c,u){if(!u)return;this.incrementEventCounters(u.eventCounters,"keyboard"),this.filterOldKeyboardEvents(),this.keyboardInteractionsCount.increment(),this.reductionManager.reduceKeyboardInteraction(u);const f=this.bufferingStrategy.calculateStrategyResult(u,"keyboard");f.shouldCollect&&(f.remove&&this.removeInteraction(f.remove),u.quality=f.quality,this.capturedKeyboardInteractions.push(u),this.currentBufferSize++)}handleGesture(c,u){var f;if(!this.isValidGesture(u))return;this.incrementEventCounters(u.eventCounters,"touch"),this.filterOldGesturesEvents(),this.gesturesCount.increment(),this.reductionManager.reduceGesture(u);const a=this.bufferingStrategy.calculateStrategyResult(u,"touch");a.shouldCollect&&(a.remove&&this.removeInteraction(a.remove),u.quality=a.quality,this.sensors.onGesture(u),this.capturedGestures.push(u),this.currentBufferSize++,this.lastGestureTimestamp=(f=u.events[u.events.length-1])===null||f===void 0?void 0:f.eventTs)}clearIndirectBuffer(){const c=this.indirect.clearBuffer();this.addIndirectEvents(c)}removeInteraction(c){switch(c.type){case"mouse":this.capturedMouseInteractions.remove(c.index);break;case"keyboard":this.capturedKeyboardInteractions.remove(c.index);break;case"touch":this.capturedGestures.remove(c.index);break}}addIndirectEvents(c){var u;if(((u=c==null?void 0:c.events)===null||u===void 0?void 0:u.length)>0){const f=[],a=h._POSignalsUtils.Util.typesCounter(this.capturedIndirectEvents.get());for(const o of c.events)h.PointerConfig.instance.pointerParams.highPriorityIndirectEvents.has(o.type)&&this.capturedIndirectEvents.length+f.length<h.PointerConfig.instance.pointerParams.maxIndirectEvents&&f.push(o),a[o.type]>0||(f.push(o),a[o.type]=1);this.incrementEventCounters(a,"indirect"),this.capturedIndirectEvents.set(this.capturedIndirectEvents.concat(f))}}onUrlChange(){this.addTag("location",window.location.href)}handleStTagElement(c){if(c){const u=h.PointerConfig.instance.pointerParams.maxSelectorChildren,f=this.tagsWithValueIdentifications.getMatchingTags(c,u);this.addTagsWithValue(f);const a=h._POSignalsUtils.Util.isSelectorMatches(c,"[data-st-tag]",u);if(a instanceof Element){const o=h._POSignalsUtils.Util.getAttribute(a,"data-st-tag"),s=h._POSignalsUtils.Util.getAttribute(a,"data-st-tag-value");o&&this.addTag(o,s)}}}stopListening(){this.keyboard.stop(),this.mouse.stop(),this.gesture.stop(),this.indirect.stop(),this.sensors.stop(),window.removeEventListener("_onlocationchange",this.onUrlChangeHandler),window.removeEventListener("popstate",this.onUrlChangeHandler)}clearBehavioralData(){this.capturedKeyboardInteractions.clear(),this.capturedMouseInteractions.clear(),this.capturedGestures.clear(),this.capturedIndirectEvents.clear(),this.sensors.reset(),h.Tags.instance.reset(),this.currentBufferSize=0,this.keyboardInteractionsCount.reset(),this.mouseInteractionsCount.reset(),this.gesturesCount.reset(),this.mouseEventCounters.clear(),this.mouseEventCounters.clear(),this.indirectEventCounters.clear(),this.keyboardEventCounters.clear(),this.touchEventCounters.clear(),this.eventCounters.clear()}isValidGesture(c){var u,f;return((u=c==null?void 0:c.events)===null||u===void 0?void 0:u.length)>0&&((f=c==null?void 0:c.events)===null||f===void 0?void 0:f.length)<h.PointerConfig.instance.pointerParams.maxSnapshotsCount}filterOldIndirectEvents(){const c=new Date().getTime();this.capturedIndirectEvents.set(this.capturedIndirectEvents.get().filter(u=>c-u.epochTs<=36e5))}filterOldMouseEvents(){const c=new Date().getTime();this.capturedMouseInteractions.set(this.capturedMouseInteractions.get().filter(u=>c-u.epochTs<=36e5))}filterOldKeyboardEvents(){const c=new Date().getTime();this.capturedKeyboardInteractions.set(this.capturedKeyboardInteractions.get().filter(u=>c-u.epochTs<=36e5))}filterOldGesturesEvents(){const c=new Date().getTime();this.capturedGestures.set(this.capturedGestures.get().filter(u=>c-u.epochTs<=36e5))}incrementEventCounters(c,u){const f=Date.now();let a;switch(u){case"mouse":a=this.mouseEventCounters;break;case"keyboard":a=this.keyboardEventCounters;break;case"touch":a=this.touchEventCounters;break;case"indirect":a=this.indirectEventCounters;break}a.set(a.get().filter(o=>f-o.epochTs<=36e5)),a.length<this.MAX_EVENT_COUNTERS||a.remove(0),a.push(c)}reduceEpochEventCounters(){const c={epochTs:Date.now()};return[...this.mouseEventCounters.get(),...this.keyboardEventCounters.get(),...this.touchEventCounters.get(),...this.indirectEventCounters.get()].forEach(u=>{Object.keys(u).forEach(f=>{f!=="epochTs"&&(c[f]?c[f]+=u[f]:c[f]=u[f])})}),delete c.epochTs,c}}h.Client=y})(ee||(ee={}));class S{static getData(){return ee.ClientBase.instance().getData()}static init(y){return ee._POSignalsUtils.Util.ieFix(),ee.ClientBase.instance().startSignals(y)}static initSilent(y){return this.init(y)}static pauseBehavioralData(){ee.ClientBase.instance().pauseBehavioralData()}static resumeBehavioralData(){ee.ClientBase.instance().resumeBehavioralData()}}(function(h){document.readyState!=="loading"?h():document.addEventListener("DOMContentLoaded",h)})(function(){if(!window._pingOneSignalsReady){const h=new CustomEvent("PingOneSignalsReadyEvent");document.dispatchEvent(h),window._pingOneSignalsReady=!0}});var ee;(function(h){let y;(function(c){c[c.RICH=3]="RICH",c[c.CLICK=2]="CLICK",c[c.MOVE=1]="MOVE",c[c.POOR=0]="POOR"})(y||(y={}));class b{constructor(u,f,a,o,s,m){this.clientVersion=u,this.instanceUUID=f,this.initParams=a,this.metadata=o,this.behavioralDataHandler=s,this.sessionData=m,this.Max_Mouse_Touch_Interactions=6}async getData(u){this.incrementGetData();const f=await this.getRiskData(u),a=f.tags.findIndex(o=>o.name==="Get Data");return a!==-1?f.tags[a]=this._getDataCounter:f.tags.push(this._getDataCounter),this.toString(f)}async getRiskData(u){const[f,a]=await Promise.all([this.metadata.getDeviceAttributes(),this.metadata.getLocalAgentJwt()]);let o=this.behavioralDataHandler.getBehavioralData();o=await this.modifyBehavioralData(o);const s={behavioral:o,tags:h.Tags.instance.tags,sdkConfig:this.initParams,epochTs:u,instanceUUID:this.instanceUUID,tabUUID:h._POSignalsStorage.SessionStorage.instance.tabUUID,sdkVersion:this.clientVersion,platform:"web",clientToken:window._pingOneSignalsToken};let m;return this.sessionData.universalTrustEnabled?m={jwtDeviceAttributes:await this.getJWTSignedPayload(u,f.deviceId),...s}:m={deviceAttributes:f,...s},this.sessionData.agentIdentificationEnabled&&(m={jwtAgentPayload:a,...m}),m}toString(u){let f;const a=this.metadata.getObfsInfo();try{f=h._POSignalsUtils.Util.string2buf(JSON.stringify(u))}catch(o){throw new Error(`Failed to create data, ${o.message}`)}try{f=h.pako.gzip(f)}catch(o){throw new Error(`Failed to compress data, ${o.message}`)}try{f=h._POSignalsUtils.Util.encryptionBytes(f,a.key)}catch(o){throw new Error(`failed to obfuscate data, ${o.message}`)}try{return`${h._POSignalsUtils.Util.base64Uint8Array(f)}.${btoa(a.identifier)}`}catch(o){throw new Error(`failed to encode data, ${o.message}`)}}async getJWTSignedPayload(u,f){const a=this.metadata.getSerializedDeviceAttributes();return this.sessionData.signJWTChallenge(a,u,f)}async modifyBehavioralData(u){return u.mouse.interactions=this.getBestMouseInteractions(u.mouse.interactions),u.touch.interactions=this.getBestTouchInteractions(u.touch.interactions,u.mouse.interactions),u.keyboard.interactions=this.getBestKeyboardInteractions(u.keyboard.interactions),u}getBestInteractions(u){const f=Date.now();h._POSignalsUtils.Logger.debug("total interactions:",u);const a=u.filter(v=>f-v.epochTs<=18e4),o=this.sortInteractions(a).slice(0,2),s=u.filter(v=>!o.some(w=>w.epochTs===v.epochTs)),m=this.sortInteractions(s).slice(0,5-o.length);return h._POSignalsUtils.Logger.debug("final interactions for getData:",[...o,...m]),[...o,...m].sort((v,w)=>v.epochTs-w.epochTs)}getBestMouseInteractions(u){return this.getBestInteractions(u)}getBestKeyboardInteractions(u){return this.getBestInteractions(u)}getBestTouchInteractions(u,f){const a=this.Max_Mouse_Touch_Interactions-f.length;return this.getTouchBestInteraction(u,a)}incrementGetData(){this._getDataCounter?(this._getDataCounter.value++,this._getDataCounter.timestamp=Date.now()):this._getDataCounter={value:1,name:"Get Data",timestamp:Date.now(),epochTs:Date.now()}}getTouchBestInteraction(u,f){return u=this.sortInteractions(u),u.slice(0,f)}sortInteractions(u){return u.sort((f,a)=>{const o=y[f.quality],s=y[a.quality];return o===s?a.epochTs-f.epochTs:s-o})}}h.DataHandler=b})(ee||(ee={}));var ee;(function(h){class y{constructor(){this._configuration={enabled:y.ENABLED_DEFAULT,bufferSize:y.BUFFER_SIZE_DEFAULT,maxSnapshotsCount:y.MAX_SNAPSHOTS_COUNT_DEFAULT,sensors:y.SENSORS_DEFAULT,metadataBlacklist:y.METADATA_BLACK_LIST_DEFAULT,tagsBlacklistRegex:y.TAGS_BLACK_LIST_REGEX_DEFAULT,behavioralBlacklist:y.BEHAVIORAL_BLACK_LIST_DEFAULT,webRtcUrl:y.WEB_RTC_URL_DEFAULT,eventsBlackList:y.EVENTS_BLACK_LIST_DEFAULT,eventsToIgnore:y.EVENTS_TO_IGNORE_DEFAULT,highPriorityIndirectEvents:y.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT,indirectIntervalMillis:y.INDIRECT_INTERVAL_MILLIS_DEFAULT,mouseIntervalMillis:y.MOUSE_INTERVAL_MILLIS_DEFAULT,mouseIdleTimeoutMillis:y.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT,maxMouseEvents:y.MAX_MOUSE_EVENTS_DEFAULT,maxIndirectEvents:y.MAX_INDIRECT_EVENTS_DEFAULT,keyboardFieldBlackList:y.KEYBOARD_FIELD_BLACK_LIST_DEFAULT,keyboardCssSelectors:y.KEYBOARD_CSS_SELECTORS_DEFAULT,keyboardCssSelectorsBlacklist:y.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT,keyboardIdentifierAttributes:y.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT,remoteTags:y.REMOTE_TAGS_DEFAULT,maxSelectorChildren:y.MAX_SELECTOR_CHILDREN_DEFAULT,eventsReduceFactorMap:y.EVENTS_REDUCE_FACTOR_MAP_DEFAULT,propertyDescriptors:y.PROPERTY_DESCRIPTORS_DEFAULT,additionalMediaCodecs:y.ADDITIONAL_MEDIA_CODECS_DEFAULT,fingerprintTimeoutMillis:y.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT,metadataDataPoints:y.METADATA_DATA_POINTS_DEFAULT,uiModeling:y.UI_MODELING_CONFIG_DEFAULT,uiControl:y.UI_CONTROL_LIST_DEFAULT}}updateParams(c){c&&(this._configuration=c)}get enabled(){return typeof this._configuration.enabled=="boolean"?this._configuration.enabled:y.ENABLED_DEFAULT}get bufferSize(){return typeof this._configuration.bufferSize=="number"&&this._configuration.bufferSize>0?this._configuration.bufferSize:y.BUFFER_SIZE_DEFAULT}get maxSnapshotsCount(){return typeof this._configuration.maxSnapshotsCount=="number"&&this._configuration.maxSnapshotsCount>=0?this._configuration.maxSnapshotsCount:y.MAX_SNAPSHOTS_COUNT_DEFAULT}get maxSensorSamples(){const c=this._configuration.sensors;return c&&typeof c.maxSensorSamples=="number"&&c.maxSensorSamples>=0?c.maxSensorSamples:y.SENSORS_DEFAULT.maxSensorSamples}get sensorsDeltaInMillis(){const c=this._configuration.sensors;return c&&typeof c.sensorsDeltaInMillis=="number"&&c.sensorsDeltaInMillis>=0?c.sensorsDeltaInMillis:y.SENSORS_DEFAULT.sensorsDeltaInMillis}get metadataBlackList(){var c;return h._POSignalsUtils.Util.isArray(this._configuration.metadataBlacklist)&&((c=this._configuration.metadataBlacklist)===null||c===void 0?void 0:c.length)>0?this._configuration.metadataBlacklist:y.METADATA_BLACK_LIST_DEFAULT}get behavioralBlacklist(){return this._configuration.behavioralBlacklist?this._configuration.behavioralBlacklist:y.BEHAVIORAL_BLACK_LIST_DEFAULT}get tagsBlacklistRegex(){return typeof this._configuration.tagsBlacklistRegex=="string"?this._configuration.tagsBlacklistRegex:y.TAGS_BLACK_LIST_REGEX_DEFAULT}get webRtcUrl(){return typeof this._configuration.webRtcUrl=="string"?this._configuration.webRtcUrl:y.WEB_RTC_URL_DEFAULT}get eventsBlackList(){return h._POSignalsUtils.Util.isArray(this._configuration.eventsBlackList)&&(this._configuration.eventsBlackList=new Set(this._configuration.eventsBlackList)),this._configuration.eventsBlackList instanceof Set?this._configuration.eventsBlackList:y.EVENTS_BLACK_LIST_DEFAULT}get eventsToIgnore(){return h._POSignalsUtils.Util.isArray(this._configuration.eventsToIgnore)&&(this._configuration.eventsToIgnore=new Set(this._configuration.eventsToIgnore)),this._configuration.eventsToIgnore instanceof Set?this._configuration.eventsToIgnore:y.EVENTS_TO_IGNORE_DEFAULT}get highPriorityIndirectEvents(){return h._POSignalsUtils.Util.isArray(this._configuration.highPriorityIndirectEvents)&&(this._configuration.highPriorityIndirectEvents=new Set(this._configuration.highPriorityIndirectEvents)),this._configuration.highPriorityIndirectEvents instanceof Set?this._configuration.highPriorityIndirectEvents:y.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT}get indirectIntervalMillis(){return typeof this._configuration.indirectIntervalMillis=="number"&&this._configuration.indirectIntervalMillis>0?this._configuration.indirectIntervalMillis:y.INDIRECT_INTERVAL_MILLIS_DEFAULT}get mouseIntervalMillis(){return typeof this._configuration.mouseIntervalMillis=="number"&&this._configuration.mouseIntervalMillis>0?this._configuration.mouseIntervalMillis:y.MOUSE_INTERVAL_MILLIS_DEFAULT}get mouseIdleTimeoutMillis(){return typeof this._configuration.mouseIdleTimeoutMillis=="number"&&this._configuration.mouseIdleTimeoutMillis>0?this._configuration.mouseIdleTimeoutMillis:y.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT}get maxMouseEvents(){return typeof this._configuration.maxMouseEvents=="number"&&this._configuration.maxMouseEvents>=0?this._configuration.maxMouseEvents:y.MAX_MOUSE_EVENTS_DEFAULT}get maxIndirectEvents(){return typeof this._configuration.maxIndirectEvents=="number"&&this._configuration.maxIndirectEvents>=0?this._configuration.maxIndirectEvents:y.MAX_INDIRECT_EVENTS_DEFAULT}get keyboardFieldBlackList(){return h._POSignalsUtils.Util.isArray(this._configuration.keyboardFieldBlackList)&&(this._configuration.keyboardFieldBlackList=new Set(this._configuration.keyboardFieldBlackList)),this._configuration.keyboardFieldBlackList instanceof Set?this._configuration.keyboardFieldBlackList:y.KEYBOARD_FIELD_BLACK_LIST_DEFAULT}get keyboardCssSelectors(){return this._configuration.keyboardCssSelectors?this._configuration.keyboardCssSelectors:y.KEYBOARD_CSS_SELECTORS_DEFAULT}get keyboardCssSelectorsBlacklist(){return h._POSignalsUtils.Util.isArray(this._configuration.keyboardCssSelectorsBlacklist)?this._configuration.keyboardCssSelectorsBlacklist:y.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT}get keyboardIdentifierAttributes(){return h._POSignalsUtils.Util.isArray(this._configuration.keyboardIdentifierAttributes)?this._configuration.keyboardIdentifierAttributes:y.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT}get remoteTags(){return this._configuration.remoteTags?this._configuration.remoteTags:y.REMOTE_TAGS_DEFAULT}get maxSelectorChildren(){return typeof this._configuration.maxSelectorChildren=="number"&&this._configuration.maxSelectorChildren>0?this._configuration.maxSelectorChildren:y.MAX_SELECTOR_CHILDREN_DEFAULT}get eventsReduceFactorMap(){return this._configuration.eventsReduceFactorMap?this._configuration.eventsReduceFactorMap:y.EVENTS_REDUCE_FACTOR_MAP_DEFAULT}get propertyDescriptors(){return this._configuration.propertyDescriptors?this._configuration.propertyDescriptors:y.PROPERTY_DESCRIPTORS_DEFAULT}get additionalMediaCodecs(){return this._configuration.additionalMediaCodecs?this._configuration.additionalMediaCodecs:y.ADDITIONAL_MEDIA_CODECS_DEFAULT}get fingerprintTimeoutMillis(){return typeof this._configuration.fingerprintTimeoutMillis=="number"&&this._configuration.fingerprintTimeoutMillis>0?this._configuration.fingerprintTimeoutMillis:y.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT}get metadataDataPoints(){return this._configuration.metadataDataPoints?this._configuration.metadataDataPoints:y.METADATA_DATA_POINTS_DEFAULT}get uiModelingBlacklistRegex(){var c;return typeof((c=this._configuration.uiModeling)===null||c===void 0?void 0:c.blacklistRegex)=="string"?this._configuration.uiModeling.blacklistRegex:y.UI_MODELING_CONFIG_DEFAULT.blacklistRegex}get uiModelingElementFilters(){var c;return!((c=this._configuration.uiModeling)===null||c===void 0)&&c.uiElementFilters?this._configuration.uiModeling.uiElementFilters:y.UI_MODELING_CONFIG_DEFAULT.uiElementFilters}get uiModelingMaxMatchingParents(){var c;return typeof((c=this._configuration.uiModeling)===null||c===void 0?void 0:c.maxMatchingParents)=="number"?this._configuration.uiModeling.maxMatchingParents:y.UI_MODELING_CONFIG_DEFAULT.maxMatchingParents}get uiControlsConfig(){return h._POSignalsUtils.Util.isArray(this._configuration.uiControl)?this._configuration.uiControl:y.UI_CONTROL_LIST_DEFAULT}}y.ENABLED_DEFAULT=!0,y.BUFFER_SIZE_DEFAULT=10,y.MAX_SNAPSHOTS_COUNT_DEFAULT=500,y.METADATA_BLACK_LIST_DEFAULT=[],y.TAGS_BLACK_LIST_REGEX_DEFAULT="",y.BEHAVIORAL_BLACK_LIST_DEFAULT={},y.WEB_RTC_URL_DEFAULT="",y.EVENTS_BLACK_LIST_DEFAULT=new Set,y.EVENTS_TO_IGNORE_DEFAULT=new Set(["pointerover","pointerenter","pointerdown","pointermove","pointerup","pointercancel","pointerout","pointerleave","dragstart","dragexit","drop","dragend"]),y.MAX_INDIRECT_EVENTS_DEFAULT=15,y.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT=new Set(["copy","cut","paste","resize","orientationchange","languagechange","submit","select"]),y.INDIRECT_INTERVAL_MILLIS_DEFAULT=1e3,y.MOUSE_INTERVAL_MILLIS_DEFAULT=1e3,y.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT=1e3,y.MAX_MOUSE_EVENTS_DEFAULT=500,y.KEYBOARD_FIELD_BLACK_LIST_DEFAULT=new Set,y.KEYBOARD_CSS_SELECTORS_DEFAULT={},y.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT=[],y.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT=["data-selenium","data-selenium-id","data-testid","data-test-id","data-qa-id","data-id","id"],y.REMOTE_TAGS_DEFAULT={dv_form_submit:{selector:'[data-skbuttontype="form-submit"]'},login_attempt_email_domain:{selector:'[data-st-tag="login.login_attempt"]',operation:"email_domain",valueSelector:'[data-st-field="username"]',valueMandatory:!0},login_attempt_hash:{selector:'[data-st-tag="login.login_attempt"]',operation:"obfuscate",valueSelector:'[data-st-field="username"]',valueMandatory:!0},login_attempt_length:{selector:'[data-st-tag="login.login_attempt"]',operation:"length",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_email_domain:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"email_domain",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_hash:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"obfuscate",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_length:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"length",valueSelector:'[data-st-field="username"]',valueMandatory:!0}},y.MAX_SELECTOR_CHILDREN_DEFAULT=2,y.EVENTS_REDUCE_FACTOR_MAP_DEFAULT={},y.PROPERTY_DESCRIPTORS_DEFAULT={chrome:["app","csi","loadtimes","runtime"],navigator:["webdriver"],Navigator:["languages","hardwareConcurrency"],window:["outerWidth","outerHeight"],Screen:["width","height"]},y.ADDITIONAL_MEDIA_CODECS_DEFAULT={},y.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT=3e3,y.METADATA_DATA_POINTS_DEFAULT={},y.UI_CONTROL_LIST_DEFAULT=[],y.UI_MODELING_CONFIG_DEFAULT={blacklistRegex:"",uiElementFilters:{text:{maxLength:25},placeholder:{maxLength:25}},maxMatchingParents:2},y.SENSORS_DEFAULT={maxSensorSamples:1,sensorsDeltaInMillis:0},h.PointerParams=y})(ee||(ee={})),window._POSignalsEntities=ee,window._pingOneSignals=S;/**
79
79
  * [js-sha256]{@link https://github.com/emn178/js-sha256}
80
80
  *
81
81
  * @version 0.9.0
@@ -83,12 +83,12 @@ components: ${hh(Ye)}
83
83
  * @copyright Chen, Yi-Cyuan 2014-2017
84
84
  * @license MIT
85
85
  *//*! modernizr 3.13.0 (Custom Build) | MIT *
86
- * https://modernizr.com/download/?-ambientlight-applicationcache-audio-batteryapi-blobconstructor-contextmenu-cors-cryptography-customelements-customevent-customprotocolhandler-dart-dataview-eventlistener-forcetouch-fullscreen-gamepads-geolocation-ie8compat-intl-json-ligatures-matchmedia-messagechannel-notification-pagevisibility-performance-pointerevents-pointerlock-queryselector-quotamanagement-requestanimationframe-serviceworker-touchevents-typedarrays-vibrate-video-webgl-websockets-xdomainrequest !*/}const VP=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var js={},HP=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},w_={},pr={};let $f;const jP=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];pr.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17},pr.getSymbolTotalCodewords=function(t){return jP[t]},pr.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},pr.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');$f=t},pr.isKanjiModeEnabled=function(){return typeof $f<"u"},pr.toSJIS=function(t){return $f(t)};var su={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,i){if(e.isValid(r))return r;try{return t(r)}catch{return i}}})(su);function b_(){this.buffer=[],this.length=0}b_.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var qP=b_;function ul(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}ul.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},ul.prototype.get=function(e,t){return this.data[e*this.size+t]},ul.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},ul.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var GP=ul,S_={};(function(e){const t=pr.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,l=t(r),d=l===145?26:Math.ceil((l-13)/(2*i-2))*2,g=[l-7];for(let p=1;p<i-1;p++)g[p]=g[p-1]-d;return g.push(6),g.reverse()},e.getPositions=function(r){const i=[],l=e.getRowColCoords(r),d=l.length;for(let g=0;g<d;g++)for(let p=0;p<d;p++)g===0&&p===0||g===0&&p===d-1||g===d-1&&p===0||i.push([l[g],l[p]]);return i}})(S_);var E_={};const WP=pr.getSymbolSize,k_=7;E_.getPositions=function(t){const n=WP(t);return[[0,0],[n-k_,0],[0,n-k_]]};var C_={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const l=i.size;let d=0,g=0,p=0,_=null,S=null;for(let k=0;k<l;k++){g=p=0,_=S=null;for(let h=0;h<l;h++){let y=i.get(k,h);y===_?g++:(g>=5&&(d+=t.N1+(g-5)),_=y,g=1),y=i.get(h,k),y===S?p++:(p>=5&&(d+=t.N1+(p-5)),S=y,p=1)}g>=5&&(d+=t.N1+(g-5)),p>=5&&(d+=t.N1+(p-5))}return d},e.getPenaltyN2=function(i){const l=i.size;let d=0;for(let g=0;g<l-1;g++)for(let p=0;p<l-1;p++){const _=i.get(g,p)+i.get(g,p+1)+i.get(g+1,p)+i.get(g+1,p+1);(_===4||_===0)&&d++}return d*t.N2},e.getPenaltyN3=function(i){const l=i.size;let d=0,g=0,p=0;for(let _=0;_<l;_++){g=p=0;for(let S=0;S<l;S++)g=g<<1&2047|i.get(_,S),S>=10&&(g===1488||g===93)&&d++,p=p<<1&2047|i.get(S,_),S>=10&&(p===1488||p===93)&&d++}return d*t.N3},e.getPenaltyN4=function(i){let l=0;const d=i.data.length;for(let p=0;p<d;p++)l+=i.data[p];return Math.abs(Math.ceil(l*100/d/5)-10)*t.N4};function n(r,i,l){switch(r){case e.Patterns.PATTERN000:return(i+l)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return l%3===0;case e.Patterns.PATTERN011:return(i+l)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(l/3))%2===0;case e.Patterns.PATTERN101:return i*l%2+i*l%3===0;case e.Patterns.PATTERN110:return(i*l%2+i*l%3)%2===0;case e.Patterns.PATTERN111:return(i*l%3+(i+l)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,l){const d=l.size;for(let g=0;g<d;g++)for(let p=0;p<d;p++)l.isReserved(p,g)||l.xor(p,g,n(i,p,g))},e.getBestMask=function(i,l){const d=Object.keys(e.Patterns).length;let g=0,p=1/0;for(let _=0;_<d;_++){l(_),e.applyMask(_,i);const S=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(_,i),S<p&&(p=S,g=_)}return g}})(C_);var ou={};const Ea=su,lu=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],cu=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ou.getBlocksCount=function(t,n){switch(n){case Ea.L:return lu[(t-1)*4+0];case Ea.M:return lu[(t-1)*4+1];case Ea.Q:return lu[(t-1)*4+2];case Ea.H:return lu[(t-1)*4+3];default:return}},ou.getTotalCodewordsCount=function(t,n){switch(n){case Ea.L:return cu[(t-1)*4+0];case Ea.M:return cu[(t-1)*4+1];case Ea.Q:return cu[(t-1)*4+2];case Ea.H:return cu[(t-1)*4+3];default:return}};var I_={},uu={};const dl=new Uint8Array(512),du=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)dl[n]=t,du[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)dl[n]=dl[n-255]})(),uu.log=function(t){if(t<1)throw new Error("log("+t+")");return du[t]},uu.exp=function(t){return dl[t]},uu.mul=function(t,n){return t===0||n===0?0:dl[du[t]+du[n]]},function(e){const t=uu;e.mul=function(r,i){const l=new Uint8Array(r.length+i.length-1);for(let d=0;d<r.length;d++)for(let g=0;g<i.length;g++)l[d+g]^=t.mul(r[d],i[g]);return l},e.mod=function(r,i){let l=new Uint8Array(r);for(;l.length-i.length>=0;){const d=l[0];for(let p=0;p<i.length;p++)l[p]^=t.mul(i[p],d);let g=0;for(;g<l.length&&l[g]===0;)g++;l=l.slice(g)}return l},e.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let l=0;l<r;l++)i=e.mul(i,new Uint8Array([1,t.exp(l)]));return i}}(I_);const A_=I_;function Zf(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Zf.prototype.initialize=function(t){this.degree=t,this.genPoly=A_.generateECPolynomial(this.degree)},Zf.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const r=A_.mod(n,this.genPoly),i=this.degree-r.length;if(i>0){const l=new Uint8Array(this.degree);return l.set(r,i),l}return r};var KP=Zf,T_={},ka={},Yf={};Yf.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var pi={};const O_="[0-9]+",$P="[A-Z $%*+\\-./:]+";let fl="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";fl=fl.replace(/u/g,"\\u");const ZP="(?:(?![A-Z0-9 $%*+\\-./:]|"+fl+`)(?:.|[\r
87
- ]))+`;pi.KANJI=new RegExp(fl,"g"),pi.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),pi.BYTE=new RegExp(ZP,"g"),pi.NUMERIC=new RegExp(O_,"g"),pi.ALPHANUMERIC=new RegExp($P,"g");const YP=new RegExp("^"+fl+"$"),JP=new RegExp("^"+O_+"$"),XP=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");pi.testKanji=function(t){return YP.test(t)},pi.testNumeric=function(t){return JP.test(t)},pi.testAlphanumeric=function(t){return XP.test(t)},function(e){const t=Yf,n=pi;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(l,d){if(!l.ccBits)throw new Error("Invalid mode: "+l);if(!t.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?l.ccBits[0]:d<27?l.ccBits[1]:l.ccBits[2]},e.getBestModeForData=function(l){return n.testNumeric(l)?e.NUMERIC:n.testAlphanumeric(l)?e.ALPHANUMERIC:n.testKanji(l)?e.KANJI:e.BYTE},e.toString=function(l){if(l&&l.id)return l.id;throw new Error("Invalid mode")},e.isValid=function(l){return l&&l.bit&&l.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(l,d){if(e.isValid(l))return l;try{return r(l)}catch{return d}}}(ka),function(e){const t=pr,n=ou,r=su,i=ka,l=Yf,d=7973,g=t.getBCHDigit(d);function p(h,y,b){for(let c=1;c<=40;c++)if(y<=e.getCapacity(c,b,h))return c}function _(h,y){return i.getCharCountIndicator(h,y)+4}function S(h,y){let b=0;return h.forEach(function(c){const u=_(c.mode,y);b+=u+c.getBitsLength()}),b}function k(h,y){for(let b=1;b<=40;b++)if(S(h,b)<=e.getCapacity(b,y,i.MIXED))return b}e.from=function(y,b){return l.isValid(y)?parseInt(y,10):b},e.getCapacity=function(y,b,c){if(!l.isValid(y))throw new Error("Invalid QR Code version");typeof c>"u"&&(c=i.BYTE);const u=t.getSymbolTotalCodewords(y),f=n.getTotalCodewordsCount(y,b),s=(u-f)*8;if(c===i.MIXED)return s;const o=s-_(c,y);switch(c){case i.NUMERIC:return Math.floor(o/10*3);case i.ALPHANUMERIC:return Math.floor(o/11*2);case i.KANJI:return Math.floor(o/13);case i.BYTE:default:return Math.floor(o/8)}},e.getBestVersionForData=function(y,b){let c;const u=r.from(b,r.M);if(Array.isArray(y)){if(y.length>1)return k(y,u);if(y.length===0)return 1;c=y[0]}else c=y;return p(c.mode,c.getLength(),u)},e.getEncodedBits=function(y){if(!l.isValid(y)||y<7)throw new Error("Invalid QR Code version");let b=y<<12;for(;t.getBCHDigit(b)-g>=0;)b^=d<<t.getBCHDigit(b)-g;return y<<12|b}}(T_);var P_={};const Jf=pr,R_=1335,QP=21522,M_=Jf.getBCHDigit(R_);P_.getEncodedBits=function(t,n){const r=t.bit<<3|n;let i=r<<10;for(;Jf.getBCHDigit(i)-M_>=0;)i^=R_<<Jf.getBCHDigit(i)-M_;return(r<<10|i)^QP};var L_={};const eR=ka;function qs(e){this.mode=eR.NUMERIC,this.data=e.toString()}qs.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},qs.prototype.getLength=function(){return this.data.length},qs.prototype.getBitsLength=function(){return qs.getBitsLength(this.data.length)},qs.prototype.write=function(t){let n,r,i;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),i=parseInt(r,10),t.put(i,10);const l=this.data.length-n;l>0&&(r=this.data.substr(n),i=parseInt(r,10),t.put(i,l*3+1))};var tR=qs;const nR=ka,Xf=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Gs(e){this.mode=nR.ALPHANUMERIC,this.data=e}Gs.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},Gs.prototype.getLength=function(){return this.data.length},Gs.prototype.getBitsLength=function(){return Gs.getBitsLength(this.data.length)},Gs.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=Xf.indexOf(this.data[n])*45;r+=Xf.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(Xf.indexOf(this.data[n]),6)};var rR=Gs,iR=function(t){for(var n=[],r=t.length,i=0;i<r;i++){var l=t.charCodeAt(i);if(l>=55296&&l<=56319&&r>i+1){var d=t.charCodeAt(i+1);d>=56320&&d<=57343&&(l=(l-55296)*1024+d-56320+65536,i+=1)}if(l<128){n.push(l);continue}if(l<2048){n.push(l>>6|192),n.push(l&63|128);continue}if(l<55296||l>=57344&&l<65536){n.push(l>>12|224),n.push(l>>6&63|128),n.push(l&63|128);continue}if(l>=65536&&l<=1114111){n.push(l>>18|240),n.push(l>>12&63|128),n.push(l>>6&63|128),n.push(l&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const aR=iR,sR=ka;function Ws(e){this.mode=sR.BYTE,typeof e=="string"&&(e=aR(e)),this.data=new Uint8Array(e)}Ws.getBitsLength=function(t){return t*8},Ws.prototype.getLength=function(){return this.data.length},Ws.prototype.getBitsLength=function(){return Ws.getBitsLength(this.data.length)},Ws.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var oR=Ws;const lR=ka,cR=pr;function Ks(e){this.mode=lR.KANJI,this.data=e}Ks.getBitsLength=function(t){return t*13},Ks.prototype.getLength=function(){return this.data.length},Ks.prototype.getBitsLength=function(){return Ks.getBitsLength(this.data.length)},Ks.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=cR.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
88
- Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var uR=Ks,D_={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,i){var l={},d={};d[r]=0;var g=t.PriorityQueue.make();g.push(r,0);for(var p,_,S,k,h,y,b,c,u;!g.empty();){p=g.pop(),_=p.value,k=p.cost,h=n[_]||{};for(S in h)h.hasOwnProperty(S)&&(y=h[S],b=k+y,c=d[S],u=typeof d[S]>"u",(u||c>b)&&(d[S]=b,g.push(S,b),l[S]=_))}if(typeof i<"u"&&typeof d[i]>"u"){var f=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(f)}return l},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],l=r;l;)i.push(l),n[l],l=n[l];return i.reverse(),i},find_path:function(n,r,i){var l=t.single_source_shortest_paths(n,r,i);return t.extract_shortest_path_from_predecessor_list(l,i)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,i={},l;n=n||{};for(l in r)r.hasOwnProperty(l)&&(i[l]=r[l]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(D_);var dR=D_.exports;(function(e){const t=ka,n=tR,r=rR,i=oR,l=uR,d=pi,g=pr,p=dR;function _(f){return unescape(encodeURIComponent(f)).length}function S(f,s,o){const a=[];let m;for(;(m=f.exec(o))!==null;)a.push({data:m[0],index:m.index,mode:s,length:m[0].length});return a}function k(f){const s=S(d.NUMERIC,t.NUMERIC,f),o=S(d.ALPHANUMERIC,t.ALPHANUMERIC,f);let a,m;return g.isKanjiModeEnabled()?(a=S(d.BYTE,t.BYTE,f),m=S(d.KANJI,t.KANJI,f)):(a=S(d.BYTE_KANJI,t.BYTE,f),m=[]),s.concat(o,a,m).sort(function(w,A){return w.index-A.index}).map(function(w){return{data:w.data,mode:w.mode,length:w.length}})}function h(f,s){switch(s){case t.NUMERIC:return n.getBitsLength(f);case t.ALPHANUMERIC:return r.getBitsLength(f);case t.KANJI:return l.getBitsLength(f);case t.BYTE:return i.getBitsLength(f)}}function y(f){return f.reduce(function(s,o){const a=s.length-1>=0?s[s.length-1]:null;return a&&a.mode===o.mode?(s[s.length-1].data+=o.data,s):(s.push(o),s)},[])}function b(f){const s=[];for(let o=0;o<f.length;o++){const a=f[o];switch(a.mode){case t.NUMERIC:s.push([a,{data:a.data,mode:t.ALPHANUMERIC,length:a.length},{data:a.data,mode:t.BYTE,length:a.length}]);break;case t.ALPHANUMERIC:s.push([a,{data:a.data,mode:t.BYTE,length:a.length}]);break;case t.KANJI:s.push([a,{data:a.data,mode:t.BYTE,length:_(a.data)}]);break;case t.BYTE:s.push([{data:a.data,mode:t.BYTE,length:_(a.data)}])}}return s}function c(f,s){const o={},a={start:{}};let m=["start"];for(let v=0;v<f.length;v++){const w=f[v],A=[];for(let E=0;E<w.length;E++){const O=w[E],T=""+v+E;A.push(T),o[T]={node:O,lastCount:0},a[T]={};for(let M=0;M<m.length;M++){const P=m[M];o[P]&&o[P].node.mode===O.mode?(a[P][T]=h(o[P].lastCount+O.length,O.mode)-h(o[P].lastCount,O.mode),o[P].lastCount+=O.length):(o[P]&&(o[P].lastCount=O.length),a[P][T]=h(O.length,O.mode)+4+t.getCharCountIndicator(O.mode,s))}}m=A}for(let v=0;v<m.length;v++)a[m[v]].end=0;return{map:a,table:o}}function u(f,s){let o;const a=t.getBestModeForData(f);if(o=t.from(s,a),o!==t.BYTE&&o.bit<a.bit)throw new Error('"'+f+'" cannot be encoded with mode '+t.toString(o)+`.
89
- Suggested mode is: `+t.toString(a));switch(o===t.KANJI&&!g.isKanjiModeEnabled()&&(o=t.BYTE),o){case t.NUMERIC:return new n(f);case t.ALPHANUMERIC:return new r(f);case t.KANJI:return new l(f);case t.BYTE:return new i(f)}}e.fromArray=function(s){return s.reduce(function(o,a){return typeof a=="string"?o.push(u(a,null)):a.data&&o.push(u(a.data,a.mode)),o},[])},e.fromString=function(s,o){const a=k(s,g.isKanjiModeEnabled()),m=b(a),v=c(m,o),w=p.find_path(v.map,"start","end"),A=[];for(let E=1;E<w.length-1;E++)A.push(v.table[w[E]].node);return e.fromArray(y(A))},e.rawSplit=function(s){return e.fromArray(k(s,g.isKanjiModeEnabled()))}})(L_);const fu=pr,Qf=su,fR=qP,hR=GP,gR=S_,pR=E_,eh=C_,th=ou,mR=KP,hu=T_,vR=P_,yR=ka,nh=L_;function _R(e,t){const n=e.size,r=pR.getPositions(t);for(let i=0;i<r.length;i++){const l=r[i][0],d=r[i][1];for(let g=-1;g<=7;g++)if(!(l+g<=-1||n<=l+g))for(let p=-1;p<=7;p++)d+p<=-1||n<=d+p||(g>=0&&g<=6&&(p===0||p===6)||p>=0&&p<=6&&(g===0||g===6)||g>=2&&g<=4&&p>=2&&p<=4?e.set(l+g,d+p,!0,!0):e.set(l+g,d+p,!1,!0))}}function wR(e){const t=e.size;for(let n=8;n<t-8;n++){const r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function bR(e,t){const n=gR.getPositions(t);for(let r=0;r<n.length;r++){const i=n[r][0],l=n[r][1];for(let d=-2;d<=2;d++)for(let g=-2;g<=2;g++)d===-2||d===2||g===-2||g===2||d===0&&g===0?e.set(i+d,l+g,!0,!0):e.set(i+d,l+g,!1,!0)}}function SR(e,t){const n=e.size,r=hu.getEncodedBits(t);let i,l,d;for(let g=0;g<18;g++)i=Math.floor(g/3),l=g%3+n-8-3,d=(r>>g&1)===1,e.set(i,l,d,!0),e.set(l,i,d,!0)}function rh(e,t,n){const r=e.size,i=vR.getEncodedBits(t,n);let l,d;for(l=0;l<15;l++)d=(i>>l&1)===1,l<6?e.set(l,8,d,!0):l<8?e.set(l+1,8,d,!0):e.set(r-15+l,8,d,!0),l<8?e.set(8,r-l-1,d,!0):l<9?e.set(8,15-l-1+1,d,!0):e.set(8,15-l-1,d,!0);e.set(r-8,8,1,!0)}function ER(e,t){const n=e.size;let r=-1,i=n-1,l=7,d=0;for(let g=n-1;g>0;g-=2)for(g===6&&g--;;){for(let p=0;p<2;p++)if(!e.isReserved(i,g-p)){let _=!1;d<t.length&&(_=(t[d]>>>l&1)===1),e.set(i,g-p,_),l--,l===-1&&(d++,l=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function kR(e,t,n){const r=new fR;n.forEach(function(p){r.put(p.mode.bit,4),r.put(p.getLength(),yR.getCharCountIndicator(p.mode,e)),p.write(r)});const i=fu.getSymbolTotalCodewords(e),l=th.getTotalCodewordsCount(e,t),d=(i-l)*8;for(r.getLengthInBits()+4<=d&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const g=(d-r.getLengthInBits())/8;for(let p=0;p<g;p++)r.put(p%2?17:236,8);return CR(r,e,t)}function CR(e,t,n){const r=fu.getSymbolTotalCodewords(t),i=th.getTotalCodewordsCount(t,n),l=r-i,d=th.getBlocksCount(t,n),g=r%d,p=d-g,_=Math.floor(r/d),S=Math.floor(l/d),k=S+1,h=_-S,y=new mR(h);let b=0;const c=new Array(d),u=new Array(d);let f=0;const s=new Uint8Array(e.buffer);for(let w=0;w<d;w++){const A=w<p?S:k;c[w]=s.slice(b,b+A),u[w]=y.encode(c[w]),b+=A,f=Math.max(f,A)}const o=new Uint8Array(r);let a=0,m,v;for(m=0;m<f;m++)for(v=0;v<d;v++)m<c[v].length&&(o[a++]=c[v][m]);for(m=0;m<h;m++)for(v=0;v<d;v++)o[a++]=u[v][m];return o}function IR(e,t,n,r){let i;if(Array.isArray(e))i=nh.fromArray(e);else if(typeof e=="string"){let _=t;if(!_){const S=nh.rawSplit(e);_=hu.getBestVersionForData(S,n)}i=nh.fromString(e,_||40)}else throw new Error("Invalid data");const l=hu.getBestVersionForData(i,n);if(!l)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=l;else if(t<l)throw new Error(`
86
+ * https://modernizr.com/download/?-ambientlight-applicationcache-audio-batteryapi-blobconstructor-contextmenu-cors-cryptography-customelements-customevent-customprotocolhandler-dart-dataview-eventlistener-forcetouch-fullscreen-gamepads-geolocation-ie8compat-intl-json-ligatures-matchmedia-messagechannel-notification-pagevisibility-performance-pointerevents-pointerlock-queryselector-quotamanagement-requestanimationframe-serviceworker-touchevents-typedarrays-vibrate-video-webgl-websockets-xdomainrequest !*/}const iP=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var qa={},sP=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},A_={},mr={};let Xf;const aP=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];mr.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17},mr.getSymbolTotalCodewords=function(t){return aP[t]},mr.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},mr.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Xf=t},mr.isKanjiModeEnabled=function(){return typeof Xf<"u"},mr.toSJIS=function(t){return Xf(t)};var du={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,i){if(e.isValid(r))return r;try{return t(r)}catch{return i}}})(du);function T_(){this.buffer=[],this.length=0}T_.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var oP=T_;function hl(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}hl.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},hl.prototype.get=function(e,t){return this.data[e*this.size+t]},hl.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},hl.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var lP=hl,O_={};(function(e){const t=mr.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,l=t(r),d=l===145?26:Math.ceil((l-13)/(2*i-2))*2,g=[l-7];for(let p=1;p<i-1;p++)g[p]=g[p-1]-d;return g.push(6),g.reverse()},e.getPositions=function(r){const i=[],l=e.getRowColCoords(r),d=l.length;for(let g=0;g<d;g++)for(let p=0;p<d;p++)g===0&&p===0||g===0&&p===d-1||g===d-1&&p===0||i.push([l[g],l[p]]);return i}})(O_);var P_={};const cP=mr.getSymbolSize,R_=7;P_.getPositions=function(t){const n=cP(t);return[[0,0],[n-R_,0],[0,n-R_]]};var M_={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const l=i.size;let d=0,g=0,p=0,_=null,S=null;for(let k=0;k<l;k++){g=p=0,_=S=null;for(let h=0;h<l;h++){let y=i.get(k,h);y===_?g++:(g>=5&&(d+=t.N1+(g-5)),_=y,g=1),y=i.get(h,k),y===S?p++:(p>=5&&(d+=t.N1+(p-5)),S=y,p=1)}g>=5&&(d+=t.N1+(g-5)),p>=5&&(d+=t.N1+(p-5))}return d},e.getPenaltyN2=function(i){const l=i.size;let d=0;for(let g=0;g<l-1;g++)for(let p=0;p<l-1;p++){const _=i.get(g,p)+i.get(g,p+1)+i.get(g+1,p)+i.get(g+1,p+1);(_===4||_===0)&&d++}return d*t.N2},e.getPenaltyN3=function(i){const l=i.size;let d=0,g=0,p=0;for(let _=0;_<l;_++){g=p=0;for(let S=0;S<l;S++)g=g<<1&2047|i.get(_,S),S>=10&&(g===1488||g===93)&&d++,p=p<<1&2047|i.get(S,_),S>=10&&(p===1488||p===93)&&d++}return d*t.N3},e.getPenaltyN4=function(i){let l=0;const d=i.data.length;for(let p=0;p<d;p++)l+=i.data[p];return Math.abs(Math.ceil(l*100/d/5)-10)*t.N4};function n(r,i,l){switch(r){case e.Patterns.PATTERN000:return(i+l)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return l%3===0;case e.Patterns.PATTERN011:return(i+l)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(l/3))%2===0;case e.Patterns.PATTERN101:return i*l%2+i*l%3===0;case e.Patterns.PATTERN110:return(i*l%2+i*l%3)%2===0;case e.Patterns.PATTERN111:return(i*l%3+(i+l)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,l){const d=l.size;for(let g=0;g<d;g++)for(let p=0;p<d;p++)l.isReserved(p,g)||l.xor(p,g,n(i,p,g))},e.getBestMask=function(i,l){const d=Object.keys(e.Patterns).length;let g=0,p=1/0;for(let _=0;_<d;_++){l(_),e.applyMask(_,i);const S=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(_,i),S<p&&(p=S,g=_)}return g}})(M_);var fu={};const Cs=du,hu=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],gu=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];fu.getBlocksCount=function(t,n){switch(n){case Cs.L:return hu[(t-1)*4+0];case Cs.M:return hu[(t-1)*4+1];case Cs.Q:return hu[(t-1)*4+2];case Cs.H:return hu[(t-1)*4+3];default:return}},fu.getTotalCodewordsCount=function(t,n){switch(n){case Cs.L:return gu[(t-1)*4+0];case Cs.M:return gu[(t-1)*4+1];case Cs.Q:return gu[(t-1)*4+2];case Cs.H:return gu[(t-1)*4+3];default:return}};var L_={},pu={};const gl=new Uint8Array(512),mu=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)gl[n]=t,mu[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)gl[n]=gl[n-255]})(),pu.log=function(t){if(t<1)throw new Error("log("+t+")");return mu[t]},pu.exp=function(t){return gl[t]},pu.mul=function(t,n){return t===0||n===0?0:gl[mu[t]+mu[n]]},function(e){const t=pu;e.mul=function(r,i){const l=new Uint8Array(r.length+i.length-1);for(let d=0;d<r.length;d++)for(let g=0;g<i.length;g++)l[d+g]^=t.mul(r[d],i[g]);return l},e.mod=function(r,i){let l=new Uint8Array(r);for(;l.length-i.length>=0;){const d=l[0];for(let p=0;p<i.length;p++)l[p]^=t.mul(i[p],d);let g=0;for(;g<l.length&&l[g]===0;)g++;l=l.slice(g)}return l},e.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let l=0;l<r;l++)i=e.mul(i,new Uint8Array([1,t.exp(l)]));return i}}(L_);const D_=L_;function Qf(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Qf.prototype.initialize=function(t){this.degree=t,this.genPoly=D_.generateECPolynomial(this.degree)},Qf.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const r=D_.mod(n,this.genPoly),i=this.degree-r.length;if(i>0){const l=new Uint8Array(this.degree);return l.set(r,i),l}return r};var uP=Qf,x_={},Is={},eh={};eh.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var yi={};const N_="[0-9]+",dP="[A-Z $%*+\\-./:]+";let pl="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";pl=pl.replace(/u/g,"\\u");const fP="(?:(?![A-Z0-9 $%*+\\-./:]|"+pl+`)(?:.|[\r
87
+ ]))+`;yi.KANJI=new RegExp(pl,"g"),yi.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),yi.BYTE=new RegExp(fP,"g"),yi.NUMERIC=new RegExp(N_,"g"),yi.ALPHANUMERIC=new RegExp(dP,"g");const hP=new RegExp("^"+pl+"$"),gP=new RegExp("^"+N_+"$"),pP=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");yi.testKanji=function(t){return hP.test(t)},yi.testNumeric=function(t){return gP.test(t)},yi.testAlphanumeric=function(t){return pP.test(t)},function(e){const t=eh,n=yi;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(l,d){if(!l.ccBits)throw new Error("Invalid mode: "+l);if(!t.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?l.ccBits[0]:d<27?l.ccBits[1]:l.ccBits[2]},e.getBestModeForData=function(l){return n.testNumeric(l)?e.NUMERIC:n.testAlphanumeric(l)?e.ALPHANUMERIC:n.testKanji(l)?e.KANJI:e.BYTE},e.toString=function(l){if(l&&l.id)return l.id;throw new Error("Invalid mode")},e.isValid=function(l){return l&&l.bit&&l.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(l,d){if(e.isValid(l))return l;try{return r(l)}catch{return d}}}(Is),function(e){const t=mr,n=fu,r=du,i=Is,l=eh,d=7973,g=t.getBCHDigit(d);function p(h,y,b){for(let c=1;c<=40;c++)if(y<=e.getCapacity(c,b,h))return c}function _(h,y){return i.getCharCountIndicator(h,y)+4}function S(h,y){let b=0;return h.forEach(function(c){const u=_(c.mode,y);b+=u+c.getBitsLength()}),b}function k(h,y){for(let b=1;b<=40;b++)if(S(h,b)<=e.getCapacity(b,y,i.MIXED))return b}e.from=function(y,b){return l.isValid(y)?parseInt(y,10):b},e.getCapacity=function(y,b,c){if(!l.isValid(y))throw new Error("Invalid QR Code version");typeof c>"u"&&(c=i.BYTE);const u=t.getSymbolTotalCodewords(y),f=n.getTotalCodewordsCount(y,b),a=(u-f)*8;if(c===i.MIXED)return a;const o=a-_(c,y);switch(c){case i.NUMERIC:return Math.floor(o/10*3);case i.ALPHANUMERIC:return Math.floor(o/11*2);case i.KANJI:return Math.floor(o/13);case i.BYTE:default:return Math.floor(o/8)}},e.getBestVersionForData=function(y,b){let c;const u=r.from(b,r.M);if(Array.isArray(y)){if(y.length>1)return k(y,u);if(y.length===0)return 1;c=y[0]}else c=y;return p(c.mode,c.getLength(),u)},e.getEncodedBits=function(y){if(!l.isValid(y)||y<7)throw new Error("Invalid QR Code version");let b=y<<12;for(;t.getBCHDigit(b)-g>=0;)b^=d<<t.getBCHDigit(b)-g;return y<<12|b}}(x_);var U_={};const th=mr,F_=1335,mP=21522,B_=th.getBCHDigit(F_);U_.getEncodedBits=function(t,n){const r=t.bit<<3|n;let i=r<<10;for(;th.getBCHDigit(i)-B_>=0;)i^=F_<<th.getBCHDigit(i)-B_;return(r<<10|i)^mP};var z_={};const vP=Is;function Wa(e){this.mode=vP.NUMERIC,this.data=e.toString()}Wa.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},Wa.prototype.getLength=function(){return this.data.length},Wa.prototype.getBitsLength=function(){return Wa.getBitsLength(this.data.length)},Wa.prototype.write=function(t){let n,r,i;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),i=parseInt(r,10),t.put(i,10);const l=this.data.length-n;l>0&&(r=this.data.substr(n),i=parseInt(r,10),t.put(i,l*3+1))};var yP=Wa;const _P=Is,nh=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Ga(e){this.mode=_P.ALPHANUMERIC,this.data=e}Ga.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},Ga.prototype.getLength=function(){return this.data.length},Ga.prototype.getBitsLength=function(){return Ga.getBitsLength(this.data.length)},Ga.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=nh.indexOf(this.data[n])*45;r+=nh.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(nh.indexOf(this.data[n]),6)};var wP=Ga,bP=function(t){for(var n=[],r=t.length,i=0;i<r;i++){var l=t.charCodeAt(i);if(l>=55296&&l<=56319&&r>i+1){var d=t.charCodeAt(i+1);d>=56320&&d<=57343&&(l=(l-55296)*1024+d-56320+65536,i+=1)}if(l<128){n.push(l);continue}if(l<2048){n.push(l>>6|192),n.push(l&63|128);continue}if(l<55296||l>=57344&&l<65536){n.push(l>>12|224),n.push(l>>6&63|128),n.push(l&63|128);continue}if(l>=65536&&l<=1114111){n.push(l>>18|240),n.push(l>>12&63|128),n.push(l>>6&63|128),n.push(l&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const SP=bP,EP=Is;function Ka(e){this.mode=EP.BYTE,typeof e=="string"&&(e=SP(e)),this.data=new Uint8Array(e)}Ka.getBitsLength=function(t){return t*8},Ka.prototype.getLength=function(){return this.data.length},Ka.prototype.getBitsLength=function(){return Ka.getBitsLength(this.data.length)},Ka.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var kP=Ka;const CP=Is,IP=mr;function $a(e){this.mode=CP.KANJI,this.data=e}$a.getBitsLength=function(t){return t*13},$a.prototype.getLength=function(){return this.data.length},$a.prototype.getBitsLength=function(){return $a.getBitsLength(this.data.length)},$a.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=IP.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
88
+ Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var AP=$a,V_={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,i){var l={},d={};d[r]=0;var g=t.PriorityQueue.make();g.push(r,0);for(var p,_,S,k,h,y,b,c,u;!g.empty();){p=g.pop(),_=p.value,k=p.cost,h=n[_]||{};for(S in h)h.hasOwnProperty(S)&&(y=h[S],b=k+y,c=d[S],u=typeof d[S]>"u",(u||c>b)&&(d[S]=b,g.push(S,b),l[S]=_))}if(typeof i<"u"&&typeof d[i]>"u"){var f=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(f)}return l},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],l=r;l;)i.push(l),n[l],l=n[l];return i.reverse(),i},find_path:function(n,r,i){var l=t.single_source_shortest_paths(n,r,i);return t.extract_shortest_path_from_predecessor_list(l,i)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,i={},l;n=n||{};for(l in r)r.hasOwnProperty(l)&&(i[l]=r[l]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(V_);var TP=V_.exports;(function(e){const t=Is,n=yP,r=wP,i=kP,l=AP,d=yi,g=mr,p=TP;function _(f){return unescape(encodeURIComponent(f)).length}function S(f,a,o){const s=[];let m;for(;(m=f.exec(o))!==null;)s.push({data:m[0],index:m.index,mode:a,length:m[0].length});return s}function k(f){const a=S(d.NUMERIC,t.NUMERIC,f),o=S(d.ALPHANUMERIC,t.ALPHANUMERIC,f);let s,m;return g.isKanjiModeEnabled()?(s=S(d.BYTE,t.BYTE,f),m=S(d.KANJI,t.KANJI,f)):(s=S(d.BYTE_KANJI,t.BYTE,f),m=[]),a.concat(o,s,m).sort(function(w,A){return w.index-A.index}).map(function(w){return{data:w.data,mode:w.mode,length:w.length}})}function h(f,a){switch(a){case t.NUMERIC:return n.getBitsLength(f);case t.ALPHANUMERIC:return r.getBitsLength(f);case t.KANJI:return l.getBitsLength(f);case t.BYTE:return i.getBitsLength(f)}}function y(f){return f.reduce(function(a,o){const s=a.length-1>=0?a[a.length-1]:null;return s&&s.mode===o.mode?(a[a.length-1].data+=o.data,a):(a.push(o),a)},[])}function b(f){const a=[];for(let o=0;o<f.length;o++){const s=f[o];switch(s.mode){case t.NUMERIC:a.push([s,{data:s.data,mode:t.ALPHANUMERIC,length:s.length},{data:s.data,mode:t.BYTE,length:s.length}]);break;case t.ALPHANUMERIC:a.push([s,{data:s.data,mode:t.BYTE,length:s.length}]);break;case t.KANJI:a.push([s,{data:s.data,mode:t.BYTE,length:_(s.data)}]);break;case t.BYTE:a.push([{data:s.data,mode:t.BYTE,length:_(s.data)}])}}return a}function c(f,a){const o={},s={start:{}};let m=["start"];for(let v=0;v<f.length;v++){const w=f[v],A=[];for(let E=0;E<w.length;E++){const O=w[E],T=""+v+E;A.push(T),o[T]={node:O,lastCount:0},s[T]={};for(let L=0;L<m.length;L++){const P=m[L];o[P]&&o[P].node.mode===O.mode?(s[P][T]=h(o[P].lastCount+O.length,O.mode)-h(o[P].lastCount,O.mode),o[P].lastCount+=O.length):(o[P]&&(o[P].lastCount=O.length),s[P][T]=h(O.length,O.mode)+4+t.getCharCountIndicator(O.mode,a))}}m=A}for(let v=0;v<m.length;v++)s[m[v]].end=0;return{map:s,table:o}}function u(f,a){let o;const s=t.getBestModeForData(f);if(o=t.from(a,s),o!==t.BYTE&&o.bit<s.bit)throw new Error('"'+f+'" cannot be encoded with mode '+t.toString(o)+`.
89
+ Suggested mode is: `+t.toString(s));switch(o===t.KANJI&&!g.isKanjiModeEnabled()&&(o=t.BYTE),o){case t.NUMERIC:return new n(f);case t.ALPHANUMERIC:return new r(f);case t.KANJI:return new l(f);case t.BYTE:return new i(f)}}e.fromArray=function(a){return a.reduce(function(o,s){return typeof s=="string"?o.push(u(s,null)):s.data&&o.push(u(s.data,s.mode)),o},[])},e.fromString=function(a,o){const s=k(a,g.isKanjiModeEnabled()),m=b(s),v=c(m,o),w=p.find_path(v.map,"start","end"),A=[];for(let E=1;E<w.length-1;E++)A.push(v.table[w[E]].node);return e.fromArray(y(A))},e.rawSplit=function(a){return e.fromArray(k(a,g.isKanjiModeEnabled()))}})(z_);const vu=mr,rh=du,OP=oP,PP=lP,RP=O_,MP=P_,ih=M_,sh=fu,LP=uP,yu=x_,DP=U_,xP=Is,ah=z_;function NP(e,t){const n=e.size,r=MP.getPositions(t);for(let i=0;i<r.length;i++){const l=r[i][0],d=r[i][1];for(let g=-1;g<=7;g++)if(!(l+g<=-1||n<=l+g))for(let p=-1;p<=7;p++)d+p<=-1||n<=d+p||(g>=0&&g<=6&&(p===0||p===6)||p>=0&&p<=6&&(g===0||g===6)||g>=2&&g<=4&&p>=2&&p<=4?e.set(l+g,d+p,!0,!0):e.set(l+g,d+p,!1,!0))}}function UP(e){const t=e.size;for(let n=8;n<t-8;n++){const r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function FP(e,t){const n=RP.getPositions(t);for(let r=0;r<n.length;r++){const i=n[r][0],l=n[r][1];for(let d=-2;d<=2;d++)for(let g=-2;g<=2;g++)d===-2||d===2||g===-2||g===2||d===0&&g===0?e.set(i+d,l+g,!0,!0):e.set(i+d,l+g,!1,!0)}}function BP(e,t){const n=e.size,r=yu.getEncodedBits(t);let i,l,d;for(let g=0;g<18;g++)i=Math.floor(g/3),l=g%3+n-8-3,d=(r>>g&1)===1,e.set(i,l,d,!0),e.set(l,i,d,!0)}function oh(e,t,n){const r=e.size,i=DP.getEncodedBits(t,n);let l,d;for(l=0;l<15;l++)d=(i>>l&1)===1,l<6?e.set(l,8,d,!0):l<8?e.set(l+1,8,d,!0):e.set(r-15+l,8,d,!0),l<8?e.set(8,r-l-1,d,!0):l<9?e.set(8,15-l-1+1,d,!0):e.set(8,15-l-1,d,!0);e.set(r-8,8,1,!0)}function zP(e,t){const n=e.size;let r=-1,i=n-1,l=7,d=0;for(let g=n-1;g>0;g-=2)for(g===6&&g--;;){for(let p=0;p<2;p++)if(!e.isReserved(i,g-p)){let _=!1;d<t.length&&(_=(t[d]>>>l&1)===1),e.set(i,g-p,_),l--,l===-1&&(d++,l=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function VP(e,t,n){const r=new OP;n.forEach(function(p){r.put(p.mode.bit,4),r.put(p.getLength(),xP.getCharCountIndicator(p.mode,e)),p.write(r)});const i=vu.getSymbolTotalCodewords(e),l=sh.getTotalCodewordsCount(e,t),d=(i-l)*8;for(r.getLengthInBits()+4<=d&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const g=(d-r.getLengthInBits())/8;for(let p=0;p<g;p++)r.put(p%2?17:236,8);return HP(r,e,t)}function HP(e,t,n){const r=vu.getSymbolTotalCodewords(t),i=sh.getTotalCodewordsCount(t,n),l=r-i,d=sh.getBlocksCount(t,n),g=r%d,p=d-g,_=Math.floor(r/d),S=Math.floor(l/d),k=S+1,h=_-S,y=new LP(h);let b=0;const c=new Array(d),u=new Array(d);let f=0;const a=new Uint8Array(e.buffer);for(let w=0;w<d;w++){const A=w<p?S:k;c[w]=a.slice(b,b+A),u[w]=y.encode(c[w]),b+=A,f=Math.max(f,A)}const o=new Uint8Array(r);let s=0,m,v;for(m=0;m<f;m++)for(v=0;v<d;v++)m<c[v].length&&(o[s++]=c[v][m]);for(m=0;m<h;m++)for(v=0;v<d;v++)o[s++]=u[v][m];return o}function jP(e,t,n,r){let i;if(Array.isArray(e))i=ah.fromArray(e);else if(typeof e=="string"){let _=t;if(!_){const S=ah.rawSplit(e);_=yu.getBestVersionForData(S,n)}i=ah.fromString(e,_||40)}else throw new Error("Invalid data");const l=yu.getBestVersionForData(i,n);if(!l)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=l;else if(t<l)throw new Error(`
90
90
  The chosen QR Code version cannot contain this amount of data.
91
91
  Minimum version required to store current data is: `+l+`.
92
- `);const d=kR(t,n,i),g=fu.getSymbolSize(t),p=new hR(g);return _R(p,t),wR(p),bR(p,t),rh(p,n,0),t>=7&&SR(p,t),ER(p,d),isNaN(r)&&(r=eh.getBestMask(p,rh.bind(null,p,n))),eh.applyMask(r,p),rh(p,n,r),{modules:p,version:t,errorCorrectionLevel:n,maskPattern:r,segments:i}}w_.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let r=Qf.M,i,l;return typeof n<"u"&&(r=Qf.from(n.errorCorrectionLevel,Qf.M),i=hu.from(n.version),l=eh.from(n.maskPattern),n.toSJISFunc&&fu.setToSJISFunction(n.toSJISFunc)),IR(t,i,r,l)};var N_={},ih={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(l){return[l,l]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,l=r.width&&r.width>=21?r.width:void 0,d=r.scale||4;return{width:l,scale:l?4:d,margin:i,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},e.getImageWidth=function(r,i){const l=e.getScale(r,i);return Math.floor((r+i.margin*2)*l)},e.qrToImageData=function(r,i,l){const d=i.modules.size,g=i.modules.data,p=e.getScale(d,l),_=Math.floor((d+l.margin*2)*p),S=l.margin*p,k=[l.color.light,l.color.dark];for(let h=0;h<_;h++)for(let y=0;y<_;y++){let b=(h*_+y)*4,c=l.color.light;if(h>=S&&y>=S&&h<_-S&&y<_-S){const u=Math.floor((h-S)/p),f=Math.floor((y-S)/p);c=k[g[u*d+f]?1:0]}r[b++]=c.r,r[b++]=c.g,r[b++]=c.b,r[b]=c.a}}})(ih),function(e){const t=ih;function n(i,l,d){i.clearRect(0,0,l.width,l.height),l.style||(l.style={}),l.height=d,l.width=d,l.style.height=d+"px",l.style.width=d+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(l,d,g){let p=g,_=d;typeof p>"u"&&(!d||!d.getContext)&&(p=d,d=void 0),d||(_=r()),p=t.getOptions(p);const S=t.getImageWidth(l.modules.size,p),k=_.getContext("2d"),h=k.createImageData(S,S);return t.qrToImageData(h.data,l,p),n(k,_,S),k.putImageData(h,0,0),_},e.renderToDataURL=function(l,d,g){let p=g;typeof p>"u"&&(!d||!d.getContext)&&(p=d,d=void 0),p||(p={});const _=e.render(l,d,p),S=p.type||"image/png",k=p.rendererOpts||{};return _.toDataURL(S,k.quality)}}(N_);var x_={};const AR=ih;function U_(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function ah(e,t,n){let r=e+t;return typeof n<"u"&&(r+=" "+n),r}function TR(e,t,n){let r="",i=0,l=!1,d=0;for(let g=0;g<e.length;g++){const p=Math.floor(g%t),_=Math.floor(g/t);!p&&!l&&(l=!0),e[g]?(d++,g>0&&p>0&&e[g-1]||(r+=l?ah("M",p+n,.5+_+n):ah("m",i,0),i=0,l=!1),p+1<t&&e[g+1]||(r+=ah("h",d),d=0)):i++}return r}x_.render=function(t,n,r){const i=AR.getOptions(n),l=t.modules.size,d=t.modules.data,g=l+i.margin*2,p=i.color.light.a?"<path "+U_(i.color.light,"fill")+' d="M0 0h'+g+"v"+g+'H0z"/>':"",_="<path "+U_(i.color.dark,"stroke")+' d="'+TR(d,l,i.margin)+'"/>',S='viewBox="0 0 '+g+" "+g+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+S+' shape-rendering="crispEdges">'+p+_+`</svg>
93
- `;return typeof r=="function"&&r(null,h),h};const OR=HP,sh=w_,F_=N_,PR=x_;function oh(e,t,n,r,i){const l=[].slice.call(arguments,1),d=l.length,g=typeof l[d-1]=="function";if(!g&&!OR())throw new Error("Callback required as last argument");if(g){if(d<2)throw new Error("Too few arguments provided");d===2?(i=n,n=t,t=r=void 0):d===3&&(t.getContext&&typeof i>"u"?(i=r,r=void 0):(i=r,r=n,n=t,t=void 0))}else{if(d<1)throw new Error("Too few arguments provided");return d===1?(n=t,t=r=void 0):d===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(p,_){try{const S=sh.create(n,r);p(e(S,t,r))}catch(S){_(S)}})}try{const p=sh.create(n,r);i(null,e(p,t,r))}catch(p){i(p)}}var RR=js.create=sh.create,MR=js.toCanvas=oh.bind(null,F_.render),LR=js.toDataURL=oh.bind(null,F_.renderToDataURL),DR=js.toString=oh.bind(null,function(e,t,n){return PR.render(e,n)});const NR=Qt({__proto__:null,create:RR,default:js,toCanvas:MR,toDataURL:LR,toString:DR},[js]);return Bt.component=xP,Bt.configure=DP,Bt.default=__,Bt.journey=NP,Bt.protect=FP,Bt.user=UP,Object.defineProperties(Bt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),Bt}({});
92
+ `);const d=VP(t,n,i),g=vu.getSymbolSize(t),p=new PP(g);return NP(p,t),UP(p),FP(p,t),oh(p,n,0),t>=7&&BP(p,t),zP(p,d),isNaN(r)&&(r=ih.getBestMask(p,oh.bind(null,p,n))),ih.applyMask(r,p),oh(p,n,r),{modules:p,version:t,errorCorrectionLevel:n,maskPattern:r,segments:i}}A_.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let r=rh.M,i,l;return typeof n<"u"&&(r=rh.from(n.errorCorrectionLevel,rh.M),i=yu.from(n.version),l=ih.from(n.maskPattern),n.toSJISFunc&&vu.setToSJISFunction(n.toSJISFunc)),jP(t,i,r,l)};var H_={},lh={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(l){return[l,l]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,l=r.width&&r.width>=21?r.width:void 0,d=r.scale||4;return{width:l,scale:l?4:d,margin:i,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},e.getImageWidth=function(r,i){const l=e.getScale(r,i);return Math.floor((r+i.margin*2)*l)},e.qrToImageData=function(r,i,l){const d=i.modules.size,g=i.modules.data,p=e.getScale(d,l),_=Math.floor((d+l.margin*2)*p),S=l.margin*p,k=[l.color.light,l.color.dark];for(let h=0;h<_;h++)for(let y=0;y<_;y++){let b=(h*_+y)*4,c=l.color.light;if(h>=S&&y>=S&&h<_-S&&y<_-S){const u=Math.floor((h-S)/p),f=Math.floor((y-S)/p);c=k[g[u*d+f]?1:0]}r[b++]=c.r,r[b++]=c.g,r[b++]=c.b,r[b]=c.a}}})(lh),function(e){const t=lh;function n(i,l,d){i.clearRect(0,0,l.width,l.height),l.style||(l.style={}),l.height=d,l.width=d,l.style.height=d+"px",l.style.width=d+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(l,d,g){let p=g,_=d;typeof p>"u"&&(!d||!d.getContext)&&(p=d,d=void 0),d||(_=r()),p=t.getOptions(p);const S=t.getImageWidth(l.modules.size,p),k=_.getContext("2d"),h=k.createImageData(S,S);return t.qrToImageData(h.data,l,p),n(k,_,S),k.putImageData(h,0,0),_},e.renderToDataURL=function(l,d,g){let p=g;typeof p>"u"&&(!d||!d.getContext)&&(p=d,d=void 0),p||(p={});const _=e.render(l,d,p),S=p.type||"image/png",k=p.rendererOpts||{};return _.toDataURL(S,k.quality)}}(H_);var j_={};const qP=lh;function q_(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function ch(e,t,n){let r=e+t;return typeof n<"u"&&(r+=" "+n),r}function WP(e,t,n){let r="",i=0,l=!1,d=0;for(let g=0;g<e.length;g++){const p=Math.floor(g%t),_=Math.floor(g/t);!p&&!l&&(l=!0),e[g]?(d++,g>0&&p>0&&e[g-1]||(r+=l?ch("M",p+n,.5+_+n):ch("m",i,0),i=0,l=!1),p+1<t&&e[g+1]||(r+=ch("h",d),d=0)):i++}return r}j_.render=function(t,n,r){const i=qP.getOptions(n),l=t.modules.size,d=t.modules.data,g=l+i.margin*2,p=i.color.light.a?"<path "+q_(i.color.light,"fill")+' d="M0 0h'+g+"v"+g+'H0z"/>':"",_="<path "+q_(i.color.dark,"stroke")+' d="'+WP(d,l,i.margin)+'"/>',S='viewBox="0 0 '+g+" "+g+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+S+' shape-rendering="crispEdges">'+p+_+`</svg>
93
+ `;return typeof r=="function"&&r(null,h),h};const GP=sP,uh=A_,W_=H_,KP=j_;function dh(e,t,n,r,i){const l=[].slice.call(arguments,1),d=l.length,g=typeof l[d-1]=="function";if(!g&&!GP())throw new Error("Callback required as last argument");if(g){if(d<2)throw new Error("Too few arguments provided");d===2?(i=n,n=t,t=r=void 0):d===3&&(t.getContext&&typeof i>"u"?(i=r,r=void 0):(i=r,r=n,n=t,t=void 0))}else{if(d<1)throw new Error("Too few arguments provided");return d===1?(n=t,t=r=void 0):d===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(p,_){try{const S=uh.create(n,r);p(e(S,t,r))}catch(S){_(S)}})}try{const p=uh.create(n,r);i(null,e(p,t,r))}catch(p){i(p)}}var $P=qa.create=uh.create,ZP=qa.toCanvas=dh.bind(null,W_.render),YP=qa.toDataURL=dh.bind(null,W_.renderToDataURL),JP=qa.toString=dh.bind(null,function(e,t,n){return KP.render(e,n)});const XP=en({__proto__:null,create:$P,default:qa,toCanvas:ZP,toDataURL:YP,toString:JP},[qa]);return Bt.component=Q4,Bt.configure=J4,Bt.default=I_,Bt.journey=X4,Bt.protect=tP,Bt.user=eP,Object.defineProperties(Bt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),Bt}({});
94
94
  //# sourceMappingURL=widget.iife.js.map