(globalThis.webpackChunknotion_next=globalThis.webpackChunknotion_next||[]).push([[38191,58234],{12610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkParam=t.NetworkDefault=t.Endpoint=void 0,t.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"},t.NetworkDefault={[t.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[t.Endpoint._initialize]:"https://featureassets.org/v1",[t.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"},t.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}},14358:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=t.EXCEPTION_ENDPOINT=void 0;t.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";const o="[Statsig] UnknownError";function i(e){return e instanceof Error?e:"string"==typeof e?new Error(e):new Error("An unknown error occurred.")}function a(e){if(!e)return{};const t={};return Object.entries(e).forEach((([e,n])=>{switch(typeof n){case"number":case"bigint":case"boolean":t[String(e)]=n;break;case"string":n.length<50?t[String(e)]=n:t[String(e)]="set";break;case"object":"environment"===e?t.environment=n:"networkConfig"===e?t.networkConfig=n:t[String(e)]=null!=n?"set":"unset"}})),t}t.ErrorBoundary=class{constructor(e,t,n,r){this._sdkKey=e,this._options=t,this._emitter=n,this._lastSeenError=r,this._seen=new Set}wrap(e){try{const t=e;(function(e){const t=new Set;let n=Object.getPrototypeOf(e);for(;n&&n!==Object.prototype;)Object.getOwnPropertyNames(n).filter((e=>"function"==typeof(null==n?void 0:n[e]))).forEach((e=>t.add(e))),n=Object.getPrototypeOf(n);return Array.from(t)})(t).forEach((n=>{const r=t[n];"$EB"in r||(t[n]=(...t)=>this._capture(n,(()=>r.apply(e,t))),t[n].$EB=!0)}))}catch(t){this._onError("eb:wrap",t)}}logError(e,t){this._onError(e,t)}getLastSeenErrorAndReset(){const e=this._lastSeenError;return this._lastSeenError=void 0,null!=e?e:null}attachErrorIfNoneExists(e){this._lastSeenError||(this._lastSeenError=i(e))}_capture(e,t){try{const n=t();return n&&n instanceof Promise?n.catch((t=>this._onError(e,t))):n}catch(n){return this._onError(e,n),null}}_onError(e,s){try{n(668024).Log.warn(`Caught error in ${e}`,{error:s});(()=>r(this,void 0,void 0,(function*(){var r,l,u,c,d,f,p;const h=s||Error(o),v=h instanceof Error,g=v?h.name:"No Name",m=i(h);if(this._lastSeenError=m,this._seen.has(g))return;if(this._seen.add(g),null===(l=null===(r=this._options)||void 0===r?void 0:r.networkConfig)||void 0===l?void 0:l.preventAllNetworkTraffic)return void(null===(u=this._emitter)||void 0===u||u.call(this,{name:"error",error:s,tag:e}));const y=n(810686).SDKType._get(this._sdkKey),_=n(146512).StatsigMetadataProvider.get(),b=v?h.stack:function(e){try{return JSON.stringify(e)}catch(r){return o}}(h),w=Object.assign({tag:e,exception:g,info:b,statsigOptions:a(this._options)},Object.assign(Object.assign({},_),{sdkType:y})),S=null!==(f=null===(d=null===(c=this._options)||void 0===c?void 0:c.networkConfig)||void 0===d?void 0:d.networkOverrideFunc)&&void 0!==f?f:fetch;yield S(t.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(y),"STATSIG-SDK-VERSION":String(_.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(w)}),null===(p=this._emitter)||void 0===p||p.call(this,{name:"error",error:s,tag:e})})))().then((()=>{})).catch((()=>{}))}catch(l){}}}},18107:(e,t,n)=>{"use strict";var r=n(746518),o=n(748981),i=n(326198),a=n(991291),s=n(206469);r({target:"Array",proto:!0},{at:function(e){var t=o(this),n=i(t),r=a(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}}),s("at")},32626:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StableID=void 0;const r=()=>n(894681),o=()=>n(601638),i={},a={},s={};function l(e){return`statsig.stable_id.${(0,r()._getStorageKey)(e)}`}function u(e,t){const r=l(t);try{(0,o()._setObjectInStorage)(r,e)}catch(i){n(668024).Log.warn("Failed to save StableID to storage")}}function c(e,t){if(!a[t]||!document)return;const n=new Date;n.setFullYear(n.getFullYear()+1),document.cookie=`${d(t)}=${encodeURIComponent(e)}; expires=${n.toUTCString()}; path=/`}function d(e){return`statsig.stable_id.${(0,r()._getStorageKey)(e)}`}t.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:e=>{if(s[e])return null;if(null!=i[e])return i[e];let t=null;return t=function(e){if(!a[e]||null==(0,n(600414)._getDocumentSafe)())return null;const t=document.cookie.split(";");for(const n of t){const[t,r]=n.trim().split("=");if(t===d(e))return decodeURIComponent(r)}return null}(e),null!=t?(i[e]=t,u(t,e),t):(t=function(e){const t=l(e);return(0,o()._getObjectFromStorage)(t)}(e),null==t&&(t=(0,n(537047).getUUID)()),u(t,e),c(t,e),i[e]=t,t)},setOverride:(e,t)=>{i[t]=e,u(e,t),c(e,t)},_setCookiesEnabled:(e,t)=>{a[e]=t},_setDisabled:(e,t)=>{s[e]=t}}},36944:(e,t,n)=>{var r=n(873893)("round");e.exports=r},37253:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._createLayerParameterExposure=t._createConfigExposure=t._mapExposures=t._createGateExposure=t._isExposureEvent=void 0;const n="statsig::config_exposure",r="statsig::gate_exposure",o="statsig::layer_exposure",i=(e,t,n,r,o)=>(n.bootstrapMetadata&&(r.bootstrapMetadata=n.bootstrapMetadata),{eventName:e,user:t,value:null,metadata:s(n,r),secondaryExposures:o,time:Date.now()});t._isExposureEvent=({eventName:e})=>e===r||e===n||e===o;function a(e,t){return e.map((e=>"string"==typeof e?(null!=t?t:{})[e]:e)).filter((e=>null!=e))}t._createGateExposure=(e,t,n)=>{var o,s,l;const u={gate:t.name,gateValue:String(t.value),ruleID:t.ruleID};return null!=(null===(o=t.__evaluation)||void 0===o?void 0:o.version)&&(u.configVersion=t.__evaluation.version),i(r,e,t.details,u,a(null!==(l=null===(s=t.__evaluation)||void 0===s?void 0:s.secondary_exposures)&&void 0!==l?l:[],n))},t._mapExposures=a;t._createConfigExposure=(e,t,r)=>{var o,s,l,u;const c={config:t.name,ruleID:t.ruleID};return null!=(null===(o=t.__evaluation)||void 0===o?void 0:o.version)&&(c.configVersion=t.__evaluation.version),null!=(null===(s=t.__evaluation)||void 0===s?void 0:s.passed)&&(c.rulePassed=String(t.__evaluation.passed)),i(n,e,t.details,c,a(null!==(u=null===(l=t.__evaluation)||void 0===l?void 0:l.secondary_exposures)&&void 0!==u?u:[],r))};t._createLayerParameterExposure=(e,t,n,r)=>{var s,l,u,c,d,f;const p=t.__evaluation,h=!0===(null===(s=null==p?void 0:p.explicit_parameters)||void 0===s?void 0:s.includes(n));let v="",g=null!==(l=null==p?void 0:p.undelegated_secondary_exposures)&&void 0!==l?l:[];h&&(v=null!==(u=p.allocated_experiment_name)&&void 0!==u?u:"",g=p.secondary_exposures);const m=null===(c=t.__evaluation)||void 0===c?void 0:c.parameter_rule_ids,y={config:t.name,parameterName:n,ruleID:null!==(d=null==m?void 0:m[n])&&void 0!==d?d:t.ruleID,allocatedExperiment:v,isExplicitParameter:String(h)};return null!=(null===(f=t.__evaluation)||void 0===f?void 0:f.version)&&(y.configVersion=t.__evaluation.version),i(o,e,t.details,y,a(g,r))};const s=(e,t)=>(t.reason=e.reason,e.lcut&&(t.lcut=String(e.lcut)),e.receivedAt&&(t.receivedAt=String(e.receivedAt)),t)},38798:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>i,ob:()=>a});var r=n(296540);n(304146);var o="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?r.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=r.createContext(null)),i=(o.Consumer,o.Provider),a=o},44363:(e,t,n)=>{"use strict";e.exports=n(322799)},54387:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},79999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeParamStoreGetter=void 0;const r=()=>n(636978),o={disableExposureLog:!0};function i(e){return null==e||!1===e.disableExposureLog}function a(e,t){return null!=t&&!(0,r()._isTypeMatch)(e,t)}t._makeParamStoreGetter=function(e,t,n){return(s,l)=>{if(null==t)return l;const u=t[s];if(null==u||null!=l&&(0,r()._typeOf)(l)!==u.param_type)return l;switch(u.ref_type){case"static":return function(e,t){return e.value}(u);case"gate":return function(e,t,n){return e.getFeatureGate(t.gate_name,i(n)?void 0:o).value?t.pass_value:t.fail_value}(e,u,n);case"dynamic_config":return function(e,t,n,r){const s=e.getDynamicConfig(t.config_name,i(r)?void 0:o).get(t.param_name);return a(s,n)?n:s}(e,u,l,n);case"experiment":return function(e,t,n,r){const s=e.getExperiment(t.experiment_name,i(r)?void 0:o).get(t.param_name);return a(s,n)?n:s}(e,u,l,n);case"layer":return function(e,t,n,r){const s=e.getLayer(t.layer_name,i(r)?void 0:o).get(t.param_name);return a(s,n)?n:s}(e,u,l,n);default:return l}}}},81570:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getFullUserHash=t._normalizeUser=void 0;t._normalizeUser=function(e,t,r){try{const n=JSON.parse(JSON.stringify(e));return null!=t&&null!=t.environment?n.statsigEnvironment=t.environment:null!=r&&(n.statsigEnvironment={tier:r}),n}catch(o){return n(668024).Log.error("Failed to JSON.stringify user"),{statsigEnvironment:void 0}}},t._getFullUserHash=function(e){return e?(0,n(483918)._DJB2Object)(e):null}},84351:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClientBase=void 0,n(843509);const o=()=>n(668024),i=()=>n(32626),a=()=>n(601638);t.StatsigClientBase=class{constructor(e,t,r,s){var l,u,c,d;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};const f=this.$emt.bind(this);null!=(null==s?void 0:s.logLevel)&&(o().Log.level=s.logLevel),(null==s?void 0:s.disableStorage)&&a().Storage._setDisabled(!0),(null==s?void 0:s.initialSessionID)&&n(339839).StatsigSession.overrideInitialSessionID(s.initialSessionID,e),(null==s?void 0:s.storageProvider)&&a().Storage._setProvider(s.storageProvider),(null==s?void 0:s.enableCookies)&&i().StableID._setCookiesEnabled(e,s.enableCookies),(null==s?void 0:s.disableStableID)&&i().StableID._setDisabled(e,!0),this._sdkKey=e,this._options=null!=s?s:{},this._memoCache={},this.overrideAdapter=null!==(l=null==s?void 0:s.overrideAdapter)&&void 0!==l?l:null,this._logger=new(n(85434).EventLogger)(e,f,r,s),this._errorBoundary=new(n(14358).ErrorBoundary)(e,s,f),this._errorBoundary.wrap(this),this._errorBoundary.wrap(t),this._errorBoundary.wrap(this._logger),r.setErrorBoundary(this._errorBoundary),this.dataAdapter=t,this.dataAdapter.attach(e,s,r),this.storageProvider=a().Storage,null===(d=null===(c=null===(u=this.overrideAdapter)||void 0===u?void 0:u.loadFromStorage)||void 0===c?void 0:c.call(u))||void 0===d||d.catch((e=>this._errorBoundary.logError("OA::loadFromStorage",e))),this._primeReadyRipcord(),function(e,t){var r;if((0,n(600414)._isServerEnv)())return;const i=(0,n(843509)._getStatsigGlobal)(),a=null!==(r=i.instances)&&void 0!==r?r:{},s=t;null!=a[e]&&o().Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys.");a[e]=s,i.firstInstance||(i.firstInstance=s);i.instances=a,__STATSIG__=i}(e,this)}updateRuntimeOptions(e){e.loggingEnabled?(this._options.loggingEnabled=e.loggingEnabled,this._logger.setLoggingEnabled(e.loggingEnabled)):null!=e.disableLogging&&(this._options.disableLogging=e.disableLogging,this._logger.setLoggingEnabled(e.disableLogging?"disabled":"browser-only")),null!=e.disableStorage&&(this._options.disableStorage=e.disableStorage,a().Storage._setDisabled(e.disableStorage)),null!=e.enableCookies&&(this._options.enableCookies=e.enableCookies,i().StableID._setCookiesEnabled(this._sdkKey,e.enableCookies)),e.logEventCompressionMode?this._logger.setLogEventCompressionMode(e.logEventCompressionMode):e.disableCompression&&this._logger.setLogEventCompressionMode(n(647754).LogEventCompressionMode.Disabled)}flush(){return this._logger.flush()}shutdown(){return r(this,void 0,void 0,(function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()}))}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){if(this._listeners[e]){const n=this._listeners[e].indexOf(t);-1!==n&&this._listeners[e].splice(n,1)}}$on(e,t){t.__isInternal=!0,this.on(e,t)}$emt(e){var t;const n=t=>{try{t(e)}catch(n){if(!0===t.__isInternal)return void this._errorBoundary.logError(`__emit:${e.name}`,n);o().Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",e)}};this._listeners[e.name]&&this._listeners[e.name].forEach((e=>n(e))),null===(t=this._listeners["*"])||void 0===t||t.forEach(n)}_setStatus(e,t){this.loadingStatus=e,this._memoCache={},this.$emt({name:"values_updated",status:e,values:t})}_enqueueExposure(e,t,n){!0!==(null==n?void 0:n.disableExposureLog)?this._logger.enqueue(t):this._logger.incrementNonExposureCount(e)}_memoize(e,t){return(r,o)=>{if(this._options.disableEvaluationMemoization)return t(r,o);const i=(0,n(240843).createMemoKey)(e,r,o);return i?(i in this._memoCache||(Object.keys(this._memoCache).length>=3e3&&(this._memoCache={}),this._memoCache[i]=t(r,o)),this._memoCache[i]):t(r,o)}}}},85434:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.EventLogger=void 0;const o=()=>n(668024),i=()=>n(12610),a=()=>n(600414),s=()=>n(647754),l=()=>n(601638),u=()=>n(592701),c={},d="startup",f="gained_focus";class p{static _safeFlushAndForget(e){var t;null===(t=c[e])||void 0===t||t.flush().catch((()=>{}))}static _safeRetryFailedLogs(e){var t;null===(t=c[e])||void 0===t||t._retryFailedLogs(f)}constructor(e,t,r,a){var l,u;this._sdkKey=e,this._emitter=t,this._network=r,this._options=a,this._queue=[],this._lastExposureTimeMap={},this._nonExposedChecks={},this._hasRunQuickFlush=!1,this._creationTime=Date.now(),this._loggingEnabled=null!==(l=null==a?void 0:a.loggingEnabled)&&void 0!==l?l:!0===(null==a?void 0:a.disableLogging)?s().LoggingEnabledOption.disabled:s().LoggingEnabledOption.browserOnly,(null==a?void 0:a.loggingEnabled)&&void 0!==a.disableLogging&&o().Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging."),this._maxQueueSize=null!==(u=null==a?void 0:a.loggingBufferMaxSize)&&void 0!==u?u:100;const c=null==a?void 0:a.networkConfig;this._logEventUrlConfig=new(n(188873).UrlConfiguration)(i().Endpoint._rgstr,null==c?void 0:c.logEventUrl,null==c?void 0:c.api,null==c?void 0:c.logEventFallbackUrls)}setLogEventCompressionMode(e){this._network.setLogEventCompressionMode(e)}setLoggingEnabled(e){this._loggingEnabled=e}enqueue(e){this._shouldLogEvent(e)&&(this._normalizeAndAppendEvent(e),this._quickFlushIfNeeded(),this._queue.length>this._maxQueueSize&&p._safeFlushAndForget(this._sdkKey))}incrementNonExposureCount(e){var t;const n=null!==(t=this._nonExposedChecks[e])&&void 0!==t?t:0;this._nonExposedChecks[e]=n+1}reset(){this._lastExposureTimeMap={}}start(){var e;const t=(0,a()._isServerEnv)();t&&"always"!==(null===(e=this._options)||void 0===e?void 0:e.loggingEnabled)||(c[this._sdkKey]=this,t||(0,u()._subscribeToVisiblityChanged)((e=>{"background"===e?p._safeFlushAndForget(this._sdkKey):"foreground"===e&&p._safeRetryFailedLogs(this._sdkKey)})),this._retryFailedLogs(d),this._startBackgroundFlushInterval())}stop(){return r(this,void 0,void 0,(function*(){this._flushIntervalId&&(clearInterval(this._flushIntervalId),this._flushIntervalId=null),delete c[this._sdkKey],yield this.flush()}))}flush(){return r(this,void 0,void 0,(function*(){if(this._appendAndResetNonExposedChecks(),0===this._queue.length)return;const e=this._queue;this._queue=[],yield this._sendEvents(e)}))}_quickFlushIfNeeded(){this._hasRunQuickFlush||(this._hasRunQuickFlush=!0,Date.now()-this._creationTime>200||setTimeout((()=>p._safeFlushAndForget(this._sdkKey)),200))}_shouldLogEvent(e){var t;if("always"!==(null===(t=this._options)||void 0===t?void 0:t.loggingEnabled)&&(0,a()._isServerEnv)())return!1;if(!(0,n(37253)._isExposureEvent)(e))return!0;const r=e.user?e.user:{statsigEnvironment:void 0},o=(0,n(894681)._getUserStorageKey)(this._sdkKey,r),i=e.metadata?e.metadata:{},s=[e.eventName,o,i.gate,i.config,i.ruleID,i.allocatedExperiment,i.parameterName,String(i.isExplicitParameter),i.reason].join("|"),l=this._lastExposureTimeMap[s],u=Date.now();return!(l&&u-l<6e5)&&(Object.keys(this._lastExposureTimeMap).length>1e3&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[s]=u,!0)}_sendEvents(e){var t,n;return r(this,void 0,void 0,(function*(){if("disabled"===this._loggingEnabled)return this._saveFailedLogsToStorage(e),!1;try{const r=(0,u()._isUnloading)()&&this._network.isBeaconSupported()&&null==(null===(n=null===(t=this._options)||void 0===t?void 0:t.networkConfig)||void 0===n?void 0:n.networkOverrideFunc);this._emitter({name:"pre_logs_flushed",events:e});return(r?yield this._sendEventsViaBeacon(e):yield this._sendEventsViaPost(e)).success?(this._emitter({name:"logs_flushed",events:e}),!0):(o().Log.warn("Failed to flush events."),this._saveFailedLogsToStorage(e),!1)}catch(r){return o().Log.warn("Failed to flush events."),!1}}))}_sendEventsViaPost(e){var t;return r(this,void 0,void 0,(function*(){const n=yield this._network.post(this._getRequestData(e)),r=null!==(t=null==n?void 0:n.code)&&void 0!==t?t:-1;return{success:r>=200&&r<300}}))}_sendEventsViaBeacon(e){return r(this,void 0,void 0,(function*(){return{success:yield this._network.beacon(this._getRequestData(e))}}))}_getRequestData(e){return{sdkKey:this._sdkKey,data:{events:e},urlConfig:this._logEventUrlConfig,retries:3,isCompressable:!0,params:{[i().NetworkParam.EventCount]:String(e.length)},credentials:"same-origin"}}_saveFailedLogsToStorage(e){for(;e.length>500;)e.shift();const t=this._getStorageKey();try{(0,l()._setObjectInStorage)(t,e)}catch(n){o().Log.warn("Unable to save failed logs to storage")}}_retryFailedLogs(e){const t=this._getStorageKey();(()=>r(this,void 0,void 0,(function*(){l().Storage.isReady()||(yield l().Storage.isReadyResolver());const n=(0,l()._getObjectFromStorage)(t);if(!n)return;e===d&&l().Storage.removeItem(t);(yield this._sendEvents(n))&&e===f&&l().Storage.removeItem(t)})))().catch((()=>{o().Log.warn("Failed to flush stored logs")}))}_getStorageKey(){return`statsig.failed_logs.${(0,n(483918)._DJB2)(this._sdkKey)}`}_normalizeAndAppendEvent(e){e.user&&(e.user=Object.assign({},e.user),delete e.user.privateAttributes);const t={},n=this._getCurrentPageUrl();n&&(t.statsigMetadata={currentPage:n});const r=Object.assign(Object.assign({},e),t);o().Log.debug("Enqueued Event:",r),this._queue.push(r)}_appendAndResetNonExposedChecks(){0!==Object.keys(this._nonExposedChecks).length&&(this._normalizeAndAppendEvent({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:Object.assign({},this._nonExposedChecks)}}),this._nonExposedChecks={})}_getCurrentPageUrl(){var e;if(!1!==(null===(e=this._options)||void 0===e?void 0:e.includeCurrentPageUrlWithEvents))return(0,a()._getCurrentPageUrlSafe)()}_startBackgroundFlushInterval(){var e,t;const n=null!==(t=null===(e=this._options)||void 0===e?void 0:e.loggingIntervalMs)&&void 0!==t?t:1e4,r=setInterval((()=>{const e=c[this._sdkKey];e&&e._flushIntervalId===r?p._safeFlushAndForget(this._sdkKey):clearInterval(r)}),n);this._flushIntervalId=r}}t.EventLogger=p},87677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=()=>n(636978);t.default=class{constructor(e){this._sdkKey=e,this._rawValues=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings=new Set}reset(){this._values=null,this._rawValues=null,this._source="Loading",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null}finalize(){this._values||(this._source="NoValues")}getValues(){return this._rawValues?(0,r()._typedJsonParse)(this._rawValues,"has_updates","EvaluationStoreValues"):null}setValues(e,t){var n;if(!e)return!1;const o=(0,r()._typedJsonParse)(e.data,"has_updates","EvaluationResponse");return null!=o&&(this._source=e.source,!0!==(null==o?void 0:o.has_updates)||(this._rawValues=e.data,this._lcut=o.time,this._receivedAt=e.receivedAt,this._values=o,this._bootstrapMetadata=this._extractBootstrapMetadata(e.source,o),e.source&&o.user&&this._setWarningState(t,o),r().SDKFlags.setFlags(this._sdkKey,null!==(n=o.sdk_flags)&&void 0!==n?n:{})),!0)}getWarnings(){if(0!==this._warnings.size)return Array.from(this._warnings)}getGate(e){var t;return this._getDetailedStoreResult(null===(t=this._values)||void 0===t?void 0:t.feature_gates,e)}getConfig(e){var t;return this._getDetailedStoreResult(null===(t=this._values)||void 0===t?void 0:t.dynamic_configs,e)}getLayer(e){var t;return this._getDetailedStoreResult(null===(t=this._values)||void 0===t?void 0:t.layer_configs,e)}getParamStore(e){var t;return this._getDetailedStoreResult(null===(t=this._values)||void 0===t?void 0:t.param_stores,e)}getSource(){return this._source}getExposureMapping(){var e;return null===(e=this._values)||void 0===e?void 0:e.exposures}_extractBootstrapMetadata(e,t){if("Bootstrap"!==e)return null;const n={};return t.user&&(n.user=t.user),t.sdkInfo&&(n.generatorSDKInfo=t.sdkInfo),n.lcut=t.time,n}_getDetailedStoreResult(e,t){let n=null;return e&&(n=e[t]?e[t]:e[(0,r()._DJB2)(t)]),{result:n,details:this._getDetails(null==n)}}_setWarningState(e,t){var n,o;const i=r().StableID.get(this._sdkKey);if((null===(n=e.customIDs)||void 0===n?void 0:n.stableID)===i||!(null===(o=e.customIDs)||void 0===o?void 0:o.stableID)&&!i){if("user"in t){const n=t.user;(0,r()._getFullUserHash)(e)!==(0,r()._getFullUserHash)(n)&&this._warnings.add("PartialUserMatch")}}else this._warnings.add("StableIDMismatch")}getCurrentSourceDetails(){if("Uninitialized"===this._source||"NoValues"===this._source)return{reason:this._source};const e={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};return this._warnings.size>0&&(e.warnings=Array.from(this._warnings)),e}_getDetails(e){var t,n;const r=this.getCurrentSourceDetails();let o=r.reason;const i=null!==(t=r.warnings)&&void 0!==t?t:[];if("Bootstrap"===this._source&&i.length>0&&(o+=i[0]),"Uninitialized"!==o&&"NoValues"!==o){o=`${o}:${e?"Unrecognized":"Recognized"}`}const a="Bootstrap"===this._source&&null!==(n=this._bootstrapMetadata)&&void 0!==n?n:void 0;return a&&(r.bootstrapMetadata=a),Object.assign(Object.assign({},r),{reason:o})}}},94469:(e,t,n)=>{var r=Math.max,o=Math.min;e.exports=function(e,t,i){var a=null==e?0:e.length;if(!a)return-1;var s=a-1;return void 0!==i&&(s=n(761489)(i),s=i<0?r(a+s,0):o(s,a-1)),n(2523)(e,n(315389)(t,3),s,!0)}},99652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},105138:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClient=void 0;const i=()=>n(907686);t.StatsigClient=i().default,o(n(636978),t);const a=Object.assign((0,n(636978)._getStatsigGlobal)(),{StatsigClient:i().default});t.default=a},124184:(e,t,n)=>{"use strict";n.d(t,{HM:()=>s,JF:()=>l,bN:()=>c,yU:()=>u});var r=()=>n(331635),o=n(296540),i=n(569193),a=n(687683);function s(e){(0,i.V1)(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}var l=(0,r().Cl)((0,r().Cl)({},a.JF),{textComponent:o.Fragment});function u(e){return function(t){return e(o.Children.toArray(t))}}function c(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}v(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,n)}(e,o,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var o,i,a,u;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=l(e))>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=c.bind(r);return o.listener=n,r.wrapFn=o,o}function f(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var u=l.length,c=h(l,u);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},146512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigMetadataProvider=t.SDK_VERSION=void 0,t.SDK_VERSION="3.17.1";let n={sdkVersion:t.SDK_VERSION,sdkType:"js-mono"};t.StatsigMetadataProvider={get:()=>n,add:e=>{n=Object.assign(Object.assign({},n),e)}}},150104:(e,t,n)=>{var r=()=>n(353661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r()),n}o.Cache=r(),e.exports=o},169982:(e,t,n)=>{"use strict";e.exports=n(307463)},183673:e=>{e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t{"use strict";var r=()=>n(732268);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){r().isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var i=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),c=["%","/","?",";","#"].concat(u),d=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=()=>n(747186);function y(e,t,n){if(e&&r().isObject(e)&&e instanceof o)return e;var i=new o;return i.parse(e,t,n),i}o.prototype.parse=function(e,t,o){if(!r().isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),l=-1!==a&&a127?I+="x":I+=T[j];if(!I.match(f)){var R=N.slice(0,O),M=N.slice(O+1),F=T.match(p);F&&(R.push(F[1]),M.unshift(F[2])),M.length&&(_="/"+M.join(".")+_),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),D||(this.hostname=n(361270).toASCII(this.hostname));var z=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+z,this.href+=this.host,D&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!h[S])for(O=0,L=u.length;O0)&&n.host.split("@"))&&(n.auth=D.shift(),n.host=n.hostname=D.shift());return n.search=e.search,n.query=e.query,r().isNull(n.pathname)&&r().isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var x=k.slice(-1)[0],C=(n.host||e.host||k.length>1)&&("."===x||".."===x)||""===x,O=0,P=k.length;P>=0;P--)"."===(x=k[P])?k.splice(P,1):".."===x?(k.splice(P,1),O++):O&&(k.splice(P,1),O--);if(!w&&!S)for(;O--;O)k.unshift("..");!w||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),C&&"/"!==k.join("/").substr(-1)&&k.push("");var D,N=""===k[0]||k[0]&&"/"===k[0].charAt(0);E&&(n.hostname=n.host=N?"":k.length?k.shift():"",(D=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=D.shift(),n.host=n.hostname=D.shift()));return(w=w||n.host&&k.length)&&!N&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),r().isNull(n.pathname)&&r().isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},188873:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlConfiguration=void 0;const r=()=>n(12610),o={[r().Endpoint._initialize]:"i",[r().Endpoint._rgstr]:"e",[r().Endpoint._download_config_specs]:"d"};t.UrlConfiguration=class{constructor(e,t,n,i){this.customUrl=null,this.fallbackUrls=null,this.endpoint=e,this.endpointDnsKey=o[e],t&&(this.customUrl=t),!t&&n&&(this.customUrl=n.endsWith("/")?`${n}${e}`:`${n}/${e}`),i&&(this.fallbackUrls=i);const a=r().NetworkDefault[e];this.defaultUrl=`${a}/${e}`}getUrl(){var e;return null!==(e=this.customUrl)&&void 0!==e?e:this.defaultUrl}getChecksum(){var e;const t=(null!==(e=this.fallbackUrls)&&void 0!==e?e:[]).sort().join(",");return(0,n(483918)._DJB2)(this.customUrl+t)}}},190031:(e,t)=>{!function(e){var t,n,r,o=String.fromCharCode;function i(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function s(e,t){return o(e>>t&63|128)}function l(e){if(0==(4294967168&e))return o(e);var t="";return 0==(4294965248&e)?t=o(e>>6&31|192):0==(4294901760&e)?(a(e),t=o(e>>12&15|224),t+=s(e,6)):0==(4292870144&e)&&(t=o(e>>18&7|240),t+=s(e,12),t+=s(e,6)),t+=o(63&e|128)}function u(){if(r>=n)throw Error("Invalid byte index");var e=255&t[r];if(r++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function c(){var e,o;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(e=255&t[r],r++,0==(128&e))return e;if(192==(224&e)){if((o=(31&e)<<6|u())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if((o=(15&e)<<12|u()<<6|u())>=2048)return a(o),o;throw Error("Invalid continuation byte")}if(240==(248&e)&&(o=(7&e)<<18|u()<<12|u()<<6|u())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=i(e),n=t.length,r=-1,o="";++r65535&&(i+=o((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=o(t);return i}(s)}}(t)},204124:(e,t,n)=>{var r=n(745539)((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));e.exports=r},214263:function(e,t,n){var r,o,i;!function(a,s){"use strict";o=[n(540343)],void 0===(i="function"==typeof(r=function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter((function(e){return!!e.match(n)}),this).map((function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;var o=this.extractLocation(r?r[1]:n),i=r&&n||void 0,a=["eval",""].indexOf(o[0])>-1?void 0:o[0];return new e({functionName:i,fileName:a,lineNumber:o[1],columnNumber:o[2],source:t})}),this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter((function(e){return!e.match(r)}),this).map((function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,i=this.extractLocation(t.replace(n,""));return new e({functionName:o,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),o=[],i=2,a=r.length;i/,"$2").replace(/\([^)]*\)/g,"")||void 0;i.match(/\(([^)]*)\)/)&&(n=i.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var s=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:a,args:s,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})}),this)}}})?r.apply(t,o):r)||(e.exports=i)}()},221020:(e,t,n)=>{"use strict";var r=n(296540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:s.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},227885:(e,t,n)=>{"use strict";n.d(t,{XU:()=>d,dT:()=>p,Gr:()=>f});var r,o,i=()=>n(331635),a=n(296540),s=n(706442);!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(r||(r={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(o||(o={}));var l=function(e){var t=(0,s.A)(),n=e.value,r=e.children,o=(0,i().Tt)(e,["value","children"]);return r(t.formatNumberToParts(n,o))};l.displayName="FormattedNumberParts";function u(e){var t=function(t){var n=(0,s.A)(),r=t.value,o=t.children,a=(0,i().Tt)(t,["value","children"]),l="string"==typeof r?new Date(r||0):r;return o("formatDate"===e?n.formatDateToParts(l,a):n.formatTimeToParts(l,a))};return t.displayName=o[e],t}function c(e){var t=function(t){var n=(0,s.A)(),r=t.value,o=t.children,l=(0,i().Tt)(t,["value","children"]),u=n[e](r,l);if("function"==typeof o)return o(u);var c=n.textComponent||a.Fragment;return a.createElement(c,null,u)};return t.displayName=r[e],t}l.displayName="FormattedNumberParts";var d=c("formatDate"),f=(c("formatTime"),c("formatNumber")),p=c("formatList");c("formatDisplayName"),u("formatDate"),u("formatTime")},230882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=void 0;const n=new Map,r="start",o="end",i="statsig::diagnostics";function a(e,t,n,r){return Object.assign({key:n,action:t,step:r,timestamp:Date.now()},e)}function s(e,t){var r;const o=null!==(r=n.get(e))&&void 0!==r?r:[];o.push(t),n.set(e,o)}function l(e,t){if(t in e)return e[t]}t.Diagnostics={_getMarkers:e=>n.get(e),_markInitOverallStart:e=>{s(e,a({},r,"overall"))},_markInitOverallEnd:(e,t,n)=>{s(e,a({success:t,error:t?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:n},o,"overall"))},_markInitNetworkReqStart:(e,t)=>{s(e,a(t,r,"initialize","network_request"))},_markInitNetworkReqEnd:(e,t)=>{s(e,a(t,o,"initialize","network_request"))},_markInitProcessStart:e=>{s(e,a({},r,"initialize","process"))},_markInitProcessEnd:(e,t)=>{s(e,a(t,o,"initialize","process"))},_clearMarkers:e=>{n.delete(e)},_formatError(e){if(e&&"object"==typeof e)return{code:l(e,"code"),name:l(e,"name"),message:l(e,"message")}},_getDiagnosticsData(e,n,r,o){var i;return{success:!0===(null==e?void 0:e.ok),statusCode:null==e?void 0:e.status,sdkRegion:null===(i=null==e?void 0:e.headers)||void 0===i?void 0:i.get("x-statsig-region"),isDelta:!0===r.includes('"is_delta":true')||void 0,attempt:n,error:t.Diagnostics._formatError(o)}},_enqueueDiagnosticsEvent(e,n,r,o){const a=t.Diagnostics._getMarkers(r);if(null==a||a.length<=0)return-1;const s=a[a.length-1].timestamp-a[0].timestamp;t.Diagnostics._clearMarkers(r);const l=function(e,t){const n={eventName:i,user:e,value:null,metadata:t,time:Date.now()};return n}(e,{context:"initialize",markers:a.slice(),statsigOptions:o});return n.enqueue(l),s}}},240843:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMemoKey=t.MemoPrefix=void 0,t.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_layer:"l",_paramStore:"p"};const n=new Set([]),r=new Set(["userPersistedValues"]);t.createMemoKey=function(e,t,o){let i=`${e}|${t}`;if(!o)return i;for(const a of Object.keys(o)){if(r.has(a))return;n.has(a)?i+=`|${a}=true`:i+=`|${a}=${o[a]}`}return i}},244703:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkCore=void 0,n(843509);const o=()=>n(843509),i=()=>n(230882),a=()=>n(668024),s=()=>n(12610),l=()=>n(810686),u=()=>n(339839),c=()=>n(146512),d=()=>n(647754),f=new Set([408,500,502,503,504,522,524,599]);t.NetworkCore=class{constructor(e,t){this._emitter=t,this._errorBoundary=null,this._timeout=1e4,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,e&&(this._options=e),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new(n(250052).NetworkFallbackResolver)(this._options),this.setLogEventCompressionMode(this._getLogEventCompressionMode(e))}setLogEventCompressionMode(e){this._options.logEventCompressionMode=e}setErrorBoundary(e){this._errorBoundary=e,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(e)}isBeaconSupported(){return"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon}getLastUsedInitUrlAndReset(){const e=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,e}beacon(e){return r(this,void 0,void 0,(function*(){if(!p(e))return!1;const t=this._getInternalRequestArgs("POST",e);yield this._tryToCompressBody(t);const n=yield this._getPopulatedURL(t),r=navigator;return r.sendBeacon.bind(r)(n,t.body)}))}post(e){return r(this,void 0,void 0,(function*(){const t=this._getInternalRequestArgs("POST",e);return this._tryEncodeBody(t),yield this._tryToCompressBody(t),this._sendRequest(t)}))}get(e){const t=this._getInternalRequestArgs("GET",e);return this._sendRequest(t)}_sendRequest(e){var t,o,l,u;return r(this,void 0,void 0,(function*(){if(!p(e))return null;if(this._netConfig.preventAllNetworkTraffic)return null;const{method:c,body:d,retries:h,attempt:g}=e,m=e.urlConfig.endpoint;if(this._isRateLimited(m))return a().Log.warn(`Request to ${m} was blocked because you are making requests too frequently.`),null;const y=null!=g?g:1,_="undefined"!=typeof AbortController?new AbortController:null,b=setTimeout((()=>{null==_||_.abort(`Timeout of ${this._timeout}ms expired.`)}),this._timeout),w=yield this._getPopulatedURL(e);let S=null;const k=(0,n(592701)._isUnloading)();try{const n={method:c,body:d,headers:Object.assign({},e.headers),signal:null==_?void 0:_.signal,priority:e.priority,keepalive:k};!function(e,t){if(e.urlConfig.endpoint!==s().Endpoint._initialize)return;i().Diagnostics._markInitNetworkReqStart(e.sdkKey,{attempt:t})}(e,y);const r=this._leakyBucket[m];r&&(r.lastRequestTime=Date.now(),this._leakyBucket[m]=r);const o=null!==(t=this._netConfig.networkOverrideFunc)&&void 0!==t?t:fetch;if(S=yield o(w,n),clearTimeout(b),!S.ok){const e=yield S.text().catch((()=>"No Text")),t=new Error(`NetworkError: ${w} ${e}`);throw t.name="NetworkError",t}const a=yield S.text();return v(e,S,y,a),this._fallbackResolver.tryBumpExpiryTime(e.sdkKey,e.urlConfig),{body:a,code:S.status}}catch(x){const t=function(e,t){if((null==e?void 0:e.signal.aborted)&&"string"==typeof e.signal.reason)return e.signal.reason;if("string"==typeof t)return t;if(t instanceof Error)return`${t.name}: ${t.message}`;return"Unknown Error"}(_,x),i=(null==(E=_)?void 0:E.signal.aborted)&&"string"==typeof E.signal.reason&&E.signal.reason.includes("Timeout")||!1;v(e,S,y,"",x);if((yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(e.sdkKey,e.urlConfig,t,i))&&(e.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(e.sdkKey,e.urlConfig)),!h||y>h||!f.has(null!==(o=null==S?void 0:S.status)&&void 0!==o?o:500)){null===(l=this._emitter)||void 0===l||l.call(this,{name:"error",error:x,tag:n(971180).ErrorTag.NetworkError,requestArgs:e});const r=`A networking error occurred during ${c} request to ${w}.`;return a().Log.error(r,t,x),null===(u=this._errorBoundary)||void 0===u||u.attachErrorIfNoneExists(r),null}return yield function(e){return r(this,void 0,void 0,(function*(){yield new Promise((t=>setTimeout(t,Math.min(e*e*500,3e4))))}))}(y),this._sendRequest(Object.assign(Object.assign({},e),{retries:h,attempt:y+1}))}var E}))}_getLogEventCompressionMode(e){let t=null==e?void 0:e.logEventCompressionMode;return t||!0!==(null==e?void 0:e.disableCompression)||(t=d().LogEventCompressionMode.Disabled),t||(t=d().LogEventCompressionMode.Enabled),t}_isRateLimited(e){var t;const n=Date.now(),r=null!==(t=this._leakyBucket[e])&&void 0!==t?t:{count:0,lastRequestTime:n},o=n-r.lastRequestTime,i=Math.floor(.05*o);return r.count=Math.max(0,r.count-i),r.count>=50||(r.count+=1,r.lastRequestTime=n,this._leakyBucket[e]=r,!1)}_getPopulatedURL(e){var t;return r(this,void 0,void 0,(function*(){const n=null!==(t=e.fallbackUrl)&&void 0!==t?t:e.urlConfig.getUrl();e.urlConfig.endpoint!==s().Endpoint._initialize&&e.urlConfig.endpoint!==s().Endpoint._download_config_specs||(this._lastUsedInitUrl=n);const r=Object.assign({[s().NetworkParam.SdkKey]:e.sdkKey,[s().NetworkParam.SdkType]:l().SDKType._get(e.sdkKey),[s().NetworkParam.SdkVersion]:c().SDK_VERSION,[s().NetworkParam.Time]:String(Date.now()),[s().NetworkParam.SessionID]:u().SessionID.get(e.sdkKey)},e.params),o=Object.keys(r).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(r[e])}`)).join("&");return`${n}${o?`?${o}`:""}`}))}_tryEncodeBody(e){var t;const r=(0,n(600414)._getWindowSafe)(),i=e.body;if(e.isStatsigEncodable&&!this._options.disableStatsigEncoding&&"string"==typeof i&&null==(0,o()._getStatsigGlobalFlag)("no-encode")&&(null==r?void 0:r.btoa))try{e.body=r.btoa(i).split("").reverse().join(""),e.params=Object.assign(Object.assign({},null!==(t=e.params)&&void 0!==t?t:{}),{[s().NetworkParam.StatsigEncoded]:"1"})}catch(l){a().Log.warn(`Request encoding failed for ${e.urlConfig.getUrl()}`,l)}}_tryToCompressBody(e){var t;return r(this,void 0,void 0,(function*(){const r=e.body;if("string"==typeof r&&function(e,t){if(!e.isCompressable)return!1;if(null!=(0,o()._getStatsigGlobalFlag)("no-compress")||"undefined"==typeof CompressionStream||"undefined"==typeof TextEncoder)return!1;const r=null!=e.urlConfig.customUrl||null!=e.urlConfig.fallbackUrls,i=!0===n(895747).SDKFlags.get(e.sdkKey,"enable_log_event_compression");switch(t.logEventCompressionMode){case d().LogEventCompressionMode.Disabled:return!1;case d().LogEventCompressionMode.Enabled:return!(r&&!i);case d().LogEventCompressionMode.Forced:return!0;default:return!1}}(e,this._options))try{const n=(new TextEncoder).encode(r),o=new CompressionStream("gzip"),i=o.writable.getWriter();i.write(n).catch(a().Log.error),i.close().catch(a().Log.error);const l=o.readable.getReader(),u=[];let c;for(;!(c=yield l.read()).done;)u.push(c.value);const d=u.reduce(((e,t)=>e+t.length),0),f=new Uint8Array(d);let p=0;for(const e of u)f.set(e,p),p+=e.length;e.body=f,e.params=Object.assign(Object.assign({},null!==(t=e.params)&&void 0!==t?t:{}),{[s().NetworkParam.IsGzipped]:"1"})}catch(i){a().Log.warn(`Request compression failed for ${e.urlConfig.getUrl()}`,i)}}))}_getInternalRequestArgs(e,t){const n=this._fallbackResolver.getActiveFallbackUrl(t.sdkKey,t.urlConfig),r=Object.assign(Object.assign({},t),{method:e,fallbackUrl:n});return"data"in t&&h(r,t.data),r}};const p=e=>!!e.sdkKey||(a().Log.warn("Unable to make request without an SDK key"),!1),h=(e,t)=>{const{sdkKey:r,fallbackUrl:o}=e,i=n(32626).StableID.get(r),a=u().SessionID.get(r),s=l().SDKType._get(r);e.body=JSON.stringify(Object.assign(Object.assign({},t),{statsigMetadata:Object.assign(Object.assign({},c().StatsigMetadataProvider.get()),{stableID:i,sessionID:a,sdkType:s,fallbackUrl:o})}))};function v(e,t,n,r,o){e.urlConfig.endpoint===s().Endpoint._initialize&&i().Diagnostics._markInitNetworkReqEnd(e.sdkKey,i().Diagnostics._getDiagnosticsData(t,n,r,o))}},250052:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t._isDomainFailure=t.NetworkFallbackResolver=void 0;const o=()=>n(483918),i=()=>n(601638),a=6048e5;function s(e,t){var n;const r=null!==(n=null==e?void 0:e.toLowerCase())&&void 0!==n?n:"";return t||r.includes("uncaught exception")||r.includes("failed to fetch")||r.includes("networkerror when attempting to fetch resource")}function l(e){return`statsig.network_fallback.${(0,o()._DJB2)(e)}`}function u(e,t){const n=l(e);t&&0!==Object.keys(t).length?i().Storage.setItem(n,JSON.stringify(t)):i().Storage.removeItem(n)}t.NetworkFallbackResolver=class{constructor(e){var t;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=null===(t=e.networkConfig)||void 0===t?void 0:t.networkOverrideFunc}setErrorBoundary(e){this._errorBoundary=e}tryBumpExpiryTime(e,t){var n;const r=null===(n=this._fallbackInfo)||void 0===n?void 0:n[t.endpoint];r&&(r.expiryTime=Date.now()+a,u(e,Object.assign(Object.assign({},this._fallbackInfo),{[t.endpoint]:r})))}getActiveFallbackUrl(e,t){var r,o;if(null!=t.customUrl&&null!=t.fallbackUrls)return null;let a=this._fallbackInfo;null==a&&(a=null!==(r=function(e){const t=l(e),o=i().Storage.getItem(t);if(!o)return null;try{return JSON.parse(o)}catch(r){return n(668024).Log.error("Failed to parse FallbackInfo"),null}}(e))&&void 0!==r?r:{},this._fallbackInfo=a);const s=a[t.endpoint];return!s||Date.now()>(null!==(o=s.expiryTime)&&void 0!==o?o:0)||t.getChecksum()!==s.urlConfigChecksum?(delete a[t.endpoint],this._fallbackInfo=a,u(e,this._fallbackInfo),null):s.url?s.url:null}tryFetchUpdatedFallbackInfo(e,t,n,o){var i,a;return r(this,void 0,void 0,(function*(){try{if(!s(n,o))return!1;const r=null==t.customUrl&&null==t.fallbackUrls?yield this._tryFetchFallbackUrlsFromNetwork(t):t.fallbackUrls,a=this._pickNewFallbackUrl(null===(i=this._fallbackInfo)||void 0===i?void 0:i[t.endpoint],r);return!!a&&(this._updateFallbackInfoWithNewUrl(e,t,a),!0)}catch(r){return null===(a=this._errorBoundary)||void 0===a||a.logError("tryFetchUpdatedFallbackInfo",r),!1}}))}_updateFallbackInfoWithNewUrl(e,t,n){var r,o,i;const s={urlConfigChecksum:t.getChecksum(),url:n,expiryTime:Date.now()+a,previous:[]},l=t.endpoint,c=null===(r=this._fallbackInfo)||void 0===r?void 0:r[l];c&&s.previous.push(...c.previous),s.previous.length>10&&(s.previous=[]);const d=null===(i=null===(o=this._fallbackInfo)||void 0===o?void 0:o[l])||void 0===i?void 0:i.url;null!=d&&s.previous.push(d),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[l]:s}),u(e,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(e){var t;return r(this,void 0,void 0,(function*(){const r=this._dnsQueryCooldowns[e.endpoint];if(r&&Date.now()1){let e=n[1];e.endsWith("/")&&(e=e.slice(0,-1)),o.push(`https://${e}${a}`)}}return o}))}_pickNewFallbackUrl(e,t){var n;if(null==t)return null;const r=new Set(null!==(n=null==e?void 0:e.previous)&&void 0!==n?n:[]),o=null==e?void 0:e.url;let i=null;for(const a of t){const e=a.endsWith("/")?a.slice(0,-1):a;if(!r.has(a)&&e!==o){i=e;break}}return i}},t._isDomainFailure=s},251148:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_DETAIL_ERROR_MESSAGES=t.createUpdateDetails=void 0;t.createUpdateDetails=(e,t,n,r,o,i)=>({duration:n,source:t,success:e,error:r,sourceUrl:o,warnings:i}),t.UPDATE_DETAIL_ERROR_MESSAGES={NO_NETWORK_DATA:"No data was returned from the network. This may be due to a network timeout if a timeout value was specified in the options or ad blocker error."}},263950:e=>{e.exports=function(){}},272669:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA256=void 0,t.SHA256=function(e){return(new i).update(e)};const n=[-2147483648,8388608,32768,128],r=[24,16,8,0],o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];class i{constructor(){this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.lastByteIndex=-1}update(e){if(this.finalized)return this;if("string"!=typeof e)throw new Error('Must be of type "string"');let t,n,o=0;const i=e.length,a=this.blocks;for(;o>2]|=t<>2]|=(192|t>>6)<>2]|=(128|63&t)<=57344?(a[n>>2]|=(224|t>>12)<>2]|=(128|t>>6&63)<>2]|=(128|63&t)<>2]|=(240|t>>18)<>2]|=(128|t>>12&63)<>2]|=(128|t>>6&63)<>2]|=(128|63&t)<=64?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}finalize(){if(this.finalized)return;this.finalized=!0;const e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=n[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}hash(){const e=this.blocks;let t,n,r,i,a,s,l,u,c,d,f,p=this.h0,h=this.h1,v=this.h2,g=this.h3,m=this.h4,y=this.h5,_=this.h6,b=this.h7;for(t=16;t<64;++t)a=e[t-15],n=(a>>>7|a<<25)^(a>>>18|a<<14)^a>>>3,a=e[t-2],r=(a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,e[t]=e[t-16]+n+e[t-7]+r<<0;for(f=h&v,t=0;t<64;t+=4)this.first?(u=704751109,a=e[0]-210244248,b=a-1521486534<<0,g=a+143694565<<0,this.first=!1):(n=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),r=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),u=p&h,i=u^p&v^f,l=m&y^~m&_,a=b+r+l+o[t]+e[t],s=n+i,b=g+a<<0,g=a+s<<0),n=(g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10),r=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7),c=g&p,i=c^g&h^u,l=b&m^~b&y,a=_+r+l+o[t+1]+e[t+1],s=n+i,_=v+a<<0,v=a+s<<0,n=(v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10),r=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),d=v&g,i=d^v&p^c,l=_&b^~_&m,a=y+r+l+o[t+2]+e[t+2],s=n+i,y=h+a<<0,h=a+s<<0,n=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),r=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),f=h&v,i=f^h&g^d,l=y&_^~y&b,a=m+r+l+o[t+3]+e[t+3],s=n+i,m=p+a<<0,p=a+s<<0;this.h0=this.h0+p<<0,this.h1=this.h1+h<<0,this.h2=this.h2+v<<0,this.h3=this.h3+g<<0,this.h4=this.h4+m<<0,this.h5=this.h5+y<<0,this.h6=this.h6+_<<0,this.h7=this.h7+b<<0}arrayBuffer(){return this._getOutputs().buffer}dataView(){return this._getOutputs().dataView}_getOutputs(){this.finalize();const e=new ArrayBuffer(32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),t.setUint32(28,this.h7),{dataView:t,buffer:e}}}},285914:function(e,t,n){var r;e=n.nmd(e),function(o){var i=t,a=(e&&e.exports,"object"==typeof n.g&&n.g);a.global!==a&&a.window;var s=function(e){this.message=e};(s.prototype=new Error).name="InvalidCharacterError";var l=function(e){throw new s(e)},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=/[\t\n\f\r ]/g,d={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&l("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,r,o,i=e.length%3,a="",s=-1,c=e.length-i;++s>18&63)+u.charAt(o>>12&63)+u.charAt(o>>6&63)+u.charAt(63&o);return 2==i?(t=e.charCodeAt(s)<<8,n=e.charCodeAt(++s),a+=u.charAt((o=t+n)>>10)+u.charAt(o>>4&63)+u.charAt(o<<2&63)+"="):1==i&&(o=e.charCodeAt(s),a+=u.charAt(o>>2)+u.charAt(o<<4&63)+"=="),a},decode:function(e){var t=(e=String(e).replace(c,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&l("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,o=0,i="",a=-1;++a>(-2*o&6)));return i},version:"0.1.0"};void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}()},286913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},296540:(e,t,n)=>{"use strict";e.exports=n(815287)},304146:(e,t,n)=>{"use strict";var r=()=>n(44363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r().isMemo(e)?a:s[e.$$typeof]||o}s[r().ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r().Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),v=l(n),g=0;g{e.exports=function(e){return null===e}},306498:(e,t,n)=>{var r=n(242e3)((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));e.exports=r},307463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;ri(l,n))ui(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(ui(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,v=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,_="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,b(e),!v)if(null!==r(u))v=!0,I(S);else{var t=r(c);null!==t&&j(w,t.startTime-e)}}function S(e,n){v=!1,g&&(g=!1,y(C),C=-1),h=!0;var i=p;try{for(b(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!D());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(u)&&o(u),b(n)}else o(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&j(w,d.startTime-n),l=!1}return l}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,E=!1,x=null,C=-1,O=5,P=-1;function D(){return!(t.unstable_now()-Pe||125a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(y(C),C=-1):g=!0,j(w,i-a))):(e.sortIndex=s,n(u,e),v||h||(v=!0,I(S))),e},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},320295:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resultToLayerEval=t.resultToConfigEval=t.resultToGateEval=t.makeEvalResult=void 0,t.makeEvalResult=function(e){const t={unsupported:!1,bool_value:!1,rule_id:"",secondary_exposures:[],json_value:{},explicit_parameters:null,allocated_experiment_name:null,is_experiment_group:!1,group_name:null,undelegated_secondary_exposures:void 0};return Object.assign(Object.assign({},t),e)},t.resultToGateEval=function(e,t){var n;return{name:e.name,id_type:e.idType,rule_id:t.rule_id,value:t.bool_value,secondary_exposures:t.secondary_exposures,version:null===(n=e.version)||void 0===n?void 0:n.toString()}},t.resultToConfigEval=function(e,t){var n,r,o;return{name:e.name,id_type:e.idType,rule_id:t.rule_id,value:t.json_value,secondary_exposures:t.secondary_exposures,group:null!==(n=t.group_name)&&void 0!==n?n:"",group_name:null!==(r=t.group_name)&&void 0!==r?r:void 0,is_device_based:!1,is_experiment_active:e.isActive,is_user_in_experiment:t.is_experiment_group,version:null===(o=e.version)||void 0===o?void 0:o.toString(),passed:t.bool_value}},t.resultToLayerEval=function(e,t,n){var r,o,i,a,s;return{name:e.name,rule_id:n.rule_id,value:n.json_value,secondary_exposures:n.secondary_exposures,undelegated_secondary_exposures:n.undelegated_secondary_exposures,allocated_experiment_name:null!==(r=n.allocated_experiment_name)&&void 0!==r?r:"",explicit_parameters:null!==(o=n.explicit_parameters)&&void 0!==o?o:[],group:null!==(i=n.group_name)&&void 0!==i?i:"",group_name:null!==(a=n.group_name)&&void 0!==a?a:void 0,is_device_based:!1,is_experiment_active:null==t?void 0:t.isActive,is_user_in_experiment:n.is_experiment_group,version:null===(s=e.version)||void 0===s?void 0:s.toString()}}},322799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case v:case l:return e;default:return t}}case o:return t}}}function S(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=v,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===_||e.$$typeof===b||e.$$typeof===m)},t.typeOf=w},331635:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>p,C6:()=>o,Cl:()=>i,Ju:()=>u,N3:()=>f,Tt:()=>a,YH:()=>l,fX:()=>d,sH:()=>s,xN:()=>h,zs:()=>c});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function d(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o1||s(e,t)}))},t&&(r[e]=t(r[e])))}function s(e,t){try{(n=o[e](t)).value instanceof f?Promise.resolve(n.value.v).then(l,u):c(i[0][2],n)}catch(r){c(i[0][3],r)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function h(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=u(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}Object.create;"function"==typeof SuppressedError&&SuppressedError},333031:(e,t,n)=>{var r=()=>n(936800),o=n(269302)((function(e,t){if(null==e)return[];var o=t.length;return o>1&&r()(e,t[0],t[1])?t=[]:o>2&&r()(t[0],t[1],t[2])&&(t=[t[0]]),n(146155)(e,n(983120)(t,1),[])}));e.exports=o},336119:(e,t,n)=>{e.exports=function(e){return e&&e.length?n(17721)(e,n(383488)):0}},339839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigSession=t.SessionID=void 0;const r=()=>n(843509),o=()=>n(894681),i=()=>n(668024),a=()=>n(601638),s=()=>n(537047),l=18e5,u=144e5,c={};function d(e,t){return setTimeout((()=>{var t;const n=null===(t=(0,r()._getStatsigGlobal)())||void 0===t?void 0:t.instance(e);n&&n.$emt({name:"session_expired"})}),t)}function f(e){return`statsig.session_id.${(0,o()._getStorageKey)(e)}`}t.SessionID={get:e=>t.StatsigSession.get(e).data.sessionID},t.StatsigSession={get:e=>{null==c[e]&&(c[e]=function(e){let t=function(e){const t=f(e);return(0,a()._getObjectFromStorage)(t)}(e);const n=Date.now();t||(t={sessionID:(0,s().getUUID)(),startTime:n,lastUpdate:n});return{data:t,sdkKey:e}}(e));return function(e){const t=Date.now(),n=e.data,r=e.sdkKey;if(function({lastUpdate:e}){return Date.now()-e>l}(n)||function({startTime:e}){return Date.now()-e>u}(n)){n.sessionID=(0,s().getUUID)(),n.startTime=t;const e=null===__STATSIG__||void 0===__STATSIG__?void 0:__STATSIG__.instance(r);e&&e.$emt({name:"session_expired"})}n.lastUpdate=t,function(e,t){const n=f(t);try{(0,a()._setObjectInStorage)(n,e)}catch(r){i().Log.warn("Failed to save SessionID")}}(n,e.sdkKey),clearTimeout(e.idleTimeoutID),clearTimeout(e.ageTimeoutID);const o=t-n.startTime;return e.idleTimeoutID=d(r,l),e.ageTimeoutID=d(r,u-o),e}(c[e])},overrideInitialSessionID:(e,t)=>{c[t]=function(e,t){const n=Date.now();return{data:{sessionID:e,startTime:n,lastUpdate:n},sdkKey:t}}(e,t)}}},355083:(e,t,n)=>{e.exports=function(e){return n(182609)(e,n(383488))}},355364:(e,t,n)=>{var r=n(920999)((function(e,t,r){n(785250)(e,t,r)}));e.exports=r},360895:(e,t,n)=>{var r=n(269302)((function(e,t,r){return n(420085)(e,n(399374)(t)||0,r)}));e.exports=r},365694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._resolveDeltasResponse=void 0;const r=()=>n(636978);function o(e,t){null==e||e.forEach((e=>{delete t[e]}))}t._resolveDeltasResponse=function(e,t){const n=(0,r()._typedJsonParse)(t,"checksum","DeltasEvaluationResponse");if(!n)return{hadBadDeltaChecksum:!0};const i=function(e){const t=e;return o(e.deleted_gates,t.feature_gates),delete t.deleted_gates,o(e.deleted_configs,t.dynamic_configs),delete t.deleted_configs,o(e.deleted_layers,t.layer_configs),delete t.deleted_layers,t}(function(e,t){return Object.assign(Object.assign(Object.assign({},e),t),{feature_gates:Object.assign(Object.assign({},e.feature_gates),t.feature_gates),layer_configs:Object.assign(Object.assign({},e.layer_configs),t.layer_configs),dynamic_configs:Object.assign(Object.assign({},e.dynamic_configs),t.dynamic_configs)})}(e,n)),a=(0,r()._DJB2Object)({feature_gates:i.feature_gates,dynamic_configs:i.dynamic_configs,layer_configs:i.layer_configs},2);return a===n.checksumV2?JSON.stringify(i):{hadBadDeltaChecksum:!0,badChecksum:a,badMergedConfigs:i,badFullResponse:n.deltas_full_response}}},383488:e=>{e.exports=function(e){return e}},385638:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t._makeDataAdapterResult=t.DataAdapterCore=void 0;const o=()=>n(668024),i=()=>n(81570),a=()=>n(601638),s=()=>n(953705);function l(e,t,n,r){return{source:e,data:t,receivedAt:Date.now(),stableID:n,fullUserHash:(0,i()._getFullUserHash)(r)}}t.DataAdapterCore=class{constructor(e,t){this._adapterName=e,this._cacheSuffix=t,this._options=null,this._sdkKey=null,this._lastModifiedStoreKey=`statsig.last_modified_time.${t}`,this._inMemoryCache=new u}attach(e,t,n){this._sdkKey=e,this._options=t}getDataSync(e){const t=e&&(0,i()._normalizeUser)(e,this._options),n=this._getCacheKey(t),r=this._inMemoryCache.get(n,t);if(r)return r;const o=this._loadFromCache(n);return o?(this._inMemoryCache.add(n,o),this._inMemoryCache.get(n,t)):null}setData(e,t){const n=t&&(0,i()._normalizeUser)(t,this._options),r=this._getCacheKey(n);this._inMemoryCache.add(r,l("Bootstrap",e,null,n))}_getDataAsyncImpl(e,t,n){return r(this,void 0,void 0,(function*(){a().Storage.isReady()||(yield a().Storage.isReadyResolver());const r=null!=e?e:this.getDataSync(t),i=[this._fetchAndPrepFromNetwork(r,t,n)];return(null==n?void 0:n.timeoutMs)&&i.push(new Promise((e=>setTimeout(e,n.timeoutMs))).then((()=>(o().Log.debug("Fetching latest value timed out"),null)))),yield Promise.race(i)}))}_prefetchDataImpl(e,t){return r(this,void 0,void 0,(function*(){const n=e&&(0,i()._normalizeUser)(e,this._options),r=this._getCacheKey(n),o=yield this._getDataAsyncImpl(null,n,t);o&&this._inMemoryCache.add(r,Object.assign(Object.assign({},o),{source:"Prefetch"}))}))}_fetchAndPrepFromNetwork(e,t,i){var a;return r(this,void 0,void 0,(function*(){const r=null!==(a=null==e?void 0:e.data)&&void 0!==a?a:null,u=null!=e&&this._isCachedResultValidFor204(e,t),c=yield this._fetchFromNetwork(r,t,i,u);if(!c)return o().Log.debug("No response returned for latest value"),null;const d=(0,s()._typedJsonParse)(c,"has_updates","Response"),f=this._getSdkKey(),p=n(32626).StableID.get(f);let h=null;if(!0===(null==d?void 0:d.has_updates))h=l("Network",c,p,t);else{if(!r||!1!==(null==d?void 0:d.has_updates))return null;h=l("NetworkNotModified",r,p,t)}const v=this._getCacheKey(t);return this._inMemoryCache.add(v,h),this._writeToCache(v,h),h}))}_getSdkKey(){return null!=this._sdkKey?this._sdkKey:(o().Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(e){var t;const n=null===(t=a().Storage.getItem)||void 0===t?void 0:t.call(a().Storage,e);if(null==n)return null;const r=(0,s()._typedJsonParse)(n,"source","Cached Result");return r?Object.assign(Object.assign({},r),{source:"Cache"}):null}_writeToCache(e,t){a().Storage.setItem(e,JSON.stringify(t)),this._runLocalStorageCacheEviction(e)}_runLocalStorageCacheEviction(e){var t;const n=null!==(t=(0,a()._getObjectFromStorage)(this._lastModifiedStoreKey))&&void 0!==t?t:{};n[e]=Date.now();const r=c(n,10);r&&(delete n[r],a().Storage.removeItem(r)),(0,a()._setObjectInStorage)(this._lastModifiedStoreKey,n)}},t._makeDataAdapterResult=l;class u{constructor(){this._data={}}get(e,t){var n;const r=this._data[e],i=null==r?void 0:r.stableID,a=null===(n=null==t?void 0:t.customIDs)||void 0===n?void 0:n.stableID;return a&&i&&a!==i?(o().Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):r}add(e,t){const n=c(this._data,9);n&&delete this._data[n],this._data[e]=t}merge(e){this._data=Object.assign(Object.assign({},this._data),e)}}function c(e,t){const n=Object.keys(e);return n.length<=t?null:n.reduce(((t,n)=>{const r=e[t],o=e[n];return"object"==typeof r&&"object"==typeof o?o.receivedAt{e.exports=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return n(223805)(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),n(738221)(e,t,{leading:o,maxWait:t,trailing:i})}},413611:(e,t,n)=>{"use strict";var r=n(746518),o=n(444576),i=n(562106),a=n(743724),s=TypeError,l=Object.defineProperty,u=o.self!==o;try{if(a){var c=Object.getOwnPropertyDescriptor(o,"self");!u&&c&&c.get&&c.enumerable||i(o,"self",{get:function(){return o},set:function(e){if(this!==o)throw new s("Illegal invocation");l(o,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:u},{self:o})}catch(d){}},440961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(822551)},454759:(e,t)=>{"use strict";function n(e){return e.setUTCHours(0,0,0,0),e.getTime()}Object.defineProperty(t,"__esModule",{value:!0}),t.default={compareNumbers(e,t,n){if(null==e||null==t)return!1;const r=Number(e),o=Number(t);if(isNaN(r)||isNaN(o))return!1;switch(n){case"gt":return e>t;case"gte":return e>=t;case"lt":return e{const t=e.indexOf("-");return-1!==t?e.substring(0,t):e};r=i(r),o=i(o);const a=((e,t)=>{const n=e.split(".").map((e=>parseInt(e))),r=t.split(".").map((e=>parseInt(e)));let o=0;for(;ot)return 1;o++}return 0})(r,o);switch(n){case"version_gt":return a>0;case"version_gte":return a>=0;case"version_lt":return a<0;case"version_lte":return a<=0;case"version_eq":return 0===a;case"version_neq":return 0!==a;default:return!1}},compareStringInArray(e,t,n){if(!Array.isArray(t))return!1;const r="any_case_sensitive"!==n&&"none_case_sensitive"!==n,o=-1!==t.findIndex((t=>{const o=String(e),i=String(t),a=r?o.toLowerCase():o,s=r?i.toLowerCase():i;switch(n){case"any":case"none":case"any_case_sensitive":case"none_case_sensitive":return a===s;case"str_starts_with_any":return a.startsWith(s);case"str_ends_with_any":return a.endsWith(s);case"str_contains_any":case"str_contains_none":return a.includes(s);default:return!1}}));switch(n){case"none":case"none_case_sensitive":case"str_contains_none":return!o;default:return o}},compareStringWithRegEx(e,t){try{const n=String(e);if(n.length<1e3)return new RegExp(String(t)).test(n)}catch(n){}return!1},compareTime(e,t,r){if(null==e||null==t)return!1;try{let o=new Date(String(e));isNaN(o.getTime())&&(o=new Date(Number(e)));let i=new Date(String(t));isNaN(i.getTime())&&(i=new Date(Number(t)));const a=o.getTime(),s=i.getTime();if(isNaN(a)||isNaN(s))return!1;switch(r){case"before":return as;case"on":return n(o)===n(i);default:return!1}}catch(o){return!1}},arrayHasValue(e,t){const n=new Set(e);for(let r=0;r{"use strict";e.exports=n(221020)},483918:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getSortedObject=t._DJB2Object=t._DJB2=void 0;t._DJB2=e=>{let t=0;for(let n=0;n>>0)};t._DJB2Object=(e,n)=>(0,t._DJB2)(JSON.stringify((0,t._getSortedObject)(e,n)));t._getSortedObject=(e,r)=>{if(null==e)return null;const o=Object.keys(e).sort(),i={};return o.forEach((o=>{const a=e[o];0!==r&&"object"===(0,n(690010)._typeOf)(a)?i[o]=(0,t._getSortedObject)(a,null!=r?r-1:r):i[o]=a})),i}},494394:(e,t,n)=>{var r=Object.prototype.hasOwnProperty,o=n(242e3)((function(e,t,o){r.call(e,o)?e[o].push(t):n(143360)(e,o,[t])}));e.exports=o},504294:(e,t,n)=>{"use strict";var r=n(746518),o=n(497751),i=n(318745),a=n(779039),s=n(714601),l="AggregateError",u=o(l),c=!a((function(){return 1!==u([1]).errors[0]}))&&a((function(){return 7!==u([1],l,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:c},{AggregateError:s(l,(function(e){return function(t,n){return i(e,this,arguments)}}),c,!0)})},512166:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataAdapterCachePrefix=void 0,t.DataAdapterCachePrefix="statsig.cached"},512335:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Evaluator=void 0;const r=()=>n(766944),o=()=>n(454759),i=()=>n(320295);function a(e,t){var n,r,o;return"string"==typeof t&&"userid"!==t.toLowerCase()?null!==(r=null===(n=e.customIDs)||void 0===n?void 0:n[t])&&void 0!==r?r:null===(o=null==e?void 0:e.customIDs)||void 0===o?void 0:o[t.toLowerCase()]:e.userID}function s(e,t,n){var r,o;if(100===e.passPercentage)return!0;if(0===e.passPercentage)return!1;const i=l(n.salt+"."+(null!==(r=e.salt)&&void 0!==r?r:e.id)+"."+(null!==(o=a(t,e.idType))&&void 0!==o?o:""));return Number(i%BigInt(1e4))<100*e.passPercentage}function l(e){return(0,r().SHA256)(e).dataView().getBigUint64(0,!1)}function u(e){return null!=e&&"object"==typeof e}t.Evaluator=class{constructor(e){this._store=e}evaluateGate(e,t){const{spec:n,details:r}=this._getSpecAndDetails("gate",e);if(!n)return{evaluation:null,details:r};return{evaluation:(0,i().resultToGateEval)(n,this._evaluateSpec(n,t)),details:r}}evaluateConfig(e,t){const{spec:n,details:r}=this._getSpecAndDetails("config",e);if(!n)return{evaluation:null,details:r};return{evaluation:(0,i().resultToConfigEval)(n,this._evaluateSpec(n,t)),details:r}}evaluateLayer(e,t){var n;const{spec:r,details:o}=this._getSpecAndDetails("layer",e);if(!r)return{evaluation:null,details:o};const a=this._evaluateSpec(r,t),s=null!==(n=null==a?void 0:a.allocated_experiment_name)&&void 0!==n?n:"",l=this._store.getSpecAndSourceInfo("config",s).spec;return{evaluation:(0,i().resultToLayerEval)(r,l,a),details:o}}getParamStoreConfig(e){var t;const n=this._store.getParamStoreAndSourceInfo(e),r=this._getEvaluationDetails(n);return{config:null!==(t=n.paramStoreConfig)&&void 0!==t?t:null,details:r}}_getSpecAndDetails(e,t){const n=this._store.getSpecAndSourceInfo(e,t);return{details:this._getEvaluationDetails(n),spec:n.spec}}_getEvaluationDetails(e){const{source:t,lcut:n,receivedAt:r}=e;if("Uninitialized"===t||"NoValues"===t)return{reason:t};return{reason:`${t}:${null==("spec"in e?e.spec:e.paramStoreConfig)?"Unrecognized":"Recognized"}`,lcut:n,receivedAt:r}}_evaluateSpec(e,t){const n=u(e.defaultValue)?e.defaultValue:void 0;if(!e.enabled)return(0,i().makeEvalResult)({json_value:n,rule_id:"disabled"});const r=[];for(const o of e.rules){const a=this._evaluateRule(o,t);if(a.unsupported)return a;if(r.push(...a.secondary_exposures),!a.bool_value)continue;const l=this._evaluateDelegate(o.configDelegate,t,r);if(l)return l;const u=s(o,t,e);return(0,i().makeEvalResult)({rule_id:a.rule_id,bool_value:u,json_value:u?a.json_value:n,secondary_exposures:r,undelegated_secondary_exposures:r,is_experiment_group:a.is_experiment_group,group_name:a.group_name})}return(0,i().makeEvalResult)({json_value:n,secondary_exposures:r,undelegated_secondary_exposures:r,rule_id:"default"})}_evaluateRule(e,t){const n=[];let r=!0;for(const o of e.conditions){const e=this._evaluateCondition(o,t);if(e.unsupported)return e;n.push(...e.secondary_exposures),e.bool_value||(r=!1)}return(0,i().makeEvalResult)({rule_id:e.id,bool_value:r,json_value:u(e.returnValue)?e.returnValue:void 0,secondary_exposures:n,is_experiment_group:!0===e.isExperimentGroup,group_name:e.groupName})}_evaluateCondition(e,t){var n,r,s;let u=null,c=!1;const d=e.field,f=e.targetValue,p=e.idType,h=e.type;switch(h){case"public":return(0,i().makeEvalResult)({bool_value:!0});case"pass_gate":case"fail_gate":{const e=String(f),n=this._evaluateNestedGate(e,t);return(0,i().makeEvalResult)({bool_value:"fail_gate"===h?!n.bool_value:n.bool_value,secondary_exposures:n.secondary_exposures})}case"multi_pass_gate":case"multi_fail_gate":return this._evaluateMultiNestedGates(f,h,t);case"user_field":case"ip_based":case"ua_based":u=function(e,t){var n,r,o,i,a,s,l,u,c;if(null==t||"object"!=typeof e||null==e)return null;const d=e;return null!==(u=null!==(s=null!==(i=null!==(r=null!==(n=d[t])&&void 0!==n?n:d[t.toLowerCase()])&&void 0!==r?r:null===(o=null==e?void 0:e.custom)||void 0===o?void 0:o[t])&&void 0!==i?i:null===(a=null==e?void 0:e.custom)||void 0===a?void 0:a[t.toLowerCase()])&&void 0!==s?s:null===(l=null==e?void 0:e.privateAttributes)||void 0===l?void 0:l[t])&&void 0!==u?u:null===(c=null==e?void 0:e.privateAttributes)||void 0===c?void 0:c[t.toLowerCase()]}(t,d);break;case"environment_field":u=function(e,t){if(null==t)return null;return function(e,t){if(null==e)return;const n=t.toLowerCase(),r=Object.keys(e).find((e=>e.toLowerCase()===n));if(void 0===r)return;return e[r]}(e.statsigEnvironment,t)}(t,d);break;case"current_time":u=Date.now();break;case"user_bucket":{const o=l(String(null!==(r=null===(n=e.additionalValues)||void 0===n?void 0:n.salt)&&void 0!==r?r:"")+"."+(null!==(s=a(t,p))&&void 0!==s?s:""));u=Number(o%BigInt(1e3));break}case"unit_id":u=a(t,p);break;default:return(0,i().makeEvalResult)({unsupported:!0})}const v=e.operator;switch(v){case"gt":case"gte":case"lt":case"lte":c=o().default.compareNumbers(u,f,v);break;case"version_gt":case"version_gte":case"version_lt":case"version_lte":case"version_eq":case"version_neq":c=o().default.compareVersions(u,f,v);break;case"any":case"none":case"str_starts_with_any":case"str_ends_with_any":case"str_contains_any":case"str_contains_none":case"any_case_sensitive":case"none_case_sensitive":c=o().default.compareStringInArray(u,f,v);break;case"str_matches":c=o().default.compareStringWithRegEx(u,f);break;case"before":case"after":case"on":c=o().default.compareTime(u,f,v);break;case"eq":c=u==f;break;case"neq":c=u!=f;break;case"in_segment_list":case"not_in_segment_list":return(0,i().makeEvalResult)({unsupported:!0});case"array_contains_any":case"array_contains_none":{if(!Array.isArray(f)){c=!1;break}if(!Array.isArray(u)){c=!1;break}const e=o().default.arrayHasValue(u,f);c="array_contains_any"===v?e:!e;break}case"array_contains_all":case"not_array_contains_all":{if(!Array.isArray(f)){c=!1;break}if(!Array.isArray(u)){c=!1;break}const e=o().default.arrayHasAllValues(u,f);c="array_contains_all"===v?e:!e;break}}return(0,i().makeEvalResult)({bool_value:c})}_evaluateDelegate(e,t,n){if(!e)return null;const{spec:r}=this._store.getSpecAndSourceInfo("config",e);if(!r)return null;const o=this._evaluateSpec(r,t);return(0,i().makeEvalResult)(Object.assign(Object.assign({},o),{allocated_experiment_name:e,explicit_parameters:r.explicitParameters,secondary_exposures:n.concat(o.secondary_exposures),undelegated_secondary_exposures:n}))}_evaluateNestedGate(e,t){const n=[];let r=!1;const{spec:o}=this._store.getSpecAndSourceInfo("gate",e);if(o){const i=this._evaluateSpec(o,t);if(i.unsupported)return i;r=i.bool_value,n.push(...i.secondary_exposures),n.push({gate:e,gateValue:String(r),ruleID:i.rule_id})}return(0,i().makeEvalResult)({bool_value:r,secondary_exposures:n})}_evaluateMultiNestedGates(e,t,n){if(!Array.isArray(e))return(0,i().makeEvalResult)({unsupported:!0});const r="multi_pass_gate"===t,o=[];let a=!1;for(const s of e){if("string"!=typeof s)return(0,i().makeEvalResult)({unsupported:!0});const e=this._evaluateNestedGate(s,n);if(e.unsupported)return e;if(o.push(...e.secondary_exposures),r?!0===e.bool_value:!1===e.bool_value){a=!0;break}}return(0,i().makeEvalResult)({bool_value:a,secondary_exposures:o})}}},537047:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUUID=void 0,t.getUUID=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return`xxxxxxxx-xxxx-4xxx-${"89ab"[Math.floor(4*Math.random())]}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,(n=>{let r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:7&r|8).toString(16)}))}},539950:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.LocalOverrideAdapter=void 0;const o=()=>n(636978),i="LocalOverride:Recognized";t.LocalOverrideAdapter=class{constructor(e){this._overrides={gate:{},dynamicConfig:{},experiment:{},layer:{}},this._sdkKey=null!=e?e:null}_getLocalOverridesStorageKey(e){return`statsig.local-overrides.${(0,o()._getStorageKey)(e)}`}loadFromStorage(){return r(this,void 0,void 0,(function*(){if(null==this._sdkKey)return;o().Storage.isReady()||(yield o().Storage.isReadyResolver());const e=this._getLocalOverridesStorageKey(this._sdkKey),t=o().Storage.getItem(e),n=t?(0,o()._typedJsonParse)(t,"gate","LocalOverrideAdapter overrides"):null,r=this._hasInMemoryOverrides();var i,a;n&&(this._overrides=r?(i=n,a=this._overrides,{gate:Object.assign({},i.gate,a.gate),dynamicConfig:Object.assign({},i.dynamicConfig,a.dynamicConfig),experiment:Object.assign({},i.experiment,a.experiment),layer:Object.assign({},i.layer,a.layer)}):n),r&&this._saveOverridesToStorage()}))}_saveOverridesToStorage(){if(null==this._sdkKey||!o().Storage.isReady())return;const e=this._getLocalOverridesStorageKey(this._sdkKey);o().Storage.setItem(e,JSON.stringify(this._overrides))}overrideGate(e,t){this._overrides.gate[e]=t,this._overrides.gate[(0,o()._DJB2)(e)]=t,this._saveOverridesToStorage()}_warnIfStorageNotReady(){o().Storage.isReady()||o().Log.warn("Storage is not ready. Override removal may not persist.")}removeGateOverride(e){this._warnIfStorageNotReady(),delete this._overrides.gate[e],delete this._overrides.gate[(0,o()._DJB2)(e)],this._saveOverridesToStorage()}getGateOverride(e,t){var n;const r=null!==(n=this._overrides.gate[e.name])&&void 0!==n?n:this._overrides.gate[(0,o()._DJB2)(e.name)];return null==r?null:Object.assign(Object.assign({},e),{value:r,details:Object.assign(Object.assign({},e.details),{reason:i})})}overrideDynamicConfig(e,t){this._overrides.dynamicConfig[e]=t,this._overrides.dynamicConfig[(0,o()._DJB2)(e)]=t,this._saveOverridesToStorage()}removeDynamicConfigOverride(e){this._warnIfStorageNotReady(),delete this._overrides.dynamicConfig[e],delete this._overrides.dynamicConfig[(0,o()._DJB2)(e)],this._saveOverridesToStorage()}getDynamicConfigOverride(e,t){return this._getConfigOverride(e,this._overrides.dynamicConfig)}overrideExperiment(e,t){this._overrides.experiment[e]=t,this._overrides.experiment[(0,o()._DJB2)(e)]=t,this._saveOverridesToStorage()}removeExperimentOverride(e){this._warnIfStorageNotReady(),delete this._overrides.experiment[e],delete this._overrides.experiment[(0,o()._DJB2)(e)],this._saveOverridesToStorage()}getExperimentOverride(e,t){return this._getConfigOverride(e,this._overrides.experiment)}overrideLayer(e,t){this._overrides.layer[e]=t,this._overrides.layer[(0,o()._DJB2)(e)]=t,this._saveOverridesToStorage()}removeLayerOverride(e){this._warnIfStorageNotReady(),delete this._overrides.layer[e],delete this._overrides.layer[(0,o()._DJB2)(e)],this._saveOverridesToStorage()}getAllOverrides(){return JSON.parse(JSON.stringify(this._overrides))}removeAllOverrides(){this._warnIfStorageNotReady(),this._overrides={gate:{},dynamicConfig:{},experiment:{},layer:{}},this._saveOverridesToStorage()}getLayerOverride(e,t){var n;const r=null!==(n=this._overrides.layer[e.name])&&void 0!==n?n:this._overrides.layer[(0,o()._DJB2)(e.name)];return null==r?null:Object.assign(Object.assign({},e),{__value:r,get:(0,o()._makeTypedGet)(e.name,r),details:Object.assign(Object.assign({},e.details),{reason:i})})}_getConfigOverride(e,t){var n;const r=null!==(n=t[e.name])&&void 0!==n?n:t[(0,o()._DJB2)(e.name)];return null==r?null:Object.assign(Object.assign({},e),{value:r,get:(0,o()._makeTypedGet)(e.name,r),details:Object.assign(Object.assign({},e.details),{reason:i})})}_hasInMemoryOverrides(){return Object.keys(this._overrides.gate).length>0||Object.keys(this._overrides.dynamicConfig).length>0||Object.keys(this._overrides.experiment).length>0||Object.keys(this._overrides.layer).length>0}}},540343:function(e,t){var n,r,o;!function(i,a){"use strict";r=[],void 0===(o="function"==typeof(n=function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],i=["fileName","functionName","source"],a=["args"],s=["evalOrigin"],l=r.concat(o,i,a,s);function u(e){if(e)for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},547307:(e,t,n)=>{e.exports=function(e,t){return n(983120)(n(455378)(e,t),1)}},563528:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(908128),t)},569193:(e,t,n)=>{"use strict";n.d(t,{V1:()=>r});function r(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}},590179:(e,t,n)=>{var r=n(538816)((function(e,t){var r={};if(null==e)return r;var o=!1;t=n(634932)(t,(function(t){return t=n(831769)(t,e),o||(o=t.length>1),t})),n(921791)(e,n(483349)(e),r),o&&(r=n(509999)(r,7,n(653138)));for(var i=t.length;i--;)n(419931)(r,t[i]);return r}));e.exports=r},592701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._notifyVisibilityChanged=t._subscribeToVisiblityChanged=t._isUnloading=t._isCurrentlyVisible=void 0;const r=()=>n(600414),o="foreground",i="background",a=[];let s=o,l=!1;t._isCurrentlyVisible=()=>s===o;t._isUnloading=()=>l;t._subscribeToVisiblityChanged=e=>{a.unshift(e)};t._notifyVisibilityChanged=e=>{e!==s&&(s=e,a.forEach((t=>t(e))))},(0,r()._addWindowEventListenerSafe)("focus",(()=>{l=!1,(0,t._notifyVisibilityChanged)(o)})),(0,r()._addWindowEventListenerSafe)("blur",(()=>(0,t._notifyVisibilityChanged)(i))),(0,r()._addDocumentEventListenerSafe)("visibilitychange",(()=>{(0,t._notifyVisibilityChanged)("visible"===document.visibilityState?o:i)})),(0,r()._addWindowEventListenerSafe)((0,r()._getUnloadEvent)(),(()=>{l=!0,(0,t._notifyVisibilityChanged)(i)}))},600414:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getUnloadEvent=t._getCurrentPageUrlSafe=t._addDocumentEventListenerSafe=t._addWindowEventListenerSafe=t._isServerEnv=t._getDocumentSafe=t._getWindowSafe=void 0;t._getWindowSafe=()=>"undefined"!=typeof window?window:null;t._getDocumentSafe=()=>{var e;const n=(0,t._getWindowSafe)();return null!==(e=null==n?void 0:n.document)&&void 0!==e?e:null};t._isServerEnv=()=>{if(null!==(0,t._getDocumentSafe)())return!1;const e="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;return"string"==typeof EdgeRuntime||e};t._addWindowEventListenerSafe=(e,n)=>{const r=(0,t._getWindowSafe)();"function"==typeof(null==r?void 0:r.addEventListener)&&r.addEventListener(e,n)};t._addDocumentEventListenerSafe=(e,n)=>{const r=(0,t._getDocumentSafe)();"function"==typeof(null==r?void 0:r.addEventListener)&&r.addEventListener(e,n)};t._getCurrentPageUrlSafe=()=>{var e;try{return null===(e=(0,t._getWindowSafe)())||void 0===e?void 0:e.location.href.split(/[?#]/)[0]}catch(n){return}};t._getUnloadEvent=()=>{const e=(0,t._getWindowSafe)();if(!e)return"beforeunload";return"onpagehide"in e?"pagehide":"beforeunload"}},601638:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._setObjectInStorage=t._getObjectFromStorage=t.Storage=void 0;const r={},o={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:e=>r[e]?r[e]:null,setItem:(e,t)=>{r[e]=t},removeItem:e=>{delete r[e]},getAllKeys:()=>Object.keys(r)};let i=null;try{const e=(0,n(600414)._getWindowSafe)();e&&e.localStorage&&"function"==typeof e.localStorage.getItem&&(i={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:t=>e.localStorage.getItem(t),setItem:(t,n)=>e.localStorage.setItem(t,n),removeItem:t=>e.localStorage.removeItem(t),getAllKeys:()=>Object.keys(e.localStorage)})}catch(u){n(668024).Log.warn("Failed to setup localStorageProvider.")}let a=null!=i?i:o,s=a;function l(e){try{return e()}catch(u){if(u instanceof Error&&"SecurityError"===u.name)return t.Storage._setProvider(o),null;if(u instanceof Error&&"QuotaExceededError"===u.name){const n=t.Storage.getAllKeys().filter((e=>e.startsWith("statsig.")));u.message=`${u.message}. Statsig Keys: ${n.length}`}throw u}}t.Storage={isReady:()=>s.isReady(),isReadyResolver:()=>s.isReadyResolver(),getProviderName:()=>s.getProviderName(),getItem:e=>l((()=>s.getItem(e))),setItem:(e,t)=>l((()=>s.setItem(e,t))),removeItem:e=>s.removeItem(e),getAllKeys:()=>s.getAllKeys(),_setProvider:e=>{a=e,s=e},_setDisabled:e=>{s=e?o:a}},t._getObjectFromStorage=function(e){const n=t.Storage.getItem(e);return JSON.parse(null!=n?n:"null")},t._setObjectInStorage=function(e,n){t.Storage.setItem(e,JSON.stringify(n))}},611741:(e,t,n)=>{e.exports=function(e){return n(198023)(e)&&e!=+e}},636978:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Storage=t.Log=t.EventLogger=t.Diagnostics=void 0,n(843509);Object.defineProperty(t,"Diagnostics",{enumerable:!0,get:function(){return n(230882).Diagnostics}});Object.defineProperty(t,"EventLogger",{enumerable:!0,get:function(){return n(85434).EventLogger}});const i=()=>n(668024);Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return i().Log}});Object.defineProperty(t,"Storage",{enumerable:!0,get:function(){return n(601638).Storage}}),o(n(843509),t),o(n(894681),t),o(n(658683),t),o(n(385638),t),o(n(230882),t),o(n(54387),t),o(n(14358),t),o(n(543194),t),o(n(286913),t),o(n(483918),t),o(n(757061),t),o(n(668024),t),o(n(240843),t),o(n(12610),t),o(n(244703),t),o(n(882509),t),o(n(905025),t),o(n(600414),t),o(n(810686),t),o(n(339839),t),o(n(32626),t),o(n(84351),t),o(n(971180),t),o(n(512166),t),o(n(37253),t),o(n(146512),t),o(n(647754),t),o(n(968474),t),o(n(709851),t),o(n(99652),t),o(n(81570),t),o(n(601638),t),o(n(953705),t),o(n(690010),t),o(n(188873),t),o(n(537047),t),o(n(592701),t),o(n(251148),t),o(n(895747),t),Object.assign((0,n(843509)._getStatsigGlobal)(),{Log:i().Log,SDK_VERSION:n(146512).SDK_VERSION})},647754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingEnabledOption=t.LogEventCompressionMode=void 0,t.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"},t.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"}},658683:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},660457:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t._fetchTxtRecords=void 0;const r=new Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101,116,115,3,111,114,103,0,0,16,0,1]),o=["i","e","d"],i=200;t._fetchTxtRecords=function(e){return n(this,void 0,void 0,(function*(){const t=yield e("https://cloudflare-dns.com/dns-query",{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:r});if(!t.ok){const e=new Error("Failed to fetch TXT records from DNS");throw e.name="DnsTxtFetchError",e}const n=yield t.arrayBuffer();return function(e){const t=e.findIndex(((t,n)=>n{var r=/[\\^$.*+?()[\]{}|]/g,o=RegExp(r.source);e.exports=function(e){return(e=n(213222)(e))&&o.test(e)?e.replace(r,"\\$&"):e}},668024:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Log=t.LogLevel=void 0;function n(e){return e.unshift("[Statsig]"),e}t.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class r{static info(...e){r.level>=t.LogLevel.Info&&console.info(" INFO ",...n(e))}static debug(...e){r.level>=t.LogLevel.Debug&&console.debug(" DEBUG ",...n(e))}static warn(...e){r.level>=t.LogLevel.Warn&&console.warn(" WARN ",...n(e))}static error(...e){r.level>=t.LogLevel.Error&&console.error(" ERROR ",...n(e))}}t.Log=r,r.level=t.LogLevel.Warn},681335:(e,t,n)=>{"use strict";n.d(t,{LV:()=>f,p:()=>c});const r=Symbol("Comlink.proxy"),o=Symbol("Comlink.endpoint"),i=Symbol("Comlink.releaseProxy"),a=Symbol("Comlink.finalizer"),s=Symbol("Comlink.thrown"),l=e=>"object"==typeof e&&null!==e||"function"==typeof e,u=new Map([["proxy",{canHandle:e=>l(e)&&e[r],serialize(e){const{port1:t,port2:n}=new MessageChannel;return c(e,t),[n,[n]]},deserialize:e=>(e.start(),f(e))}],["throw",{canHandle:e=>l(e)&&s in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function c(e,t=globalThis,n=["*"]){t.addEventListener("message",(function o(i){if(!i||!i.data)return;if(!function(e,t){for(const n of e){if(t===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}return!1}(n,i.origin))return void console.warn(`Invalid origin '${i.origin}' for comlink proxy`);const{id:l,type:u,path:f}=Object.assign({path:[]},i.data),p=(i.data.argumentList||[]).map(w);let h;try{const t=f.slice(0,-1).reduce(((e,t)=>e[t]),e),n=f.reduce(((e,t)=>e[t]),e);switch(u){case"GET":h=n;break;case"SET":t[f.slice(-1)[0]]=w(i.data.value),h=!0;break;case"APPLY":h=n.apply(t,p);break;case"CONSTRUCT":h=function(e){return Object.assign(e,{[r]:!0})}(new n(...p));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;c(e,n),h=function(e,t){return _.set(e,t),e}(t,[t])}break;case"RELEASE":h=void 0;break;default:return}}catch(v){h={value:v,[s]:0}}Promise.resolve(h).catch((e=>({value:e,[s]:0}))).then((n=>{const[r,i]=b(n);t.postMessage(Object.assign(Object.assign({},r),{id:l}),i),"RELEASE"===u&&(t.removeEventListener("message",o),d(t),a in e&&"function"==typeof e[a]&&e[a]())})).catch((e=>{const[n,r]=b({value:new TypeError("Unserializable return value"),[s]:0});t.postMessage(Object.assign(Object.assign({},n),{id:l}),r)}))})),t.start&&t.start()}function d(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function f(e,t){const n=new Map;return e.addEventListener("message",(function(e){const{data:t}=e;if(!t||!t.id)return;const r=n.get(t.id);if(r)try{r(t)}finally{n.delete(t.id)}})),m(e,n,[],t)}function p(e){if(e)throw new Error("Proxy has been released and is not useable")}function h(e){return S(e,new Map,{type:"RELEASE"}).then((()=>{d(e)}))}const v=new WeakMap,g="FinalizationRegistry"in globalThis&&new FinalizationRegistry((e=>{const t=(v.get(e)||0)-1;v.set(e,t),0===t&&h(e)}));function m(e,t,n=[],r=function(){}){let a=!1;const s=new Proxy(r,{get(r,o){if(p(a),o===i)return()=>{!function(e){g&&g.unregister(e)}(s),h(e),t.clear(),a=!0};if("then"===o){if(0===n.length)return{then:()=>s};const r=S(e,t,{type:"GET",path:n.map((e=>e.toString()))}).then(w);return r.then.bind(r)}return m(e,t,[...n,o])},set(r,o,i){p(a);const[s,l]=b(i);return S(e,t,{type:"SET",path:[...n,o].map((e=>e.toString())),value:s},l).then(w)},apply(r,i,s){p(a);const l=n[n.length-1];if(l===o)return S(e,t,{type:"ENDPOINT"}).then(w);if("bind"===l)return m(e,t,n.slice(0,-1));const[u,c]=y(s);return S(e,t,{type:"APPLY",path:n.map((e=>e.toString())),argumentList:u},c).then(w)},construct(r,o){p(a);const[i,s]=y(o);return S(e,t,{type:"CONSTRUCT",path:n.map((e=>e.toString())),argumentList:i},s).then(w)}});return function(e,t){const n=(v.get(t)||0)+1;v.set(t,n),g&&g.register(e,t,e)}(s,e),s}function y(e){const t=e.map(b);return[t.map((e=>e[0])),(n=t.map((e=>e[1])),Array.prototype.concat.apply([],n))];var n}const _=new WeakMap;function b(e){for(const[t,n]of u)if(n.canHandle(e)){const[r,o]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},o]}return[{type:"RAW",value:e},_.get(e)||[]]}function w(e){switch(e.type){case"HANDLER":return u.get(e.name).deserialize(e.value);case"RAW":return e.value}}function S(e,t,n,r){return new Promise((o=>{const i=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");t.set(i,o),e.start&&e.start(),e.postMessage(Object.assign({id:i},n),r)}))}},688055:(e,t,n)=>{e.exports=function(e){return n(509999)(e,5)}},690010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._isTypeMatch=t._typeOf=void 0,t._typeOf=function(e){return Array.isArray(e)?"array":typeof e},t._isTypeMatch=function(e,t){const n=e=>Array.isArray(e)?"array":typeof e;return n(e)===n(t)}},706442:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(296540),o=n(38798),i=n(124184);function a(){var e=r.useContext(o.ob);return(0,i.HM)(e),e}},709851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeTypedGet=t._mergeOverride=t._makeLayer=t._makeExperiment=t._makeDynamicConfig=t._makeFeatureGate=void 0;const r=()=>n(668024),o=()=>n(690010);function i(e,t,n,r){var o;return{name:e,details:t,ruleID:null!==(o=null==n?void 0:n.rule_id)&&void 0!==o?o:"",__evaluation:n,value:r}}function a(e,t,n){var r;const o=null!==(r=null==n?void 0:n.value)&&void 0!==r?r:{};return Object.assign(Object.assign({},i(e,t,n,o)),{get:s(e,null==n?void 0:n.value)})}function s(e,t,n){return(i,a)=>{var s;const l=null!==(s=null==t?void 0:t[i])&&void 0!==s?s:null;return null==l?null!=a?a:null:null==a||(0,o()._isTypeMatch)(l,a)?(null==n||n(i),l):(r().Log.warn(`Parameter type mismatch. '${e}.${i}' was found to be type '${typeof l}' but fallback/return type is '${typeof a}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),null!=a?a:null)}}t._makeFeatureGate=function(e,t,n){var r;return Object.assign(Object.assign({},i(e,t,n,!0===(null==n?void 0:n.value))),{idType:null!==(r=null==n?void 0:n.id_type)&&void 0!==r?r:null})},t._makeDynamicConfig=a,t._makeExperiment=function(e,t,n){var r;const o=a(e,t,n);return Object.assign(Object.assign({},o),{groupName:null!==(r=null==n?void 0:n.group_name)&&void 0!==r?r:null})},t._makeLayer=function(e,t,n,r){var o,a;return Object.assign(Object.assign({},i(e,t,n,void 0)),{get:s(e,null==n?void 0:n.value,r),groupName:null!==(o=null==n?void 0:n.group_name)&&void 0!==o?o:null,__value:null!==(a=null==n?void 0:n.value)&&void 0!==a?a:{}})},t._mergeOverride=function(e,t,n,r){return Object.assign(Object.assign(Object.assign({},e),t),{get:s(e.name,n,r)})},t._makeTypedGet=s},717344:(e,t,n)=>{"use strict";function r(e,...t){if(!((n=e)instanceof Uint8Array||ArrayBuffer.isView(n)&&"Uint8Array"===n.constructor.name))throw new Error("Uint8Array expected");var n;if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function o(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function i(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function a(e,t){return e<<32-t|e>>>t}n.d(t,{sc:()=>g});function s(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}(e)),r(e),e}class l{clone(){return this._cloneInto()}}function u(e){const t=t=>e().update(s(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function c(e,t,n){return e&t^e&n^t&n}class d extends l{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=i(this.buffer)}update(e){o(this);const{view:t,buffer:n,blockLen:r}=this,a=(e=s(e)).length;for(let o=0;oa-l&&(this.process(n,0),l=0);for(let r=l;r>o&i),s=Number(n&i),l=r?4:0,u=r?0:4;e.setUint32(t+l,a,r),e.setUint32(t+u,s,r)}(n,a-8,BigInt(8*this.length),s),this.process(n,0);const u=i(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=c/4,f=this.get();if(d>f.length)throw new Error("_sha2: outputLen bigger than state");for(let r=0;r>>3,r=a(t,17)^a(t,19)^t>>>10;h[c]=r+h[c-7]+n+h[c-16]|0}let{A:n,B:r,C:o,D:i,E:s,F:l,G:u,H:d}=this;for(let v=0;v<64;v++){const e=d+(a(s,6)^a(s,11)^a(s,25))+((p=s)&l^~p&u)+f[v]+h[v]|0,t=(a(n,2)^a(n,13)^a(n,22))+c(n,r,o)|0;d=u,u=l,l=s,s=i+e|0,i=o,o=r,r=n,n=e+t|0}var p;n=n+this.A|0,r=r+this.B|0,o=o+this.C|0,i=i+this.D|0,s=s+this.E|0,l=l+this.F|0,u=u+this.G|0,d=d+this.H|0,this.set(n,r,o,i,s,l,u,d)}roundClean(){h.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const g=u((()=>new v))},729094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SpecStore=void 0;function r(e){return(0,n(636978)._typedJsonParse)(e,"has_updates","DownloadConfigSpecsResponse")}t.SpecStore=class{constructor(){this._rawValues=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._defaultEnvironment=null}getValues(){return this._rawValues?r(this._rawValues):null}getSource(){return this._source}getDefaultEnvironment(){return this._defaultEnvironment}setValuesFromDataAdapter(e){var t;if(!e)return;const n=r(e.data);!0===(null==n?void 0:n.has_updates)&&(this._lcut=n.time,this._receivedAt=e.receivedAt,this._source=e.source,this._values=n,this._rawValues=e.data,this._defaultEnvironment=null!==(t=n.default_environment)&&void 0!==t?t:null)}reset(){this._values=null,this._rawValues=null,this._source="Loading"}finalize(){this._values||(this._source="NoValues")}getSpecAndSourceInfo(e,t){var n;const r=this._getSpecs(e);return{spec:null!==(n=null==r?void 0:r.find((e=>e.name===t)))&&void 0!==n?n:null,source:this._source,lcut:this._lcut,receivedAt:this._receivedAt}}getParamStoreAndSourceInfo(e){var t,n,r;const o=null===(t=this._values)||void 0===t?void 0:t.param_stores;return{paramStoreConfig:null!==(r=null===(n=null==o?void 0:o[e])||void 0===n?void 0:n.parameters)&&void 0!==r?r:null,source:this._source,lcut:this._lcut,receivedAt:this._receivedAt}}_getSpecs(e){var t,n,r;switch(e){case"gate":return null===(t=this._values)||void 0===t?void 0:t.feature_gates;case"config":return null===(n=this._values)||void 0===n?void 0:n.dynamic_configs;case"layer":return null===(r=this._values)||void 0===r?void 0:r.layer_configs}}}},737530:(e,t,n)=>{var r=()=>n(761489);e.exports=function(e,t,o){var i=null==e?0:e.length;return i?(o&&"number"!=typeof o&&n(936800)(e,t,o)?(t=0,o=i):(t=null==t?0:r()(t),o=void 0===o?i:r()(o)),n(225160)(e,t,o)):[]}},738221:(e,t,n)=>{var r=()=>n(10124),o=()=>n(399374),i=Math.max,a=Math.min;e.exports=function(e,t,s){var l,u,c,d,f,p,h=0,v=!1,g=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,h=t,d=e.apply(r,n)}function _(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=c}function b(){var e=r()();if(_(e))return w(e);f=setTimeout(b,function(e){var n=t-(e-p);return g?a(n,c-(e-h)):n}(e))}function w(e){return f=void 0,m&&l?y(e):(l=u=void 0,d)}function S(){var e=r()(),n=_(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(b,t),v?y(e):d}(p);if(g)return clearTimeout(f),f=setTimeout(b,t),y(p)}return void 0===f&&(f=setTimeout(b,t)),d}return t=o()(t)||0,n(223805)(s)&&(v=!!s.leading,c=(g="maxWait"in s)?i(o()(s.maxWait)||0,t):c,m="trailing"in s?!!s.trailing:m),S.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=u=f=void 0},S.flush=function(){return void 0===f?d:w(r()())},S}},757061:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},762216:e=>{e.exports=function(e){return void 0===e}},763375:(e,t,n)=>{e.exports=function(e){return e&&e.length?n(855765)(e):[]}},766944:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA256=void 0;Object.defineProperty(t,"SHA256",{enumerable:!0,get:function(){return n(272669).SHA256}})},775084:(e,t)=>{"use strict";t.wE=function(e,t={}){const{encode:r=encodeURIComponent,delimiter:o=n}=t,i=f((e instanceof c?e:d(e,t)).tokens,o,r);return function(e={}){const[t,...n]=i(e);if(n.length)throw new TypeError(`Missing parameters: ${n.join(", ")}`);return t}},t.YW=function(e,t={}){const{decode:o=decodeURIComponent,delimiter:i=n}=t,{regexp:a,keys:s}=p(e,t),l=s.map((e=>!1===o?r:"param"===e.type?o:e=>e.split(i).map(o)));return function(e){const t=a.exec(e);if(!t)return!1;const n=t[0],r=Object.create(null);for(let o=1;oe,o=/^[$_\p{ID_Start}]$/u,i=/^[$\u200c\u200d\p{ID_Continue}]$/u,a="https://git.new/pathToRegexpError",s={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function l(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class u{constructor(e){this.tokens=e}peek(){if(!this._peek){const e=this.tokens.next();this._peek=e.value}return this._peek}tryConsume(e){const t=this.peek();if(t.type===e)return this._peek=void 0,t.value}consume(e){const t=this.tryConsume(e);if(void 0!==t)return t;const{type:n,index:r}=this.peek();throw new TypeError(`Unexpected ${n} at ${r}, expected ${e}: ${a}`)}text(){let e,t="";for(;e=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=e;return t}}class c{constructor(e){this.tokens=e}}function d(e,t={}){const{encodePath:n=r}=t,l=new u(function*(e){const t=[...e];let n=0;function r(){let e="";if(o.test(t[++n]))for(e+=t[n];i.test(t[++n]);)e+=t[n];else if('"'===t[n]){let r=n;for(;nfunction(e,t,n){if("text"===e.type)return()=>[e.value];if("group"===e.type){const r=f(e.tokens,t,n);return e=>{const[t,...n]=r(e);return n.length?[""]:[t]}}const o=n||r;if("wildcard"===e.type&&!1!==n)return n=>{const r=n[e.name];if(null==r)return["",e.name];if(!Array.isArray(r)||0===r.length)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[r.map(((t,n)=>{if("string"!=typeof t)throw new TypeError(`Expected "${e.name}/${n}" to be a string`);return o(t)})).join(t)]};return t=>{const n=t[e.name];if(null==n)return["",e.name];if("string"!=typeof n)throw new TypeError(`Expected "${e.name}" to be a string`);return[o(n)]}}(e,t,n)));return e=>{const t=[""];for(const n of o){const[r,...o]=n(e);t[0]+=r,t.push(...o)}return t}}function p(e,t={}){const{delimiter:r=n,end:o=!0,sensitive:i=!1,trailing:a=!0}=t,s=[],u=[],f=i?"":"i",p=(Array.isArray(e)?e:[e]).map((e=>e instanceof c?e:d(e,t)));for(const{tokens:n}of p)for(const e of h(n,0,[])){const t=v(e,r,s);u.push(t)}let g=`^(?:${u.join("|")})`;a&&(g+=`(?:${l(r)}$)?`),g+=o?"$":`(?=${l(r)}|$)`;return{regexp:new RegExp(g,f),keys:s}}function*h(e,t,n){if(t===e.length)return yield n;const r=e[t];if("group"===r.type){const o=n.slice();for(const n of h(r.tokens,0,o))yield*h(e,t+1,n)}else n.push(r);yield*h(e,t+1,n)}function v(e,t,n){let r="",o="",i=!0;for(let s=0;sn(636978);class i extends o().NetworkCore{constructor(e,t){super(e,t);const n=null==e?void 0:e.networkConfig;this._option=e,this._initializeUrlConfig=new(o().UrlConfiguration)(o().Endpoint._initialize,null==n?void 0:n.initializeUrl,null==n?void 0:n.api,null==n?void 0:n.initializeFallbackUrls)}fetchEvaluations(e,t,n,i,a){var s,l,u,c,d,f;return r(this,void 0,void 0,(function*(){const r=t?(0,o()._typedJsonParse)(t,"has_updates","InitializeResponse"):null;let p={user:i,hash:null!==(u=null===(l=null===(s=this._option)||void 0===s?void 0:s.networkConfig)||void 0===l?void 0:l.initializeHashAlgorithm)&&void 0!==u?u:"djb2",deltasResponseRequested:!1,full_checksum:null};if(null==r?void 0:r.has_updates){const e=(null==r?void 0:r.hash_used)!==(null!==(f=null===(d=null===(c=this._option)||void 0===c?void 0:c.networkConfig)||void 0===d?void 0:d.initializeHashAlgorithm)&&void 0!==f?f:"djb2");p=Object.assign(Object.assign({},p),{sinceTime:a&&!e?r.time:0,previousDerivedFields:"derived_fields"in r&&a?r.derived_fields:{},deltasResponseRequested:!0,full_checksum:r.full_checksum,partialUserMatchSinceTime:e?0:r.time})}return this._fetchEvaluations(e,r,p,n)}))}_fetchEvaluations(e,t,o,i){var a,s;return r(this,void 0,void 0,(function*(){const r=yield this.post({sdkKey:e,urlConfig:this._initializeUrlConfig,data:o,retries:2,isStatsigEncodable:!0,priority:i});if(204===(null==r?void 0:r.code))return'{"has_updates": false}';if(200!==(null==r?void 0:r.code))return null!==(a=null==r?void 0:r.body)&&void 0!==a?a:null;if(!0!==(null==t?void 0:t.has_updates)||!0!==(null===(s=r.body)||void 0===s?void 0:s.includes('"is_delta":true'))||!0!==o.deltasResponseRequested)return r.body;const l=(0,n(365694)._resolveDeltasResponse)(t,r.body);return"string"==typeof l?l:this._fetchEvaluations(e,t,Object.assign(Object.assign(Object.assign({},o),l),{deltasResponseRequested:!1}),i)}))}}t.default=i},788238:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(539950),t)},810686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SDKType=void 0;const n={};let r;t.SDKType={_get:e=>{var t;return(null!==(t=n[e])&&void 0!==t?t:"js-mono")+(null!=r?r:"")},_setClientType(e,t){n[e]=t},_setBindingType(e){r&&"-react"!==r||(r="-"+e)}}},814628:(e,t,n)=>{"use strict";var r=n(746518),o=n(836043);r({target:"Promise",stat:!0},{withResolvers:function(){var e=o.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},815287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var b=_.prototype=new y;b.constructor=_,v(b,m.prototype),b.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,k={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!E.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1{var r=Math.ceil,o=Math.max;e.exports=function(e,t,i){t=(i?n(936800)(e,t,i):void 0===t)?1:o(n(761489)(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var s=0,l=0,u=Array(r(a/t));s{"use strict";var r=n(296540),o=()=>n(169982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n