1var $Q=t=>Object.defineProperty(t,"__esModule",{value:!0}),$Q2=(t,e,i)=>Object.defineProperty(t,e,i),$P=(t,e)=>Object.assign(t,e),$A=()=>(t,e,i,n)=>new(i=i||Promise)(function(s,r){function a(t){try{l(n.next(t))}catch(t){r(t)}}function o(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?s(t.value):((e=t.value)instanceof i?e:new i(function(t){t(e)})).then(a,o)}l((n=n.apply(t,e||[])).next())});!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Statsig=e():t.Statsig=e()}(this,()=>(()=>{"use strict";var t={1845:(t,e,i)=>{var n;$Q2(e,"__esModule",{value:!0}),e.t=e.i=e.l=void 0;const s=i(7512);e.l=()=>{try{return"undefined"!=typeof __STATSIG__?__STATSIG__:l}catch(t){return l}},e.i=t=>(0,e.l)()[t],e.t=t=>{var i=(0,e.l)();return t?i.instances&&i.instances[t]:(i.instances&&1<Object.keys(i.instances).length&&s.Log.warn("Call made to Statsig global instance without an SDK key but there is more than one client instance. If you are using mulitple clients, please specify the SDK key."),i.firstInstance)};var r="__STATSIG__",a="undefined"!=typeof window?window:{},o=(i=void 0!==i.g?i.g:{},"undefined"!=typeof globalThis?globalThis:{});const l=null!=(n=null!=(n=null!=(n=a[r])?n:i[r])?n:o[r])?n:{instance:e.t};a[r]=l,i[r]=l,o[r]=l},7463:(t,e,i)=>{$Q(e),e.BatchQueue=void 0;const n=i(1956),s=i(4309);e.BatchQueue=class{constructor(t=s.EventRetryConstants.DEFAULT_BATCH_SIZE){this.Ci=[],this.Fi=t}batchSize(){return this.Fi}requeueBatch(t){return this.Ai(t)}hasFullBatch(){return this.Ci.some(t=>t.events.length>=this.Fi)}takeNextBatch(){return this.Ci.shift()}takeAllBatches(){var t=this.Ci;return this.Ci=[],t}createBatches(t){let e=0,i=0;for(;e<t.length;){var s=t.slice(e,e+this.Fi);i+=this.Ai(new n.EventBatch(s)),e+=this.Fi}return i}Ai(t){this.Ci.push(t);let e=0;for(;this.Ci.length>s.EventRetryConstants.MAX_PENDING_BATCHES;){var i=this.Ci.shift();i&&(e+=i.events.length)}return e}}},2137:(t,e,i)=>{$Q(e),e.o=e.u=void 0;const n=i(1406);function s(t,e,i){if(i)return i(t,e);const s=e&&e.customIDs?e.customIDs:{};return e=["uid:"+(null!=(i=null==e?void 0:e.userID)?i:""),"cids:"+Object.keys(s).sort((t,e)=>t.localeCompare(e)).map(t=>t+"-"+s[t]).join(","),"k:"+t],(0,n.h)(e.join("|"))}e.u=s,e.o=function(t,e,i){return e?s(t,e,i):(0,n.h)("k:"+t)}},6427:(t,e,i)=>{$Q(e),e.PrecomputedEvaluationsContextHandle=void 0;const n=i(7512),s=i(6830),r=i(4143),a=i(9122);e.PrecomputedEvaluationsContextHandle=class{constructor(t,e,i,n,s,r){this.j=t,this.Ri=e,this.Ni=i,this.Ui=n,this.Pi=s,this.Bi=r}get sdkKey(){return this.j}get options(){return this.Ri()}get errorBoundary(){return this.Ni()}get values(){return this.Ui()}get user(){let t=(0,s.Li)("StatsigUser",this.Pi());return null==t&&(n.Log.error("Failed to clone user"),t={}),t}getSession(t=!0){return r.StatsigSession.get(this.j,t)}get stableID(){return a.StableID.get(this.j)}get sdkInstanceID(){return this.Bi()}toContext(t=!0){return{sdkKey:this.sdkKey,options:this.options,values:this.values,user:this.user,errorBoundary:this.errorBoundary,session:this.getSession(t),stableID:this.stableID,sdkInstanceID:this.sdkInstanceID}}}},694:function(t,e,i){var n=this&&this.__awaiter||$A();$Q(e),e.v=e.DataAdapterCore=void 0;const s=i(7512),r=i(9122),a=i(8578),o=i(4534),l=i(3401);function u(t,e,i,n){return{source:t,data:e,receivedAt:Date.now(),stableID:i,fullUserHash:(0,a._)(n)}}e.DataAdapterCore=class{constructor(t,e){this.p=t,this.m=e,this.O=null,this.j=null,this.gn=10,this.S="statsig.last_modified_time."+e,this.k=new h}attach(t,e,i){this.j=t,this.O=e}getDataSync(t){t=t&&(0,a.D)(t,this.O);var e=this.I(t),i=this.k.get(e,t);return i&&this.M(i)?i:(i=this.T(e))&&this.M(i)?(this.k.add(e,i,this.gn),this.k.get(e,t)):null}setData(t,e){e=e&&(0,a.D)(e,this.O);var i=this.I(e);this.k.add(i,u("Bootstrap",t,null,e),this.gn)}M(t){return null==t.stableID||t.stableID===r.StableID.get(this.N())}C(t,e,i){return n(this,void 0,void 0,function*(){o.Storage.isReady()||(yield o.Storage.isReadyResolver());var n=null!=t?t:this.getDataSync(e);n=[this.R(n,e,i)];return null!=i&&i.timeoutMs&&n.push(new Promise(t=>setTimeout(t,i.timeoutMs)).then(()=>(s.Log.debug("Fetching latest value timed out"),null))),yield Promise.race(n)})}U(t,e){return n(this,void 0,void 0,function*(){var i=t&&(0,a.D)(t,this.O),n=this.I(i);(i=yield this.C(null,i,e))&&this.k.add(n,$P($P({},i),{source:"Prefetch"}),this.gn)})}R(t,e,i){return n(this,void 0,void 0,function*(){var n=null!=(n=null==t?void 0:t.data)?n:null,a=null!=t&&this.A(t,e);if(!(a=yield this.F(n,e,i,a)))return s.Log.debug("No response returned for latest value"),null;var o=(0,l.P)(a,"has_updates","Response"),h=this.N();h=r.StableID.get(h);let d=null;if(!0===(null==o?void 0:o.has_updates))d=u("Network",a,h,e);else{if(!n||!1!==(null==o?void 0:o.has_updates))return null;d=u("NetworkNotModified",n,h,e)}return a=this.I(e),this.k.add(a,d,this.gn),this.L(a,d),d})}N(){return null!=this.j?this.j:(s.Log.error(this.p+" is not attached to a Client"),"")}T(t){var e=null==(e=o.Storage.getItem)?void 0:e.call(o.Storage,t);return null!=e&&(t=(0,l.P)(e,"source","Cached Result"))?$P($P({},t),{source:"Cache"}):null}L(t,e){var i=JSON.stringify(e);for(let n=0;n<8;n++)try{o.Storage.setItem(t,i);break}catch(e){if(!(e instanceof Error)||!e.toString().includes("QuotaExceededError")&&!e.toString().includes("QUOTA_EXCEEDED_ERR")||this.gn<=1)throw e;this.gn=Math.ceil(this.gn/2),this.q(t,this.gn-1)}this.q(t)}q(t,e=this.gn){var i=null!=(n=(0,o.K)(this.S))?n:{},n=(i[t]=Date.now(),d(i,e));for(const t of n)delete i[t],o.Storage.removeItem(t);(0,o.B)(this.S,i)}},e.v=u;class h{constructor(){this.$={}}get(t,e){var i=null==(t=this.$[t])?void 0:t.stableID;return(e=null==(e=null==e?void 0:e.customIDs)?void 0:e.stableID)&&i&&e!==i?(s.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):t}add(t,e,i){for(const t of d(this.$,i-1))delete this.$[t];this.$[t]=e}merge(t){this.$=$P($P({},this.$),t)}}function d(t,e){var i=Object.keys(t);return i.length<=e?[]:0===e?i:i.sort((e,i)=>(e=t[e],i=t[i],"object"==typeof e&&"object"==typeof i?e.receivedAt-i.receivedAt:e-i)).slice(0,i.length-e)}},8962:(t,e)=>
1{$Q2(e,"__esModule",{value:!0}),e.Diagnostics=void 0;const i=new Map,n="start";function s(t,e,i,n){return $P({key:i,action:e,step:n,timestamp:Date.now()},t)}function r(t,e){var n=null!=(n=i.get(t))?n:[];n.push(e),i.set(t,n)}function a(t,e){if(e in t)return t[e]}e.Diagnostics={V:t=>i.get(t),G:t=>{r(t,s({},n,"overall"))},J:(t,e,i)=>{r(t,s({success:e,error:e?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:i},"end","overall"))},W:(t,e)=>{r(t,s(e,n,"initialize","network_request"))},Y:(t,e)=>{r(t,s(e,"end","initialize","network_request"))},X:t=>{r(t,s({},n,"initialize","process"))},H:(t,e)=>{r(t,s(e,"end","initialize","process"))},Z:t=>{i.delete(t)},tt(t){if(t&&"object"==typeof t)return{code:a(t,"code"),name:a(t,"name"),message:a(t,"message")}},et:(t,i,n,s)=>({success:!0===(null==t?void 0:t.ok),statusCode:null==t?void 0:t.status,sdkRegion:null==(t=null==t?void 0:t.headers)?void 0:t.get("x-statsig-region"),isDelta:!0===n.includes('"is_delta":true')||void 0,attempt:i,error:e.Diagnostics.tt(s)}),it(t,i,n,s){var r,a=e.Diagnostics.V(n);return null==a||a.length<=0?-1:(r=a[a.length-1].timestamp-a[0].timestamp,e.Diagnostics.Z(n),n=function(t,e){return t={eventName:"statsig::diagnostics",user:t,value:null,metadata:e,time:Date.now()}}(t,{context:"initialize",markers:a.slice(),statsigOptions:s}),i.enqueue(n),r)}}},8809:function(t,e){var i=this&&this.__awaiter||$A();$Q(e),e.nt=void 0;const n=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]),s=["i","e","d"];e.nt=function(t){return i(this,void 0,void 0,function*(){if((i=yield t("https://cloudflare-dns.com/dns-query",{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:n})).ok){var e,i=yield i.arrayBuffer();{var r=i=new Uint8Array(i);i=r.findIndex((t,e)=>e<200&&"="===String.fromCharCode(t)&&s.includes(String.fromCharCode(r[e-1])));if(-1===i)throw(e=new Error("Failed to parse TXT records from DNS")).name="DnsTxtParseError",e;let t="";for(let e=i-1;e<r.length;e++)t+=String.fromCharCode(r[e]);return t.split(",")}}throw(e=new Error("Failed to fetch TXT records from DNS")).name="DnsTxtFetchError",e})}},3539:(t,e)=>{$Q(e)},5542:function(t,e,i){var n=this&&this.__awaiter||$A();$Q2(e,"__esModule",{value:!0}),e.ErrorBoundary=e.EXCEPTION_ENDPOINT=void 0;const s=i(7512),r=i(5902),a=i(8e3),o=(e.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception","[Statsig] UnknownError");function l(t){return t instanceof Error?t:"string"==typeof t?new Error(t):new Error("An unknown error occurred.")}e.ErrorBoundary=class{constructor(t,e,i,n){this.j=t,this.O=e,this.st=i,this.rt=n,this.lt=new Set}wrap(t,e){try{const i=t;(function(t){const e=new Set;let i=Object.getPrototypeOf(t);for(;i&&i!==Object.prototype;)Object.getOwnPropertyNames(i).filter(t=>"function"==typeof(null==i?void 0:i[t])).forEach(t=>e.add(t)),i=Object.getPrototypeOf(i);return Array.from(e)})(i).forEach(n=>{const s=i[n];"$EB"in s||(i[n]=(...i)=>this.ot(e?e+":"+n:n,()=>s.apply(t,i)),i[n].$EB=!0)})}catch(t){this.ut("eb:wrap",t)}}logError(t,e){this.ut(t,e)}logDroppedEvents(t,e,i){const n={eventCount:String(t),reason:e};
vendor: 21,020 bytes, line 1
1i&&Object.keys(i).forEach(t=>{n[t]=String(i[t])}),this.ut("statsig::log_event_dropped_event_count",new Error(e),!0,n)}logEventRequestFailure(t,e,i,n,s,r,a,o,l){const u={eventCount:String(t),flushType:i,statusCode:String(n),reason:e,retries:String(s)};r&&(u.failurePath=r),"string"==typeof a&&0<a.length&&(u.failureErrorMessage=a),"string"==typeof o&&0<o.length&&(u.failureDiagnosticBucket=o),l&&Object.keys(l).forEach(t=>{var e=l[t];0<e.length&&(u["failureDiagnostic_"+t]=e)}),this.ut("statsig::log_event_failed",new Error(e),!0,u)}getLastSeenErrorAndReset(){var t=this.rt;return this.rt=void 0,null!=t?t:null}attachErrorIfNoneExists(t){this.rt||(this.rt=l(t))}ot(t,e){try{var i=e();return i&&i instanceof Promise?i.catch(e=>this.ut(t,e)):i}catch(e){return this.ut(t,e),null}}ut(t,i,u=!1,h){try{s.Log.warn("Caught error in "+t,{error:i}),n(this,void 0,void 0,function*(){var n,s=i||Error(o),d=s instanceof Error,c=d?s.name:"No Name",g=l(s);this.rt=g,!u&&this.lt.has(c)||(this.lt.add(c),null!=(g=null==(g=this.O)?void 0:g.networkConfig)&&g.preventAllNetworkTraffic?null!=(g=this.st)&&g.call(this,{name:"error",error:i,tag:t}):(g=r.SDKType.ct(this.j),n=a.StatsigMetadataProvider.get(),d=d?s.stack:function(t){try{return JSON.stringify(t)}catch(t){return o}}(s),s=$P($P({tag:t,exception:c,info:d,statsigOptions:function(t){if(!t)return{};const e={};return Object.keys(t).forEach(i=>{var n=i,s=t[n];switch(typeof s){case"number":case"bigint":case"boolean":e[String(n)]=s;break;case"string":s.length<50?e[String(n)]=s:e[String(n)]="set";break;case"object":"environment"===n?e.environment=s:"networkConfig"===n?e.networkConfig=s:e[String(n)]=null!=s?"set":"unset"}}),e}(this.O)},$P($P({},n),{sdkType:g})),null!=h?h:{}),yield(null!=(c=null==(d=null==(c=this.O)?void 0:c.networkConfig)?void 0:d.networkOverrideFunc)?c:fetch)(null!=(c=null==d?void 0:d.sdkExceptionUrl)?c:e.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this.j,"STATSIG-SDK-TYPE":String(g),"STATSIG-SDK-VERSION":String(n.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(s)}),null!=(d=this.st)&&d.call(this,{name:"error",error:i,tag:t})))}).then(()=>{}).catch(()=>{})}catch(t){}}}},2922:(t,e)=>{$Q(e)},2417:(t,e)=>{$Q(e)},1956:(t,e)=>{$Q(e),e.EventBatch=void 0,e.EventBatch=class{constructor(t){this.attempts=0,this.createdAt=Date.now(),this.events=t}incrementAttempts(){this.attempts++}}},7770:function(t,e,i){var n=this&&this.__awaiter||$A();$Q(e),e.EventLogger=void 0;const s=i(7463),r=i(2137),a=i(4309),o=i(4312),l=i(1406),u=i(7512),h=i(7410),d=i(1228),c=i(6830),g=i(1637),v=i(586),f=i(4534),p=i(1881),m=i(2397),_={};class y{static ht(t){null!=(t=_[t])&&t.flush().catch(()=>{})}constructor(t,e,i,n,s){this.j=t,this.st=e,this.ft=i,this.O=n,this.te=s,this.qi=null,this.zi=null,this.Ki=null,this._t={},this.bt={},this.$i=!1,this.Gi=null,this.Vi=null,this.jt=null!=(t=null==n?void 0:n.loggingEnabled)?t:!0===(null==n?void 0:n.disableLogging)?v.LoggingEnabledOption.disabled:v.LoggingEnabledOption.browserOnly,null!=n&&n.loggingEnabled&&void 0!==n.disableLogging&&u.Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging."),e=null==n?void 0:n.networkConfig,this.wt=new p.UrlConfiguration(h.Endpoint.kt,null==e?void 0:e.logEventUrl,null==e?void 0:e.api,null==e?void 0:e.logEventFallbackUrls)}setLogEventCompressionMode(t){this.Ki?this.Ki.setLogEventCompressionMode(t):this.Vi=t}setLoggingEnabled(t){var e="disabled"===this.jt,i="disabled"!==t;this.jt=t,this.Ki&&this.Ki.setLoggingEnabled(t),e&&i&&(t=this.Ji(),u.Log.debug(`Loaded ${t.length} stored event(s) from storage`),0<t.length)&&(t.forEach(t=>{this.Wi().addEvent(t)}),this.flush().catch(t=>{u.Log.warn("Failed to flush events after enabling logging:",t)}))}enqueue(t){this.Et(t)&&(t=this.Qi(t),"disabled"===this.jt?this.Xi(t):(this.Wi().addEvent(t),null!=(t=this.Ki)&&t.checkQuickFlush()))}incrementNonExposureCount(t){var e=null!=(e=this.bt[t])?e:0;this.bt[t]=e+1}reset(){this.flush().catch(()=>{}),this._t={}}start(){var t,e=(0,c.Mt)();if(!e||"always"===(null==(t=this.O)?void 0:t.loggingEnabled)){const t=this.Wi();_[this.j]=this,e||(0,m.xt)(e=>{"background"===e?y.ht(this.j):"foreground"===e&&t.startScheduledFlushCycle()}),t.loadAndRetryShutdownFailedEvents().catch(t=>{u.Log.warn("Failed to load failed shutdown events:",t)}),t.startScheduledFlushCycle()}}stop(){return n(this,void 0,void 0,function*(){this.$i=!0,this.Ki&&(yield this.Ki.processShutdown()),delete _[this.j],this.Ki=null,this.qi=null,this.zi=null})}flush(){return n(this,void 0,void 0,function*(){if(this.Ki)return this.Ki.processManualFlush()})}appendAndResetNonExposedChecks(){var t;0!==Object.keys(this.bt).length&&(t=$P({},this.bt),this.bt={},t=this.Qi({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:t}}),this.Ki)&&this.Ki.addEvent(t)}Et(t){if("always"!==(null==(e=this.O)?void 0:e.loggingEnabled)&&(0,c.Mt)())return!1;if((0,g.Ut)(t)){var e=t.user||{statsigEnvironment:void 0},i=(e=(0,r.u)(this.j,e),t.metadata||{});t=[t.eventName,e,i.gate,i.config,i.ruleID,i.allocatedExperiment,i.parameterName,String(i.isExplicitParameter),i.reason].join("|"),e=this._t[t],i=Date.now();if(e&&i-e<6e5)return!1;1e3<Object.keys(this._t).length&&(this._t={}),this._t[t]=i}return!0}qt(){var t;if(!1!==(null==(t=this.O)?void 0:t.includeCurrentPageUrlWithEvents))return(0,c.Kt)()}o(){return this.Gi||(this.Gi="statsig.pending_events."+(0,l.h)(this.j)),this.Gi}Wi(){var t;return this.Ki||(t=null!=(t=null==(t=this.O)?void 0:t.loggingBufferMaxSize)?t:a.EventRetryConstants.DEFAULT_BATCH_SIZE,this.qi=new d.PendingEvents(t),this.zi=new s.BatchQueue(t),this.Ki=new o.FlushCoordinator(this.zi,this.qi,()=>this.appendAndResetNonExposedChecks(),this.j,this.ft,this.st,this.wt,this.O,this.jt,this.te),this.Vi&&(this.Ki.setLogEventCompressionMode(this.Vi),this.Vi=null)),this.Ki}Xi(t){var e=this.o();try{let i=this.Hi(e);i.push(t),i.length>a.EventRetryConstants.MAX_LOCAL_STORAGE&&(i=i.slice(-a.EventRetryConstants.MAX_LOCAL_STORAGE)),(0,f.B)(e,i)}catch(t){u.Log.warn("Unable to save events to storage")}}Hi(t){try{var e=(0,f.K)(t);return Array.isArray(e)?e:[]}catch(t){return[]}}Ji(){var t=this.o(),e=this.Hi(t);return 0<e.length&&f.Storage.removeItem(t),e}Qi(t){t.user&&(t.user=$P({},t.user),delete t.user.privateAttributes);var e={},i=this.qt();return i&&(e.statsigMetadata={currentPage:i}),$P($P({},t),e)}}e.EventLogger=y},4309:(t,e)=>{$Q(e),e.EventRetryConstants=void 0,e.EventRetryConstants={MAX_RETRY_ATTEMPTS:8,DEFAULT_BATCH_SIZE:100,MAX_PENDING_BATCHES:40,TICK_INTERVAL_MS:1e3,QUICK_FLUSH_WINDOW_MS:200,MAX_LOCAL_STORAGE:500,get MAX_QUEUED_EVENTS(){return this.DEFAULT_BATCH_SIZE*this.MAX_PENDING_BATCHES}}},6351:function(t,e,i){var n=this&&this.__awaiter||$A();$Q(e),e.EventSender=void 0;const s=i(7512),r=i(7410),a=i(5902),o=i(8e3),l=i(2397);e.EventSender=class{constructor(t,e,i,n,s){this.j=t,this.ft=e,this.st=i,this.O=s,this.wt=n}setLogEventCompressionMode(t){this.ft.setLogEventCompressionMode(t)}sendBatch(t){return n(this,void 0,void 0,function*(){var e,i;let n="event_sender_unexpected_exception";var r={};try{var a=(0,l.Ft)()&&this.ft.isBeaconSupported()&&null==(null==(e=null==(i=this.O)?void 0:i.networkConfig)?void 0:e.networkOverrideFunc),o=(n="event_sender_pre_logs_flushed_emitter_exception",this.st({name:"pre_logs_flushed",events:t.events}),n=a?"event_sender_unexpected_exception":"event_sender_post_exception",a?this.Pt(t,r):yield this.Lt(t,r));return o.success?(n="event_sender_logs_flushed_emitter_exception",this.st({name:"logs_flushed",events:t.events}),o):$P($P($P({success:!1,statusCode:o.statusCode,failurePath:o.failurePath},o.failureErrorMessage?{failureErrorMessage:o.failureErrorMessage}:{}),o.failureDiagnosticBucket?{failureDiagnosticBucket:o.failureDiagnosticBucket}:{}),o.failureDiagnosticMetadata?{failureDiagnosticMetadata:o.failureDiagnosticMetadata}:{})}catch(e){return s.Log.warn("Failed to send batch:",e),$P($P($P({success:!1,statusCode:-1,failurePath:null!=(i=r.path)?i:n},r.errorMessage?{failureErrorMessage:r.errorMessage}:{}),r.diagnosticBucket?{failureDiagnosticBucket:r.diagnosticBucket}:{}),r.diagnosticMetadata?{failureDiagnosticMetadata:r.diagnosticMetadata}:{})}})}Lt(t,e){return n(this,void 0,void 0,function*(){var i,n=yield this.ft.post(this.zt(t),e),s=null!=(s=null==n?void 0:n.code)?s:-1;return-1===s?$P($P($P({success:!1,statusCode:-1,failurePath:null!=(i=e.path)?i:void 0===n?"event_sender_post_returned_undefined":"event_sender_post_returned_null"},e.errorMessage?{failureErrorMessage:e.errorMessage}:{}),e.diagnosticBucket?{failureDiagnosticBucket:e.diagnosticBucket}:{}),e.diagnosticMetadata?{failureDiagnosticMetadata:e.diagnosticMetadata}:{}):{success:200<=s&&s<300,statusCode:s}})}Pt(t,e){var i;t=this.ft.beacon(this.zt(t),e);return $P($P($P({success:t,statusCode:t?200:-1,failurePath:t?void 0:null!=(i=e.path)?i:"beacon_send_false"},!t&&e.errorMessage?{failureErrorMessage:e.errorMessage}:{}),!t&&e.diagnosticBucket?{failureDiagnosticBucket:e.diagnosticBucket}:{}),!t&&e.diagnosticMetadata?{failureDiagnosticMetadata:e.diagnosticMetadata}:{})}zt(t){return{sdkKey:this.j,data:{events:t.events},urlConfig:this.wt,retries:3,preserveFailedStatusCode:!0,isCompressable:!0,params:{[r.NetworkParam.EventCount]:String(t.events.length)},headers:{"statsig-event-count":String(t.events.length),"statsig-retry-count":String(t.attempts),"statsig-sdk-type":a.SDKType.ct(this.j),"statsig-sdk-version":o.SDK_VERSION},credentials:"same-origin"}}}},4312:function(t,e,i){var n=this&&this.__awaiter||$A();$Q(e),e.FlushCoordinator=void 0;const s=i(4309),r=i(6351),a=i(8153),o=i(323),l=i(1406),u=i(7512),h=i(7023),d=i(6830),c=i(4143),g=i(586),v=i(4534),f=new Set(["network_request_timed_out_no_response","network_request_exception_no_response","event_sender_post_returned_null","event_sender_post_returned_undefined","event_sender_post_exception"]);e.FlushCoordinator=class{constructor(t,e,i,n,s,o,l,u,h,d){this.Yi=null,this.Zi=null,this.yt=!1,this.Mn=null,this.Ot=Date.now(),this.$i=!1,this.Gi=null,this.In=new a.FlushInterval,this.zi=t,this.qi=e,this.Tn=i,this.te=d,this.j=n,this.jt=h,this.Cn=new r.EventSender(n,s,o,l,u)}setLoggingEnabled(t){this.jt=t}setLogEventCompressionMode(t){this.Cn.setLogEventCompressionMode(t)}startScheduledFlushCycle(){this.Fn()}stopScheduledFlushCycle(){this.An()}addEvent(t){this.qi.addToPendingEventsQueue(t),this.Mn||this.qi.hasEventsForFullBatch()&&this.processLimitFlush()}processManualFlush(){return n(this,void 0,void 0,function*(){return this.Mn&&(yield this.Mn),this.Mn=this.Rn(o.FlushTypeValues.Manual).finally(()=>{this.Mn=null,this.Fn()}),this.Mn})}processShutdown(){return n(this,void 0,void 0,function*(){return this.$i=!0,this.An(),this.Mn&&(yield this.Mn),this.Mn=this.Rn(o.FlushTypeValues.Shutdown).catch(t=>{u.Log.error("Error during shutdown flush: "+t)}).finally(()=>{this.Mn=null}),this.Mn})}Rn(t){return n(this,void 0,void 0,function*(){this.An();try{this.Nn(t);var e=this.zi.takeAllBatches();0!==e.length&&(yield Promise.all(e.map(e=>this.Un(e,t))))}finally{this.$i||this.Fn()}})}checkQuickFlush(){this.yt||Date.now()-this.Ot>s.EventRetryConstants.QUICK_FLUSH_WINDOW_MS||(this.yt=!0,setTimeout(()=>{this.processManualFlush().catch(t=>{u.Log.warn("Quick flush failed:",t)})},s.EventRetryConstants.QUICK_FLUSH_WINDOW_MS))}Pn(){if(this.Mn)this.Fn();else{var t=this.containsAtLeastOneFullBatch(),e=this.In.hasReachedMaxInterval();if(t||e){let e;this.In.markFlushAttempt(),e=t?o.FlushTypeValues.ScheduledFullBatch:o.FlushTypeValues.ScheduledMaxTime,this.Mn=this.Bn(e).then(()=>{}).catch(t=>{u.Log.error("Error during scheduled flush:",t)}).finally(()=>{this.Mn=null,this.Fn()})}else this.Ln()}}processLimitFlush(){!this.In.hasCompletelyRecoveredFromBackoff()||this.Mn||(this.Mn=this.qn().catch(t=>{u.Log.error("Error during limit flush",t)}).finally(()=>{this.Mn=null,this.Fn()}))}qn(){return n(this,void 0,void 0,function*(){if(yield this.Bn(o.FlushTypeValues.Limit))for(;this.In.hasCompletelyRecoveredFromBackoff()&&this.containsAtLeastOneFullBatch();){if(!(yield this.Bn(o.FlushTypeValues.Limit)))break}})}Fn(){var t;this.An(),this.$i||(t=Math.max(0,this.In.getTimeUntilNextFlush()),this.Yi=setTimeout(()=>{this.Yi=null,c.StatsigSession.checkForIdleSession(this.j),this.Pn()},t),t=Math.max(0,this.In.getTimeTillMaxInterval()),this.Zi=setTimeout(()=>{this.Zi=null,c.StatsigSession.checkForIdleSession(this.j),this.Pn()},t))}An(){null!==this.Yi&&(clearTimeout(this.Yi),this.Yi=null),null!==this.Zi&&(clearTimeout(this.Zi),this.Zi=null)}Ln(){var t;this.An(),this.$i||(this.Yi=setTimeout(()=>{this.Yi=null,c.StatsigSession.checkForIdleSession(this.j),this.Pn()},s.EventRetryConstants.TICK_INTERVAL_MS),t=Math.max(0,this.In.getTimeTillMaxInterval()),this.Zi=setTimeout(()=>{this.Zi=null,c.StatsigSession.checkForIdleSession(this.j),this.Pn()},t))}Bn(t){return n(this,void 0,void 0,function*(){this.Nn(t);var e=this.zi.takeNextBatch();return!!e&&this.Un(e,t)})}Un(t,e){return n(this,void 0,void 0,function*(){var i;return this.jt!==g.LoggingEnabledOption.always&&(0,d.Mt)()||(i=yield this.Cn.sendBatch(t)).success?(this.In.adjustForSuccess(),!0):(this.In.adjustForFailure(),this.zn(t,e,i.statusCode,i.failurePath,i.failureErrorMessage,i.failureDiagnosticBucket,i.failureDiagnosticMetadata),!1)})}Nn(t){this.Tn();var e=this.convertPendingEventsToBatches();0<e&&(u.Log.warn(`Dropped ${e} events`),this.te.logDroppedEvents(e,"Batch queue limit reached during batching",{loggingInterval:this.In.getCurrentIntervalMs(),batchSize:this.zi.batchSize(),maxPendingBatches:s.EventRetryConstants.MAX_PENDING_BATCHES,flushType:t,retries:"dropped before batching"}))}containsAtLeastOneFullBatch(){return this.qi.hasEventsForFullBatch()||this.zi.hasFullBatch()}convertPendingEventsToBatches(){var t;return this.qi.isEmpty()?0:(t=this.qi.takeAll(),this.zi.createBatches(t))}Kn(t,e){return!!h.RETRYABLE_CODES.has(t)||!(-1!==t||!e||!f.has(e))}zn(t,e,i,n,r,a,l){var h;e===o.FlushTypeValues.Shutdown?(u.Log.warn(e+" flush failed during shutdown. "+t.events.length+" event(s) will be saved to storage for retry in next session."),this.$n(t.events)):this.Kn(i,n)?t.attempts>=s.EventRetryConstants.MAX_RETRY_ATTEMPTS?(u.Log.warn(`${e} flush failed after ${t.attempts} attempt(s). `+t.events.length+" event(s) will be dropped."),this.te.logEventRequestFailure(t.events.length,"max retry attempts exceeded",e,i,t.attempts,n,r,a,l)):(t.incrementAttempts(),0<(h=this.zi.requeueBatch(t))&&(u.Log.warn(`Failed to requeue batch : dropped ${h} events due to full queue`),this.te.logDroppedEvents(h,"Batch queue limit reached during requeue",{loggingInterval:this.In.getCurrentIntervalMs(),batchSize:this.zi.batchSize(),maxPendingBatches:s.EventRetryConstants.MAX_PENDING_BATCHES,flushType:e,retries:t.attempts}))):(u.Log.warn(`${e} flush failed after ${t.attempts} attempt(s). `+t.events.length+" event(s) will be dropped. Non-retryable error: "+i),this.te.logEventRequestFailure(t.events.length,"non-retryable error",e,i,t.attempts,n,r,a,l))}loadAndRetryShutdownFailedEvents(){return n(this,void 0,void 0,function*(){var t=this.o();try{v.Storage.isReady()||(yield v.Storage.isReadyResolver());var e=this.Gn(t);0!==e.length&&(u.Log.debug(`Loading ${e.length} failed shutdown event(s) from storage for retry`),v.Storage.removeItem(t),e.forEach(t=>{this.addEvent(t)}),yield this.processManualFlush())}catch(t){u.Log.warn("Failed to load and retry failed shutdown events:",t)}})}o(){return this.Gi||(this.Gi="statsig.failed_shutdown_events."+(0,l.h)(this.j)),this.Gi}$n(t){var e=this.o();try{let i=[...this.Gn(e),...t];i.length>s.EventRetryConstants.MAX_LOCAL_STORAGE&&(i=i.slice(-s.EventRetryConstants.MAX_LOCAL_STORAGE)),(0,v.B)(e,i),u.Log.debug(`Saved ${t.length} failed shutdown event(s) to storage (total stored: ${i.length})`)}catch(t){u.Log.warn("Unable to save failed shutdown events to storage:",t)}}Gn(t){try{var e=(0,v.K)(t);return Array.isArray(e)?e:[]}catch(t){return[]}}}},8153:(t,e)=>{$Q(e),e.FlushInterval=void 0,e.FlushInterval=class{constructor(){this.Vn=1e3,this.Jn=Date.now()}getCurrentIntervalMs(){return this.Vn}markFlushAttempt(){this.Jn=Date.now()}getTimeSinceLastAttempt(){return Date.now()-this.Jn}hasReachedMaxInterval(){return 6e4<=this.getTimeSinceLastAttempt()}getTimeTillMaxInterval(){return 6e4-this.getTimeSinceLastAttempt()}hasCompletelyRecoveredFromBackoff(){return this.Vn<=1e3}adjustForSuccess(){var t=this.Vn;1e3!==t&&(this.Vn=Math.max(1e3,Math.floor(t/2)))}adjustForFailure(){var t=this.Vn;this.Vn=Math.min(6e4,2*t)}getTimeUntilNextFlush(){return this.getCurrentIntervalMs()-this.getTimeSinceLastAttempt()}}},323:(t,e)=>{$Q(e),e.FlushTypeValues=void 0,e.FlushTypeValues={ScheduledMaxTime:"scheduled:max_time",ScheduledFullBatch:"scheduled:full_batch",Limit:"limit",Manual:"manual",Shutdown:"shutdown"}},1406:(t,e,i)=>{$Q2(e,"__esModule",{value:!0}),e.Bt=e.$t=e.h=void 0;const n=i(6634);e.h=t=>{let e=0;for(let i=0;i<t.length;i++){e=(e<<5)-e+t.charCodeAt(i),e&=e}return String(e>>>0)},e.$t=(t,i)=>(0,e.h)(JSON.stringify((0,e.Bt)(t,i))),e.Bt=(t,i)=>{if(null==t)return null;var s=Object.keys(t).sort();const r={};return s.forEach(s=>{var a=t[s];0===i||"object"!==(0,n.Vt)(a)?r[s]=a:r[s]=(0,e.Bt)(a,null!=i?i-1:i)}),r}},1333:(t,e)=>{$Q(e)},7512:(t,e)=>{function i(t){return t.unshift("[Statsig]"),t}$Q(e),e.Log=e.LogLevel=void 0,e.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class n{static info(...t){n.level>=e.LogLevel.Info&&console.info(" INFO ",...i(t))}static debug(...t){n.level>=e.LogLevel.Debug&&console.debug(" DEBUG ",...i(t))}static warn(...t){n.level>=e.LogLevel.Warn&&console.warn(" WARN ",...i(t))}static error(...t){n.level>=e.LogLevel.Error&&console.error(" ERROR ",...i(t))}}(e.Log=n).level=e.LogLevel.Warn},7787:(t,e)=>{$Q(e),e.createMemoKey=e.MemoPrefix=void 0,e.MemoPrefix={Gt:"g",Jt:"c",Wt:"e",Yt:"cl",Xt:"l",Ht:"p"};const i=new Set([]),n=new Set(["userPersistedValues"]);e.createMemoKey=function(t,e,s){let r=t+"|"+e;if(s)for(const t of Object.keys(s)){if(n.has(t))return;i.has(t)?r+=`|${t}=true`:r+=`|${t}=`+s[t]}return r}},7410:(t,e)=>{$Q(e),e.NetworkParam=e.NetworkDefault=e.Endpoint=void 0,e.Endpoint={Qt:"initialize",kt:"rgstr",Zt:"download_config_specs"},e.NetworkDefault={[e.Endpoint.kt]:"https://prodregistryv2.org/v1",[e.Endpoint.Qt]:"https://featureassets.org/v1",[e.Endpoint.Zt]:"https://api.statsigcdn.com/v1"},e.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}},7023:function(t,e,i){var n=this&&this.__awaiter||$A();$Q2(e,"__esModule",{value:!0}),e.NetworkCore=e.RETRYABLE_CODES=void 0,i(1845);const s=i(1845),r=i(8962),a=i(7512),o=i(7410),l=i(308),u=i(3091),h=i(5902),d=i(6830),c=i(4143),g=i(9122),v=i(2636),f=i(8e3),p=i(586),m=i(2397);e.RETRYABLE_CODES=new Set([408,500,502,503,504,522,524,599]),e.NetworkCore=class{constructor(t,e){this.st=e,this.te=null,this.ee=1e4,this.ie={},this.O={},this.ne={},this.se=null,t&&(this.O=t),this.O.networkConfig&&(this.ie=this.O.networkConfig),this.ie.networkTimeoutMs&&(this.ee=this.ie.networkTimeoutMs),this.re=new l.NetworkFallbackResolver(this.O),this.setLogEventCompressionMode(this.le(t))}setLogEventCompressionMode(t){this.O.logEventCompressionMode=t}setErrorBoundary(t){this.te=t,this.te.wrap(this),this.te.wrap(this.re),this.re.setErrorBoundary(t)}isBeaconSupported(){return"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon}getLastUsedInitUrlAndReset(){var t=this.se;return this.se=null,t}beacon(t,e){if(!_(t))return e&&(e.path="beacon_invalid_sdk_key"),!1;t=this.oe("POST",t);var i=this.ue(t),n=navigator;try{var s=n.sendBeacon.bind(n)(i,t.body);return s||e&&(e.path="beacon_send_false"),s}catch(t){throw e&&(e.path="beacon_send_exception"),t}}post(t,e){return n(this,void 0,void 0,function*(){var i=this.oe("POST",t);return this.ae(i),yield this.ce(i),this.he(i,e)})}get(t){return t=this.oe("GET",t),this.he(t)}he(t,i){return n(this,void 0,void 0,function*(){var s;if(!_(t))return i&&(i.path="network_invalid_sdk_key"),null;if(this.ie.preventAllNetworkTraffic)return i&&(i.path="network_prevent_all_network_traffic"),null;var{method:l,body:u,retries:h,attempt:c}=t,g=t.urlConfig.endpoint;if(this.de(g))return a.Log.warn(`Request to ${g} was blocked because you are making requests too frequently.`),i&&(i.path="network_rate_limited"),null;c=null!=c?c:1;let f=!1;var p=this.ue(t),y=Date.now();let b=null;var w,D=(0,m.Ft)();try{var k,C,I,$={method:l,body:u,headers:$P({},t.headers),priority:t.priority,keepalive:D},P=(w=c,(O=t).urlConfig.endpoint===o.Endpoint.Qt&&r.Diagnostics.W(O.sdkKey,{attempt:w}),this.ne[g]),L=(P&&(P.lastRequestTime=Date.now(),this.ne[g]=P),null!=(s=this.ie.networkOverrideFunc)?s:fetch);let e;if((b=yield Promise.race([L(p,$).finally(()=>clearTimeout(e)),new Promise((t,i)=>{e=setTimeout(()=>{f=!0,i(new Error(`Timeout of ${this.ee}ms expired.`))},this.ee)})])).ok)return I=yield b.text(),E(t,b,c,I),this.re.tryBumpExpiryTime(t.sdkKey,t.urlConfig),{body:I,code:b.status};throw k=yield b.text().catch(()=>
1"No Text"),(C=new Error(`NetworkError: ${p} `+k)).name="NetworkError",C}catch(k){var u=function(t){return"string"==typeof t?t:t instanceof Error?t.name+": "+t.message:"Unknown Error"}(k),O=(D=function(t,e){return(t=t.includes("Timeout"))||e}(null!=u?u:"",f),E(t,b,c,"",k),yield this.re.tryFetchUpdatedFallbackInfo(t.sdkKey,t.urlConfig,u,D));if(O&&(t.fallbackUrl=this.re.getActiveFallbackUrl(t.sdkKey,t.urlConfig)),!h||h<c||!e.RETRYABLE_CODES.has(null!=(w=null==b?void 0:b.status)?w:500)){if(null!=(g=this.st)&&g.call(this,{name:"error",error:k,tag:v.ErrorTag.NetworkError,requestArgs:t}),P=`A networking error occurred during ${l} request to ${p}.`,a.Log.error(P,u,k),null!=(s=this.te)&&s.attachErrorIfNoneExists(P),t.preserveFailedStatusCode&&null!=b)return{body:null,code:b.status};if(null==b&&i){i.path=D?"network_request_timed_out_no_response":"network_request_exception_no_response",u&&(i.errorMessage=u);try{var M=function(t,e,i,n){var s=null==(l=(0,d.ve)())?void 0:l.document,r="undefined"!=typeof navigator?navigator:null,a=(0,m.Ft)(),o=(r=r&&"boolean"==typeof r.onLine?String(r.onLine):"unknown",s=null!=(s=null==s?void 0:s.visibilityState)?s:"unknown",0<Object.keys(null!=(o=t.headers)?o:{}).length),l=function(t,e){return!e||!t.startsWith(e+"/")&&!t.startsWith(e+"?")&&t!==e}(e,null==(e=null==l?void 0:l.location)?void 0:e.origin),u=(e=null!=t.urlConfig.customUrl,null!=t.fallbackUrl);let h="unknown_no_response";return i?h="timeout":"false"===r?h="browser_offline":a?h="page_unloading":"hidden"===s?h="page_hidden":l&&o?h="cross_origin_custom_headers_preflight_risk":e||u?h="custom_url_no_response":n<250&&(h="immediate_network_rejection"),{bucket:h,metadata:{elapsedMsBucket:S(n,[250,1e3,5e3,1e4]),bodySizeBucket:t=S(function(t){return null==t?0:"string"==typeof t?t.length:t instanceof Uint8Array?t.byteLength:"undefined"!=typeof Blob&&t instanceof Blob?t.size:-1}(t.body),[16384,65536,262144,1048576]),online:r,visibilityState:s,isUnloading:String(a),crossOrigin:String(l),hasCustomUrl:String(e)}}}(t,p,D,Date.now()-y);i.diagnosticBucket=M.bucket,i.diagnosticMetadata=M.metadata}catch(k){}}return null}return yield function(t){return n(this,void 0,void 0,function*(){yield new Promise(e=>setTimeout(e,Math.min(t*t*500,3e4)))})}(c),this.he($P($P({},t),{retries:h,attempt:c+1}),i)}})}le(t){let e=null==t?void 0:t.logEventCompressionMode;return(e=e||!0!==(null==t?void 0:t.disableCompression)?e:p.LogEventCompressionMode.Disabled)||p.LogEventCompressionMode.Enabled}de(t){var e=Date.now(),i=null!=(i=this.ne[t])?i:{count:0,lastRequestTime:e},n=e-i.lastRequestTime;n=Math.floor(.05*n);return i.count=Math.max(0,i.count-n),50<=i.count||(i.count+=1,i.lastRequestTime=e,this.ne[t]=i,!1)}ue(t){var e=null!=(e=t.fallbackUrl)?e:t.urlConfig.getUrl();t.urlConfig.endpoint!==o.Endpoint.Qt&&t.urlConfig.endpoint!==o.Endpoint.Zt||(this.se=e);const i=$P({[o.NetworkParam.SdkKey]:t.sdkKey,[o.NetworkParam.SdkType]:h.SDKType.ct(t.sdkKey),[o.NetworkParam.SdkVersion]:f.SDK_VERSION,[o.NetworkParam.Time]:String(Date.now()),[o.NetworkParam.SessionID]:c.SessionID.get(t.sdkKey)},t.params);return e+((t=Object.keys(i).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(i[t])).join("&"))?"?"+t:"")}ae(t){var e,i=(0,d.ve)(),n=t.body;if(t.isStatsigEncodable&&!this.O.disableStatsigEncoding&&"string"==typeof n&&null==(0,s.i)("no-encode")&&null!=i&&i.btoa)try{t.body=i.btoa(n).split("").reverse().join(""),t.params=$P($P({},null!=(e=t.params)?e:{}),{[o.NetworkParam.StatsigEncoded]:"1"})}catch(e){a.Log.warn("Request encoding failed for "+t.urlConfig.getUrl(),e)}}ce(t){return n(this,void 0,void 0,function*(){var e,i=t.body;if("string"==typeof i&&function(t,e){if(t.isCompressable&&null==(0,s.i)("no-compress")&&"undefined"!=typeof CompressionStream&&"undefined"!=typeof TextEncoder){var i=null!=t.urlConfig.customUrl||null!=t.urlConfig.fallbackUrls,n=!0===u.SDKFlags.get(t.sdkKey,"enable_log_event_compression");switch(e.logEventCompressionMode){case p.LogEventCompressionMode.Disabled:return;case p.LogEventCompressionMode.Enabled:return i&&!n?void 0:1;case p.LogEventCompressionMode.Forced:return 1;default:return}}}(t,this.O))try{for(var n,r=(new TextEncoder).encode(i),l=new CompressionStream("gzip"),h=l.writable.getWriter(),d=(h.write(r).cat
1ch(a.Log.error),h.close().catch(a.Log.error),l.readable.getReader()),c=[];!(n=yield d.read()).done;)c.push(n.value);var g=c.reduce((t,e)=>t+e.length,0),v=new Uint8Array(g);let s=0;for(const t of c)v.set(t,s),s+=t.length;t.body=v,t.params=$P($P({},null!=(e=t.params)?e:{}),{[o.NetworkParam.IsGzipped]:"1"})}catch(e){a.Log.warn("Request compression failed for "+t.urlConfig.getUrl(),e)}})}oe(t,e){var i=this.re.getActiveFallbackUrl(e.sdkKey,e.urlConfig);t=$P($P({},e),{method:t,fallbackUrl:i});return"data"in e&&y(t,e.data),t}};const _=t=>!!t.sdkKey||(a.Log.warn("Unable to make request without an SDK key"),!1),y=(t,e)=>{var{sdkKey:i,fallbackUrl:n}=t,s=g.StableID.get(i),r=c.SessionID.get(i),i=h.SDKType.ct(i);t.body=JSON.stringify($P($P({},e),{statsigMetadata:$P($P({},f.StatsigMetadataProvider.get()),{stableID:s,sessionID:r,sdkType:i,fallbackUrl:n})}))};function S(t,e){if(t<0)return"unknown";for(const i of e)if(t<i)return"<"+i;return">="+e[e.length-1]}function E(t,e,i,n,s){t.urlConfig.endpoint===o.Endpoint.Qt&&r.Diagnostics.Y(t.sdkKey,r.Diagnostics.et(e,i,n,s))}},308:function(t,e,i){var n=this&&this.__awaiter||$A();$Q(e),e.fe=e.NetworkFallbackResolver=void 0;const s=i(8809),r=i(1406),a=i(7512),o=i(4534);function l(t,e){return t=null!=(t=null==t?void 0:t.toLowerCase())?t:"",e||t.includes("uncaught exception")||t.includes("failed to fetch")||t.includes("networkerror when attempting to fetch resource")}function u(t){return"statsig.network_fallback."+(0,r.h)(t)}function h(t,e){t=u(t),e&&0!==Object.keys(e).length?o.Storage.setItem(t,JSON.stringify(e)):o.Storage.removeItem(t)}e.NetworkFallbackResolver=class{constructor(t){this.ge=null,this.te=null,this._e={},this.pe=null==(t=t.networkConfig)?void 0:t.networkOverrideFunc}setErrorBoundary(t){this.te=t}tryBumpExpiryTime(t,e){var i=null==(i=this.ge)?void 0:i[e.endpoint];i&&(i.expiryTime=Date.now()+6048e5,h(t,$P($P({},this.ge),{[e.endpoint]:i})))}getActiveFallbackUrl(t,e){var i;if(null!=e.customUrl&&null!=e.fallbackUrls)return null;let n=this.ge;null==n&&(n=null!=(s=function(t){if(t=u(t),!(t=o.Storage.getItem(t)))return null;try{return JSON.parse(t)}catch(t){return a.Log.error("Failed to parse FallbackInfo"),null}}(t))?s:{},this.ge=n);var s=n[e.endpoint];return!s||Date.now()>(null!=(i=s.expiryTime)?i:0)||e.getChecksum()!==s.urlConfigChecksum?(delete n[e.endpoint],this.ge=n,h(t,this.ge),null):s.url||null}tryFetchUpdatedFallbackInfo(t,e,i,s){return n(this,void 0,void 0,function*(){var n,r,a;try{return!!l(i,s)&&(r=null==e.customUrl&&null==e.fallbackUrls?yield this.be(e):e.fallbackUrls,!!(a=this.ye(null==(n=this.ge)?void 0:n[e.endpoint],r))&&(this.me(t,e,a),!0))}catch(r){return null!=(n=this.te)&&n.logError("tryFetchUpdatedFallbackInfo",r),!1}})}me(t,e,i){var n;i={urlConfigChecksum:e.getChecksum(),url:i,expiryTime:Date.now()+6048e5,previous:[]},e=e.endpoint;null!=(n=((n=null==(n=this.ge)?void 0:n[e])&&i.previous.push(...n.previous),10<i.previous.length&&(i.previous=[]),null==(n=null==(n=this.ge)?void 0:n[e])?void 0:n.url))&&i.previous.push(n),this.ge=$P($P({},this.ge),{[e]:i}),h(t,this.ge)}be(t){return n(this,void 0,void 0,function*(){if((i=this._e[t.endpoint])&&Date.now()<i)return null;this._e[t.endpoint]=Date.now()+144e5;var e=[],i=yield(0,s.nt)(null!=(i=this.pe)?i:fetch),n=function(t){try{return new URL(t).pathname}catch(t){return null}}(t.defaultUrl);for(const s of i)if(s.startsWith(t.endpointDnsKey+"=")){var r=s.split("=");if(1<r.length){let t=r[1];t.endsWith("/")&&(t=t.slice(0,-1)),e.push("https://"+t+n)}}return e})}ye(t,e){var i;if(null==e)return null;var n=new Set(null!=(i=null==t?void 0:t.previous)?i:[]),s=null==t?void 0:t.url;let r=null;for(const t of e){var a=t.endsWith("/")?t.slice(0,-1):t;if(!n.has(t)&&a!==s){r=a;break}}return r}},e.fe=l},1405:(t,e)=>{$Q(e)},1361:(t,e)=>{$Q(e)},1228:(t,e,i)=>{$Q(e),e.PendingEvents=void 0;const n=i(7512);e.PendingEvents=class{constructor(t){this.qi=[],this.Fi=t}addToPendingEventsQueue(t){this.qi.push(t),n.Log.debug("Enqueued Event:",t)}hasEventsForFullBatch(){return this.qi.length>=this.Fi}takeAll(){var t=this.qi;return this.qi=[],t}isEmpty(){return 0===this.qi.length}}},3091:(t,e)=>{$Q(e),e.SDKFlags=void 0;const i={};e.SDKFlags={setFlags:(t,e)=>{i[t]=e},get:(t,e)=>null!=(t=null==(t=i[t])?void 0:t[e])&&t}},5902:(t,e)=>{$Q(e),e.SDKType=void 0;const i={};let n;e.SDKType={ct:t=>(null!=(t=i[t])?t:"js-mono")+(null!=n?n:""),Oe(t,e){i[t]=e},je(t){n&&"-react"!==n||(n="-"+t)}
1}},6830:(t,e,i)=>{$Q2(e,"__esModule",{value:!0}),e.Li=e.Se=e.Kt=e.we=e.ke=e.Mt=e.Ee=e.ve=void 0;const n=i(7512);e.ve=()=>"undefined"!=typeof window?window:null,e.Ee=()=>{var t=(0,e.ve)();return null!=(t=null==t?void 0:t.document)?t:null},e.Mt=()=>{var t;return null===(0,e.Ee)()&&(t="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node,"string"==typeof EdgeRuntime||t)},e.ke=(t,i)=>{var n=(0,e.ve)();"function"==typeof(null==n?void 0:n.addEventListener)&&n.addEventListener(t,i)},e.we=(t,i)=>{var n=(0,e.Ee)();"function"==typeof(null==n?void 0:n.addEventListener)&&n.addEventListener(t,i)},e.Kt=()=>{var t;try{return null==(t=(0,e.ve)())?void 0:t.location.href.split(/[?#]/)[0]}catch(t){}},e.Se=()=>{var t=(0,e.ve)();return t&&"onpagehide"in t?"pagehide":"beforeunload"},e.Li=(t,e)=>{try{return JSON.parse(JSON.stringify(e))}catch(e){return n.Log.error("Failed to clone object "+t),null}}},4143:(t,e,i)=>{$Q(e),e.StatsigSession=e.SessionID=void 0;const n=i(2137),s=i(7512),r=i(4534),a=i(8023);i=i(2397);const o={};function l(t){var e,i;return(i=(e=(i=t.data).lastUpdate,Date.now()-e>18e5||(e=i.startTime,Date.now()-e>144e5)))&&(t.data=d(),null!=(e=null===__STATSIG__||void 0===__STATSIG__?void 0:__STATSIG__.instance(t.sdkKey)))&&e.$emt({name:"session_expired"}),i}function u(t){return"statsig.session_id."+(0,n.o)(t)}function h(t){try{(0,r.B)(t.storageKey,t.data),t.lastPersistedAt=Date.now()}catch(t){s.Log.warn("Failed to save SessionID")}}function d(){return{sessionID:(0,a.getUUID)(),startTime:Date.now(),lastUpdate:Date.now()}}(0,i.xt)(t=>{"background"===t&&Object.values(o).forEach(t=>h(t))}),e.SessionID={get:t=>e.StatsigSession.get(t).data.sessionID},e.StatsigSession={get:(t,e=!0)=>{null==o[t]&&(o[t]=function(t){var e=u(t),i=function(t){return t=(0,r.K)(t)}(e);return i&&i.sessionID&&i.startTime&&i.lastUpdate?{data:i,sdkKey:t,lastPersistedAt:0,storageKey:e}:{data:d(),sdkKey:t,lastPersistedAt:0,storageKey:e}}(t));t=o[t];var i=Date.now(),n=l(t);return n?h(t):e&&(t.data.lastUpdate=i,n=t,(e=Date.now())-n.lastPersistedAt>15e3)&&h(n),t},overrideInitialSessionID:(t,e)=>{var i=Date.now();h(t={data:{sessionID:t,startTime:i,lastUpdate:i},sdkKey:e,lastPersistedAt:Date.now(),storageKey:u(e)}),o[e]=t},checkForIdleSession:t=>{(t=o[t])&&l(t)&&h(t)}}},2176:(t,e)=>{$Q(e),e.De=void 0,e.De=(t,e)=>{var i=[t],n=[Object.keys(t)],s=[0],r=[0];let a=0,o=0;for(;;){if(s[a]<n[a].length){var l=n[a][s[a]++],u=i[a][l];if(r[a]+=l.length,u&&"object"==typeof u){i[++a]=u,n[a]=Object.keys(u),s[a]=r[a]=0;continue}
vendor: 30,271 bytes, line 1
1if(r[a]+=(u+"").length+1,r[a]<e)continue}for(o=r[a--];0<=a&&(r[a]+=o+2)>=e;o=r[a--]);if(a<0)return o}}},9122:(t,e,i)=>{$Q(e),e.getCookieName=e.StableID=void 0;const n=i(2137),s=i(7512),r=i(6830),a=i(4534),o=i(8023),l={},u={},h={};function d(t){return"statsig.stable_id."+(0,n.o)(t)}function c(t,e){e=d(e);try{(0,a.B)(e,t)}catch(t){s.Log.warn("Failed to save StableID to storage")}}function g(t,e){var i;u[e]&&null!=(0,r.Ee)()&&((i=new Date).setFullYear(i.getFullYear()+1),document.cookie=`${v(e)}=${encodeURIComponent(t)}; expires=${i.toUTCString()}; path=/`)}function v(t){return"statsig.stable_id."+(0,n.o)(t)}e.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:t=>{if(h[t])return null;if(null!=l[t])return l[t];let e=null;return null!=(e=function(t){if(u[t]&&null!=(0,r.Ee)())for(const n of document.cookie.split(";")){var[e,i]=n.trim().split("=");if(e===v(t))return decodeURIComponent(i)}return null}(t))?c(l[t]=e,t):(c(e=null==(e=function(t){return t=d(t),(0,a.K)(t)}(t))?(0,o.getUUID)():e,t),g(e,t),l[t]=e),e},setOverride:(t,e)=>{c(l[e]=t,e),g(t,e)},Ie:(t,e)=>{u[t]=e},Me:(t,e)=>{h[t]=e}},e.getCookieName=v},1375:function(t,e,i){var n=this&&this.__awaiter||$A();$Q(e),e.StatsigClientBase=void 0,i(1845);const s=i(1845),r=i(5542),a=i(7770),o=i(7512),l=i(7787),u=i(6830),h=i(4143),d=i(9122),c=i(586),g=i(4534);e.StatsigClientBase=class{constructor(t,e,i,n){this.loadingStatus="Uninitialized",this.xe=null,this.Te={};var l,c=this.$emt.bind(this);null!=(null==n?void 0:n.logLevel)&&(o.Log.level=n.logLevel),null!=n&&n.disableStorage&&g.Storage.Me(!0),null!=n&&n.initialSessionID&&h.StatsigSession.overrideInitialSessionID(n.initialSessionID,t),null!=n&&n.storageProvider&&g.Storage.Ne(n.storageProvider),null!=n&&n.enableCookies&&d.StableID.Ie(t,n.enableCookies),null!=n&&n.disableStableID&&d.StableID.Me(t,!0),this.j=t,this.O=null!=n?n:{},this.Ce={},this.overrideAdapter=null!=(l=null==n?void 0:n.overrideAdapter)?l:null,this.te=new r.ErrorBoundary(t,n,c),this.Re=new a.EventLogger(t,c,i,n,this.te),this.te.wrap(this),this.te.wrap(e),this.te.wrap(this.Re),i.setErrorBoundary(this.te),this.dataAdapter=e,this.dataAdapter.attach(t,n,i),this.storageProvider=g.Storage,null!=(e=null==(c=null==(l=this.overrideAdapter)?void 0:l.loadFromStorage)?void 0:c.call(l))&&e.catch(t=>this.te.logError("OA::loadFromStorage",t)),this.Ue(),n=t,i=this,(0,u.Mt)()||(null!=(l=null!=(l=(c=(0,s.l)()).instances)?l:{})[n]&&o.Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys."),l[n]=i,c.firstInstance||(c.firstInstance=i),c.instances=l,__STATSIG__=c)}updateRuntimeOptions(t){t.loggingEnabled?(this.O.loggingEnabled=t.loggingEnabled,this.Re.setLoggingEnabled(t.loggingEnabled)):null!=t.disableLogging&&(this.O.disableLogging=t.disableLogging,this.Re.setLoggingEnabled(t.disableLogging?"disabled":"browser-only")),null!=t.disableStorage&&(this.O.disableStorage=t.disableStorage,g.Storage.Me(t.disableStorage)),null!=t.enableCookies&&(this.O.enableCookies=t.enableCookies,d.StableID.Ie(this.j,t.enableCookies)),t.logEventCompressionMode?this.Re.setLogEventCompressionMode(t.logEventCompressionMode):t.disableCompression&&this.Re.setLogEventCompressionMode(c.LogEventCompressionMode.Disabled)}flush(){return this.Re.flush()}shutdown(){return n(this,void 0,void 0,function*(){this.$emt({name:"pre_shutdown"}),this.Ae("Uninitialized",null),this.xe=null,yield this.Re.stop()})}on(t,e){this.Te[t]||(this.Te[t]=[]),this.Te[t].push(e)}off(t,e){this.Te[t]&&-1!==(e=this.Te[t].indexOf(e))&&this.Te[t].splice(e,1)}$on(t,e){e.__isInternal=!0,this.on(t,e)}$emt(t){var e;const i=e=>{try{e(t)}catch(i){!0===e.__isInternal?this.te.logError("__emit:"+t.name,i):o.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",t)}};this.Te[t.name]&&this.Te[t.name].forEach(t=>i(t)),null!=(e=this.Te["*"])&&e.forEach(i)}Ae(t,e){this.loadingStatus=t,this.Ce={},this.$emt({name:"values_updated",status:t,values:e})}Fe(t,e,i){!0===(null==i?void 0:i.disableExposureLog)?this.Re.incrementNonExposureCount(t):this.Re.enqueue(e)}Pe(t,e){return(i,n)=>{var s;return!this.O.disableEvaluationMemoization&&(s=(0,l.createMemoKey)(t,i,n))?(s in this.Ce||(3e3<=Object.keys(this.Ce).length&&(this.Ce={}),this.Ce[s]=e(i,n)),this.Ce[s]):e(i,n)}}}},2636:(t,e)=>{$Q(e),e.ErrorTag=void 0,e.ErrorTag={NetworkError:"NetworkError"}},3206:(t,e)=>{$Q(e),e.DataAdapterCachePrefix=void 0,e.DataAdapterCachePrefix="statsig.cached"},1637:(t,e)=>{$Q(e),e.Le=e.ze=e.qe=e.Ke=e.Ut=void 0;const i="statsig::config_exposure",n="statsig::gate_exposure",s="statsig::layer_exposure",r=(t,e,i,n,s)=>(i.bootstrapMetadata&&(n.bootstrapMetadata=i.bootstrapMetadata),{eventName:t,user:e,value:null,metadata:o(i,n),secondaryExposures:s,time:Date.now()});function a(t,e){return t.map(t=>"string"==typeof t?(null!=e?e:{})[t]:t).filter(t=>null!=t)}e.Ut=({eventName:t})=>t===n||t===i||t===s,e.Ke=(t,e,i)=>{var s,o={gate:e.name,gateValue:String(e.value),ruleID:e.ruleID};return null!=(null==(s=e.__evaluation)?void 0:s.version)&&(o.configVersion=e.__evaluation.version),r(n,t,e.details,o,a(null!=(t=null==(s=e.__evaluation)?void 0:s.secondary_exposures)?t:[],i))},e.qe=a,e.ze=(t,e,n)=>{var s,o={config:e.name,ruleID:e.ruleID};return null!=(null==(s=e.__evaluation)?void 0:s.version)&&(o.configVersion=e.__evaluation.version),null!=(null==(s=e.__evaluation)?void 0:s.passed)&&(o.rulePassed=String(e.__evaluation.passed)),r(i,t,e.details,o,a(null!=(t=null==(s=e.__evaluation)?void 0:s.secondary_exposures)?t:[],n))},e.Le=(t,e,i,n)=>{var o=e.__evaluation,l=!0===(null==(l=null==o?void 0:o.explicit_parameters)?void 0:l.includes(i));let u="",h=null!=(d=null==o?void 0:o.undelegated_secondary_exposures)?d:[];l&&(u=null!=(d=o.allocated_experiment_name)?d:"",h=null!=(d=o.secondary_exposures)?d:[]);var d=null==(o=e.__evaluation)?void 0:o.parameter_rule_ids;d={config:e.name,parameterName:i,ruleID:null!=(o=null==d?void 0:d[i])?o:e.ruleID,allocatedExperiment:u,isExplicitParameter:String(l)};return null!=(null==(i=e.__evaluation)?void 0:i.version)&&(d.configVersion=e.__evaluation.version),r(s,t,e.details,d,a(h,n))};const o=(t,e)=>(e.reason=t.reason,t.lcut&&(e.lcut=String(t.lcut)),t.receivedAt&&(e.receivedAt=String(t.receivedAt)),e)},8e3:(t,e)=>{$Q(e),e.StatsigMetadataProvider=e.SDK_VERSION=void 0,e.SDK_VERSION="3.33.3";let i={sdkVersion:e.SDK_VERSION,sdkType:"js-mono"};e.StatsigMetadataProvider={get:()=>i,add:t=>{i=$P($P({},i),t)}}},586:(t,e)=>{$Q(e),e.LoggingEnabledOption=e.LogEventCompressionMode=void 0,e.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"},e.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"}},1098:(t,e)=>{$Q(e)},2059:(t,e,i)=>{$Q(e),e.Be=e.$e=e.Ve=e.Ge=e.Je=e.We=void 0;const n=i(7512),s=i(6634);function r(t,e,i,n){return{name:t,details:e,ruleID:null!=(t=null==i?void 0:i.rule_id)?t:"",__evaluation:i,value:n}}function a(t,e,i){var n=null!=(n=null==i?void 0:i.value)?n:{};return $P($P({},r(t,e,i,n)),{idType:null!=(e=null==i?void 0:i.id_type)?e:null,get:o(t,null==i?void 0:i.value)})}function o(t,e,i){return(r,a)=>{var o=null!=(o=null==e?void 0:e[r])?o:null;return null==o?null!=a?a:null:null==a||(0,s.Ye)(o,a)?(null!=i&&i(r),o):(n.Log.warn(`Parameter type mismatch. '${t}.${r}' was found to be type '${typeof o}' but fallback/return type is '${typeof a}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),null!=a?a:null)}}e.We=function(t,e,i){return $P($P({},r(t,e,i,!0===(null==i?void 0:i.value))),{idType:null!=(t=null==i?void 0:i.id_type)?t:null})},e.Je=a,e.Ge=function(t,e,i){return t=a(t,e,i),$P($P({},t),{groupName:null!=(e=null==i?void 0:i.group_name)?e:null})},e.Ve=function(t,e,i,n){return $P($P({},r(t,e,i,void 0)),{get:o(t,null==i?void 0:i.value,n),groupName:null!=(e=null==i?void 0:i.group_name)?e:null,__value:null!=(t=null==i?void 0:i.value)?t:{}})},e.$e=function(t,e,i,n){return $P($P($P({},t),e),{get:o(t.name,i,n)})},e.Be=o},1812:(t,e)=>{$Q(e)},3932:(t,e)=>{$Q(e),e.UPDATE_DETAIL_ERROR_MESSAGES=e.createUpdateDetails=void 0,e.createUpdateDetails=(t,e,i,n,s,r)=>({duration:i,source:e,success:t,error:n,sourceUrl:s,warnings:r}),e.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."}},8578:(t,e,i)=>{$Q(e),e.Wn=e._=e.D=void 0;const n=i(1406),s=i(7512),r=i(6830);e.D=function(t,e,i){return null==(t=(0,r.Li)("StatsigUser",t))?(s.Log.error("Failed to clone user"),{statsigEnvironment:void 0}):(null!=e&&null!=e.environment?t.statsigEnvironment=e.environment:null!=i&&(t.statsigEnvironment={tier:i}),t)},e._=function(t){return t?(0,n.$t)(t):null},e.Wn=function(t,e){var i,n;return"string"==typeof e&&"userid"!==(n=e.toLowerCase())?null!=(i=null==(i=t.customIDs)?void 0:i[e])?i:null==(e=t.customIDs)?void 0:e[n]:t.userID}},4534:(t,e,i)=>{$Q2(e,"__esModule",{value:!0}),e.B=e.K=e.Storage=void 0;const n=i(7512);i=i(6830);const s={},r={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:t=>s[t]||null,setItem:(t,e)=>{s[t]=e},removeItem:t=>{delete s[t]},getAllKeys:()=>Object.keys(s)};let a=null;try{const t=(0,i.ve)();t&&t.localStorage&&"function"==typeof t.localStorage.getItem&&(a={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:e=>t.localStorage.getItem(e),setItem:(e,i)=>t.localStorage.setItem(e,i),removeItem:e=>t.localStorage.removeItem(e),getAllKeys:()=>Object.keys(t.localStorage)})}catch(t){n.Log.warn("Failed to setup localStorageProvider.")}let o=null!=a?a:r,l=o;function u(t){try{return t()}catch(t){if(t instanceof Error&&"SecurityError"===t.name)return e.Storage.Ne(r),null;throw t}}e.Storage={isReady:()=>l.isReady(),isReadyResolver:()=>l.isReadyResolver(),getProviderName:()=>l.getProviderName(),getItem:t=>u(()=>l.getItem(t)),setItem:(t,e)=>u(()=>l.setItem(t,e)),removeItem:t=>l.removeItem(t),getAllKeys:()=>l.getAllKeys(),Ne:t=>{o=t,l=t},Me:t=>{l=t?r:o}},e.K=function(t){var i=e.Storage.getItem(t);try{return JSON.parse(null!=i?i:"null")}catch(i){return n.Log.error(`Failed to parse value for key "${t}"`),null}},e.B=function(t,i){e.Storage.setItem(t,JSON.stringify(i))}},3401:(t,e,i)=>{$Q(e),e.P=void 0;const n=i(7512);e.P=function(t,e,i){try{var s=JSON.parse(t);if(s&&"object"==typeof s&&e in s)return s}catch(t){}return n.Log.error("Failed to parse "+i),null}},6634:(t,e)=>{$Q(e),e.Ye=e.Vt=void 0,e.Vt=function(t){return Array.isArray(t)?"array":typeof t},e.Ye=function(t,e){var i=t=>Array.isArray(t)?"array":null===t?"null":typeof t;return i(t)===i(e)}},8023:(t,e)=>{$Q(e),e.getUUID=void 0,e.getUUID=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let t=(new Date).getTime(),e="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return`xxxxxxxx-xxxx-4xxx-${"89ab"[Math.floor(4*Math.random())]}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,i=>{let n=16*Math.random();return 0<t?(n=(t+n)%16|0,t=Math.floor(t/16)):(n=(e+n)%16|0,e=Math.floor(e/16)),("x"===i?n:7&n|8).toString(16)})}},1881:(t,e,i)=>{$Q(e),e.UrlConfiguration=void 0;const n=i(1406),s=i(7410),r={[s.Endpoint.Qt]:"i",[s.Endpoint.kt]:"e",[s.Endpoint.Zt]:"d"};e.UrlConfiguration=class{constructor(t,e,i,n){this.customUrl=null,this.fallbackUrls=null,this.endpoint=t,this.endpointDnsKey=r[t],e&&(this.customUrl=e),!e&&i&&(this.customUrl=i.endsWith("/")?""+i+t:i+"/"+t),n&&(this.fallbackUrls=n),e=s.NetworkDefault[t],this.defaultUrl=e+"/"+t}getUrl(){var t;return null!=(t=this.customUrl)?t:this.defaultUrl}getChecksum(){var t=(null!=(t=this.fallbackUrls)?t:[]).sort().join(",");return(0,n.h)(this.customUrl+t)}}},2397:(t,e,i)=>{$Q(e),e.Xe=e.xt=e.Ft=e.He=void 0,i=i(6830);const n="foreground",s="background",r=[];let a=n,o=!1;e.He=()=>a===n,e.Ft=()=>o,e.xt=t=>{r.unshift(t)},e.Xe=t=>{t!==a&&(a=t,r.forEach(e=>e(t)))},(0,i.ke)("focus",()=>{(o=!1,e.Xe)(n)}),(0,i.ke)("blur",()=>(0,e.Xe)(s)),(0,i.we)("visibilitychange",()=>{(0,e.Xe)("visible"===document.visibilityState?n:s)}),(0,i.ke)((0,i.Se)(),()=>{o=!0,(0,e.Xe)(s)})},6914:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var s=Object.getOwnPropertyDescriptor(e,i);s&&("get"in s?e.__esModule:!s.writable&&!s.configurable)||(s={enumerable:!0,get:function(){return e[i]}}),$Q2(t,n,s)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),s=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)},r=($Q(e),e.Storage=e.Log=e.EventLogger=e.Diagnostics=void 0,i(1845),i(1845));const a=i(8962),o=($Q2(e,"Diagnostics",{enumerable:!0,get:function(){return a.Diagnostics}}),i(7770)),l=($Q2(e,"EventLogger",{enumerable:!0,get:function(){return o.EventLogger}}),i(7512));$Q2(e,"Log",{enumerable:!0,get:function(){return l.Log}});var u=i(8e3);const h=i(4534);$Q2(e,"Storage",{enumerable:!0,get:function(){return h.Storage}}),s(i(1845),e),s(i(2137),e),s(i(6427),e),s(i(694),e),s(i(8962),e),s(i(3539),e),s(i(5542),e),s(i(2922),e),s(i(2417),e),s(i(1406),e),s(i(1333),e),s(i(7512),e),s(i(7787),e),s(i(7410),e),s(i(7023),e),s(i(1405),e),s(i(1361),e),s(i(6830),e),s(i(5902),e),s(i(4143),e),s(i(2176),e),s(i(9122),e),s(i(1375),e),s(i(2636),e),s(i(3206),e),s(i(1637),e),s(i(8e3),e),s(i(586),e),s(i(1098),e),s(i(2059),e),s(i(1812),e),s(i(8578),e),s(i(4534),e),s(i(3401),e),s(i(6634),e),s(i(1881),e),s(i(8023),e),s(i(2397),e),s(i(3932),e),s(i(3091),e),$P((0,r.l)(),{Log:l.Log,SDK_VERSION:u.SDK_VERSION})},9296:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var s=Object.getOwnPropertyDescriptor(e,i);s&&("get"in s?e.__esModule:!s.writable&&!s.configurable)||(s={enumerable:!0,get:function(){return e[i]}}),$Q2(t,n,s)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),s=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};$Q(e),r=r(i(2018));s(i(2018),e),e.default=r.default},7262:(t,e,i)=>{$Q(e),e.Qe=void 0;const n=i(6914);function s(t,e){null!=t&&t.forEach(t=>{delete e[t]})}e.Qe=function(t,e){var i;return(e=(0,n.P)(e,"checksum","DeltasEvaluationResponse"))?(i=e,s((t=i=t=$P($P($P({},t),i),{feature_gates:$P($P({},t.feature_gates),i.feature_gates),layer_configs:$P($P({},t.layer_configs),i.layer_configs),dynamic_configs:$P($P({},t.dynamic_configs),i.dynamic_configs)})).deleted_gates,t.feature_gates),delete t.deleted_gates,s(i.deleted_configs,t.dynamic_configs),delete t.deleted_configs,s(i.deleted_layers,t.layer_configs),delete t.deleted_layers,i=t,(t=(0,n.$t)({feature_gates:i.feature_gates,dynamic_configs:i.dynamic_configs,layer_configs:i.layer_configs},2))===e.checksumV2?JSON.stringify(i):{hadBadDeltaChecksum:!0,badChecksum:t,badMergedConfigs:i,badFullResponse:e.deltas_full_response}):{hadBadDeltaChecksum:!0}}},4845:(t,e,i)=>{$Q(e);const n=i(6914),s=i(140),r=i(7095);e.default=class{constructor(t,e){this.j=t,this.O=e,this.Qn=null,this.ti=null,this.ei="Uninitialized",this.ii=0,this.ni=0,this.si=null,this.ri=new Set}reset(){this.ti=null,this.Qn=null,this.ei="Loading",this.ii=0,this.ni=0,this.si=null,this.ri.clear()}finalize(){this.ti||(this.ei="NoValues")}getValues(){return this.Qn}setValues(t,e){var i,a;return!!t&&null!=(a=(0,n.P)(t.data,"has_updates","EvaluationResponse"))&&(this.ei=t.source,!0!==(null==a?void 0:a.has_updates)||(null!=(i=a.time)?i:0)<this.ii||(this.Qn=(0,n.P)(t.data,"has_updates","EvaluationResponse"),this.ii=a.time,this.ni=t.receivedAt,"init-v2"===a.response_format?this.ti=new r.V2InitializeContainer(a):this.ti=new s.V1InitializeContainer(a),this.si=this.li(t.source,a),t.source&&a.user&&this.oi(e,a),n.SDKFlags.setFlags(this.j,null!=(i=a.sdk_flags)?i:{})),!0)}getWarnings(){if(0!==this.ri.size)return Array.from(this.ri)}getGate(t){return t=this.ti?this.ti.getGate(t):null,this.ui(t)}getConfig(t){return t=this.ti?this.ti.getConfig(t):null,this.ui(t)}getConfigList(){return this.ti?this.ti.getConfigList():[]}getLayer(t){return t=this.ti?this.ti.getLayer(t):null,this.ui(t)}getParamStore(t){return t=this.ti?this.ti.getParamStore(t):null,this.ui(t)}getSource(){return this.ei}getExposureMapping(){var t;return null==(t=this.ti)?void 0:t.getExposureMapping()}li(t,e){return"Bootstrap"!==t?null:(t={},e.user&&(t.user=e.user),e.sdkInfo&&(t.generatorSDKInfo=e.sdkInfo),t.lcut=e.time,t)}ui(t){return{result:t,details:this.ai(null==t)}}oi(t,e){var i,s=n.StableID.get(this.j);if((null==(i=t.customIDs)?void 0:i.stableID)!==s&&(null!=(i=t.customIDs)&&i.stableID||s))this.ri.add("StableIDMismatch");else if("user"in e){let s=e.user,r=$P($P({},t),{analyticsOnlyMetadata:void 0,privateAttributes:void 0});null!=(i=this.O)&&i.disableStableID&&(r=$P($P({},r),{customIDs:$P($P({},r.customIDs),{stableID:void 0})}),s=$P($P({},s),{customIDs:$P($P({},s.customIDs),{stableID:void 0})})),(0,n._)(r)!==(0,n._)(s)&&this.ri.add("PartialUserMatch")}}getCurrentSourceDetails(){var t;return"Uninitialized"===this.ei||"NoValues"===this.ei?{reason:this.ei}:(t={reason:this.ei,lcut:this.ii,receivedAt:this.ni},0<this.ri.size&&(t.warnings=Array.from(this.ri)),t)}ai(t){var e=this.getCurrentSourceDetails();let i=e.reason;var n=null!=(n=e.warnings)?n:[];return(t=("Bootstrap"===this.ei&&0<n.length&&(i+=n[0]),"Uninitialized"!==i&&"NoValues"!==i&&(i=i+":"+(t?"Unrecognized":"Recognized")),"Bootstrap"===this.ei&&null!=(n=this.si)?n:void 0))&&(e.bootstrapMetadata=t),$P($P({},e),{reason:i})}}},8448:function(t,e,i){var n=this&&this.__awaiter||$A();$Q(e);const s=i(6914),r=i(7262);class a extends s.NetworkCore{constructor(t,e){super(t,e),e=null==t?void 0:t.networkConfig,this.ci=t,this.hi=new s.UrlConfiguration(s.Endpoint.Qt,null==e?void 0:e.initializeUrl,null==e?void 0:e.api,null==e?void 0:e.initializeFallbackUrls)}fetchEvaluations(t,e,i,r,a){return n(this,void 0,void 0,function*(){var n,o=e?(0,s.P)(e,"has_updates","InitializeResponse"):null;let l={user:r,hash:null!=(n=null==(n=null==(n=this.ci)?void 0:n.networkConfig)?void 0:n.initializeHashAlgorithm)?n:"djb2",deltasResponseRequested:!1,full_checksum:null};return null!=o&&o.has_updates&&(n=(null==o?void 0:o.hash_used)!==(null!=(n=null==(n=null==(n=this.ci)?void 0:n.networkConfig)?void 0:n.initializeHashAlgorithm)?n:"djb2"),l=$P($P({},l),{sinceTime:a&&!n?o.time:0,previousDerivedFields:"derived_fields"in o&&a?o.derived_fields:{},deltasResponseRequested:!0,full_checksum:o.full_checksum,partialUserMatchSinceTime:n?0:o.time})),this.di(t,o,l,i)})}di(t,e,i,s){return n(this,void 0,void 0,function*(){var n,a=yield this.post({sdkKey:t,urlConfig:this.hi,data:i,retries:2,isStatsigEncodable:!0,priority:s});return 204===(null==a?void 0:a.code)?'{"has_updates": false}':200!==(null==a?void 0:a.code)?null!=(n=null==a?void 0:a.body)?n:null:!0!==(null==e?void 0:e.has_updates)||!0!==(null==(n=a.body)?void 0:n.includes('"is_delta":true'))||!0!==i.deltasResponseRequested?a.body:"string"==typeof(n=(0,r.Qe)(e,a.body))?n:this.di(t,e,$P($P($P({},i),n),{deltasResponseRequested:!1}),s)})}}e.default=a},3583:(t,e,i)=>{$Q(e),e.vi=void 0;const n=i(6914),s={disableExposureLog:!0};function r(t){return null==t||!1===t.disableExposureLog}function a(t,e){return null!=e&&!(0,n.Ye)(t,e)}e.vi=function(t,e,i){return(o,l)=>{if(null==e)return l;var u,h,d,c,g,v,f=e[o];if(null==f||null!=l&&(0,n.Vt)(l)!==f.param_type)return l;switch(f.ref_type){case"static":return f.value;case"gate":return v=f,t.getFeatureGate(v.gate_name,r(i)?void 0:s).value?v.pass_value:v.fail_value;case"dynamic_config":return v=f,g=l,a(c=(c=t).getDynamicConfig(v.config_name,r(i)?void 0:s).get(v.param_name),g)?g:c;case"experiment":return g=f,c=l,a(d=(d=t).getExperiment(g.experiment_name,r(i)?void 0:s).get(g.param_name),c)?c:d;case"layer":return d=f,h=l,a(u=(u=t).getLayer(d.layer_name,r(i)?void 0:s).get(d.param_name),h)?h:u;default:return l}}}},8198:function(t,e,i){var n=this&&this.__awaiter||$A();$Q(e);const s=i(6914),r=i(4845),a=i(8448),o=i(3583),l=i(4131);class u extends s.StatsigClientBase{static instance(t){var e=(0,s.l)().instance(t);return e instanceof u?e:(s.Log.warn((0,s.Mt)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new u(null!=t?t:"",{}))}constructor(t,e,i=null){s.SDKType.Oe(t,"javascript-client");var n,o=new a.default(i,t=>{this.$emt(t)});super(t,null!=(n=null==i?void 0:i.dataAdapter)?n:new l.StatsigEvaluationsDataAdapter,o,i),this.fi={},this.getFeatureGate=this.Pe(s.MemoPrefix.Gt,this.gi.bind(this)),this.getDynamicConfig=this.Pe(s.MemoPrefix.Jt,this._i.bind(this)),this.getExperiment=this.Pe(s.MemoPrefix.Wt,this.pi.bind(this)),this.getConfigList=this.Pe(s.MemoPrefix.Yt,this.bi.bind(this)),this.getLayer=this.Pe(s.MemoPrefix.Xt,this.yi.bind(this)),this.getParameterStore=this.Pe(s.MemoPrefix.Ht,this.mi.bind(this)),this.Oi=new r.default(t,null!=i?i:null),this.ft=o,this.ji=this.Si(e,i),this.wi=(0,s.getUUID)(),this.Xn=new s.PrecomputedEvaluationsContextHandle(t,()=>this.O,()=>this.te,()=>this.Oi.getValues(),()=>this.ji,()=>this.wi),o=null!=(n=null==i?void 0:i.plugins)?n:[];for(const t of o)t.bind(this)}initializeSync(t){var e;return"Uninitialized"!==this.loadingStatus?(0,s.createUpdateDetails)(!0,this.Oi.getSource(),-1,null,null,["MultipleInitializations",...null!=(e=this.Oi.getWarnings())?e:[]]):(this.Re.start(),this.updateUserSync(this.ji,t))}initializeAsync(t){return n(this,void 0,void 0,function*(){return this.xe||(this.xe=this.ki(t)),this.xe})}updateUserSync(t,e){var i=performance.now();try{return this.Ei(t,e,i)}catch(e){return t=e instanceof Error?e:new Error(String(e)),this.Di(t,i)}}Ei(t,e,i){var n=[...null!=(n=this.Oi.getWarnings())?n:[]];return!0===(e=(null==(t=(this.Ii(t),this.dataAdapter.getDataSync(this.ji)))&&n.push("NoCachedValues"),this.Oi.setValues(t,this.ji),this.Mi(t),null==e?void 0:e.disableBackgroundCacheRefresh))||null==e&&"Bootstrap"===(null==t?void 0:t.source)||this.xi(null!=t?t:null,this.ji),(0,s.createUpdateDetails)(!0,this.Oi.getSource(),performance.now()-i,this.te.getLastSeenErrorAndReset(),this.ft.getLastUsedInitUrlAndReset(),n)}updateUserAsync(t,e){return n(this,void 0,void 0,function*(){var i=performance.now();try{return yield this.Ti(t,e)}catch(t){var n=t instanceof Error?t:new Error(String(t));return this.Di(n,i)}})}Ti(t,e){return n(this,void 0,void 0,function*(){this.Ii(t);var i=this.ji,n=(s.Diagnostics.G(this.j),this.dataAdapter.getDataSync(i));if(this.Oi.setValues(n,this.ji),this.Ae("Loading",n),n=yield this.dataAdapter.getDataAsync(n,i,e),i!==this.ji)return(0,s.createUpdateDetails)(!1,this.Oi.getSource(),-1,new Error("User changed during update"),this.ft.getLastUsedInitUrlAndReset());let r=!1;return null!=n&&(s.Diagnostics.X(this.j),r=this.Oi.setValues(n,this.ji),s.Diagnostics.H(this.j,{success:r})),this.Mi(n),r||(this.te.attachErrorIfNoneExists(s.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),s.Diagnostics.J(this.j,r,this.Oi.getCurrentSourceDetails()),i=s.Diagnostics.it(this.ji,this.Re,this.j,this.O),(0,s.createUpdateDetails)(r,this.Oi.getSource(),i,this.te.getLastSeenErrorAndReset(),this.ft.getLastUsedInitUrlAndReset(),this.Oi.getWarnings())})}getContext(){let t=(0,s.Li)("StatsigUser",this.ji);return null==t&&(s.Log.error("Failed to clone user"),t={}),{sdkKey:this.j,options:this.O,values:this.Oi.getValues(),user:t,errorBoundary:this.te,session:s.StatsigSession.get(this.j),stableID:s.StableID.get(this.j),sdkInstanceID:this.wi}}getContextHandle(){return this.Xn}checkGate(t,e){return this.getFeatureGate(t,e).value}logEvent(t,e,i){e="string"==typeof t?{eventName:t,value:e,metadata:i}:t,this.$emt({name:"log_event_called",event:e}),this.Re.enqueue($P($P({},e),{user:this.ji,time:Date.now()}))}updateUserWithAnalyticsOnlyMetadata(t){this.ji=this.Si($P($P({},this.ji),{analyticsOnlyMetadata:t}),this.O)}Ue(){this.$on("error",()=>{"Loading"===this.loadingStatus&&this.Mi(null)})}ki(t){return n(this,void 0,void 0,function*(){return s.Storage.isReady()||(yield s.Storage.isReadyResolver()),this.Re.start(),this.updateUserAsync(this.ji,t)})}Di(t,e){return(0,s.createUpdateDetails)(!1,this.Oi.getSource(),performance.now()-e,t,null,[...null!=(e=this.Oi.getWarnings())?e:[]])}Mi(t){this.Oi.finalize(),this.Ae("Ready",t)}xi(t,e){this.dataAdapter.getDataAsync(t,e,{priority:"low"}).catch(t=>{s.Log.error("An error occurred after update.",t)})}Ii(t){this.Re.reset(),this.Oi.reset(),this.ji=this.Si(t,this.O)}Si(t,e){var i;const n=null==(e=(t=(0,s.D)(t,e)).customIDs)?void 0:e.stableID;return n&&((i=null==(i=(e=this.storageProvider).isReadyResolver)?void 0:i.call(e))?i.then(()=>s.StableID.setOverride(n,this.j),()=>s.StableID.setOverride(n,this.j)):s.StableID.setOverride(n,this.j)),0<Object.keys(this.fi).length&&(t.analyticsOnlyMetadata=$P($P({},t.analyticsOnlyMetadata),this.fi)),t}gi(t,e){var{result:i,details:n}=this.Oi.getGate(t),n=(this.Hn(null==i?void 0:i.id_type,t,"Gate"),this.Yn(n.reason),(0,s.We)(t,n,i)),r=null==(r=null==(i=this.overrideAdapter)?void 0:i.getGateOverride)?void 0:r.call(i,n,this.ji,e),i=null!=r?r:n;return this.Fe(t,(0,s.Ke)(this.ji,i,this.Oi.getExposureMapping()),e),this.$emt({name:"gate_evaluation",gate:i}),i}_i(t,e){var{result:i,details:n}=this.Oi.getConfig(t),n=(this.Hn(null==i?void 0:i.id_type,t,"Dynamic config"),this.Yn(n.reason),(0,s.Je)(t,n,i)),r=null==(r=null==(i=this.overrideAdapter)?void 0:i.getDynamicConfigOverride)?void 0:r.call(i,n,this.ji,e),i=null!=r?r:n;return this.Fe(t,(0,s.ze)(this.ji,i,this.Oi.getExposureMapping()),e),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:i}),i}pi(t,e){var i,{result:n,details:i}=this.Oi.getConfig(t),r=(null!=(i=(this.Hn(null==n?void 0:n.id_type,t,"Experiment"),this.Yn(i.reason),(0,s.Ge)(t,i,n))).__evaluation&&(i.__evaluation.secondary_exposures=(0,s.qe)(null!=(n=null==(n=i.__evaluation)?void 0:n.secondary_exposures)?n:[],this.Oi.getExposureMapping())),null==(r=null==(n=this.overrideAdapter)?void 0:n.getExperimentOverride)?void 0:r.call(n,i,this.ji,e)),n=null!=r?r:i;return this.Fe(t,(0,s.ze)(this.ji,n,this.Oi.getExposureMapping()),e),this.$emt({name:"experiment_evaluation",experiment:n}),n}bi(){return this.Oi.getConfigList()}yi(t,e){var{result:i,details:n}=this.Oi.getLayer(t),n=(0,s.Ve)(t,n,i),r=null==(r=null==(i=this.overrideAdapter)?void 0:i.getLayerOverride)?void 0:r.call(i,n,this.ji,e);null!=e&&e.disableExposureLog&&this.Re.incrementNonExposureCount(t);const a=(0,s.$e)(n,r,null!=(i=null==r?void 0:r.__value)?i:n.__value,i=>{null!=e&&e.disableExposureLog||this.Fe(t,(0,s.Le)(this.ji,a,i,this.Oi.getExposureMapping()),e)});return this.$emt({name:"layer_evaluation",layer:a}),a}mi(t,e){var i,{result:i,details:n}=this.Oi.getParamStore(t);this.Re.incrementNonExposureCount(t),t={name:t,details:n,__configuration:i,get:(0,o.vi)(this,i,e)};return null!=(i=null==(i=null==(n=this.overrideAdapter)?void 0:n.getParamStoreOverride)?void 0:i.call(n,t,e))&&(t.__configuration=i.config,t.details=i.details,t.get=(0,o.vi)(this,i.config,e)),t}Hn(t,e,i){!t||(0,s.Wn)(this.ji,t)||s.Log.warn(`The user does not have the required id_type "${t}" for ${i} "${e}"`)}Yn(t){"Uninitialized"!==t&&!t.startsWith("Loading")||s.Log.warn("SDK initialization has not completed. Reason: "+t)}}e.default=u},4131:function(t,e,i){var n=this&&this.__awaiter||$A();$Q(e),e.StatsigEvaluationsDataAdapter=void 0;const s=i(6914),r=i(8448);class a extends s.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this.ft=null,this.O=null}attach(t,e,i){super.attach(t,e,i),null!==i&&i instanceof r.default?this.ft=i:this.ft=new r.default(null!=e?e:{})}getDataAsync(t,e,i){return this.C(t,(0,s.D)(e,this.O),i)}prefetchData(t,e){return this.U(t,e)}setData(t){var e=(0,s.P)(t,"has_updates","data");e&&"user"in e?super.setData(t,e.user):s.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(t,e){super.setData(t,e)}F(t,e,i,s){return n(this,void 0,void 0,function*(){var n=yield null==(n=this.ft)?void 0:n.fetchEvaluations(this.N(),t,null==i?void 0:i.priority,e,s);return null!=n?n:null})}I(t){return t=(0,s.o)(this.N(),t,null==(t=this.O)?void 0:t.customUserCacheKeyFunc),`${s.DataAdapterCachePrefix}.${this.m}.`+t}A(t,e){return null!=t.fullUserHash&&t.fullUserHash===(0,s._)(e)}}e.StatsigEvaluationsDataAdapter=a},140:(t,e,i)=>{$Q(e),e.V1InitializeContainer=void 0;const n=i(6914);e.V1InitializeContainer=class{constructor(t){this.ti=t}getGate(t){return this.Zn(this.ti.feature_gates,t)}getConfig(t){return this.Zn(this.ti.dynamic_configs,t)}getLayer(t){return this.Zn(this.ti.layer_configs,t)}getParamStore(t){return this.Zn(this.ti.param_stores,t)}getConfigList(){return Object.keys(this.ti.dynamic_configs)}getExposureMapping(){return this.ti.exposures}Zn(t,e){var i;return t&&null!=(i=null!=(i=t[e])?i:t[(0,n.h)(e)])?i:null}}},7095:(t,e,i)=>{$Q(e),e.V2InitializeContainer=void 0;const n=i(6914);e.V2InitializeContainer=class{constructor(t){this.ti=t}getGate(t){var e=this.Zn(this.ti.feature_gates,t);return e?{name:t,value:!0===e.v,rule_id:null!=(t=e.r)?t:"default",secondary_exposures:null!=(t=e.s)?t:[],id_type:null!=(t=e.i)?t:""}:null}getConfig(t){var e=this.Zn(this.ti.dynamic_configs,t);return e?{name:t,value:null!=(t=this.ti.values[e.v])?t:{},rule_id:e.r,secondary_exposures:null!=(t=e.s)?t:[],id_type:null!=(t=e.i)?t:"",is_user_in_experiment:!0===e.ue,passed:!0===e.p,group_name:null!=(t=e.gn)?t:void 0,is_experiment_active:!0===e.ea,group:e.r,is_device_based:"stableID"===e.i}:null}getLayer(t){var e=this.Zn(this.ti.layer_configs,t);return e?{name:t,value:null!=(t=this.ti.values[e.v])?t:{},rule_id:e.r,secondary_exposures:null!=(t=e.s)?t:[],is_user_in_experiment:!0===e.ue,group_name:null!=(t=e.gn)?t:void 0,is_experiment_active:!0===e.ea,group:e.r,is_device_based:"stableID"===e.i,allocated_experiment_name:null!=(t=e.ae)?t:"",explicit_parameters:null!=(t=e.ep)?t:[],undelegated_secondary_exposures:null!=(t=e.us)?t:[],parameter_rule_ids:e.pr}:null}getParamStore(t){return this.Zn(this.ti.param_stores,t)}getConfigList(){return Object.keys(this.ti.dynamic_configs)}getExposureMapping(){return this.ti.exposures}Zn(t,e){var i;return t&&null!=(i=null!=(i=t[e])?i:t[(0,n.h)(e)])?i:null}}}
1,2018:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var s=Object.getOwnPropertyDescriptor(e,i);s&&("get"in s?e.__esModule:!s.writable&&!s.configurable)||(s={enumerable:!0,get:function(){return e[i]}}),$Q2(t,n,s)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),s=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)},r=($Q(e),e.StatsigClient=void 0,i(6914)),a=i(8198);e.StatsigClient=a.default,s(i(6914),e),s=$P((0,r.l)(),{StatsigClient:a.default});e.default=s}},e={};function i(n){var s=e[n];return void 0!==s||(s=e[n]={exports:{}},t[n].call(s.exports,s,s.exports,i)),s.exports}return i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i(9296).default})());
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.