-
Notifications
You must be signed in to change notification settings - Fork 0
/
myalgo.min.js
2 lines (2 loc) · 90.2 KB
/
myalgo.min.js
1
2
/*! For license information please see myalgo.min.js.LICENSE.txt */
var MyAlgoConnect;(()=>{var t={10:(t,e,n)=>{t.exports=n(703)},703:(t,e,n)=>{var r=n(764).Buffer;const{openPopup:o}=n(623),{sleep:i,prepareTxn:u}=n(531),c=n(598),a=new(n(668));t.exports=class{constructor(t){this.bridge=a,this.timeout=t&&t.timeout?t.timeout:16e5,this.url=t&&t.bridgeUrl?t.bridgeUrl:"https://wallet.myalgo.com/bridge",this.url.endsWith("/")&&(this.url=this.url.slice(0,-1)),this.currentConnectPopup=null,this.currentSigntxPopup=null,this.currentSignLogicSigPopup=null}async connect(t={shouldSelectOneAccount:!1}){if(this.currentConnectPopup)throw this.currentConnectPopup.focus(),new Error(c.WINDOW_IS_OPENED);try{this.currentConnectPopup=o(this.url+"/connect.html"),await this.waitForWindowToLoad(this.currentConnectPopup);const e=await this.bridge.sendMessage(this.currentConnectPopup,{method:"unlock",params:{shouldSelectOneAccount:t.shouldSelectOneAccount}},this.url,{waitForReply:!0,timeout:this.timeout});if(this.currentConnectPopup&&this.currentConnectPopup.close(),this.currentConnectPopup=null,"error"===e.status)throw new Error(e.message);return this.currentConnectPopup=null,e.data.accounts}catch(t){throw this.currentConnectPopup&&this.currentConnectPopup.close(),this.currentConnectPopup=null,t}}async signTransaction(t){let e;if(e=Array.isArray(t)?Array.from(t).map((t=>u(t))):u(t),this.currentSigntxPopup)throw this.currentSigntxPopup.focus(),new Error(c.WINDOW_IS_OPENED);try{this.currentSigntxPopup=o(this.url+"/signtx.html"),await this.waitForWindowToLoad(this.currentSigntxPopup);const t=await this.bridge.sendMessage(this.currentSigntxPopup,{method:"transaction",params:{txn:e}},this.url,{waitForReply:!0,timeout:this.timeout});if(this.currentSigntxPopup&&this.currentSigntxPopup.close(),this.currentSigntxPopup=null,"error"===t.status)throw new Error(t.message);if(Array.isArray(t.data)){const e=[];for(const n of t.data)n.blob=new Uint8Array(r.from(n.blob,"hex")),e.push(n);return e}return t.data.blob=new Uint8Array(r.from(t.data.blob,"hex")),t.data}catch(t){throw this.currentSigntxPopup&&this.currentSigntxPopup.close(),this.currentSigntxPopup=null,t}}async signLogicSig(t,e){if(this.currentSignLogicSigPopup)throw this.currentSignLogicSigPopup.focus(),new Error(c.WINDOW_IS_OPENED);try{this.currentSignLogicSigPopup=o(this.url+"/logicsigtx.html"),await this.waitForWindowToLoad(this.currentSignLogicSigPopup);let n=t;t.constructor===Uint8Array&&(n=r.from(t).toString("base64"));const i=await this.bridge.sendMessage(this.currentSignLogicSigPopup,{method:"logicsig",params:{logic:n,address:e}},this.url,{waitForReply:!0,timeout:this.timeout});if(this.currentSignLogicSigPopup&&this.currentSignLogicSigPopup.close(),this.currentSignLogicSigPopup=null,"error"===i.status)throw new Error(i.message);return new Uint8Array(r.from(i.data.signedTeal,"base64"))}catch(t){throw this.currentSignLogicSigPopup&&this.currentSignLogicSigPopup.close(),this.currentSignLogicSigPopup=null,t}}async waitForWindowToLoad(t,e=30){for(let n=0;n<e&&(await i(300),t);n++)try{if("success"==(await a.sendMessage(t,{method:"status"},this.url)).status)return}catch(t){}throw new Error(c.WINDOW_NOT_LOADED)}}},668:(t,e,n)=>{const r=n(50);t.exports=class{constructor(t){const e=this;this.options={waitForReply:!0,timeout:250},this.listenerCallback=t,this.bridge=new r("wallet-bridge-communication-channel",(function(t,n,r,o){e.listenerCallback&&e.listenerCallback(t,r)}))}sendMessage(t,e,n,r){return this.bridge.sendMessage(t,e,n,r||this.options)}setNewListener(t){this.listenerCallback=t}close(){this.bridge.close()}}},623:(t,e,n)=>{const r=n(217),o={width:400,height:600};t.exports={openPopup:function(t){return r.popup(t,o)}}},598:t=>{t.exports={WINDOW_NOT_LOADED:"Window not loaded",WINDOW_IS_OPENED:"Windows is opened"}},531:(t,e,n)=>{var r=n(764).Buffer;t.exports={sleep:function(t=200){return new Promise((e=>setTimeout(e,t)))},prepareTxn:function(t){if(t.constructor===Uint8Array)return r.from(t).toString("base64");if("string"==typeof t)return t;const e=Object.assign({},t);if(e.note&&e.note.constructor===Uint8Array&&(e.note=r.from(e.note).toString("base64")),e.assetMetadataHash&&e.assetMetadataHash.constructor===Uint8Array&&(e.assetMetadataHash=r.from(e.assetMetadataHash).toString("base64")),e.group&&e.group.constructor===Uint8Array&&(e.group=r.from(e.group).toString("base64")),"appl"===e.type&&e.appApprovalProgram&&e.appApprovalProgram.constructor===Uint8Array&&(e.appApprovalProgram=r.from(e.appApprovalProgram).toString("base64")),"appl"===e.type&&e.appClearProgram&&e.appClearProgram.constructor===Uint8Array&&(e.appClearProgram=r.from(e.appClearProgram).toString("base64")),"appl"===e.type&&e.appArgs&&e.appArgs.length>0)for(let t=0;t<e.appArgs.length;t++)e.appArgs[t].constructor===Uint8Array&&(e.appArgs[t]=r.from(e.appArgs[t]).toString("base64"));return e}}},50:(t,e,n)=>{t.exports=n(992)},992:t=>{t.exports=class{constructor(t,e){this.channelName=t,this.onMessage=e,this._installListener(),this._requests=new Map,this._nextId=0,this._defaultTimeout=4e3}_installListener(){const t=this;this._listener=function(e){if(!e.data||"string"!=typeof e.data)return;let n;try{if(n=JSON.parse(e.data),!n.channel||n.channel!==t.channelName)return;if("object"!=typeof n.message)return}catch(t){return}if(void 0!==n.replyId){if("number"!=typeof n.replyId||n.replyId%1!=0)return;const e=t._requests.get(n.replyId);e&&(clearTimeout(e.timeout),t._requests.delete(n.replyId),e.resolve(n.message))}else{if("number"!=typeof n.id||n.id%1!=0||!t.onMessage)return;const r=t.channelName,o=n.id,i=e.origin,u=function(t){const n={channel:r,replyId:o,message:t};e.source.postMessage(JSON.stringify(n),i)};t.onMessage(n.message,e.origin,e.source,u,t)}},window.addEventListener("message",this._listener)}sendMessage(t,e,n,r){const o={channel:this.channelName,id:this.getNextId(),message:e};if(r&&r.waitForReply){const e=this;return new Promise((function(i,u){const c=setTimeout((function(){e._requests.get(o.id)&&(e._requests.delete(o.id),u(new Error("Timeout expired for the message response")))}),r&&r.timeout?r.timeout:e._defaultTimeout);e._requests.set(o.id,{timeout:c,resolve:i}),t.postMessage(JSON.stringify(o),n)}))}t.postMessage(JSON.stringify(o),n)}close(){window.removeEventListener("message",this._listener),this._listener=null,delete this._requests}getNextId(){return this._nextId+=1,this._nextId}}},742:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,i=a(t),u=i[0],c=i[1],s=new o(function(t,e,n){return 3*(e+n)/4-n}(0,u,c)),f=0,l=c>0?u-4:u;for(n=0;n<l;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],s[f++]=e>>16&255,s[f++]=e>>8&255,s[f++]=255&e;return 2===c&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,s[f++]=255&e),1===c&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,s[f++]=e>>8&255,s[f++]=255&e),s},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],u=16383,c=0,a=r-o;c<a;c+=u)i.push(s(t,c,c+u>a?a:c+u));return 1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=i.length;u<c;++u)n[u]=i[u],r[i.charCodeAt(u)]=u;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function s(t,e,r){for(var o,i,u=[],c=e;c<r;c+=3)o=(t[c]<<16&16711680)+(t[c+1]<<8&65280)+(255&t[c+2]),u.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return u.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},800:function(t,e,n){var r=n(155),o=n(764).Buffer;"undefined"!=typeof self&&self,t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return{}.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,i){"use strict";i.r(e),i.d(e,"getUserAgent",(function(){return c})),i.d(e,"isDevice",(function(){return a})),i.d(e,"isWebView",(function(){return s})),i.d(e,"isStandAlone",(function(){return f})),i.d(e,"isFacebookWebView",(function(){return l})),i.d(e,"isFirefox",(function(){return h})),i.d(e,"isFirefoxIOS",(function(){return d})),i.d(e,"isEdgeIOS",(function(){return p})),i.d(e,"isOperaMini",(function(){return g})),i.d(e,"isAndroid",(function(){return w})),i.d(e,"isIos",(function(){return y})),i.d(e,"isGoogleSearchApp",(function(){return m})),i.d(e,"isQQBrowser",(function(){return v})),i.d(e,"isIosWebview",(function(){return b})),i.d(e,"isSFVC",(function(){return E})),i.d(e,"isSFVCorSafari",(function(){return S})),i.d(e,"isAndroidWebview",(function(){return A})),i.d(e,"isIE",(function(){return P})),i.d(e,"isIECompHeader",(function(){return O})),i.d(e,"isElectron",(function(){return _})),i.d(e,"isIEIntranet",(function(){return x})),i.d(e,"isMacOsCna",(function(){return I})),i.d(e,"supportsPopups",(function(){return B})),i.d(e,"isChrome",(function(){return C})),i.d(e,"isSafari",(function(){return T})),i.d(e,"isApplePaySupported",(function(){return j})),i.d(e,"getBody",(function(){return Le})),i.d(e,"isDocumentReady",(function(){return Re})),i.d(e,"isDocumentInteractive",(function(){return Ue})),i.d(e,"urlEncode",(function(){return ke})),i.d(e,"waitForWindowReady",(function(){return Ne})),i.d(e,"waitForDocumentReady",(function(){return We})),i.d(e,"waitForDocumentBody",(function(){return De})),i.d(e,"parseQuery",(function(){return ze})),i.d(e,"getQueryParam",(function(){return Fe})),i.d(e,"urlWillRedirectPage",(function(){return He})),i.d(e,"formatQuery",(function(){return $e})),i.d(e,"extendQuery",(function(){return qe})),i.d(e,"extendUrl",(function(){return Ve})),i.d(e,"redirect",(function(){return Je})),i.d(e,"hasMetaViewPort",(function(){return Ge})),i.d(e,"isElementVisible",(function(){return Ye})),i.d(e,"getPerformance",(function(){return Xe})),i.d(e,"enablePerformance",(function(){return Qe})),i.d(e,"getPageRenderTime",(function(){return Ke})),i.d(e,"htmlEncode",(function(){return Ze})),i.d(e,"isBrowser",(function(){return tn})),i.d(e,"querySelectorAll",(function(){return en})),i.d(e,"onClick",(function(){return nn})),i.d(e,"getScript",(function(){return rn})),i.d(e,"isLocalStorageEnabled",(function(){return on})),i.d(e,"getBrowserLocales",(function(){return un})),i.d(e,"appendChild",(function(){return cn})),i.d(e,"isElement",(function(){return an})),i.d(e,"getElementSafe",(function(){return sn})),i.d(e,"getElement",(function(){return fn})),i.d(e,"elementReady",(function(){return ln})),i.d(e,"PopupOpenError",(function(){return dn})),i.d(e,"popup",(function(){return pn})),i.d(e,"writeToWindow",(function(){return gn})),i.d(e,"writeElementToWindow",(function(){return wn})),i.d(e,"setStyle",(function(){return yn})),i.d(e,"awaitFrameLoad",(function(){return mn})),i.d(e,"awaitFrameWindow",(function(){return vn})),i.d(e,"createElement",(function(){return bn})),i.d(e,"iframe",(function(){return En})),i.d(e,"addEventListener",(function(){return Sn})),i.d(e,"bindEvents",(function(){return An})),i.d(e,"setVendorCSS",(function(){return On})),i.d(e,"animate",(function(){return In})),i.d(e,"makeElementVisible",(function(){return Bn})),i.d(e,"makeElementInvisible",(function(){return Cn})),i.d(e,"showElement",(function(){return Tn})),i.d(e,"hideElement",(function(){return jn})),i.d(e,"destroyElement",(function(){return Mn})),i.d(e,"showAndAnimate",(function(){return Ln})),i.d(e,"animateAndHide",(function(){return Rn})),i.d(e,"addClass",(function(){return Un})),i.d(e,"removeClass",(function(){return kn})),i.d(e,"isElementClosed",(function(){return Nn})),i.d(e,"watchElementForClose",(function(){return Wn})),i.d(e,"fixScripts",(function(){return Dn})),i.d(e,"onResize",(function(){return zn})),i.d(e,"getResourceLoadTime",(function(){return Fn})),i.d(e,"isShadowElement",(function(){return Hn})),i.d(e,"getShadowRoot",(function(){return $n})),i.d(e,"getShadowHost",(function(){return qn})),i.d(e,"insertShadowSlot",(function(){return Vn})),i.d(e,"preventClickFocus",(function(){return Jn})),i.d(e,"getStackTrace",(function(){return Gn})),i.d(e,"getCurrentScript",(function(){return Xn})),i.d(e,"getCurrentScriptUID",(function(){return Kn})),i.d(e,"submitForm",(function(){return Zn})),i.d(e,"experiment",(function(){return or})),i.d(e,"getGlobalNameSpace",(function(){return ir})),i.d(e,"getStorage",(function(){return tr})),i.d(e,"getFunctionName",(function(){return at})),i.d(e,"setFunctionName",(function(){return st})),i.d(e,"base64encode",(function(){return ft})),i.d(e,"base64decode",(function(){return lt})),i.d(e,"uniqueID",(function(){return ht})),i.d(e,"getGlobal",(function(){return dt})),i.d(e,"getObjectID",(function(){return pt})),i.d(e,"getEmptyObject",(function(){return wt})),i.d(e,"memoize",(function(){return vt})),i.d(e,"promiseIdentity",(function(){return bt})),i.d(e,"memoizePromise",(function(){return Et})),i.d(e,"promisify",(function(){return St})),i.d(e,"inlineMemoize",(function(){return At})),i.d(e,"noop",(function(){return Pt})),i.d(e,"once",(function(){return Ot})),i.d(e,"hashStr",(function(){return _t})),i.d(e,"strHashStr",(function(){return xt})),i.d(e,"match",(function(){return It})),i.d(e,"awaitKey",(function(){return Bt})),i.d(e,"stringifyError",(function(){return Ct})),i.d(e,"stringifyErrorMessage",(function(){return Tt})),i.d(e,"stringify",(function(){return jt})),i.d(e,"domainMatches",(function(){return Mt})),i.d(e,"patchMethod",(function(){return Lt})),i.d(e,"extend",(function(){return Rt})),i.d(e,"values",(function(){return Ut})),i.d(e,"memoizedValues",(function(){return kt})),i.d(e,"perc",(function(){return Nt})),i.d(e,"min",(function(){return Wt})),i.d(e,"max",(function(){return Dt})),i.d(e,"roundUp",(function(){return zt})),i.d(e,"regexMap",(function(){return Ft})),i.d(e,"svgToBase64",(function(){return Ht})),i.d(e,"objFilter",(function(){return $t})),i.d(e,"identity",(function(){return qt})),i.d(e,"regexTokenize",(function(){return Vt})),i.d(e,"promiseDebounce",(function(){return Jt})),i.d(e,"safeInterval",(function(){return Gt})),i.d(e,"isInteger",(function(){return Yt})),i.d(e,"isFloat",(function(){return Xt})),i.d(e,"serializePrimitive",(function(){return Qt})),i.d(e,"deserializePrimitive",(function(){return Kt})),i.d(e,"dotify",(function(){return Zt})),i.d(e,"undotify",(function(){return te})),i.d(e,"eventEmitter",(function(){return ee})),i.d(e,"camelToDasherize",(function(){return ne})),i.d(e,"dasherizeToCamel",(function(){return re})),i.d(e,"capitalizeFirstLetter",(function(){return oe})),i.d(e,"get",(function(){return ie})),i.d(e,"safeTimeout",(function(){return ue})),i.d(e,"defineLazyProp",(function(){return ce})),i.d(e,"arrayFrom",(function(){return ae})),i.d(e,"isObject",(function(){return se})),i.d(e,"isObjectObject",(function(){return fe})),i.d(e,"isPlainObject",(function(){return le})),i.d(e,"replaceObject",(function(){return he})),i.d(e,"copyProp",(function(){return de})),i.d(e,"regex",(function(){return pe})),i.d(e,"regexAll",(function(){return ge})),i.d(e,"isDefined",(function(){return we})),i.d(e,"cycle",(function(){return ye})),i.d(e,"debounce",(function(){return me})),i.d(e,"isRegex",(function(){return ve})),i.d(e,"weakMapMemoize",(function(){return be})),i.d(e,"weakMapMemoizePromise",(function(){return Ee})),i.d(e,"getOrSet",(function(){return Se})),i.d(e,"cleanup",(function(){return Ae})),i.d(e,"tryCatch",(function(){return Pe})),i.d(e,"removeFromArray",(function(){return Oe})),i.d(e,"assertExists",(function(){return _e})),i.d(e,"unique",(function(){return xe})),i.d(e,"constHas",(function(){return Ie})),i.d(e,"dedupeErrors",(function(){return Be})),i.d(e,"ExtendableError",(function(){return Ce})),i.d(e,"request",(function(){return cr})),i.d(e,"addHeaderBuilder",(function(){return ar})),i.d(e,"TYPES",(function(){return sr})),i.d(e,"memoized",(function(){return fr})),i.d(e,"promise",(function(){return lr})),i.d(e,"isPerc",(function(){return hr})),i.d(e,"isPx",(function(){return dr})),i.d(e,"toNum",(function(){return pr})),i.d(e,"toPx",(function(){return gr})),i.d(e,"toCSS",(function(){return wr})),i.d(e,"percOf",(function(){return yr})),i.d(e,"normalizeDimension",(function(){return mr})),i.d(e,"wrapPromise",(function(){return vr})),i.d(e,"KEY_CODES",(function(){return Te})),i.d(e,"ATTRIBUTES",(function(){return je})),i.d(e,"UID_HASH_LENGTH",(function(){return Me})),i.d(e,"iPhoneScreenHeightMatrix",(function(){return u}));var u={926:{device:"iPhone 12 Pro Max",textSizeHeights:[752,748,744,738],zoomHeight:{1.15:[752,747,744,738],1.25:[753,748,744,738],1.5:[752,749,744,738],1.75:[753,747,744,739],2:[752,748,744],2.5:[753,748],3:[753,744]},maybeSafari:{2:[738],2.5:[745,738],3:[747,738]}},896:{device:"iPhone XS Max, iPhone 11 Pro Max, iPhone XR, iPhone 11",textSizeHeights:[721,717,713,707],zoomHeight:{1.15:[721,716,713,707],1.25:[721,718,713,708],1.5:[722,717,713],1.75:[721,718,712,707],2:[722,718,714,708],2.5:[720,718,713,708],3:[720,717,708]},maybeSafari:{1.5:[707],3:[714]}},844:{device:"iPhone 12, iPhone 12 Pro",textSizeHeights:[670,666,662,656],zoomHeight:{1.15:[670,666,662],1.25:[670,666,663,656],1.5:[671,666,662],1.75:[670,667,662,656],2:[670,666,662],2.5:[670,663],3:[669,666,663,657]},maybeSafari:{1.15:[656],1.5:[656],2:[656],2.5:[665,655],3:[663]}},812:{device:"iPhone X, iPhone XS, iPhone 11 Pro, iPhone 12 Mini",textSizeHeights:[641,637,633,627],zoomHeight:{1.15:[641,637,633,627],1.25:[641,638,633,628],1.5:[641,638,633,627],1.75:[641,637,634],2:[642,638,634,628],2.5:[640,638,633,628],3:[642,633]},maybeSafari:{1.75:[627],3:[636,627]}},736:{device:"iPhone 6 Plus, iPhone 6S Plus, iPhone 7 Plus, iPhone 8 Plus",textSizeHeights:[628,624,620,614],zoomHeight:{1.15:[628,624,620,614],1.25:[628,624,620,614],1.5:[629,624,620],1.75:[628,625,620,614],2:[628,624,620],2.5:[628,625,620,615],3:[627,624,615]},maybeSafari:{1.5:[614],2:[614],3:[621]}},667:{device:"iPhone 6, iPhone 6S, iPhone 7, iPhone 8, iPhone SE2",textSizeHeights:[559,555,551,545],zoomHeight:{1.15:[559,555,551,545],1.25:[559,555,551,545],1.5:[560,555,551],1.75:[558,555,551],2:[560,556,552,546],2.5:[560,555,550],3:[558,555,546]},maybeSafari:{1.5:[545],1.75:[544],2.5:[545],3:[552]}}};function c(){return window.navigator.mockUserAgent||window.navigator.userAgent}function a(t){return void 0===t&&(t=c()),!!t.match(/Android|webOS|iPhone|iPad|iPod|bada|Symbian|Palm|CriOS|BlackBerry|IEMobile|WindowsMobile|Opera Mini/i)}function s(){var t=c();return/(iPhone|iPod|iPad|Macintosh).*AppleWebKit(?!.*Safari)|.*WKWebView/i.test(t)||/\bwv\b/.test(t)||/Android.*Version\/(\d)\.(\d)/i.test(t)}function f(){return!0===window.navigator.standalone||window.matchMedia("(display-mode: standalone)").matches}function l(t){return void 0===t&&(t=c()),/FBAN/.test(t)||/FBAV/.test(t)}function h(t){return void 0===t&&(t=c()),/Firefox/i.test(t)}function d(t){return void 0===t&&(t=c()),/FxiOS/i.test(t)}function p(t){return void 0===t&&(t=c()),/EdgiOS/i.test(t)}function g(t){return void 0===t&&(t=c()),/Opera Mini/i.test(t)}function w(t){return void 0===t&&(t=c()),/Android/.test(t)}function y(t){return void 0===t&&(t=c()),/iPhone|iPod|iPad/.test(t)}function m(t){return void 0===t&&(t=c()),/\bGSA\b/.test(t)}function v(t){return void 0===t&&(t=c()),/QQBrowser/.test(t)}function b(t){return void 0===t&&(t=c()),!!y(t)&&(!!m(t)||/.+AppleWebKit(?!.*Safari)|.*WKWebView/.test(t))}function E(t){if(void 0===t&&(t=c()),y(t)){var e=u[window.outerHeight];if(!e)return!1;var n=window.innerHeight,r=Math.round(window.screen.width/window.innerWidth*100)/100,o=Math.round(n*r);return r>1&&e.zoomHeight[r]?-1!==e.zoomHeight[r].indexOf(o):-1!==e.textSizeHeights.indexOf(o)}return!1}function S(t){if(void 0===t&&(t=c()),y(t)){var e=E(t),n=u[window.outerHeight];if(!n)return!1;var r=window.innerHeight,o=Math.round(window.screen.width/window.innerWidth*100)/100,i=Math.round(r*o),a=n.maybeSafari,s=!1;return o>1&&a[o]&&-1!==a[o].indexOf(i)&&(s=!0),e||s}return!1}function A(t){return void 0===t&&(t=c()),!!w(t)&&/Version\/[\d.]+/.test(t)&&!g(t)}function P(){return!!window.document.documentMode||Boolean(window.navigator&&window.navigator.userAgent&&/Edge|MSIE|rv:11/i.test(window.navigator.userAgent))}function O(){var t=window.document.querySelector('meta[http-equiv="X-UA-Compatible"]'),e=window.document.querySelector('meta[content="IE=edge"]');return!(!t||!e)}function _(){return!(void 0===r||!r.versions||!r.versions.electron)}function x(){if(window.document.documentMode)try{var t=window.status;return window.status="testIntranetMode","testIntranetMode"===window.status&&(window.status=t,!0)}catch(t){return!1}return!1}function I(){var t=c();return/Macintosh.*AppleWebKit(?!.*Safari)/i.test(t)}function B(t){return void 0===t&&(t=c()),!(b(t)||A(t)||g(t)||d(t)||p(t)||l(t)||v(t)||_()||I()||f())}function C(t){return void 0===t&&(t=c()),/Chrome|Chromium|CriOS/.test(t)}function T(t){return void 0===t&&(t=c()),/Safari/.test(t)&&!C(t)}function j(){try{if(window.ApplePaySession&&window.ApplePaySession.supportsVersion(3)&&window.ApplePaySession.canMakePayments())return!0}catch(t){return!1}return!1}function M(t,e){return(M=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function L(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,M(t,e)}function R(){return(R=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function U(t){try{if(!t)return!1;if("undefined"!=typeof Promise&&t instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&t instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&t instanceof window.constructor)return!1;var e={}.toString;if(e){var n=e.call(t);if("[object Window]"===n||"[object global]"===n||"[object DOMWindow]"===n)return!1}if("function"==typeof t.then)return!0}catch(t){return!1}return!1}var k,N=[],W=[],D=0;function z(){if(!D&&k){var t=k;k=null,t.resolve()}}function F(){D+=1}function H(){D-=1,z()}var $=function(){function t(t){var e=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],t){var n,r,o=!1,i=!1,u=!1;F();try{t((function(t){u?e.resolve(t):(o=!0,n=t)}),(function(t){u?e.reject(t):(i=!0,r=t)}))}catch(t){return H(),void this.reject(t)}H(),u=!0,o?this.resolve(n):i&&this.reject(r)}}var e=t.prototype;return e.resolve=function(t){if(this.resolved||this.rejected)return this;if(U(t))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=t,this.dispatch(),this},e.reject=function(t){var e=this;if(this.resolved||this.rejected)return this;if(U(t))throw new Error("Can not reject promise with another promise");if(!t){var n=t&&"function"==typeof t.toString?t.toString():{}.toString.call(t);t=new Error("Expected reject to be called with Error, got "+n)}return this.rejected=!0,this.error=t,this.errorHandled||setTimeout((function(){e.errorHandled||function(t,e){if(-1===N.indexOf(t)){N.push(t),setTimeout((function(){throw t}),1);for(var n=0;n<W.length;n++)W[n](t,e)}}(t,e)}),1),this.dispatch(),this},e.asyncReject=function(t){return this.errorHandled=!0,this.reject(t),this},e.dispatch=function(){var e=this.resolved,n=this.rejected,r=this.handlers;if(!this.dispatching&&(e||n)){this.dispatching=!0,F();for(var o=function(t,e){return t.then((function(t){e.resolve(t)}),(function(t){e.reject(t)}))},i=0;i<r.length;i++){var u=r[i],c=u.onSuccess,a=u.onError,s=u.promise,f=void 0;if(e)try{f=c?c(this.value):this.value}catch(t){s.reject(t);continue}else if(n){if(!a){s.reject(this.error);continue}try{f=a(this.error)}catch(t){s.reject(t);continue}}if(f instanceof t&&(f.resolved||f.rejected)){var l=f;l.resolved?s.resolve(l.value):s.reject(l.error),l.errorHandled=!0}else U(f)?f instanceof t&&(f.resolved||f.rejected)?f.resolved?s.resolve(f.value):s.reject(f.error):o(f,s):s.resolve(f)}r.length=0,this.dispatching=!1,H()}},e.then=function(e,n){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.then expected a function for success handler");if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.then expected a function for error handler");var r=new t;return this.handlers.push({promise:r,onSuccess:e,onError:n}),this.errorHandled=!0,this.dispatch(),r},e.catch=function(t){return this.then(void 0,t)},e.finally=function(e){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.finally expected a function");return this.then((function(n){return t.try(e).then((function(){return n}))}),(function(n){return t.try(e).then((function(){throw n}))}))},e.timeout=function(t,e){var n=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){n.resolved||n.rejected||n.reject(e||new Error("Promise timed out after "+t+"ms"))}),t);return this.then((function(t){return clearTimeout(r),t}))},e.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},t.resolve=function(e){return e instanceof t?e:U(e)?new t((function(t,n){return e.then(t,n)})):(new t).resolve(e)},t.reject=function(e){return(new t).reject(e)},t.asyncReject=function(e){return(new t).asyncReject(e)},t.all=function(e){var n=new t,r=e.length,o=[].slice();if(!r)return n.resolve(o),n;for(var i=function(t,e,i){return e.then((function(e){o[t]=e,0==(r-=1)&&n.resolve(o)}),(function(t){i.reject(t)}))},u=0;u<e.length;u++){var c=e[u];if(c instanceof t){if(c.resolved){o[u]=c.value,r-=1;continue}}else if(!U(c)){o[u]=c,r-=1;continue}i(u,t.resolve(c),n)}return 0===r&&n.resolve(o),n},t.hash=function(e){var n={},r=[],o=function(t){if(e.hasOwnProperty(t)){var o=e[t];U(o)?r.push(o.then((function(e){n[t]=e}))):n[t]=o}};for(var i in e)o(i);return t.all(r).then((function(){return n}))},t.map=function(e,n){return t.all(e.map(n))},t.onPossiblyUnhandledException=function(t){return function(t){return W.push(t),{cancel:function(){W.splice(W.indexOf(t),1)}}}(t)},t.try=function(e,n,r){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.try expected a function");var o;F();try{o=e.apply(n,r||[])}catch(e){return H(),t.reject(e)}return H(),t.resolve(o)},t.delay=function(e){return new t((function(t){setTimeout(t,e)}))},t.isPromise=function(e){return!!(e&&e instanceof t)||U(e)},t.flush=function(){return e=k=k||new t,z(),e;var e},t}(),q="Call was rejected by callee.\r\n";function V(t){return void 0===t&&(t=window),"about:"===t.location.protocol}function J(t){try{return!0}catch(t){}return!1}function G(t){void 0===t&&(t=window);var e=t.location;if(!e)throw new Error("Can not read window location");var n=e.protocol;if(!n)throw new Error("Can not read window protocol");if("file:"===n)return"file://";if("about:"===n){var r=function(t){if(void 0===t&&(t=window),t)try{if(t.parent&&t.parent!==t)return t.parent}catch(t){}}(t);return r&&J()?G(r):"about://"}var o=e.host;if(!o)throw new Error("Can not read window host");return n+"//"+o}function Y(t){void 0===t&&(t=window);var e=G(t);return e&&t.mockDomain&&0===t.mockDomain.indexOf("mock:")?t.mockDomain:e}function X(t){if(!function(t){try{if(t===window)return!0}catch(t){}try{var e=Object.getOwnPropertyDescriptor(t,"location");if(e&&!1===e.enumerable)return!1}catch(t){}try{if(V(t)&&J())return!0}catch(t){}try{if(G(t)===G(window))return!0}catch(t){}return!1}(t))return!1;try{if(t===window)return!0;if(V(t)&&J())return!0;if(Y(window)===Y(t))return!0}catch(t){}return!1}var Q=[],K=[];function Z(t,e){void 0===e&&(e=!0);try{if(t===window)return!1}catch(t){return!0}try{if(!t)return!0}catch(t){return!0}try{if(t.closed)return!0}catch(t){return!t||t.message!==q}if(e&&X(t))try{if(t.mockclosed)return!0}catch(t){}try{if(!t.parent||!t.top)return!0}catch(t){}var n=function(t,e){for(var n=0;n<t.length;n++)try{if(t[n]===e)return n}catch(t){}return-1}(Q,t);if(-1!==n){var r=K[n];if(r&&function(t){if(!t.contentWindow)return!0;if(!t.parentNode)return!0;var e=t.ownerDocument;if(e&&e.documentElement&&!e.documentElement.contains(t)){for(var n=t;n.parentNode&&n.parentNode!==n;)n=n.parentNode;if(!n.host||!e.documentElement.contains(n.host))return!0}return!1}(r))return!0}return!1}function tt(t){try{if(t===window)return!0}catch(t){if(t&&t.message===q)return!0}try{if("[object Window]"==={}.toString.call(t))return!0}catch(t){if(t&&t.message===q)return!0}try{if(window.Window&&t instanceof window.Window)return!0}catch(t){if(t&&t.message===q)return!0}try{if(t&&t.self===t)return!0}catch(t){if(t&&t.message===q)return!0}try{if(t&&t.parent===t)return!0}catch(t){if(t&&t.message===q)return!0}try{if(t&&t.top===t)return!0}catch(t){if(t&&t.message===q)return!0}try{if(t&&"__unlikely_value__"===t.__cross_domain_utils_window_check__)return!1}catch(t){return!0}try{if("postMessage"in t&&"self"in t&&"location"in t)return!0}catch(t){}return!1}function et(t,e){for(var n=0;n<t.length;n++)try{if(t[n]===e)return n}catch(t){}return-1}var nt,rt=function(){function t(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var t=new WeakMap,e={};return Object.freeze(e),t.set(e,"__testvalue__"),"__testvalue__"===t.get(e)}catch(t){return!1}}())try{this.weakmap=new WeakMap}catch(t){}this.keys=[],this.values=[]}var e=t.prototype;return e._cleanupClosedWindows=function(){for(var t=this.weakmap,e=this.keys,n=0;n<e.length;n++){var r=e[n];if(tt(r)&&Z(r)){if(t)try{t.delete(r)}catch(t){}e.splice(n,1),this.values.splice(n,1),n-=1}}},e.isSafeToReadWrite=function(t){return!tt(t)},e.set=function(t,e){if(!t)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{n.set(t,e)}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var r=this.name,o=t[r];return void(o&&o[0]===t?o[1]=e:Object.defineProperty(t,r,{value:[t,e],writable:!0}))}catch(t){}this._cleanupClosedWindows();var i=this.keys,u=this.values,c=et(i,t);-1===c?(i.push(t),u.push(e)):u[c]=e},e.get=function(t){if(!t)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{if(e.has(t))return e.get(t)}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var n=t[this.name];return n&&n[0]===t?n[1]:void 0}catch(t){}this._cleanupClosedWindows();var r=et(this.keys,t);if(-1!==r)return this.values[r]},e.delete=function(t){if(!t)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{e.delete(t)}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var n=t[this.name];n&&n[0]===t&&(n[0]=n[1]=void 0)}catch(t){}this._cleanupClosedWindows();var r=this.keys,o=et(r,t);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},e.has=function(t){if(!t)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{if(e.has(t))return!0}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var n=t[this.name];return!(!n||n[0]!==t)}catch(t){}return this._cleanupClosedWindows(),-1!==et(this.keys,t)},e.getOrSet=function(t,e){if(this.has(t))return this.get(t);var n=e();return this.set(t,n),n},t}();function ot(t){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function it(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function ut(t,e,n){return(ut=it()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&M(o,n.prototype),o}).apply(null,arguments)}function ct(t){var e="function"==typeof Map?new Map:void 0;return(ct=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return ut(t,arguments,ot(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),M(r,t)})(t)}function at(t){return t.name||t.__name__||t.displayName||"anonymous"}function st(t,e){try{delete t.name,t.name=e}catch(t){}return t.__name__=t.displayName=e,t}function ft(t){if("function"==typeof btoa)return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(parseInt(e,16))}))).replace(/[=]/g,"");if(void 0!==o)return o.from(t,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function lt(t){if("function"==typeof atob)return decodeURIComponent([].map.call(atob(t),(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""));if(void 0!==o)return o.from(t,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")}function ht(){var t="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return t.charAt(Math.floor(Math.random()*t.length))}))+"_"+ft((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function dt(){if("undefined"!=typeof window)return window;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("No global found")}function pt(t){if(nt=nt||new rt,null==t||"object"!=typeof t&&"function"!=typeof t)throw new Error("Invalid object");var e=nt.get(t);return e||(e=typeof t+":"+ht(),nt.set(t,e)),e}function gt(t){try{return JSON.stringify([].slice.call(t),(function(t,e){return"function"==typeof e?"memoize["+pt(e)+"]":e}))}catch(t){throw new Error("Arguments not serializable -- can not be used to memoize")}}function wt(){return{}}var yt=0,mt=0;function vt(t,e){void 0===e&&(e={});var n,r,o=e.thisNamespace,i=void 0!==o&&o,u=e.time,c=yt;yt+=1;var a=function(){for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];var s;c<mt&&(n=null,r=null,c=yt,yt+=1),s=i?(r=r||new rt).getOrSet(this,wt):n=n||{};var f=gt(o),l=s[f];if(l&&u&&Date.now()-l.time<u&&(delete s[f],l=null),l)return l.value;var h=Date.now(),d=t.apply(this,arguments);return s[f]={time:h,value:d},d};return a.reset=function(){n=null,r=null},st(a,(e.name||at(t))+"::memoized")}function bt(t){return $.resolve(t)}function Et(t){var e={};function n(){for(var n=arguments,r=this,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];var c=gt(i);return e.hasOwnProperty(c)||(e[c]=$.try((function(){return t.apply(r,n)})).finally((function(){delete e[c]}))),e[c]}return n.reset=function(){e={}},st(n,at(t)+"::promiseMemoized")}function St(t,e){function n(){return $.try(t,this,arguments)}return void 0===e&&(e={}),e.name&&(n.displayName=e.name+":promisified"),st(n,at(t)+"::promisified")}function At(t,e,n){void 0===n&&(n=[]);var r=t.__inline_memoize_cache__=t.__inline_memoize_cache__||{},o=gt(n);return r.hasOwnProperty(o)?r[o]:r[o]=e.apply(void 0,n)}function Pt(){}function Ot(t){var e=!1;return st((function(){if(!e)return e=!0,t.apply(this,arguments)}),at(t)+"::once")}function _t(t){for(var e=0,n=0;n<t.length;n++)e+=t[n].charCodeAt(0)*Math.pow(n%10+1,5);return Math.floor(Math.pow(Math.sqrt(e),5))}function xt(t){for(var e="",n=0;n<t.length;n++){var r=t[n].charCodeAt(0)*n;t[n+1]&&(r+=t[n+1].charCodeAt(0)*(n-1)),e+=String.fromCharCode(97+Math.abs(r)%26)}return e}function It(t,e){var n=t.match(e);if(n)return n[1]}function Bt(t,e){return new $((function(n){var r=t[e];if(r)return n(r);delete t[e],Object.defineProperty(t,e,{configurable:!0,set:function(t){(r=t)&&n(r)},get:function(){return r}})}))}function Ct(t,e){if(void 0===e&&(e=1),e>=3)return"stringifyError stack overflow";try{if(!t)return"<unknown error: "+{}.toString.call(t)+">";if("string"==typeof t)return t;if(t instanceof Error){var n=t&&t.stack,r=t&&t.message;if(n&&r)return-1!==n.indexOf(r)?n:r+"\n"+n;if(n)return n;if(r)return r}return t&&t.toString&&"function"==typeof t.toString?t.toString():{}.toString.call(t)}catch(t){return"Error while stringifying error: "+Ct(t,e+1)}}function Tt(t){var e="<unknown error: "+{}.toString.call(t)+">";return t?t instanceof Error?t.message||e:"string"==typeof t.message&&t.message||e:e}function jt(t){return"string"==typeof t?t:t&&t.toString&&"function"==typeof t.toString?t.toString():{}.toString.call(t)}function Mt(t,e){var n=(t=t.split("://")[1]).indexOf(e);return-1!==n&&t.slice(n)===e}function Lt(t,e,n){var r=t[e];t[e]=function(){var t=arguments,e=this;return n({context:this,args:[].slice.call(arguments),original:r,callOriginal:function(){return r.apply(e,t)}})}}function Rt(t,e){if(!e)return t;if(Object.assign)return Object.assign(t,e);for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Ut(t){if(Object.values)return Object.values(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e}vt.clear=function(){mt=yt};var kt=vt(Ut);function Nt(t,e){return Math.round(t*e/100)}function Wt(){return Math.min.apply(Math,arguments)}function Dt(){return Math.max.apply(Math,arguments)}function zt(t,e){var n=t%e;return n?t-n+e:t}function Ft(t,e,n){var r=[];return t.replace(e,(function(t){r.push(n?n.apply(null,arguments):t)})),r}function Ht(t){return"data:image/svg+xml;base64,"+ft(t)}function $t(t,e){void 0===e&&(e=Boolean);var n={};for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)&&(n[r]=t[r]);return n}function qt(t){return t}function Vt(t,e){var n=[];return t.replace(e,(function(t){return n.push(t),""})),n}function Jt(t,e){var n,r;return void 0===e&&(e=50),st((function(){r&&clearTimeout(r);var o=n=n||new $;return r=setTimeout((function(){n=null,r=null,$.try(t).then((function(t){o.resolve(t)}),(function(t){o.reject(t)}))}),e),o}),at(t)+"::promiseDebounced")}function Gt(t,e){var n;return function r(){n=setTimeout((function(){t(),r()}),e)}(),{cancel:function(){clearTimeout(n)}}}function Yt(t){return Boolean(t.match(/^[0-9]+$/))}function Xt(t){return Boolean(t.match(/^[0-9]+\.[0-9]+$/))}function Qt(t){return t.toString()}function Kt(t){return"true"===t||"false"!==t&&(Yt(t)?parseInt(t,10):Xt(t)?parseFloat(t):t)}function Zt(t,e,n){for(var r in void 0===e&&(e=""),void 0===n&&(n={}),e=e?e+".":e,t)t.hasOwnProperty(r)&&null!=t[r]&&"function"!=typeof t[r]&&(t[r]&&Array.isArray(t[r])&&t[r].length&&t[r].every((function(t){return"object"!=typeof t}))?n[""+e+r+"[]"]=t[r].join(","):t[r]&&"object"==typeof t[r]?n=Zt(t[r],""+e+r,n):n[""+e+r]=Qt(t[r]));return n}function te(t){var e={};for(var n in t)if(t.hasOwnProperty(n)&&"string"==typeof t[n]){var r=t[n];n.match(/^.+\[\]$/)?(n=n.slice(0,-2),r=r.split(",").map(Kt)):r=Kt(r);for(var o=e,i=n.split("."),u=0;u<i.length;u++){var c=i[u],a=u+1===i.length,s=!a&&Yt(i[u+1]);if("constructor"===c||"prototype"===c||"__proto__"===c)throw new Error("Disallowed key: "+c);a?o[c]=r:o=o[c]=o[c]||(s?[]:{})}}return e}function ee(){var t={},e={},n={on:function(t,n){var r=e[t]=e[t]||[];r.push(n);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(n),1))}}},once:function(t,e){var r=n.on(t,(function(){r.cancel(),e()}));return r},trigger:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e[t],u=[];if(i)for(var c=function(t){var e=i[t];u.push($.try((function(){return e.apply(void 0,r)})))},a=0;a<i.length;a++)c(a);return $.all(u).then(Pt)},triggerOnce:function(e){if(t[e])return $.resolve();t[e]=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.trigger.apply(n,[e].concat(o))},reset:function(){e={}}};return n}function ne(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}function re(t){return t.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))}function oe(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function ie(t,e,n){if(!e)return n;for(var r=e.split("."),o=0;o<r.length;o++){if("object"!=typeof t||null===t)return n;t=t[r[o]]}return void 0===t?n:t}function ue(t,e){var n=Gt((function(){(e-=100)<=0&&(n.cancel(),t())}),100)}function ce(t,e,n){if(Array.isArray(t)){if("number"!=typeof e)throw new TypeError("Array key must be number")}else if("object"==typeof t&&null!==t&&"string"!=typeof e)throw new TypeError("Object key must be string");Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){delete t[e];var r=n();return t[e]=r,r},set:function(n){delete t[e],t[e]=n}})}function ae(t){return[].slice.call(t)}function se(t){return"object"==typeof t&&null!==t}function fe(t){return se(t)&&"[object Object]"==={}.toString.call(t)}function le(t){if(!fe(t))return!1;var e=t.constructor;if("function"!=typeof e)return!1;var n=e.prototype;return!!fe(n)&&!!n.hasOwnProperty("isPrototypeOf")}function he(t,e,n){if(void 0===n&&(n=""),Array.isArray(t)){for(var r=t.length,o=[],i=function(r){ce(o,r,(function(){var o=n?n+"."+r:""+r,i=e(t[r],r,o);return(le(i)||Array.isArray(i))&&(i=he(i,e,o)),i}))},u=0;u<r;u++)i(u);return o}if(le(t)){var c={},a=function(r){if(!t.hasOwnProperty(r))return"continue";ce(c,r,(function(){var o=n?n+"."+r:""+r,i=e(t[r],r,o);return(le(i)||Array.isArray(i))&&(i=he(i,e,o)),i}))};for(var s in t)a(s);return c}throw new Error("Pass an object or array")}function de(t,e,n,r){if(t.hasOwnProperty(n)){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o)}else e[n]=r}function pe(t,e,n){void 0===n&&(n=0),"string"==typeof t&&(t=new RegExp(t));var r=e.slice(n).match(t);if(r){var o=r.index,i=r[0];return{text:i,groups:r.slice(1),start:n+o,end:n+o+i.length,length:i.length,replace:function(t){return i?""+i.slice(0,n+o)+t+i.slice(o+i.length):""}}}}function ge(t,e){for(var n=[],r=0;;){var o=pe(t,e,r);if(!o)break;n.push(o),r=It.end}return n}function we(t){return null!=t}function ye(t){return $.try(t).then((function(){return ye(t)}))}function me(t,e){var n;return void 0===e&&(e=100),st((function(){var r=arguments,o=this;clearTimeout(n),n=setTimeout((function(){return t.apply(o,r)}),e)}),at(t)+"::debounced")}function ve(t){return"[object RegExp]"==={}.toString.call(t)}var be=function(t){var e=new rt;return function(n){var r=this;return e.getOrSet(n,(function(){return t.call(r,n)}))}},Ee=function(t){var e=new rt;return function(n){var r=this;return e.getOrSet(n,(function(){return t.call(r,n).finally((function(){e.delete(n)}))}))}};function Se(t,e,n){if(t.hasOwnProperty(e))return t[e];var r=n();return t[e]=r,r}function Ae(t){var e,n=[],r=!1,o={set:function(e,n){return r||(t[e]=n,o.register((function(){delete t[e]}))),n},register:function(t){r?t(e):n.push(Ot((function(){return t(e)})))},all:function(t){e=t;var o=[];for(r=!0;n.length;){var i=n.shift();o.push(i())}return $.all(o).then(Pt)}};return o}function Pe(t){var e,n;try{e=t()}catch(t){n=t}return{result:e,error:n}}function Oe(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}function _e(t,e){if(null==e)throw new Error("Expected "+t+" to be present");return e}function xe(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return Object.keys(e)}var Ie=function(t,e){return-1!==kt(t).indexOf(e)};function Be(t){var e=[],n={};return function(r){if(-1===e.indexOf(r)){e.push(r);var o=Ct(r);if(!n[o])return n[o]=!0,t(r)}}}var Ce=function(t){function e(e){var n;return(n=t.call(this,e)||this).name=n.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n),n.constructor):n.stack=new Error(e).stack,n}return L(e,t),e}(ct(Error)),Te={ENTER:13,SPACE:32},je={UID:"data-uid"},Me=30;function Le(){var t=document.body;if(!t)throw new Error("Body element not found");return t}function Re(){return Boolean(document.body)&&"complete"===document.readyState}function Ue(){return Boolean(document.body)&&"interactive"===document.readyState}function ke(t){return encodeURIComponent(t)}function Ne(){return At(Ne,(function(){return new $((function(t){Re()&&t(),window.addEventListener("load",(function(){return t()}))}))}))}var We=vt((function(){return new $((function(t){if(Re()||Ue())return t();var e=setInterval((function(){if(Re()||Ue())return clearInterval(e),t()}),10)}))}));function De(){return $.try((function(){return document.body?document.body:We().then((function(){if(document.body)return document.body;throw new Error("Document ready but document.body not present")}))}))}function ze(t){return At(ze,(function(){var e={};if(!t)return e;if(-1===t.indexOf("="))return e;for(var n=0,r=t.split("&");n<r.length;n++){var o=r[n];(o=o.split("="))[0]&&o[1]&&(e[decodeURIComponent(o[0])]=decodeURIComponent(o[1]))}return e}),[t])}function Fe(t){return ze(window.location.search.slice(1))[t]}function He(t){return-1===t.indexOf("#")||0!==t.indexOf("#")&&t.split("#")[0]!==window.location.href.split("#")[0]}function $e(t){return void 0===t&&(t={}),Object.keys(t).filter((function(e){return"string"==typeof t[e]||"boolean"==typeof t[e]})).map((function(e){var n=t[e];if("string"!=typeof n&&"boolean"!=typeof n)throw new TypeError("Invalid type for query");return ke(e)+"="+ke(n.toString())})).join("&")}function qe(t,e){return void 0===e&&(e={}),e&&Object.keys(e).length?$e(R({},ze(t),e)):t}function Ve(t,e){var n,r,o=e.query||{},i=e.hash||{},u=t.split("#");r=u[1];var c=(n=u[0]).split("?");n=c[0];var a=qe(c[1],o),s=qe(r,i);return a&&(n=n+"?"+a),s&&(n=n+"#"+s),n}function Je(t,e){return void 0===e&&(e=window),new $((function(n){e.location=t,He(t)||n()}))}function Ge(){var t=document.querySelector("meta[name=viewport]");return!(a()&&window.screen.width<660&&!t)}function Ye(t){return Boolean(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function Xe(){return At(Xe,(function(){var t=window.performance;if(t&&t.now&&t.timing&&t.timing.connectEnd&&t.timing.navigationStart&&Math.abs(t.now()-Date.now())>1e3&&t.now()-(t.timing.connectEnd-t.timing.navigationStart)>0)return t}))}function Qe(){return Boolean(Xe())}function Ke(){return We().then((function(){var t=Xe();if(t){var e=t.timing;return e.connectEnd&&e.domInteractive?e.domInteractive-e.connectEnd:void 0}}))}function Ze(t){return void 0===t&&(t=""),t.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function tn(){return"undefined"!=typeof window&&void 0!==window.location}function en(t,e){return void 0===e&&(e=window.document),[].slice.call(e.querySelectorAll(t))}function nn(t,e){t.addEventListener("touchstart",Pt),t.addEventListener("click",e),t.addEventListener("keypress",(function(t){if(t.keyCode===Te.ENTER||t.keyCode===Te.SPACE)return e(t)}))}function rn(t){var e=t.host,n=void 0===e?window.location.host:e,r=t.path,o=t.reverse,i=void 0!==o&&o;return At(rn,(function(){var t=""+n+r,e=[].slice.call(document.getElementsByTagName("script"));i&&e.reverse();for(var o=0;o<e.length;o++){var u=e[o];if(u.src&&u.src.replace(/^https?:\/\//,"").split("?")[0]===t)return u}}),[r])}function on(){return At(on,(function(){try{if("undefined"==typeof window)return!1;if(window.localStorage){var t=Math.random().toString();window.localStorage.setItem("__test__localStorage__",t);var e=window.localStorage.getItem("__test__localStorage__");if(window.localStorage.removeItem("__test__localStorage__"),t===e)return!0}}catch(t){}return!1}))}function un(){var t=window.navigator,e=t.languages?[].concat(t.languages):[];return t.language&&e.push(t.language),t.userLanguage&&e.push(t.userLanguage),e.map((function(t){if(t&&t.match(/^[a-z]{2}[-_][A-Z]{2}$/)){var e=t.split(/[-_]/);return{country:e[1],lang:e[0]}}return t&&t.match(/^[a-z]{2}$/)?{lang:t}:null})).filter(Boolean)}function cn(t,e){t.appendChild(e)}function an(t){return t instanceof window.Element||null!==t&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument}function sn(t,e){return void 0===e&&(e=document),an(t)?t:"string"==typeof t?e.querySelector(t):void 0}function fn(t,e){void 0===e&&(e=document);var n=sn(t,e);if(n)return n;throw new Error("Can not find element: "+jt(t))}function ln(t){return new $((function(e,n){var r=jt(t),o=sn(t);if(o)return e(o);if(Re())return n(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){if(o=sn(t))e(o),clearInterval(i);else if(Re())return clearInterval(i),n(new Error("Document is ready and element "+r+" does not exist"))}),10)}))}var hn,dn=function(t){function e(){return t.apply(this,arguments)||this}return L(e,t),e}(Ce);function pn(t,e){var n=(e=e||{}).width,r=e.height,o=0,i=0;n&&(window.outerWidth?i=Math.round((window.outerWidth-n)/2)+window.screenX:window.screen.width&&(i=Math.round((window.screen.width-n)/2))),r&&(window.outerHeight?o=Math.round((window.outerHeight-r)/2)+window.screenY:window.screen.height&&(o=Math.round((window.screen.height-r)/2))),n&&r&&(e=R({top:o,left:i,width:n,height:r,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},e));var u=e.name||"";delete e.name;var c,a,s=Object.keys(e).map((function(t){if(null!=e[t])return t+"="+jt(e[t])})).filter(Boolean).join(",");try{c=window.open(t,u,s)}catch(a){throw new dn("Can not open popup window - "+(a.stack||a.message))}if(Z(c))throw new dn("Can not open popup window - blocked");return window.addEventListener("unload",(function(){return c.close()})),c}function gn(t,e){try{t.document.open(),t.document.write(e),t.document.close()}catch(n){try{t.location="javascript: document.open(); document.write("+JSON.stringify(e)+"); document.close();"}catch(t){}}}function wn(t,e){var n=e.tagName.toLowerCase();if("html"!==n)throw new Error("Expected element to be html, got "+n);for(var r=t.document.documentElement,o=0,i=ae(r.children);o<i.length;o++)r.removeChild(i[o]);for(var u=0,c=ae(e.children);u<c.length;u++)r.appendChild(c[u])}function yn(t,e,n){void 0===n&&(n=window.document),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(n.createTextNode(e))}function mn(t){if((hn=hn||new rt).has(t)){var e=hn.get(t);if(e)return e}var n=new $((function(e,n){t.addEventListener("load",(function(){!function(t){if(function(){for(var t=0;t<Q.length;t++){var e=!1;try{e=Q[t].closed}catch(t){}e&&(K.splice(t,1),Q.splice(t,1))}}(),t&&t.contentWindow)try{Q.push(t.contentWindow),K.push(t)}catch(t){}}(t),e(t)})),t.addEventListener("error",(function(r){t.contentWindow?e(t):n(r)}))}));return hn.set(t,n),n}function vn(t){return mn(t).then((function(t){if(!t.contentWindow)throw new Error("Could not find window in iframe");return t.contentWindow}))}function bn(t,e,n){void 0===t&&(t="div"),void 0===e&&(e={}),t=t.toLowerCase();var r=document.createElement(t);if(e.style&&Rt(r.style,e.style),e.class&&(r.className=e.class.join(" ")),e.id&&r.setAttribute("id",e.id),e.attributes)for(var o=0,i=Object.keys(e.attributes);o<i.length;o++){var u=i[o];r.setAttribute(u,e.attributes[u])}if(e.styleSheet&&yn(r,e.styleSheet),n&&cn(n,r),e.html)if("iframe"===t){if(!n||!r.contentWindow)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");gn(r.contentWindow,e.html)}else r.innerHTML=e.html;return r}function En(t,e){void 0===t&&(t={});var n=t.style||{},r=bn("iframe",{attributes:R({allowTransparency:"true"},t.attributes||{}),style:R({backgroundColor:"transparent",border:"none"},n),html:t.html,class:t.class}),o=window.navigator.userAgent.match(/MSIE|Edge/i);return r.hasAttribute("id")||r.setAttribute("id",ht()),mn(r),e&&fn(e).appendChild(r),(t.url||o)&&r.setAttribute("src",t.url||"about:blank"),r}function Sn(t,e,n){return t.addEventListener(e,n),{cancel:function(){t.removeEventListener(e,n)}}}function An(t,e,n){n=Ot(n);for(var r=0;r<e.length;r++)t.addEventListener(e[r],n);return{cancel:Ot((function(){for(var r=0;r<e.length;r++)t.removeEventListener(e[r],n)}))}}var Pn=["webkit","moz","ms","o"];function On(t,e,n){t.style[e]=n;for(var r=oe(e),o=0;o<Pn.length;o++)t.style[""+Pn[o]+r]=n}var _n=["animationstart","webkitAnimationStart","oAnimationStart","MSAnimationStart"],xn=["animationend","webkitAnimationEnd","oAnimationEnd","MSAnimationEnd"];function In(t,e,n,r){return void 0===r&&(r=1e3),new $((function(o,i){var u=fn(t);if(!u)return o();var c,a,s,f,l=!1;function h(){clearTimeout(c),clearTimeout(a),s.cancel(),f.cancel()}s=An(u,_n,(function(t){t.target===u&&t.animationName===e&&(clearTimeout(c),t.stopPropagation(),s.cancel(),l=!0,a=setTimeout((function(){h(),o()}),r))})),f=An(u,xn,(function(t){if(t.target===u&&t.animationName===e)return h(),"string"==typeof t.animationName&&t.animationName!==e?i("Expected animation name to be "+e+", found "+t.animationName):o()})),On(u,"animationName",e),c=setTimeout((function(){if(!l)return h(),o()}),200),n&&n(h)}))}function Bn(t){t.style.setProperty("visibility","")}function Cn(t){t.style.setProperty("visibility","hidden","important")}function Tn(t){t.style.setProperty("display","")}function jn(t){t.style.setProperty("display","none","important")}function Mn(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Ln(t,e,n){var r=In(t,e,n);return Tn(t),r}function Rn(t,e,n){return In(t,e,n).then((function(){jn(t)}))}function Un(t,e){t.classList.add(e)}function kn(t,e){t.classList.remove(e)}function Nn(t){return!(t&&t.parentNode&&t.ownerDocument&&t.ownerDocument.documentElement&&t.ownerDocument.documentElement.contains(t))}function Wn(t,e){e=Ot(e);var n,r,o,i=!1,u=[],c=function(){i=!0;for(var t=0;t<u.length;t++)u[t].disconnect();n&&n.cancel(),o&&o.removeEventListener("unload",a),r&&Mn(r)},a=function(){i||(e(),c())};if(Nn(t))return a(),{cancel:c};if(window.MutationObserver)for(var s=t.parentElement;s;){var f=new window.MutationObserver((function(){Nn(t)&&a()}));f.observe(s,{childList:!0}),u.push(f),s=s.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+ht()+"__"),r.style.display="none",vn(r).then((function(t){(o=function(t){if(!X(t))throw new Error("Expected window to be same domain");return t}(t)).addEventListener("unload",a)})),t.appendChild(r),n=Gt((function(){Nn(t)&&a()}),1e3),{cancel:c}}function Dn(t,e){void 0===e&&(e=window.document);for(var n=0,r=en("script",t);n<r.length;n++){var o=r[n],i=o.parentNode;if(i){var u=e.createElement("script");u.text=o.textContent,i.replaceChild(u,o)}}}function zn(t,e,n){var r=void 0===n?{}:n,o=r.width,i=void 0===o||o,u=r.height,c=void 0===u||u,a=r.interval,s=void 0===a?100:a,f=r.win,l=void 0===f?window:f,h=t.offsetWidth,d=t.offsetHeight,p=!1;e({width:h,height:d});var g,w,y=function(){if(!p&&Ye(t)){var n=t.offsetWidth,r=t.offsetHeight;(i&&n!==h||c&&r!==d)&&e({width:n,height:r}),h=n,d=r}};return l.addEventListener("resize",y),void 0!==l.ResizeObserver?((g=new l.ResizeObserver(y)).observe(t),w=Gt(y,10*s)):void 0!==l.MutationObserver?((g=new l.MutationObserver(y)).observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),w=Gt(y,10*s)):w=Gt(y,s),{cancel:function(){p=!0,g.disconnect(),window.removeEventListener("resize",y),w.cancel()}}}function Fn(t){var e=Xe();if(e&&"function"==typeof e.getEntries)for(var n=e.getEntries(),r=0;r<n.length;r++){var o=n[r];if(o&&o.name&&0===o.name.indexOf(t)&&"number"==typeof o.duration)return Math.floor(o.duration)}}function Hn(t){for(;t.parentNode;)t=t.parentNode;return"[object ShadowRoot]"===t.toString()}function $n(t){for(;t.parentNode;)t=t.parentNode;if(Hn(t))return t}function qn(t){var e=$n(t);if(e&&e.host)return e.host}function Vn(t){var e=qn(t);if(!e)throw new Error("Element is not in shadow dom");var n="shadow-slot-"+ht(),r=document.createElement("slot");r.setAttribute("name",n),t.appendChild(r);var o=document.createElement("div");return o.setAttribute("slot",n),e.appendChild(o),Hn(e)?Vn(o):o}function Jn(t){var e=function e(n){return t.removeEventListener("focus",e),n.preventDefault(),t.blur(),!1};t.addEventListener("mousedown",(function(){t.addEventListener("focus",e),setTimeout((function(){t.removeEventListener("focus",e)}),1)}))}function Gn(){try{throw new Error("_")}catch(t){return t.stack||""}}var Yn="undefined"!=typeof document?document.currentScript:null,Xn=vt((function(){if(Yn)return Yn;if(Yn=function(){try{var t=Gn(),e=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t),n=e&&e[1];if(!n)return;for(var r=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();r<o.length;r++){var i=o[r];if(i.src&&i.src===n)return i}}catch(t){}}())return Yn;throw new Error("Can not determine current script")})),Qn=ht(),Kn=vt((function(){var t;try{t=Xn()}catch(t){return Qn}var e=t.getAttribute(je.UID);if(e&&"string"==typeof e)return e;if((e=t.getAttribute(je.UID+"-auto"))&&"string"==typeof e)return e;if(t.src){var n=xt(JSON.stringify({src:t.src,dataset:t.dataset}));e="uid_"+n.slice(n.length-Me)}else e=ht();return t.setAttribute(je.UID+"-auto",e),e}));function Zn(t){var e=t.url,n=t.target,r=t.body,o=t.method,i=void 0===o?"post":o,u=document.createElement("form");if(u.setAttribute("target",n),u.setAttribute("method",i),u.setAttribute("action",e),u.style.display="none",r)for(var c=0,a=Object.keys(r);c<a.length;c++){var s,f=a[c],l=document.createElement("input");l.setAttribute("name",f),l.setAttribute("value",null==(s=r[f])?void 0:s.toString()),u.appendChild(l)}Le().appendChild(u),u.submit(),Le().removeChild(u)}function tr(t){var e=t.name,n=t.lifetime,r=void 0===n?12e5:n;return At(tr,(function(){var t,n="__"+e+"_storage__",o=ht();function i(e){var r,i=on();if(t&&(r=t),!r&&i){var u=window.localStorage.getItem(n);u&&(r=JSON.parse(u))}r||(r=dt()[n]),r||(r={id:o}),r.id||(r.id=o),t=r;var c=e(r);return i?window.localStorage.setItem(n,JSON.stringify(r)):dt()[n]=r,t=null,c}function u(){return i((function(t){return t.id}))}function c(t){return i((function(e){var n=e.__session__,o=Date.now();return n&&o-n.created>r&&(n=null),n||(n={guid:ht(),created:o}),e.__session__=n,t(n)}))}return{getState:i,getID:u,isStateFresh:function(){return u()===o},getSessionState:function(t){return c((function(e){return e.state=e.state||{},t(e.state)}))},getSessionID:function(){return c((function(t){return t.guid}))}}}),[{name:e,lifetime:r}])}function er(){return tr({name:"belter_experiment"})}function nr(t){return er().getSessionState((function(e){return e.loggedBeacons=e.loggedBeacons||[],-1===e.loggedBeacons.indexOf(t)&&(e.loggedBeacons.push(t),!0)}))}function rr(t){return Math.floor(Math.random()*t)}function or(t){var e,n=t.name,r=t.sample,o=void 0===r?50:r,i=t.logTreatment,u=void 0===i?Pt:i,c=t.logCheckpoint,a=void 0===c?Pt:c,s=t.sticky,f=void 0===s||s?function(t){return er().getState((function(e){return e.throttlePercentiles=e.throttlePercentiles||{},e.throttlePercentiles[t]=e.throttlePercentiles[t]||rr(100),e.throttlePercentiles[t]}))}(n):rr(100),l=n+"_"+(e=f<o?"test":o>=50||o<=f&&f<2*o?"control":"throttle"),h=!1,d=!1;try{window.localStorage&&window.localStorage.getItem(n)&&(d=!0)}catch(t){}var p={isEnabled:function(){return"test"===e||d},isDisabled:function(){return"test"!==e&&!d},getTreatment:function(){return l},log:function(t,e){return void 0===e&&(e={}),h?(nr(l+"_"+JSON.stringify(e))&&u({name:n,treatment:l,payload:e,throttle:f}),nr(l+"_"+t+"_"+JSON.stringify(e))&&a({name:n,treatment:l,checkpoint:t,payload:e,throttle:f}),p):p},logStart:function(t){return void 0===t&&(t={}),h=!0,p.log("start",t)},logComplete:function(t){return void 0===t&&(t={}),p.log("complete",t)}};return p}function ir(t){var e=t.name,n=t.version,r=void 0===n?"latest":n,o=dt(),i="__"+e+"__"+r+"_global__",u=o[i]=o[i]||{};return{get:function(t,e){return e=e||{},u[t]=u[t]||e}}}var ur=[];function cr(t){var e=t.url,n=t.method,r=void 0===n?"get":n,o=t.headers,i=void 0===o?{}:o,u=t.json,c=t.data,a=t.body,s=t.win,f=void 0===s?window:s,l=t.timeout,h=void 0===l?0:l;return new $((function(t,n){if(u&&c||u&&a||c&&u)throw new Error("Only options.json or options.data or options.body should be passed");for(var o={},s=0,l=Object.keys(i);s<l.length;s++){var d=l[s];o[d.toLowerCase()]=i[d]}u?o["content-type"]=o["content-type"]||"application/json":(c||a)&&(o["content-type"]=o["content-type"]||"application/x-www-form-urlencoded; charset=utf-8"),o.accept=o.accept||"application/json";for(var p=0;p<ur.length;p++)for(var g=(0,ur[p])(),w=0,y=Object.keys(g);w<y.length;w++){var m=y[w];o[m.toLowerCase()]=g[m]}var v=new f.XMLHttpRequest;for(var b in v.addEventListener("load",(function(){var o=function(t){void 0===t&&(t="");for(var e={},n=0,r=t.trim().split("\n");n<r.length;n++){var o=r[n].split(":"),i=o[0],u=o.slice(1);e[i.toLowerCase()]=u.join(":").trim()}return e}(this.getAllResponseHeaders());if(!this.status)return n(new Error("Request to "+r.toLowerCase()+" "+e+" failed: no response status code."));var i=o["content-type"],u=i&&(0===i.indexOf("application/json")||0===i.indexOf("text/json")),c=this.responseText;try{c=JSON.parse(c)}catch(t){if(u)return n(new Error("Invalid json: "+this.responseText+"."))}return t({status:this.status,headers:o,body:c})}),!1),v.addEventListener("error",(function(t){n(new Error("Request to "+r.toLowerCase()+" "+e+" failed: "+t.toString()+"."))}),!1),v.open(r,e,!0),o)o.hasOwnProperty(b)&&v.setRequestHeader(b,o[b]);u?a=JSON.stringify(u):c&&(a=Object.keys(c).map((function(t){return encodeURIComponent(t)+"="+(c?encodeURIComponent(c[t]):"")})).join("&")),v.timeout=h,v.ontimeout=function(){n(new Error("Request to "+r.toLowerCase()+" "+e+" has timed out"))},v.send(a)}))}function ar(t){ur.push(t)}var sr=!0;function fr(t,e,n){n.value=vt(n.value,{name:e,thisNamespace:!0})}function lr(t,e,n){n.value=St(n.value,{name:e})}function hr(t){return"string"==typeof t&&/^[0-9]+%$/.test(t)}function dr(t){return"string"==typeof t&&/^[0-9]+px$/.test(t)}function pr(t){if("number"==typeof t)return t;var e=t.match(/^([0-9]+)(px|%)$/);if(!e)throw new Error("Could not match css value from "+t);return parseInt(e[1],10)}function gr(t){return pr(t)+"px"}function wr(t){return"number"==typeof t?gr(t):hr(t)?t:gr(t)}function yr(t,e){return parseInt(t*pr(e)/100,10)}function mr(t,e){if("number"==typeof t)return t;if(hr(t))return yr(e,t);if(dr(t))return pr(t);throw new Error("Can not normalize dimension: "+t)}function vr(t,e){var n=(void 0===e?{}:e).timeout,r=void 0===n?5e3:n,o=[],i=[];return new $((function(e,n){var u=setTimeout((function(){o.length&&n(new Error("Expected "+o[0].name+" to be called in "+r+"ms")),i.length&&n(new Error("Expected "+i[0].name+" promise to complete in "+r+"ms"))}),r),c=function(t,e){void 0===e&&(e=Pt);var n={name:t,handler:e};return o.push(n),function(){for(var r=this,u=arguments.length,c=new Array(u),a=0;a<u;a++)c[a]=arguments[a];Oe(o,n);var s=Pe((function(){var t;return(t=e).call.apply(t,[r].concat(c))})),f=s.result,l=s.error;if(l)throw i.push({name:t,promise:$.asyncReject(l)}),l;return i.push({name:t,promise:$.resolve(f)}),f}},a=function(t,e){return void 0===e&&(e=Pt),function(){var n;i.push({name:t,promise:$.asyncReject(new Error("Expected "+t+" to not be called"))});for(var r=arguments.length,o=new Array(r),u=0;u<r;u++)o[u]=arguments[u];return(n=e).call.apply(n,[this].concat(o))}},s=function(t,e){void 0===e&&(e=Pt);var n={name:t,handler:e};return o.push(n),function(){for(var r=this,u=arguments.length,c=new Array(u),a=0;a<u;a++)c[a]=arguments[a];Oe(o,n);var s=Pe((function(){var t;return(t=e).call.apply(t,[r].concat(c))})),f=s.result,l=s.error;if(l)throw l;return i.push({name:t,promise:$.resolve(f).then((function(){throw new Error("Expected "+t+" to throw an error")}),Pt)}),f}};i.push({name:"wrapPromise handler",promise:$.try((function(){return t({expect:c,avoid:a,expectError:s,error:a,wait:function(){return $.resolve()}})}))}),function t(){return $.try((function(){if(i.length){var e=i[0];return e.promise.finally((function(){Oe(i,e)})).then(t)}})).then((function(){if(o.length)return $.delay(10).then(t)}))}().finally((function(){clearTimeout(u)})).then(e,n)}))}}])},217:(t,e,n)=>{t.exports=n(800)},764:(t,e,n)=>{"use strict";const r=n(742),o=n(645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},e.INSPECT_MAX_BYTES=50;const u=2147483647;function c(t){if(t>u)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return s(t,e,n)}function s(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!a.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|g(t,e);let r=c(n);const o=r.write(t,e);return o!==n&&(r=r.slice(0,o)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Y(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Y(t,ArrayBuffer)||t&&Y(t.buffer,ArrayBuffer))return d(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(t,SharedArrayBuffer)||t&&Y(t.buffer,SharedArrayBuffer)))return d(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return a.from(r,e,n);const o=function(t){if(a.isBuffer(t)){const e=0|p(t.length),n=c(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||X(t.length)?c(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),c(t<0?0:0|p(t))}function h(t){const e=t.length<0?0:0|p(t.length),n=c(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function d(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,a.prototype),r}function p(t){if(t>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|t}function g(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Y(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(o)return r?-1:V(t).length;e=(""+e).toLowerCase(),o=!0}}function w(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,n);case"utf8":case"utf-8":return _(this,e,n);case"ascii":return I(this,e,n);case"latin1":case"binary":return B(this,e,n);case"base64":return O(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function m(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=a.from(e,r)),a.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,o){let i,u=1,c=t.length,a=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;u=2,c/=2,a/=2,n/=2}function s(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}if(o){let r=-1;for(i=n;i<c;i++)if(s(t,i)===s(e,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===a)return r*u}else-1!==r&&(i-=i-r),r=-1}else for(n+a>c&&(n=c-a),i=n;i>=0;i--){let n=!0;for(let r=0;r<a;r++)if(s(t,i+r)!==s(e,r)){n=!1;break}if(n)return i}return-1}function b(t,e,n,r){n=Number(n)||0;const o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=e.length;let u;for(r>i/2&&(r=i/2),u=0;u<r;++u){const r=parseInt(e.substr(2*u,2),16);if(X(r))return u;t[n+u]=r}return u}function E(t,e,n,r){return G(V(e,t.length-n),t,n,r)}function S(t,e,n,r){return G(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function A(t,e,n,r){return G(J(e),t,n,r)}function P(t,e,n,r){return G(function(t,e){let n,r,o;const i=[];for(let u=0;u<t.length&&!((e-=2)<0);++u)n=t.charCodeAt(u),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function O(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function _(t,e,n){n=Math.min(t.length,n);const r=[];let o=e;for(;o<n;){const e=t[o];let i=null,u=e>239?4:e>223?3:e>191?2:1;if(o+u<=n){let n,r,c,a;switch(u){case 1:e<128&&(i=e);break;case 2:n=t[o+1],128==(192&n)&&(a=(31&e)<<6|63&n,a>127&&(i=a));break;case 3:n=t[o+1],r=t[o+2],128==(192&n)&&128==(192&r)&&(a=(15&e)<<12|(63&n)<<6|63&r,a>2047&&(a<55296||a>57343)&&(i=a));break;case 4:n=t[o+1],r=t[o+2],c=t[o+3],128==(192&n)&&128==(192&r)&&128==(192&c)&&(a=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&c,a>65535&&a<1114112&&(i=a))}}null===i?(i=65533,u=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=u}return function(t){const e=t.length;if(e<=x)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=x));return n}(r)}e.kMaxLength=u,a.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,n){return s(t,e,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,n){return function(t,e,n){return f(t),t<=0?c(t):void 0!==e?"string"==typeof n?c(t).fill(e,n):c(t).fill(e):c(t)}(t,e,n)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(Y(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),Y(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=a.allocUnsafe(e);let o=0;for(n=0;n<t.length;++n){let e=t[n];if(Y(e,Uint8Array))o+e.length>r.length?(a.isBuffer(e)||(e=a.from(e)),e.copy(r,o)):Uint8Array.prototype.set.call(r,e,o);else{if(!a.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,o)}o+=e.length}return r},a.byteLength=g,a.prototype._isBuffer=!0,a.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)y(this,e,e+1);return this},a.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},a.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},a.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?_(this,0,t):w.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(t,e,n,r,o){if(Y(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;let i=(o>>>=0)-(r>>>=0),u=(n>>>=0)-(e>>>=0);const c=Math.min(i,u),s=this.slice(r,o),f=t.slice(e,n);for(let t=0;t<c;++t)if(s[t]!==f[t]){i=s[t],u=f[t];break}return i<u?-1:u<i?1:0},a.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},a.prototype.indexOf=function(t,e,n){return m(this,t,e,n,!0)},a.prototype.lastIndexOf=function(t,e,n){return m(this,t,e,n,!1)},a.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return E(this,t,e,n);case"ascii":case"latin1":case"binary":return S(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const x=4096;function I(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function B(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function C(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=e;r<n;++r)o+=Q[t[r]];return o}function T(t,e,n){const r=t.slice(e,n);let o="";for(let t=0;t<r.length-1;t+=2)o+=String.fromCharCode(r[t]+256*r[t+1]);return o}function j(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,n,r,o,i){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function L(t,e,n,r,o){F(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i;let u=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=u,u>>=8,t[n++]=u,u>>=8,t[n++]=u,u>>=8,t[n++]=u,n}function R(t,e,n,r,o){F(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n+7]=i,i>>=8,t[n+6]=i,i>>=8,t[n+5]=i,i>>=8,t[n+4]=i;let u=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=u,u>>=8,t[n+2]=u,u>>=8,t[n+1]=u,u>>=8,t[n]=u,n+8}function U(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(t,e,n,r,i){return e=+e,n>>>=0,i||U(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function N(t,e,n,r,i){return e=+e,n>>>=0,i||U(t,0,n,8),o.write(t,e,n,r,52,8),n+8}a.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUintLE=a.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||j(t,e,this.length);let r=this[t],o=1,i=0;for(;++i<e&&(o*=256);)r+=this[t+i]*o;return r},a.prototype.readUintBE=a.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||j(t,e,this.length);let r=this[t+--e],o=1;for(;e>0&&(o*=256);)r+=this[t+--e]*o;return r},a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t>>>=0,e||j(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||j(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||j(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readBigUInt64LE=K((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||$(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),a.prototype.readBigUInt64BE=K((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||$(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),a.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||j(t,e,this.length);let r=this[t],o=1,i=0;for(;++i<e&&(o*=256);)r+=this[t+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},a.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||j(t,e,this.length);let r=e,o=1,i=this[t+--r];for(;r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},a.prototype.readInt8=function(t,e){return t>>>=0,e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||j(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(t,e){t>>>=0,e||j(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readBigInt64LE=K((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||$(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),a.prototype.readBigInt64BE=K((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||$(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),a.prototype.readFloatLE=function(t,e){return t>>>=0,e||j(t,4,this.length),o.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||j(t,4,this.length),o.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||j(t,8,this.length),o.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||j(t,8,this.length),o.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||M(this,t,e,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||M(this,t,e,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeBigUInt64LE=K((function(t,e=0){return L(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeBigUInt64BE=K((function(t,e=0){return R(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,t,e,n,r-1,-r)}let o=0,i=1,u=0;for(this[e]=255&t;++o<n&&(i*=256);)t<0&&0===u&&0!==this[e+o-1]&&(u=1),this[e+o]=(t/i>>0)-u&255;return e+n},a.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,t,e,n,r-1,-r)}let o=n-1,i=1,u=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===u&&0!==this[e+o+1]&&(u=1),this[e+o]=(t/i>>0)-u&255;return e+n},a.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeBigInt64LE=K((function(t,e=0){return L(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeBigInt64BE=K((function(t,e=0){return R(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeFloatLE=function(t,e,n){return k(this,t,e,!0,n)},a.prototype.writeFloatBE=function(t,e,n){return k(this,t,e,!1,n)},a.prototype.writeDoubleLE=function(t,e,n){return N(this,t,e,!0,n)},a.prototype.writeDoubleBE=function(t,e,n){return N(this,t,e,!1,n)},a.prototype.copy=function(t,e,n,r){if(!a.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const o=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),o},a.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{const i=a.isBuffer(t)?t:a.from(t,r),u=i.length;if(0===u)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=i[o%u]}return this};const W={};function D(t,e,n){W[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function z(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function F(t,e,n,r,o,i){if(t>n||t<e){const r="bigint"==typeof e?"n":"";let o;throw o=i>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new W.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,n){H(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||$(e,t.length-(n+1))}(r,o,i)}function H(t,e){if("number"!=typeof t)throw new W.ERR_INVALID_ARG_TYPE(e,"number",t)}function $(t,e,n){if(Math.floor(t)!==t)throw H(t,n),new W.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new W.ERR_BUFFER_OUT_OF_BOUNDS;throw new W.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}D("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),D("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),D("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=z(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=z(o)),o+="n"),r+=` It must be ${e}. Received ${o}`,r}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function V(t,e){let n;e=e||1/0;const r=t.length;let o=null;const i=[];for(let u=0;u<r;++u){if(n=t.charCodeAt(u),n>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(u+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function J(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,e,n,r){let o;for(o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function Y(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}const Q=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)e[r+o]=t[n]+t[o]}return e}();function K(t){return"undefined"==typeof BigInt?Z:t}function Z(){throw new Error("BigInt not supported")}},645:(t,e)=>{e.read=function(t,e,n,r,o){var i,u,c=8*o-r-1,a=(1<<c)-1,s=a>>1,f=-7,l=n?o-1:0,h=n?-1:1,d=t[e+l];for(l+=h,i=d&(1<<-f)-1,d>>=-f,f+=c;f>0;i=256*i+t[e+l],l+=h,f-=8);for(u=i&(1<<-f)-1,i>>=-f,f+=r;f>0;u=256*u+t[e+l],l+=h,f-=8);if(0===i)i=1-s;else{if(i===a)return u?NaN:1/0*(d?-1:1);u+=Math.pow(2,r),i-=s}return(d?-1:1)*u*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var u,c,a,s=8*i-o-1,f=(1<<s)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,u=f):(u=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-u))<1&&(u--,a*=2),(e+=u+l>=1?h/a:h*Math.pow(2,1-l))*a>=2&&(u++,a/=2),u+l>=f?(c=0,u=f):u+l>=1?(c=(e*a-1)*Math.pow(2,o),u+=l):(c=e*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;t[n+d]=255&c,d+=p,c/=256,o-=8);for(u=u<<o|c,s+=o;s>0;t[n+d]=255&u,d+=p,u/=256,s-=8);t[n+d-p]|=128*g}},155:t=>{var e,n,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function u(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(t){n=i}}();var c,a=[],s=!1,f=-1;function l(){s&&c&&(s=!1,c.length?a=c.concat(a):f=-1,a.length&&h())}function h(){if(!s){var t=u(l);s=!0;for(var e=a.length;e;){for(c=a,a=[];++f<e;)c&&c[f].run();f=-1,e=a.length}c=null,s=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];a.push(new d(t,e)),1!==a.length||s||u(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();var r=n(10);MyAlgoConnect=r})();