@stitch-money/client 3.17.0 → 3.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -34,7 +34,7 @@ interface SamsungPayPaymentResult {
34
34
  status: 'CHARGED' | 'REJECTED' | 'CANCELED' | 'ERRED';
35
35
  provider?: string;
36
36
  }
37
- type SamsungPayAllowedBrands = 'visa' | 'mastercard' | 'amex';
37
+ type SamsungPayAllowedBrands = 'visa' | 'mastercard' | 'amex' | 'discover';
38
38
  interface SamsungPayPaymentCredential {
39
39
  card_brand: string;
40
40
  card_last4digit: string;
package/build/index.js CHANGED
@@ -1,27 +1,27 @@
1
1
  "use client"
2
- var Qn=Object.create;var pe=Object.defineProperty,er=Object.defineProperties,tr=Object.getOwnPropertyDescriptor,nr=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertyNames,de=Object.getOwnPropertySymbols,or=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var Oe=(e,t,n)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))ke.call(t,n)&&Oe(e,n,t[n]);if(de)for(var n of de(t))ft.call(t,n)&&Oe(e,n,t[n]);return e},Q=(e,t)=>er(e,nr(t));var dt=(e,t)=>{var n={};for(var r in e)ke.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&de)for(var r of de(e))t.indexOf(r)<0&&ft.call(e,r)&&(n[r]=e[r]);return n};var ir=(e,t)=>()=>(e&&(t=e(e=0)),t);var ar=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sr=(e,t)=>{for(var n in t)pe(e,n,{get:t[n],enumerable:!0})},cr=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rr(t))!ke.call(e,o)&&o!==n&&pe(e,o,{get:()=>t[o],enumerable:!(r=tr(t,o))||r.enumerable});return e};var pt=(e,t,n)=>(n=e!=null?Qn(or(e)):{},cr(t||!e||!e.__esModule?pe(n,"default",{value:e,enumerable:!0}):n,e));var k=(e,t,n)=>(Oe(e,typeof t!="symbol"?t+"":t,n),n);var b=(e,t,n)=>new Promise((r,o)=>{var a=l=>{try{s(n.next(l))}catch(f){o(f)}},i=l=>{try{s(n.throw(l))}catch(f){o(f)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,i);s((n=n.apply(e,t)).next())});var De=ar((_a,It)=>{"use strict";var Me=class e extends Error{constructor(t){super(e._prepareSuperMessage(t)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,e)}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch(n){return String(t)}}},br=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Le=Symbol(".toJSON called"),wr=e=>{e[Le]=!0;let t=e.toJSON();return delete e[Le],t},Fe=({from:e,seen:t,to_:n,forceEnumerable:r,maxDepth:o,depth:a})=>{let i=n||(Array.isArray(e)?[]:{});if(t.push(e),a>=o)return i;if(typeof e.toJSON=="function"&&e[Le]!==!0)return wr(e);for(let[s,l]of Object.entries(e)){if(typeof Buffer=="function"&&Buffer.isBuffer(l)){i[s]="[object Buffer]";continue}if(typeof l!="function"){if(!l||typeof l!="object"){i[s]=l;continue}if(!t.includes(e[s])){a++,i[s]=Fe({from:e[s],seen:t.slice(),forceEnumerable:r,maxDepth:o,depth:a});continue}i[s]="[Circular]"}}for(let{property:s,enumerable:l}of br)typeof e[s]=="string"&&Object.defineProperty(i,s,{value:e[s],enumerable:r?!0:l,configurable:!0,writable:!0});return i},vr=(e,t={})=>{let{maxDepth:n=Number.POSITIVE_INFINITY}=t;return typeof e=="object"&&e!==null?Fe({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):typeof e=="function"?`[Function: ${e.name||"anonymous"}]`:e},Sr=(e,t={})=>{let{maxDepth:n=Number.POSITIVE_INFINITY}=t;if(e instanceof Error)return e;if(typeof e=="object"&&e!==null&&!Array.isArray(e)){let r=new Error;return Fe({from:e,seen:[],to_:r,maxDepth:n,depth:0}),r}return new Me(e)};It.exports={serializeError:vr,deserializeError:Sr}});var mn={};sr(mn,{componentsToDebugString:()=>qe,default:()=>Ii,getFullscreenElement:()=>qt,getUnstableAudioFingerprint:()=>en,getUnstableCanvasFingerprint:()=>tn,getUnstableHardwareConcurrency:()=>on,getUnstableScreenFrame:()=>rn,getUnstableScreenResolution:()=>nn,getWebGLContext:()=>Ke,hashComponents:()=>Qe,isAndroid:()=>Re,isChromium:()=>B,isDesktopWebKit:()=>Se,isEdgeHTML:()=>Jt,isGecko:()=>X,isSamsungInternet:()=>Qt,isTrident:()=>Xe,isWebKit:()=>N,load:()=>pn,loadSources:()=>Xt,murmurX64Hash128:()=>xi,prepareForSources:()=>dn,sources:()=>fn,transformSource:()=>Vr,withIframe:()=>Je});function we(e,t){return new Promise(n=>setTimeout(n,e,t))}function Ir(){return new Promise(e=>{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(null)})}function xr(e,t=1/0){let{requestIdleCallback:n}=window;return n?new Promise(r=>n.call(window,()=>r(),{timeout:t})):we(Math.min(e,t))}function ve(e){return!!e&&typeof e.then=="function"}function Tt(e,t){try{let n=e();ve(n)?n.then(r=>t(!0,r),r=>t(!1,r)):t(!0,n)}catch(n){t(!1,n)}}function Nt(e,t,n=16){return b(this,null,function*(){let r=Array(e.length),o=Date.now();for(let a=0;a<e.length;++a){r[a]=t(e[a],a);let i=Date.now();i>=o+n&&(o=i,yield Ir())}return r})}function ne(e){return e.then(void 0,()=>{}),e}function Cr(e,t){for(let n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}function Ar(e,t){return!Cr(e,t)}function Be(e){return parseInt(e)}function M(e){return parseFloat(e)}function D(e,t){return typeof e=="number"&&isNaN(e)?t:e}function E(e){return e.reduce((t,n)=>t+(n?1:0),0)}function Yt(e,t=1){if(Math.abs(t)>=1)return Math.round(e/t)*t;{let n=1/t;return Math.round(e*n)/n}}function Or(e){var t,n;let r=`Unexpected syntax '${e}'`,o=/^\s*([a-z-]*)(.*)$/i.exec(e),a=o[1]||void 0,i={},s=/([.:#][\w-]+|\[.+?\])/gi,l=(f,c)=>{i[f]=i[f]||[],i[f].push(c)};for(;;){let f=s.exec(o[2]);if(!f)break;let c=f[0];switch(c[0]){case".":l("class",c.slice(1));break;case"#":l("id",c.slice(1));break;case"[":{let u=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(u)l(u[1],(n=(t=u[4])!==null&&t!==void 0?t:u[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[a,i]}function kr(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>127)return new TextEncoder().encode(e);t[n]=r}return t}function V(e,t){let n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,a=e[1]&65535,i=t[0]>>>16,s=t[0]&65535,l=t[1]>>>16,f=t[1]&65535,c=0,u=0,p=0,g=0;g+=a+f,p+=g>>>16,g&=65535,p+=o+l,u+=p>>>16,p&=65535,u+=r+s,c+=u>>>16,u&=65535,c+=n+i,c&=65535,e[0]=c<<16|u,e[1]=p<<16|g}function T(e,t){let n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,a=e[1]&65535,i=t[0]>>>16,s=t[0]&65535,l=t[1]>>>16,f=t[1]&65535,c=0,u=0,p=0,g=0;g+=a*f,p+=g>>>16,g&=65535,p+=o*f,u+=p>>>16,p&=65535,p+=a*l,u+=p>>>16,p&=65535,u+=r*f,c+=u>>>16,u&=65535,u+=o*l,c+=u>>>16,u&=65535,u+=a*s,c+=u>>>16,u&=65535,c+=n*f+r*l+o*s+a*i,c&=65535,e[0]=c<<16|u,e[1]=p<<16|g}function H(e,t){let n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function O(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function R(e,t){e[0]^=t[0],e[1]^=t[1]}function Mt(e){let t=[0,e[0]>>>1];R(e,t),T(e,Tr),t[1]=e[0]>>>1,R(e,t),T(e,Nr),t[1]=e[0]>>>1,R(e,t)}function zt(e,t){let n=kr(e);t=t||0;let r=[0,n.length],o=r[1]%16,a=r[1]-o,i=[0,t],s=[0,t],l=[0,0],f=[0,0],c;for(c=0;c<a;c=c+16)l[0]=n[c+4]|n[c+5]<<8|n[c+6]<<16|n[c+7]<<24,l[1]=n[c]|n[c+1]<<8|n[c+2]<<16|n[c+3]<<24,f[0]=n[c+12]|n[c+13]<<8|n[c+14]<<16|n[c+15]<<24,f[1]=n[c+8]|n[c+9]<<8|n[c+10]<<16|n[c+11]<<24,T(l,ye),H(l,31),T(l,he),R(i,l),H(i,27),V(i,s),T(i,Lt),V(i,Mr),T(f,he),H(f,33),T(f,ye),R(s,f),H(s,31),V(s,i),T(s,Lt),V(s,Lr);l[0]=0,l[1]=0,f[0]=0,f[1]=0;let u=[0,0];switch(o){case 15:u[1]=n[c+14],O(u,48),R(f,u);case 14:u[1]=n[c+13],O(u,40),R(f,u);case 13:u[1]=n[c+12],O(u,32),R(f,u);case 12:u[1]=n[c+11],O(u,24),R(f,u);case 11:u[1]=n[c+10],O(u,16),R(f,u);case 10:u[1]=n[c+9],O(u,8),R(f,u);case 9:u[1]=n[c+8],R(f,u),T(f,he),H(f,33),T(f,ye),R(s,f);case 8:u[1]=n[c+7],O(u,56),R(l,u);case 7:u[1]=n[c+6],O(u,48),R(l,u);case 6:u[1]=n[c+5],O(u,40),R(l,u);case 5:u[1]=n[c+4],O(u,32),R(l,u);case 4:u[1]=n[c+3],O(u,24),R(l,u);case 3:u[1]=n[c+2],O(u,16),R(l,u);case 2:u[1]=n[c+1],O(u,8),R(l,u);case 1:u[1]=n[c],R(l,u),T(l,ye),H(l,31),T(l,he),R(i,l)}return R(i,r),R(s,r),V(i,s),V(s,i),Mt(i),Mt(s),V(i,s),V(s,i),("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function Fr(e){var t;return v({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
3
- `)},e)}function Dr(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function Bt(e){return typeof e!="function"}function jr(e,t){let n=ne(new Promise(r=>{let o=Date.now();Tt(e.bind(null,t),(...a)=>{let i=Date.now()-o;if(!a[0])return r(()=>({error:a[1],duration:i}));let s=a[1];if(Bt(s))return r(()=>({value:s,duration:i}));r(()=>new Promise(l=>{let f=Date.now();Tt(s,(...c)=>{let u=i+Date.now()-f;if(!c[0])return l({error:c[1],duration:u});l({value:c[1],duration:u})})}))})}));return function(){return n.then(o=>o())}}function Xt(e,t,n,r){let o=Object.keys(e).filter(i=>Ar(n,i)),a=ne(Nt(o,i=>jr(e[i],t),r));return function(){return b(this,null,function*(){let s=yield a,l=yield Nt(s,u=>ne(u()),r),f=yield Promise.all(l),c={};for(let u=0;u<o.length;++u)c[o[u]]=f[u];return c})}}function Vr(e,t){let n=r=>Bt(r)?t(r):()=>{let o=r();return ve(o)?o.then(t):t(o)};return r=>{let o=e(r);return ve(o)?o.then(n):n(o)}}function Xe(){let e=window,t=navigator;return E(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function Jt(){let e=window,t=navigator;return E(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Xe()}function B(){let e=window,t=navigator;return E(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,(t.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function N(){let e=window,t=navigator;return E(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Se(){let e=window,{HTMLElement:t,Document:n}=e;return E(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function re(){let e=window;return Dr(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function X(){var e,t;let n=window;return E(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function Gr(){let e=window,t=navigator,{CSS:n}=e;return E(["userActivation"in t,n.supports("color","light-dark(#000, #fff)"),n.supports("height","1lh"),"globalPrivacyControl"in t])>=3}function Kt(){let{CSS:e}=window;return E([e.supports("selector(::details-content)"),e.supports("selector(::before::marker)"),e.supports("selector(::after::marker)"),!("locale"in CompositionEvent.prototype)])>=3}function Wr(){let e=window;return E([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function $r(){let e=window,{URLPattern:t}=e;return E(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Ur(){let e=window;return E(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function oe(){let e=window,t=navigator,{CSS:n,HTMLButtonElement:r}=e;return E([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function Zr(){if(navigator.platform==="iPad")return!0;let e=screen,t=e.width/e.height;return E(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function qt(){let e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function Hr(){let e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Re(){let e=B(),t=X(),n=window,r=navigator,o="connection";return e?E([!("SharedWorker"in n),r[o]&&"ontypechange"in r[o],!("sinkId"in new Audio)])>=2:t?E(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2:!1}function Qt(){let e=navigator,t=window,n=Audio.prototype,{visualViewport:r}=t;return E(["srLatency"in n,"srChannelCount"in n,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}function Yr(){return Br()?-4:en()}function en(){let e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(zr())return-1;let n=4500,r=5e3,o=new t(1,r,44100),a=o.createOscillator();a.type="triangle",a.frequency.value=1e4;let i=o.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.25,a.connect(i),i.connect(o.destination),a.start(0);let[s,l]=Xr(o),f=ne(s.then(c=>Jr(c.getChannelData(0).subarray(n)),c=>{if(c.name==="timeout"||c.name==="suspended")return-3;throw c}));return()=>(l(),f)}function zr(){return N()&&!Se()&&!Ur()}function Br(){return N()&&oe()&&re()||B()&&Qt()&&$r()}function Xr(e){let a=()=>{};return[new Promise((s,l)=>{let f=!1,c=0,u=0;e.oncomplete=m=>s(m.renderedBuffer);let p=()=>{setTimeout(()=>l(Ft("timeout")),Math.min(500,u+5e3-Date.now()))},g=()=>{try{let m=e.startRendering();switch(ve(m)&&ne(m),e.state){case"running":u=Date.now(),f&&p();break;case"suspended":document.hidden||c++,f&&c>=3?l(Ft("suspended")):setTimeout(g,500);break}}catch(m){l(m)}};g(),a=()=>{f||(f=!0,u>0&&p())}}),a]}function Jr(e){let t=0;for(let n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}function Ft(e){let t=new Error(e);return t.name=e,t}function Je(e,t,n=50){return b(this,null,function*(){var r,o,a;let i=document;for(;!i.body;)yield we(n);let s=i.createElement("iframe");try{for(yield new Promise((l,f)=>{let c=!1,u=()=>{c=!0,l()},p=d=>{c=!0,f(d)};s.onload=u,s.onerror=p;let{style:g}=s;g.setProperty("display","block","important"),g.position="absolute",g.top="0",g.left="0",g.visibility="hidden",t&&"srcdoc"in s?s.srcdoc=t:s.src="about:blank",i.body.appendChild(s);let m=()=>{var d,y;c||(((y=(d=s.contentWindow)===null||d===void 0?void 0:d.document)===null||y===void 0?void 0:y.readyState)==="complete"?u():setTimeout(m,10))};m()});!(!((o=(r=s.contentWindow)===null||r===void 0?void 0:r.document)===null||o===void 0)&&o.body);)yield we(n);return yield e(s,s.contentWindow)}finally{(a=s.parentNode)===null||a===void 0||a.removeChild(s)}})}function Kr(e){let[t,n]=Or(e),r=document.createElement(t!=null?t:"div");for(let o of Object.keys(n)){let a=n[o].join(" ");o==="style"?qr(r.style,a):r.setAttribute(o,a)}return r}function qr(e,t){for(let n of t.split(";")){let r=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(r){let[,o,a,,i]=r;e.setProperty(o,a,i||"")}}}function Qr(){let e=window;for(;;){let t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(n){if(n instanceof Error&&n.name==="SecurityError")return!0;throw n}e=t}}function no(){return Je((n,r)=>b(this,[n,r],function*(e,{document:t}){let o=t.body;o.style.fontSize=to;let a=t.createElement("div");a.style.setProperty("visibility","hidden","important");let i={},s={},l=d=>{let y=t.createElement("span"),{style:h}=y;return h.position="absolute",h.top="0",h.left="0",h.fontFamily=d,y.textContent=eo,a.appendChild(y),y},f=(d,y)=>l(`'${d}',${y}`),c=()=>Y.map(l),u=()=>{let d={};for(let y of Dt)d[y]=Y.map(h=>f(y,h));return d},p=d=>Y.some((y,h)=>d[h].offsetWidth!==i[y]||d[h].offsetHeight!==s[y]),g=c(),m=u();o.appendChild(a);for(let d=0;d<Y.length;d++)i[Y[d]]=g[d].offsetWidth,s[Y[d]]=g[d].offsetHeight;return Dt.filter(d=>p(m[d]))}))}function ro(){let e=navigator.plugins;if(!e)return;let t=[];for(let n=0;n<e.length;++n){let r=e[n];if(!r)continue;let o=[];for(let a=0;a<r.length;++a){let i=r[a];o.push({type:i.type,suffixes:i.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:o})}return t}function oo(){return tn(fo())}function tn(e){let t=!1,n,r,[o,a]=io();return ao(o,a)?(t=so(a),e?n=r="skipped":[n,r]=co(o,a)):n=r="unsupported",{winding:t,geometry:n,text:r}}function io(){let e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function ao(e,t){return!!(t&&e.toDataURL)}function so(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function co(e,t){uo(e,t);let n=Ue(e),r=Ue(e);return n!==r?["unstable","unstable"]:(lo(e,t),[Ue(e),n])}function uo(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';let n="Cwm fjordbank gly \u{1F603}";t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}function lo(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(let[n,r,o]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])t.fillStyle=n,t.beginPath(),t.arc(r,o,40,0,Math.PI*2,!0),t.closePath(),t.fill();t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function Ue(e){return e.toDataURL()}function fo(){let e=N()&&oe()&&re(),t=X()&&Gr();return e||t}function po(){let e=navigator,t=0,n;e.maxTouchPoints!==void 0?t=Be(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),n=!0}catch(o){n=!1}let r="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:n,touchStart:r}}function mo(){return navigator.oscpu}function go(){let e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))B()&&Wr()||t.push(e.languages);else if(typeof e.languages=="string"){let r=e.languages;r&&t.push(r.split(","))}return t}function yo(){return window.screen.colorDepth}function ho(){return D(M(navigator.deviceMemory),void 0)}function bo(){if(!(N()&&oe()&&re()))return nn()}function nn(){let e=screen,t=r=>D(Be(r),null),n=[t(e.width),t(e.height)];return n.sort().reverse(),n}function So(){if(Ze!==void 0)return;let e=()=>{let t=Ye();ze(t)?Ze=setTimeout(e,wo):(be=t,Ze=void 0)};e()}function rn(){return So(),()=>b(this,null,function*(){let e=Ye();if(ze(e)){if(be)return[...be];qt()&&(yield Hr(),e=Ye())}return ze(e)||(be=e),e})}function Ro(){let e=N()&&oe()&&re(),t=X()&&Kt();if(e||t)return()=>Promise.resolve(void 0);let n=rn();return()=>b(this,null,function*(){let r=yield n(),o=a=>a===null?null:Yt(a,vo);return[o(r[0]),o(r[1]),o(r[2]),o(r[3])]})}function Ye(){let e=screen;return[D(M(e.availTop),null),D(M(e.width)-M(e.availWidth)-D(M(e.availLeft),0),null),D(M(e.height)-M(e.availHeight)-D(M(e.availTop),0),null),D(M(e.availLeft),null)]}function ze(e){for(let t=0;t<4;++t)if(e[t])return!1;return!0}function Po(){let e=on();return e!==void 0&&X()&&Kt()?e>=8?8:4:e}function on(){return D(Be(navigator.hardwareConcurrency),void 0)}function Eo(){var e;let t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){let r=new t().resolvedOptions().timeZone;if(r)return r}let n=-_o();return`UTC${n>=0?"+":""}${n}`}function _o(){let e=new Date().getFullYear();return Math.max(M(new Date(e,0,1).getTimezoneOffset()),M(new Date(e,6,1).getTimezoneOffset()))}function Io(){try{return!!window.sessionStorage}catch(e){return!0}}function xo(){try{return!!window.localStorage}catch(e){return!0}}function Co(){if(!(Xe()||Jt()))try{return!!window.indexedDB}catch(e){return!0}}function Ao(){return!!window.openDatabase}function Oo(){return navigator.cpuClass}function ko(){let{platform:e}=navigator;return e==="MacIntel"&&N()&&!Se()?Zr()?"iPad":"iPhone":e}function To(){return navigator.vendor||""}function No(){let e=[];for(let t of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){let n=window[t];n&&typeof n=="object"&&e.push(t)}return e.sort()}function Mo(){let e=document;try{e.cookie="cookietest=1; SameSite=Strict;";let t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(t){return!1}}function Lo(){let e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("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:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function Fo(){return b(this,arguments,function*({debug:e}={}){if(!Do())return;let t=Lo(),n=Object.keys(t),r=[].concat(...n.map(i=>t[i])),o=yield jo(r);e&&Vo(t,o);let a=n.filter(i=>{let s=t[i];return E(s.map(f=>o[f]))>s.length*.6});return a.sort(),a})}function Do(){return N()||Re()}function jo(e){return b(this,null,function*(){var t;let n=document,r=n.createElement("div"),o=new Array(e.length),a={};jt(r);for(let i=0;i<e.length;++i){let s=Kr(e[i]);s.tagName==="DIALOG"&&s.show();let l=n.createElement("div");jt(l),l.appendChild(s),r.appendChild(l),o[i]=s}for(;!n.body;)yield we(50);n.body.appendChild(r);try{for(let i=0;i<e.length;++i)o[i].offsetParent||(a[e[i]]=!0)}finally{(t=r.parentNode)===null||t===void 0||t.removeChild(r)}return a})}function jt(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function Vo(e,t){let n="DOM blockers debug:\n```";for(let r of Object.keys(e)){n+=`
2
+ var or=Object.create;var de=Object.defineProperty,ir=Object.defineProperties,ar=Object.getOwnPropertyDescriptor,sr=Object.getOwnPropertyDescriptors,cr=Object.getOwnPropertyNames,fe=Object.getOwnPropertySymbols,ur=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var Ae=(e,t,n)=>t in e?de(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t)=>{for(var n in t||(t={}))ke.call(t,n)&&Ae(e,n,t[n]);if(fe)for(var n of fe(t))pt.call(t,n)&&Ae(e,n,t[n]);return e},F=(e,t)=>ir(e,sr(t));var mt=(e,t)=>{var n={};for(var r in e)ke.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&fe)for(var r of fe(e))t.indexOf(r)<0&&pt.call(e,r)&&(n[r]=e[r]);return n};var lr=(e,t)=>()=>(e&&(t=e(e=0)),t);var fr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dr=(e,t)=>{for(var n in t)de(e,n,{get:t[n],enumerable:!0})},pr=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of cr(t))!ke.call(e,o)&&o!==n&&de(e,o,{get:()=>t[o],enumerable:!(r=ar(t,o))||r.enumerable});return e};var gt=(e,t,n)=>(n=e!=null?or(ur(e)):{},pr(t||!e||!e.__esModule?de(n,"default",{value:e,enumerable:!0}):n,e));var O=(e,t,n)=>(Ae(e,typeof t!="symbol"?t+"":t,n),n);var w=(e,t,n)=>new Promise((r,o)=>{var a=l=>{try{s(n.next(l))}catch(f){o(f)}},i=l=>{try{s(n.throw(l))}catch(f){o(f)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,i);s((n=n.apply(e,t)).next())});var je=fr((La,Ct)=>{"use strict";var Le=class e extends Error{constructor(t){super(e._prepareSuperMessage(t)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,e)}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch(n){return String(t)}}},Ir=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Fe=Symbol(".toJSON called"),xr=e=>{e[Fe]=!0;let t=e.toJSON();return delete e[Fe],t},De=({from:e,seen:t,to_:n,forceEnumerable:r,maxDepth:o,depth:a})=>{let i=n||(Array.isArray(e)?[]:{});if(t.push(e),a>=o)return i;if(typeof e.toJSON=="function"&&e[Fe]!==!0)return xr(e);for(let[s,l]of Object.entries(e)){if(typeof Buffer=="function"&&Buffer.isBuffer(l)){i[s]="[object Buffer]";continue}if(typeof l!="function"){if(!l||typeof l!="object"){i[s]=l;continue}if(!t.includes(e[s])){a++,i[s]=De({from:e[s],seen:t.slice(),forceEnumerable:r,maxDepth:o,depth:a});continue}i[s]="[Circular]"}}for(let{property:s,enumerable:l}of Ir)typeof e[s]=="string"&&Object.defineProperty(i,s,{value:e[s],enumerable:r?!0:l,configurable:!0,writable:!0});return i},Cr=(e,t={})=>{let{maxDepth:n=Number.POSITIVE_INFINITY}=t;return typeof e=="object"&&e!==null?De({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):typeof e=="function"?`[Function: ${e.name||"anonymous"}]`:e},Ar=(e,t={})=>{let{maxDepth:n=Number.POSITIVE_INFINITY}=t;if(e instanceof Error)return e;if(typeof e=="object"&&e!==null&&!Array.isArray(e)){let r=new Error;return De({from:e,seen:[],to_:r,maxDepth:n,depth:0}),r}return new Le(e)};Ct.exports={serializeError:Cr,deserializeError:Ar}});var yn={};dr(yn,{componentsToDebugString:()=>Qe,default:()=>Mi,getFullscreenElement:()=>en,getUnstableAudioFingerprint:()=>nn,getUnstableCanvasFingerprint:()=>rn,getUnstableHardwareConcurrency:()=>sn,getUnstableScreenFrame:()=>an,getUnstableScreenResolution:()=>on,getWebGLContext:()=>qe,hashComponents:()=>et,isAndroid:()=>Se,isChromium:()=>J,isDesktopWebKit:()=>ve,isEdgeHTML:()=>qt,isGecko:()=>K,isSamsungInternet:()=>tn,isTrident:()=>Je,isWebKit:()=>N,load:()=>gn,loadSources:()=>Kt,murmurX64Hash128:()=>Li,prepareForSources:()=>mn,sources:()=>pn,transformSource:()=>Yr,withIframe:()=>Ke});function be(e,t){return new Promise(n=>setTimeout(n,e,t))}function Mr(){return new Promise(e=>{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(null)})}function Lr(e,t=1/0){let{requestIdleCallback:n}=window;return n?new Promise(r=>n.call(window,()=>r(),{timeout:t})):be(Math.min(e,t))}function we(e){return!!e&&typeof e.then=="function"}function Mt(e,t){try{let n=e();we(n)?n.then(r=>t(!0,r),r=>t(!1,r)):t(!0,n)}catch(n){t(!1,n)}}function Lt(e,t,n=16){return w(this,null,function*(){let r=Array(e.length),o=Date.now();for(let a=0;a<e.length;++a){r[a]=t(e[a],a);let i=Date.now();i>=o+n&&(o=i,yield Mr())}return r})}function te(e){return e.then(void 0,()=>{}),e}function Fr(e,t){for(let n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}function Dr(e,t){return!Fr(e,t)}function Xe(e){return parseInt(e)}function M(e){return parseFloat(e)}function j(e,t){return typeof e=="number"&&isNaN(e)?t:e}function E(e){return e.reduce((t,n)=>t+(n?1:0),0)}function Bt(e,t=1){if(Math.abs(t)>=1)return Math.round(e/t)*t;{let n=1/t;return Math.round(e*n)/n}}function jr(e){var t,n;let r=`Unexpected syntax '${e}'`,o=/^\s*([a-z-]*)(.*)$/i.exec(e),a=o[1]||void 0,i={},s=/([.:#][\w-]+|\[.+?\])/gi,l=(f,c)=>{i[f]=i[f]||[],i[f].push(c)};for(;;){let f=s.exec(o[2]);if(!f)break;let c=f[0];switch(c[0]){case".":l("class",c.slice(1));break;case"#":l("id",c.slice(1));break;case"[":{let u=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(u)l(u[1],(n=(t=u[4])!==null&&t!==void 0?t:u[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[a,i]}function Vr(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>127)return new TextEncoder().encode(e);t[n]=r}return t}function G(e,t){let n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,a=e[1]&65535,i=t[0]>>>16,s=t[0]&65535,l=t[1]>>>16,f=t[1]&65535,c=0,u=0,p=0,y=0;y+=a+f,p+=y>>>16,y&=65535,p+=o+l,u+=p>>>16,p&=65535,u+=r+s,c+=u>>>16,u&=65535,c+=n+i,c&=65535,e[0]=c<<16|u,e[1]=p<<16|y}function T(e,t){let n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,a=e[1]&65535,i=t[0]>>>16,s=t[0]&65535,l=t[1]>>>16,f=t[1]&65535,c=0,u=0,p=0,y=0;y+=a*f,p+=y>>>16,y&=65535,p+=o*f,u+=p>>>16,p&=65535,p+=a*l,u+=p>>>16,p&=65535,u+=r*f,c+=u>>>16,u&=65535,u+=o*l,c+=u>>>16,u&=65535,u+=a*s,c+=u>>>16,u&=65535,c+=n*f+r*l+o*s+a*i,c&=65535,e[0]=c<<16|u,e[1]=p<<16|y}function Y(e,t){let n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function k(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function R(e,t){e[0]^=t[0],e[1]^=t[1]}function Ft(e){let t=[0,e[0]>>>1];R(e,t),T(e,Gr),t[1]=e[0]>>>1,R(e,t),T(e,Wr),t[1]=e[0]>>>1,R(e,t)}function Xt(e,t){let n=Vr(e);t=t||0;let r=[0,n.length],o=r[1]%16,a=r[1]-o,i=[0,t],s=[0,t],l=[0,0],f=[0,0],c;for(c=0;c<a;c=c+16)l[0]=n[c+4]|n[c+5]<<8|n[c+6]<<16|n[c+7]<<24,l[1]=n[c]|n[c+1]<<8|n[c+2]<<16|n[c+3]<<24,f[0]=n[c+12]|n[c+13]<<8|n[c+14]<<16|n[c+15]<<24,f[1]=n[c+8]|n[c+9]<<8|n[c+10]<<16|n[c+11]<<24,T(l,ge),Y(l,31),T(l,ye),R(i,l),Y(i,27),G(i,s),T(i,Dt),G(i,$r),T(f,ye),Y(f,33),T(f,ge),R(s,f),Y(s,31),G(s,i),T(s,Dt),G(s,Ur);l[0]=0,l[1]=0,f[0]=0,f[1]=0;let u=[0,0];switch(o){case 15:u[1]=n[c+14],k(u,48),R(f,u);case 14:u[1]=n[c+13],k(u,40),R(f,u);case 13:u[1]=n[c+12],k(u,32),R(f,u);case 12:u[1]=n[c+11],k(u,24),R(f,u);case 11:u[1]=n[c+10],k(u,16),R(f,u);case 10:u[1]=n[c+9],k(u,8),R(f,u);case 9:u[1]=n[c+8],R(f,u),T(f,ye),Y(f,33),T(f,ge),R(s,f);case 8:u[1]=n[c+7],k(u,56),R(l,u);case 7:u[1]=n[c+6],k(u,48),R(l,u);case 6:u[1]=n[c+5],k(u,40),R(l,u);case 5:u[1]=n[c+4],k(u,32),R(l,u);case 4:u[1]=n[c+3],k(u,24),R(l,u);case 3:u[1]=n[c+2],k(u,16),R(l,u);case 2:u[1]=n[c+1],k(u,8),R(l,u);case 1:u[1]=n[c],R(l,u),T(l,ge),Y(l,31),T(l,ye),R(i,l)}return R(i,r),R(s,r),G(i,s),G(s,i),Ft(i),Ft(s),G(i,s),G(s,i),("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function Zr(e){var t;return b({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
3
+ `)},e)}function zr(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function Jt(e){return typeof e!="function"}function Hr(e,t){let n=te(new Promise(r=>{let o=Date.now();Mt(e.bind(null,t),(...a)=>{let i=Date.now()-o;if(!a[0])return r(()=>({error:a[1],duration:i}));let s=a[1];if(Jt(s))return r(()=>({value:s,duration:i}));r(()=>new Promise(l=>{let f=Date.now();Mt(s,(...c)=>{let u=i+Date.now()-f;if(!c[0])return l({error:c[1],duration:u});l({value:c[1],duration:u})})}))})}));return function(){return n.then(o=>o())}}function Kt(e,t,n,r){let o=Object.keys(e).filter(i=>Dr(n,i)),a=te(Lt(o,i=>Hr(e[i],t),r));return function(){return w(this,null,function*(){let s=yield a,l=yield Lt(s,u=>te(u()),r),f=yield Promise.all(l),c={};for(let u=0;u<o.length;++u)c[o[u]]=f[u];return c})}}function Yr(e,t){let n=r=>Jt(r)?t(r):()=>{let o=r();return we(o)?o.then(t):t(o)};return r=>{let o=e(r);return we(o)?o.then(n):n(o)}}function Je(){let e=window,t=navigator;return E(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function qt(){let e=window,t=navigator;return E(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Je()}function J(){let e=window,t=navigator;return E(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,(t.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function N(){let e=window,t=navigator;return E(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function ve(){let e=window,{HTMLElement:t,Document:n}=e;return E(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function ne(){let e=window;return zr(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function K(){var e,t;let n=window;return E(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function Br(){let e=window,t=navigator,{CSS:n}=e;return E(["userActivation"in t,n.supports("color","light-dark(#000, #fff)"),n.supports("height","1lh"),"globalPrivacyControl"in t])>=3}function Qt(){let{CSS:e}=window;return E([e.supports("selector(::details-content)"),e.supports("selector(::before::marker)"),e.supports("selector(::after::marker)"),!("locale"in CompositionEvent.prototype)])>=3}function Xr(){let e=window;return E([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function Jr(){let e=window,{URLPattern:t}=e;return E(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Kr(){let e=window;return E(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function re(){let e=window,t=navigator,{CSS:n,HTMLButtonElement:r}=e;return E([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function qr(){if(navigator.platform==="iPad")return!0;let e=screen,t=e.width/e.height;return E(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function en(){let e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function Qr(){let e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Se(){let e=J(),t=K(),n=window,r=navigator,o="connection";return e?E([!("SharedWorker"in n),r[o]&&"ontypechange"in r[o],!("sinkId"in new Audio)])>=2:t?E(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2:!1}function tn(){let e=navigator,t=window,n=Audio.prototype,{visualViewport:r}=t;return E(["srLatency"in n,"srChannelCount"in n,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}function eo(){return no()?-4:nn()}function nn(){let e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(to())return-1;let n=4500,r=5e3,o=new t(1,r,44100),a=o.createOscillator();a.type="triangle",a.frequency.value=1e4;let i=o.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.25,a.connect(i),i.connect(o.destination),a.start(0);let[s,l]=ro(o),f=te(s.then(c=>oo(c.getChannelData(0).subarray(n)),c=>{if(c.name==="timeout"||c.name==="suspended")return-3;throw c}));return()=>(l(),f)}function to(){return N()&&!ve()&&!Kr()}function no(){return N()&&re()&&ne()||J()&&tn()&&Jr()}function ro(e){let a=()=>{};return[new Promise((s,l)=>{let f=!1,c=0,u=0;e.oncomplete=m=>s(m.renderedBuffer);let p=()=>{setTimeout(()=>l(jt("timeout")),Math.min(500,u+5e3-Date.now()))},y=()=>{try{let m=e.startRendering();switch(we(m)&&te(m),e.state){case"running":u=Date.now(),f&&p();break;case"suspended":document.hidden||c++,f&&c>=3?l(jt("suspended")):setTimeout(y,500);break}}catch(m){l(m)}};y(),a=()=>{f||(f=!0,u>0&&p())}}),a]}function oo(e){let t=0;for(let n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}function jt(e){let t=new Error(e);return t.name=e,t}function Ke(e,t,n=50){return w(this,null,function*(){var r,o,a;let i=document;for(;!i.body;)yield be(n);let s=i.createElement("iframe");try{for(yield new Promise((l,f)=>{let c=!1,u=()=>{c=!0,l()},p=d=>{c=!0,f(d)};s.onload=u,s.onerror=p;let{style:y}=s;y.setProperty("display","block","important"),y.position="absolute",y.top="0",y.left="0",y.visibility="hidden",t&&"srcdoc"in s?s.srcdoc=t:s.src="about:blank",i.body.appendChild(s);let m=()=>{var d,g;c||(((g=(d=s.contentWindow)===null||d===void 0?void 0:d.document)===null||g===void 0?void 0:g.readyState)==="complete"?u():setTimeout(m,10))};m()});!(!((o=(r=s.contentWindow)===null||r===void 0?void 0:r.document)===null||o===void 0)&&o.body);)yield be(n);return yield e(s,s.contentWindow)}finally{(a=s.parentNode)===null||a===void 0||a.removeChild(s)}})}function io(e){let[t,n]=jr(e),r=document.createElement(t!=null?t:"div");for(let o of Object.keys(n)){let a=n[o].join(" ");o==="style"?ao(r.style,a):r.setAttribute(o,a)}return r}function ao(e,t){for(let n of t.split(";")){let r=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(r){let[,o,a,,i]=r;e.setProperty(o,a,i||"")}}}function so(){let e=window;for(;;){let t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(n){if(n instanceof Error&&n.name==="SecurityError")return!0;throw n}e=t}}function lo(){return Ke((n,r)=>w(this,[n,r],function*(e,{document:t}){let o=t.body;o.style.fontSize=uo;let a=t.createElement("div");a.style.setProperty("visibility","hidden","important");let i={},s={},l=d=>{let g=t.createElement("span"),{style:h}=g;return h.position="absolute",h.top="0",h.left="0",h.fontFamily=d,g.textContent=co,a.appendChild(g),g},f=(d,g)=>l(`'${d}',${g}`),c=()=>B.map(l),u=()=>{let d={};for(let g of Vt)d[g]=B.map(h=>f(g,h));return d},p=d=>B.some((g,h)=>d[h].offsetWidth!==i[g]||d[h].offsetHeight!==s[g]),y=c(),m=u();o.appendChild(a);for(let d=0;d<B.length;d++)i[B[d]]=y[d].offsetWidth,s[B[d]]=y[d].offsetHeight;return Vt.filter(d=>p(m[d]))}))}function fo(){let e=navigator.plugins;if(!e)return;let t=[];for(let n=0;n<e.length;++n){let r=e[n];if(!r)continue;let o=[];for(let a=0;a<r.length;++a){let i=r[a];o.push({type:i.type,suffixes:i.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:o})}return t}function po(){return rn(vo())}function rn(e){let t=!1,n,r,[o,a]=mo();return go(o,a)?(t=yo(a),e?n=r="skipped":[n,r]=ho(o,a)):n=r="unsupported",{winding:t,geometry:n,text:r}}function mo(){let e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function go(e,t){return!!(t&&e.toDataURL)}function yo(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function ho(e,t){bo(e,t);let n=Ze(e),r=Ze(e);return n!==r?["unstable","unstable"]:(wo(e,t),[Ze(e),n])}function bo(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';let n="Cwm fjordbank gly \u{1F603}";t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}function wo(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(let[n,r,o]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])t.fillStyle=n,t.beginPath(),t.arc(r,o,40,0,Math.PI*2,!0),t.closePath(),t.fill();t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function Ze(e){return e.toDataURL()}function vo(){let e=N()&&re()&&ne(),t=K()&&Br();return e||t}function So(){let e=navigator,t=0,n;e.maxTouchPoints!==void 0?t=Xe(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),n=!0}catch(o){n=!1}let r="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:n,touchStart:r}}function Ro(){return navigator.oscpu}function Po(){let e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))J()&&Xr()||t.push(e.languages);else if(typeof e.languages=="string"){let r=e.languages;r&&t.push(r.split(","))}return t}function Eo(){return window.screen.colorDepth}function _o(){return j(M(navigator.deviceMemory),void 0)}function Io(){if(!(N()&&re()&&ne()))return on()}function on(){let e=screen,t=r=>j(Xe(r),null),n=[t(e.width),t(e.height)];return n.sort().reverse(),n}function Ao(){if(ze!==void 0)return;let e=()=>{let t=Ye();Be(t)?ze=setTimeout(e,xo):(he=t,ze=void 0)};e()}function an(){return Ao(),()=>w(this,null,function*(){let e=Ye();if(Be(e)){if(he)return[...he];en()&&(yield Qr(),e=Ye())}return Be(e)||(he=e),e})}function ko(){let e=N()&&re()&&ne(),t=K()&&Qt();if(e||t)return()=>Promise.resolve(void 0);let n=an();return()=>w(this,null,function*(){let r=yield n(),o=a=>a===null?null:Bt(a,Co);return[o(r[0]),o(r[1]),o(r[2]),o(r[3])]})}function Ye(){let e=screen;return[j(M(e.availTop),null),j(M(e.width)-M(e.availWidth)-j(M(e.availLeft),0),null),j(M(e.height)-M(e.availHeight)-j(M(e.availTop),0),null),j(M(e.availLeft),null)]}function Be(e){for(let t=0;t<4;++t)if(e[t])return!1;return!0}function Oo(){let e=sn();return e!==void 0&&K()&&Qt()?e>=8?8:4:e}function sn(){return j(Xe(navigator.hardwareConcurrency),void 0)}function To(){var e;let t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){let r=new t().resolvedOptions().timeZone;if(r)return r}let n=-No();return`UTC${n>=0?"+":""}${n}`}function No(){let e=new Date().getFullYear();return Math.max(M(new Date(e,0,1).getTimezoneOffset()),M(new Date(e,6,1).getTimezoneOffset()))}function Mo(){try{return!!window.sessionStorage}catch(e){return!0}}function Lo(){try{return!!window.localStorage}catch(e){return!0}}function Fo(){if(!(Je()||qt()))try{return!!window.indexedDB}catch(e){return!0}}function Do(){return!!window.openDatabase}function jo(){return navigator.cpuClass}function Vo(){let{platform:e}=navigator;return e==="MacIntel"&&N()&&!ve()?qr()?"iPad":"iPhone":e}function Go(){return navigator.vendor||""}function Wo(){let e=[];for(let t of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){let n=window[t];n&&typeof n=="object"&&e.push(t)}return e.sort()}function $o(){let e=document;try{e.cookie="cookietest=1; SameSite=Strict;";let t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(t){return!1}}function Uo(){let e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("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:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function Zo(){return w(this,arguments,function*({debug:e}={}){if(!zo())return;let t=Uo(),n=Object.keys(t),r=[].concat(...n.map(i=>t[i])),o=yield Ho(r);e&&Yo(t,o);let a=n.filter(i=>{let s=t[i];return E(s.map(f=>o[f]))>s.length*.6});return a.sort(),a})}function zo(){return N()||Se()}function Ho(e){return w(this,null,function*(){var t;let n=document,r=n.createElement("div"),o=new Array(e.length),a={};Gt(r);for(let i=0;i<e.length;++i){let s=io(e[i]);s.tagName==="DIALOG"&&s.show();let l=n.createElement("div");Gt(l),l.appendChild(s),r.appendChild(l),o[i]=s}for(;!n.body;)yield be(50);n.body.appendChild(r);try{for(let i=0;i<e.length;++i)o[i].offsetParent||(a[e[i]]=!0)}finally{(t=r.parentNode)===null||t===void 0||t.removeChild(r)}return a})}function Gt(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function Yo(e,t){let n="DOM blockers debug:\n```";for(let r of Object.keys(e)){n+=`
4
4
  ${r}:`;for(let o of e[r])n+=`
5
5
  ${t[o]?"\u{1F6AB}":"\u27A1\uFE0F"} ${o}`}console.log(`${n}
6
- \`\`\``)}function Go(){for(let e of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${e})`).matches)return e}function Wo(){if(Vt("inverted"))return!0;if(Vt("none"))return!1}function Vt(e){return matchMedia(`(inverted-colors: ${e})`).matches}function $o(){if(Gt("active"))return!0;if(Gt("none"))return!1}function Gt(e){return matchMedia(`(forced-colors: ${e})`).matches}function Zo(){if(matchMedia("(min-monochrome: 0)").matches){for(let e=0;e<=Uo;++e)if(matchMedia(`(max-monochrome: ${e})`).matches)return e;throw new Error("Too high value")}}function Ho(){if(z("no-preference"))return 0;if(z("high")||z("more"))return 1;if(z("low")||z("less"))return-1;if(z("forced"))return 10}function z(e){return matchMedia(`(prefers-contrast: ${e})`).matches}function Yo(){if(Wt("reduce"))return!0;if(Wt("no-preference"))return!1}function Wt(e){return matchMedia(`(prefers-reduced-motion: ${e})`).matches}function zo(){if($t("reduce"))return!0;if($t("no-preference"))return!1}function $t(e){return matchMedia(`(prefers-reduced-transparency: ${e})`).matches}function Bo(){if(Ut("high"))return!0;if(Ut("standard"))return!1}function Ut(e){return matchMedia(`(dynamic-range: ${e})`).matches}function Xo(){let e=w.acos||A,t=w.acosh||A,n=w.asin||A,r=w.asinh||A,o=w.atanh||A,a=w.atan||A,i=w.sin||A,s=w.sinh||A,l=w.cos||A,f=w.cosh||A,c=w.tan||A,u=w.tanh||A,p=w.exp||A,g=w.expm1||A,m=w.log1p||A,d=S=>w.pow(w.PI,S),y=S=>w.log(S+w.sqrt(S*S-1)),h=S=>w.log(S+w.sqrt(S*S+1)),I=S=>w.log((1+S)/(1-S))/2,x=S=>w.exp(S)-1/w.exp(S)/2,C=S=>(w.exp(S)+1/w.exp(S))/2,W=S=>w.exp(S)-1,Ce=S=>(w.exp(2*S)-1)/(w.exp(2*S)+1),Ae=S=>w.log(1+S);return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:y(1e154),asin:n(.12312423423423424),asinh:r(1),asinhPf:h(1),atanh:o(.5),atanhPf:I(.5),atan:a(.5),sin:i(-1e300),sinh:s(1),sinhPf:x(1),cos:l(10.000000000123),cosh:f(1),coshPf:C(1),tan:c(-1e300),tanh:u(1),tanhPf:Ce(1),exp:p(1),expm1:g(1),expm1Pf:W(1),log1p:m(10),log1pPf:Ae(10),powPI:d(-100)}}function Ko(){return qo((e,t)=>{let n={},r={};for(let o of Object.keys(He)){let[a={},i=Jo]=He[o],s=e.createElement("span");s.textContent=i,s.style.whiteSpace="nowrap";for(let l of Object.keys(a)){let f=a[l];f!==void 0&&(s.style[l]=f)}n[o]=s,t.append(e.createElement("br"),s)}for(let o of Object.keys(He))r[o]=n[o].getBoundingClientRect().width;return r})}function qo(e,t=4e3){return Je((n,r)=>{let o=r.document,a=o.body,i=a.style;i.width=`${t}px`,i.webkitTextSizeAdjust=i.textSizeAdjust="none",B()?a.style.zoom=`${1/r.devicePixelRatio}`:N()&&(a.style.zoom="reset");let s=o.createElement("div");return s.textContent=[...Array(t/20<<0)].map(()=>"word").join(" "),a.appendChild(s),e(o,a)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function Qo(){return navigator.pdfViewerEnabled}function ei(){let e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function ti(){let{ApplePaySession:e}=window;if(typeof(e==null?void 0:e.canMakePayments)!="function")return-1;if(ni())return-3;try{return e.canMakePayments()?1:0}catch(t){return ri(t)}}function ri(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function oi(){var e;let t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}function li({cache:e}){var t,n,r,o,a,i;let s=Ke(e);if(!s)return an;if(!ln(s))return sn;let l=un()?null:s.getExtension(cn);return{version:((t=s.getParameter(s.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=s.getParameter(s.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=s.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((o=s.getParameter(s.RENDERER))===null||o===void 0?void 0:o.toString())||"",rendererUnmasked:l?(a=s.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||a===void 0?void 0:a.toString():"",shadingLanguageVersion:((i=s.getParameter(s.SHADING_LANGUAGE_VERSION))===null||i===void 0?void 0:i.toString())||""}}function fi({cache:e}){let t=Ke(e);if(!t)return an;if(!ln(t))return sn;let n=t.getSupportedExtensions(),r=t.getContextAttributes(),o=[],a=[],i=[],s=[],l=[];if(r)for(let c of Object.keys(r))a.push(`${c}=${r[c]}`);let f=Zt(t);for(let c of f){let u=t[c];i.push(`${c}=${u}${ii.has(u)?`=${t.getParameter(u)}`:""}`)}if(n)for(let c of n){if(c===cn&&un()||c===ui&&mi())continue;let u=t.getExtension(c);if(!u){o.push(c);continue}for(let p of Zt(u)){let g=u[p];s.push(`${p}=${g}${ai.has(g)?`=${t.getParameter(g)}`:""}`)}}for(let c of si)for(let u of ci){let p=di(t,c,u);l.push(`${c}.${u}=${p.join(",")}`)}return s.sort(),i.sort(),{contextAttributes:a,parameters:i,shaderPrecisions:l,extensions:n,extensionParameters:s,unsupportedExtensions:o}}function Ke(e){if(e.webgl)return e.webgl.context;let t=document.createElement("canvas"),n;t.addEventListener("webglCreateContextError",()=>n=void 0);for(let r of["webgl","experimental-webgl"]){try{n=t.getContext(r)}catch(o){}if(n)break}return e.webgl={context:n},n}function di(e,t,n){let r=e.getShaderPrecisionFormat(e[t],e[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function Zt(e){return Object.keys(e.__proto__).filter(pi)}function pi(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function un(){return X()}function mi(){return B()||N()}function ln(e){return typeof e.getParameter=="function"}function gi(){if(!(Re()||N()))return-2;if(!window.AudioContext)return-1;let t=new AudioContext().baseLatency;return t==null?-1:isFinite(t)?t:-3}function yi(){if(!window.Intl)return-1;let e=window.Intl.DateTimeFormat;if(!e)return-2;let t=e().resolvedOptions().locale;return!t&&t!==""?-3:t}function hi(e){return Xt(fn,e,[])}function wi(e){let t=vi(e),n=Si(t);return{score:t,comment:bi.replace(/\$/g,`${n}`)}}function vi(e){if(Re())return .4;if(N())return Se()&&!(oe()&&re())?.5:.3;let t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function Si(e){return Yt(.99+.01*e,1e-4)}function Ri(e){let t="";for(let n of Object.keys(e).sort()){let r=e[n],o="error"in r?"error":JSON.stringify(r.value);t+=`${t?"|":""}${n.replace(/([:|\\])/g,"\\$1")}:${o}`}return t}function qe(e){return JSON.stringify(e,(t,n)=>n instanceof Error?Fr(n):n,2)}function Qe(e){return zt(Ri(e))}function Pi(e){let t,n=wi(e);return{get visitorId(){return t===void 0&&(t=Qe(this.components)),t},set visitorId(r){t=r},confidence:n,components:e,version:Ht}}function dn(e=50){return xr(e,e*2)}function Ei(e,t){let n=Date.now();return{get(o){return b(this,null,function*(){let a=Date.now(),i=yield e(),s=Pi(i);return(t||o!=null&&o.debug)&&console.log(`Copy the text below to get the debug data:
6
+ \`\`\``)}function Bo(){for(let e of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${e})`).matches)return e}function Xo(){if(Wt("inverted"))return!0;if(Wt("none"))return!1}function Wt(e){return matchMedia(`(inverted-colors: ${e})`).matches}function Jo(){if($t("active"))return!0;if($t("none"))return!1}function $t(e){return matchMedia(`(forced-colors: ${e})`).matches}function qo(){if(matchMedia("(min-monochrome: 0)").matches){for(let e=0;e<=Ko;++e)if(matchMedia(`(max-monochrome: ${e})`).matches)return e;throw new Error("Too high value")}}function Qo(){if(X("no-preference"))return 0;if(X("high")||X("more"))return 1;if(X("low")||X("less"))return-1;if(X("forced"))return 10}function X(e){return matchMedia(`(prefers-contrast: ${e})`).matches}function ei(){if(Ut("reduce"))return!0;if(Ut("no-preference"))return!1}function Ut(e){return matchMedia(`(prefers-reduced-motion: ${e})`).matches}function ti(){if(Zt("reduce"))return!0;if(Zt("no-preference"))return!1}function Zt(e){return matchMedia(`(prefers-reduced-transparency: ${e})`).matches}function ni(){if(zt("high"))return!0;if(zt("standard"))return!1}function zt(e){return matchMedia(`(dynamic-range: ${e})`).matches}function ri(){let e=v.acos||A,t=v.acosh||A,n=v.asin||A,r=v.asinh||A,o=v.atanh||A,a=v.atan||A,i=v.sin||A,s=v.sinh||A,l=v.cos||A,f=v.cosh||A,c=v.tan||A,u=v.tanh||A,p=v.exp||A,y=v.expm1||A,m=v.log1p||A,d=S=>v.pow(v.PI,S),g=S=>v.log(S+v.sqrt(S*S-1)),h=S=>v.log(S+v.sqrt(S*S+1)),I=S=>v.log((1+S)/(1-S))/2,x=S=>v.exp(S)-1/v.exp(S)/2,C=S=>(v.exp(S)+1/v.exp(S))/2,$=S=>v.exp(S)-1,xe=S=>(v.exp(2*S)-1)/(v.exp(2*S)+1),Ce=S=>v.log(1+S);return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:g(1e154),asin:n(.12312423423423424),asinh:r(1),asinhPf:h(1),atanh:o(.5),atanhPf:I(.5),atan:a(.5),sin:i(-1e300),sinh:s(1),sinhPf:x(1),cos:l(10.000000000123),cosh:f(1),coshPf:C(1),tan:c(-1e300),tanh:u(1),tanhPf:xe(1),exp:p(1),expm1:y(1),expm1Pf:$(1),log1p:m(10),log1pPf:Ce(10),powPI:d(-100)}}function ii(){return ai((e,t)=>{let n={},r={};for(let o of Object.keys(He)){let[a={},i=oi]=He[o],s=e.createElement("span");s.textContent=i,s.style.whiteSpace="nowrap";for(let l of Object.keys(a)){let f=a[l];f!==void 0&&(s.style[l]=f)}n[o]=s,t.append(e.createElement("br"),s)}for(let o of Object.keys(He))r[o]=n[o].getBoundingClientRect().width;return r})}function ai(e,t=4e3){return Ke((n,r)=>{let o=r.document,a=o.body,i=a.style;i.width=`${t}px`,i.webkitTextSizeAdjust=i.textSizeAdjust="none",J()?a.style.zoom=`${1/r.devicePixelRatio}`:N()&&(a.style.zoom="reset");let s=o.createElement("div");return s.textContent=[...Array(t/20<<0)].map(()=>"word").join(" "),a.appendChild(s),e(o,a)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function si(){return navigator.pdfViewerEnabled}function ci(){let e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function ui(){let{ApplePaySession:e}=window;if(typeof(e==null?void 0:e.canMakePayments)!="function")return-1;if(li())return-3;try{return e.canMakePayments()?1:0}catch(t){return fi(t)}}function fi(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function di(){var e;let t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}function bi({cache:e}){var t,n,r,o,a,i;let s=qe(e);if(!s)return cn;if(!dn(s))return un;let l=fn()?null:s.getExtension(ln);return{version:((t=s.getParameter(s.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=s.getParameter(s.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=s.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((o=s.getParameter(s.RENDERER))===null||o===void 0?void 0:o.toString())||"",rendererUnmasked:l?(a=s.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||a===void 0?void 0:a.toString():"",shadingLanguageVersion:((i=s.getParameter(s.SHADING_LANGUAGE_VERSION))===null||i===void 0?void 0:i.toString())||""}}function wi({cache:e}){let t=qe(e);if(!t)return cn;if(!dn(t))return un;let n=t.getSupportedExtensions(),r=t.getContextAttributes(),o=[],a=[],i=[],s=[],l=[];if(r)for(let c of Object.keys(r))a.push(`${c}=${r[c]}`);let f=Ht(t);for(let c of f){let u=t[c];i.push(`${c}=${u}${pi.has(u)?`=${t.getParameter(u)}`:""}`)}if(n)for(let c of n){if(c===ln&&fn()||c===hi&&Ri())continue;let u=t.getExtension(c);if(!u){o.push(c);continue}for(let p of Ht(u)){let y=u[p];s.push(`${p}=${y}${mi.has(y)?`=${t.getParameter(y)}`:""}`)}}for(let c of gi)for(let u of yi){let p=vi(t,c,u);l.push(`${c}.${u}=${p.join(",")}`)}return s.sort(),i.sort(),{contextAttributes:a,parameters:i,shaderPrecisions:l,extensions:n,extensionParameters:s,unsupportedExtensions:o}}function qe(e){if(e.webgl)return e.webgl.context;let t=document.createElement("canvas"),n;t.addEventListener("webglCreateContextError",()=>n=void 0);for(let r of["webgl","experimental-webgl"]){try{n=t.getContext(r)}catch(o){}if(n)break}return e.webgl={context:n},n}function vi(e,t,n){let r=e.getShaderPrecisionFormat(e[t],e[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function Ht(e){return Object.keys(e.__proto__).filter(Si)}function Si(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function fn(){return K()}function Ri(){return J()||N()}function dn(e){return typeof e.getParameter=="function"}function Pi(){if(!(Se()||N()))return-2;if(!window.AudioContext)return-1;let t=new AudioContext().baseLatency;return t==null?-1:isFinite(t)?t:-3}function Ei(){if(!window.Intl)return-1;let e=window.Intl.DateTimeFormat;if(!e)return-2;let t=e().resolvedOptions().locale;return!t&&t!==""?-3:t}function _i(e){return Kt(pn,e,[])}function xi(e){let t=Ci(e),n=Ai(t);return{score:t,comment:Ii.replace(/\$/g,`${n}`)}}function Ci(e){if(Se())return .4;if(N())return ve()&&!(re()&&ne())?.5:.3;let t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function Ai(e){return Bt(.99+.01*e,1e-4)}function ki(e){let t="";for(let n of Object.keys(e).sort()){let r=e[n],o="error"in r?"error":JSON.stringify(r.value);t+=`${t?"|":""}${n.replace(/([:|\\])/g,"\\$1")}:${o}`}return t}function Qe(e){return JSON.stringify(e,(t,n)=>n instanceof Error?Zr(n):n,2)}function et(e){return Xt(ki(e))}function Oi(e){let t,n=xi(e);return{get visitorId(){return t===void 0&&(t=et(this.components)),t},set visitorId(r){t=r},confidence:n,components:e,version:Yt}}function mn(e=50){return Lr(e,e*2)}function Ti(e,t){let n=Date.now();return{get(o){return w(this,null,function*(){let a=Date.now(),i=yield e(),s=Oi(i);return(t||o!=null&&o.debug)&&console.log(`Copy the text below to get the debug data:
7
7
 
8
8
  \`\`\`
9
9
  version: ${s.version}
10
10
  userAgent: ${navigator.userAgent}
11
11
  timeBetweenLoadAndGet: ${a-n}
12
12
  visitorId: ${s.visitorId}
13
- components: ${qe(i)}
14
- \`\`\``),s})}}}function _i(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{let e=new XMLHttpRequest;e.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${Ht}/npm-monitoring`,!0),e.send()}catch(e){console.error(e)}}function pn(){return b(this,arguments,function*(e={}){let{delayFallback:t,debug:n,monitoring:r=!0}=e;r&&_i(),yield dn(t);let o=hi({cache:{},debug:n});return Ei(o,n)})}var Ht,Tr,Nr,ye,he,Lt,Mr,Lr,eo,to,Y,Dt,wo,vo,be,Ze,Uo,w,A,Jo,He,ni,an,sn,ii,ai,si,ci,cn,ui,fn,bi,Ii,xi,gn=ir(()=>{"use strict";Ht="5.1.0";Tr=[4283543511,3981806797],Nr=[3301882366,444984403];ye=[2277735313,289559509],he=[1291169091,658871167],Lt=[0,5],Mr=[0,1390208809],Lr=[0,944331445];eo="mmMwWLliI0O&1",to="48px",Y=["monospace","sans-serif","serif"],Dt=["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"];wo=2500,vo=10;Uo=100;w=Math,A=()=>0;Jo="mmMwWLliI0fiflO&1",He={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};ni=Qr;an=-1,sn=-2,ii=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]),ai=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),si=["FRAGMENT_SHADER","VERTEX_SHADER"],ci=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],cn="WEBGL_debug_renderer_info",ui="WEBGL_polygon_mode";fn={fonts:no,domBlockers:Fo,fontPreferences:Ko,audio:Yr,screenFrame:Ro,canvas:oo,osCpu:mo,languages:go,colorDepth:yo,deviceMemory:ho,screenResolution:bo,hardwareConcurrency:Po,timezone:Eo,sessionStorage:Io,localStorage:xo,indexedDB:Co,openDatabase:Ao,cpuClass:Oo,platform:ko,plugins:ro,touchSupport:po,vendor:To,vendorFlavors:No,cookiesEnabled:Mo,colorGamut:Go,invertedColors:Wo,forcedColors:$o,monochrome:Zo,contrast:Ho,reducedMotion:Yo,reducedTransparency:zo,hdr:Bo,math:Xo,pdfViewerEnabled:Qo,architecture:ei,applePay:ti,privateClickMeasurement:oi,audioBaseLatency:gi,dateTimeLocale:yi,webGlBasics:li,webGlExtensions:fi};bi="$ if upgrade to Pro: https://fingerprint.com/github/?utm_source=oss&utm_medium=referral&utm_campaign=confidence_score";Ii={load:pn,hashComponents:Qe,componentsToDebugString:qe},xi=zt});var mt=(r=>(r.ApplePay="APPLE_PAY",r.SamsungPay="SAMSUNG_PAY",r.GooglePay="GOOGLE_PAY",r))(mt||{});var ur=["visa","mastercard"];function ee(e){let t=e==null?void 0:e.allowedNetworks;return t&&t.length>0?[...t]:[...ur]}function gt(e){switch(e){case"mastercard":return"masterCard";case"visa":case"amex":return e}}function yt(e){switch(e){case"visa":return"VISA";case"mastercard":return"MASTERCARD";case"amex":return"AMEX"}}function ht(e){switch(e){case"visa":case"mastercard":case"amex":return e}}var te=function(){return te=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},te.apply(this,arguments)};function bt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function wt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function lr(e,t){return function(n,r){return Object.prototype.hasOwnProperty.call(n,r)}(e,t)?e[t]:void 0}function fr(e,t,n,r){var o,a=document,i="securitypolicyviolation",s=function(f){var c=new URL(e,location.href),u=f.blockedURI;u!==c.href&&u!==c.protocol.slice(0,-1)&&u!==c.origin||(o=f,l())};a.addEventListener(i,s);var l=function(){return a.removeEventListener(i,s)};return r==null||r.then(l,l),Promise.resolve().then(t).then(function(f){return l(),f},function(f){return new Promise(function(c){var u=new MessageChannel;u.port1.onmessage=function(){return c()},u.port2.postMessage(null)}).then(function(){if(l(),o)return n(o);throw f})})}var vt={default:"endpoint"};var St="Blocked by CSP",Rt="The endpoint parameter is not a valid URL";var dr="API key required";var pr="3.11.4",Te="Failed to load the JS script of the agent",Ne="9319";function mr(e,t){var n,r,o,a,i,s,l,f=[],c=(n=function(m){var d=wt([],m,!0);return{current:function(){return d[0]},postpone:function(){var y=d.shift();y!==void 0&&d.push(y)},exclude:function(){d.shift()}}}(e),a=100,i=3e3,s=0,r=function(){return Math.random()*Math.min(i,a*Math.pow(2,s++))},o=new Set,[n.current(),function(m,d){var y,h=d instanceof Error?d.message:"";if(h===St||h===Rt)n.exclude(),y=0;else if(h===Ne)n.exclude();else if(h===Te){var I=Date.now()-m.getTime()<50,x=n.current();x&&I&&!o.has(x)&&(o.add(x),y=0),n.postpone()}else n.postpone();var C=n.current();return C===void 0?void 0:[C,y!=null?y:m.getTime()+r()-Date.now()]}]),u=c[0],p=c[1];if(u===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var g=function(m){var d=new Date,y=function(I){return f.push({url:m,startedAt:d,finishedAt:new Date,error:I})},h=t(m);return h.then(function(){return y()},y),h.catch(function(I){if(l!=null||(l=I),f.length>=5)throw l;var x=p(d,I);if(!x)throw l;var C,W=x[0],Ce=x[1];return(C=Ce,new Promise(function(Ae){return setTimeout(Ae,C)})).then(function(){return g(W)})})};return g(u).then(function(m){return[m,f]})}var Pt="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",Et=Pt;function _t(e){var t;e.scriptUrlPattern;var n=e.token,r=e.apiKey,o=r===void 0?n:r,a=bt(e,["scriptUrlPattern","token","apiKey"]),i=(t=lr(e,"scriptUrlPattern"))!==null&&t!==void 0?t:Pt,s=function(){var c=[],u=function(){c.push({time:new Date,state:document.visibilityState})},p=function(g,m,d,y){return g.addEventListener(m,d,y),function(){return g.removeEventListener(m,d,y)}}(document,"visibilitychange",u);return u(),[c,p]}(),l=s[0],f=s[1];return Promise.resolve().then(function(){if(!o||typeof o!="string")throw new Error(dr);var c=function(u,p){return(Array.isArray(u)?u:[u]).map(function(g){return function(m,d){var y=encodeURIComponent;return m.replace(/<[^<>]+>/g,function(h){return h==="<version>"?"3":h==="<apiKey>"?y(d):h==="<loaderVersion>"?y(pr):h})}(String(g),p)})}(i,o);return mr(c,gr)}).catch(function(c){throw f(),function(u){return u instanceof Error&&u.message===Ne?new Error(Te):u}(c)}).then(function(c){var u=c[0],p=c[1];return f(),u.load(te(te({},a),{ldi:{attempts:p,visibilityStates:l}}))})}function gr(e){return fr(e,function(){return function(t){return new Promise(function(n,r){if(function(s){if(URL.prototype)try{return new URL(s,location.href),!1}catch(l){if(l instanceof Error&&l.name==="TypeError")return!0;throw l}}(t))throw new Error(Rt);var o=document.createElement("script"),a=function(){var s;return(s=o.parentNode)===null||s===void 0?void 0:s.removeChild(o)},i=document.head||document.getElementsByTagName("head")[0];o.onload=function(){a(),n()},o.onerror=function(){a(),r(new Error(Te))},o.async=!0,o.src=t,i.appendChild(o)})}(e)},function(){throw new Error(St)}).then(yr)}function yr(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(r,o){var a,i=(a=Object.getOwnPropertyDescriptor)===null||a===void 0?void 0:a.call(Object,r,o);i!=null&&i.configurable?delete r[o]:i&&!i.writable||(r[o]=void 0)}(e,t),typeof(n==null?void 0:n.load)!="function")throw new Error(Ne);return n}var xt=pt(De());function F(){return typeof crypto!="undefined"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}var Rr="https://analytics.stitch.money/query",je={loggingUrl:Rr},me={};function Ve(e={}){let r=e,{loggingUrl:t}=r,n=dt(r,["loggingUrl"]);typeof t=="string"&&t.length>0&&(je.loggingUrl=t),me=v(v({sessionId:F()},me),n)}function Ct(){var e,t,n;return((t=(e=window==null?void 0:window.location)==null?void 0:e.ancestorOrigins)==null?void 0:t.length)>0?Object.values((n=window==null?void 0:window.location)==null?void 0:n.ancestorOrigins).join(","):(document==null?void 0:document.referrer)||void 0}function Ge(e,t){return b(this,null,function*(){try{yield fetch(je.loggingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"LOG_EVENT",event:{message:e,metadata:v(v({hostname:Ct()},me),t)}})})}catch(n){try{yield P("[logEvent] Error logging event",n,t)}catch(r){}}})}function P(e,t,n){return b(this,null,function*(){try{yield fetch(je.loggingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"LOG_ERROR",error:{message:e,error:(0,xt.serializeError)(t),metadata:v(v({hostname:Ct()},me),n)}})})}catch(r){}})}var hn=pt(De());var Pr="~";var Er=new TextEncoder;function We(e){return b(this,null,function*(){var n;let t=(n=globalThis.crypto)==null?void 0:n.subtle;if(t===void 0)return e;try{let r=yield t.digest("SHA-256",Er.encode(e)),o=_r(new Uint8Array(r)).slice(0,12);return`${e}${Pr}${o}`}catch(r){return e}})}function _r(e){let t="";for(let n of e)t+=String.fromCharCode(n);return btoa(t).replace(/\+/gu,"-").replace(/\//gu,"_").replace(/=+$/u,"")}var $e;function ge(e,t=0){let n=typeof e=="string"?($e!=null?$e:$e=new TextEncoder).encode(e):e,r=n,o=t+374761393&4294967295,a=0;if(r.length>=16){let s=[t+2654435761+2246822519&4294967295,t+2246822519&4294967295,t+0&4294967295,t-2654435761&4294967295],l=n,f=l.length-16,c=0;for(a=0;(a&4294967280)<=f;a+=4){let u=a,p=l[u+0]+(l[u+1]<<8),g=l[u+2]+(l[u+3]<<8),m=p*2246822519+(g*2246822519<<16),d=s[c]+m&4294967295;d=d<<13|d>>>19;let y=d&65535,h=d>>>16;s[c]=y*2654435761+(h*2654435761<<16)&4294967295,c=c+1&3}o=(s[0]<<1|s[0]>>>31)+(s[1]<<7|s[1]>>>25)+(s[2]<<12|s[2]>>>20)+(s[3]<<18|s[3]>>>14)&4294967295}o=o+n.length&4294967295;let i=n.length-4;for(;a<=i;a+=4){let s=a,l=r[s+0]+(r[s+1]<<8),f=r[s+2]+(r[s+3]<<8),c=l*3266489917+(f*3266489917<<16);o=o+c&4294967295,o=o<<17|o>>>15,o=(o&65535)*668265263+((o>>>16)*668265263<<16)&4294967295}for(;a<r.length;++a){let s=r[a];o=o+s*374761393,o=o<<11|o>>>21,o=(o&65535)*2654435761+((o>>>16)*2654435761<<16)&4294967295}return o=o^o>>>15,o=((o&65535)*2246822519&4294967295)+((o>>>16)*2246822519<<16),o=o^o>>>13,o=((o&65535)*3266489917&4294967295)+((o>>>16)*3266489917<<16),o=o^o>>>16,o<0?o+4294967296:o}function At(e){let t={};if(e===null||typeof e!="object")return t;for(let[n,r]of Object.entries(e)){if(r===null||typeof r!="object")continue;let{value:o}=r;if(o!==void 0){if(typeof o=="string"||typeof o=="number"){t[n]=o.toString();continue}try{let a=JSON.stringify(o);if(a===void 0)continue;t[n]=ge(a,0).toString()}catch(a){continue}}}return t}var Ot="stitch-fp-session-id";function kt(){try{let e=localStorage.getItem(Ot);return e||(e=F(),localStorage.setItem(Ot,e)),e}catch(e){return}}var Ci=4096,et,tt,J;function yn(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="";for(let r=0;r<e;r++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function Ai(e){var r;let t=e.cause,n=t!=null?typeof t=="object"&&"message"in t?t.message:typeof t=="object"?"Unknown cause":String(t):void 0;return v(v(v({message:(r=e.message)!=null?r:"Unknown error",name:e.name},typeof e.code=="string"&&{code:e.code}),typeof e.requestId=="string"&&{requestId:e.requestId}),n&&{cause:n})}function bn(t){return b(this,arguments,function*({config:e}){let n={apiKey:e.publicKey,endpoint:[e.endpoint,vt],scriptUrlPattern:[e.scriptUrlPattern,Et],region:"eu"},r=_t(n);if(e.ossEnabled!==!0)return{proAgent:yield r};let[o,a]=yield Promise.all([r,Promise.resolve().then(()=>(gn(),mn)).then(i=>i.load()).catch(i=>{P("OSS fingerprint agent load failed",i,{source:"fingerprint-stitch"})})]);return v({proAgent:o},a!==void 0&&{ossAgent:a})})}function wn(l){return b(this,arguments,function*({config:e,clientId:t,agent:n,payerId:r,sdkVersion:o,ipAddress:a,ipAddressProof:i,fingerprintContext:s}){let f=(e==null?void 0:e.ossEnabled)===!0,c;f&&s!==void 0&&(s.length>Ci?P("Fingerprint context exceeded size limit and was dropped",new Error(`fingerprintContext length ${s.length}`),{source:"fingerprint-stitch"}):c=s);let u=f?a:void 0,p=f?i:void 0;if((e==null?void 0:e.disabled)===!0){let m={disabled:!0,emulated:!1,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:"",visitorId:""}};return btoa(JSON.stringify(m))}if((e==null?void 0:e.disabled)===!1&&(e!=null&&e.useEmulation)&&(t!=null&&t.startsWith("test"))){let m=F().replace(/-/g,"").slice(0,8),d=yield We(m),y=v(v({disabled:!1,emulated:!0,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:`${Date.now()}.${yn(6)}`,visitorId:yn(20)}},c!==void 0&&{fingerprintContext:c}),f&&{oss:Q(v(v({fingerprintHash:d,rawSignals:{},sessionId:F()},a!==void 0&&{ipAddress:a}),i!==void 0&&{ipAddressProof:i}),{source:"stitch-oss-web"})});return btoa(JSON.stringify(y))}if(n!==void 0&&(e==null?void 0:e.disabled)===!1){let m=Date.now();if(et!==void 0&&tt!==void 0&&J!==void 0&&J.ossEnabled===f&&J.ipAddress===u&&J.ipAddressProof===p&&J.fingerprintContext===c&&m-tt<e.cacheDurationInSeconds*1e3)return btoa(JSON.stringify(et));try{let d={linkedId:t,tag:{payerId:r}},y,h;if(f&&n.ossAgent!==void 0){let[C,W]=yield Promise.allSettled([n.proAgent.get(d),n.ossAgent.get()]);if(C.status==="rejected")throw C.reason;y=C.value,W.status==="fulfilled"?h=W.value:P("OSS fingerprint collection failed",W.reason,{source:"fingerprint-stitch"})}else y=yield n.proAgent.get(d);let I;if(h!==void 0)try{if(typeof h.visitorId!="string"||h.visitorId.length===0)throw new Error("OSS fingerprint payload missing visitorId");let C=yield We(h.visitorId);I=Q(v(v({fingerprintHash:C,rawSignals:At(h.components),sessionId:kt()},a!==void 0&&{ipAddress:a}),i!==void 0&&{ipAddressProof:i}),{source:"stitch-oss-web"})}catch(C){P("OSS fingerprint payload construction failed",C,{source:"fingerprint-stitch"})}let x=v(v({disabled:!1,emulated:!1,fingerprintDetails:{timestamp:new Date().toISOString(),requestId:y.requestId,visitorId:y.visitorId}},c!==void 0&&{fingerprintContext:c}),I!==void 0&&{oss:I});return et=x,tt=m,J={ossEnabled:f,ipAddress:u,ipAddressProof:p,fingerprintContext:c},btoa(JSON.stringify(x))}catch(d){let y=Ai((0,hn.serializeError)(d)),h=y.name&&y.name!=="Error"?`${y.name}: ${y.message}`:y.message,I={error:v(v(v(v({outcome:"Failed",message:h||"Unknown error"},y.code&&{code:y.code}),y.cause&&{cause:y.cause}),y.requestId&&{requestId:y.requestId}),o&&{sdkVersion:o})};return btoa(JSON.stringify(I))}}let g={error:v({outcome:"Failed",message:"Attempted to get fingerprint data but either runtime config or the agent are not present"},o&&{sdkVersion:o})};return btoa(JSON.stringify(g))})}function Oi(e){return typeof e=="number"}function ki(e){return typeof e=="string"}function Ti(e){return typeof e=="bigint"}function Sn(e){return!!e&&Object.prototype.toString.call(e)==="[object Date]"&&!isNaN(e)}function Rn(e){return e!=null&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"}var Pn=new WeakSet;function ie(e){return Pn.add(e),e}function En(e,t){return ie({type:"object",fields:e,text:t})}function Ni(e,t){return ie({type:"array",items:e,text:t})}function Pe(e,t){return ie({type:"opaque",value:e,text:t})}function Mi(e,t){return ie({type:"scalar",value:e,text:t})}function _n(e,t){return t!==void 0?ie(Q(v({},e),{text:t})):e}function In(e,t){let n=new Map([...e.fields,...t]);return En(n,e.text)}function xn(e){return Pn.has(e)}function Li(e,t,n){n.add(e);let r=[];for(let o of e)r.push(ot(o,void 0,n));return Ni(r,t)}function Cn(e,t,n){n.add(e);let r=new Map;for(let o of Object.keys(e)){let a=e[o];r.set(o,ot(a,void 0,n))}return En(r,t)}function ot(e,t,n){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e.getMonth=="function"?Mi(e,t):xn(e)?_n(e,t):Array.isArray(e)?n.has(e)?Pe("<circular ref>",t):Li(e,t,n):Rn(e)?n.has(e)?Pe("<circular ref>",t):Cn(e,t,n):Pe(typeof e=="function"?"<function>":"???",t)}function $(e,t){return ot(e,t,new WeakSet)}function An(e,t){return Cn(e,t,new WeakSet)}var U=" ";function nt(e){return e.indexOf(`
15
- `)>=0}function it(e,t=U){return nt(e)?e.split(`
13
+ components: ${Qe(i)}
14
+ \`\`\``),s})}}}function Ni(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{let e=new XMLHttpRequest;e.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${Yt}/npm-monitoring`,!0),e.send()}catch(e){console.error(e)}}function gn(){return w(this,arguments,function*(e={}){let{delayFallback:t,debug:n,monitoring:r=!0}=e;r&&Ni(),yield mn(t);let o=_i({cache:{},debug:n});return Ti(o,n)})}var Yt,Gr,Wr,ge,ye,Dt,$r,Ur,co,uo,B,Vt,xo,Co,he,ze,Ko,v,A,oi,He,li,cn,un,pi,mi,gi,yi,ln,hi,pn,Ii,Mi,Li,hn=lr(()=>{"use strict";Yt="5.1.0";Gr=[4283543511,3981806797],Wr=[3301882366,444984403];ge=[2277735313,289559509],ye=[1291169091,658871167],Dt=[0,5],$r=[0,1390208809],Ur=[0,944331445];co="mmMwWLliI0O&1",uo="48px",B=["monospace","sans-serif","serif"],Vt=["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"];xo=2500,Co=10;Ko=100;v=Math,A=()=>0;oi="mmMwWLliI0fiflO&1",He={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};li=so;cn=-1,un=-2,pi=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]),mi=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),gi=["FRAGMENT_SHADER","VERTEX_SHADER"],yi=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],ln="WEBGL_debug_renderer_info",hi="WEBGL_polygon_mode";pn={fonts:lo,domBlockers:Zo,fontPreferences:ii,audio:eo,screenFrame:ko,canvas:po,osCpu:Ro,languages:Po,colorDepth:Eo,deviceMemory:_o,screenResolution:Io,hardwareConcurrency:Oo,timezone:To,sessionStorage:Mo,localStorage:Lo,indexedDB:Fo,openDatabase:Do,cpuClass:jo,platform:Vo,plugins:fo,touchSupport:So,vendor:Go,vendorFlavors:Wo,cookiesEnabled:$o,colorGamut:Bo,invertedColors:Xo,forcedColors:Jo,monochrome:qo,contrast:Qo,reducedMotion:ei,reducedTransparency:ti,hdr:ni,math:ri,pdfViewerEnabled:si,architecture:ci,applePay:ui,privateClickMeasurement:di,audioBaseLatency:Pi,dateTimeLocale:Ei,webGlBasics:bi,webGlExtensions:wi};Ii="$ if upgrade to Pro: https://fingerprint.com/github/?utm_source=oss&utm_medium=referral&utm_campaign=confidence_score";Mi={load:gn,hashComponents:et,componentsToDebugString:Qe},Li=Xt});var yt=(r=>(r.ApplePay="APPLE_PAY",r.SamsungPay="SAMSUNG_PAY",r.GooglePay="GOOGLE_PAY",r))(yt||{});var mr=["visa","mastercard"];function Oe(e){let t=e==null?void 0:e.allowedNetworks;return t&&t.length>0?[...t]:[...mr]}function gr(e){switch(e){case"mastercard":return"masterCard";case"visa":case"amex":case"discover":return e;case"diners":return"discover"}}function yr(e){switch(e){case"visa":return"VISA";case"mastercard":return"MASTERCARD";case"amex":return"AMEX";case"discover":return"DISCOVER";case"diners":return"DISCOVER"}}function hr(e){switch(e){case"visa":case"mastercard":case"amex":case"discover":return e;case"diners":return"discover"}}function Te(e){return[...new Set(e)]}function ht(e){return Te(Oe(e).map(gr))}function bt(e){return Te(Oe(e).map(yr))}function wt(e){return Te(Oe(e).map(hr))}var ee=function(){return ee=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ee.apply(this,arguments)};function vt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function St(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function br(e,t){return function(n,r){return Object.prototype.hasOwnProperty.call(n,r)}(e,t)?e[t]:void 0}function wr(e,t,n,r){var o,a=document,i="securitypolicyviolation",s=function(f){var c=new URL(e,location.href),u=f.blockedURI;u!==c.href&&u!==c.protocol.slice(0,-1)&&u!==c.origin||(o=f,l())};a.addEventListener(i,s);var l=function(){return a.removeEventListener(i,s)};return r==null||r.then(l,l),Promise.resolve().then(t).then(function(f){return l(),f},function(f){return new Promise(function(c){var u=new MessageChannel;u.port1.onmessage=function(){return c()},u.port2.postMessage(null)}).then(function(){if(l(),o)return n(o);throw f})})}var Rt={default:"endpoint"};var Pt="Blocked by CSP",Et="The endpoint parameter is not a valid URL";var vr="API key required";var Sr="3.11.4",Ne="Failed to load the JS script of the agent",Me="9319";function Rr(e,t){var n,r,o,a,i,s,l,f=[],c=(n=function(m){var d=St([],m,!0);return{current:function(){return d[0]},postpone:function(){var g=d.shift();g!==void 0&&d.push(g)},exclude:function(){d.shift()}}}(e),a=100,i=3e3,s=0,r=function(){return Math.random()*Math.min(i,a*Math.pow(2,s++))},o=new Set,[n.current(),function(m,d){var g,h=d instanceof Error?d.message:"";if(h===Pt||h===Et)n.exclude(),g=0;else if(h===Me)n.exclude();else if(h===Ne){var I=Date.now()-m.getTime()<50,x=n.current();x&&I&&!o.has(x)&&(o.add(x),g=0),n.postpone()}else n.postpone();var C=n.current();return C===void 0?void 0:[C,g!=null?g:m.getTime()+r()-Date.now()]}]),u=c[0],p=c[1];if(u===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var y=function(m){var d=new Date,g=function(I){return f.push({url:m,startedAt:d,finishedAt:new Date,error:I})},h=t(m);return h.then(function(){return g()},g),h.catch(function(I){if(l!=null||(l=I),f.length>=5)throw l;var x=p(d,I);if(!x)throw l;var C,$=x[0],xe=x[1];return(C=xe,new Promise(function(Ce){return setTimeout(Ce,C)})).then(function(){return y($)})})};return y(u).then(function(m){return[m,f]})}var _t="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",It=_t;function xt(e){var t;e.scriptUrlPattern;var n=e.token,r=e.apiKey,o=r===void 0?n:r,a=vt(e,["scriptUrlPattern","token","apiKey"]),i=(t=br(e,"scriptUrlPattern"))!==null&&t!==void 0?t:_t,s=function(){var c=[],u=function(){c.push({time:new Date,state:document.visibilityState})},p=function(y,m,d,g){return y.addEventListener(m,d,g),function(){return y.removeEventListener(m,d,g)}}(document,"visibilitychange",u);return u(),[c,p]}(),l=s[0],f=s[1];return Promise.resolve().then(function(){if(!o||typeof o!="string")throw new Error(vr);var c=function(u,p){return(Array.isArray(u)?u:[u]).map(function(y){return function(m,d){var g=encodeURIComponent;return m.replace(/<[^<>]+>/g,function(h){return h==="<version>"?"3":h==="<apiKey>"?g(d):h==="<loaderVersion>"?g(Sr):h})}(String(y),p)})}(i,o);return Rr(c,Pr)}).catch(function(c){throw f(),function(u){return u instanceof Error&&u.message===Me?new Error(Ne):u}(c)}).then(function(c){var u=c[0],p=c[1];return f(),u.load(ee(ee({},a),{ldi:{attempts:p,visibilityStates:l}}))})}function Pr(e){return wr(e,function(){return function(t){return new Promise(function(n,r){if(function(s){if(URL.prototype)try{return new URL(s,location.href),!1}catch(l){if(l instanceof Error&&l.name==="TypeError")return!0;throw l}}(t))throw new Error(Et);var o=document.createElement("script"),a=function(){var s;return(s=o.parentNode)===null||s===void 0?void 0:s.removeChild(o)},i=document.head||document.getElementsByTagName("head")[0];o.onload=function(){a(),n()},o.onerror=function(){a(),r(new Error(Ne))},o.async=!0,o.src=t,i.appendChild(o)})}(e)},function(){throw new Error(Pt)}).then(Er)}function Er(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(r,o){var a,i=(a=Object.getOwnPropertyDescriptor)===null||a===void 0?void 0:a.call(Object,r,o);i!=null&&i.configurable?delete r[o]:i&&!i.writable||(r[o]=void 0)}(e,t),typeof(n==null?void 0:n.load)!="function")throw new Error(Me);return n}var At=gt(je());function D(){return typeof crypto!="undefined"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}var kr="https://analytics.stitch.money/query",Ve={loggingUrl:kr},pe={};function Ge(e={}){let r=e,{loggingUrl:t}=r,n=mt(r,["loggingUrl"]);typeof t=="string"&&t.length>0&&(Ve.loggingUrl=t),pe=b(b({sessionId:D()},pe),n)}function kt(){var e,t,n;return((t=(e=window==null?void 0:window.location)==null?void 0:e.ancestorOrigins)==null?void 0:t.length)>0?Object.values((n=window==null?void 0:window.location)==null?void 0:n.ancestorOrigins).join(","):(document==null?void 0:document.referrer)||void 0}function We(e,t){return w(this,null,function*(){try{yield fetch(Ve.loggingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"LOG_EVENT",event:{message:e,metadata:b(b({hostname:kt()},pe),t)}})})}catch(n){try{yield P("[logEvent] Error logging event",n,t)}catch(r){}}})}function P(e,t,n){return w(this,null,function*(){try{yield fetch(Ve.loggingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"LOG_ERROR",error:{message:e,error:(0,At.serializeError)(t),metadata:b(b({hostname:kt()},pe),n)}})})}catch(r){}})}var Rn=gt(je());var Or="~";var Tr=new TextEncoder;function $e(e){return w(this,null,function*(){var n;let t=(n=globalThis.crypto)==null?void 0:n.subtle;if(t===void 0)return e;try{let r=yield t.digest("SHA-256",Tr.encode(e)),o=Nr(new Uint8Array(r)).slice(0,12);return`${e}${Or}${o}`}catch(r){return e}})}function Nr(e){let t="";for(let n of e)t+=String.fromCharCode(n);return btoa(t).replace(/\+/gu,"-").replace(/\//gu,"_").replace(/=+$/u,"")}var Ue;function me(e,t=0){let n=typeof e=="string"?(Ue!=null?Ue:Ue=new TextEncoder).encode(e):e,r=n,o=t+374761393&4294967295,a=0;if(r.length>=16){let s=[t+2654435761+2246822519&4294967295,t+2246822519&4294967295,t+0&4294967295,t-2654435761&4294967295],l=n,f=l.length-16,c=0;for(a=0;(a&4294967280)<=f;a+=4){let u=a,p=l[u+0]+(l[u+1]<<8),y=l[u+2]+(l[u+3]<<8),m=p*2246822519+(y*2246822519<<16),d=s[c]+m&4294967295;d=d<<13|d>>>19;let g=d&65535,h=d>>>16;s[c]=g*2654435761+(h*2654435761<<16)&4294967295,c=c+1&3}o=(s[0]<<1|s[0]>>>31)+(s[1]<<7|s[1]>>>25)+(s[2]<<12|s[2]>>>20)+(s[3]<<18|s[3]>>>14)&4294967295}o=o+n.length&4294967295;let i=n.length-4;for(;a<=i;a+=4){let s=a,l=r[s+0]+(r[s+1]<<8),f=r[s+2]+(r[s+3]<<8),c=l*3266489917+(f*3266489917<<16);o=o+c&4294967295,o=o<<17|o>>>15,o=(o&65535)*668265263+((o>>>16)*668265263<<16)&4294967295}for(;a<r.length;++a){let s=r[a];o=o+s*374761393,o=o<<11|o>>>21,o=(o&65535)*2654435761+((o>>>16)*2654435761<<16)&4294967295}return o=o^o>>>15,o=((o&65535)*2246822519&4294967295)+((o>>>16)*2246822519<<16),o=o^o>>>13,o=((o&65535)*3266489917&4294967295)+((o>>>16)*3266489917<<16),o=o^o>>>16,o<0?o+4294967296:o}function Ot(e){let t={};if(e===null||typeof e!="object")return t;for(let[n,r]of Object.entries(e)){if(r===null||typeof r!="object")continue;let{value:o}=r;if(o!==void 0){if(typeof o=="string"||typeof o=="number"){t[n]=o.toString();continue}try{let a=JSON.stringify(o);if(a===void 0)continue;t[n]=me(a,0).toString()}catch(a){continue}}}return t}var Tt="stitch-fp-session-id";function Nt(){try{let e=localStorage.getItem(Tt);return e||(e=D(),localStorage.setItem(Tt,e)),e}catch(e){return}}var Fi=4096,bn=1,tt,nt,U;function wn(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="";for(let r=0;r<e;r++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function rt(e,t){if(e===null||typeof e!="object")return;let n=e[t];if(!(n===null||typeof n!="object"||!("value"in n)))return n.value}function vn(e,t){let n=typeof e=="string"&&e.length>0?e:void 0,r=typeof t=="string"&&t.length>0?t:void 0;if(!(n===void 0&&r===void 0))return b(b({},n!==void 0&&{name:n}),r!==void 0&&{version:r})}function Di(e){if(!Array.isArray(e)||e.length<2)return;let[t,n]=e;if(!(typeof t!="number"||!Number.isFinite(t)||t<=0||typeof n!="number"||!Number.isFinite(n)||n<=0))return{width:t,height:n}}function ji(e){if(!Array.isArray(e))return;let t=[...new Set(e.flatMap(n=>Array.isArray(n)?n:[]).filter(n=>typeof n=="string"&&n.length>0))];return t.length>0?t:void 0}function Sn(e,t){let n=vn(e.os,e.osVersion),r=vn(e.browserName,e.browserVersion),o=typeof navigator.userAgent=="string"&&navigator.userAgent.length>0?navigator.userAgent:void 0,a=Di(rt(t,"screenResolution")),i=rt(t,"timezone"),s=typeof i=="string"&&i.length>0?i:void 0,l=ji(rt(t,"languages"));return b(b(b(b(b(b({},n!==void 0&&{os:n}),r!==void 0&&{browser:r}),o!==void 0&&{userAgent:o}),a!==void 0&&{screenResolution:a}),s!==void 0&&{timezone:s}),l!==void 0&&{languages:l})}function Vi(e){var r;let t=e.cause,n=t!=null?typeof t=="object"&&"message"in t?t.message:typeof t=="object"?"Unknown cause":String(t):void 0;return b(b(b({message:(r=e.message)!=null?r:"Unknown error",name:e.name},typeof e.code=="string"&&{code:e.code}),typeof e.requestId=="string"&&{requestId:e.requestId}),n&&{cause:n})}function Pn(t){return w(this,arguments,function*({config:e}){let n={apiKey:e.publicKey,endpoint:[e.endpoint,Rt],scriptUrlPattern:[e.scriptUrlPattern,It],region:"eu"},r=xt(n);if(e.ossEnabled!==!0)return{proAgent:yield r};let[o,a]=yield Promise.all([r,Promise.resolve().then(()=>(hn(),yn)).then(i=>i.load()).catch(i=>{P("OSS fingerprint agent load failed",i,{source:"fingerprint-stitch"})})]);return b({proAgent:o},a!==void 0&&{ossAgent:a})})}function En(l){return w(this,arguments,function*({config:e,clientId:t,agent:n,payerId:r,sdkVersion:o,ipAddress:a,ipAddressProof:i,fingerprintContext:s}){let f=(e==null?void 0:e.ossEnabled)===!0,c;f&&s!==void 0&&(s.length>Fi?P("Fingerprint context exceeded size limit and was dropped",new Error(`fingerprintContext length ${s.length}`),{source:"fingerprint-stitch"}):c=s);let u=f?a:void 0,p=f?i:void 0;if((e==null?void 0:e.disabled)===!0){let m=F(b({disabled:!0,emulated:!1},o!==void 0&&{sdkVersion:o}),{fingerprintDetails:{timestamp:new Date().toISOString(),requestId:"",visitorId:""}});return btoa(JSON.stringify(m))}if((e==null?void 0:e.disabled)===!1&&(e!=null&&e.useEmulation)&&(t!=null&&t.startsWith("test"))){let m=D().replace(/-/g,"").slice(0,8),d=yield $e(m),g=b(b(F(b({disabled:!1,emulated:!0},o!==void 0&&{sdkVersion:o}),{fingerprintDetails:{timestamp:new Date().toISOString(),requestId:`${Date.now()}.${wn(6)}`,visitorId:wn(20)}}),c!==void 0&&{fingerprintContext:c}),f&&{oss:F(b(b({fingerprintHash:d,normalizedSignals:Sn({},{}),rawSignals:{},signalSchemaVersion:bn,sessionId:D()},a!==void 0&&{ipAddress:a}),i!==void 0&&{ipAddressProof:i}),{source:"stitch-oss-web"})});return btoa(JSON.stringify(g))}if(n!==void 0&&(e==null?void 0:e.disabled)===!1){let m=Date.now();if(tt!==void 0&&nt!==void 0&&U!==void 0&&U.ossEnabled===f&&U.ipAddress===u&&U.ipAddressProof===p&&U.fingerprintContext===c&&U.sdkVersion===o&&m-nt<e.cacheDurationInSeconds*1e3)return btoa(JSON.stringify(tt));try{let d={linkedId:t,tag:{payerId:r},extendedResult:!0},g,h;if(f&&n.ossAgent!==void 0){let[C,$]=yield Promise.allSettled([n.proAgent.get(d),n.ossAgent.get()]);if(C.status==="rejected")throw C.reason;g=C.value,$.status==="fulfilled"?h=$.value:P("OSS fingerprint collection failed",$.reason,{source:"fingerprint-stitch"})}else g=yield n.proAgent.get(d);let I;if(h!==void 0)try{if(typeof h.visitorId!="string"||h.visitorId.length===0)throw new Error("OSS fingerprint payload missing visitorId");let C=yield $e(h.visitorId);I=F(b(b(F(b({fingerprintHash:C},typeof h.version=="string"&&h.version.length>0&&{fingerprintVersion:h.version}),{normalizedSignals:Sn(g,h.components),rawSignals:Ot(h.components),signalSchemaVersion:bn,sessionId:Nt()}),a!==void 0&&{ipAddress:a}),i!==void 0&&{ipAddressProof:i}),{source:"stitch-oss-web"})}catch(C){P("OSS fingerprint payload construction failed",C,{source:"fingerprint-stitch"})}let x=b(b(F(b({disabled:!1,emulated:!1},o!==void 0&&{sdkVersion:o}),{fingerprintDetails:{timestamp:new Date().toISOString(),requestId:g.requestId,visitorId:g.visitorId}}),c!==void 0&&{fingerprintContext:c}),I!==void 0&&{oss:I});return tt=x,nt=m,U={ossEnabled:f,ipAddress:u,ipAddressProof:p,fingerprintContext:c,sdkVersion:o},btoa(JSON.stringify(x))}catch(d){let g=Vi((0,Rn.serializeError)(d)),h=g.name&&g.name!=="Error"?`${g.name}: ${g.message}`:g.message,I={error:b(b(b(b({outcome:"Failed",message:h||"Unknown error"},g.code&&{code:g.code}),g.cause&&{cause:g.cause}),g.requestId&&{requestId:g.requestId}),o&&{sdkVersion:o})};return btoa(JSON.stringify(I))}}let y={error:b({outcome:"Failed",message:"Attempted to get fingerprint data but either runtime config or the agent are not present"},o&&{sdkVersion:o})};return btoa(JSON.stringify(y))})}function Gi(e){return typeof e=="number"}function Wi(e){return typeof e=="string"}function $i(e){return typeof e=="bigint"}function In(e){return!!e&&Object.prototype.toString.call(e)==="[object Date]"&&!isNaN(e)}function xn(e){return e!=null&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"}var Cn=new WeakSet;function oe(e){return Cn.add(e),e}function An(e,t){return oe({type:"object",fields:e,text:t})}function Ui(e,t){return oe({type:"array",items:e,text:t})}function Re(e,t){return oe({type:"opaque",value:e,text:t})}function Zi(e,t){return oe({type:"scalar",value:e,text:t})}function kn(e,t){return t!==void 0?oe(F(b({},e),{text:t})):e}function On(e,t){let n=new Map([...e.fields,...t]);return An(n,e.text)}function Tn(e){return Cn.has(e)}function zi(e,t,n){n.add(e);let r=[];for(let o of e)r.push(at(o,void 0,n));return Ui(r,t)}function Nn(e,t,n){n.add(e);let r=new Map;for(let o of Object.keys(e)){let a=e[o];r.set(o,at(a,void 0,n))}return An(r,t)}function at(e,t,n){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e.getMonth=="function"?Zi(e,t):Tn(e)?kn(e,t):Array.isArray(e)?n.has(e)?Re("<circular ref>",t):zi(e,t,n):xn(e)?n.has(e)?Re("<circular ref>",t):Nn(e,t,n):Re(typeof e=="function"?"<function>":"???",t)}function Z(e,t){return at(e,t,new WeakSet)}function Mn(e,t){return Nn(e,t,new WeakSet)}var z=" ";function ot(e){return e.indexOf(`
15
+ `)>=0}function st(e,t=z){return ot(e)?e.split(`
16
16
  `).map(n=>`${t}${n}`).join(`
17
- `):`${t}${e}`}var Fi=/'/g;function Z(e){return typeof e=="string"?"'"+e.replace(Fi,"\\'")+"'":JSON.stringify(e)}function Ee(e,t=[]){let n=[];if(e.type==="array"){let a=e.items,i=0;for(let s of a)for(let l of Ee(s,[...t,i++]))n.push(l)}else if(e.type==="object"){let a=e.fields;for(let[i,s]of a)for(let l of Ee(s,[...t,i]))n.push(l)}let r=e.text;if(!r)return n;let o;return t.length===0?o="":t.length===1?o=typeof t[0]=="number"?`Value at index ${t[0]}: `:`Value at key ${Z(t[0])}: `:o=`Value at keypath ${Z(t.map(String).join("."))}: `,[...n,`${o}${r}`]}function Di(e,t=80){let n=JSON.stringify(e);if(n.length<=t)return n;let r=`${e.substring(0,t-15)}...`;return n=`${JSON.stringify(r)} [truncated]`,n}function ji(e,t){let{items:n}=e;if(n.length===0)return"[]";let r=[];for(let o of n){let[a,i]=at(o,`${t}${U}`);r.push(`${t}${U}${a},`),i!==void 0&&r.push(it(i,`${t}${U}`))}return["[",...r,`${t}]`].join(`
18
- `)}function Vi(e,t){let{fields:n}=e;if(n.size===0)return"{}";let r=[];for(let[o,a]of n){let i=On(o),s=`${t}${U}${" ".repeat(i.length+2)}`,[l,f]=at(a,`${t}${U}`);r.push(`${t}${U}${i}: ${l},`),f!==void 0&&r.push(it(f,s))}return["{",...r,`${t}}`].join(`
19
- `)}function On(e){return typeof e=="string"?Di(e):typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"?e.toString():e===null?"null":e===void 0?"undefined":Sn(e)?`new Date(${Z(e.toISOString())})`:e instanceof Date?"(Invalid Date)":"(unserializable)"}function at(e,t=""){let n;e.type==="array"?n=ji(e,t):e.type==="object"?n=Vi(e,t):e.type==="scalar"?n=On(e.value):n=e.value;let r=e.text;if(r!==void 0){let o="^".repeat(nt(n)?1:n.length);return[n,[o,r].join(nt(r)?`
20
- `:" ")]}else return[n,void 0]}function Gi(e){let[t,n]=at(e);return n!==void 0?`${t}
21
- ${n}`:t}function Wi(e){return Ee(e,[]).join(`
22
- `)}function kn(e){return{ok:!0,value:e,error:void 0}}function Tn(e){return{ok:!1,value:void 0,error:e}}function $i(e){return t=>{try{let n=e(t);return kn(n)}catch(n){return Tn($(t,n instanceof Error?n.message:String(n)))}}}function Ui(e,t){let n=t(e);if(typeof n=="string"){let r=new Error(`
23
- ${n}`);return r.name="Decoding error",r}else return n}function _(e){function t(c){return e(c,kn,u=>Tn(xn(u)?u:$(c,u)))}function n(c,u=Gi){let p=t(c);if(p.ok)return p.value;throw Ui(p.error,u)}function r(c){return t(c).value}function o(c){return i($i(c))}function a(c,u){return l(p=>c(p)?null:u)}function i(c){return _((u,p,g)=>{let m=t(u);if(!m.ok)return m;let d=vn(c)?c:c(m.value,p,g);return vn(d)?d.decode(m.value):d})}function s(c){return i(c)}function l(c){return i((u,p,g)=>{let m=c(u);return m===null?p(u):g(typeof m=="string"?$(u,m):m)})}function f(c){return _((u,p,g)=>{let m=t(u);return m.ok?m:g($(m.error,c))})}return Zi({verify:n,value:r,decode:t,transform:o,refine:a,reject:l,describe:f,then:i,pipe:s})}var Nn=new WeakSet;function Zi(e){return Nn.add(e),e}function vn(e){return Nn.has(e)}var Hi=_((e,t,n)=>Array.isArray(e)?t(e):n("Must be an array"));function Yi(e,t,n,r){let o=[];for(let a=0;a<e.length;++a){let i=e[a];if(i.ok)o.push(i.value);else{let s=i.error,l=t.slice();return l.splice(a,1,$(s,s.text?`${s.text} (at index ${a})`:`index ${a}`)),r($(l))}}return n(o)}function st(e){let t=e.decode;return Hi.then((n,r,o)=>{let a=n.map(t);return Yi(a,n,r,o)})}function zi(e){return _((t,n,r)=>t instanceof e?n(t):r(`Must be ${e.name} instance`))}function Mn(e){return _(t=>e().decode(t))}function Bi(e,t){let n=new Set;for(let r of e)t.has(r)||n.add(r);return n}var Ln=_((e,t,n)=>Rn(e)?t(e):n("Must be an object"));function K(e){let t=new Set(Object.keys(e));return Ln.then((n,r,o)=>{let a=new Set(Object.keys(n)),i=Bi(t,a),s={},l=null;for(let f of Object.keys(e)){let c=e[f],u=n[f],p=c.decode(u);if(p.ok){let g=p.value;g!==void 0&&(s[f]=g),i.delete(f)}else{let g=p.error;u===void 0?i.add(f):(l===null&&(l=new Map),l.set(f,g))}}if(l||i.size>0){let f=An(n);if(l&&(f=In(f,l)),i.size>0){let c=Array.from(i).map(Z).join(", "),u=i.size>1?"keys":"key";f=_n(f,`Missing ${u}: ${c}`)}return o(f)}return r(s)})}var rt=`Either:
24
- `;function Xi(e){return`-${it(e).substring(1)}`}function Ji(e){return e.startsWith(rt)?e.substring(rt.length):Xi(e)}function ae(...e){if(e.length===0)throw new Error("Pass at least one decoder to either()");return _((t,n,r)=>{let o=[];for(let i=0;i<e.length;i++){let s=e[i].decode(t);if(s.ok)return s;o.push(s.error)}let a=rt+o.map(i=>Ji(Ee(i).join(`
17
+ `):`${t}${e}`}var Hi=/'/g;function H(e){return typeof e=="string"?"'"+e.replace(Hi,"\\'")+"'":JSON.stringify(e)}function Pe(e,t=[]){let n=[];if(e.type==="array"){let a=e.items,i=0;for(let s of a)for(let l of Pe(s,[...t,i++]))n.push(l)}else if(e.type==="object"){let a=e.fields;for(let[i,s]of a)for(let l of Pe(s,[...t,i]))n.push(l)}let r=e.text;if(!r)return n;let o;return t.length===0?o="":t.length===1?o=typeof t[0]=="number"?`Value at index ${t[0]}: `:`Value at key ${H(t[0])}: `:o=`Value at keypath ${H(t.map(String).join("."))}: `,[...n,`${o}${r}`]}function Yi(e,t=80){let n=JSON.stringify(e);if(n.length<=t)return n;let r=`${e.substring(0,t-15)}...`;return n=`${JSON.stringify(r)} [truncated]`,n}function Bi(e,t){let{items:n}=e;if(n.length===0)return"[]";let r=[];for(let o of n){let[a,i]=ct(o,`${t}${z}`);r.push(`${t}${z}${a},`),i!==void 0&&r.push(st(i,`${t}${z}`))}return["[",...r,`${t}]`].join(`
18
+ `)}function Xi(e,t){let{fields:n}=e;if(n.size===0)return"{}";let r=[];for(let[o,a]of n){let i=Ln(o),s=`${t}${z}${" ".repeat(i.length+2)}`,[l,f]=ct(a,`${t}${z}`);r.push(`${t}${z}${i}: ${l},`),f!==void 0&&r.push(st(f,s))}return["{",...r,`${t}}`].join(`
19
+ `)}function Ln(e){return typeof e=="string"?Yi(e):typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"?e.toString():e===null?"null":e===void 0?"undefined":In(e)?`new Date(${H(e.toISOString())})`:e instanceof Date?"(Invalid Date)":"(unserializable)"}function ct(e,t=""){let n;e.type==="array"?n=Bi(e,t):e.type==="object"?n=Xi(e,t):e.type==="scalar"?n=Ln(e.value):n=e.value;let r=e.text;if(r!==void 0){let o="^".repeat(ot(n)?1:n.length);return[n,[o,r].join(ot(r)?`
20
+ `:" ")]}else return[n,void 0]}function Ji(e){let[t,n]=ct(e);return n!==void 0?`${t}
21
+ ${n}`:t}function Ki(e){return Pe(e,[]).join(`
22
+ `)}function Fn(e){return{ok:!0,value:e,error:void 0}}function Dn(e){return{ok:!1,value:void 0,error:e}}function qi(e){return t=>{try{let n=e(t);return Fn(n)}catch(n){return Dn(Z(t,n instanceof Error?n.message:String(n)))}}}function Qi(e,t){let n=t(e);if(typeof n=="string"){let r=new Error(`
23
+ ${n}`);return r.name="Decoding error",r}else return n}function _(e){function t(c){return e(c,Fn,u=>Dn(Tn(u)?u:Z(c,u)))}function n(c,u=Ji){let p=t(c);if(p.ok)return p.value;throw Qi(p.error,u)}function r(c){return t(c).value}function o(c){return i(qi(c))}function a(c,u){return l(p=>c(p)?null:u)}function i(c){return _((u,p,y)=>{let m=t(u);if(!m.ok)return m;let d=_n(c)?c:c(m.value,p,y);return _n(d)?d.decode(m.value):d})}function s(c){return i(c)}function l(c){return i((u,p,y)=>{let m=c(u);return m===null?p(u):y(typeof m=="string"?Z(u,m):m)})}function f(c){return _((u,p,y)=>{let m=t(u);return m.ok?m:y(Z(m.error,c))})}return ea({verify:n,value:r,decode:t,transform:o,refine:a,reject:l,describe:f,then:i,pipe:s})}var jn=new WeakSet;function ea(e){return jn.add(e),e}function _n(e){return jn.has(e)}var ta=_((e,t,n)=>Array.isArray(e)?t(e):n("Must be an array"));function na(e,t,n,r){let o=[];for(let a=0;a<e.length;++a){let i=e[a];if(i.ok)o.push(i.value);else{let s=i.error,l=t.slice();return l.splice(a,1,Z(s,s.text?`${s.text} (at index ${a})`:`index ${a}`)),r(Z(l))}}return n(o)}function ut(e){let t=e.decode;return ta.then((n,r,o)=>{let a=n.map(t);return na(a,n,r,o)})}function ra(e){return _((t,n,r)=>t instanceof e?n(t):r(`Must be ${e.name} instance`))}function Vn(e){return _(t=>e().decode(t))}function oa(e,t){let n=new Set;for(let r of e)t.has(r)||n.add(r);return n}var Gn=_((e,t,n)=>xn(e)?t(e):n("Must be an object"));function q(e){let t=new Set(Object.keys(e));return Gn.then((n,r,o)=>{let a=new Set(Object.keys(n)),i=oa(t,a),s={},l=null;for(let f of Object.keys(e)){let c=e[f],u=n[f],p=c.decode(u);if(p.ok){let y=p.value;y!==void 0&&(s[f]=y),i.delete(f)}else{let y=p.error;u===void 0?i.add(f):(l===null&&(l=new Map),l.set(f,y))}}if(l||i.size>0){let f=Mn(n);if(l&&(f=On(f,l)),i.size>0){let c=Array.from(i).map(H).join(", "),u=i.size>1?"keys":"key";f=kn(f,`Missing ${u}: ${c}`)}return o(f)}return r(s)})}var it=`Either:
24
+ `;function ia(e){return`-${st(e).substring(1)}`}function aa(e){return e.startsWith(it)?e.substring(it.length):ia(e)}function ie(...e){if(e.length===0)throw new Error("Pass at least one decoder to either()");return _((t,n,r)=>{let o=[];for(let i=0;i<e.length;i++){let s=e[i].decode(t);if(s.ok)return s;o.push(s.error)}let a=it+o.map(i=>aa(Pe(i).join(`
25
25
  `))).join(`
