PageSourceSearch

https://spotpet.com/_next/static/chunks/pages/_app-b07ee565a53ae70d.js

js spotpet.com collected 2026-10-02 04:58:43 UTC 125,516 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{21549:(e,t,i)=>{var r=i(22032),n=i(63862),s=i(66721),a=i(12749),o=i(35749);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=n,l.prototype.get=s,l.prototype.has=a,l.prototype.set=o,e.exports=l},80079:(e,t,i)=>{var r=i(63702),n=i(70080),s=i(24739),a=i(48655),o=i(31175);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=n,l.prototype.get=s,l.prototype.has=a,l.prototype.set=o,e.exports=l},68223:(e,t,i)=>{var r=i(56110)(i(9325),"Map");e.exports=r},53661:(e,t,i)=>{var r=i(63040),n=i(17670),s=i(90289),a=i(4509),o=i(72949);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=n,l.prototype.get=s,l.prototype.has=a,l.prototype.set=o,e.exports=l},51873:(e,t,i)=>{var r=i(9325).Symbol;e.exports=r},34932:e=>{e.exports=function(e,t){for(var i=-1,r=null==e?0:e.length,n=Array(r);++i<r;)n[i]=t(e[i],i,e);return n}},26025:(e,t,i)=>{var r=i(75288);e.exports=function(e,t){for(var i=e.length;i--;)if(r(e[i][0],t))return i;return -1}},47422:(e,t,i)=>{var r=i(31769),n=i(77797);e.exports=function(e,t){t=r(t,e);for(var i=0,s=t.length;null!=e&&i<s;)e=e[n(t[i++])];return i&&i==s?e:void 0}},72552:(e,t,i)=>{var r=i(51873),n=i(659),s=i(59350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?n(e):s(e)}},45083:(e,t,i)=>{var r=i(1882),n=i(87296),s=i(23805),a=i(47473),o=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,d=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||n(e))&&(r(e)?d:o).test(a(e))}},25160:e=>{e.exports=function(e,t,i){var r=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(i=i>n?n:i)<0&&(i+=n),n=t>i?0:i-t>>>0,t>>>=0;for(var s=Array(n);++r<n;)s[r]=e[r+t];return s}},77556:(e,t,i)=>{var r=i(51873),n=i(34932),s=i(56449),a=i(44394),o=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return n(t,e)+"";if(a(t))return u?u.call(t):"";var i=t+"";return"0"==i&&1/t==-o?"-0":i}},19931:(e,t,i)=>{var r=i(31769),n=i(68090),s=i(68969),a=i(77797);e.exports=function(e,t){return t=r(t,e),null==(e=s(e,t))||delete e[a(n(t))]}},31769:(e,t,i)=>{var r=i(56449),n=i(28586),s=i(61802),a=i(13222);e.exports=function(e,t){return r(e)?e:n(e,t)?[e]:s(a(e))}},55481:(e,t,i)=>{var r=i(9325)["__core-js_shared__"];e.exports=r},34840:(e,t,i)=>{var r="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;e.exports=r},12651:(e,t,i)=>{var r=i(74218);e.exports=function(e,t){var i=e.__data__;return r(t)?i["string"==typeof t?"string":"hash"]:i.map}},56110:(e,t,i)=>{var r=i(45083),n=i(10392);e.exports=function(e,t){var i=n(e,t);return r(i)?i:void 0}},659:(e,t,i)=>{var r=i(51873),n=Object.prototype,s=n.hasOwnProperty,a=n.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,o),i=e[o];try{e[o]=void 0;var r=!0}catch(e){}var n=a.call(e);return r&&(t?e[o]=i:delete e[o]),n}},10392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},22032:(e,t,i)=>{var r=i(81042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},63862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},66721:(e,t,i)=>{var r=i(81042),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return n.call(t,e)?t[e]:void 0}},12749:(e,t,i)=>{var r=i(81042),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},35749:(e,t,i)=>{var r=i(81042);e.exports=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},28586:(e,t,i)=>{var r=i(56449),n=i(44394),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var i=typeof e;return!!("number"==i||"symbol"==i||"boolean"==i||null==e||n(e))||a.test(e)||!s.test(e)||null!=t&&e in Object(t)}},74218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},87296:(e,t,i)=>
1{var r=i(55481),n=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!n&&n in e}},63702:e=>{e.exports=function(){this.__data__=[],this.size=0}},70080:(e,t,i)=>{var r=i(26025),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,i=r(t,e);return!(i<0)&&(i==t.length-1?t.pop():n.call(t,i,1),--this.size,!0)}},24739:(e,t,i)=>{var r=i(26025);e.exports=function(e){var t=this.__data__,i=r(t,e);return i<0?void 0:t[i][1]}},48655:(e,t,i)=>{var r=i(26025);e.exports=function(e){return r(this.__data__,e)>-1}},31175:(e,t,i)=>{var r=i(26025);e.exports=function(e,t){var i=this.__data__,n=r(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this}},63040:(e,t,i)=>{var r=i(21549),n=i(80079),s=i(68223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||n),string:new r}}},17670:(e,t,i)=>{var r=i(12651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},90289:(e,t,i)=>{var r=i(12651);e.exports=function(e){return r(this,e).get(e)}},4509:(e,t,i)=>{var r=i(12651);e.exports=function(e){return r(this,e).has(e)}},72949:(e,t,i)=>{var r=i(12651);e.exports=function(e,t){var i=r(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this}},62224:(e,t,i)=>{var r=i(50104);e.exports=function(e){var t=r(e,function(e){return 500===i.size&&i.clear(),e}),i=t.cache;return t}},81042:(e,t,i)=>{var r=i(56110)(Object,"create");e.exports=r},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},68969:(e,t,i)=>{var r=i(47422),n=i(25160);e.exports=function(e,t){return t.length<2?e:r(e,n(t,0,-1))}},9325:(e,t,i)=>{var r=i(34840),n="object"==typeof self&&self&&self.Object===Object&&self,s=r||n||Function("return this")();e.exports=s},61802:(e,t,i)=>{var r=i(62224),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(n,function(e,i,r,n){t.push(r?n.replace(s,"$1"):i||e)}),t});e.exports=a},77797:(e,t,i)=>{var r=i(44394),n=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-n?"-0":t}},47473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},75288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},56449:e=>{var t=Array.isArray;e.exports=t},1882:(e,t,i)=>{var r=i(72552),n=i(23805);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},23805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},44394:(e,t,i)=>{var r=i(72552),n=i(40346);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==r(e)}},68090:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},50104:(e,t,i)=>{var r=i(53661);function n(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var i=function(){var r=arguments,n=t?t.apply(this,r):r[0],s=i.cache;if(s.has(n))return s.get(n);var a=e.apply(this,r);return i.cache=s.set(n,a)||s,a};return i.cache=new(n.Cache||r),i}n.Cache=r,e.exports=n},13222:(e,t,i)=>{var r=i(77556);e.exports=function(e){return null==e?"":r(e)}},73357:(e,t,i)=>{var r=i(19931);e.exports=function(e,t){return null==e||r(e,t)}},18424:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return i(38368)}])},90938:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});let r={src:"/_next/static/media/logo.07629d48.svg",height:53,width:116,blurWidth:0,blurHeight:0}},38368:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>H});var r=i(74848),n=i(96540),s=i(18987),a=i(38287),o=i(46637);let l=(e=21)=>{let t="",i=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&i[e]];return t};var u=i(33263);class c{static getStatsigUser(e){let t,i,{searchParams:r,cookieID:n,userID:a,initialCustom:c}=e,d=u.A.getQueryParameter("tuid");d?(t=d,i=!1,d!==s.A.get("tuid")&&s.A.set("tuid",d,{path:"/",domain:o.r.COOKIE_DOMAIN,secure:!o.r.COOKIE_DOMAIN.includes("localhost"),sameSite:"Lax"})):a?(t=a,i=!1):n?(t=n,i=!1):(t=l(),i=!0,s.A.set("tuid",t,{path:"/",domain:o.r.COOKIE_DOMAIN,secure:!o.r.COOKIE_DOMAIN.includes("localhost"),sameSite:"Lax"}));let h={};
1return Object.entries(r).forEach(e=>{let[t,i]=e;if(void 0!==i){if(Array.isArray(i)){let e=i[i.length-1];void 0!==e&&(h["query_".concat(t)]=e)}else h["query_".concat(t)]=i}}),{userID:t,custom:{...c,...h,isNewTUID:i}}}}var d=i(24416);function h(e){let{children:t}=e,i=(0,n.useRef)(null),[l,h]=(0,n.useState)(null),[p,g]=(0,n.useState)({userID:"",custom:{isNewTUID:!1}}),{quoteId:f}=(0,d.o)();return((0,n.useEffect)(()=>{let e=s.A.get("tuid"),t=u.A.getQueryParameters();g(c.getStatsigUser({searchParams:t,cookieID:e,userID:p.userID,initialCustom:{hasQuoteIdCookie:!!f}}))},[f,p.userID]),(0,n.useEffect)(()=>{if(!o.r.STATSIG_CLIENT_KEY||!p.userID)return;if(i.current){h(i.current);return}let e=new a.StatsigClient(o.r.STATSIG_CLIENT_KEY,p,{environment:{tier:o.r.ENVIRONMENT}});e.initializeAsync(),i.current=e,h(e)},[p]),p.userID&&o.r.STATSIG_CLIENT_KEY&&l)?(0,r.jsx)(a.StatsigProvider,{client:l,children:t}):(0,r.jsx)(r.Fragment,{children:t})}var p="undefined"==typeof window||"Deno"in globalThis;function g(){}function f(e,t){return"function"==typeof e?e(t):e}function v(e,t){let{type:i="all",exact:r,fetchStatus:n,predicate:s,queryKey:a,stale:o}=e;if(a){if(r){if(t.queryHash!==y(a,t.options))return!1}else if(!b(t.queryKey,a))return!1}if("all"!==i){let e=t.isActive();if("active"===i&&!e||"inactive"===i&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!n||n===t.state.fetchStatus)&&(!s||!!s(t))}function _(e,t){let{exact:i,status:r,predicate:n,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(i){if(m(t.options.mutationKey)!==m(s))return!1}else if(!b(t.options.mutationKey,s))return!1}return(!r||t.state.status===r)&&(!n||!!n(t))}function y(e,t){return(t?.queryKeyHashFn||m)(e)}function m(e){return JSON.stringify(e,(e,t)=>C(t)?Object.keys(t).sort().reduce((e,i)=>(e[i]=t[i],e),{}):t)}function b(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(i=>!b(e[i],t[i]))}function S(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function C(e){if(!w(e))return!1;let t=e.constructor;if(void 0===t)return!0;let i=t.prototype;return!!(w(i)&&i.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function O(e,t,i=0){let r=[...e,t];return i&&r.length>i?r.slice(1):r}function E(e,t,i=0){let r=[t,...e];return i&&r.length>i?r.slice(0,-1):r}var I=Symbol();function P(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==I?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}var k=function(){let e=[],t=0,i=e=>{e()},r=e=>{e()},n=e=>setTimeout(e,0),s=r=>{t?e.push(r):n(()=>{i(r)})},a=()=>{let t=e;e=[],t.length&&n(()=>{r(()=>{t.forEach(e=>{i(e)})})})};return{batch:e=>{let i;t++;try{i=e()}finally{--t||a()}return i},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{i=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{n=e}}}(),D=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},A=new class extends D{#e;#t;#i;constructor(){super(),this.#i=e=>{if(!p&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#i=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}},x=new class extends D{#r=!0;#t;#i;constructor(){super(),this.#i=e=>{if(!p&&window.addEventListener){let t=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#i=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}
1setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#r}};function T(e){return Math.min(1e3*2**e,3e4)}function j(e){return(e??"online")!=="online"||x.isOnline()}var U=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function R(e){return e instanceof U}function L(e){let t,i=!1,r=0,n=!1,s=function(){let e,t;let i=new Promise((i,r)=>{e=i,t=r});function r(e){Object.assign(i,e),delete i.resolve,delete i.reject}return i.status="pending",i.catch(()=>{}),i.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},i.reject=e=>{r({status:"rejected",reason:e}),t(e)},i}(),a=()=>A.isFocused()&&("always"===e.networkMode||x.isOnline())&&e.canRun(),o=()=>j(e.networkMode)&&e.canRun(),l=i=>{n||(n=!0,e.onSuccess?.(i),t?.(),s.resolve(i))},u=i=>{n||(n=!0,e.onError?.(i),t?.(),s.reject(i))},c=()=>new Promise(i=>{t=e=>{(n||a())&&i(e)},e.onPause?.()}).then(()=>{t=void 0,n||e.onContinue?.()}),d=()=>{let t;if(n)return;let s=0===r?e.initialPromise:void 0;try{t=s??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=>{if(n)return;let s=e.retry??(p?0:3),o=e.retryDelay??T,l="function"==typeof o?o(r,t):o,h=!0===s||"number"==typeof s&&r<s||"function"==typeof s&&s(r,t);if(i||!h){u(t);return}r++,e.onFail?.(r,t),new Promise(e=>{setTimeout(e,l)}).then(()=>a()?void 0:c()).then(()=>{i?u(t):d()})})};return{promise:s,cancel:t=>{n||(u(new U(t)),e.abort?.())},continue:()=>(t?.(),s),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:o,start:()=>(o()?d():c().then(d),s)}}var M=class{#n;destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.gcTime)&&e>=0&&e!==1/0&&(this.#n=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(p?1/0:3e5))}clearGcTimeout(){this.#n&&(clearTimeout(this.#n),this.#n=void 0)}},N=class extends M{#s;#a;#o;#l;#u;#c;constructor(e){super(),this.#c=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#s=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,i=void 0!==t,r=i?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#s,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(e){this.options={...this.#u,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#o.remove(this)}setData(e,t){var i,r;let n=(i=this.state.data,"function"==typeof(r=this.options).structuralSharing?r.structuralSharing(i,e):!1!==r.structuralSharing?function e(t,i){if(t===i)return t;let r=S(t)&&S(i);if(r||C(t)&&C(i)){let n=r?t:Object.keys(t),s=n.length,a=r?i:Object.keys(i),o=a.length,l=r?[]:{},u=0;for(let s=0;s<o;s++){let o=r?s:a[s];(!r&&n.includes(o)||r)&&void 0===t[o]&&void 0===i[o]?(l[o]=void 0,u++):(l[o]=e(t[o],i[o]),l[o]===t[o]&&void 0!==t[o]&&u++)}return s===o&&u===s?t:l}return i}(i,e):e);return this.#d({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#d({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#l?.promise;return this.#l?.cancel(e),t?t.then(g).catch(g):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#s)}isActive(){return this.observers.some(e=>{var t;return!1!==("function"==typeof(t=e.options.enabled)?t(this):t)})}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===I||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!Math.max(this.state.dataUpdatedAt+(e||0)-Date.now(),0)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#l&&(this.#c?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let i=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#c=!0,i.signal)}
1)},n={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{let e=P(this.options,t),i={queryKey:this.queryKey,meta:this.meta};return(r(i),this.#c=!1,this.options.persister)?this.options.persister(e,i,this):e(i)}};r(n),this.options.behavior?.onFetch(n,this),this.#a=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==n.fetchOptions?.meta)&&this.#d({type:"fetch",meta:n.fetchOptions?.meta});let s=e=>{R(e)&&e.silent||this.#d({type:"error",error:e}),R(e)||(this.#o.config.onError?.(e,this),this.#o.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#l=L({initialPromise:t?.initialPromise,fn:n.fetchFn,abort:i.abort.bind(i),onSuccess:e=>{if(void 0===e){s(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){s(e);return}this.#o.config.onSuccess?.(e,this),this.#o.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:s,onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:n.options.retry,retryDelay:n.options.retryDelay,networkMode:n.options.networkMode,canRun:()=>!0}),this.#l.start()}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":var i;return{...t,...(i=t.data,{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:j(this.options.networkMode)?"fetching":"paused",...void 0===i&&{error:null,status:"pending"}}),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=e.error;if(R(r)&&r.revert&&this.#a)return{...this.#a,fetchStatus:"idle"};return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),k.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}},F=class extends D{constructor(e={}){super(),this.config=e,this.#h=new Map}#h;build(e,t,i){let r=t.queryKey,n=t.queryHash??y(r,t),s=this.get(n);return s||(s=new N({cache:this,queryKey:r,queryHash:n,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#h.has(e.queryHash)||(this.#h.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#h.get(e.queryHash);t&&(e.destroy(),t===e&&this.#h.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){k.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#h.get(e)}getAll(){return[...this.#h.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>v(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>v(e,t)):t}notify(e){k.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){k.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){k.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},K=class extends M{#p;#g;#l;constructor(e){super(),this.mutationId=e.mutationId,this.#g=e.mutationCache,this.#p=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#p.includes(e)||(this.#p.push(e),this.clearGcTimeout(),this.#g.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#p=this.#p.filter(t=>t!==e),this.scheduleGc(),this.#g.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#p.length||("pending"===this.state.status?this.scheduleGc():this.#g.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(e){this.#l=L({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#g.canRun(this)});let t="pending"===this.state.status,i=!this.#l.canStart();try{if(!t){this.#d({type:"pending",variables:e,isPaused:i}),await this.#g.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:i})}let r=await this.#l.start();return await this.#g.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#g.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#d({type:"success",data:r}),r}catch(t){try{throw await this.#g.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#g.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#d({type:"error",error:t})}}finally{this.#g.runNext(this)}}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
1case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),k.batch(()=>{this.#p.forEach(t=>{t.onMutationUpdate(e)}),this.#g.notify({mutation:this,type:"updated",action:e})})}},B=class extends D{constructor(e={}){super(),this.config=e,this.#f=new Map,this.#v=Date.now()}#f;#v;build(e,t,i){let r=new K({mutationCache:this,mutationId:++this.#v,options:e.defaultMutationOptions(t),state:i});return this.add(r),r}add(e){let t=q(e),i=this.#f.get(t)??[];i.push(e),this.#f.set(t,i),this.notify({type:"added",mutation:e})}remove(e){let t=q(e);if(this.#f.has(t)){let i=this.#f.get(t)?.filter(t=>t!==e);i&&(0===i.length?this.#f.delete(t):this.#f.set(t,i))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#f.get(q(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#f.get(q(e))?.find(t=>
1t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){k.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#f.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>_(t,e))}findAll(e={}){return this.getAll().filter(t=>_(e,t))}notify(e){k.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return k.batch(()=>Promise.all(e.map(e=>e.continue().catch(g))))}};function q(e){return e.options.scope?.id??String(e.mutationId)}function G(e){return{onFetch:(t,i)=>{let r=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],a=t.state.data?.pageParams||[],o={pages:[],pageParams:[]},l=0,u=async()=>{let i=!1,u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?i=!0:t.signal.addEventListener("abort",()=>{i=!0}),t.signal)})},c=P(t.options,t.fetchOptions),d=async(e,r,n)=>{if(i)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);let s={queryKey:t.queryKey,pageParam:r,direction:n?"backward":"forward",meta:t.options.meta};u(s);let a=await c(s),{maxPages:o}=t.options,l=n?E:O;return{pages:l(e.pages,a,o),pageParams:l(e.pageParams,r,o)}};if(n&&s.length){let e="backward"===n,t={pages:s,pageParams:a},i=(e?function(e,{pages:t,pageParams:i}){return t.length>0?e.getPreviousPageParam?.(t[0],t,i[0],i):void 0}:z)(r,t);o=await d(t,i,e)}else{let t=e??s.length;do{let e=0===l?a[0]??r.initialPageParam:z(r,o);if(l>0&&null==e)break;o=await d(o,e),l++}while(l<t)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i):t.fetchFn=u}}}function z(e,{pages:t,pageParams:i}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,i[r],i):void 0}var $=class{#_;#g;#u;#y;#m;#b;#S;#C;constructor(e={}){this.#_=e.queryCache||new F,this.#g=e.mutationCache||new B,this.#u=e.defaultOptions||{},this.#y=new Map,this.#m=new Map,this.#b=0}mount(){this.#b++,1===this.#b&&(this.#S=A.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#_.onFocus())}),this.#C=x.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#_.onOnline())}))}unmount(){this.#b--,0===this.#b&&(this.#S?.(),this.#S=void 0,this.#C?.(),this.#C=void 0)}isFetching(e){return this.#_.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#g.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#_.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),i=this.#_.build(this,t),r=i.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(f(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#_.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,i){let r=this.defaultQueryOptions({queryKey:e}),n=this.#_.get(r.queryHash),s=n?.state.data,a="function"==typeof t?t(s):t;if(void 0!==a)return this.#_.build(this,r).setData(a,{...i,manual:!0})}setQueriesData(e,t,i){return k.batch(()=>this.#_.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,i)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#_.get(t.queryHash)?.state}removeQueries(e){let t=this.#_;k.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let i=this.#_,r={type:"active",...e};return k.batch(()=>(i.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){let i={revert:!0,...t};return Promise.all(k.batch(()=>this.#_.findAll(e).map(e=>e.cancel(i)))).then(g).catch(g)}invalidateQueries(e,t={}){return k.batch(()=>{if(this.#_.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")return Promise.resolve();let i={...e,type:e?.refetchType??e?.type??"active"};return this.refetchQueries(i,t)})}refetchQueries(e,t={}){let i={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(k.batch(()=>this.#_.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,i);return i.throwOnError||(t=t.catch(g)),"paused"===e.state.fetchStatus?Promise.resolve():t}
1))).then(g)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let i=this.#_.build(this,t);return i.isStaleByTime(f(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(g).catch(g)}fetchInfiniteQuery(e){return e.behavior=G(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(g).catch(g)}ensureInfiniteQueryData(e){return e.behavior=G(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return x.isOnline()?this.#g.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#_}getMutationCache(){return this.#g}getDefaultOptions(){return this.#u}setDefaultOptions(e){this.#u=e}setQueryDefaults(e,t){this.#y.set(m(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#y.values()],i={};return t.forEach(t=>{b(e,t.queryKey)&&Object.assign(i,t.defaultOptions)}),i}setMutationDefaults(e,t){this.#m.set(m(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#m.values()],i={};return t.forEach(t=>{b(e,t.mutationKey)&&(i={...i,...t.defaultOptions})}),i}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#u.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=y(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===I&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#u.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#_.clear(),this.#g.clear()}},Q=n.createContext(void 0),W=({client:e,children:t})=>(n.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(Q.Provider,{value:e,children:t}));i(97279);let V=new $;function H(e){let{Component:t,pageProps:i}=e;return(0,r.jsx)(W,{client:V,children:(0,r.jsx)(h,{children:(0,r.jsx)(t,{...i})})})}},22725:(e,t,i)=>{"use strict";i.d(t,{j:()=>u});var r=i(52302),n=i.n(r),s=i(46637),a=i(26135);let o={compareWidget:[{id:"hero",subheading:"Dive into our comprehensive pet insurance comparison to see how Spot's offerings measure up against other providers. Our guide simplifies comparing pet insurance, highlighting key differences and benefits. Discover the crucial factors that set Spot plans apart in the pet insurance landscape, helping ensure you make an informed decision for your pet's health and well-being."},{id:"options",subheading:"Choosing pet insurance involves comparing key factors including policies, coverage differences, claim eligibility, and reimbursement rates. Understanding these factors is crucial when determining the coverage and cost-effectiveness of your pet's health care, as these differences can greatly influence the coverage of your claims and the reimbursement amount after veterinary visits. When looking at pet insurance, consider the following:"},{id:"columns",columns:[{id:"column1",heading:"Coverage",subheading:"Spot offers two main plans: Accident & Illness coverage, addressing a broad range of health concerns, and the Accident Only plan, catering specifically to unexpected injuries. Spot also offers optional preventive care plans with coverage available for routine exams, dental cleanings, and spaying or neutering."},{id:"column2",heading:"Deductibles",subheading:"Spot's insurance plans incorporate a deductible, a predetermined amount that must be paid before coverage applies to eligible veterinary expenses. As a policyholder you retain the ability to select the deductible amount, tailoring the plan to align with your preferences and financial considerations."},{id:"column3",heading:"Reimbursement",subheading:"Spot offers reimbursement rates of 70%, 80%, or 90% on eligible vet bills. You’ll need to meet your deductible first before reimbursements are paid out. Allowing you to choose the reimbursement amount, gives you the added flexibility to customize your plan to best fit your pet health and budget needs."},{id:"column4",heading:"Pre-existing Conditions",subheading:"We don't cover pre-existing conditions, and typically, neither does anyone else. However, unlike some other pet insurance providers, Spot plans can cover curable, pre-existing conditions, as long as they are treatment and symptom free for at least 180 days, excluding pre-existing knee and ligament conditions."}]}],compareChartDisclaimer:"Comparison information is provided using publicly available information as of 3/2/24 and is only meant to summarize program features, not a specific plan. Review each provider’s plan terms for more details. The descriptions of other providers’ plans were not provided by that company. If you have questions about other plans, please contact an agent of that company. It is our intention to provide fair and accurate comparison information. Although we attempt to keep information up to date, it may change from time to time. If you are aware of any inaccuracies or changes in the information provided, let us know by emailing ".concat(s.r.SPOT_MARKETING_EMAIL,"."),displaySpotPlanComparison:!0,displayWeTakeCare:!0,citationLink:!0,displayTrustPilot:!0,displayAccolades:!0,licensedVet:"Get vet treatment in the US or Canada.",claimSubmission:"Send us your bill online, in our app, or via fax.",displayPlanOptionsCTA:!0,policyInclusionsModal:[{heading:"What’s Covered?",description:"Each type of coverage includes exam fees, diagnostics, and treatment. We even cover the most advanced treatments, like chemotherapy and surgery, and some you may 
1not expect, such as stem-cell therapy and acupuncture, so you can follow your vet’s recommendations with less worry about cost."},{heading:"Accidents",description:"Accident coverage will take care of costs for injuries and emergencies related to accidents, like bite wounds, cuts, broken bones, lodged foreign objects, and toxic ingestions."},{heading:"Illnesses",description:"With illness coverage, you’ll be reimbursed for the costs of major and minor illnesses, such as cancer, arthritis, allergies, hypothyroidism, digestive problems, and UTIs."},{heading:"Hereditary & Congenital Conditions",description:"This coverage is for the costs of inherited conditions and birth defects that don’t show symptoms until later in your pet’s life, like heart disease, IVDD, eye disorders, and hip dysplasia."},{heading:"Behavioral Issues",description:"Behavioral issues coverage can help with the costs of vet visits for concerning behaviors that may be related to anxiety or compulsive behavior, like excessive licking, fur pulling, and destruction of the home."},{heading:"Sample policy",description:"View our sample policy by ",link:{url:"/sample-policy",text:"clicking here"}}],menus:{siteHeader:[{title:"Pet Insurance",href:void 0,submenu:a.Ed},{title:"Coverage",href:void 0,submenu:a.zJ},{title:"Advice",href:void 0,submenu:a.Jp},{title:"Employer Benefits",href:void 0,submenu:a.IS},{title:"Spot Perks",href:"/spot-perks"}],siteFooter:[{title:"Pet FAQs",links:a.Lv},{title:"Pet Insurance by State",links:a.cb},{title:"Pet Advice",links:a.kn},{title:"Resources",links:a.Hp},{title:"Company",links:a.Xw}]},lowestPolicyPrice:"7"},l=n();class u{static getCurrentBrandData(){return l}static getCurrentBrandContent(){return o}}},33263:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var r=i(73357),n=i.n(r),s=i(23805),a=i.n(s),o=i(46637),l=i(74525),u=i(90938),c=i(22725);let d=["/","https://spotpetins.com","https://spotpet.com",o.r.CANONICAL_URL_ROOT];class h{static normalizeURL(e,t){let i={normalizedURL:e=e.trim(),isExternal:!0,isWebURL:!0};if((e.startsWith("tel:")||e.startsWith("mailto:"))&&(i.isWebURL=!1),l.zh.test(e)||l.d6.test(e))i.isExternal=!1;else for(let t of d)if(e.startsWith(t)){i.isExternal=!1,i.normalizedURL=e.replace(t,"");break}return!i.isExternal&&t&&(i.normalizedURL=o.r.CANONICAL_URL_ROOT+i.normalizedURL),""===i.normalizedURL&&(i.normalizedURL="/"),i}static extractPathname(e){if(e.startsWith("tel:")||e.startsWith("mailto:"))return e;try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e):new URL(e,"http://dummy")).pathname.toLowerCase()}catch(i){let t=e.split("?")[0].split("#")[0].toLowerCase();return t.startsWith("/")?t:"/".concat(t)}}static getQueryParameters(){try{return Object.fromEntries(new URLSearchParams(document.location.search).entries())}catch(e){}return{}}static getCurrentPath(e){let{asPath:t}=e,i=t.split("#")[0].split("?")[0];return"/"===t?"":i}static getCurrentCanonicalURL(e,t){return"".concat(t)+h.getCurrentPath(e)}static cleanUndefinedValues(e){for(let t of Object.keys(e)){let i=e[t];void 0===i?n()(e,t):a()(i)&&(e[t]=h.cleanUndefinedValues(i))}return e}static getQueryParameter(e){return h.getQueryParameters()[e]}static getUserPreferences(){try{var e;return JSON.parse(null!==(e=window.localStorage.getItem("spot-prefs"))&&void 0!==e?e:"{}")}catch(e){console.error("Unable to parse user prefs",e)}return{}}static saveUserPreference(e,t){let i=h.getUserPreferences();i[e]=t;try{window.localStorage.setItem("spot-prefs",JSON.stringify(i))}catch(e){console.error("Unable to save user prefs",e)}}static getUserPreference(e,t){var i;return null!==(i=h.getUserPreferences()[e])&&void 0!==i?i:t}static extractFileExtension(e){function t(e){try{return new URL(e)}catch(e){}}let i=t(e);if(i||(i=t("file://"+e)),!i)return;let r=i.pathname.match(/[.](.+?)$/);if(r&&!(r.length<=1))return r[1]}static getPlaceholderImageURL(e){return"/_next/image?url=".concat(encodeURIComponent(e),"&q=1&w=128")}static async clickToCopy(e,t){try{await navigator.clipboard.writeText(e);let i=await navigator.clipboard.readText();t&&e===i&&t()}catch(e){}}static parseCookies(e){return e?e.split(";").reduce((e,t)=>
1{let[i,r]=t.split("=").map(e=>e.trim());return i&&r&&(e[i]=decodeURIComponent(r)),e},{}):{}}}h.interleave=(e,t)=>[].concat(...e.map(e=>[e,t])).slice(0,-1),h.documentToHtml=e=>e.map(e=>1===e.content.length&&"paragraph"===e.nodeType?"<p>".concat(e.content[0].value,"</p>"):e.content.length>1&&"paragraph"===e.nodeType?"<p>".concat(e.content.flatMap(e=>{switch(e.nodeType){case"text":return e.value;case"hyperlink":return'<a href="'.concat(e.data.uri,'">').concat(e.content[0].value,"</a>")}}).join(""),"</p>"):"unordered-list"===e.nodeType?"<ul>".concat(e.content.flatMap(e=>"<li>".concat(e.content[0].content[0].value,"</li>")).join(""),"</ul>"):void 0).join(""),h.withPageSuffix=(e,t)=>e&&t&&t>1?"".concat(e," - Page ").concat(t):e,h.camelize=e=>e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,t){return 0===t?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,""),h.formatDate=e=>new Date(e).toLocaleDateString("en-US",{day:"2-digit",month:"2-digit",year:"2-digit"}),h.formatPhone=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",i="";switch(e.length){case 11:i=e.slice(0,1)+t+e.slice(1,4)+t+e.slice(4,7)+t+e.slice(7);break;case 10:i=e.slice(0,3)+t+e.slice(3,6)+t+e.slice(6);break;default:i=e}return i},h.generateVideoSchemas=e=>e.map(e=>({"@type":"VideoObject",name:e.name,description:e.description,thumbnailUrl:e.thumbnail,uploadDate:e.uploadDate,duration:e.duration,contentUrl:"https://www.youtube.com/watch?v=".concat(e.id),embedUrl:"https://www.youtube.com/embed/".concat(e.id)})),h.generateWebsiteSchema=()=>{let e=c.j.getCurrentBrandData();return{"@type":"WebSite","@id":"".concat(e.productionUrl,"/#website"),url:e.productionUrl,name:e.name,publisher:{"@id":"".concat(e.productionUrl,"/#organization")},inLanguage:e.i18n.defaultLocale}},h.generateWebPageSchema=e=>{let t=c.j.getCurrentBrandData();return{"@type":"WebPage","@id":"".concat(e.url,"/#webpage"),url:e.url,name:e.name,description:e.description,isPartOf:{"@id":"".concat(t.productionUrl,"/#website")},about:{"@id":"".concat(t.productionUrl,"/#service")},breadcrumb:{"@id":"".concat(e.url,"/#breadcrumb")},inLanguage:t.i18n.defaultLocale}},h.generateFaqSchemaFromQA=e=>{let t=c.j.getCurrentBrandData();return{"@type":"FAQPage","@id":"".concat(t.productionUrl,"/#faq"),inLanguage:t.i18n.defaultLocale,mainEntity:e.map(e=>{let{question:t,answerHtml:i}=e;
1return{"@type":"Question",name:t,acceptedAnswer:{"@type":"Answer",text:i}}})}},h.generateFaqPageSchema=e=>h.generateFaqSchemaFromQA(e.map(e=>({question:e.question,answerHtml:h.documentToHtml(e.answer.content)}))),h.generateOrganizatonSchema=()=>{let e=c.j.getCurrentBrandData(),t=h.normalizeURL(u.A.src,!0).normalizedURL,i={"@type":"InsuranceAgency","@id":"".concat(e.productionUrl,"/#organization"),name:e.name,legalName:"Canada"===e.country?"Spot Pet Insurance Services ULC":"Spot Pet Insurance Services",url:e.productionUrl,logo:{"@type":"ImageObject",url:t},description:e.description,areaServed:e.countryCode,contactPoint:[{"@type":"ContactPoint",telephone:o.r.CS_PHONE_NUMBER,contactType:"Customer Support",areaServed:e.countryCode,availableLanguage:e.i18n.defaultLocale}],address:{"@type":"PostalAddress",streetAddress:e.streetAddress,addressLocality:e.addressLocality,addressRegion:e.addressRegion,postalCode:e.postalCode,addressCountry:e.countryCode},sameAs:[e.socials.instagram,e.socials.facebook,e.socials.linkedin,e.socials.tiktok,e.socials.twitter,e.socials.youtube]};return"United States"===e.country&&(i.award=["Forbes 5 Star-Rated Best Choices of Annual Coverage","MarketWatch Best for Most Customizable Coverage"],i.subjectOf=[{"@type":"Article",name:"Best Pet Insurance Companies Of 2026",url:"https://www.forbes.com/financial-services/best-pet-insurance/",publisher:{"@type":"Organization",name:"Forbes"}},{"@type":"WebPage",name:"Rated Excellent",url:"https://www.trustpilot.com/review/spotpet.com",publisher:{"@type":"Organization",name:"Trustpilot"}},{"@type":"Article",name:"Best for Most Customizable Coverage",url:"https://www.marketwatch.com/insurance-services/pet-insurance/best-pet-insurance/",publisher:{"@type":"Organization",name:"MarketWatch"}}]),"United States"!==e.country&&(i.parentOrganization={"@type":"Organization","@id":"https://spotpet.com/#organization",name:"Spot Pet Insurance Services"}),i},h.generateServiceSchema=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=c.j.getCurrentBrandData(),i={"@type":"Service","@id":e.serviceId||"".concat(t.productionUrl,"/#service"),name:"Pet Insurance",serviceType:"Dog & Cat Insurance",provider:{"@id":"".concat(t.productionUrl,"/#organization")},areaServed:t.countryCode,audience:{"@type":"PeopleAudience",name:"Pet owners in ".concat(t.country)},potentialAction:{"@type":"QuoteAction",name:"Get a free quote",target:o.r.QUOTE_FORM_URL_ROOT}};return e.appRatings&&(i.aggregateRating={"@type":"AggregateRating",ratingValue:Number(Number(e.appRatings.averageUserRating).toFixed(1)),bestRating:"5",ratingCount:e.appRatings.userRatingCount}),i},h.generateBlogSchema=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=c.j.getCurrentBrandData(),i="".concat(t.productionUrl,"/blog");return{"@type":"Blog","@id":e.blogId||"".concat(i,"/#blog"),url:i,name:e.name||"".concat(t.name," Blog"),description:e.description||t.description,publisher:{"@id":"".concat(t.productionUrl,"/#organization")},inLanguage:t.i18n.defaultLocale}},h.generateBreadcrumbSchema=e=>({"@type":"BreadcrumbList","@id":e.id,itemListElement:e.items.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.name,item:e.url}))})},46637:(e,t,i)=>{"use strict";i.d(t,{r:()=>o});var r,n=i(52302),s=i.n(n),a=i(65606);let o={ENVIRONMENT:"production",BRAND_ID:"default",HREFLANG_DEFAULT_URL:"https://spotpet.com",CANONICAL_URL_ROOT:"https://spotpet.com",COOKIE_DOMAIN:".spotpet.com",SPOT_API_DOMAIN:a.env.NEXT_PUBLIC_SPOT_API_DOMAIN||"https://dev-api.spotpet.com",BUILDER_IO_PUBLIC_API_KEY:"aaa78dbbf3de43acaa5d259f4ee2e40d",BUILDER_IO_PAGE_MODEL:"landing-page",SEGMENT_CDN_URL:null!==(r=a.env.NEXT_PUBLIC_SEGMENT_CDN_URL)&&void 0!==r?r:"analytics.spotpet.com",SEGMENT_API_URL:"segment.spotpet.com/v1",SEGMENT_WEB_WRITE_KEY:"CGPI2KxdlQstLEZY5stiEetEud43bLeN",DISABLE_SEARCH_ENGINE_INDEXING:!1,DATADOG_CLIENT_TOKEN:"pub722e1d5ae91c43c471a840b4c4fe1748",DATADOG_APPLICATION_ID:"0772eb70-1279-4f61-95b8-10e164fd0f25",DATADOG_SITE_NAME:"spot-us-website",DATADOG_APPLICATION_VERSION:"746e486e548b6a21a5f6704dc013b749bb1df1df",DATADOG_SESSION_SAMPLE_RATE:"100",DATADOG_SESSION_RECORD_RATE:"10",LINK_FOLLOW_DOMAIN_WHITELIST:"codapet.com,lifewithkleekai.com,fablepets.com,dutch.com,hepper.com".split(","),QUOTE_FORM_URL_ROOT:"https://quote.spotpet.com",MEMBER_CENTER_URL_ROOT:"https://app.spotpet.com",CS_PHONE_NUMBER:"800-905-1595",CS_PHONE_NUMBER_DISPLAY:"800-905-1595",CS_EMPLOYER_PHONE_NUMBER:a.env.NEXT_PUBLIC_CS_EMPLOYER_PHONE_NUMBER||"888-343-2340",SAASQUATCH_NAMESPACE_ID:"5be99b20-860e-4153-bf04-eb68270f1470",SAASQUATCH_TENANT_ALIAS:"ai5teoxuhh32x",SAASQUATCH_PROGRAM_ID:"spot-raf",SAASQUATCH_WIDGET_ID:"referrerWidget",BASE_PATH:a.env.NEXT_PUBLIC_BASE_PATH||"/",TEST_SITE_ROOT:a.env.PLAYWRIGHT_TEST_BASE_URL||"http://localhost:3000",SPOT_MARKETING_EMAIL:a.env.NEXT_PUBLIC_SPOT_MARKETING_EMAIL||"[email protected]",STATSIG_
1CLIENT_KEY:"client-BzjQTvuNnjz3OY17wxPHQGesvmDJY1TVcAzio6FNPe0",STATSIG_LAYER_MAIN:"web-main",QUOTE_WIDGET_BASE_URL:"https://quote.spotpet.com",QUOTE_WIDGET_SCRIPT_URL:"https://d1zhwgcr12yw7n.cloudfront.net/latest/spot-widget/spot-widget.min.js",QUOTE_WIDGET_EMPLOYERS_ON_BY_DEFAULT:!0,OSANO_CMP_SRC:a.env.NEXT_PUBLIC_OSANO_CMP_SRC||"https://cmp.osano.com/AzZnQYUKjmniQ4Zwf/9bed93f2-cdde-4d98-b2ff-48d6f6697c70/osano.js",GA4_MEASUREMENT_ID:a.env.NEXT_PUBLIC_GA4_MEASUREMENT_ID||"G-5X75GNN1CJ",...s().publicSettingsOverride}},52302:e=>{"use strict";e.exports={id:"default",name:"Spot Pet Insurance",homeTitle:"Pet Insurance: Best In Breed Coverage",description:"Spot Pet Insurance is committed to helping dogs and cats live longer, healthier lives, by providing accident, illness & preventive care pet plans. Get a free quote.",twitterHandle:"@getspotcovered",i18n:{locales:["en-US"],defaultLocale:"en-US"},quoteUnderwriter:"ptz-us",underwritingLink:"/underwriting",alternateLanguageSites:[{origin:"https://spotpetinsurance.ca",locales:["en-CA"],country:"Canada"}],streetAddress:"100 Biscayne Blvd, Suite 400",addressLocality:"Miami",addressRegion:"FL",postalCode:"33132",countryCode:"US",languageCode:"en",country:"United States",currency:"USD",referralProgram:!0,samplePolicyLink:"https://spotpet.com/sample-policy",productionUrl:"https://spotpet.com",socials:{instagram:"https://www.instagram.com/getspotcovered",facebook:"https://www.facebook.com/getspotcovered",linkedin:"https://www.linkedin.com/company/spot-pet-insurance/",tiktok:"https://www.tiktok.com/@getspotcovered?lang=en",twitter:"https://twitter.com/getspotcovered",youtube:"https://www.youtube.com/@getspotcovered"},trustPilot:{apiKey:"KIgtJSyOFkz8hgPWmxLJJsa2vj9A5GmA",businessUnitId:"62e828a015be0d5057f853c0",url:"https://www.trustpilot.com/review/spotpet.com?amp;stars=5&stars=4"},appStoreID:"1480854676",useEmailForValidation:!1,validationMessages:{labelText:{default:"Enter your Account ID",accountAccessPreferred:"Enter your Account ID"},errorText:{default:"Please check your Account ID",accountAccessPreferred:"Please check your Account ID"}},quoteIdCookieKey:"quoteIdPtzUs",quoteAttributesCookieKey:"quoteAttributesPtzUs",canShowQuoteWidget:!0}},26135:(e,t,i)=>{"use strict";i.d(t,{Ed:()=>d,Hp:()=>l,IS:()=>h,Jp:()=>u,Lv:()=>n,Xw:()=>o,cb:()=>s,kn:()=>a,l4:()=>p,zJ:()=>c});var r=i(46637);let n=[{title:"What Does Pet Insurance Cover?",url:"/blog/why-pet-insurance/what-does-pet-insurance-cover"},{title:"Does Pet Insurance Cover Pre-Existing Conditions?",url:"/blog/why-pet-insurance/what-are-pre-existing-conditions-for-pet-insurance"},{title:"Does Pet Insurance Cover Spaying & Neutering?",url:"/blog/coverage/does-pet-insurance-cover-spaying-and-neutering"},{title:"How Pet Insurance Works?",url:"/blog/why-pet-insurance/how-does-pet-insurance-work"},{title:"How to Choose The Best Pet Insurance?",url:"/blog/how-pet-insurance-works/choose-the-best-pet-insurance"},{title:"Is Pet Insurance Worth It?",url:"/blog/why-pet-insurance/is-pet-insurance-worth-it"},{title:"Preventative Care Plans",url:"/blog/why-pet-insurance/pet-insurance-with-wellness-spot-preventive-care"},{title:"Should I Get Pet Insurance?",url:"/blog/why-pet-insurance/should-i-get-pet-insurance"}],s=[{title:"California",url:"/locations/california"},{title:"Florida",url:"/locations/florida"},{title:"Illinois",url:"/locations/illinois"},{title:"New Jersey",url:"/locations/new-jersey"},{title:"New York",url:"/locations/new-york"},{title:"North Carolina",url:"/locations/north-carolina"},{title:"Pennsylvania",url:"/locations/pennsylvania"},{title:"Texas",url:"/locations/texas"},{title:"Washington",url:"/locations/washington"},{title:"All States",url:"/locations"}],a=[{title:"Breed Tips",url:"/blog/breed-tips"},{title:"Cat Tips",url:"/blog/cat-tips"},{title:"Dog Tips",url:"/blog/dog-tips"},{title:"Kitten Tips",url:"/blog/kitten-tips"},{title:"Local Pet Insights",url:"/blog/local-insurance-insights"},{title:"Pet Lifestyle",url:"/blog/lifestyle"},{title:"Pet Safety",url:"/blog/pet-safety"},{title:"Puppy Tips",url:"/blog/puppy-tips"}],o=[{title:"About Us",url:"/about-us"},{title:"Careers",url:"https://www.linkedin.com/jobs/search?keywords=&location=United%20States&locationId=&geoId=103644278&f_TPR=&f_C=40836348&position=1&pageNum=0"},{title:"News",url:"/news"},{title:"Contact Us",url:"/contact"}],l=[{title:"Employer Benefits",url:"/employers"},{title:"Agency Information",url:"/agency-info"},{title:"Sample Policy",url:"/sample-policy",target:"_blank",rel:"noopener noreferrer"},{title:"Terms & Conditions",url:"/terms-conditions"},{title:"ADA Notice",url:"/ada-compliance-notice"},{title:"Member Center",url:r.r.MEMBER_CENTER_URL_ROOT,target:"_self"},{title:"Claims Form",url:"/claims-form"},{title:"Help Center",url:"https://help.spotpet.com/en",target:"_blank",rel:"noreferrer"}],u=[{title:"Blogs",url:"/blog"},{title:"Dog Breeds",url:"/breeds/dog-breeds",submenu:[{title:"Cane Corso Cost",url:"/blog/breed-tips/how-much-does-a-cane-corso-cost"},{title:"Xoloitzcuintli Cost",url:"/blog/breed-tips/how-much-does-a-xoloitzcuintli-cost"},{title:"Belgian Malinois Cost",url:"/blog/breed-tips/how-much-does-a-belgian-malinois-cost"},{title:"Tibetan Mastiff Cost",url:"/blog/breed-tips/how-much-does-a-tibetan-mastiff
1-cost"},{title:"Caucasian Shepherd Cost",url:"/blog/breed-tips/how-much-does-a-caucasian-shepherd-cost"}]},{title:"Cat Breeds",url:"/breeds/cat-breeds",submenu:[{title:"Female Cats Explained",url:"/blog/cat-tips/what-is-a-female-cat-called"},{title:"Manx Cat Cost",url:"/blog/breed-tips/how-much-does-a-manx-cat-cost"},{title:"British Shorthair Cost",url:"/blog/breed-tips/how-much-does-a-british-shorthair-cost"},{title:"Siamese Cat Cost",url:"/blog/breed-tips/how-much-does-a-siamese-cat-cost"},{title:"Can Cats Have Kiwi?",url:"/blog/cat-tips/can-cats-eat-kiwi"}]},{title:"Pet Health Conditions",url:"/blog/health"},{title:"News",url:"/news"},{title:"FAQs",url:"/faqs"}],c=[[{title:"What Does Pet Insurance Cover?",url:"/what-does-pet-insurance-cover"},{title:"Compare Pet Insurance Plans",url:"/compare-pet-insurance"}],[{title:"Accidents",url:"/accident"},{title:"Dental",url:"/dental-coverage"},{title:"Emergency",url:"/emergency"},{title:"Illness",url:"/illness"},{title:"Wellness & Preventative",url:"/wellness"}]],d=[[{title:"Dog Insurance",url:"/dog-insurance"},{title:"Cat Insurance",url:"/cat-insurance"},{title:"Puppy Insurance",url:"/puppy-insurance"},{title:"Kitten Insurance",url:"/kitten-insurance"},{title:"Why pet insurance?",url:"/blog/why-pet-insurance"},{title:"Pet Insurance Reviews",url:"/pet-insurance-reviews"},{title:"Pet Insurance Cost",url:"/pet-insurance-cost"}]],h=[{title:"HR Professionals & Brokers",url:"/employers"}],p={idMappings:{"cart-quote":"Cart CTA"},pathMappings:{"/quote":"Quote CTA","quote.spotpet.com":"Quote CTA","/member-center":"Member Center CTA",[new URL(r.r.MEMBER_CENTER_URL_ROOT).host]:"Member Center CTA","/employers":"Employers CTA","/faqs":"FAQs CTA","/spot-perks":"Perks CTA","/what-does-pet-insurance-cover":"Coverage CTA","/compare-pet-insurance":"Compare CTA","/accident":"Accidents CTA","/dental-coverage":"Dental CTA","/emergency":"Emergency CTA","/illness":"Illness CTA","/wellness":"Wellness CTA","/dog-insurance":"Dog CTA","/cat-insurance":"Cat CTA","/puppy-insurance":"Puppy CTA","/kitten-insurance":"Kitten CTA","/pet-insurance-reviews":"Reviews CTA","/sample-policy":"Sample Policy CTA"},patternMappings:[{pattern:/^tel:/,name:"Call Us CTA"}]}},24416:(e,t,i)=>{"use strict";i.d(t,{o:()=>o});var r=i(18987),n=i(22725),s=i(96540);let a=n.j.getCurrentBrandData(),o=()=>{let e=(null==a?void 0:a.quoteIdCookieKey)?r.A.get(a.quoteIdCookieKey):void 0,t=(null==a?void 0:a.quoteAttributesCookieKey)?r.A.get(a.quoteAttributesCookieKey):void 0;return(0,s.useMemo)(()=>{var i;let r;if(t)try{r=JSON.parse(t)}catch(e){r=void 0}return{...r,quotePetCount:Number(null!==(i=null==r?void 0:r.quotePetCount)&&void 0!==i?i:0),quoteId:e}},[t,e])}},74525:(e,t,i)=>{"use strict";i.d(t,{Dv:()=>s,d6:()=>n,zh:()=>r});let r=/^\/[^/]/,n=/^#[^#]/,s=/^[^a-zA-Z]+/},97279:()=>{},43509:(e,t,i)=>{"use strict";var r,n,s;Object.defineProperty(t,"__esModule",{value:!0}),t._getInstance=t._getStatsigGlobalFlag=t._getStatsigGlobal=void 0;let a=i(68024);t._getStatsigGlobal=()=>__STATSIG__||d,t._getStatsigGlobalFlag=e=>(0,t._getStatsigGlobal)()[e],t._getInstance=e=>{let i=(0,t._getStatsigGlobal)();return e?i.instances&&i.instances[e]:(i.instances&&Object.keys(i.instances).length>1&&a.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)};let o="__STATSIG__",l="undefined"!=typeof window?window:{},u=void 0!==i.g?i.g:{},c="undefined"!=typeof globalThis?globalThis:{},d=null!==(s=null!==(n=null!==(r=l[o])&&void 0!==r?r:u[o])&&void 0!==n?n:c[o])&&void 0!==s?s:{instance:t._getInstance};l[o]=d,u[o]=d,c[o]=d},94681:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getStorageKey=t._getUserStorageKey=void 0;let r=i(83918);function n(e,t,i){var n;if(i)return i(e,t);let s=t&&t.customIDs?t.customIDs:{},a=[`uid:${null!==(n=null==t?void 0:t.userID)&&void 0!==n?n:""}`,`cids:${Object.keys(s).sort((e,t)=>e.localeCompare(t)).map(e=>`${e}-${s[e]}`).join(",")}`,`k:${e}`];return(0,r._DJB2)(a.join("|"))}t._getUserStorageKey=n,t._getStorageKey=function(e,t,i){return t?n(e,t,i):(0,r._DJB2)(`k:${e}`)}},58683:(e,t)=>
1{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},85638:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.DataAdapterCore=void 0;let n=i(68024),s=i(32626),a=i(81570),o=i(1638),l=i(53705);class u{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 d}attach(e,t){this._sdkKey=e,this._options=t}getDataSync(e){let t=e&&(0,a._normalizeUser)(e,this._options),i=this._getCacheKey(t),r=this._inMemoryCache.get(i,t);if(r)return r;let n=this._loadFromCache(i);return n?(this._inMemoryCache.add(i,n),this._inMemoryCache.get(i,t)):null}setData(e,t){let i=t&&(0,a._normalizeUser)(t,this._options),r=this._getCacheKey(i);this._inMemoryCache.add(r,c("Bootstrap",e,null,i))}_getDataAsyncImpl(e,t,i){return r(this,void 0,void 0,function*(){o.Storage.isReady()||(yield o.Storage.isReadyResolver());let r=null!=e?e:this.getDataSync(t),s=[this._fetchAndPrepFromNetwork(r,t,i)];return(null==i?void 0:i.timeoutMs)&&s.push(new Promise(e=>setTimeout(e,i.timeoutMs)).then(()=>(n.Log.debug("Fetching latest value timed out"),null))),yield Promise.race(s)})}_prefetchDataImpl(e,t){return r(this,void 0,void 0,function*(){let i=e&&(0,a._normalizeUser)(e,this._options),r=this._getCacheKey(i),n=yield this._getDataAsyncImpl(null,i,t);n&&this._inMemoryCache.add(r,Object.assign(Object.assign({},n),{source:"Prefetch"}))})}_fetchAndPrepFromNetwork(e,t,i){return r(this,void 0,void 0,function*(){let r=null;e&&this._isCachedResultValidFor204(e,t)&&(r=e.data);let a=yield this._fetchFromNetwork(r,t,i);if(!a)return n.Log.debug("No response returned for latest value"),null;let o=(0,l._typedJsonParse)(a,"has_updates","Response"),u=this._getSdkKey(),d=s.StableID.get(u),h=null;if((null==o?void 0:o.has_updates)===!0)h=c("Network",a,d,t);else{if(!r||(null==o?void 0:o.has_updates)!==!1)return null;h=c("NetworkNotModified",r,d,t)}let p=this._getCacheKey(t);return this._inMemoryCache.add(p,h),this._writeToCache(p,h),h})}_getSdkKey(){return null!=this._sdkKey?this._sdkKey:(n.Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(e){var t;let i=null===(t=o.Storage.getItem)||void 0===t?void 0:t.call(o.Storage,e);if(null==i)return null;let r=(0,l._typedJsonParse)(i,"source","Cached Result");return r?Object.assign(Object.assign({},r),{source:"Cache"}):null}_writeToCache(e,t){o.Storage.setItem(e,JSON.stringify(t)),this._runLocalStorageCacheEviction(e)}_runLocalStorageCacheEviction(e){var t;let i=null!==(t=(0,o._getObjectFromStorage)(this._lastModifiedStoreKey))&&void 0!==t?t:{};i[e]=Date.now();let r=h(i,10);r&&(delete i[r],o.Storage.removeItem(r)),(0,o._setObjectInStorage)(this._lastModifiedStoreKey,i)}}function c(e,t,i,r){return{source:e,data:t,receivedAt:Date.now(),stableID:i,fullUserHash:(0,a._getFullUserHash)(r)}}t.DataAdapterCore=u;class d{constructor(){this._data={}}get(e,t){var i;let r=this._data[e],s=null==r?void 0:r.stableID,a=null===(i=null==t?void 0:t.customIDs)||void 0===i?void 0:i.stableID;return a&&s&&a!==s?(n.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):r}add(e,t){let i=h(this._data,9);i&&delete this._data[i],this._data[e]=t}merge(e){this._data=Object.assign(Object.assign({},this._data),e)}}function h(e,t){let i=Object.keys(e);return i.length<=t?null:i.reduce((t,i)=>{let r=e[t],n=e[i];return"object"==typeof r&&"object"==typeof n?n.receivedAt<r.receivedAt?i:t:n<r?i:t})}},30882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=void 0;let i=new Map,r="start";function n(e,t,i,r){return Object.assign({key:i,action:t,step:r,timestamp:Date.now()},e)}function s(e,t){var r;let n=null!==(r=i.get(e))&&void 0!==r?r:[];n.push(t),i.set(e,n)}function a(e,t){if(t in e)return e[t]}t.Diagnostics={_getMarkers:e=>i.get(e),_markInitOverallStart:e=>{s(e,n({},r,"overall"))},_markInitOverallEnd:(e,t,i)=>{s(e,n({success:t,error:t?void 0:{name:"InitializeError",message:"Failed to initialize"}
1,evaluationDetails:i},"end","overall"))},_markInitNetworkReqStart:(e,t)=>{s(e,n(t,r,"initialize","network_request"))},_markInitNetworkReqEnd:(e,t)=>{s(e,n(t,"end","initialize","network_request"))},_markInitProcessStart:e=>{s(e,n({},r,"initialize","process"))},_markInitProcessEnd:(e,t)=>{s(e,n(t,"end","initialize","process"))},_clearMarkers:e=>{i.delete(e)},_formatError(e){if(e&&"object"==typeof e)return{code:a(e,"code"),name:a(e,"name"),message:a(e,"message")}},_getDiagnosticsData(e,i,r,n){var s;return{success:(null==e?void 0:e.ok)===!0,statusCode:null==e?void 0:e.status,sdkRegion:null===(s=null==e?void 0:e.headers)||void 0===s?void 0:s.get("x-statsig-region"),isDelta:!0===r.includes('"is_delta":true')||void 0,attempt:i,error:t.Diagnostics._formatError(n)}},_enqueueDiagnosticsEvent(e,i,r,n){let s=t.Diagnostics._getMarkers(r);if(null==s||s.length<=0)return;t.Diagnostics._clearMarkers(r);let a={eventName:"statsig::diagnostics",user:e,value:null,metadata:{context:"initialize",markers:s.slice(),statsigOptions:n},time:Date.now()};i.enqueue(a)}}},60457:function(e,t){"use strict";var i=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._fetchTxtRecords=void 0;let 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]),n=["i","e","d"];t._fetchTxtRecords=function(e){return i(this,void 0,void 0,function*(){let 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){let e=Error("Failed to fetch TXT records from DNS");throw e.name="DnsTxtFetchError",e}return function(e){let t=e.findIndex((t,i)=>i<200&&"="===String.fromCharCode(t)&&n.includes(String.fromCharCode(e[i-1])));if(-1===t){let e=Error("Failed to parse TXT records from DNS");throw e.name="DnsTxtParseError",e}let i="";for(let r=t-1;r<e.length;r++)i+=String.fromCharCode(e[r]);return i.split(",")}(new Uint8Array((yield t.arrayBuffer())))})}},54387:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},14358:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=t.EXCEPTION_ENDPOINT=void 0;let n=i(68024),s=i(10686),a=i(46512);t.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";let o="[Statsig] UnknownError";class l{constructor(e,t,i){this._sdkKey=e,this._options=t,this._emitter=i,this._seen=new Set}wrap(e){try{(function(e){let t=new Set,i=Object.getPrototypeOf(e);for(;i&&i!==Object.prototype;)Object.getOwnPropertyNames(i).filter(e=>"function"==typeof(null==i?void 0:i[e])).forEach(e=>t.add(e)),i=Object.getPrototypeOf(i);return Array.from(t)})(e).forEach(t=>{let i=e[t];"$EB"in i||(e[t]=(...r)=>this._capture(t,()=>i.apply(e,r)),e[t].$EB=!0)})}catch(e){this._onError("eb:wrap",e)}}logError(e,t){this._onError(e,t)}_capture(e,t){try{let i=t();if(i&&i instanceof Promise)return i.catch(t=>this._onError(e,t));return i}catch(t){return this._onError(e,t),null}}_onError(e,i){try{n.Log.warn(`Caught error in ${e}`,{error:i}),r(this,void 0,void 0,function*(){var r,n,l,u,c,d,h;let p=i||Error(o),g=p instanceof Error,f=g?p.name:"No Name";if(this._seen.has(f))return;if(this._seen.add(f),null===(n=null===(r=this._options)||void 0===r?void 0:r.networkConfig)||void 0===n?void 0:n.preventAllNetworkTraffic){null===(l=this._emitter)||void 0===l||l.call(this,{name:"error",error:i,tag:e});return}let v=s.SDKType._get(this._sdkKey),_=a.StatsigMetadataProvider.get(),y=g?p.stack:function(e){try{return JSON.stringify(e)}catch(e){return o}}(p),m=JSON.stringify(Object.assign({tag:e,exception:f,info:y},Object.assign(Object.assign({},_),{sdkType:v}))),b=null!==(d=null===(c=null===(u=this._options)||void 0===u?void 0:u.networkConfig)||void 0===c?void 0:c.networkOverrideFunc)&&void 0!==d?d:fetch;yield b(t.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(v),"STATSIG-SDK-VERSION":String(_.sdkVersion),"Content-Type":"application/json"},body:m}
1),null===(h=this._emitter)||void 0===h||h.call(this,{name:"error",error:i,tag:e})}).then(()=>{}).catch(()=>{})}catch(e){}}}t.ErrorBoundary=l},43194:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},86913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},85434:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.EventLogger=void 0;let n=i(94681),s=i(83918),a=i(68024),o=i(12610),l=i(414),u=i(37253),c=i(1638),d=i(88873),h=i(92701),p={},g={Startup:"startup",GainedFocus:"gained_focus"};class f{static _safeFlushAndForget(e){var t;null===(t=p[e])||void 0===t||t.flush().catch(()=>{})}static _safeRetryFailedLogs(e){var t;null===(t=p[e])||void 0===t||t._retryFailedLogs(g.GainedFocus)}constructor(e,t,i,r){var n;this._sdkKey=e,this._emitter=t,this._network=i,this._options=r,this._queue=[],this._lastExposureTimeMap={},this._nonExposedChecks={},this._hasRunQuickFlush=!1,this._creationTime=Date.now(),this._isLoggingDisabled=(null==r?void 0:r.disableLogging)===!0,this._maxQueueSize=null!==(n=null==r?void 0:r.loggingBufferMaxSize)&&void 0!==n?n:50;let s=null==r?void 0:r.networkConfig;this._logEventUrlConfig=new d.UrlConfiguration(o.Endpoint._rgstr,null==s?void 0:s.logEventUrl,null==s?void 0:s.api,null==s?void 0:s.logEventFallbackUrls)}setLoggingDisabled(e){this._isLoggingDisabled=e}enqueue(e){this._shouldLogEvent(e)&&(this._normalizeAndAppendEvent(e),this._quickFlushIfNeeded(),this._queue.length>this._maxQueueSize&&f._safeFlushAndForget(this._sdkKey))}incrementNonExposureCount(e){var t;let i=null!==(t=this._nonExposedChecks[e])&&void 0!==t?t:0;this._nonExposedChecks[e]=i+1}reset(){this._lastExposureTimeMap={}}start(){(0,l._isServerEnv)()||(p[this._sdkKey]=this,(0,h._subscribeToVisiblityChanged)(e=>{"background"===e?f._safeFlushAndForget(this._sdkKey):"foreground"===e&&f._safeRetryFailedLogs(this._sdkKey)}),this._retryFailedLogs(g.Startup),this._startBackgroundFlushInterval())}stop(){return r(this,void 0,void 0,function*(){this._flushIntervalId&&(clearInterval(this._flushIntervalId),this._flushIntervalId=null),delete p[this._sdkKey],yield this.flush()})}flush(){return r(this,void 0,void 0,function*(){if(this._appendAndResetNonExposedChecks(),0===this._queue.length)return;let e=this._queue;this._queue=[],yield this._sendEvents(e)})}_quickFlushIfNeeded(){!this._hasRunQuickFlush&&(this._hasRunQuickFlush=!0,Date.now()-this._creationTime>200||setTimeout(()=>f._safeFlushAndForget(this._sdkKey),200))}_shouldLogEvent(e){if((0,l._isServerEnv)())return!1;if(!(0,u._isExposureEvent)(e))return!0;let t=e.user?e.user:{statsigEnvironment:void 0},i=(0,n._getUserStorageKey)(this._sdkKey,t),r=e.metadata?e.metadata:{},s=[e.eventName,i,r.gate,r.config,r.ruleID,r.allocatedExperiment,r.parameterName,String(r.isExplicitParameter),r.reason].join("|"),a=this._lastExposureTimeMap[s],o=Date.now();return(!a||!(o-a<6e4))&&(Object.keys(this._lastExposureTimeMap).length>1e3&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[s]=o,!0)}_sendEvents(e){var t,i;return r(this,void 0,void 0,function*(){if(this._isLoggingDisabled)return this._saveFailedLogsToStorage(e),!1;try{if(((0,h._isUnloading)()&&this._network.isBeaconSupported()&&(null===(i=null===(t=this._options)||void 0===t?void 0:t.networkConfig)||void 0===i?void 0:i.networkOverrideFunc)==null?yield this._sendEventsViaBeacon(e):yield this._sendEventsViaPost(e)).success)return this._emitter({name:"logs_flushed",events:e}),!0;return a.Log.warn("Failed to flush events."),this._saveFailedLogsToStorage(e),!1}catch(e){return a.Log.warn("Failed to flush events."),!1}})}_sendEventsViaPost(e){var t;return r(this,void 0,void 0,function*(){let i=yield this._network.post(this._getRequestData(e)),r=null!==(t=null==i?void 0:i.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:{[o.NetworkParam.EventC
1ount]:String(e.length)}}}_saveFailedLogsToStorage(e){for(;e.length>500;)e.shift();let t=this._getStorageKey();try{(0,c._setObjectInStorage)(t,e)}catch(e){a.Log.warn("Unable to save failed logs to storage")}}_retryFailedLogs(e){let t=this._getStorageKey();r(this,void 0,void 0,function*(){c.Storage.isReady()||(yield c.Storage.isReadyResolver());let i=(0,c._getObjectFromStorage)(t);i&&(e===g.Startup&&c.Storage.removeItem(t),(yield this._sendEvents(i))&&e===g.GainedFocus&&c.Storage.removeItem(t))}).catch(()=>{a.Log.warn("Failed to flush stored logs")})}_getStorageKey(){return`statsig.failed_logs.${(0,s._DJB2)(this._sdkKey)}`}_normalizeAndAppendEvent(e){e.user&&(e.user=Object.assign({},e.user),delete e.user.privateAttributes);let t={},i=this._getCurrentPageUrl();i&&(t.statsigMetadata={currentPage:i});let r=Object.assign(Object.assign({},e),t);a.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((null===(e=this._options)||void 0===e?void 0:e.includeCurrentPageUrlWithEvents)!==!1)return(0,l._getCurrentPageUrlSafe)()}_startBackgroundFlushInterval(){var e,t;let i=setInterval(()=>{let e=p[this._sdkKey];e&&e._flushIntervalId===i?f._safeFlushAndForget(this._sdkKey):clearInterval(i)},null!==(t=null===(e=this._options)||void 0===e?void 0:e.loggingIntervalMs)&&void 0!==t?t:1e4);this._flushIntervalId=i}}t.EventLogger=f},83918:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getSortedObject=t._DJB2Object=t._DJB2=void 0;let r=i(90010);t._DJB2=e=>{let t=0;for(let i=0;i<e.length;i++)t=(t<<5)-t+e.charCodeAt(i),t&=t;return String(t>>>0)},t._DJB2Object=(e,i)=>(0,t._DJB2)(JSON.stringify((0,t._getSortedObject)(e,i))),t._getSortedObject=(e,i)=>{if(null==e)return null;let n=Object.keys(e).sort(),s={};return n.forEach(n=>{let a=e[n];if(0===i||"object"!==(0,r._typeOf)(a)){s[n]=a;return}s[n]=(0,t._getSortedObject)(a,null!=i?i-1:i)}),s}},57061:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},68024:(e,t)=>{"use strict";function i(e){return e.unshift("[Statsig]"),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Log=t.LogLevel=void 0,t.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class r{static info(...e){this.level>=t.LogLevel.Info&&console.info("  INFO ",...i(e))}static debug(...e){this.level>=t.LogLevel.Debug&&console.debug(" DEBUG ",...i(e))}static warn(...e){this.level>=t.LogLevel.Warn&&console.warn("  WARN ",...i(e))}static error(...e){this.level>=t.LogLevel.Error&&console.error(" ERROR ",...i(e))}}t.Log=r,r.level=t.LogLevel.Warn},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"}},44703:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkCore=void 0,i(43509);let n=i(43509),s=i(30882),a=i(68024),o=i(12610),l=i(50052),u=i(10686),c=i(414),d=i(39839),h=i(32626),p=i(71180),g=i(46512),f=i(92701),v=new Set([408,500,502,503,504,522,524,599]);class _{constructor(e,t){this._emitter=t,this._timeout=1e4,this._netConfig={},this._options={},this._errorBoundary=null,e&&(this._options=e),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new l.NetworkFallbackResolver(this._options)}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}beacon(e){return r(this,void 0,void 0,function*(){if(!y(e))return!1;let t=this._getInternalRequestArgs("POST",e),i=yield this._getPopulatedBody(t,e.data),r=yield this._getPopulatedURL(t),n=navigator;return n.sendBeacon.bind(n)(r,i)})}post(e){return r(this,void 0,void 0,function*(){let t=this._getInternalRequestArgs("POST",e);return t.body=yield this._getPopulatedBody(t,e.data),e.isStatsigEncodable&&(t.body=this._attemptToEncodeString(t,t.body)),this._sendRequest(t)})}get(e){let t=this._getInternalRequestArgs("GET",e);return this._sendRequest(t)}_sendRequest(e){var t,i,n;return r(this,void 0,void 0,function*(){if(!y(e)||this._netConfig.preventAllNetworkTraffic)return null;let{method:l,body:u,retries:c,attempt:d}=e,h=null!=d?d:1,g="undefined"!=typeof AbortController?new AbortController:null,_=setTimeout(()=>{null==g||g.abort(`Timeout of ${this._timeout}ms expired.`)},this._timeout),b=yield this._getPopulatedURL(e),S=null,C=(0,f._isUnloading)();try{let i={method:l,body:u,headers:Object.assign({},e.headers),signal:null==g?void 0:g.signal,priority:e.priority,keepalive:C};e.urlConfig.endpoint===o.Endpoint._initialize&&s.Diagnostics._markInitNetworkReqStart(e.sdkKey,{attempt:h});let r=null!==(t=this._netConfig.networkOverrideFunc)&&void 0!==t?t:fetch;if(S=yield r(b,i),clearTimeout(_),!S.ok){let e=yield S.text().catch(()=>"No Text"),t=Error(`NetworkError: ${b} ${e}`);throw t.name="NetworkError",t}let n=yield S.text();return m(e,S,h,n),this._fallbackResolver.tryBumpExpiryTime(e.sdkKey,e.urlConfig),{body:n,code:S.status}}catch(o){let t=(null==g?void 0:g.signal.aborted)&&"string"==typeof g.signal.reason?g.signal.reason:"string"==typeof o?o:o instanceof Error?`${o.name}: ${o.message}`:"Unknown Error",s=(null==g?void 0:g.signal.aborted)&&"string"==typeof g.signal.reason&&g.signal.reason.includes("Timeout")||!1;if(m(e,S,h,"",o),(yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(e.sdkKey,e.urlConfig,t,s))&&
1(e.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(e.sdkKey,e.urlConfig)),!c||h>c||!v.has(null!==(i=null==S?void 0:S.status)&&void 0!==i?i:500))return null===(n=this._emitter)||void 0===n||n.call(this,{name:"error",error:o,tag:p.ErrorTag.NetworkError,requestArgs:e}),a.Log.error(`A networking error occured during ${l} request to ${b}.`,t,o),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)))})}(h),this._sendRequest(Object.assign(Object.assign({},e),{retries:c,attempt:h+1}))}})}_getPopulatedURL(e){var t;return r(this,void 0,void 0,function*(){let i=null!==(t=e.fallbackUrl)&&void 0!==t?t:e.urlConfig.getUrl(),r=Object.assign({[o.NetworkParam.SdkKey]:e.sdkKey,[o.NetworkParam.SdkType]:u.SDKType._get(e.sdkKey),[o.NetworkParam.SdkVersion]:g.SDK_VERSION,[o.NetworkParam.Time]:String(Date.now()),[o.NetworkParam.SessionID]:d.SessionID.get(e.sdkKey)},e.params),n=Object.keys(r).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(r[e])}`).join("&");return`${i}${n?`?${n}`:""}`})}_getPopulatedBody(e,t){return r(this,void 0,void 0,function*(){let{sdkKey:i,fallbackUrl:r}=e,n=h.StableID.get(i),s=d.SessionID.get(i),a=u.SDKType._get(i);return JSON.stringify(Object.assign(Object.assign({},t),{statsigMetadata:Object.assign(Object.assign({},g.StatsigMetadataProvider.get()),{stableID:n,sessionID:s,sdkType:a,fallbackUrl:r})}))})}_attemptToEncodeString(e,t){var i,r;let s=(0,c._getWindowSafe)();if(this._options.disableStatsigEncoding||null!=(0,n._getStatsigGlobalFlag)("no-encode")||!(null==s?void 0:s.btoa))return t;try{let n=null!==(i=s.btoa(t).split("").reverse().join(""))&&void 0!==i?i:t;return e.params=Object.assign(Object.assign({},null!==(r=e.params)&&void 0!==r?r:{}),{[o.NetworkParam.StatsigEncoded]:"1"}),n}catch(i){return a.Log.warn(`Request encoding failed for ${e.urlConfig.getUrl()}`),t}}_getInternalRequestArgs(e,t){let i=this._fallbackResolver.getActiveFallbackUrl(t.sdkKey,t.urlConfig);return Object.assign(Object.assign({},t),{method:e,fallbackUrl:i})}}t.NetworkCore=_;let y=e=>!!e.sdkKey||(a.Log.warn("Unable to make request without an SDK key"),!1);function m(e,t,i,r,n){e.urlConfig.endpoint===o.Endpoint._initialize&&s.Diagnostics._markInitNetworkReqEnd(e.sdkKey,s.Diagnostics._getDiagnosticsData(t,i,r,n))}},50052:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._isDomainFailure=t.NetworkFallbackResolver=void 0;let n=i(60457),s=i(83918),a=i(68024),o=i(1638);class l{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 i;let r=null===(i=this._fallbackInfo)||void 0===i?void 0:i[t.endpoint];r&&(r.expiryTime=Date.now()+6048e5,d(e,Object.assign(Object.assign({},this._fallbackInfo),{[t.endpoint]:r})))}getActiveFallbackUrl(e,t){var i,r;let n=this._fallbackInfo;null==n&&(n=null!==(i=function(e){let t=c(e),i=o.Storage.getItem(t);if(!i)return null;try{return JSON.parse(i)}catch(e){return a.Log.error("Failed to parse FallbackInfo"),null}}(e))&&void 0!==i?i:{},this._fallbackInfo=n);let s=n[t.endpoint];return!s||Date.now()>(null!==(r=s.expiryTime)&&void 0!==r?r:0)?(delete n[t.endpoint],this._fallbackInfo=n,d(e,this._fallbackInfo),null):s.url?s.url:null}getFallbackFromProvided(e){let t=h(e);return t?e.replace(t,""):null}tryFetchUpdatedFallbackInfo(e,t,i,n){var s,a;return r(this,void 0,void 0,function*(){try{if(!u(i,n))return!1;let r=null==t.customUrl&&null==t.fallbackUrls?yield this._tryFetchFallbackUrlsFromNetwork(t):t.fallbackUrls,a=this._pickNewFallbackUrl(null===(s=this._fallbackInfo)||void 0===s?void 0:s[t.endpoint],r);if(!a)return!1;return this._updateFallbackInfoWithNewUrl(e,t.endpoint,a),!0}catch(e){return null===(a=this._errorBoundary)||void 0===a||a.logError("tryFetchUpdatedFallbackInfo",e),!1}})}_updateFallbackInfoWithNewUrl(e,t,i){var r,n,s;let a={url:i,expiryTime:Date.now()+6048e5,previous:[]},o=null===(r=this._fallbackInfo)||void 0===r?void 0:r[t];o&&a.previous.push(...o.previous),a.previous.length>10&&(a.previous=[]);let l=null===(s=null===(n=this._fallbackInfo)||void 0===n?void 0:n[t])||void 0===s?void 0:s.url;null!=l&&a.previous.push(l),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[t]:a}),d(e,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(e){var t;return r(this,void 0,void 0,function*(){let i=this._dnsQueryCooldowns[e.endpoint];if(i&&Date.now()<i)return null;this._dnsQueryCooldowns[e.endpoint]=Date.now()+144e5;let r=[],s=yield(0,n._fetchTxtRecords)(null!==(t=this._networkOverrideFunc)&&void 0!==t?t:fetch),a=h(e.defaultUrl);for(let t of s){if(!t.startsWith(e.endpointDnsKey+"="))continue;let i=t.split("=");if(i.length>1){let e=i[1];e.endsWith("/")&&(e=e.slice(0,-1)),r.push(`https://${e}${a}`)}}return r})}_pickNewFallbackUrl(e,t){var i;if(null==t)return null;let r=new Set(null!==(i=null==e?void 0:e.previous)&&void 0!==i?i:[]),n=null==e?void 0:e.url,s=null;for(let e of t){let t=e.endsWith("/")?e.slice(0,-1):e;if(!r.has(e)&&t!==n){s=t;break}}return s}}function u(e,t){var i;let r=null!==(i=null==e?void 0:e.toLowerCase())&&void 0!==i?i:"";return t||r.includes("uncaught exception")||r.includes("failed to fetch")||r.includes("networkerror when attempting to fetch resource")}function c(e){return`statsig.network_fallback.${(0,s._DJB2)(e)}`}function d(e,t){let i=c(e);if(!t||0===Object.keys(t).length){o.Storage.removeItem(i);return}o.Storage.setItem(i,JSON.stringify(t))}function h(e){try{return new URL(e).pathname}catch(e){return null}}t.NetworkFallbackResolver=l,t._isDomainFailure=u},82509:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0})},5025:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},10686:(e,t)=>{"use strict";let i;Object.defineProperty(t,"__esModule",{value:!0}),t.SDKType=void 0;let r={};t.SDKType={_get:e=>{var t;return(null!==(t=r[e])&&void 0!==t?t:"js-mono")+(null!=i?i:"")},_setClientType(e,t){r[e]=t},_setBindingType(e){i&&"-react"!==i||(i="-"+e)}}},414:(e,t,i)=>{"use strict";var r=i(65606);Object.defineProperty(t,"__esModule",{value:!0}),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;let i=(0,t._getWindowSafe)();return null!==(e=null==i?void 0:i.document)&&void 0!==e?e:null},t._isServerEnv=()=>{if(null!==(0,t._getDocumentSafe)())return!1;let e=void 0!==r&&null!=r.versions&&null!=r.versions.node;return"string"==typeof EdgeRuntime||e},t._addWindowEventListenerSafe=(e,i)=>{let r=(0,t._getWindowSafe)();"function"==typeof(null==r?void 0:r.addEventListener)&&r.addEventListener(e,i)},t._addDocumentEventListenerSafe=(e,i)=>{let r=(0,t._getDocumentSafe)();"function"==typeof(null==r?void 0:r.addEventListener)&&r.addEventListener(e,i)},t._getCurrentPageUrlSafe=()=>{var e;try{return null===(e=(0,t._getWindowSafe)())||void 0===e?void 0:e.location.href.split(/[?#]/)[0]}catch(e){return}}},39839:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigSession=t.SessionID=void 0;let r=i(94681),n=i(68024),s=i(1638),a=i(37047),o={};function l(e,t){return setTimeout(()=>{let t=null==__STATSIG__?void 0:__STATSIG__.instance(e);t&&t.$emt({name:"session_expired"})},t)}function u(e){return`statsig.session_id.${(0,r._getStorageKey)(e)}`}t.SessionID={get:e=>t.StatsigSession.get(e).data.sessionID},t.StatsigSession={get:e=>(null==o[e]&&(o[e]=function(e){let t=function(e){let t=u(e);return(0,s._getObjectFromStorage)(t)}(e),i=Date.now();return t||(t={sessionID:(0,a.getUUID)(),startTime:i,lastUpdate:i}),{data:t,sdkKey:e}}(e)),function(e){let t=Date.now(),i=e.data;((function({lastUpdate:e}){return Date.now()-e>18e5})(i)||function({startTime:e}){return Date.now()-e>144e5}(i))&&(i.sessionID=(0,a.getUUID)(),i.startTime=t),i.lastUpdate=t,function(e,t){let i=u(t);try{(0,s._setObjectInStorage)(i,e)}catch(e){n.Log.warn("Failed to save SessionID")}}(i,e.sdkKey),clearTimeout(e.idleTimeoutID),clearTimeout(e.ageTimeoutID);let r=t-i.startTime,o=e.sdkKey;return e.idleTimeoutID=l(o,18e5),e.ageTimeoutID=l(o,144e5-r),e}(o[e])),overrideInitialSessionID:(e,t)=>{o[t]=function(e,t){let i=Date.now();return{data:{sessionID:e,startTime:i,lastUpdate:i},sdkKey:t}}(e,t)}}},32626:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StableID=void 0;let r=i(94681),n=i(68024),s=i(1638),a=i(37047),o={};function l(e){return`statsig.stable_id.${(0,r._getStorageKey)(e)}`}function u(e,t){let i=l(t);try{(0,s._setObjectInStorage)(i,e)}catch(e){n.Log.warn("Failed to save StableID")}}t.StableID={get:e=>{if(null==o[e]){let t=function(e){let t=l(e);return(0,s._getObjectFromStorage)(t)}(e);null==t&&u(t=(0,a.getUUID)(),e),o[e]=t}return o[e]},setOverride:(e,t)=>{o[t]=e,u(e,t)}}},84351:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClientBase=void 0,i(43509);let n=i(43509),s=i(14358),a=i(85434),o=i(68024),l=i(414),u=i(39839),c=i(1638);class d{constructor(e,t,i,r){var d;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};let h=this.$emt.bind(this);(null==r?void 0:r.logLevel)!=null&&(o.Log.level=r.logLevel),(null==r?void 0:r.disableStorage)&&c.Storage._setDisabled(!0),(null==r?void 0:r.initialSessionID)&&u.StatsigSession.overrideInitialSessionID(r.initialSessionID,e),(null==r?void 0:r.storageProvider)&&c.Storage._setProvider(r.storageProvider),this._sdkKey=e,this._options=null!=r?r:{},this.overrideAdapter=null!==(d=null==r?void 0:r.overrideAdapter)&&void 0!==d?d:null,this._logger=new a.EventLogger(e,h,i,r),this._errorBoundary=new s.ErrorBoundary(e,r,h),this._errorBoundary.wrap(this),this._errorBoundary.wrap(t),this._errorBoundary.wrap(this._logger),i.setErrorBoundary(this._errorBoundary),this.dataAdapter=t,this.dataAdapter.attach(e,r),this.storageProvider=c.Storage,this._primeReadyRipcord(),function(e,t){var i;if((0,l._isServerEnv)())return;let r=(0,n._getStatsigGlobal)(),s=null!==(i=r.instances)&&void 0!==i?i:{};null!=s[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."),s[e]=t,r.firstInstance||(r.firstInstance=t),r.instances=s,__STATSIG__=r}(e,this)}updateRuntimeOptions(e){null!=e.disableLogging&&(this._options.disableLogging=e.disableLogging,this._logger.setLoggingDisabled(e.disableLogging)),null!=e.disableStorage&&(this._options.disableStorage=e.disableStorage,c.Storage._setDisabled(e.disableStorage))}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]){let i=this._listeners[e].indexOf(t);-1!==i&&this._listeners[e].splice(i,1)}}$on(e,t){t.__isInternal=!0,this.on(e,t)}$emt(e){var t;let i=t=>{try{t(e)}catch(i){if(!0===t.__isInternal){this._errorBoundary.logError(`__emit:${e.name}`,i);return}o.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",e)}};
1this._listeners[e.name]&&this._listeners[e.name].forEach(e=>i(e)),null===(t=this._listeners["*"])||void 0===t||t.forEach(i)}_setStatus(e,t){this.loadingStatus=e,this.$emt({name:"values_updated",status:e,values:t})}_enqueueExposure(e,t,i){if((null==i?void 0:i.disableExposureLog)===!0){this._logger.incrementNonExposureCount(e);return}this._logger.enqueue(t)}}t.StatsigClientBase=d},71180:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorTag=void 0,t.ErrorTag={NetworkError:"NetworkError"}},12166:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataAdapterCachePrefix=void 0,t.DataAdapterCachePrefix="statsig.cached"},37253:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._createLayerParameterExposure=t._createConfigExposure=t._createGateExposure=t._isExposureEvent=void 0;let i="statsig::config_exposure",r="statsig::gate_exposure",n="statsig::layer_exposure",s=(e,t,i,r,n)=>(i.bootstrapMetadata&&(r.bootstrapMetadata=i.bootstrapMetadata),{eventName:e,user:t,value:null,metadata:a(i,r),secondaryExposures:n,time:Date.now()});t._isExposureEvent=({eventName:e})=>e===r||e===i||e===n,t._createGateExposure=(e,t)=>{var i,n,a;let o={gate:t.name,gateValue:String(t.value),ruleID:t.ruleID};return(null===(i=t.__evaluation)||void 0===i?void 0:i.version)!=null&&(o.configVersion=t.__evaluation.version),s(r,e,t.details,o,null!==(a=null===(n=t.__evaluation)||void 0===n?void 0:n.secondary_exposures)&&void 0!==a?a:[])},t._createConfigExposure=(e,t)=>{var r,n,a,o;let l={config:t.name,ruleID:t.ruleID};return(null===(r=t.__evaluation)||void 0===r?void 0:r.version)!=null&&(l.configVersion=t.__evaluation.version),(null===(n=t.__evaluation)||void 0===n?void 0:n.passed)!=null&&(l.rulePassed=String(t.__evaluation.passed)),s(i,e,t.details,l,null!==(o=null===(a=t.__evaluation)||void 0===a?void 0:a.secondary_exposures)&&void 0!==o?o:[])},t._createLayerParameterExposure=(e,t,i)=>{var r,a,o,l;let u=t.__evaluation,c=(null===(r=null==u?void 0:u.explicit_parameters)||void 0===r?void 0:r.includes(i))===!0,d="",h=null!==(a=null==u?void 0:u.undelegated_secondary_exposures)&&void 0!==a?a:[];c&&(d=null!==(o=u.allocated_experiment_name)&&void 0!==o?o:"",h=u.secondary_exposures);let p={config:t.name,parameterName:i,ruleID:t.ruleID,allocatedExperiment:d,isExplicitParameter:String(c)};return(null===(l=t.__evaluation)||void 0===l?void 0:l.version)!=null&&(p.configVersion=t.__evaluation.version),s(n,e,t.details,p,h)};let a=(e,t)=>(t.reason=e.reason,e.lcut&&(t.lcut=String(e.lcut)),e.receivedAt&&(t.receivedAt=String(e.receivedAt)),t)},46512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigMetadataProvider=t.SDK_VERSION=void 0,t.SDK_VERSION="3.8.2";let i={sdkVersion:t.SDK_VERSION,sdkType:"js-mono"};t.StatsigMetadataProvider={get:()=>i,add:e=>{i=Object.assign(Object.assign({},i),e)}}},47754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},68474:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9851:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeTypedGet=t._mergeOverride=t._makeLayer=t._makeExperiment=t._makeDynamicConfig=t._makeFeatureGate=void 0;let r=i(68024),n=i(90010);function s(e,t,i,r){var n;return{name:e,details:t,ruleID:null!==(n=null==i?void 0:i.rule_id)&&void 0!==n?n:"default",__evaluation:i,value:r}}function a(e,t,i){var r;let n=null!==(r=null==i?void 0:i.value)&&void 0!==r?r:{};return Object.assign(Object.assign({},s(e,t,i,n)),{get:o(e,null==i?void 0:i.value)})}function o(e,t,i){return(s,a)=>{var o;let l=null!==(o=null==t?void 0:t[s])&&void 0!==o?o:null;return null==l?null!=a?a:null:null==a||(0,n._isTypeMatch)(l,a)?(null==i||i(s),l):(r.Log.warn(`Parameter type mismatch. '${e}.${s}' 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,i){return s(e,t,i,(null==i?void 0:i.value)===!0)},t._makeDynamicConfig=a,t._makeExperiment=function(e,t,i){var r;return Object.assign(Object.assign({},a(e,t,i)),{groupName:null!==(r=null==i?void 0:i.group_name)&&void 0!==r?r:null})},t._makeLayer=function(e,t,i,r){var n,a;return Object.assign(Object.assign({},s(e,t,i,void 0)),{get:o(e,null==i?void 0:i.value,r),groupName:null!==(n=null==i?void 0:i.group_name)&&void 0!==n?n:null,__value:null!==(a=null==i?void 0:i.value)&&void 0!==a?a:{}})},t._mergeOverride=function(e,t,i,r){return Object.assign(Object.assign(Object.assign({},e),t),{get:o(e.name,i,r)})},t._makeTypedGet=o},99652:(e,t)=>
1{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},81570:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getFullUserHash=t._normalizeUser=void 0;let r=i(83918),n=i(68024);t._normalizeUser=function(e,t,i){try{let r=JSON.parse(JSON.stringify(e));return null!=t&&null!=t.environment?r.statsigEnvironment=t.environment:null!=i&&(r.statsigEnvironment={tier:i}),r}catch(e){return n.Log.error("Failed to JSON.stringify user"),{statsigEnvironment:void 0}}},t._getFullUserHash=function(e){return e?(0,r._DJB2Object)(e):null}},1638:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._setObjectInStorage=t._getObjectFromStorage=t.Storage=void 0;let r=i(68024),n=i(414),s={},a={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:e=>s[e]?s[e]:null,setItem:(e,t)=>{s[e]=t},removeItem:e=>{delete s[e]},getAllKeys:()=>Object.keys(s)},o=null;try{let e=(0,n._getWindowSafe)();e&&e.localStorage&&"function"==typeof e.localStorage.getItem&&(o={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:t=>e.localStorage.getItem(t),setItem:(t,i)=>e.localStorage.setItem(t,i),removeItem:t=>e.localStorage.removeItem(t),getAllKeys:()=>Object.keys(e.localStorage)})}catch(e){r.Log.warn("Failed to setup localStorageProvider.")}let l=null!=o?o:a,u=l;t.Storage={isReady:()=>u.isReady(),isReadyResolver:()=>u.isReadyResolver(),getProviderName:()=>u.getProviderName(),getItem:e=>(function(e){try{return e()}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return t.Storage._setProvider(a),null;throw e}})(()=>u.getItem(e)),setItem:(e,t)=>u.setItem(e,t),removeItem:e=>u.removeItem(e),getAllKeys:()=>u.getAllKeys(),_setProvider:e=>{l=e,u=e},_setDisabled:e=>{u=e?a:l}},t._getObjectFromStorage=function(e){let i=t.Storage.getItem(e);return JSON.parse(null!=i?i:"null")},t._setObjectInStorage=function(e,i){t.Storage.setItem(e,JSON.stringify(i))}},53705:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._typedJsonParse=void 0;let r=i(68024);t._typedJsonParse=function(e,t,i){try{return JSON.parse(e)}catch(e){}return r.Log.error(`Failed to parse ${i}`),null}},90010:(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){let i=e=>Array.isArray(e)?"array":typeof e;return i(e)===i(t)}},37047:(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,i="89ab"[Math.floor(4*Math.random())];return`xxxxxxxx-xxxx-4xxx-${i}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,i=>{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"===i?r:7&r|8).toString(16)})}},88873:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlConfiguration=void 0;let r=i(12610),n={[r.Endpoint._initialize]:"i",[r.Endpoint._rgstr]:"e",[r.Endpoint._download_config_specs]:"d"};class s{constructor(e,t,i,s){this.customUrl=null,this.fallbackUrls=null,this.endpoint=e,this.endpointDnsKey=n[e],t&&(this.customUrl=t),!t&&i&&(this.customUrl=i.endsWith("/")?`${i}${e}`:`${i}/${e}`),s&&(this.fallbackUrls=s);let a=r.NetworkDefault[e];this.defaultUrl=`${a}/${e}`}getUrl(){var e;return null!==(e=this.customUrl)&&void 0!==e?e:this.defaultUrl}}t.UrlConfiguration=s},92701:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._notifyVisibilityChanged=t._subscribeToVisiblityChanged=t._isUnloading=t._isCurrentlyVisible=void 0;let r=i(414),n="foreground",s="background",a=[],o=n,l=!1;t._isCurrentlyVisible=()=>o===n,t._isUnloading=()=>l,t._subscribeToVisiblityChanged=e=>{a.unshift(e)},t._notifyVisibilityChanged=e=>{e!==o&&(o=e,a.forEach(t=>t(e)))},(0,r._addWindowEventListenerSafe)("focus",()=>{l=!1,(0,t._notifyVisibilityChanged)(n)}),(0,r._addWindowEventListenerSafe)("blur",()=>(0,t._notifyVisibilityChanged)(s)),(0,r._addWindowEventListenerSafe)("beforeunload",()=>{l=!0,(0,t._notifyVisibilityChanged)(s)}),(0,r._addDocumentEventListenerSafe)("visibilitychange",()=>{(0,t._notifyVisibilityChanged)("visible"===document.visibilityState?n:s)})},36978:function(e,t,i){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var n=Object.getOwnPropertyDescriptor(t,i);
1(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,n)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),n=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||r(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=t.Log=t.Storage=t.EventLogger=void 0,i(43509);let s=i(30882);Object.defineProperty(t,"Diagnostics",{enumerable:!0,get:function(){return s.Diagnostics}});let a=i(85434);Object.defineProperty(t,"EventLogger",{enumerable:!0,get:function(){return a.EventLogger}});let o=i(68024);Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return o.Log}});let l=i(46512),u=i(1638);Object.defineProperty(t,"Storage",{enumerable:!0,get:function(){return u.Storage}}),n(i(43509),t),n(i(94681),t),n(i(58683),t),n(i(85638),t),n(i(30882),t),n(i(54387),t),n(i(14358),t),n(i(43194),t),n(i(86913),t),n(i(83918),t),n(i(57061),t),n(i(68024),t),n(i(12610),t),n(i(44703),t),n(i(82509),t),n(i(5025),t),n(i(414),t),n(i(10686),t),n(i(39839),t),n(i(32626),t),n(i(84351),t),n(i(71180),t),n(i(12166),t),n(i(37253),t),n(i(46512),t),n(i(47754),t),n(i(68474),t),n(i(9851),t),n(i(99652),t),n(i(81570),t),n(i(1638),t),n(i(53705),t),n(i(90010),t),n(i(88873),t),n(i(37047),t),n(i(92701),t),__STATSIG__=Object.assign(Object.assign({},null!=__STATSIG__?__STATSIG__:{}),{Log:o.Log,SDK_VERSION:l.SDK_VERSION})},65694:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._resolveDeltasResponse=void 0;let r=i(36978);function n(e,t){null==e||e.forEach(e=>{delete t[e]})}t._resolveDeltasResponse=function(e,t){var i;let s=(0,r._typedJsonParse)(t,"checksum","DeltasEvaluationResponse");if(!s)return{hadBadDeltaChecksum:!0};let a=(n((i=Object.assign(Object.assign(Object.assign({},e),s),{feature_gates:Object.assign(Object.assign({},e.feature_gates),s.feature_gates),layer_configs:Object.assign(Object.assign({},e.layer_configs),s.layer_configs),dynamic_configs:Object.assign(Object.assign({},e.dynamic_configs),s.dynamic_configs)})).deleted_gates,i.feature_gates),delete i.deleted_gates,n(i.deleted_configs,i.dynamic_configs),delete i.deleted_configs,n(i.deleted_layers,i.layer_configs),delete i.deleted_layers,i),o=(0,r._DJB2Object)({feature_gates:a.feature_gates,dynamic_configs:a.dynamic_configs,layer_configs:a.layer_configs},2);return o!==s.checksumV2?{hadBadDeltaChecksum:!0,badChecksum:o,badMergedConfigs:a,badFullResponse:s.deltas_full_response}:JSON.stringify(a)}},10058:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=i(36978);class n{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){if(!e)return!1;let i=(0,r._typedJsonParse)(e.data,"has_updates","EvaluationResponse");return null!=i&&(this._source=e.source,(null==i?void 0:i.has_updates)!==!0||(this._rawValues=e.data,this._lcut=i.time,this._receivedAt=e.receivedAt,this._values=i,this._bootstrapMetadata=this._extractBootstrapMetadata(e.source,i),e.source&&i.user&&this._setWarningState(t,i),!0))}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)}_extractBootstrapMetadata(e,t){if("Bootstrap"!==e)return null;let i={};return t.user&&(i.user=t.user),t.sdkInfo&&(i.generatorSDKInfo=t.sdkInfo),i.lcut=t.time,i}_getDetailedStoreResult(e,t){let i=null;return e&&(i=e[t]?e[t]:e[(0,r._DJB2)(t)]),{result:i,details:this._getDetails(null==i)}}_setWarningState(e,t){var i;let n=r.StableID.get(this._sdkKey);if((null===(i=e.customIDs)||void 0===i?void 0:i.stableID)!==n){this._warnings.add("StableIDMismatch");return}if("user"in t){let i=t.user;(0,r._getFullUserHash)(e)!==(0,r._getFullUserHash)(i)&&this._warnings.add("Parti
1alUserMatch")}}getCurrentSourceDetails(){if("Uninitialized"===this._source||"NoValues"===this._source)return{reason:this._source};let 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,i;let r=this.getCurrentSourceDetails(),n=r.reason,s=null!==(t=r.warnings)&&void 0!==t?t:[];"Bootstrap"===this._source&&s.length>0&&(n+=s[0]),"Uninitialized"!==n&&"NoValues"!==n&&(n=`${n}:${e?"Unrecognized":"Recognized"}`);let a="Bootstrap"===this._source&&null!==(i=this._bootstrapMetadata)&&void 0!==i?i:void 0;return a&&(r.bootstrapMetadata=a),Object.assign(Object.assign({},r),{reason:n})}}t.default=n},82944:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});let n=i(36978),s=i(65694);class a extends n.NetworkCore{constructor(e,t){super(e,t);let i=null==e?void 0:e.networkConfig;this._initializeUrlConfig=new n.UrlConfiguration(n.Endpoint._initialize,null==i?void 0:i.initializeUrl,null==i?void 0:i.api,null==i?void 0:i.initializeFallbackUrls)}fetchEvaluations(e,t,i,s){return r(this,void 0,void 0,function*(){let r=t?(0,n._typedJsonParse)(t,"has_updates","InitializeResponse"):null,a={user:s,hash:"djb2",deltasResponseRequested:!1};return(null==r?void 0:r.has_updates)&&(a=Object.assign(Object.assign({},a),{sinceTime:r.time,previousDerivedFields:"derived_fields"in r?r.derived_fields:{},deltasResponseRequested:!0})),this._fetchEvaluations(e,r,a,i)})}_fetchEvaluations(e,t,i,n){var a,o;return r(this,void 0,void 0,function*(){let r=yield this.post({sdkKey:e,urlConfig:this._initializeUrlConfig,data:i,retries:2,isStatsigEncodable:!0,priority:n});if((null==r?void 0:r.code)===204)return'{"has_updates": false}';if((null==r?void 0:r.code)!==200)return null!==(a=null==r?void 0:r.body)&&void 0!==a?a:null;if((null==t?void 0:t.has_updates)!==!0||(null===(o=r.body)||void 0===o?void 0:o.includes('"is_delta":true'))!==!0||!0!==i.deltasResponseRequested)return r.body;let l=(0,s._resolveDeltasResponse)(t,r.body);return"string"==typeof l?l:this._fetchEvaluations(e,t,Object.assign(Object.assign(Object.assign({},i),l),{deltasResponseRequested:!1}),n)})}}t.default=a},79999:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeParamStoreGetter=void 0;let r=i(36978),n={disableExposureLog:!0};function s(e){return null==e||!1===e.disableExposureLog}function a(e,t){return null!=t&&!(0,r._isTypeMatch)(e,t)}t._makeParamStoreGetter=function(e,t,i){return(o,l)=>{if(null==t)return l;let u=t[o];if(null==u||null!=l&&(0,r._typeOf)(l)!==u.param_type)return l;switch(u.ref_type){case"static":return u.value;case"gate":return e.getFeatureGate(u.gate_name,s(i)?void 0:n).value?u.pass_value:u.fail_value;case"dynamic_config":return function(e,t,i,r){let o=e.getDynamicConfig(t.config_name,n).get(t.param_name);return a(o,i)?i:(s(r)&&e.getDynamicConfig(t.config_name),o)}(e,u,l,i);case"experiment":return function(e,t,i,r){let o=e.getExperiment(t.experiment_name,n).get(t.param_name);return a(o,i)?i:(s(r)&&e.getExperiment(t.experiment_name),o)}(e,u,l,i);case"layer":return function(e,t,i,r){let o=e.getLayer(t.layer_name,n).get(t.param_name);return a(o,i)?i:(s(r)&&e.getLayer(t.layer_name).get(t.param_name),o)}(e,u,l,i);default:return l}}}},7686:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});let n=i(36978),s=i(10058),a=i(82944),o=i(79999),l=i(42451);class u extends n.StatsigClientBase{static instance(e){let t=(0,n._getStatsigGlobal)().instance(e);return t instanceof u?t:(n.Log.warn((0,n._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new u(null!=e?e:"",{}))}constructor(e,t,i=null){var r,o;for(let u of(n.SDKType._setClientType(e,"javascript-client"),super(e,null!==(r=null==i?void 0:i.dataAdapter)&&void 0!==r?r:new l.StatsigEvaluationsDataAdapter,new a.default(i,e=>{this.$emt(e)}),i),this._store=new s.default(e),this._user=(0,n._normalizeUser)(t,i),null!==(o=null==i?void 0:i.plugins)&&void 0!==o?o:[]))u.bind(this)}initializeSync(e){"Uninitialized"===this.loadingStatus&&(this._logger.start(),this.updateUserSync(this._user,e))}initializeAsync(e){return r(this,void 0,void 0,function*(){return this._initializePromise||(this._initializePromise=this._initializeAsyncImpl(e)),this._initializePromise})}updateUserSync(e,t){this._resetForUser(e);let i=this.dataAdapter.getDataSync(this._user);this._store.setValues(i,this._user),this._finalizeUpdate(i);
1let r=null==t?void 0:t.disableBackgroundCacheRefresh;!0!==r&&(null!=r||(null==i?void 0:i.source)!=="Bootstrap")&&this._runPostUpdate(null!=i?i:null,this._user)}updateUserAsync(e,t){return r(this,void 0,void 0,function*(){this._resetForUser(e);let i=this._user;n.Diagnostics._markInitOverallStart(this._sdkKey);let r=this.dataAdapter.getDataSync(i);if(this._store.setValues(r,this._user),this._setStatus("Loading",r),r=yield this.dataAdapter.getDataAsync(r,i,t),i!==this._user)return;let s=!1;null!=r&&(n.Diagnostics._markInitProcessStart(this._sdkKey),s=this._store.setValues(r,this._user),n.Diagnostics._markInitProcessEnd(this._sdkKey,{success:s})),this._finalizeUpdate(r),s||this.$emt({name:"initialization_failure"}),n.Diagnostics._markInitOverallEnd(this._sdkKey,s,this._store.getCurrentSourceDetails()),n.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options)})}getContext(){return{sdkKey:this._sdkKey,options:this._options,values:this._store.getValues(),user:JSON.parse(JSON.stringify(this._user)),errorBoundary:this._errorBoundary,session:n.StatsigSession.get(this._sdkKey),stableID:n.StableID.get(this._sdkKey)}}checkGate(e,t){return this.getFeatureGate(e,t).value}getFeatureGate(e,t){var i,r;let{result:s,details:a}=this._store.getGate(e),o=(0,n._makeFeatureGate)(e,a,s),l=null===(r=null===(i=this.overrideAdapter)||void 0===i?void 0:i.getGateOverride)||void 0===r?void 0:r.call(i,o,this._user,t),u=null!=l?l:o;return this._enqueueExposure(e,(0,n._createGateExposure)(this._user,u),t),this.$emt({name:"gate_evaluation",gate:u}),u}getDynamicConfig(e,t){var i,r;let{result:s,details:a}=this._store.getConfig(e),o=(0,n._makeDynamicConfig)(e,a,s),l=null===(r=null===(i=this.overrideAdapter)||void 0===i?void 0:i.getDynamicConfigOverride)||void 0===r?void 0:r.call(i,o,this._user,t),u=null!=l?l:o;return this._enqueueExposure(e,(0,n._createConfigExposure)(this._user,u),t),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:u}),u}getExperiment(e,t){var i,r;let{result:s,details:a}=this._store.getConfig(e),o=(0,n._makeExperiment)(e,a,s),l=null===(r=null===(i=this.overrideAdapter)||void 0===i?void 0:i.getExperimentOverride)||void 0===r?void 0:r.call(i,o,this._user,t),u=null!=l?l:o;return this._enqueueExposure(e,(0,n._createConfigExposure)(this._user,u),t),this.$emt({name:"experiment_evaluation",experiment:u}),u}getLayer(e,t){var i,r,s;let{result:a,details:o}=this._store.getLayer(e),l=(0,n._makeLayer)(e,o,a),u=null===(r=null===(i=this.overrideAdapter)||void 0===i?void 0:i.getLayerOverride)||void 0===r?void 0:r.call(i,l,this._user,t),c=(0,n._mergeOverride)(l,u,null!==(s=null==u?void 0:u.__value)&&void 0!==s?s:l.__value,i=>{this._enqueueExposure(e,(0,n._createLayerParameterExposure)(this._user,c,i),t)});return this.$emt({name:"layer_evaluation",layer:c}),c}getParameterStore(e,t){let{result:i,details:r}=this._store.getParamStore(e);return this._logger.incrementNonExposureCount(e),{name:e,details:r,__configuration:i,get:(0,o._makeParamStoreGetter)(this,i,t)}}logEvent(e,t,i){this._logger.enqueue(Object.assign(Object.assign({},"string"==typeof e?{eventName:e,value:t,metadata:i}:e),{user:this._user,time:Date.now()}))}_primeReadyRipcord(){this.$on("error",()=>{"Loading"===this.loadingStatus&&this._finalizeUpdate(null)})}_initializeAsyncImpl(e){return r(this,void 0,void 0,function*(){return n.Storage.isReady()||(yield n.Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,e)})}_finalizeUpdate(e){this._store.finalize(),this._setStatus("Ready",e)}_runPostUpdate(e,t){this.dataAdapter.getDataAsync(e,t,{priority:"low"}).catch(e=>{n.Log.error("An error occurred after update.",e)})}_resetForUser(e){var t;this._logger.reset(),this._store.reset(),this._user=(0,n._normalizeUser)(e,this._options);let i=null===(t=this._user.customIDs)||void 0===t?void 0:t.stableID;i&&n.StableID.setOverride(i,this._sdkKey)}}t.default=u},42451:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})};
1Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigEvaluationsDataAdapter=void 0;let n=i(36978),s=i(82944);class a extends n.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(e,t){super.attach(e,t),this._network=new s.default(null!=t?t:{})}getDataAsync(e,t,i){return this._getDataAsyncImpl(e,(0,n._normalizeUser)(t,this._options),i)}prefetchData(e,t){return this._prefetchDataImpl(e,t)}setData(e){let t=(0,n._typedJsonParse)(e,"has_updates","data");t&&"user"in t?super.setData(e,t.user):n.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(e,t){super.setData(e,t)}_fetchFromNetwork(e,t,i){var n;return r(this,void 0,void 0,function*(){let r=yield null===(n=this._network)||void 0===n?void 0:n.fetchEvaluations(this._getSdkKey(),e,null==i?void 0:i.priority,t);return null!=r?r:null})}_getCacheKey(e){var t;let i=(0,n._getStorageKey)(this._getSdkKey(),e,null===(t=this._options)||void 0===t?void 0:t.customUserCacheKeyFunc);return`${n.DataAdapterCachePrefix}.${this._cacheSuffix}.${i}`}_isCachedResultValidFor204(e,t){return null!=e.fullUserHash&&e.fullUserHash===(0,n._getFullUserHash)(t)}}t.StatsigEvaluationsDataAdapter=a},5138:function(e,t,i){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,n)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),n=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||r(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClient=void 0;let s=i(7686);t.StatsigClient=s.default,n(i(36978),t),__STATSIG__=Object.assign(Object.assign({},null!=__STATSIG__?__STATSIG__:{}),{StatsigClient:s.default}),t.default=__STATSIG__},85255:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNoopClient=t.NoopEvaluationsClient=void 0;let r=i(36978),n=()=>{},s=()=>Promise.resolve(),a={reason:"Error:NoClient"},o=e=>(...t)=>{let i="string"==typeof t[0]?t[0]:t[1];switch(e){case"gate":return(0,r._makeFeatureGate)(i,a,null);case"config":return(0,r._makeDynamicConfig)(i,a,null);case"layer":return(0,r._makeLayer)(i,a,null);case"param_store":return{name:i}}},l={sdkKey:"",options:{},values:null,user:{userID:""},errorBoundary:{},session:{data:{sessionID:"",startTime:0,lastUpdate:0},sdkKey:""},stableID:"",storageProvider:r.Storage},u={isNoop:!0,loadingStatus:"Uninitialized",initializeSync:n,initializeAsync:s,shutdown:s,flush:s,updateRuntimeOptions:n,updateUserSync:n,updateUserAsync:s,getContext:()=>Object.assign({},l),checkGate:()=>!1,getFeatureGate:o("gate"),getDynamicConfig:o("config"),getExperiment:o("config"),getLayer:o("layer"),getParameterStore:o("param_store"),logEvent:n,on:n,off:n,$on:n,$emt:n,dataAdapter:{attach:n,getDataSync:()=>null,getDataAsync:()=>Promise.resolve(null),setData:n,setDataLegacy:n,prefetchData:s}};t.NoopEvaluationsClient=u,t.isNoopClient=function(e){return"isNoop"in e}},79713:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=i(96540),n=i(85255);t.default=(0,r.createContext)({renderVersion:0,client:n.NoopEvaluationsClient})},80905:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigProvider=void 0;let r=i(74848),n=i(96540),s=i(36978),a=i(79713),o=i(46217);t.StatsigProvider=function(e){let[t,i]=(0,n.useState)(0),l="client"in e?e.client:(0,o.useClientAsyncInit)(e.sdkKey,e.user,e.options).client;(0,n.useEffect)(()=>{let e=()=>{i(e=>e+1)};return s.SDKType._setBindingType("react"),l.$on("values_updated",e),()=>{l.flush().catch(e=>s.Log.error("An error occured during flush",e)),l.off("values_updated",e)}},[l]);let u=(0,n.useMemo)(()=>({renderVersion:t,client:l}),[t,l]);return(0,r.jsx)(a.default.Provider,{value:u,children:null==e.loadingComponent||"isNoop"in l||"Ready"===l.loadingStatus?e.children:e.loadingComponent})}},38287:function(e,t,i){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var n=Object.getOwnPropertyDescriptor(t,i);
1(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,n)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),n=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||r(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigUser=t.useStatsigInternalClientFactoryBootstrap=t.useStatsigInternalClientFactoryAsync=t.useStatsigClient=t.useParameterStore=t.useLayer=t.useGateValue=t.useFeatureGate=t.useExperiment=t.useDynamicConfig=t.useClientBootstrapInit=t.useClientAsyncInit=t.StatsigProvider=t.StatsigContext=void 0;let s=i(79713);t.StatsigContext=s.default;let a=i(80905);Object.defineProperty(t,"StatsigProvider",{enumerable:!0,get:function(){return a.StatsigProvider}});let o=i(46217);Object.defineProperty(t,"useClientAsyncInit",{enumerable:!0,get:function(){return o.useClientAsyncInit}});let l=i(24579);Object.defineProperty(t,"useClientBootstrapInit",{enumerable:!0,get:function(){return l.useClientBootstrapInit}});let u=i(86397);t.useDynamicConfig=u.default;let c=i(86427);t.useExperiment=c.default;let d=i(1531);t.useFeatureGate=d.default;let h=i(93594);t.useGateValue=h.default;let p=i(33983);t.useLayer=p.default;let g=i(74732);t.useParameterStore=g.default;let f=i(56050);Object.defineProperty(t,"useStatsigClient",{enumerable:!0,get:function(){return f.useStatsigClient}});let v=i(1589);Object.defineProperty(t,"useStatsigInternalClientFactoryAsync",{enumerable:!0,get:function(){return v.useStatsigInternalClientFactoryAsync}});let _=i(57147);Object.defineProperty(t,"useStatsigInternalClientFactoryBootstrap",{enumerable:!0,get:function(){return _.useStatsigInternalClientFactoryBootstrap}});let y=i(96526);Object.defineProperty(t,"useStatsigUser",{enumerable:!0,get:function(){return y.useStatsigUser}}),n(i(5138),t),__STATSIG__=Object.assign(Object.assign({},null!=__STATSIG__?__STATSIG__:{}),{StatsigContext:s.default,StatsigProvider:a.StatsigProvider,useClientAsyncInit:o.useClientAsyncInit,useClientBootstrapInit:l.useClientBootstrapInit,useDynamicConfig:u.default,useExperiment:c.default,useFeatureGate:d.default,useGateValue:h.default,useLayer:p.default,useParameterStore:g.default,useStatsigClient:f.useStatsigClient,useStatsigInternalClientFactoryAsync:v.useStatsigInternalClientFactoryAsync,useStatsigInternalClientFactoryBootstrap:_.useStatsigInternalClientFactoryBootstrap,useStatsigUser:y.useStatsigUser})},46217:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClientAsyncInit=void 0;let r=i(5138),n=i(1589);t.useClientAsyncInit=function(e,t,i=null){return(0,n.useStatsigInternalClientFactoryAsync)(e=>new r.StatsigClient(e.sdkKey,e.initialUser,e.statsigOptions),{sdkKey:e,initialUser:t,statsigOptions:i})}},24579:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClientBootstrapInit=void 0;let r=i(5138),n=i(57147);t.useClientBootstrapInit=function(e,t,i,s=null){return(0,n.useStatsigInternalClientFactoryBootstrap)(e=>new r.StatsigClient(e.sdkKey,e.initialUser,e.statsigOptions),{sdkKey:e,initialUser:t,initialValues:i,statsigOptions:s})}},86397:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=i(96540),n=i(36978),s=i(85255),a=i(79713);t.default=function(e,t){let{client:i,renderVersion:o}=(0,r.useContext)(a.default);return(0,r.useMemo)(()=>(0,s.isNoopClient)(i)?(n.Log.warn(`useDynamicConfig hook failed to find a valid StatsigClient for dynamic config '${e}'.`),s.NoopEvaluationsClient.getDynamicConfig(e,t)):i.getDynamicConfig(e,t),[e,i,o,...t?Object.values(t):[]])}},86427:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=i(96540),n=i(36978),s=i(85255),a=i(79713);t.default=function(e,t){let{client:i,renderVersion:o}=(0,r.useContext)(a.default);return(0,r.useMemo)(()=>(0,s.isNoopClient)(i)?(n.Log.warn(`useExperiment hook failed to find a valid Statsig client for experiment '${e}'.`),s.NoopEvaluationsClient.getExperiment(e,t)):i.getExperiment(e,t),[e,i,o,...t?Object.values(t):[]])}},1531:(e,t,i)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});let r=i(96540),n=i(36978),s=i(85255),a=i(79713);t.default=function(e,t){let{client:i,renderVersion:o}=(0,r.useContext)(a.default);return(0,r.useMemo)(()=>(0,s.isNoopClient)(i)?(n.Log.warn(`useFeatureGate hook failed to find a valid StatsigClient for gate '${e}'.`),s.NoopEvaluationsClient.getFeatureGate(e,t)):i.getFeatureGate(e,t),[e,i,o,...t?Object.values(t):[]])}},93594:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=i(96540),n=i(36978),s=i(85255),a=i(79713);t.default=function(e,t){let{client:i,renderVersion:o}=(0,r.useContext)(a.default);return(0,r.useMemo)(()=>(0,s.isNoopClient)(i)?(n.Log.warn(`useGateValue hook failed to find a valid StatsigClient for gate '${e}'.`),s.NoopEvaluationsClient.checkGate(e,t)):i.checkGate(e,t),[e,i,o,...t?Object.values(t):[]])}},33983:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=i(96540),n=i(36978),s=i(85255),a=i(79713);t.default=function(e,t){let{client:i,renderVersion:o}=(0,r.useContext)(a.default);return(0,r.useMemo)(()=>(0,s.isNoopClient)(i)?(n.Log.warn(`useLayer hook failed to find a valid Statsig client for layer '${e}'.`),s.NoopEvaluationsClient.getLayer(e,t)):i.getLayer(e,t),[e,i,o,...t?Object.values(t):[]])}},74732:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=i(96540),n=i(36978),s=i(85255),a=i(79713);t.default=function(e,t){let{client:i,renderVersion:o}=(0,r.useContext)(a.default);return(0,r.useMemo)(()=>(0,s.isNoopClient)(i)?(n.Log.warn(`useParameterStore hook failed to find a valid StatsigClient for parameter store '${e}'.`),s.NoopEvaluationsClient.getParameterStore(e,t)):i.getParameterStore(e,t),[e,i,o,...t?Object.values(t):[]])}},56050:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigClient=void 0;let r=i(96540),n=i(36978),s=i(85255),a=i(79713);t.useStatsigClient=function(){let{client:e,renderVersion:t}=(0,r.useContext)(a.default),i=(0,r.useMemo)(()=>(0,s.isNoopClient)(e)?(n.Log.warn("Attempting to retrieve a StatsigClient but none was set."),s.NoopEvaluationsClient):e,[e,t]),o=[i,t],l=(0,r.useCallback)((e,t)=>i.checkGate(e,t),o),u=(0,r.useCallback)((e,t)=>i.getFeatureGate(e,t),o),c=(0,r.useCallback)((e,t)=>i.getDynamicConfig(e,t),o),d=(0,r.useCallback)((e,t)=>i.getExperiment(e,t),o),h=(0,r.useCallback)((e,t)=>i.getLayer(e,t),o),p=(0,r.useCallback)((e,t,r)=>"string"==typeof e?i.logEvent(e,t,r):i.logEvent(e),o);return(0,r.useMemo)(()=>({client:i,checkGate:l,getFeatureGate:u,getDynamicConfig:c,getExperiment:d,getLayer:h,logEvent:p}),[i,l,u,c,d,h,p])}},1589:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigInternalClientFactoryAsync=void 0;let r=i(96540),n=i(36978);t.useStatsigInternalClientFactoryAsync=function(e,t){let[i,s]=(0,r.useState)(!0),a=(0,r.useRef)((0,n._getInstance)(t.sdkKey));return{client:(0,r.useMemo)(()=>{if(a.current)return a.current;let i=e(t);return a.current=i,i.initializeAsync().catch(n.Log.error).finally(()=>s(!1)),i},[]),isLoading:i}}},57147:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigInternalClientFactoryBootstrap=void 0;let r=i(96540),n=i(36978);t.useStatsigInternalClientFactoryBootstrap=function(e,t){let i=(0,r.useRef)((0,n._getInstance)(t.sdkKey));return(0,r.useMemo)(()=>{if(i.current)return i.current;let r=e(t);return i.current=r,r.dataAdapter.setData(t.initialValues),r.initializeSync(),r},[])}},96526:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigUser=void 0;let r=i(96540),n=i(79713),s=i(56050);t.useStatsigUser=function(){let{client:e}=(0,s.useStatsigClient)(),{renderVersion:t}=(0,r.useContext)(n.default),i=[e,t],a=(0,r.useMemo)(()=>e.getContext().user,i);return{user:a,updateUserSync:(0,r.useCallback)(t=>{"function"==typeof t&&(t=t(a)),e.updateUserSync(t)},i),updateUserAsync:(0,r.useCallback)(t=>("function"==typeof t&&(t=t(a)),e.updateUserAsync(t)),i)}}},18987:(e,t,i)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)e[r]=i[r]}return e}i.d(t,{A:()=>n});var n=function e(t,i){function n(e,n,s){if("undefined"!=typeof document){"number"==typeof(s=r({},i,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decode
1URIComponent).replace(/[()]/g,escape);var a="";for(var o in s)s[o]&&(a+="; "+o,!0!==s[o]&&(a+="="+s[o].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+a}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],r={},n=0;n<i.length;n++){var s=i[n].split("="),a=s.slice(1).join("=");try{var o=decodeURIComponent(s[0]);if(r[o]=t.read(a,o),e===o)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){n(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(18424),t(88440))),_N_E=e.O()}]);
2//# sourceMappingURL=_app-b07ee565a53ae70d.js.map

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.