@krakenjs/belter
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -1,2 +0,2 @@ | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("belter",[],n):"object"==typeof exports?exports.belter=n():t.belter=n()}("undefined"!=typeof self?self:this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return{}.hasOwnProperty.call(t,n)},e.p="",e(e.s=0)}([function(t,n,e){"use strict";e.r(n),e.d(n,"getUserAgent",(function(){return o})),e.d(n,"isDevice",(function(){return u})),e.d(n,"isTablet",(function(){return c})),e.d(n,"isWebView",(function(){return a})),e.d(n,"isStandAlone",(function(){return f})),e.d(n,"isFacebookWebView",(function(){return s})),e.d(n,"isFirefox",(function(){return d})),e.d(n,"isFirefoxIOS",(function(){return l})),e.d(n,"isEdgeIOS",(function(){return h})),e.d(n,"isOperaMini",(function(){return p})),e.d(n,"isAndroid",(function(){return v})),e.d(n,"isIos",(function(){return m})),e.d(n,"isIOS14",(function(){return w})),e.d(n,"isGoogleSearchApp",(function(){return y})),e.d(n,"isQQBrowser",(function(){return g})),e.d(n,"isIosWebview",(function(){return b})),e.d(n,"isSFVC",(function(){return S})),e.d(n,"isSFVCorSafari",(function(){return E})),e.d(n,"isAndroidWebview",(function(){return O})),e.d(n,"isIE",(function(){return x})),e.d(n,"isIECompHeader",(function(){return _})),e.d(n,"isElectron",(function(){return j})),e.d(n,"isIEIntranet",(function(){return C})),e.d(n,"isMacOsCna",(function(){return P})),e.d(n,"supportsPopups",(function(){return k})),e.d(n,"isChrome",(function(){return A})),e.d(n,"isSafari",(function(){return M})),e.d(n,"isIpadOs",(function(){return T})),e.d(n,"isApplePaySupported",(function(){return z})),e.d(n,"isCrossSiteTrackingEnabled",(function(){return H})),e.d(n,"getBody",(function(){return Gn})),e.d(n,"isDocumentReady",(function(){return Kn})),e.d(n,"isDocumentInteractive",(function(){return Qn})),e.d(n,"urlEncode",(function(){return Xn})),e.d(n,"waitForWindowReady",(function(){return Yn})),e.d(n,"waitForDocumentReady",(function(){return Zn})),e.d(n,"waitForDocumentBody",(function(){return te})),e.d(n,"parseQuery",(function(){return ne})),e.d(n,"getQueryParam",(function(){return ee})),e.d(n,"urlWillRedirectPage",(function(){return re})),e.d(n,"formatQuery",(function(){return oe})),e.d(n,"extendQuery",(function(){return ie})),e.d(n,"extendUrl",(function(){return ue})),e.d(n,"redirect",(function(){return ce})),e.d(n,"hasMetaViewPort",(function(){return ae})),e.d(n,"isElementVisible",(function(){return fe})),e.d(n,"getPerformance",(function(){return se})),e.d(n,"enablePerformance",(function(){return de})),e.d(n,"getPageRenderTime",(function(){return le})),e.d(n,"htmlEncode",(function(){return he})),e.d(n,"isBrowser",(function(){return pe})),e.d(n,"querySelectorAll",(function(){return ve})),e.d(n,"onClick",(function(){return me})),e.d(n,"getScript",(function(){return we})),e.d(n,"isLocalStorageEnabled",(function(){return ye})),e.d(n,"getBrowserLocales",(function(){return ge})),e.d(n,"appendChild",(function(){return be})),e.d(n,"getElementSafe",(function(){return Se})),e.d(n,"getElement",(function(){return Ee})),e.d(n,"elementReady",(function(){return Oe})),e.d(n,"PopupOpenError",(function(){return _e})),e.d(n,"popup",(function(){return je})),e.d(n,"writeToWindow",(function(){return Ce})),e.d(n,"writeElementToWindow",(function(){return Pe})),e.d(n,"setStyle",(function(){return ke})),e.d(n,"awaitFrameLoad",(function(){return Ae})),e.d(n,"awaitFrameWindow",(function(){return Me})),e.d(n,"createElement",(function(){return Te})),e.d(n,"iframe",(function(){return ze})),e.d(n,"addEventListener",(function(){return He})),e.d(n,"bindEvents",(function(){return Ie})),e.d(n,"setVendorCSS",(function(){return We})),e.d(n,"animate",(function(){return Le})),e.d(n,"makeElementVisible",(function(){return Fe})),e.d(n,"makeElementInvisible",(function(){return Be})),e.d(n,"showElement",(function(){return Ue})),e.d(n,"hideElement",(function(){return qe})),e.d(n,"destroyElement",(function(){return Ve})),e.d(n,"showAndAnimate",(function(){return Je})),e.d(n,"animateAndHide",(function(){return $e})),e.d(n,"addClass",(function(){return Ge})),e.d(n,"removeClass",(function(){return Ke})),e.d(n,"isElementClosed",(function(){return Qe})),e.d(n,"watchElementForClose",(function(){return Xe})),e.d(n,"fixScripts",(function(){return Ye})),e.d(n,"onResize",(function(){return Ze})),e.d(n,"getResourceLoadTime",(function(){return tr})),e.d(n,"isShadowElement",(function(){return nr})),e.d(n,"getShadowRoot",(function(){return er})),e.d(n,"getShadowHost",(function(){return rr})),e.d(n,"insertShadowSlot",(function(){return or})),e.d(n,"preventClickFocus",(function(){return ir})),e.d(n,"getStackTrace",(function(){return ur})),e.d(n,"getCurrentScript",(function(){return ar})),e.d(n,"getCurrentScriptUID",(function(){return sr})),e.d(n,"submitForm",(function(){return dr})),e.d(n,"experiment",(function(){return mr})),e.d(n,"getGlobalNameSpace",(function(){return wr})),e.d(n,"getStorage",(function(){return lr})),e.d(n,"isElement",(function(){return Et})),e.d(n,"getFunctionName",(function(){return Ot})),e.d(n,"setFunctionName",(function(){return xt})),e.d(n,"base64encode",(function(){return _t})),e.d(n,"base64decode",(function(){return jt})),e.d(n,"uniqueID",(function(){return Ct})),e.d(n,"getGlobal",(function(){return Pt})),e.d(n,"getObjectID",(function(){return kt})),e.d(n,"getEmptyObject",(function(){return Mt})),e.d(n,"memoize",(function(){return Ht})),e.d(n,"promiseIdentity",(function(){return It})),e.d(n,"memoizePromise",(function(){return Nt})),e.d(n,"promisify",(function(){return Wt})),e.d(n,"inlineMemoize",(function(){return Rt})),e.d(n,"noop",(function(){return Dt})),e.d(n,"once",(function(){return Lt})),e.d(n,"hashStr",(function(){return Ft})),e.d(n,"strHashStr",(function(){return Bt})),e.d(n,"match",(function(){return Ut})),e.d(n,"awaitKey",(function(){return qt})),e.d(n,"stringifyError",(function(){return Vt})),e.d(n,"stringifyErrorMessage",(function(){return Jt})),e.d(n,"stringify",(function(){return $t})),e.d(n,"domainMatches",(function(){return Gt})),e.d(n,"patchMethod",(function(){return Kt})),e.d(n,"extend",(function(){return Qt})),e.d(n,"values",(function(){return Xt})),e.d(n,"memoizedValues",(function(){return Yt})),e.d(n,"perc",(function(){return Zt})),e.d(n,"min",(function(){return tn})),e.d(n,"max",(function(){return nn})),e.d(n,"roundUp",(function(){return en})),e.d(n,"regexMap",(function(){return rn})),e.d(n,"svgToBase64",(function(){return on})),e.d(n,"objFilter",(function(){return un})),e.d(n,"identity",(function(){return cn})),e.d(n,"regexTokenize",(function(){return an})),e.d(n,"promiseDebounce",(function(){return fn})),e.d(n,"safeInterval",(function(){return sn})),e.d(n,"isInteger",(function(){return dn})),e.d(n,"isFloat",(function(){return ln})),e.d(n,"serializePrimitive",(function(){return hn})),e.d(n,"deserializePrimitive",(function(){return pn})),e.d(n,"dotify",(function(){return vn})),e.d(n,"undotify",(function(){return mn})),e.d(n,"eventEmitter",(function(){return wn})),e.d(n,"camelToDasherize",(function(){return yn})),e.d(n,"dasherizeToCamel",(function(){return gn})),e.d(n,"capitalizeFirstLetter",(function(){return bn})),e.d(n,"get",(function(){return Sn})),e.d(n,"safeTimeout",(function(){return En})),e.d(n,"defineLazyProp",(function(){return On})),e.d(n,"arrayFrom",(function(){return xn})),e.d(n,"isObject",(function(){return _n})),e.d(n,"isObjectObject",(function(){return jn})),e.d(n,"isPlainObject",(function(){return Cn})),e.d(n,"replaceObject",(function(){return Pn})),e.d(n,"copyProp",(function(){return kn})),e.d(n,"regex",(function(){return An})),e.d(n,"regexAll",(function(){return Mn})),e.d(n,"isDefined",(function(){return Tn})),e.d(n,"cycle",(function(){return zn})),e.d(n,"debounce",(function(){return Hn})),e.d(n,"isRegex",(function(){return In})),e.d(n,"weakMapMemoize",(function(){return Nn})),e.d(n,"weakMapMemoizePromise",(function(){return Wn})),e.d(n,"getOrSet",(function(){return Rn})),e.d(n,"cleanup",(function(){return Dn})),e.d(n,"tryCatch",(function(){return Ln})),e.d(n,"removeFromArray",(function(){return Fn})),e.d(n,"assertExists",(function(){return Bn})),e.d(n,"unique",(function(){return Un})),e.d(n,"constHas",(function(){return qn})),e.d(n,"dedupeErrors",(function(){return Vn})),e.d(n,"ExtendableError",(function(){return Jn})),e.d(n,"sanitizeUrl",(function(){return $n})),e.d(n,"request",(function(){return gr})),e.d(n,"addHeaderBuilder",(function(){return br})),e.d(n,"TYPES",(function(){return Sr})),e.d(n,"memoized",(function(){return Er})),e.d(n,"promise",(function(){return Or})),e.d(n,"isPerc",(function(){return xr})),e.d(n,"isPx",(function(){return _r})),e.d(n,"toNum",(function(){return jr})),e.d(n,"toPx",(function(){return Cr})),e.d(n,"toCSS",(function(){return Pr})),e.d(n,"percOf",(function(){return kr})),e.d(n,"normalizeDimension",(function(){return Ar})),e.d(n,"wrapPromise",(function(){return Mr})),e.d(n,"KEY_CODES",(function(){return lt})),e.d(n,"ATTRIBUTES",(function(){return ht})),e.d(n,"UID_HASH_LENGTH",(function(){return pt})),e.d(n,"invalidProtocolRegex",(function(){return vt})),e.d(n,"htmlEntitiesRegex",(function(){return mt})),e.d(n,"htmlCtrlEntityRegex",(function(){return wt})),e.d(n,"ctrlCharactersRegex",(function(){return yt})),e.d(n,"urlSchemeRegex",(function(){return gt})),e.d(n,"relativeFirstCharacters",(function(){return bt})),e.d(n,"BLANK_URL",(function(){return St})),e.d(n,"sfvcScreens",(function(){return r}));var r={932:{textSizeHeights:[746,742,738],textSizeHeightsNoTabs:[854,852,850,848],zoomHeight:{1.15:[746,742,738],1.25:[746,743],1.5:[746,743],1.75:[746,742,739],2:[746,742],2.5:[745,743],3:[749],3.01:[749]},maybeSafari:{1:[732],1.15:[733],1.25:[738,733],1.5:[738,732],1.75:[732],2:[738,732],2.5:[738,733],3:[743,740,734],3.01:[743,740,734]}},926:{textSizeHeights:[752,748,744,738],textSizeHeightsNoTabs:[860,858,856,854],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:{textSizeHeights:[721,717,713,707],textSizeHeightsNoTabs:[829,827,825,823],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]}},852:{textSizeHeights:[666,662,658],textSizeHeightsNoTabs:[774,772,770,768],zoomHeight:{1.15:[666,662,658],1.25:[665,661,658],1.5:[666,662,659],1.75:[667,662],1.99:[663,659],2:[663,659],2.5:[665,663],3:[666,663]},maybeSafari:{1:[652],1.15:[652],1.25:[651],1.5:[653],1.75:[658,653],1.99:[655,649],2:[655,649],2.5:[658,653],3:[657,651]}},844:{textSizeHeights:[670,666,662,656],textSizeHeightsNoTabs:[778,776,774,772],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:{textSizeHeights:[641,637,633,627],textSizeHeightsNoTabs:[749,747,745,743],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:{textSizeHeights:[628,624,620,614],textSizeHeightsNoTabs:[736,734,732,730],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:{textSizeHeights:[559,555,551,545],textSizeHeightsNoTabs:[667,665,663,661],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 o(){return window.navigator.mockUserAgent||window.navigator.userAgent}var i=/ip(a|ro)d|silk|xoom|playbook|tablet|kindle|Nexus 7|GT-P10|SC-01C|SHW-M180S|SM-T320|SGH-T849|SCH-I800|SHW-M180L|SPH-P100|SGH-I987|zt180|HTC( Flyer|_Flyer)|Sprint ATP51|ViewPad7|pandigital(sprnova|nova)|Ideos S7|Dell Streak 7|Advent Vega|A101IT|A70BHT|MID7015|Next2|nook|FOLIO|MB511.*RUTEM|Mac OS.*Silk/i;function u(t){return void 0===t&&(t=o()),!!t.match(/Android|webOS|iPhone|iPad|iPod|bada|Symbian|Palm|CriOS|BlackBerry|IEMobile|WindowsMobile|Opera Mini/i)}function c(t){return void 0===t&&(t=o()),i.test(t)}function a(t){return void 0===t&&(t=o()),/(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 s(t){return void 0===t&&(t=o()),/FBAN/.test(t)||/FBAV/.test(t)}function d(t){return void 0===t&&(t=o()),/Firefox/i.test(t)}function l(t){return void 0===t&&(t=o()),/FxiOS/i.test(t)}function h(t){return void 0===t&&(t=o()),/EdgiOS/i.test(t)}function p(t){return void 0===t&&(t=o()),/Opera Mini/i.test(t)}function v(t){return void 0===t&&(t=o()),/Android/.test(t)}function m(t){return void 0===t&&(t=o()),/iPhone|iPod|iPad/.test(t)}function w(t){return void 0===t&&(t=o()),/iPhone.*OS.*(1)?(?:(1)[0-4]| [0-9])_/.test(t)}function y(t){return void 0===t&&(t=o()),/\bGSA\b/.test(t)}function g(t){return void 0===t&&(t=o()),/QQBrowser/.test(t)}function b(t){return void 0===t&&(t=o()),!!m(t)&&(!!y(t)||/.+AppleWebKit(?!.*Safari)|.*WKWebView/.test(t))}function S(t){if(void 0===t&&(t=o()),m(t)){var n=window.innerHeight,e=Math.round(window.screen.width/window.innerWidth*100)/100,i=Math.round(n*e),u=null;if(w(t))u=r[window.outerHeight];else{if(1!==e)return!0;u=r[window.outerHeight]}return!u||(e>1&&u.zoomHeight&&u.zoomHeight[e]?-1!==u.zoomHeight[e].indexOf(i):-1!==u.textSizeHeights.indexOf(i)||-1!==u.textSizeHeightsNoTabs.indexOf(i))}return!1}function E(t){if(void 0===t&&(t=o()),m(t)){var n=S(t),e=w(t)?r[window.outerHeight]:null;if(!e)return!1;var i=window.innerHeight,u=Math.round(window.screen.width/window.innerWidth*100)/100,c=Math.round(i*u),a=e.maybeSafari,f=!1;return u>1&&a[u]&&-1!==a[u].indexOf(c)&&(f=!0),n||f}return!1}function O(t){return void 0===t&&(t=o()),!!v(t)&&/Version\/[\d.]+/.test(t)&&!p(t)}function x(){return!!window.document.documentMode||Boolean(window.navigator&&window.navigator.userAgent&&/Edge|MSIE|rv:11/i.test(window.navigator.userAgent))}function _(){var t=window.document.querySelector('meta[http-equiv="X-UA-Compatible"]'),n=window.document.querySelector('meta[content="IE=edge"]');return!(!t||!n)}function j(){return!("undefined"==typeof process||!process.versions||!process.versions.electron)}function C(){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 P(){var t=o();return/Macintosh.*AppleWebKit(?!.*Safari)/i.test(t)}function k(t){return void 0===t&&(t=o()),!(a(t)||b(t)||O(t)||p(t)||l(t)||h(t)||s(t)||g(t)||j()||P()||f())}function A(t){return void 0===t&&(t=o()),/Chrome|Chromium|CriOS/.test(t)&&!/SamsungBrowser|Silk|EdgA/.test(t)}function M(t){return void 0===t&&(t=o()),/Safari/.test(t)&&!A(t)&&!/Silk|FxiOS|EdgiOS/.test(t)}function T(t){return void 0===t&&(t=o()),!(/iPhone|iPod/.test(t)||!(/iPad/.test(t)||M(t)&&navigator.maxTouchPoints>=1))}function z(){try{if(window.ApplePaySession&&window.ApplePaySession.supportsVersion(3)&&window.ApplePaySession.canMakePayments())return!0}catch(t){return!1}return!1}function H(t){return-1===window.document.cookie.indexOf(t)}function I(t,n){return(I=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function N(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,I(t,n)}function W(){return(W=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)({}).hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function R(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 n={}.toString;if(n){var e=n.call(t);if("[object Window]"===e||"[object global]"===e||"[object DOMWindow]"===e)return!1}if("function"==typeof t.then)return!0}catch(t){return!1}return!1}var D,L=[],F=[],B=0;function U(){if(!B&&D){var t=D;D=null,t.resolve()}}function q(){B+=1}function V(){B-=1,U()}var J=function(){function t(t){var n=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 e,r,o=!1,i=!1,u=!1;q();try{t((function(t){u?n.resolve(t):(o=!0,e=t)}),(function(t){u?n.reject(t):(i=!0,r=t)}))}catch(t){return V(),void this.reject(t)}V(),u=!0,o?this.resolve(e):i&&this.reject(r)}}var n=t.prototype;return n.resolve=function(t){if(this.resolved||this.rejected)return this;if(R(t))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=t,this.dispatch(),this},n.reject=function(t){var n=this;if(this.resolved||this.rejected)return this;if(R(t))throw new Error("Can not reject promise with another promise");if(!t){var e=t&&"function"==typeof t.toString?t.toString():{}.toString.call(t);t=new Error("Expected reject to be called with Error, got "+e)}return this.rejected=!0,this.error=t,this.errorHandled||setTimeout((function(){n.errorHandled||function(t,n){if(-1===L.indexOf(t)){L.push(t),setTimeout((function(){throw t}),1);for(var e=0;e<F.length;e++)F[e](t,n)}}(t,n)}),1),this.dispatch(),this},n.asyncReject=function(t){return this.errorHandled=!0,this.reject(t),this},n.dispatch=function(){var n=this.resolved,e=this.rejected,r=this.handlers;if(!this.dispatching&&(n||e)){this.dispatching=!0,q();for(var o=function(t,n){return t.then((function(t){n.resolve(t)}),(function(t){n.reject(t)}))},i=0;i<r.length;i++){var u=r[i],c=u.onSuccess,a=u.onError,f=u.promise,s=void 0;if(n)try{s=c?c(this.value):this.value}catch(t){f.reject(t);continue}else if(e){if(!a){f.reject(this.error);continue}try{s=a(this.error)}catch(t){f.reject(t);continue}}if(s instanceof t&&(s.resolved||s.rejected)){var d=s;d.resolved?f.resolve(d.value):f.reject(d.error),d.errorHandled=!0}else R(s)?s instanceof t&&(s.resolved||s.rejected)?s.resolved?f.resolve(s.value):f.reject(s.error):o(s,f):f.resolve(s)}r.length=0,this.dispatching=!1,V()}},n.then=function(n,e){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.then expected a function for success handler");if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.then expected a function for error handler");var r=new t;return this.handlers.push({promise:r,onSuccess:n,onError:e}),this.errorHandled=!0,this.dispatch(),r},n.catch=function(t){return this.then(void 0,t)},n.finally=function(n){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.finally expected a function");return this.then((function(e){return t.try(n).then((function(){return e}))}),(function(e){return t.try(n).then((function(){throw e}))}))},n.timeout=function(t,n){var e=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){e.resolved||e.rejected||e.reject(n||new Error("Promise timed out after "+t+"ms"))}),t);return this.then((function(t){return clearTimeout(r),t}))},n.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},n.lazy=function(){return this.errorHandled=!0,this},t.resolve=function(n){return n instanceof t?n:R(n)?new t((function(t,e){return n.then(t,e)})):(new t).resolve(n)},t.reject=function(n){return(new t).reject(n)},t.asyncReject=function(n){return(new t).asyncReject(n)},t.all=function(n){var e=new t,r=n.length,o=[].slice();if(!r)return e.resolve(o),e;for(var i=function(t,n,i){return n.then((function(n){o[t]=n,0==(r-=1)&&e.resolve(o)}),(function(t){i.reject(t)}))},u=0;u<n.length;u++){var c=n[u];if(c instanceof t){if(c.resolved){o[u]=c.value,r-=1;continue}}else if(!R(c)){o[u]=c,r-=1;continue}i(u,t.resolve(c),e)}return 0===r&&e.resolve(o),e},t.hash=function(n){var e={},r=[],o=function(t){if(n.hasOwnProperty(t)){var o=n[t];R(o)?r.push(o.then((function(n){e[t]=n}))):e[t]=o}};for(var i in n)o(i);return t.all(r).then((function(){return e}))},t.map=function(n,e){return t.all(n.map(e))},t.onPossiblyUnhandledException=function(t){return function(t){return F.push(t),{cancel:function(){F.splice(F.indexOf(t),1)}}}(t)},t.try=function(n,e,r){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.try expected a function");var o;q();try{o=n.apply(e,r||[])}catch(n){return V(),t.reject(n)}return V(),t.resolve(o)},t.delay=function(n){return new t((function(t){setTimeout(t,n)}))},t.isPromise=function(n){return!!(n&&n instanceof t)||R(n)},t.flush=function(){return n=D=D||new t,U(),n;var n},t}(),$="Call was rejected by callee.\r\n";function G(t){return void 0===t&&(t=window),t.location.protocol}function K(t){if(void 0===t&&(t=window),t.mockDomain){var n=t.mockDomain.split("//")[0];if(n)return n}return G(t)}function Q(t){return void 0===t&&(t=window),"about:"===K(t)}function X(t){try{return!0}catch(t){}return!1}function Y(t){void 0===t&&(t=window);var n=t.location;if(!n)throw new Error("Can not read window location");var e=G(t);if(!e)throw new Error("Can not read window protocol");if("file:"===e)return"file://";if("about:"===e){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&&X()?Y(r):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return e+"//"+o}function Z(t){void 0===t&&(t=window);var n=Y(t);return n&&t.mockDomain&&0===t.mockDomain.indexOf("mock:")?t.mockDomain:n}function tt(t){if(!function(t){try{if(t===window)return!0}catch(t){}try{var n=Object.getOwnPropertyDescriptor(t,"location");if(n&&!1===n.enumerable)return!1}catch(t){}try{if(Q(t)&&X())return!0}catch(t){}try{if(function(t){return void 0===t&&(t=window),"mock:"===K(t)}(t)&&X())return!0}catch(t){}try{if(Y(t)===Y(window))return!0}catch(t){}return!1}(t))return!1;try{if(t===window)return!0;if(Q(t)&&X())return!0;if(Z(window)===Z(t))return!0}catch(t){}return!1}var nt=[],et=[];function rt(t,n){void 0===n&&(n=!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!==$}if(n&&tt(t))try{if(t.mockclosed)return!0}catch(t){}try{if(!t.parent||!t.top)return!0}catch(t){}var e=function(t,n){for(var e=0;e<t.length;e++)try{if(t[e]===n)return e}catch(t){}return-1}(nt,t);if(-1!==e){var r=et[e];if(r&&function(t){if(!t.contentWindow)return!0;if(!t.parentNode)return!0;var n=t.ownerDocument;if(n&&n.documentElement&&!n.documentElement.contains(t)){for(var e=t;e.parentNode&&e.parentNode!==e;)e=e.parentNode;if(!e.host||!n.documentElement.contains(e.host))return!0}return!1}(r))return!0}return!1}function ot(t){try{if(t===window)return!0}catch(t){if(t&&t.message===$)return!0}try{if("[object Window]"==={}.toString.call(t))return!0}catch(t){if(t&&t.message===$)return!0}try{if(window.Window&&t instanceof window.Window)return!0}catch(t){if(t&&t.message===$)return!0}try{if(t&&t.self===t)return!0}catch(t){if(t&&t.message===$)return!0}try{if(t&&t.parent===t)return!0}catch(t){if(t&&t.message===$)return!0}try{if(t&&t.top===t)return!0}catch(t){if(t&&t.message===$)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 it(t,n){for(var e=0;e<t.length;e++)try{if(t[e]===n)return e}catch(t){}return-1}var ut=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,n={};return Object.freeze(n),t.set(n,"__testvalue__"),"__testvalue__"===t.get(n)}catch(t){return!1}}())try{this.weakmap=new WeakMap}catch(t){}this.keys=[],this.values=[]}var n=t.prototype;return n._cleanupClosedWindows=function(){for(var t=this.weakmap,n=this.keys,e=0;e<n.length;e++){var r=n[e];if(ot(r)&&rt(r)){if(t)try{t.delete(r)}catch(t){}n.splice(e,1),this.values.splice(e,1),e-=1}}},n.isSafeToReadWrite=function(t){return!ot(t)},n.set=function(t,n){if(!t)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{e.set(t,n)}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]=n:Object.defineProperty(t,r,{value:[t,n],writable:!0}))}catch(t){}this._cleanupClosedWindows();var i=this.keys,u=this.values,c=it(i,t);-1===c?(i.push(t),u.push(n)):u[c]=n},n.get=function(t){if(!t)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(t))return n.get(t)}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var e=t[this.name];return e&&e[0]===t?e[1]:void 0}catch(t){}this._cleanupClosedWindows();var r=it(this.keys,t);if(-1!==r)return this.values[r]},n.delete=function(t){if(!t)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{n.delete(t)}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var e=t[this.name];e&&e[0]===t&&(e[0]=e[1]=void 0)}catch(t){}this._cleanupClosedWindows();var r=this.keys,o=it(r,t);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},n.has=function(t){if(!t)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(t))return!0}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var e=t[this.name];return!(!e||e[0]!==t)}catch(t){}return this._cleanupClosedWindows(),-1!==it(this.keys,t)},n.getOrSet=function(t,n){if(this.has(t))return this.get(t);var e=n();return this.set(t,e),e},t}();function ct(t){return(ct=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function at(){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 ft(t,n,e){return(ft=at()?Reflect.construct:function(t,n,e){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(t,r));return e&&I(o,e.prototype),o}).apply(null,arguments)}function st(t){var n="function"==typeof Map?new Map:void 0;return(st=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return ft(t,arguments,ct(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),I(e,t)})(t)}var dt,lt={ENTER:13,SPACE:32},ht={UID:"data-uid"},pt=30,vt=/([^\w]*)(javascript|data|vbscript)/im,mt=/&#(\w+)(^\w|;)?/g,wt=/&(newline|tab);/gi,yt=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,gt=/^.+(:|:)/gim,bt=[".","/"],St="about:blank";function Et(t){var n=!1;try{(t instanceof window.Element||null!==t&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument)&&(n=!0)}catch(t){}return n}function Ot(t){return t.name||t.__name__||t.displayName||"anonymous"}function xt(t,n){try{delete t.name,t.name=n}catch(t){}return t.__name__=t.displayName=n,t}function _t(t){if("function"==typeof btoa)return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,n){return String.fromCharCode(parseInt(n,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(t,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function jt(t){if("function"==typeof atob)return decodeURIComponent([].map.call(atob(t),(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""));if("undefined"!=typeof Buffer)return Buffer.from(t,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")}function Ct(){var t="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return t.charAt(Math.floor(Math.random()*t.length))}))+"_"+_t((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function Pt(){if("undefined"!=typeof window)return window;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("No global found")}function kt(t){if(dt=dt||new ut,null==t||"object"!=typeof t&&"function"!=typeof t)throw new Error("Invalid object");var n=dt.get(t);return n||(n=typeof t+":"+Ct(),dt.set(t,n)),n}function At(t){try{return JSON.stringify([].slice.call(t),(function(t,n){return"function"==typeof n?"memoize["+kt(n)+"]":Et(n)?{}:n}))}catch(t){throw new Error("Arguments not serializable -- can not be used to memoize")}}function Mt(){return{}}var Tt=0,zt=0;function Ht(t,n){void 0===n&&(n={});var e,r,o=n.thisNamespace,i=void 0!==o&&o,u=n.time,c=Tt;Tt+=1;var a=function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var f,s;c<zt&&(e=null,r=null,c=Tt,Tt+=1),f=i?(r=r||new ut).getOrSet(this,Mt):e=e||{};try{s=At(o)}catch(n){return t.apply(this,arguments)}var d=f[s];if(d&&u&&Date.now()-d.time<u&&(delete f[s],d=null),d)return d.value;var l=Date.now(),h=t.apply(this,arguments);return f[s]={time:l,value:h},h};return a.reset=function(){e=null,r=null},xt(a,(n.name||Ot(t))+"::memoized")}function It(t){return J.resolve(t)}function Nt(t){var n={};function e(){for(var e=arguments,r=this,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];var c=At(i);return n.hasOwnProperty(c)||(n[c]=J.try((function(){return t.apply(r,e)})).finally((function(){delete n[c]}))),n[c]}return e.reset=function(){n={}},xt(e,Ot(t)+"::promiseMemoized")}function Wt(t,n){function e(){return J.try(t,this,arguments)}return void 0===n&&(n={}),n.name&&(e.displayName=n.name+":promisified"),xt(e,Ot(t)+"::promisified")}function Rt(t,n,e){void 0===e&&(e=[]);var r=t.__inline_memoize_cache__=t.__inline_memoize_cache__||{},o=At(e);return r.hasOwnProperty(o)?r[o]:r[o]=n.apply(void 0,e)}function Dt(){}function Lt(t){var n=!1;return xt((function(){if(!n)return n=!0,t.apply(this,arguments)}),Ot(t)+"::once")}function Ft(t){for(var n=0,e=0;e<t.length;e++)n+=t[e].charCodeAt(0)*Math.pow(e%10+1,5);return Math.floor(Math.pow(Math.sqrt(n),5))}function Bt(t){for(var n="",e=0;e<t.length;e++){var r=t[e].charCodeAt(0)*e;t[e+1]&&(r+=t[e+1].charCodeAt(0)*(e-1)),n+=String.fromCharCode(97+Math.abs(r)%26)}return n}function Ut(t,n){var e=t.match(n);if(e)return e[1]}function qt(t,n){return new J((function(e){var r=t[n];if(r)return e(r);delete t[n],Object.defineProperty(t,n,{configurable:!0,set:function(t){(r=t)&&e(r)},get:function(){return r}})}))}function Vt(t,n){if(void 0===n&&(n=1),n>=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 e=t&&t.stack,r=t&&t.message;if(e&&r)return-1!==e.indexOf(r)?e:r+"\n"+e;if(e)return e;if(r)return r}return t&&t.toString&&"function"==typeof t.toString?t.toString():{}.toString.call(t)}catch(t){return"Error while stringifying error: "+Vt(t,n+1)}}function Jt(t){var n="<unknown error: "+{}.toString.call(t)+">";return t?t instanceof Error?t.message||n:"string"==typeof t.message&&t.message||n:n}function $t(t){return"string"==typeof t?t:t&&t.toString&&"function"==typeof t.toString?t.toString():{}.toString.call(t)}function Gt(t,n){var e=(t=t.split("://")[1]).indexOf(n);return-1!==e&&t.slice(e)===n}function Kt(t,n,e){var r=t[n];t[n]=function(){var t=arguments,n=this;return e({context:this,args:[].slice.call(arguments),original:r,callOriginal:function(){return r.apply(n,t)}})}}function Qt(t,n){if(!n)return t;if(Object.assign)return Object.assign(t,n);for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function Xt(t){if(Object.values)return Object.values(t);var n=[];for(var e in t)t.hasOwnProperty(e)&&n.push(t[e]);return n}Ht.clear=function(){zt=Tt};var Yt=Ht(Xt);function Zt(t,n){return Math.round(t*n/100)}function tn(){return Math.min.apply(Math,arguments)}function nn(){return Math.max.apply(Math,arguments)}function en(t,n){var e=t%n;return e?t-e+n:t}function rn(t,n,e){var r=[];return t.replace(n,(function(t){r.push(e?e.apply(null,arguments):t)})),r}function on(t){return"data:image/svg+xml;base64,"+_t(t)}function un(t,n){void 0===n&&(n=Boolean);var e={};for(var r in t)t.hasOwnProperty(r)&&n(t[r],r)&&(e[r]=t[r]);return e}function cn(t){return t}function an(t,n){var e=[];return t.replace(n,(function(t){return e.push(t),""})),e}function fn(t,n){var e,r;return void 0===n&&(n=50),xt((function(){r&&clearTimeout(r);var o=e=e||new J;return r=setTimeout((function(){e=null,r=null,J.try(t).then((function(t){o.resolve(t)}),(function(t){o.reject(t)}))}),n),o}),Ot(t)+"::promiseDebounced")}function sn(t,n){var e;return function r(){e=setTimeout((function(){t(),r()}),n)}(),{cancel:function(){clearTimeout(e)}}}function dn(t){return Boolean(t.match(/^[0-9]+$/))}function ln(t){return Boolean(t.match(/^[0-9]+\.[0-9]+$/))}function hn(t){return t.toString()}function pn(t){return"true"===t||"false"!==t&&(dn(t)?parseInt(t,10):ln(t)?parseFloat(t):t)}function vn(t,n,e){for(var r in void 0===n&&(n=""),void 0===e&&(e={}),n=n?n+".":n,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}))?e[""+n+r+"[]"]=t[r].join(","):t[r]&&"object"==typeof t[r]?e=vn(t[r],""+n+r,e):e[""+n+r]=hn(t[r]));return e}function mn(t){var n={};for(var e in t)if(t.hasOwnProperty(e)&&"string"==typeof t[e]){var r=t[e];e.match(/^.+\[\]$/)?(e=e.slice(0,-2),r=r.split(",").map(pn)):r=pn(r);for(var o=n,i=e.split("."),u=0;u<i.length;u++){var c=i[u],a=u+1===i.length,f=!a&&dn(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]||(f?[]:{})}}return n}function wn(){var t={},n={},e={on:function(t,e){var r=n[t]=n[t]||[];r.push(e);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(e),1))}}},once:function(t,n){var r=e.on(t,(function(){r.cancel(),n()}));return r},trigger:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];var i=n[t],u=[];if(i)for(var c=function(){var t=i[a];u.push(J.try((function(){return t.apply(void 0,r)})))},a=0;a<i.length;a++)c();return J.all(u).then(Dt)},triggerOnce:function(n){if(t[n])return J.resolve();t[n]=!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 e.trigger.apply(e,[n].concat(o))},reset:function(){n={}}};return e}function yn(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}function gn(t){return t.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))}function bn(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function Sn(t,n,e){if(!n)return e;for(var r=n.split("."),o=0;o<r.length;o++){if("object"!=typeof t||null===t)return e;t=t[r[o]]}return void 0===t?e:t}function En(t,n){var e=sn((function(){(n-=100)<=0&&(e.cancel(),t())}),100)}function On(t,n,e){if(Array.isArray(t)){if("number"!=typeof n)throw new TypeError("Array key must be number")}else if("object"==typeof t&&null!==t&&"string"!=typeof n)throw new TypeError("Object key must be string");Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(){delete t[n];var r=e();return t[n]=r,r},set:function(e){delete t[n],t[n]=e}})}function xn(t){return[].slice.call(t)}function _n(t){return"object"==typeof t&&null!==t}function jn(t){return _n(t)&&"[object Object]"==={}.toString.call(t)}function Cn(t){if(!jn(t))return!1;var n=t.constructor;if("function"!=typeof n)return!1;var e=n.prototype;return!!jn(e)&&!!e.hasOwnProperty("isPrototypeOf")}function Pn(t,n,e){if(void 0===e&&(e=""),Array.isArray(t)){for(var r=t.length,o=[],i=function(r){On(o,r,(function(){var o=e?e+"."+r:""+r,i=n(t[r],r,o);return(Cn(i)||Array.isArray(i))&&(i=Pn(i,n,o)),i}))},u=0;u<r;u++)i(u);return o}if(Cn(t)){var c={},a=function(r){if(!t.hasOwnProperty(r))return 1;On(c,r,(function(){var o=e?e+"."+r:""+r,i=n(t[r],r,o);return(Cn(i)||Array.isArray(i))&&(i=Pn(i,n,o)),i}))};for(var f in t)a(f);return c}throw new Error("Pass an object or array")}function kn(t,n,e,r){if(t.hasOwnProperty(e)){var o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o)}else n[e]=r}function An(t,n,e){void 0===e&&(e=0),"string"==typeof t&&(t=new RegExp(t));var r=n.slice(e).match(t);if(r){var o=r.index,i=r[0];return{text:i,groups:r.slice(1),start:e+o,end:e+o+i.length,length:i.length,replace:function(t){return i?""+i.slice(0,e+o)+t+i.slice(o+i.length):""}}}}function Mn(t,n){for(var e=[],r=0;;){var o=An(t,n,r);if(!o)break;e.push(o),r=Ut.end}return e}function Tn(t){return null!=t}function zn(t){return J.try(t).then((function(){return zn(t)}))}function Hn(t,n){var e;return void 0===n&&(n=100),xt((function(){var r=arguments,o=this;clearTimeout(e),e=setTimeout((function(){return t.apply(o,r)}),n)}),Ot(t)+"::debounced")}function In(t){return"[object RegExp]"==={}.toString.call(t)}var Nn=function(t){var n=new ut;return function(e){var r=this;return n.getOrSet(e,(function(){return t.call(r,e)}))}},Wn=function(t){var n=new ut;return function(e){var r=this;return n.getOrSet(e,(function(){return t.call(r,e).finally((function(){n.delete(e)}))}))}};function Rn(t,n,e){if(t.hasOwnProperty(n))return t[n];var r=e();return t[n]=r,r}function Dn(t){var n,e=[],r=!1,o={set:function(n,e){return r||(t[n]=e,o.register((function(){delete t[n]}))),e},register:function(t){var o=Lt((function(){return t(n)}));return r?t(n):e.push(o),{cancel:function(){var t=e.indexOf(o);-1!==t&&e.splice(t,1)}}},all:function(t){n=t;var o=[];for(r=!0;e.length;){var i=e.shift();o.push(i())}return J.all(o).then(Dt)}};return o}function Ln(t){var n,e;try{n=t()}catch(t){e=t}return{result:n,error:e}}function Fn(t,n){var e=t.indexOf(n);-1!==e&&t.splice(e,1)}function Bn(t,n){if(null==n)throw new Error("Expected "+t+" to be present");return n}function Un(t){for(var n={},e=0;e<t.length;e++)n[t[e]]=!0;return Object.keys(n)}var qn=function(t,n){return-1!==Yt(t).indexOf(n)};function Vn(t){var n=[],e={};return function(r){if(-1===n.indexOf(r)){n.push(r);var o=Vt(r);if(!e[o])return e[o]=!0,t(r)}}}var Jn=function(t){function n(n){var e;return(e=t.call(this,n)||this).name=e.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}(e),e.constructor):e.stack=new Error(n).stack,e}return N(n,t),n}(st(Error));function $n(t){if(!t)return St;var n,e=(n=t,n.replace(yt,"").replace(mt,(function(t,n){return String.fromCharCode(n)}))).replace(wt,"").replace(yt,"").trim();if(!e)return St;if(function(t){return bt.indexOf(t[0])>-1}(e))return e;var r=e.match(gt);return r&&vt.test(r[0])?St:e}function Gn(){var t=document.body;if(!t)throw new Error("Body element not found");return t}function Kn(){return Boolean(document.body)&&"complete"===document.readyState}function Qn(){return Boolean(document.body)&&"interactive"===document.readyState}function Xn(t){return encodeURIComponent(t)}function Yn(){return Rt(Yn,(function(){return new J((function(t){Kn()&&t(),window.addEventListener("load",(function(){return t()}))}))}))}var Zn=Ht((function(){return new J((function(t){if(Kn()||Qn())return t();var n=setInterval((function(){if(Kn()||Qn())return clearInterval(n),t()}),10)}))}));function te(){return J.try((function(){return document.body?document.body:Zn().then((function(){if(document.body)return document.body;throw new Error("Document ready but document.body not present")}))}))}function ne(t){return Rt(ne,(function(){var n={};if(!t)return n;if(-1===t.indexOf("="))return n;for(var e=0,r=t.split("&");e<r.length;e++){var o=r[e];(o=o.split("="))[0]&&o[1]&&(n[decodeURIComponent(o[0])]=decodeURIComponent(o[1]))}return n}),[t])}function ee(t){return ne(window.location.search.slice(1))[t]}function re(t){return-1===t.indexOf("#")||0!==t.indexOf("#")&&t.split("#")[0]!==window.location.href.split("#")[0]}function oe(t){return void 0===t&&(t={}),Object.keys(t).filter((function(n){return"string"==typeof t[n]||"boolean"==typeof t[n]})).map((function(n){var e=t[n];if("string"!=typeof e&&"boolean"!=typeof e)throw new TypeError("Invalid type for query");return Xn(n)+"="+Xn(e.toString())})).join("&")}function ie(t,n){return void 0===n&&(n={}),n&&Object.keys(n).length?oe(W({},ne(t),n)):t}function ue(t,n){var e,r,o=n.query||{},i=n.hash||{},u=t.split("#");r=u[1];var c=(e=u[0]).split("?");e=c[0];var a=ie(c[1],o),f=ie(r,i);return a&&(e=e+"?"+a),f&&(e=e+"#"+f),e}function ce(t,n){return void 0===n&&(n=window),new J((function(e){n.location=t,re(t)||e()}))}function ae(){var t=document.querySelector("meta[name=viewport]");return!(u()&&window.screen.width<660&&!t)}function fe(t){return Boolean(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function se(){return Rt(se,(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 de(){return Boolean(se())}function le(){return Zn().then((function(){var t=se();if(t){var n=t.timing;return n.connectEnd&&n.domInteractive?n.domInteractive-n.connectEnd:void 0}}))}function he(t){return void 0===t&&(t=""),t.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function pe(){return"undefined"!=typeof window&&void 0!==window.location}function ve(t,n){return void 0===n&&(n=window.document),[].slice.call(n.querySelectorAll(t))}function me(t,n){t.addEventListener("touchstart",Dt,{passive:!0}),t.addEventListener("click",n),t.addEventListener("keypress",(function(t){if(t.keyCode===lt.ENTER||t.keyCode===lt.SPACE)return n(t)}))}function we(t){var n=t.host,e=void 0===n?window.location.host:n,r=t.path,o=t.reverse,i=void 0!==o&&o;return Rt(we,(function(){var t=""+e+r,n=[].slice.call(document.getElementsByTagName("script"));i&&n.reverse();for(var o=0;o<n.length;o++){var u=n[o];if(u.src&&u.src.replace(/^https?:\/\//,"").split("?")[0]===t)return u}}),[r])}function ye(){return Rt(ye,(function(){try{if("undefined"==typeof window)return!1;if(window.localStorage){var t=Math.random().toString();window.localStorage.setItem("__test__localStorage__",t);var n=window.localStorage.getItem("__test__localStorage__");if(window.localStorage.removeItem("__test__localStorage__"),t===n)return!0}}catch(t){}return!1}))}function ge(){var t=window.navigator,n=t.languages?[].concat(t.languages):[];return t.language&&n.push(t.language),t.userLanguage&&n.push(t.userLanguage),n.map((function(t){if(t&&t.match(/^[a-z]{2}[-_][A-Z]{2}$/)){var n=t.split(/[-_]/);return{country:n[1],lang:n[0]}}return t&&t.match(/^[a-z]{2}$/)?{lang:t}:null})).filter(Boolean)}function be(t,n){t.appendChild(n)}function Se(t,n){return void 0===n&&(n=document),Et(t)?t:"string"==typeof t?n.querySelector(t):void 0}function Ee(t,n){void 0===n&&(n=document);var e=Se(t,n);if(e)return e;throw new Error("Can not find element: "+$t(t))}function Oe(t){return new J((function(n,e){var r=$t(t),o=Se(t);if(o)return n(o);if(Kn())return e(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=Se(t))?(n(o),void clearInterval(i)):Kn()?(clearInterval(i),e(new Error("Document is ready and element "+r+" does not exist"))):void 0}),10)}))}var xe,_e=function(t){function n(){return t.apply(this,arguments)||this}return N(n,t),n}(Jn);function je(t,n){var e=(n=n||{}).closeOnUnload,r=void 0===e?1:e,o=n.name,i=void 0===o?"":o,u=n.width,c=n.height,a=0,f=0;u&&(window.outerWidth?f=Math.round((window.outerWidth-u)/2)+window.screenX:window.screen.width&&(f=Math.round((window.screen.width-u)/2))),c&&(window.outerHeight?a=Math.round((window.outerHeight-c)/2)+window.screenY:window.screen.height&&(a=Math.round((window.screen.height-c)/2))),delete n.closeOnUnload,delete n.name,u&&c&&(n=W({top:a,left:f,width:u,height:c,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},n));var s,d,l=Object.keys(n).map((function(t){if(null!=n[t])return t+"="+$t(n[t])})).filter(Boolean).join(",");try{s=window.open(t,i,l)}catch(d){throw new _e("Can not open popup window - "+(d.stack||d.message))}if(rt(s))throw new _e("Can not open popup window - blocked");return r&&window.addEventListener("unload",(function(){return s.close()})),s}function Ce(t,n){try{t.document.open(),t.document.write(n),t.document.close()}catch(e){try{t.location="javascript: document.open(); document.write("+JSON.stringify(n)+"); document.close();"}catch(t){}}}function Pe(t,n){var e=n.tagName.toLowerCase();if("html"!==e)throw new Error("Expected element to be html, got "+e);for(var r=t.document.documentElement,o=0,i=xn(r.children);o<i.length;o++)r.removeChild(i[o]);for(var u=0,c=xn(n.children);u<c.length;u++)r.appendChild(c[u])}function ke(t,n,e){void 0===e&&(e=window.document),t.styleSheet?t.styleSheet.cssText=n:t.appendChild(e.createTextNode(n))}function Ae(t){if((xe=xe||new ut).has(t)){var n=xe.get(t);if(n)return n}var e=new J((function(n,e){t.addEventListener("load",(function(){(function(t){if(function(){for(var t=0;t<nt.length;t++){var n=!1;try{n=nt[t].closed}catch(t){}n&&(et.splice(t,1),nt.splice(t,1))}}(),t&&t.contentWindow)try{nt.push(t.contentWindow),et.push(t)}catch(t){}})(t),n(t)})),t.addEventListener("error",(function(r){t.contentWindow?n(t):e(r)}))}));return xe.set(t,e),e}function Me(t){return Ae(t).then((function(t){if(!t.contentWindow)throw new Error("Could not find window in iframe");return t.contentWindow}))}function Te(t,n,e){void 0===t&&(t="div"),void 0===n&&(n={}),t=t.toLowerCase();var r=document.createElement(t);if(n.style&&Qt(r.style,n.style),n.class&&(r.className=n.class.join(" ")),n.id&&r.setAttribute("id",n.id),n.attributes)for(var o=0,i=Object.keys(n.attributes);o<i.length;o++){var u=i[o];r.setAttribute(u,n.attributes[u])}if(n.styleSheet&&ke(r,n.styleSheet),e&&be(e,r),n.html)if("iframe"===t){if(!e||!r.contentWindow)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");Ce(r.contentWindow,n.html)}else r.innerHTML=n.html;return r}function ze(t,n){void 0===t&&(t={});var e=t.style||{},r=Te("iframe",{attributes:W({allowTransparency:"true"},t.attributes||{}),style:W({backgroundColor:"transparent",border:"none"},e),html:t.html,class:t.class}),o=window.navigator.userAgent.match(/MSIE|Edge/i);return r.hasAttribute("id")||r.setAttribute("id",Ct()),Ae(r),n&&Ee(n).appendChild(r),(t.url||o)&&r.setAttribute("src",t.url||"about:blank"),r}function He(t,n,e){return t.addEventListener(n,e),{cancel:function(){t.removeEventListener(n,e)}}}function Ie(t,n,e){e=Lt(e);for(var r=0;r<n.length;r++)t.addEventListener(n[r],e);return{cancel:Lt((function(){for(var r=0;r<n.length;r++)t.removeEventListener(n[r],e)}))}}var Ne=["webkit","moz","ms","o"];function We(t,n,e){t.style[n]=e;for(var r=bn(n),o=0;o<Ne.length;o++)t.style[""+Ne[o]+r]=e}var Re=["animationstart","webkitAnimationStart","oAnimationStart","MSAnimationStart"],De=["animationend","webkitAnimationEnd","oAnimationEnd","MSAnimationEnd"];function Le(t,n,e,r){return void 0===r&&(r=1e3),new J((function(o,i){var u=Ee(t);if(!u)return o();var c,a,f,s,d=!1;function l(){clearTimeout(c),clearTimeout(a),f.cancel(),s.cancel()}f=Ie(u,Re,(function(t){t.target===u&&t.animationName===n&&(clearTimeout(c),t.stopPropagation(),f.cancel(),d=!0,a=setTimeout((function(){l(),o()}),r))})),s=Ie(u,De,(function(t){if(t.target===u&&t.animationName===n)return l(),"string"==typeof t.animationName&&t.animationName!==n?i("Expected animation name to be "+n+", found "+t.animationName):o()})),We(u,"animationName",n),c=setTimeout((function(){if(!d)return l(),o()}),200),e&&e(l)}))}function Fe(t){t.style.setProperty("visibility","")}function Be(t){t.style.setProperty("visibility","hidden","important")}function Ue(t){t.style.setProperty("display","")}function qe(t){t.style.setProperty("display","none","important")}function Ve(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Je(t,n,e){var r=Le(t,n,e);return Ue(t),r}function $e(t,n,e){return Le(t,n,e).then((function(){qe(t)}))}function Ge(t,n){t.classList.add(n)}function Ke(t,n){t.classList.remove(n)}function Qe(t){return!(t&&t.parentNode&&t.ownerDocument&&t.ownerDocument.documentElement&&t.ownerDocument.documentElement.contains(t))}function Xe(t,n){n=Lt(n);var e,r,o,i=!1,u=[],c=function(){i=!0;for(var t=0;t<u.length;t++)u[t].disconnect();e&&e.cancel(),o&&o.removeEventListener("unload",a),r&&Ve(r)},a=function(){i||(n(),c())};if(Qe(t))return a(),{cancel:c};if(window.MutationObserver)for(var f=t.parentElement;f;){var s=new window.MutationObserver((function(){Qe(t)&&a()}));s.observe(f,{childList:!0}),u.push(s),f=f.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+Ct()+"__"),r.style.display="none",Me(r).then((function(t){(o=function(t){if(!tt(t))throw new Error("Expected window to be same domain");return t}(t)).addEventListener("unload",a)})),t.appendChild(r),e=sn((function(){Qe(t)&&a()}),1e3),{cancel:c}}function Ye(t,n){void 0===n&&(n=window.document);for(var e=0,r=ve("script",t);e<r.length;e++){var o=r[e],i=o.parentNode;if(i){var u=n.createElement("script");u.text=o.textContent,i.replaceChild(u,o)}}}function Ze(t,n,e){var r=void 0===e?{}:e,o=r.width,i=void 0===o||o,u=r.height,c=void 0===u||u,a=r.interval,f=void 0===a?100:a,s=r.win,d=void 0===s?window:s,l=t.offsetWidth,h=t.offsetHeight,p=!1;n({width:l,height:h});var v,m,w=function(){if(!p&&fe(t)){var e=t.offsetWidth,r=t.offsetHeight;(i&&e!==l||c&&r!==h)&&n({width:e,height:r}),l=e,h=r}};return d.addEventListener("resize",w),void 0!==d.ResizeObserver?((v=new d.ResizeObserver(w)).observe(t),m=sn(w,10*f)):void 0!==d.MutationObserver?((v=new d.MutationObserver(w)).observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),m=sn(w,10*f)):m=sn(w,f),{cancel:function(){p=!0,v.disconnect(),window.removeEventListener("resize",w),m.cancel()}}}function tr(t){var n=se();if(n&&"function"==typeof n.getEntries)for(var e=n.getEntries(),r=0;r<e.length;r++){var o=e[r];if(o&&o.name&&0===o.name.indexOf(t)&&"number"==typeof o.duration)return Math.floor(o.duration)}}function nr(t){for(;t.parentNode;)t=t.parentNode;return"[object ShadowRoot]"===t.toString()}function er(t){for(;t.parentNode;)t=t.parentNode;if(nr(t))return t}function rr(t){var n=er(t);if(n&&n.host)return n.host}function or(t){var n=rr(t);if(!n)throw new Error("Element is not in shadow dom");var e="shadow-slot-"+Ct(),r=document.createElement("slot");r.setAttribute("name",e),t.appendChild(r);var o=document.createElement("div");return o.setAttribute("slot",e),n.appendChild(o),nr(n)?or(o):o}function ir(t){var n=function n(e){return t.removeEventListener("focus",n),e.preventDefault(),t.blur(),!1};t.addEventListener("mousedown",(function(){t.addEventListener("focus",n),setTimeout((function(){t.removeEventListener("focus",n)}),1)}))}function ur(){try{throw new Error("_")}catch(t){return t.stack||""}}var cr="undefined"!=typeof document?document.currentScript:null,ar=Ht((function(){if(cr)return cr;if(cr=function(){try{var t=ur(),n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t),e=n&&n[1];if(!e)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===e)return i}}catch(t){}}())return cr;throw new Error("Can not determine current script")})),fr=Ct(),sr=Ht((function(){var t;try{t=ar()}catch(t){return fr}var n=t.getAttribute(ht.UID);if(n&&"string"==typeof n)return n;if((n=t.getAttribute(ht.UID+"-auto"))&&"string"==typeof n)return n;if(t.src){var e=Bt(JSON.stringify({src:t.src,dataset:t.dataset}));n="uid_"+e.slice(e.length-pt)}else n=Ct();return t.setAttribute(ht.UID+"-auto",n),n}));function dr(t){var n=t.url,e=t.target,r=t.body,o=t.method,i=void 0===o?"post":o,u=document.createElement("form");if(u.setAttribute("target",e),u.setAttribute("method",i),u.setAttribute("action",n),u.style.display="none",r)for(var c=0,a=Object.keys(r);c<a.length;c++){var f,s=a[c],d=document.createElement("input");d.setAttribute("name",s),d.setAttribute("value",null==(f=r[s])?void 0:f.toString()),u.appendChild(d)}Gn().appendChild(u),u.submit(),Gn().removeChild(u)}function lr(t){var n=t.name,e=t.lifetime,r=void 0===e?12e5:e,o=t.stickySessionId;return Rt(lr,(function(){var t,e="__"+n+"_storage__",i=Ct();function u(n){var r,o=ye();if(t&&(r=t),!r&&o){var u=window.localStorage.getItem(e);u&&(r=JSON.parse(u))}r||(r=Pt()[e]),r||(r={id:i}),r.id||(r.id=i),t=r;var c=n(r);return o?window.localStorage.setItem(e,JSON.stringify(r)):Pt()[e]=r,t=null,c}function c(){return u((function(t){return t.id}))}function a(t){return u((function(n){var e=n.__session__,i=Date.now();return e&&i-e.created>r&&(e=null),e||(e={guid:o||Ct(),created:i}),n.__session__=e,t(e)}))}return{getState:u,getID:c,isStateFresh:function(){return c()===i},getSessionState:function(t){return a((function(n){return n.state=n.state||{},t(n.state)}))},getSessionID:function(){return a((function(t){return t.guid}))}}}),[{name:n,lifetime:r}])}function hr(){return lr({name:"belter_experiment"})}function pr(t){return hr().getSessionState((function(n){return n.loggedBeacons=n.loggedBeacons||[],-1===n.loggedBeacons.indexOf(t)&&(n.loggedBeacons.push(t),!0)}))}function vr(t){return Math.floor(Math.random()*t)}function mr(t){var n,e=t.name,r=t.sample,o=void 0===r?50:r,i=t.logTreatment,u=void 0===i?Dt:i,c=t.logCheckpoint,a=void 0===c?Dt:c,f=t.sticky,s=void 0===f||f?function(t){return hr().getState((function(n){return n.throttlePercentiles=n.throttlePercentiles||{},n.throttlePercentiles[t]=n.throttlePercentiles[t]||vr(100),n.throttlePercentiles[t]}))}(e):vr(100),d=e+"_"+(n=s<o?"test":o>=50||o<=s&&s<2*o?"control":"throttle"),l=!1,h=!1;try{window.localStorage&&window.localStorage.getItem(e)&&(h=!0)}catch(t){}var p={isEnabled:function(){return"test"===n||h},isDisabled:function(){return"test"!==n&&!h},getTreatment:function(){return d},log:function(t,n){return void 0===n&&(n={}),l?(pr(d+"_"+JSON.stringify(n))&&u({name:e,treatment:d,payload:n,throttle:s}),pr(d+"_"+t+"_"+JSON.stringify(n))&&a({name:e,treatment:d,checkpoint:t,payload:n,throttle:s}),p):p},logStart:function(t){return void 0===t&&(t={}),l=!0,p.log("start",t)},logComplete:function(t){return void 0===t&&(t={}),p.log("complete",t)}};return p}function wr(t){var n=t.name,e=t.version,r=void 0===e?"latest":e,o=Pt(),i="__"+n+"__"+r+"_global__",u=o[i]=o[i]||{};return{get:function(t,n){return n=n||{},u[t]=u[t]||n}}}var yr=[];function gr(t){var n=t.url,e=t.method,r=void 0===e?"get":e,o=t.headers,i=void 0===o?{}:o,u=t.json,c=t.data,a=t.body,f=t.win,s=void 0===f?window:f,d=t.timeout,l=void 0===d?0:d;return new J((function(t,e){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={},f=0,d=Object.keys(i);f<d.length;f++){var h=d[f];o[h.toLowerCase()]=i[h]}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<yr.length;p++)for(var v=(0,yr[p])(),m=0,w=Object.keys(v);m<w.length;m++){var y=w[m];o[y.toLowerCase()]=v[y]}var g=new s.XMLHttpRequest;for(var b in g.addEventListener("load",(function(){var o=function(t){void 0===t&&(t="");for(var n={},e=0,r=t.trim().split("\n");e<r.length;e++){var o=r[e].split(":"),i=o[0],u=o.slice(1);n[i.toLowerCase()]=u.join(":").trim()}return n}(this.getAllResponseHeaders());if(!this.status)return e(new Error("Request to "+r.toLowerCase()+" "+n+" 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 e(new Error("Invalid json: "+this.responseText+"."))}return t({status:this.status,headers:o,body:c})}),!1),g.addEventListener("error",(function(t){e(new Error("Request to "+r.toLowerCase()+" "+n+" failed: "+t.toString()+"."))}),!1),g.open(r,n,!0),o)o.hasOwnProperty(b)&&g.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("&")),g.timeout=l,g.ontimeout=function(){e(new Error("Request to "+r.toLowerCase()+" "+n+" has timed out"))},g.send(a)}))}function br(t){yr.push(t)}var Sr=!0;function Er(t,n,e){e.value=Ht(e.value,{name:n,thisNamespace:!0})}function Or(t,n,e){e.value=Wt(e.value,{name:n})}function xr(t){return"string"==typeof t&&/^[0-9]+%$/.test(t)}function _r(t){return"string"==typeof t&&/^[0-9]+px$/.test(t)}function jr(t){if("number"==typeof t)return t;var n=t.match(/^([0-9]+)(px|%)$/);if(!n)throw new Error("Could not match css value from "+t);return parseInt(n[1],10)}function Cr(t){return jr(t)+"px"}function Pr(t){return"number"==typeof t?Cr(t):xr(t)?t:Cr(t)}function kr(t,n){return parseInt(t*jr(n)/100,10)}function Ar(t,n){if("number"==typeof t)return t;if(xr(t))return kr(n,t);if(_r(t))return jr(t);throw new Error("Can not normalize dimension: "+t)}function Mr(t,n){var e=(void 0===n?{}:n).timeout,r=void 0===e?5e3:e,o=[],i=[];return new J((function(n,e){var u=setTimeout((function(){o.length&&e(new Error("Expected "+o[0].name+" to be called in "+r+"ms")),i.length&&e(new Error("Expected "+i[0].name+" promise to complete in "+r+"ms"))}),r),c=function(t,n){void 0===n&&(n=Dt);var e={name:t,handler:n};return o.push(e),function(){for(var r=this,u=arguments.length,c=new Array(u),a=0;a<u;a++)c[a]=arguments[a];Fn(o,e);var f=Ln((function(){var t;return(t=n).call.apply(t,[r].concat(c))})),s=f.result,d=f.error;if(d)throw i.push({name:t,promise:J.asyncReject(d)}),d;return i.push({name:t,promise:J.resolve(s)}),s}},a=function(t,n){return void 0===n&&(n=Dt),function(){var e;i.push({name:t,promise:J.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(e=n).call.apply(e,[this].concat(o))}},f=function(t,n){void 0===n&&(n=Dt);var e={name:t,handler:n};return o.push(e),function(){for(var r=this,u=arguments.length,c=new Array(u),a=0;a<u;a++)c[a]=arguments[a];Fn(o,e);var f=Ln((function(){var t;return(t=n).call.apply(t,[r].concat(c))})),s=f.result,d=f.error;if(d)throw d;return i.push({name:t,promise:J.resolve(s).then((function(){throw new Error("Expected "+t+" to throw an error")}),Dt)}),s}};i.push({name:"wrapPromise handler",promise:J.try((function(){return t({expect:c,avoid:a,expectError:f,error:a,wait:function(){return J.resolve()}})}))}),function t(){return J.try((function(){if(i.length){var n=i[0];return n.promise.finally((function(){Fn(i,n)})).then(t)}})).then((function(){if(o.length)return J.delay(10).then(t)}))}().finally((function(){clearTimeout(u)})).then(n,e)}))}}])})); | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("belter",[],n):"object"==typeof exports?exports.belter=n():t.belter=n()}("undefined"!=typeof self?self:this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return{}.hasOwnProperty.call(t,n)},e.p="",e(e.s=0)}([function(t,n,e){"use strict";e.r(n),e.d(n,"getUserAgent",(function(){return o})),e.d(n,"isDevice",(function(){return u})),e.d(n,"isTablet",(function(){return c})),e.d(n,"isWebView",(function(){return a})),e.d(n,"isStandAlone",(function(){return f})),e.d(n,"isFacebookWebView",(function(){return s})),e.d(n,"isInstagramWebView",(function(){return d})),e.d(n,"isMetaWebView",(function(){return l})),e.d(n,"isMetaInAppBrowser",(function(){return h})),e.d(n,"isFirefox",(function(){return p})),e.d(n,"isFirefoxIOS",(function(){return v})),e.d(n,"isEdgeIOS",(function(){return m})),e.d(n,"isOperaMini",(function(){return w})),e.d(n,"isAndroid",(function(){return y})),e.d(n,"isIos",(function(){return g})),e.d(n,"isIOS14",(function(){return b})),e.d(n,"isGoogleSearchApp",(function(){return S})),e.d(n,"isQQBrowser",(function(){return E})),e.d(n,"isIosWebview",(function(){return O})),e.d(n,"isSFVC",(function(){return x})),e.d(n,"isSFVCorSafari",(function(){return _})),e.d(n,"isAndroidWebview",(function(){return j})),e.d(n,"isIE",(function(){return C})),e.d(n,"isIECompHeader",(function(){return P})),e.d(n,"isElectron",(function(){return k})),e.d(n,"isIEIntranet",(function(){return A})),e.d(n,"isMacOsCna",(function(){return M})),e.d(n,"supportsPopups",(function(){return T})),e.d(n,"isChrome",(function(){return I})),e.d(n,"isSafari",(function(){return z})),e.d(n,"isIpadOs",(function(){return H})),e.d(n,"isApplePaySupported",(function(){return W})),e.d(n,"isCrossSiteTrackingEnabled",(function(){return N})),e.d(n,"getBody",(function(){return Xn})),e.d(n,"isDocumentReady",(function(){return Yn})),e.d(n,"isDocumentInteractive",(function(){return Zn})),e.d(n,"urlEncode",(function(){return te})),e.d(n,"waitForWindowReady",(function(){return ne})),e.d(n,"waitForDocumentReady",(function(){return ee})),e.d(n,"waitForDocumentBody",(function(){return re})),e.d(n,"parseQuery",(function(){return oe})),e.d(n,"getQueryParam",(function(){return ie})),e.d(n,"urlWillRedirectPage",(function(){return ue})),e.d(n,"formatQuery",(function(){return ce})),e.d(n,"extendQuery",(function(){return ae})),e.d(n,"extendUrl",(function(){return fe})),e.d(n,"redirect",(function(){return se})),e.d(n,"hasMetaViewPort",(function(){return de})),e.d(n,"isElementVisible",(function(){return le})),e.d(n,"getPerformance",(function(){return he})),e.d(n,"enablePerformance",(function(){return pe})),e.d(n,"getPageRenderTime",(function(){return ve})),e.d(n,"htmlEncode",(function(){return me})),e.d(n,"isBrowser",(function(){return we})),e.d(n,"querySelectorAll",(function(){return ye})),e.d(n,"onClick",(function(){return ge})),e.d(n,"getScript",(function(){return be})),e.d(n,"isLocalStorageEnabled",(function(){return Se})),e.d(n,"getBrowserLocales",(function(){return Ee})),e.d(n,"appendChild",(function(){return Oe})),e.d(n,"getElementSafe",(function(){return xe})),e.d(n,"getElement",(function(){return _e})),e.d(n,"elementReady",(function(){return je})),e.d(n,"PopupOpenError",(function(){return Pe})),e.d(n,"popup",(function(){return ke})),e.d(n,"writeToWindow",(function(){return Ae})),e.d(n,"writeElementToWindow",(function(){return Me})),e.d(n,"setStyle",(function(){return Te})),e.d(n,"awaitFrameLoad",(function(){return Ie})),e.d(n,"awaitFrameWindow",(function(){return ze})),e.d(n,"createElement",(function(){return He})),e.d(n,"iframe",(function(){return We})),e.d(n,"addEventListener",(function(){return Ne})),e.d(n,"bindEvents",(function(){return Re})),e.d(n,"setVendorCSS",(function(){return Le})),e.d(n,"animate",(function(){return Ue})),e.d(n,"makeElementVisible",(function(){return Ve})),e.d(n,"makeElementInvisible",(function(){return qe})),e.d(n,"showElement",(function(){return Je})),e.d(n,"hideElement",(function(){return $e})),e.d(n,"destroyElement",(function(){return Ge})),e.d(n,"showAndAnimate",(function(){return Ke})),e.d(n,"animateAndHide",(function(){return Qe})),e.d(n,"addClass",(function(){return Xe})),e.d(n,"removeClass",(function(){return Ye})),e.d(n,"isElementClosed",(function(){return Ze})),e.d(n,"watchElementForClose",(function(){return tr})),e.d(n,"fixScripts",(function(){return nr})),e.d(n,"onResize",(function(){return er})),e.d(n,"getResourceLoadTime",(function(){return rr})),e.d(n,"isShadowElement",(function(){return or})),e.d(n,"getShadowRoot",(function(){return ir})),e.d(n,"getShadowHost",(function(){return ur})),e.d(n,"insertShadowSlot",(function(){return cr})),e.d(n,"preventClickFocus",(function(){return ar})),e.d(n,"getStackTrace",(function(){return fr})),e.d(n,"getCurrentScript",(function(){return dr})),e.d(n,"getCurrentScriptUID",(function(){return hr})),e.d(n,"submitForm",(function(){return pr})),e.d(n,"experiment",(function(){return gr})),e.d(n,"getGlobalNameSpace",(function(){return br})),e.d(n,"getStorage",(function(){return vr})),e.d(n,"isElement",(function(){return _t})),e.d(n,"getFunctionName",(function(){return jt})),e.d(n,"setFunctionName",(function(){return Ct})),e.d(n,"base64encode",(function(){return Pt})),e.d(n,"base64decode",(function(){return kt})),e.d(n,"uniqueID",(function(){return At})),e.d(n,"getGlobal",(function(){return Mt})),e.d(n,"getObjectID",(function(){return Tt})),e.d(n,"getEmptyObject",(function(){return zt})),e.d(n,"memoize",(function(){return Nt})),e.d(n,"promiseIdentity",(function(){return Rt})),e.d(n,"memoizePromise",(function(){return Dt})),e.d(n,"promisify",(function(){return Lt})),e.d(n,"inlineMemoize",(function(){return Bt})),e.d(n,"noop",(function(){return Ft})),e.d(n,"once",(function(){return Ut})),e.d(n,"hashStr",(function(){return Vt})),e.d(n,"strHashStr",(function(){return qt})),e.d(n,"match",(function(){return Jt})),e.d(n,"awaitKey",(function(){return $t})),e.d(n,"stringifyError",(function(){return Gt})),e.d(n,"stringifyErrorMessage",(function(){return Kt})),e.d(n,"stringify",(function(){return Qt})),e.d(n,"domainMatches",(function(){return Xt})),e.d(n,"patchMethod",(function(){return Yt})),e.d(n,"extend",(function(){return Zt})),e.d(n,"values",(function(){return tn})),e.d(n,"memoizedValues",(function(){return nn})),e.d(n,"perc",(function(){return en})),e.d(n,"min",(function(){return rn})),e.d(n,"max",(function(){return on})),e.d(n,"roundUp",(function(){return un})),e.d(n,"regexMap",(function(){return cn})),e.d(n,"svgToBase64",(function(){return an})),e.d(n,"objFilter",(function(){return fn})),e.d(n,"identity",(function(){return sn})),e.d(n,"regexTokenize",(function(){return dn})),e.d(n,"promiseDebounce",(function(){return ln})),e.d(n,"safeInterval",(function(){return hn})),e.d(n,"isInteger",(function(){return pn})),e.d(n,"isFloat",(function(){return vn})),e.d(n,"serializePrimitive",(function(){return mn})),e.d(n,"deserializePrimitive",(function(){return wn})),e.d(n,"dotify",(function(){return yn})),e.d(n,"undotify",(function(){return gn})),e.d(n,"eventEmitter",(function(){return bn})),e.d(n,"camelToDasherize",(function(){return Sn})),e.d(n,"dasherizeToCamel",(function(){return En})),e.d(n,"capitalizeFirstLetter",(function(){return On})),e.d(n,"get",(function(){return xn})),e.d(n,"safeTimeout",(function(){return _n})),e.d(n,"defineLazyProp",(function(){return jn})),e.d(n,"arrayFrom",(function(){return Cn})),e.d(n,"isObject",(function(){return Pn})),e.d(n,"isObjectObject",(function(){return kn})),e.d(n,"isPlainObject",(function(){return An})),e.d(n,"replaceObject",(function(){return Mn})),e.d(n,"copyProp",(function(){return Tn})),e.d(n,"regex",(function(){return In})),e.d(n,"regexAll",(function(){return zn})),e.d(n,"isDefined",(function(){return Hn})),e.d(n,"cycle",(function(){return Wn})),e.d(n,"debounce",(function(){return Nn})),e.d(n,"isRegex",(function(){return Rn})),e.d(n,"weakMapMemoize",(function(){return Dn})),e.d(n,"weakMapMemoizePromise",(function(){return Ln})),e.d(n,"getOrSet",(function(){return Bn})),e.d(n,"cleanup",(function(){return Fn})),e.d(n,"tryCatch",(function(){return Un})),e.d(n,"removeFromArray",(function(){return Vn})),e.d(n,"assertExists",(function(){return qn})),e.d(n,"unique",(function(){return Jn})),e.d(n,"constHas",(function(){return $n})),e.d(n,"dedupeErrors",(function(){return Gn})),e.d(n,"ExtendableError",(function(){return Kn})),e.d(n,"sanitizeUrl",(function(){return Qn})),e.d(n,"request",(function(){return Er})),e.d(n,"addHeaderBuilder",(function(){return Or})),e.d(n,"TYPES",(function(){return xr})),e.d(n,"memoized",(function(){return _r})),e.d(n,"promise",(function(){return jr})),e.d(n,"isPerc",(function(){return Cr})),e.d(n,"isPx",(function(){return Pr})),e.d(n,"toNum",(function(){return kr})),e.d(n,"toPx",(function(){return Ar})),e.d(n,"toCSS",(function(){return Mr})),e.d(n,"percOf",(function(){return Tr})),e.d(n,"normalizeDimension",(function(){return Ir})),e.d(n,"wrapPromise",(function(){return zr})),e.d(n,"KEY_CODES",(function(){return vt})),e.d(n,"ATTRIBUTES",(function(){return mt})),e.d(n,"UID_HASH_LENGTH",(function(){return wt})),e.d(n,"invalidProtocolRegex",(function(){return yt})),e.d(n,"htmlEntitiesRegex",(function(){return gt})),e.d(n,"htmlCtrlEntityRegex",(function(){return bt})),e.d(n,"ctrlCharactersRegex",(function(){return St})),e.d(n,"urlSchemeRegex",(function(){return Et})),e.d(n,"relativeFirstCharacters",(function(){return Ot})),e.d(n,"BLANK_URL",(function(){return xt})),e.d(n,"sfvcScreens",(function(){return r}));var r={932:{textSizeHeights:[746,742,738],textSizeHeightsNoTabs:[854,852,850,848],zoomHeight:{1.15:[746,742,738],1.25:[746,743],1.5:[746,743],1.75:[746,742,739],2:[746,742],2.5:[745,743],3:[749],3.01:[749]},maybeSafari:{1:[732],1.15:[733],1.25:[738,733],1.5:[738,732],1.75:[732],2:[738,732],2.5:[738,733],3:[743,740,734],3.01:[743,740,734]}},926:{textSizeHeights:[752,748,744,738],textSizeHeightsNoTabs:[860,858,856,854],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:{textSizeHeights:[721,717,713,707],textSizeHeightsNoTabs:[829,827,825,823],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]}},852:{textSizeHeights:[666,662,658],textSizeHeightsNoTabs:[774,772,770,768],zoomHeight:{1.15:[666,662,658],1.25:[665,661,658],1.5:[666,662,659],1.75:[667,662],1.99:[663,659],2:[663,659],2.5:[665,663],3:[666,663]},maybeSafari:{1:[652],1.15:[652],1.25:[651],1.5:[653],1.75:[658,653],1.99:[655,649],2:[655,649],2.5:[658,653],3:[657,651]}},844:{textSizeHeights:[670,666,662,656],textSizeHeightsNoTabs:[778,776,774,772],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:{textSizeHeights:[641,637,633,627],textSizeHeightsNoTabs:[749,747,745,743],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:{textSizeHeights:[628,624,620,614],textSizeHeightsNoTabs:[736,734,732,730],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:{textSizeHeights:[559,555,551,545],textSizeHeightsNoTabs:[667,665,663,661],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 o(){return window.navigator.mockUserAgent||window.navigator.userAgent}var i=/ip(a|ro)d|silk|xoom|playbook|tablet|kindle|Nexus 7|GT-P10|SC-01C|SHW-M180S|SM-T320|SGH-T849|SCH-I800|SHW-M180L|SPH-P100|SGH-I987|zt180|HTC( Flyer|_Flyer)|Sprint ATP51|ViewPad7|pandigital(sprnova|nova)|Ideos S7|Dell Streak 7|Advent Vega|A101IT|A70BHT|MID7015|Next2|nook|FOLIO|MB511.*RUTEM|Mac OS.*Silk/i;function u(t){return void 0===t&&(t=o()),!!t.match(/Android|webOS|iPhone|iPad|iPod|bada|Symbian|Palm|CriOS|BlackBerry|IEMobile|WindowsMobile|Opera Mini/i)}function c(t){return void 0===t&&(t=o()),i.test(t)}function a(t){return void 0===t&&(t=o()),/(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 s(t){return void 0===t&&(t=o()),/FBAN/.test(t)||/FBAV/.test(t)}function d(t){return void 0===t&&(t=o()),/Instagram/.test(t)}function l(t){return void 0===t&&(t=o()),s(t)||d(t)}function h(t){return void 0===t&&(t=o()),/IABMV\/1/.test(t)}function p(t){return void 0===t&&(t=o()),/Firefox/i.test(t)}function v(t){return void 0===t&&(t=o()),/FxiOS/i.test(t)}function m(t){return void 0===t&&(t=o()),/EdgiOS/i.test(t)}function w(t){return void 0===t&&(t=o()),/Opera Mini/i.test(t)}function y(t){return void 0===t&&(t=o()),/Android/.test(t)}function g(t){return void 0===t&&(t=o()),/iPhone|iPod|iPad/.test(t)}function b(t){return void 0===t&&(t=o()),/iPhone.*OS.*(1)?(?:(1)[0-4]| [0-9])_/.test(t)}function S(t){return void 0===t&&(t=o()),/\bGSA\b/.test(t)}function E(t){return void 0===t&&(t=o()),/QQBrowser/.test(t)}function O(t){return void 0===t&&(t=o()),!!g(t)&&(!!S(t)||/.+AppleWebKit(?!.*Safari)|.*WKWebView/.test(t))}function x(t){if(void 0===t&&(t=o()),g(t)){var n=window.innerHeight,e=Math.round(window.screen.width/window.innerWidth*100)/100,i=Math.round(n*e),u=null;if(b(t))u=r[window.outerHeight];else{if(1!==e)return!0;u=r[window.outerHeight]}return!u||(e>1&&u.zoomHeight&&u.zoomHeight[e]?-1!==u.zoomHeight[e].indexOf(i):-1!==u.textSizeHeights.indexOf(i)||-1!==u.textSizeHeightsNoTabs.indexOf(i))}return!1}function _(t){if(void 0===t&&(t=o()),g(t)){var n=x(t),e=b(t)?r[window.outerHeight]:null;if(!e)return!1;var i=window.innerHeight,u=Math.round(window.screen.width/window.innerWidth*100)/100,c=Math.round(i*u),a=e.maybeSafari,f=!1;return u>1&&a[u]&&-1!==a[u].indexOf(c)&&(f=!0),n||f}return!1}function j(t){return void 0===t&&(t=o()),!!y(t)&&/Version\/[\d.]+/.test(t)&&!w(t)}function C(){return!!window.document.documentMode||Boolean(window.navigator&&window.navigator.userAgent&&/Edge|MSIE|rv:11/i.test(window.navigator.userAgent))}function P(){var t=window.document.querySelector('meta[http-equiv="X-UA-Compatible"]'),n=window.document.querySelector('meta[content="IE=edge"]');return!(!t||!n)}function k(){return!("undefined"==typeof process||!process.versions||!process.versions.electron)}function A(){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 M(){var t=o();return/Macintosh.*AppleWebKit(?!.*Safari)/i.test(t)}function T(t){return void 0===t&&(t=o()),!(a(t)||O(t)||j(t)||w(t)||v(t)||m(t)||s(t)||E(t)||k()||M()||f())}function I(t){return void 0===t&&(t=o()),/Chrome|Chromium|CriOS/.test(t)&&!/SamsungBrowser|Silk|EdgA/.test(t)}function z(t){return void 0===t&&(t=o()),/Safari/.test(t)&&!I(t)&&!/Silk|FxiOS|EdgiOS/.test(t)}function H(t){return void 0===t&&(t=o()),!(/iPhone|iPod/.test(t)||!(/iPad/.test(t)||z(t)&&navigator.maxTouchPoints>=1))}function W(){try{if(window.ApplePaySession&&window.ApplePaySession.supportsVersion(3)&&window.ApplePaySession.canMakePayments())return!0}catch(t){return!1}return!1}function N(t){return-1===window.document.cookie.indexOf(t)}function R(t,n){return(R=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function D(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,R(t,n)}function L(){return(L=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)({}).hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function B(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 n={}.toString;if(n){var e=n.call(t);if("[object Window]"===e||"[object global]"===e||"[object DOMWindow]"===e)return!1}if("function"==typeof t.then)return!0}catch(t){return!1}return!1}var F,U=[],V=[],q=0;function J(){if(!q&&F){var t=F;F=null,t.resolve()}}function $(){q+=1}function G(){q-=1,J()}var K=function(){function t(t){var n=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 e,r,o=!1,i=!1,u=!1;$();try{t((function(t){u?n.resolve(t):(o=!0,e=t)}),(function(t){u?n.reject(t):(i=!0,r=t)}))}catch(t){return G(),void this.reject(t)}G(),u=!0,o?this.resolve(e):i&&this.reject(r)}}var n=t.prototype;return n.resolve=function(t){if(this.resolved||this.rejected)return this;if(B(t))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=t,this.dispatch(),this},n.reject=function(t){var n=this;if(this.resolved||this.rejected)return this;if(B(t))throw new Error("Can not reject promise with another promise");if(!t){var e=t&&"function"==typeof t.toString?t.toString():{}.toString.call(t);t=new Error("Expected reject to be called with Error, got "+e)}return this.rejected=!0,this.error=t,this.errorHandled||setTimeout((function(){n.errorHandled||function(t,n){if(-1===U.indexOf(t)){U.push(t),setTimeout((function(){throw t}),1);for(var e=0;e<V.length;e++)V[e](t,n)}}(t,n)}),1),this.dispatch(),this},n.asyncReject=function(t){return this.errorHandled=!0,this.reject(t),this},n.dispatch=function(){var n=this.resolved,e=this.rejected,r=this.handlers;if(!this.dispatching&&(n||e)){this.dispatching=!0,$();for(var o=function(t,n){return t.then((function(t){n.resolve(t)}),(function(t){n.reject(t)}))},i=0;i<r.length;i++){var u=r[i],c=u.onSuccess,a=u.onError,f=u.promise,s=void 0;if(n)try{s=c?c(this.value):this.value}catch(t){f.reject(t);continue}else if(e){if(!a){f.reject(this.error);continue}try{s=a(this.error)}catch(t){f.reject(t);continue}}if(s instanceof t&&(s.resolved||s.rejected)){var d=s;d.resolved?f.resolve(d.value):f.reject(d.error),d.errorHandled=!0}else B(s)?s instanceof t&&(s.resolved||s.rejected)?s.resolved?f.resolve(s.value):f.reject(s.error):o(s,f):f.resolve(s)}r.length=0,this.dispatching=!1,G()}},n.then=function(n,e){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.then expected a function for success handler");if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.then expected a function for error handler");var r=new t;return this.handlers.push({promise:r,onSuccess:n,onError:e}),this.errorHandled=!0,this.dispatch(),r},n.catch=function(t){return this.then(void 0,t)},n.finally=function(n){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.finally expected a function");return this.then((function(e){return t.try(n).then((function(){return e}))}),(function(e){return t.try(n).then((function(){throw e}))}))},n.timeout=function(t,n){var e=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){e.resolved||e.rejected||e.reject(n||new Error("Promise timed out after "+t+"ms"))}),t);return this.then((function(t){return clearTimeout(r),t}))},n.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},n.lazy=function(){return this.errorHandled=!0,this},t.resolve=function(n){return n instanceof t?n:B(n)?new t((function(t,e){return n.then(t,e)})):(new t).resolve(n)},t.reject=function(n){return(new t).reject(n)},t.asyncReject=function(n){return(new t).asyncReject(n)},t.all=function(n){var e=new t,r=n.length,o=[].slice();if(!r)return e.resolve(o),e;for(var i=function(t,n,i){return n.then((function(n){o[t]=n,0==(r-=1)&&e.resolve(o)}),(function(t){i.reject(t)}))},u=0;u<n.length;u++){var c=n[u];if(c instanceof t){if(c.resolved){o[u]=c.value,r-=1;continue}}else if(!B(c)){o[u]=c,r-=1;continue}i(u,t.resolve(c),e)}return 0===r&&e.resolve(o),e},t.hash=function(n){var e={},r=[],o=function(t){if(n.hasOwnProperty(t)){var o=n[t];B(o)?r.push(o.then((function(n){e[t]=n}))):e[t]=o}};for(var i in n)o(i);return t.all(r).then((function(){return e}))},t.map=function(n,e){return t.all(n.map(e))},t.onPossiblyUnhandledException=function(t){return function(t){return V.push(t),{cancel:function(){V.splice(V.indexOf(t),1)}}}(t)},t.try=function(n,e,r){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.try expected a function");var o;$();try{o=n.apply(e,r||[])}catch(n){return G(),t.reject(n)}return G(),t.resolve(o)},t.delay=function(n){return new t((function(t){setTimeout(t,n)}))},t.isPromise=function(n){return!!(n&&n instanceof t)||B(n)},t.flush=function(){return n=F=F||new t,J(),n;var n},t}(),Q="Call was rejected by callee.\r\n";function X(t){return void 0===t&&(t=window),t.location.protocol}function Y(t){if(void 0===t&&(t=window),t.mockDomain){var n=t.mockDomain.split("//")[0];if(n)return n}return X(t)}function Z(t){return void 0===t&&(t=window),"about:"===Y(t)}function tt(t){try{return!0}catch(t){}return!1}function nt(t){void 0===t&&(t=window);var n=t.location;if(!n)throw new Error("Can not read window location");var e=X(t);if(!e)throw new Error("Can not read window protocol");if("file:"===e)return"file://";if("about:"===e){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&&tt()?nt(r):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return e+"//"+o}function et(t){void 0===t&&(t=window);var n=nt(t);return n&&t.mockDomain&&0===t.mockDomain.indexOf("mock:")?t.mockDomain:n}function rt(t){if(!function(t){try{if(t===window)return!0}catch(t){}try{var n=Object.getOwnPropertyDescriptor(t,"location");if(n&&!1===n.enumerable)return!1}catch(t){}try{if(Z(t)&&tt())return!0}catch(t){}try{if(function(t){return void 0===t&&(t=window),"mock:"===Y(t)}(t)&&tt())return!0}catch(t){}try{if(nt(t)===nt(window))return!0}catch(t){}return!1}(t))return!1;try{if(t===window)return!0;if(Z(t)&&tt())return!0;if(et(window)===et(t))return!0}catch(t){}return!1}var ot=[],it=[];function ut(t,n){void 0===n&&(n=!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(n&&rt(t))try{if(t.mockclosed)return!0}catch(t){}try{if(!t.parent||!t.top)return!0}catch(t){}var e=function(t,n){for(var e=0;e<t.length;e++)try{if(t[e]===n)return e}catch(t){}return-1}(ot,t);if(-1!==e){var r=it[e];if(r&&function(t){if(!t.contentWindow)return!0;if(!t.parentNode)return!0;var n=t.ownerDocument;if(n&&n.documentElement&&!n.documentElement.contains(t)){for(var e=t;e.parentNode&&e.parentNode!==e;)e=e.parentNode;if(!e.host||!n.documentElement.contains(e.host))return!0}return!1}(r))return!0}return!1}function ct(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 at(t,n){for(var e=0;e<t.length;e++)try{if(t[e]===n)return e}catch(t){}return-1}var ft=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,n={};return Object.freeze(n),t.set(n,"__testvalue__"),"__testvalue__"===t.get(n)}catch(t){return!1}}())try{this.weakmap=new WeakMap}catch(t){}this.keys=[],this.values=[]}var n=t.prototype;return n._cleanupClosedWindows=function(){for(var t=this.weakmap,n=this.keys,e=0;e<n.length;e++){var r=n[e];if(ct(r)&&ut(r)){if(t)try{t.delete(r)}catch(t){}n.splice(e,1),this.values.splice(e,1),e-=1}}},n.isSafeToReadWrite=function(t){return!ct(t)},n.set=function(t,n){if(!t)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{e.set(t,n)}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]=n:Object.defineProperty(t,r,{value:[t,n],writable:!0}))}catch(t){}this._cleanupClosedWindows();var i=this.keys,u=this.values,c=at(i,t);-1===c?(i.push(t),u.push(n)):u[c]=n},n.get=function(t){if(!t)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(t))return n.get(t)}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var e=t[this.name];return e&&e[0]===t?e[1]:void 0}catch(t){}this._cleanupClosedWindows();var r=at(this.keys,t);if(-1!==r)return this.values[r]},n.delete=function(t){if(!t)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{n.delete(t)}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var e=t[this.name];e&&e[0]===t&&(e[0]=e[1]=void 0)}catch(t){}this._cleanupClosedWindows();var r=this.keys,o=at(r,t);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},n.has=function(t){if(!t)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(t))return!0}catch(t){delete this.weakmap}if(this.isSafeToReadWrite(t))try{var e=t[this.name];return!(!e||e[0]!==t)}catch(t){}return this._cleanupClosedWindows(),-1!==at(this.keys,t)},n.getOrSet=function(t,n){if(this.has(t))return this.get(t);var e=n();return this.set(t,e),e},t}();function st(t){return(st=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function dt(){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 lt(t,n,e){return(lt=dt()?Reflect.construct:function(t,n,e){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(t,r));return e&&R(o,e.prototype),o}).apply(null,arguments)}function ht(t){var n="function"==typeof Map?new Map:void 0;return(ht=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return lt(t,arguments,st(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),R(e,t)})(t)}var pt,vt={ENTER:13,SPACE:32},mt={UID:"data-uid"},wt=30,yt=/([^\w]*)(javascript|data|vbscript)/im,gt=/&#(\w+)(^\w|;)?/g,bt=/&(newline|tab);/gi,St=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Et=/^.+(:|:)/gim,Ot=[".","/"],xt="about:blank";function _t(t){var n=!1;try{(t instanceof window.Element||null!==t&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument)&&(n=!0)}catch(t){}return n}function jt(t){return t.name||t.__name__||t.displayName||"anonymous"}function Ct(t,n){try{delete t.name,t.name=n}catch(t){}return t.__name__=t.displayName=n,t}function Pt(t){if("function"==typeof btoa)return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,n){return String.fromCharCode(parseInt(n,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(t,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function kt(t){if("function"==typeof atob)return decodeURIComponent([].map.call(atob(t),(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""));if("undefined"!=typeof Buffer)return Buffer.from(t,"base64").toString("utf8");throw new Error("Can not find window.atob or Buffer")}function At(){var t="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return t.charAt(Math.floor(Math.random()*t.length))}))+"_"+Pt((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function Mt(){if("undefined"!=typeof window)return window;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("No global found")}function Tt(t){if(pt=pt||new ft,null==t||"object"!=typeof t&&"function"!=typeof t)throw new Error("Invalid object");var n=pt.get(t);return n||(n=typeof t+":"+At(),pt.set(t,n)),n}function It(t){try{return JSON.stringify([].slice.call(t),(function(t,n){return"function"==typeof n?"memoize["+Tt(n)+"]":_t(n)?{}:n}))}catch(t){throw new Error("Arguments not serializable -- can not be used to memoize")}}function zt(){return{}}var Ht=0,Wt=0;function Nt(t,n){void 0===n&&(n={});var e,r,o=n.thisNamespace,i=void 0!==o&&o,u=n.time,c=Ht;Ht+=1;var a=function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var f,s;c<Wt&&(e=null,r=null,c=Ht,Ht+=1),f=i?(r=r||new ft).getOrSet(this,zt):e=e||{};try{s=It(o)}catch(n){return t.apply(this,arguments)}var d=f[s];if(d&&u&&Date.now()-d.time<u&&(delete f[s],d=null),d)return d.value;var l=Date.now(),h=t.apply(this,arguments);return f[s]={time:l,value:h},h};return a.reset=function(){e=null,r=null},Ct(a,(n.name||jt(t))+"::memoized")}function Rt(t){return K.resolve(t)}function Dt(t){var n={};function e(){for(var e=arguments,r=this,o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];var c=It(i);return n.hasOwnProperty(c)||(n[c]=K.try((function(){return t.apply(r,e)})).finally((function(){delete n[c]}))),n[c]}return e.reset=function(){n={}},Ct(e,jt(t)+"::promiseMemoized")}function Lt(t,n){function e(){return K.try(t,this,arguments)}return void 0===n&&(n={}),n.name&&(e.displayName=n.name+":promisified"),Ct(e,jt(t)+"::promisified")}function Bt(t,n,e){void 0===e&&(e=[]);var r=t.__inline_memoize_cache__=t.__inline_memoize_cache__||{},o=It(e);return r.hasOwnProperty(o)?r[o]:r[o]=n.apply(void 0,e)}function Ft(){}function Ut(t){var n=!1;return Ct((function(){if(!n)return n=!0,t.apply(this,arguments)}),jt(t)+"::once")}function Vt(t){for(var n=0,e=0;e<t.length;e++)n+=t[e].charCodeAt(0)*Math.pow(e%10+1,5);return Math.floor(Math.pow(Math.sqrt(n),5))}function qt(t){for(var n="",e=0;e<t.length;e++){var r=t[e].charCodeAt(0)*e;t[e+1]&&(r+=t[e+1].charCodeAt(0)*(e-1)),n+=String.fromCharCode(97+Math.abs(r)%26)}return n}function Jt(t,n){var e=t.match(n);if(e)return e[1]}function $t(t,n){return new K((function(e){var r=t[n];if(r)return e(r);delete t[n],Object.defineProperty(t,n,{configurable:!0,set:function(t){(r=t)&&e(r)},get:function(){return r}})}))}function Gt(t,n){if(void 0===n&&(n=1),n>=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 e=t&&t.stack,r=t&&t.message;if(e&&r)return-1!==e.indexOf(r)?e:r+"\n"+e;if(e)return e;if(r)return r}return t&&t.toString&&"function"==typeof t.toString?t.toString():{}.toString.call(t)}catch(t){return"Error while stringifying error: "+Gt(t,n+1)}}function Kt(t){var n="<unknown error: "+{}.toString.call(t)+">";return t?t instanceof Error?t.message||n:"string"==typeof t.message&&t.message||n:n}function Qt(t){return"string"==typeof t?t:t&&t.toString&&"function"==typeof t.toString?t.toString():{}.toString.call(t)}function Xt(t,n){var e=(t=t.split("://")[1]).indexOf(n);return-1!==e&&t.slice(e)===n}function Yt(t,n,e){var r=t[n];t[n]=function(){var t=arguments,n=this;return e({context:this,args:[].slice.call(arguments),original:r,callOriginal:function(){return r.apply(n,t)}})}}function Zt(t,n){if(!n)return t;if(Object.assign)return Object.assign(t,n);for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function tn(t){if(Object.values)return Object.values(t);var n=[];for(var e in t)t.hasOwnProperty(e)&&n.push(t[e]);return n}Nt.clear=function(){Wt=Ht};var nn=Nt(tn);function en(t,n){return Math.round(t*n/100)}function rn(){return Math.min.apply(Math,arguments)}function on(){return Math.max.apply(Math,arguments)}function un(t,n){var e=t%n;return e?t-e+n:t}function cn(t,n,e){var r=[];return t.replace(n,(function(t){r.push(e?e.apply(null,arguments):t)})),r}function an(t){return"data:image/svg+xml;base64,"+Pt(t)}function fn(t,n){void 0===n&&(n=Boolean);var e={};for(var r in t)t.hasOwnProperty(r)&&n(t[r],r)&&(e[r]=t[r]);return e}function sn(t){return t}function dn(t,n){var e=[];return t.replace(n,(function(t){return e.push(t),""})),e}function ln(t,n){var e,r;return void 0===n&&(n=50),Ct((function(){r&&clearTimeout(r);var o=e=e||new K;return r=setTimeout((function(){e=null,r=null,K.try(t).then((function(t){o.resolve(t)}),(function(t){o.reject(t)}))}),n),o}),jt(t)+"::promiseDebounced")}function hn(t,n){var e;return function r(){e=setTimeout((function(){t(),r()}),n)}(),{cancel:function(){clearTimeout(e)}}}function pn(t){return Boolean(t.match(/^[0-9]+$/))}function vn(t){return Boolean(t.match(/^[0-9]+\.[0-9]+$/))}function mn(t){return t.toString()}function wn(t){return"true"===t||"false"!==t&&(pn(t)?parseInt(t,10):vn(t)?parseFloat(t):t)}function yn(t,n,e){for(var r in void 0===n&&(n=""),void 0===e&&(e={}),n=n?n+".":n,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}))?e[""+n+r+"[]"]=t[r].join(","):t[r]&&"object"==typeof t[r]?e=yn(t[r],""+n+r,e):e[""+n+r]=mn(t[r]));return e}function gn(t){var n={};for(var e in t)if(t.hasOwnProperty(e)&&"string"==typeof t[e]){var r=t[e];e.match(/^.+\[\]$/)?(e=e.slice(0,-2),r=r.split(",").map(wn)):r=wn(r);for(var o=n,i=e.split("."),u=0;u<i.length;u++){var c=i[u],a=u+1===i.length,f=!a&&pn(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]||(f?[]:{})}}return n}function bn(){var t={},n={},e={on:function(t,e){var r=n[t]=n[t]||[];r.push(e);var o=!1;return{cancel:function(){o||(o=!0,r.splice(r.indexOf(e),1))}}},once:function(t,n){var r=e.on(t,(function(){r.cancel(),n()}));return r},trigger:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];var i=n[t],u=[];if(i)for(var c=function(){var t=i[a];u.push(K.try((function(){return t.apply(void 0,r)})))},a=0;a<i.length;a++)c();return K.all(u).then(Ft)},triggerOnce:function(n){if(t[n])return K.resolve();t[n]=!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 e.trigger.apply(e,[n].concat(o))},reset:function(){n={}}};return e}function Sn(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}function En(t){return t.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))}function On(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function xn(t,n,e){if(!n)return e;for(var r=n.split("."),o=0;o<r.length;o++){if("object"!=typeof t||null===t)return e;t=t[r[o]]}return void 0===t?e:t}function _n(t,n){var e=hn((function(){(n-=100)<=0&&(e.cancel(),t())}),100)}function jn(t,n,e){if(Array.isArray(t)){if("number"!=typeof n)throw new TypeError("Array key must be number")}else if("object"==typeof t&&null!==t&&"string"!=typeof n)throw new TypeError("Object key must be string");Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(){delete t[n];var r=e();return t[n]=r,r},set:function(e){delete t[n],t[n]=e}})}function Cn(t){return[].slice.call(t)}function Pn(t){return"object"==typeof t&&null!==t}function kn(t){return Pn(t)&&"[object Object]"==={}.toString.call(t)}function An(t){if(!kn(t))return!1;var n=t.constructor;if("function"!=typeof n)return!1;var e=n.prototype;return!!kn(e)&&!!e.hasOwnProperty("isPrototypeOf")}function Mn(t,n,e){if(void 0===e&&(e=""),Array.isArray(t)){for(var r=t.length,o=[],i=function(r){jn(o,r,(function(){var o=e?e+"."+r:""+r,i=n(t[r],r,o);return(An(i)||Array.isArray(i))&&(i=Mn(i,n,o)),i}))},u=0;u<r;u++)i(u);return o}if(An(t)){var c={},a=function(r){if(!t.hasOwnProperty(r))return 1;jn(c,r,(function(){var o=e?e+"."+r:""+r,i=n(t[r],r,o);return(An(i)||Array.isArray(i))&&(i=Mn(i,n,o)),i}))};for(var f in t)a(f);return c}throw new Error("Pass an object or array")}function Tn(t,n,e,r){if(t.hasOwnProperty(e)){var o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o)}else n[e]=r}function In(t,n,e){void 0===e&&(e=0),"string"==typeof t&&(t=new RegExp(t));var r=n.slice(e).match(t);if(r){var o=r.index,i=r[0];return{text:i,groups:r.slice(1),start:e+o,end:e+o+i.length,length:i.length,replace:function(t){return i?""+i.slice(0,e+o)+t+i.slice(o+i.length):""}}}}function zn(t,n){for(var e=[],r=0;;){var o=In(t,n,r);if(!o)break;e.push(o),r=Jt.end}return e}function Hn(t){return null!=t}function Wn(t){return K.try(t).then((function(){return Wn(t)}))}function Nn(t,n){var e;return void 0===n&&(n=100),Ct((function(){var r=arguments,o=this;clearTimeout(e),e=setTimeout((function(){return t.apply(o,r)}),n)}),jt(t)+"::debounced")}function Rn(t){return"[object RegExp]"==={}.toString.call(t)}var Dn=function(t){var n=new ft;return function(e){var r=this;return n.getOrSet(e,(function(){return t.call(r,e)}))}},Ln=function(t){var n=new ft;return function(e){var r=this;return n.getOrSet(e,(function(){return t.call(r,e).finally((function(){n.delete(e)}))}))}};function Bn(t,n,e){if(t.hasOwnProperty(n))return t[n];var r=e();return t[n]=r,r}function Fn(t){var n,e=[],r=!1,o={set:function(n,e){return r||(t[n]=e,o.register((function(){delete t[n]}))),e},register:function(t){var o=Ut((function(){return t(n)}));return r?t(n):e.push(o),{cancel:function(){var t=e.indexOf(o);-1!==t&&e.splice(t,1)}}},all:function(t){n=t;var o=[];for(r=!0;e.length;){var i=e.shift();o.push(i())}return K.all(o).then(Ft)}};return o}function Un(t){var n,e;try{n=t()}catch(t){e=t}return{result:n,error:e}}function Vn(t,n){var e=t.indexOf(n);-1!==e&&t.splice(e,1)}function qn(t,n){if(null==n)throw new Error("Expected "+t+" to be present");return n}function Jn(t){for(var n={},e=0;e<t.length;e++)n[t[e]]=!0;return Object.keys(n)}var $n=function(t,n){return-1!==nn(t).indexOf(n)};function Gn(t){var n=[],e={};return function(r){if(-1===n.indexOf(r)){n.push(r);var o=Gt(r);if(!e[o])return e[o]=!0,t(r)}}}var Kn=function(t){function n(n){var e;return(e=t.call(this,n)||this).name=e.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(e,e.constructor):e.stack=new Error(n).stack,e}return D(n,t),n}(ht(Error));function Qn(t){if(!t)return xt;var n,e=(n=t,n.replace(St,"").replace(gt,(function(t,n){return String.fromCharCode(n)}))).replace(bt,"").replace(St,"").trim();if(!e)return xt;if(function(t){return Ot.indexOf(t[0])>-1}(e))return e;var r=e.match(Et);return r&&yt.test(r[0])?xt:e}function Xn(){var t=document.body;if(!t)throw new Error("Body element not found");return t}function Yn(){return Boolean(document.body)&&"complete"===document.readyState}function Zn(){return Boolean(document.body)&&"interactive"===document.readyState}function te(t){return encodeURIComponent(t)}function ne(){return Bt(ne,(function(){return new K((function(t){Yn()&&t(),window.addEventListener("load",(function(){return t()}))}))}))}var ee=Nt((function(){return new K((function(t){if(Yn()||Zn())return t();var n=setInterval((function(){if(Yn()||Zn())return clearInterval(n),t()}),10)}))}));function re(){return K.try((function(){return document.body?document.body:ee().then((function(){if(document.body)return document.body;throw new Error("Document ready but document.body not present")}))}))}function oe(t){return Bt(oe,(function(){var n={};if(!t)return n;if(-1===t.indexOf("="))return n;for(var e=0,r=t.split("&");e<r.length;e++){var o=r[e];(o=o.split("="))[0]&&o[1]&&(n[decodeURIComponent(o[0])]=decodeURIComponent(o[1]))}return n}),[t])}function ie(t){return oe(window.location.search.slice(1))[t]}function ue(t){return-1===t.indexOf("#")||0!==t.indexOf("#")&&t.split("#")[0]!==window.location.href.split("#")[0]}function ce(t){return void 0===t&&(t={}),Object.keys(t).filter((function(n){return"string"==typeof t[n]||"boolean"==typeof t[n]})).map((function(n){var e=t[n];if("string"!=typeof e&&"boolean"!=typeof e)throw new TypeError("Invalid type for query");return te(n)+"="+te(e.toString())})).join("&")}function ae(t,n){return void 0===n&&(n={}),n&&Object.keys(n).length?ce(L({},oe(t),n)):t}function fe(t,n){var e,r,o=n.query||{},i=n.hash||{},u=t.split("#");r=u[1];var c=(e=u[0]).split("?");e=c[0];var a=ae(c[1],o),f=ae(r,i);return a&&(e=e+"?"+a),f&&(e=e+"#"+f),e}function se(t,n){return void 0===n&&(n=window),new K((function(e){n.location=t,ue(t)||e()}))}function de(){var t=document.querySelector("meta[name=viewport]");return!(u()&&window.screen.width<660&&!t)}function le(t){return Boolean(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function he(){return Bt(he,(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 pe(){return Boolean(he())}function ve(){return ee().then((function(){var t=he();if(t){var n=t.timing;return n.connectEnd&&n.domInteractive?n.domInteractive-n.connectEnd:void 0}}))}function me(t){return void 0===t&&(t=""),t.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function we(){return"undefined"!=typeof window&&void 0!==window.location}function ye(t,n){return void 0===n&&(n=window.document),[].slice.call(n.querySelectorAll(t))}function ge(t,n){t.addEventListener("touchstart",Ft,{passive:!0}),t.addEventListener("click",n),t.addEventListener("keypress",(function(t){if(t.keyCode===vt.ENTER||t.keyCode===vt.SPACE)return n(t)}))}function be(t){var n=t.host,e=void 0===n?window.location.host:n,r=t.path,o=t.reverse,i=void 0!==o&&o;return Bt(be,(function(){var t=""+e+r,n=[].slice.call(document.getElementsByTagName("script"));i&&n.reverse();for(var o=0;o<n.length;o++){var u=n[o];if(u.src&&u.src.replace(/^https?:\/\//,"").split("?")[0]===t)return u}}),[r])}function Se(){return Bt(Se,(function(){try{if("undefined"==typeof window)return!1;if(window.localStorage){var t=Math.random().toString();window.localStorage.setItem("__test__localStorage__",t);var n=window.localStorage.getItem("__test__localStorage__");if(window.localStorage.removeItem("__test__localStorage__"),t===n)return!0}}catch(t){}return!1}))}function Ee(){var t=window.navigator,n=t.languages?[].concat(t.languages):[];return t.language&&n.push(t.language),t.userLanguage&&n.push(t.userLanguage),n.map((function(t){if(t&&t.match(/^[a-z]{2}[-_][A-Z]{2}$/)){var n=t.split(/[-_]/);return{country:n[1],lang:n[0]}}return t&&t.match(/^[a-z]{2}$/)?{lang:t}:null})).filter(Boolean)}function Oe(t,n){t.appendChild(n)}function xe(t,n){return void 0===n&&(n=document),_t(t)?t:"string"==typeof t?n.querySelector(t):void 0}function _e(t,n){void 0===n&&(n=document);var e=xe(t,n);if(e)return e;throw new Error("Can not find element: "+Qt(t))}function je(t){return new K((function(n,e){var r=Qt(t),o=xe(t);if(o)return n(o);if(Yn())return e(new Error("Document is ready and element "+r+" does not exist"));var i=setInterval((function(){return(o=xe(t))?(n(o),void clearInterval(i)):Yn()?(clearInterval(i),e(new Error("Document is ready and element "+r+" does not exist"))):void 0}),10)}))}var Ce,Pe=function(t){function n(){return t.apply(this,arguments)||this}return D(n,t),n}(Kn);function ke(t,n){var e=(n=n||{}).closeOnUnload,r=void 0===e?1:e,o=n.name,i=void 0===o?"":o,u=n.width,c=n.height,a=0,f=0;u&&(window.outerWidth?f=Math.round((window.outerWidth-u)/2)+window.screenX:window.screen.width&&(f=Math.round((window.screen.width-u)/2))),c&&(window.outerHeight?a=Math.round((window.outerHeight-c)/2)+window.screenY:window.screen.height&&(a=Math.round((window.screen.height-c)/2))),delete n.closeOnUnload,delete n.name,u&&c&&(n=L({top:a,left:f,width:u,height:c,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},n));var s,d,l=Object.keys(n).map((function(t){if(null!=n[t])return t+"="+Qt(n[t])})).filter(Boolean).join(",");try{s=window.open(t,i,l)}catch(d){throw new Pe("Can not open popup window - "+(d.stack||d.message))}if(ut(s))throw new Pe("Can not open popup window - blocked");return r&&window.addEventListener("unload",(function(){return s.close()})),s}function Ae(t,n){try{t.document.open(),t.document.write(n),t.document.close()}catch(e){try{t.location="javascript: document.open(); document.write("+JSON.stringify(n)+"); document.close();"}catch(t){}}}function Me(t,n){var e=n.tagName.toLowerCase();if("html"!==e)throw new Error("Expected element to be html, got "+e);for(var r=t.document.documentElement,o=0,i=Cn(r.children);o<i.length;o++)r.removeChild(i[o]);for(var u=0,c=Cn(n.children);u<c.length;u++)r.appendChild(c[u])}function Te(t,n,e){void 0===e&&(e=window.document),t.styleSheet?t.styleSheet.cssText=n:t.appendChild(e.createTextNode(n))}function Ie(t){if((Ce=Ce||new ft).has(t)){var n=Ce.get(t);if(n)return n}var e=new K((function(n,e){t.addEventListener("load",(function(){(function(t){if(function(){for(var t=0;t<ot.length;t++){var n=!1;try{n=ot[t].closed}catch(t){}n&&(it.splice(t,1),ot.splice(t,1))}}(),t&&t.contentWindow)try{ot.push(t.contentWindow),it.push(t)}catch(t){}})(t),n(t)})),t.addEventListener("error",(function(r){t.contentWindow?n(t):e(r)}))}));return Ce.set(t,e),e}function ze(t){return Ie(t).then((function(t){if(!t.contentWindow)throw new Error("Could not find window in iframe");return t.contentWindow}))}function He(t,n,e){void 0===t&&(t="div"),void 0===n&&(n={}),t=t.toLowerCase();var r=document.createElement(t);if(n.style&&Zt(r.style,n.style),n.class&&(r.className=n.class.join(" ")),n.id&&r.setAttribute("id",n.id),n.attributes)for(var o=0,i=Object.keys(n.attributes);o<i.length;o++){var u=i[o];r.setAttribute(u,n.attributes[u])}if(n.styleSheet&&Te(r,n.styleSheet),e&&Oe(e,r),n.html)if("iframe"===t){if(!e||!r.contentWindow)throw new Error("Iframe html can not be written unless container provided and iframe in DOM");Ae(r.contentWindow,n.html)}else r.innerHTML=n.html;return r}function We(t,n){void 0===t&&(t={});var e=t.style||{},r=He("iframe",{attributes:L({allowTransparency:"true"},t.attributes||{}),style:L({backgroundColor:"transparent",border:"none"},e),html:t.html,class:t.class}),o=window.navigator.userAgent.match(/MSIE|Edge/i);return r.hasAttribute("id")||r.setAttribute("id",At()),Ie(r),n&&_e(n).appendChild(r),(t.url||o)&&r.setAttribute("src",t.url||"about:blank"),r}function Ne(t,n,e){return t.addEventListener(n,e),{cancel:function(){t.removeEventListener(n,e)}}}function Re(t,n,e){e=Ut(e);for(var r=0;r<n.length;r++)t.addEventListener(n[r],e);return{cancel:Ut((function(){for(var r=0;r<n.length;r++)t.removeEventListener(n[r],e)}))}}var De=["webkit","moz","ms","o"];function Le(t,n,e){t.style[n]=e;for(var r=On(n),o=0;o<De.length;o++)t.style[""+De[o]+r]=e}var Be=["animationstart","webkitAnimationStart","oAnimationStart","MSAnimationStart"],Fe=["animationend","webkitAnimationEnd","oAnimationEnd","MSAnimationEnd"];function Ue(t,n,e,r){return void 0===r&&(r=1e3),new K((function(o,i){var u=_e(t);if(!u)return o();var c,a,f,s,d=!1;function l(){clearTimeout(c),clearTimeout(a),f.cancel(),s.cancel()}f=Re(u,Be,(function(t){t.target===u&&t.animationName===n&&(clearTimeout(c),t.stopPropagation(),f.cancel(),d=!0,a=setTimeout((function(){l(),o()}),r))})),s=Re(u,Fe,(function(t){if(t.target===u&&t.animationName===n)return l(),"string"==typeof t.animationName&&t.animationName!==n?i("Expected animation name to be "+n+", found "+t.animationName):o()})),Le(u,"animationName",n),c=setTimeout((function(){if(!d)return l(),o()}),200),e&&e(l)}))}function Ve(t){t.style.setProperty("visibility","")}function qe(t){t.style.setProperty("visibility","hidden","important")}function Je(t){t.style.setProperty("display","")}function $e(t){t.style.setProperty("display","none","important")}function Ge(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Ke(t,n,e){var r=Ue(t,n,e);return Je(t),r}function Qe(t,n,e){return Ue(t,n,e).then((function(){$e(t)}))}function Xe(t,n){t.classList.add(n)}function Ye(t,n){t.classList.remove(n)}function Ze(t){return!(t&&t.parentNode&&t.ownerDocument&&t.ownerDocument.documentElement&&t.ownerDocument.documentElement.contains(t))}function tr(t,n){n=Ut(n);var e,r,o,i=!1,u=[],c=function(){i=!0;for(var t=0;t<u.length;t++)u[t].disconnect();e&&e.cancel(),o&&o.removeEventListener("unload",a),r&&Ge(r)},a=function(){i||(n(),c())};if(Ze(t))return a(),{cancel:c};if(window.MutationObserver)for(var f=t.parentElement;f;){var s=new window.MutationObserver((function(){Ze(t)&&a()}));s.observe(f,{childList:!0}),u.push(s),f=f.parentElement}return(r=document.createElement("iframe")).setAttribute("name","__detect_close_"+At()+"__"),r.style.display="none",ze(r).then((function(t){(o=function(t){if(!rt(t))throw new Error("Expected window to be same domain");return t}(t)).addEventListener("unload",a)})),t.appendChild(r),e=hn((function(){Ze(t)&&a()}),1e3),{cancel:c}}function nr(t,n){void 0===n&&(n=window.document);for(var e=0,r=ye("script",t);e<r.length;e++){var o=r[e],i=o.parentNode;if(i){var u=n.createElement("script");u.text=o.textContent,i.replaceChild(u,o)}}}function er(t,n,e){var r=void 0===e?{}:e,o=r.width,i=void 0===o||o,u=r.height,c=void 0===u||u,a=r.interval,f=void 0===a?100:a,s=r.win,d=void 0===s?window:s,l=t.offsetWidth,h=t.offsetHeight,p=!1;n({width:l,height:h});var v,m,w=function(){if(!p&&le(t)){var e=t.offsetWidth,r=t.offsetHeight;(i&&e!==l||c&&r!==h)&&n({width:e,height:r}),l=e,h=r}};return d.addEventListener("resize",w),void 0!==d.ResizeObserver?((v=new d.ResizeObserver(w)).observe(t),m=hn(w,10*f)):void 0!==d.MutationObserver?((v=new d.MutationObserver(w)).observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!1}),m=hn(w,10*f)):m=hn(w,f),{cancel:function(){p=!0,v.disconnect(),window.removeEventListener("resize",w),m.cancel()}}}function rr(t){var n=he();if(n&&"function"==typeof n.getEntries)for(var e=n.getEntries(),r=0;r<e.length;r++){var o=e[r];if(o&&o.name&&0===o.name.indexOf(t)&&"number"==typeof o.duration)return Math.floor(o.duration)}}function or(t){for(;t.parentNode;)t=t.parentNode;return"[object ShadowRoot]"===t.toString()}function ir(t){for(;t.parentNode;)t=t.parentNode;if(or(t))return t}function ur(t){var n=ir(t);if(n&&n.host)return n.host}function cr(t){var n=ur(t);if(!n)throw new Error("Element is not in shadow dom");var e="shadow-slot-"+At(),r=document.createElement("slot");r.setAttribute("name",e),t.appendChild(r);var o=document.createElement("div");return o.setAttribute("slot",e),n.appendChild(o),or(n)?cr(o):o}function ar(t){var n=function(e){return t.removeEventListener("focus",n),e.preventDefault(),t.blur(),!1};t.addEventListener("mousedown",(function(){t.addEventListener("focus",n),setTimeout((function(){t.removeEventListener("focus",n)}),1)}))}function fr(){try{throw new Error("_")}catch(t){return t.stack||""}}var sr="undefined"!=typeof document?document.currentScript:null,dr=Nt((function(){if(sr)return sr;if(sr=function(){try{var t=fr(),n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t),e=n&&n[1];if(!e)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===e)return i}}catch(t){}}())return sr;throw new Error("Can not determine current script")})),lr=At(),hr=Nt((function(){var t;try{t=dr()}catch(t){return lr}var n=t.getAttribute(mt.UID);if(n&&"string"==typeof n)return n;if((n=t.getAttribute(mt.UID+"-auto"))&&"string"==typeof n)return n;if(t.src){var e=qt(JSON.stringify({src:t.src,dataset:t.dataset}));n="uid_"+e.slice(e.length-wt)}else n=At();return t.setAttribute(mt.UID+"-auto",n),n}));function pr(t){var n=t.url,e=t.target,r=t.body,o=t.method,i=void 0===o?"post":o,u=document.createElement("form");if(u.setAttribute("target",e),u.setAttribute("method",i),u.setAttribute("action",n),u.style.display="none",r)for(var c=0,a=Object.keys(r);c<a.length;c++){var f,s=a[c],d=document.createElement("input");d.setAttribute("name",s),d.setAttribute("value",null==(f=r[s])?void 0:f.toString()),u.appendChild(d)}Xn().appendChild(u),u.submit(),Xn().removeChild(u)}function vr(t){var n=t.name,e=t.lifetime,r=void 0===e?12e5:e,o=t.stickySessionId;return Bt(vr,(function(){var t,e="__"+n+"_storage__",i=At();function u(n){var r,o=Se();if(t&&(r=t),!r&&o){var u=window.localStorage.getItem(e);u&&(r=JSON.parse(u))}r||(r=Mt()[e]),r||(r={id:i}),r.id||(r.id=i),t=r;var c=n(r);return o?window.localStorage.setItem(e,JSON.stringify(r)):Mt()[e]=r,t=null,c}function c(){return u((function(t){return t.id}))}function a(t){return u((function(n){var e=n.__session__,i=Date.now();return e&&i-e.created>r&&(e=null),e||(e={guid:o||At(),created:i}),n.__session__=e,t(e)}))}return{getState:u,getID:c,isStateFresh:function(){return c()===i},getSessionState:function(t){return a((function(n){return n.state=n.state||{},t(n.state)}))},getSessionID:function(){return a((function(t){return t.guid}))}}}),[{name:n,lifetime:r}])}function mr(){return vr({name:"belter_experiment"})}function wr(t){return mr().getSessionState((function(n){return n.loggedBeacons=n.loggedBeacons||[],-1===n.loggedBeacons.indexOf(t)&&(n.loggedBeacons.push(t),!0)}))}function yr(t){return Math.floor(Math.random()*t)}function gr(t){var n,e=t.name,r=t.sample,o=void 0===r?50:r,i=t.logTreatment,u=void 0===i?Ft:i,c=t.logCheckpoint,a=void 0===c?Ft:c,f=t.sticky,s=void 0===f||f?function(t){return mr().getState((function(n){return n.throttlePercentiles=n.throttlePercentiles||{},n.throttlePercentiles[t]=n.throttlePercentiles[t]||yr(100),n.throttlePercentiles[t]}))}(e):yr(100),d=e+"_"+(n=s<o?"test":o>=50||o<=s&&s<2*o?"control":"throttle"),l=!1,h=!1;try{window.localStorage&&window.localStorage.getItem(e)&&(h=!0)}catch(t){}var p={isEnabled:function(){return"test"===n||h},isDisabled:function(){return"test"!==n&&!h},getTreatment:function(){return d},log:function(t,n){return void 0===n&&(n={}),l?(wr(d+"_"+JSON.stringify(n))&&u({name:e,treatment:d,payload:n,throttle:s}),wr(d+"_"+t+"_"+JSON.stringify(n))&&a({name:e,treatment:d,checkpoint:t,payload:n,throttle:s}),p):p},logStart:function(t){return void 0===t&&(t={}),l=!0,p.log("start",t)},logComplete:function(t){return void 0===t&&(t={}),p.log("complete",t)}};return p}function br(t){var n=t.name,e=t.version,r=void 0===e?"latest":e,o=Mt(),i="__"+n+"__"+r+"_global__",u=o[i]=o[i]||{};return{get:function(t,n){return n=n||{},u[t]=u[t]||n}}}var Sr=[];function Er(t){var n=t.url,e=t.method,r=void 0===e?"get":e,o=t.headers,i=void 0===o?{}:o,u=t.json,c=t.data,a=t.body,f=t.win,s=void 0===f?window:f,d=t.timeout,l=void 0===d?0:d;return new K((function(t,e){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={},f=0,d=Object.keys(i);f<d.length;f++){var h=d[f];o[h.toLowerCase()]=i[h]}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<Sr.length;p++)for(var v=(0,Sr[p])(),m=0,w=Object.keys(v);m<w.length;m++){var y=w[m];o[y.toLowerCase()]=v[y]}var g=new s.XMLHttpRequest;for(var b in g.addEventListener("load",(function(){var o=function(t){void 0===t&&(t="");for(var n={},e=0,r=t.trim().split("\n");e<r.length;e++){var o=r[e].split(":"),i=o[0],u=o.slice(1);n[i.toLowerCase()]=u.join(":").trim()}return n}(this.getAllResponseHeaders());if(!this.status)return e(new Error("Request to "+r.toLowerCase()+" "+n+" 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 e(new Error("Invalid json: "+this.responseText+"."))}return t({status:this.status,headers:o,body:c})}),!1),g.addEventListener("error",(function(t){e(new Error("Request to "+r.toLowerCase()+" "+n+" failed: "+t.toString()+"."))}),!1),g.open(r,n,!0),o)o.hasOwnProperty(b)&&g.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("&")),g.timeout=l,g.ontimeout=function(){e(new Error("Request to "+r.toLowerCase()+" "+n+" has timed out"))},g.send(a)}))}function Or(t){Sr.push(t)}var xr=!0;function _r(t,n,e){e.value=Nt(e.value,{name:n,thisNamespace:!0})}function jr(t,n,e){e.value=Lt(e.value,{name:n})}function Cr(t){return"string"==typeof t&&/^[0-9]+%$/.test(t)}function Pr(t){return"string"==typeof t&&/^[0-9]+px$/.test(t)}function kr(t){if("number"==typeof t)return t;var n=t.match(/^([0-9]+)(px|%)$/);if(!n)throw new Error("Could not match css value from "+t);return parseInt(n[1],10)}function Ar(t){return kr(t)+"px"}function Mr(t){return"number"==typeof t?Ar(t):Cr(t)?t:Ar(t)}function Tr(t,n){return parseInt(t*kr(n)/100,10)}function Ir(t,n){if("number"==typeof t)return t;if(Cr(t))return Tr(n,t);if(Pr(t))return kr(t);throw new Error("Can not normalize dimension: "+t)}function zr(t,n){var e=(void 0===n?{}:n).timeout,r=void 0===e?5e3:e,o=[],i=[];return new K((function(n,e){var u=setTimeout((function(){o.length&&e(new Error("Expected "+o[0].name+" to be called in "+r+"ms")),i.length&&e(new Error("Expected "+i[0].name+" promise to complete in "+r+"ms"))}),r),c=function(t,n){void 0===n&&(n=Ft);var e={name:t,handler:n};return o.push(e),function(){for(var r=this,u=arguments.length,c=new Array(u),a=0;a<u;a++)c[a]=arguments[a];Vn(o,e);var f=Un((function(){var t;return(t=n).call.apply(t,[r].concat(c))})),s=f.result,d=f.error;if(d)throw i.push({name:t,promise:K.asyncReject(d)}),d;return i.push({name:t,promise:K.resolve(s)}),s}},a=function(t,n){return void 0===n&&(n=Ft),function(){var e;i.push({name:t,promise:K.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(e=n).call.apply(e,[this].concat(o))}},f=function(t,n){void 0===n&&(n=Ft);var e={name:t,handler:n};return o.push(e),function(){for(var r=this,u=arguments.length,c=new Array(u),a=0;a<u;a++)c[a]=arguments[a];Vn(o,e);var f=Un((function(){var t;return(t=n).call.apply(t,[r].concat(c))})),s=f.result,d=f.error;if(d)throw d;return i.push({name:t,promise:K.resolve(s).then((function(){throw new Error("Expected "+t+" to throw an error")}),Ft)}),s}},s=function(){return K.try((function(){if(i.length){var t=i[0];return t.promise.finally((function(){Vn(i,t)})).then(s)}})).then((function(){if(o.length)return K.delay(10).then(s)}))};i.push({name:"wrapPromise handler",promise:K.try((function(){return t({expect:c,avoid:a,expectError:f,error:a,wait:function(){return K.resolve()}})}))}),s().finally((function(){clearTimeout(u)})).then(n,e)}))}}])})); | ||
//# sourceMappingURL=belter.min.js.map |
@@ -36,2 +36,20 @@ import { sfvcScreens } from "./screenHeights"; | ||
} | ||
export function isInstagramWebView(ua) { | ||
if (ua === void 0) { | ||
ua = getUserAgent(); | ||
} | ||
return /Instagram/.test(ua); | ||
} | ||
export function isMetaWebView(ua) { | ||
if (ua === void 0) { | ||
ua = getUserAgent(); | ||
} | ||
return isFacebookWebView(ua) || isInstagramWebView(ua); | ||
} | ||
export function isMetaInAppBrowser(ua) { | ||
if (ua === void 0) { | ||
ua = getUserAgent(); | ||
} | ||
return /IABMV\/1/.test(ua); | ||
} | ||
export function isFirefox(ua) { | ||
@@ -38,0 +56,0 @@ if (ua === void 0) { |
@@ -331,6 +331,6 @@ import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; | ||
export var PopupOpenError = function (_ExtendableError) { | ||
_inheritsLoose(PopupOpenError, _ExtendableError); | ||
function PopupOpenError() { | ||
return _ExtendableError.apply(this, arguments) || this; | ||
} | ||
_inheritsLoose(PopupOpenError, _ExtendableError); | ||
return PopupOpenError; | ||
@@ -878,4 +878,4 @@ }(ExtendableError); | ||
export function preventClickFocus(el) { | ||
var onFocus = function onFocus(event) { | ||
el.removeEventListener("focus", onFocus); | ||
var _onFocus = function onFocus(event) { | ||
el.removeEventListener("focus", _onFocus); | ||
event.preventDefault(); | ||
@@ -886,5 +886,5 @@ el.blur(); | ||
el.addEventListener("mousedown", function () { | ||
el.addEventListener("focus", onFocus); | ||
el.addEventListener("focus", _onFocus); | ||
setTimeout(function () { | ||
el.removeEventListener("focus", onFocus); | ||
el.removeEventListener("focus", _onFocus); | ||
}, 1); | ||
@@ -891,0 +891,0 @@ }); |
@@ -102,3 +102,3 @@ import { ZalgoPromise } from "@krakenjs/zalgo-promise/src"; | ||
}; | ||
var wait = function wait() { | ||
var _wait = function wait() { | ||
return ZalgoPromise.try(function () { | ||
@@ -109,7 +109,7 @@ if (promises.length) { | ||
removeFromArray(promises, prom); | ||
}).then(wait); | ||
}).then(_wait); | ||
} | ||
}).then(function () { | ||
if (expected.length) { | ||
return ZalgoPromise.delay(10).then(wait); | ||
return ZalgoPromise.delay(10).then(_wait); | ||
} | ||
@@ -132,3 +132,3 @@ }); | ||
}); | ||
wait().finally(function () { | ||
_wait().finally(function () { | ||
clearTimeout(timer); | ||
@@ -135,0 +135,0 @@ }).then(resolve, reject); |
@@ -1,2 +0,1 @@ | ||
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized"; | ||
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; | ||
@@ -938,3 +937,2 @@ import _wrapNativeSuper from "@babel/runtime/helpers/esm/wrapNativeSuper"; | ||
export var ExtendableError = function (_Error) { | ||
_inheritsLoose(ExtendableError, _Error); | ||
function ExtendableError(message) { | ||
@@ -945,3 +943,3 @@ var _this6; | ||
if (typeof Error.captureStackTrace === "function") { | ||
Error.captureStackTrace(_assertThisInitialized(_this6), _this6.constructor); | ||
Error.captureStackTrace(_this6, _this6.constructor); | ||
} else { | ||
@@ -952,2 +950,3 @@ _this6.stack = new Error(message).stack; | ||
} | ||
_inheritsLoose(ExtendableError, _Error); | ||
return ExtendableError; | ||
@@ -954,0 +953,0 @@ }(_wrapNativeSuper(Error)); |
{ | ||
"name": "@krakenjs/belter", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "Utilities.", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"webpack": "babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/webpack --progress", | ||
"test": "npm run format:check && npm run lint && npm run flow-typed && npm run flow && npm run vitest && npm run karma", | ||
"test": "npm run format:check && npm run lint && npm run flow && npm run vitest && npm run karma", | ||
"build": "npm run test && npm run babel && npm run webpack", | ||
@@ -19,0 +19,0 @@ "clean": "rimraf dist coverage", |
@@ -48,2 +48,14 @@ /* @flow */ | ||
export function isInstagramWebView(ua?: string = getUserAgent()): boolean { | ||
return /Instagram/.test(ua); | ||
} | ||
export function isMetaWebView(ua?: string = getUserAgent()): boolean { | ||
return isFacebookWebView(ua) || isInstagramWebView(ua); | ||
} | ||
export function isMetaInAppBrowser(ua?: string = getUserAgent()): boolean { | ||
return /IABMV\/1/.test(ua); | ||
} | ||
export function isFirefox(ua?: string = getUserAgent()): boolean { | ||
@@ -50,0 +62,0 @@ return /Firefox/i.test(ua); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
641916
10079