26
- `);return r(a)})}function Fn(e){return _((t,n,r)=>{let o=e.find(a=>a===t);return o!==void 0?n(o):r(`Must be one of ${e.map(a=>Z(a)).join(", ")}`)})}function Dn(e){return typeof e=="function"?e():e}var Ki=jn(null),qi=jn(void 0),Qi=_((e,t,n)=>e==null?t(e):n("Must be undefined or null"));function se(e,t){let n=ae(qi,e);return arguments.length>=2?n.transform(r=>r!=null?r:Dn(t)):n}function ct(e,t){let n=ae(Qi,e);return arguments.length>=2?n.transform(r=>r!=null?r:Dn(t)):n}function jn(e){return _((t,n,r)=>t===e?n(e):r(`Must be ${typeof e=="symbol"?String(e):Z(e)}`))}var Xa=_((e,t,n)=>t(e));var ce=_((e,t,n)=>typeof e=="boolean"?t(e):n("Must be boolean")),Ja=_((e,t,n)=>t(!!e));function ea(e,t){let n=t!==void 0?e:void 0,r=t!==void 0?t:e;return Ln.then((o,a,i)=>{var f;let s={},l=new Map;for(let c of Object.keys(o)){let u=o[c],p=n==null?void 0:n.decode(c);if((p==null?void 0:p.ok)===!1)return i($(o,`Invalid key ${Z(c)}: ${Wi(p.error)}`));let g=(f=p==null?void 0:p.value)!=null?f:c,m=r.decode(u);m.ok?l.size===0&&(s[g]=m.value):(l.set(c,m.error),s={})}return l.size>0?i(In(An(o),l)):a(s)})}var ta=/^([A-Za-z]{3,9}(?:[+][A-Za-z]{3,9})?):\/\/(?:([-;:&=+$,\w]+)@)?(?:([A-Za-z0-9.-]+)(?::([0-9]{2,5}))?)(\/(?:[-+~%/.,\w]*)?(?:\?[-+=&;%@.,/\w]*)?(?:#[.,!/\w]*)?)?$/,Vn=_((e,t,n)=>ki(e)?t(e):n("Must be string")),j=G(/\S/,"Must be non-empty string");function G(e,t){return Vn.refine(n=>e.test(n),t)}var Ka=G(/^(([^<>()[\]\\.,;:\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,}))$/,"Must be email"),na=ae(G(ta,"Must be URL").transform(e=>new URL(e)),zi(URL)),qa=na.refine(e=>e.protocol==="https:","Must be an HTTPS URL"),Qa=G(/^[a-z_][a-z0-9_]*$/i,"Must be valid identifier");var Gn=G(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,"Must be uuid"),es=Gn.refine(e=>e[14]==="1","Must be uuidv1"),ts=Gn.refine(e=>e[14]==="4","Must be uuidv4"),ra=G(/^[0-9]+$/,"Must only contain digits"),ns=G(/^[0-9a-f]+$/i,"Must only contain hexadecimal digits"),rs=ra.transform(Number),oa=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:[.]\d+)?(?:Z|[+-]\d{2}:?\d{2})$/,ia=_((e,t,n)=>Sn(e)?t(e):n("Must be a Date")),aa=G(oa,"Must be ISO8601 format").transform(e=>{let t=new Date(e);if(isNaN(t.getTime()))throw new Error("Must be valid date/time value");return t}),os=ae(ia,aa).describe("Must be a Date or date string"),sa=_((e,t,n)=>Oi(e)?t(e):n("Must be number")),ue=sa.refine(e=>Number.isFinite(e),"Number must be finite"),ca=ue.refine(e=>Number.isInteger(e),"Number must be an integer"),Wn=ue.refine(e=>e>=0&&!Object.is(e,-0),"Number must be positive"),is=ca.refine(e=>e>=0&&!Object.is(e,-0),"Number must be positive"),as=_((e,t,n)=>Ti(e)?t(e):n("Must be bigint")),ua=Mn(()=>ea($n)),la=Mn(()=>st($n)),$n=ae(Ki,Vn,ue,ce,ua,la).describe("Must be valid JSON value");var _e=3,Un=500,Hn={prod:"https://public-config.stitch.money",staging:"https://public-config-staging.stitch.money",preprod:"https://public-config-pre-prod.stitch.money"},fa=Fn(["visa","mastercard","amex"]),Ie=ct(K({allowedNetworks:ct(st(fa))})),da=K({analytics:K({changeEventDebounceDelayMs:Wn}),evervault:K({teamId:j,appId:j}),ipAddress:se(j),ipAddressProof:se(j),fingerprintContext:se(j),fingerprint:K({disabled:ce,useEmulation:ce,ossEnabled:se(ce),publicKey:j,endpoint:j,scriptUrlPattern:j,cacheDurationInSeconds:ue}),card:Ie,applePay:Ie,googlePay:Ie,samsungPay:Ie});function Zn(e){return e!=null&&typeof e=="object"&&"aborted"in e&&"addEventListener"in e}function pa(e){return typeof e=="string"&&Object.prototype.hasOwnProperty.call(Hn,e)}function ma(e){let t=pa(e==null?void 0:e.environment)?e.environment:"prod";return Hn[t]}function ga(e,t){return`${ma(t)}/config/${e}`}function le(e,t,n){return b(this,null,function*(){let r=Zn(t)?t:void 0,o=Zn(t)?n:t,a=ga(e,o);try{let i=0;for(;i<_e;)try{let s=yield fetch(a,{signal:r});if(s.ok)return{type:"success",runtimeConfig:da.verify(yield s.json())};if(i++,i===_e)return{type:"error",error:new Error(`[${le.name}] Failed to retrieve runtime config after ${_e} attempts. Runtime config endpoint returned ${s.status} response`)};yield new Promise(l=>setTimeout(l,Un))}catch(s){if(i++,i===_e)throw s;yield new Promise(l=>setTimeout(l,Un))}return{type:"error",error:new Error(`[${le.name}] Failed to retrieve runtime config`)}}catch(i){return i instanceof Error?{type:"error",error:i}:typeof i=="string"?{type:"error",error:new Error(i)}:{type:"error",error:new Error(`[${le.name}] Failed to retrieve runtime config. Unknown error thrown`)}}})}import{v4 as ba}from"uuid";var ya="9ba67dd8d5b247cfb3f76e";function xe(e){return{version:"2",serviceId:ya,protocol:"PROTOCOL_3DS",allowedBrands:ee(e==null?void 0:e.samsungPay).map(t=>ht(t))}}function Yn(e){return{apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["CRYPTOGRAM_3DS"],allowedCardNetworks:ee(e==null?void 0:e.googlePay).map(t=>yt(t))}}]}}function zn(e){return b(this,null,function*(){if(!window.ApplePaySession)return!1;let t=ApplePaySession;if(t.applePayCapabilities&&e)try{return(yield t.applePayCapabilities(e)).paymentCredentialStatus!=="applePayUnsupported"}catch(n){P("[determineApplePaySupport] failed to get applePayCapabilities, falling back to canMakePayments",n,{merchantIdentifier:e})}return t.canMakePayments()})}function Bn(){if(!window.ApplePaySession)return-1;let t=n=>n===0?-1:ApplePaySession.supportsVersion(n)?n:t(n-1);return t(14)}function Xn(e,t){return b(this,null,function*(){if(!e)return!1;try{return(yield e.isReadyToPay(Yn(t))).result}catch(n){return!1}})}function Jn(e,t){return b(this,null,function*(){if(!e)return!1;try{return(yield e.isReadyToPay(xe(t))).result}catch(n){return!1}})}var L=class extends Error{constructor(t){super(t),this.name="SessionError"}};var fe=e=>e instanceof Error?e.toString():JSON.stringify(e);var ut="3.16.0";var wa="[onvalidatemerchant]",Kn="[onpaymentauthorized]",q="[onClickSamsungPaySessionHandler]",lt="[onClickGooglePaySessionHandler]",qn=class{constructor(t){k(this,"onCancelPayment");k(this,"clientId");k(this,"gatewayMerchantId");k(this,"runtimeConfigEnvironment");k(this,"applePayIsSupported",!1);k(this,"samsungPayIsSupported",!1);k(this,"googlePayIsSupported",!1);k(this,"runtimeConfig");k(this,"fingerprintAgent");k(this,"googlePayClient");k(this,"samsungPayClient");var s,l,f;Ve({source:"wallets-client",version:ut});let{onCancelPayment:n,clientId:r,gatewayMerchantId:o,runtimeConfigEnvironment:a}=t,i=(f=(l=(s=globalThis.google)==null?void 0:s.payments)==null?void 0:l.api)==null?void 0:f.PaymentsClient;this.googlePayClient=i?new i({environment:r!=null&&r.startsWith("test-")?"TEST":"PRODUCTION"}):void 0,this.samsungPayClient=window.SamsungPay?new window.SamsungPay.PaymentClient({environment:r!=null&&r.startsWith("test-")?"STAGE":"PRODUCTION",nonce:ba()}):void 0,this.onCancelPayment=n!=null?n:()=>{},this.clientId=r,this.gatewayMerchantId=o,this.runtimeConfigEnvironment=a,this.loadFingerprintAgent()}loadRuntimeConfig(){return b(this,null,function*(){var t,n;if(this.runtimeConfig===void 0&&this.clientId){let r=yield le(this.clientId,{environment:this.runtimeConfigEnvironment});if(r.type==="error"){let o=(n=(t=r.error)==null?void 0:t.message)!=null?n:"Failed to load runtime configuration";throw P(o,r.error,{clientId:this.clientId}),r.error?r.error:new Error(o)}this.runtimeConfig=r.runtimeConfig}})}loadFingerprintAgent(){return b(this,null,function*(){this.fingerprintAgent===void 0&&(this.runtimeConfig===void 0&&(yield this.loadRuntimeConfig()),this.runtimeConfig!==void 0&&!this.runtimeConfig.fingerprint.disabled&&(this.fingerprintAgent=yield bn({config:this.runtimeConfig.fingerprint})))})}fingerprint(){return b(this,null,function*(){var n,r,o,a;let t=yield wn({config:(n=this.runtimeConfig)==null?void 0:n.fingerprint,agent:this.fingerprintAgent,clientId:this.clientId,sdkVersion:ut,ipAddress:(r=this.runtimeConfig)==null?void 0:r.ipAddress,ipAddressProof:(o=this.runtimeConfig)==null?void 0:o.ipAddressProof,fingerprintContext:(a=this.runtimeConfig)==null?void 0:a.fingerprintContext});return Ve({fingerprint:t}),t})}supportedPaymentMethods(){return b(this,null,function*(){let t=[];try{yield this.loadRuntimeConfig()}catch(n){}return this.applePayIsSupported=yield zn(this.gatewayMerchantId),this.applePayIsSupported&&t.push("APPLE_PAY"),this.samsungPayIsSupported=yield Jn(this.samsungPayClient,this.runtimeConfig),this.samsungPayIsSupported&&t.push("SAMSUNG_PAY"),this.googlePayIsSupported=yield Xn(this.googlePayClient,this.runtimeConfig),this.googlePayIsSupported&&t.push("GOOGLE_PAY"),t})}onClickApplePaySessionHandler(t,n,r,o,a,i){let s=Bn();return()=>{var u,p,g;let l=ee((u=this.runtimeConfig)==null?void 0:u.applePay).map(m=>gt(m)),f={countryCode:"ZA",currencyCode:t,supportedNetworks:l,merchantCapabilities:["supports3DS"],total:{label:r,amount:n.toString()}};i&&(f.recurringPaymentRequest={paymentDescription:r,billingAgreement:i.billingAgreement,regularBilling:{label:r,amount:((p=i.recurringAmount)!=null?p:n).toString(),paymentTiming:"recurring",recurringPaymentIntervalUnit:i.recurringIntervalUnit,recurringPaymentIntervalCount:(g=i.recurringIntervalCount)!=null?g:1},managementURL:i.managementUrl});let c;try{c=new ApplePaySession(s,f)}catch(m){P("Failed to create Apple Pay session",m,{clientId:this.clientId});return}c.onvalidatemerchant=m=>b(this,null,function*(){try{let d=yield o(m.validationURL);if(!c)throw new Error("ApplePaySession is missing");if(d==null||typeof d!="object")throw new Error(`verifyCallbackResponse is not an object: ${JSON.stringify(d)}`);if(Object.keys(d).length===0)throw new Error(`verifyCallbackResponse is an empty object: ${JSON.stringify(d)}`);c.completeMerchantValidation(d)}catch(d){throw P(`${wa} Failed to complete merchant validation`,d,{clientId:this.clientId}),new L(`Failed to complete merchant validation: ${fe(d)}`)}}),c.onpaymentauthorized=m=>b(this,null,function*(){try{let d=m.payment.token,y=yield this.fingerprint(),h=yield a(d,y);switch(h.status){case"TransactionPending":case"TransactionSuccess":{c==null||c.completePayment(ApplePaySession.STATUS_SUCCESS);break}case"TransactionFailure":{c==null||c.completePayment(ApplePaySession.STATUS_FAILURE);break}default:{let I="Invalid transaction status",x=new L(`${I} ${h.status}`);throw P(`${Kn} Invalid transaction status`,x,{clientId:this.clientId}),x}}}catch(d){throw c==null||c.completePayment(ApplePaySession.STATUS_FAILURE),P(`${Kn} Failed to create payment`,d,{clientId:this.clientId}),new L(`Failed to create payment: ${fe(d)}`)}}),c.oncancel=()=>{this.onCancelPayment()},c.begin()}}onClickSamsungPaySessionHandler(t,n,r,o,a,i,s){return()=>b(this,null,function*(){if(!this.samsungPayClient){let l="Samsung Pay client not initialized",f=new Error(l);throw P(`${q} ${l}`,f,{clientId:this.clientId}),f}try{let l={orderNumber:o,merchant:{name:r,url:a,id:i,countryCode:"ZA"},amount:{option:"FORMAT_TOTAL_PRICE_ONLY",currency:t,total:n}},f=yield this.fingerprint(),c=xe(this.runtimeConfig);Ge(`${q} Loading payment sheet`,{clientId:this.clientId,type:"SAMSUNG_PAY",samsungPay:{paymentMethods:c,transactionDetail:l}});let u=yield this.samsungPayClient.loadPaymentSheet(c,l);Ge(`${q} Received payment credential`,{clientId:this.clientId,type:"SAMSUNG_PAY",samsungPay:{paymentCredential:u}});let p=yield s(u,f);switch(p.status){case"TransactionPending":break;case"TransactionFailure":{this.samsungPayClient.notify({status:"REJECTED"});break}case"TransactionSuccess":{this.samsungPayClient.notify({status:"CHARGED"});break}default:{this.samsungPayClient.notify({status:"ERRED"});let g=`${q} Invalid transaction status: ${p.status}`,m=new L(g);throw P(g,m,{clientId:this.clientId,type:"SAMSUNG_PAY"}),m}}}catch(l){throw P(`${q} Failed to create payment`,l,{clientId:this.clientId,type:"SAMSUNG_PAY"}),new L(`${q} Failed to create payment: ${fe(l)}`)}})}onClickGooglePaySessionHandler(t){return n=>b(this,null,function*(){try{let r=yield this.fingerprint(),o=yield t(n.paymentMethodData.tokenizationData.token,r);switch(o.status){case"TransactionPending":case"TransactionFailure":case"TransactionSuccess":break;default:{let a=`${lt} Invalid transaction status: ${o.status}`,i=new L(a);throw P(a,i,{clientId:this.clientId}),i}}}catch(r){throw P(`${lt} Failed to create payment`,r,{clientId:this.clientId}),new L(`${lt} Failed to create payment: ${fe(r)}`)}})}};export{qn as StitchWalletClientSdk,mt as WalletType};
26
+ `);return r(a)})}function Wn(e){return _((t,n,r)=>{let o=e.find(a=>a===t);return o!==void 0?n(o):r(`Must be one of ${e.map(a=>H(a)).join(", ")}`)})}function $n(e){return typeof e=="function"?e():e}var sa=Un(null),ca=Un(void 0),ua=_((e,t,n)=>e==null?t(e):n("Must be undefined or null"));function ae(e,t){let n=ie(ca,e);return arguments.length>=2?n.transform(r=>r!=null?r:$n(t)):n}function lt(e,t){let n=ie(ua,e);return arguments.length>=2?n.transform(r=>r!=null?r:$n(t)):n}function Un(e){return _((t,n,r)=>t===e?n(e):r(`Must be ${typeof e=="symbol"?String(e):H(e)}`))}var is=_((e,t,n)=>t(e));var se=_((e,t,n)=>typeof e=="boolean"?t(e):n("Must be boolean")),as=_((e,t,n)=>t(!!e));function la(e,t){let n=t!==void 0?e:void 0,r=t!==void 0?t:e;return Gn.then((o,a,i)=>{var f;let s={},l=new Map;for(let c of Object.keys(o)){let u=o[c],p=n==null?void 0:n.decode(c);if((p==null?void 0:p.ok)===!1)return i(Z(o,`Invalid key ${H(c)}: ${Ki(p.error)}`));let y=(f=p==null?void 0:p.value)!=null?f:c,m=r.decode(u);m.ok?l.size===0&&(s[y]=m.value):(l.set(c,m.error),s={})}return l.size>0?i(On(Mn(o),l)):a(s)})}var fa=/^([A-Za-z]{3,9}(?:[+][A-Za-z]{3,9})?):\/\/(?:([-;:&=+$,\w]+)@)?(?:([A-Za-z0-9.-]+)(?::([0-9]{2,5}))?)(\/(?:[-+~%/.,\w]*)?(?:\?[-+=&;%@.,/\w]*)?(?:#[.,!/\w]*)?)?$/,Zn=_((e,t,n)=>Wi(e)?t(e):n("Must be string")),V=W(/\S/,"Must be non-empty string");function W(e,t){return Zn.refine(n=>e.test(n),t)}var ss=W(/^(([^<>()[\]\\.,;:\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,}))$/,"Must be email"),da=ie(W(fa,"Must be URL").transform(e=>new URL(e)),ra(URL)),cs=da.refine(e=>e.protocol==="https:","Must be an HTTPS URL"),us=W(/^[a-z_][a-z0-9_]*$/i,"Must be valid identifier");var zn=W(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,"Must be uuid"),ls=zn.refine(e=>e[14]==="1","Must be uuidv1"),fs=zn.refine(e=>e[14]==="4","Must be uuidv4"),pa=W(/^[0-9]+$/,"Must only contain digits"),ds=W(/^[0-9a-f]+$/i,"Must only contain hexadecimal digits"),ps=pa.transform(Number),ma=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:[.]\d+)?(?:Z|[+-]\d{2}:?\d{2})$/,ga=_((e,t,n)=>In(e)?t(e):n("Must be a Date")),ya=W(ma,"Must be ISO8601 format").transform(e=>{let t=new Date(e);if(isNaN(t.getTime()))throw new Error("Must be valid date/time value");return t}),ms=ie(ga,ya).describe("Must be a Date or date string"),ha=_((e,t,n)=>Gi(e)?t(e):n("Must be number")),ce=ha.refine(e=>Number.isFinite(e),"Number must be finite"),ba=ce.refine(e=>Number.isInteger(e),"Number must be an integer"),Hn=ce.refine(e=>e>=0&&!Object.is(e,-0),"Number must be positive"),gs=ba.refine(e=>e>=0&&!Object.is(e,-0),"Number must be positive"),ys=_((e,t,n)=>$i(e)?t(e):n("Must be bigint")),wa=Vn(()=>la(Yn)),va=Vn(()=>ut(Yn)),Yn=ie(sa,Zn,ce,se,wa,va).describe("Must be valid JSON value");var Ee=3,Bn=500,Jn={prod:"https://public-config.stitch.money",staging:"https://public-config-staging.stitch.money",preprod:"https://public-config-pre-prod.stitch.money"},Sa=Wn(["visa","mastercard","amex","diners","discover"]),_e=lt(q({allowedNetworks:lt(ut(Sa))})),Ra=q({analytics:q({changeEventDebounceDelayMs:Hn}),evervault:q({teamId:V,appId:V}),ipAddress:ae(V),ipAddressProof:ae(V),fingerprintContext:ae(V),fingerprint:q({disabled:se,useEmulation:se,ossEnabled:ae(se),publicKey:V,endpoint:V,scriptUrlPattern:V,cacheDurationInSeconds:ce}),card:_e,applePay:_e,googlePay:_e,samsungPay:_e});function Xn(e){return e!=null&&typeof e=="object"&&"aborted"in e&&"addEventListener"in e}function Pa(e){return typeof e=="string"&&Object.prototype.hasOwnProperty.call(Jn,e)}function Ea(e){let t=Pa(e==null?void 0:e.environment)?e.environment:"prod";return Jn[t]}function _a(e,t){return`${Ea(t)}/config/${e}`}function ue(e,t,n){return w(this,null,function*(){let r=Xn(t)?t:void 0,o=Xn(t)?n:t,a=_a(e,o);try{let i=0;for(;i<Ee;)try{let s=yield fetch(a,{signal:r});if(s.ok)return{type:"success",runtimeConfig:Ra.verify(yield s.json())};if(i++,i===Ee)return{type:"error",error:new Error(`[${ue.name}] Failed to retrieve runtime config after ${Ee} attempts. Runtime config endpoint returned ${s.status} response`)};yield new Promise(l=>setTimeout(l,Bn))}catch(s){if(i++,i===Ee)throw s;yield new Promise(l=>setTimeout(l,Bn))}return{type:"error",error:new Error(`[${ue.name}] Failed to retrieve runtime config`)}}catch(i){return i instanceof Error?{type:"error",error:i}:typeof i=="string"?{type:"error",error:new Error(i)}:{type:"error",error:new Error(`[${ue.name}] Failed to retrieve runtime config. Unknown error thrown`)}}})}import{v4 as Ca}from"uuid";var Ia="9ba67dd8d5b247cfb3f76e";function Ie(e){return{version:"2",serviceId:Ia,protocol:"PROTOCOL_3DS",allowedBrands:wt(e==null?void 0:e.samsungPay)}}function Kn(e){return{apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["CRYPTOGRAM_3DS"],allowedCardNetworks:bt(e==null?void 0:e.googlePay)}}]}}function qn(e){return w(this,null,function*(){if(!window.ApplePaySession)return!1;let t=ApplePaySession;if(t.applePayCapabilities&&e)try{return(yield t.applePayCapabilities(e)).paymentCredentialStatus!=="applePayUnsupported"}catch(n){P("[determineApplePaySupport] failed to get applePayCapabilities, falling back to canMakePayments",n,{merchantIdentifier:e})}return t.canMakePayments()})}function Qn(){if(!window.ApplePaySession)return-1;let t=n=>n===0?-1:ApplePaySession.supportsVersion(n)?n:t(n-1);return t(14)}function er(e,t){return w(this,null,function*(){if(!e)return!1;try{return(yield e.isReadyToPay(Kn(t))).result}catch(n){return!1}})}function tr(e,t){return w(this,null,function*(){if(!e)return!1;try{return(yield e.isReadyToPay(Ie(t))).result}catch(n){return!1}})}var L=class extends Error{constructor(t){super(t),this.name="SessionError"}};var le=e=>e instanceof Error?e.toString():JSON.stringify(e);var ft="3.20.1";var Aa="[onvalidatemerchant]",nr="[onpaymentauthorized]",Q="[onClickSamsungPaySessionHandler]",dt="[onClickGooglePaySessionHandler]",rr=class{constructor(t){O(this,"onCancelPayment");O(this,"clientId");O(this,"gatewayMerchantId");O(this,"runtimeConfigEnvironment");O(this,"applePayIsSupported",!1);O(this,"samsungPayIsSupported",!1);O(this,"googlePayIsSupported",!1);O(this,"runtimeConfig");O(this,"fingerprintAgent");O(this,"googlePayClient");O(this,"samsungPayClient");var s,l,f;Ge({source:"wallets-client",version:ft});let{onCancelPayment:n,clientId:r,gatewayMerchantId:o,runtimeConfigEnvironment:a}=t,i=(f=(l=(s=globalThis.google)==null?void 0:s.payments)==null?void 0:l.api)==null?void 0:f.PaymentsClient;this.googlePayClient=i?new i({environment:r!=null&&r.startsWith("test-")?"TEST":"PRODUCTION"}):void 0,this.samsungPayClient=window.SamsungPay?new window.SamsungPay.PaymentClient({environment:r!=null&&r.startsWith("test-")?"STAGE":"PRODUCTION",nonce:Ca()}):void 0,this.onCancelPayment=n!=null?n:()=>{},this.clientId=r,this.gatewayMerchantId=o,this.runtimeConfigEnvironment=a,this.loadFingerprintAgent()}loadRuntimeConfig(){return w(this,null,function*(){var t,n;if(this.runtimeConfig===void 0&&this.clientId){let r=yield ue(this.clientId,{environment:this.runtimeConfigEnvironment});if(r.type==="error"){let o=(n=(t=r.error)==null?void 0:t.message)!=null?n:"Failed to load runtime configuration";throw P(o,r.error,{clientId:this.clientId}),r.error?r.error:new Error(o)}this.runtimeConfig=r.runtimeConfig}})}loadFingerprintAgent(){return w(this,null,function*(){this.fingerprintAgent===void 0&&(this.runtimeConfig===void 0&&(yield this.loadRuntimeConfig()),this.runtimeConfig!==void 0&&!this.runtimeConfig.fingerprint.disabled&&(this.fingerprintAgent=yield Pn({config:this.runtimeConfig.fingerprint})))})}fingerprint(){return w(this,null,function*(){var n,r,o,a;let t=yield En({config:(n=this.runtimeConfig)==null?void 0:n.fingerprint,agent:this.fingerprintAgent,clientId:this.clientId,sdkVersion:ft,ipAddress:(r=this.runtimeConfig)==null?void 0:r.ipAddress,ipAddressProof:(o=this.runtimeConfig)==null?void 0:o.ipAddressProof,fingerprintContext:(a=this.runtimeConfig)==null?void 0:a.fingerprintContext});return Ge({fingerprint:t}),t})}supportedPaymentMethods(){return w(this,null,function*(){try{yield this.loadRuntimeConfig()}catch(n){}[this.applePayIsSupported,this.samsungPayIsSupported,this.googlePayIsSupported]=yield Promise.all([qn(this.gatewayMerchantId),tr(this.samsungPayClient,this.runtimeConfig),er(this.googlePayClient,this.runtimeConfig)]);let t=[];return this.applePayIsSupported&&t.push("APPLE_PAY"),this.samsungPayIsSupported&&t.push("SAMSUNG_PAY"),this.googlePayIsSupported&&t.push("GOOGLE_PAY"),t})}onClickApplePaySessionHandler(t,n,r,o,a,i){let s=Qn();return()=>{var u,p,y;let l=ht((u=this.runtimeConfig)==null?void 0:u.applePay),f={countryCode:"ZA",currencyCode:t,supportedNetworks:l,merchantCapabilities:["supports3DS"],total:{label:r,amount:n.toString()}};i&&(f.recurringPaymentRequest={paymentDescription:r,billingAgreement:i.billingAgreement,regularBilling:{label:r,amount:((p=i.recurringAmount)!=null?p:n).toString(),paymentTiming:"recurring",recurringPaymentIntervalUnit:i.recurringIntervalUnit,recurringPaymentIntervalCount:(y=i.recurringIntervalCount)!=null?y:1},managementURL:i.managementUrl});let c;try{c=new ApplePaySession(s,f)}catch(m){P("Failed to create Apple Pay session",m,{clientId:this.clientId});return}c.onvalidatemerchant=m=>w(this,null,function*(){try{let d=yield o(m.validationURL);if(!c)throw new Error("ApplePaySession is missing");if(d==null||typeof d!="object")throw new Error(`verifyCallbackResponse is not an object: ${JSON.stringify(d)}`);if(Object.keys(d).length===0)throw new Error(`verifyCallbackResponse is an empty object: ${JSON.stringify(d)}`);c.completeMerchantValidation(d)}catch(d){throw P(`${Aa} Failed to complete merchant validation`,d,{clientId:this.clientId}),new L(`Failed to complete merchant validation: ${le(d)}`)}}),c.onpaymentauthorized=m=>w(this,null,function*(){try{let d=m.payment.token,g=yield this.fingerprint(),h=yield a(d,g);switch(h.status){case"TransactionPending":case"TransactionSuccess":{c==null||c.completePayment(ApplePaySession.STATUS_SUCCESS);break}case"TransactionFailure":{c==null||c.completePayment(ApplePaySession.STATUS_FAILURE);break}default:{let I="Invalid transaction status",x=new L(`${I} ${h.status}`);throw P(`${nr} Invalid transaction status`,x,{clientId:this.clientId}),x}}}catch(d){throw c==null||c.completePayment(ApplePaySession.STATUS_FAILURE),P(`${nr} Failed to create payment`,d,{clientId:this.clientId}),new L(`Failed to create payment: ${le(d)}`)}}),c.oncancel=()=>{this.onCancelPayment()},c.begin()}}onClickSamsungPaySessionHandler(t,n,r,o,a,i,s){return()=>w(this,null,function*(){if(!this.samsungPayClient){let l="Samsung Pay client not initialized",f=new Error(l);throw P(`${Q} ${l}`,f,{clientId:this.clientId}),f}try{let l={orderNumber:o,merchant:{name:r,url:a,id:i,countryCode:"ZA"},amount:{option:"FORMAT_TOTAL_PRICE_ONLY",currency:t,total:n}},f=yield this.fingerprint(),c=Ie(this.runtimeConfig);We(`${Q} Loading payment sheet`,{clientId:this.clientId,type:"SAMSUNG_PAY",samsungPay:{paymentMethods:c,transactionDetail:l}});let u=yield this.samsungPayClient.loadPaymentSheet(c,l);We(`${Q} Received payment credential`,{clientId:this.clientId,type:"SAMSUNG_PAY",samsungPay:{paymentCredential:u}});let p=yield s(u,f);switch(p.status){case"TransactionPending":break;case"TransactionFailure":{this.samsungPayClient.notify({status:"REJECTED"});break}case"TransactionSuccess":{this.samsungPayClient.notify({status:"CHARGED"});break}default:{this.samsungPayClient.notify({status:"ERRED"});let y=`${Q} Invalid transaction status: ${p.status}`,m=new L(y);throw P(y,m,{clientId:this.clientId,type:"SAMSUNG_PAY"}),m}}}catch(l){throw P(`${Q} Failed to create payment`,l,{clientId:this.clientId,type:"SAMSUNG_PAY"}),new L(`${Q} Failed to create payment: ${le(l)}`)}})}onClickGooglePaySessionHandler(t){return n=>w(this,null,function*(){try{let r=yield this.fingerprint(),o=yield t(n.paymentMethodData.tokenizationData.token,r);switch(o.status){case"TransactionPending":case"TransactionFailure":case"TransactionSuccess":break;default:{let a=`${dt} Invalid transaction status: ${o.status}`,i=new L(a);throw P(a,i,{clientId:this.clientId}),i}}}catch(r){throw P(`${dt} Failed to create payment`,r,{clientId:this.clientId}),new L(`${dt} Failed to create payment: ${le(r)}`)}})}};export{rr as StitchWalletClientSdk,yt as WalletType};
27
27
  //# sourceMappingURL=index.js.map