PageSourceSearch

https://www.curiousjr.com/gcms-fe/_next/static/chunks/5820-9185f40c09864688.js

js curiousjr.com collected 2026-10-01 13:10:32 UTC 29,803 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5820],{78274:function(e,t,o){o.d(t,{ZP:function(){return i}});let i={"--primary-color":"#5a4bda","--primary-color-50":"#f1efff","--primary-color-100":"#d2ccff","--primary-color-200":"#b2a9ff","--primary-color-300":"#9387ff","--primary-color-400":"#7363fc","--primary-color-600":"#4437b8","--primary-color-700":"#312596","--primary-color-800":"#211774","--primary-color-900":"#140d52","--secondary-color":"#e31b4d","--secondary-color-50":"#fce8ed","--secondary-color-100":"#f18da6","--secondary-color-200":"#ef7694","--secondary-color-300":"#ec5f83","--secondary-color-400":"#e94971","--secondary-color-600":"#cd1846","--secondary-color-700":"#b6163e","--secondary-color-800":"#a01336","--secondary-color-900":"#5b0b1f","--premium-color-50":"#F3F6FF","--premium-color-100":"#DAE2F9","--premium-color-200":"#9AAEEB","--premium-color-300":"#6682D6","--premium-color-400":"#3B60D1","--premium-color-500":"#143CB6","--premium-color-600":"#1E40A8","--premium-color-700":"#1D3378","--premium-color-800":"#0C1944","--premium-color-900":"#13192C","--grey-color":"#b5bbc5","--grey-color-6":"#f8f8f8","--grey-color-10":"#eaecef","--grey-color-50":"#e4e7ea","--grey-color-100":"#d9dce1","--grey-color-200":"#cdd1d8","--grey-color-300":"#cdd1d8","--grey-color-400":"#b5bbc5","--grey-color-600":"#7b7f86","--grey-color-700":"#5E6166","--grey-color-800":"#414347","--success-color":"#1b7938","--success-color-10":"#dff1e4","--success-color-100":"#adcfb7","--success-color-200":"#88b998","--success-color-300":"#64a478","--success-color-400":"#3f8e58","--success-color-600":"#17662f","--success-color-700":"#125226","--success-color-800":"#0e3f1d","--success-color-900":"#0a2c14","--error-color":"#bf2734","--error-color-10":"#fee7e9","--error-color-100":"#e8b1b6","--error-color-200":"#de8f95","--error-color-300":"#d36c75","--error-color-400":"#c94a54","--error-color-600":"#a0212c","--error-color-700":"#821b23","--error-color-800":"#63141b","--error-color-900":"#450e13","--warning-color":"#eaaa2e","--warning-color-10":"#fff6e5","--warning-color-100":"#f7e0b4","--warning-color-200":"#f4d392","--warning-color-300":"#f1c571","--warning-color-400":"#edb84f","--warning-color-600":"#c58f27","--warning-color-700":"#9f741f","--warning-color-800":"#7a5818","--warning-color-900":"#543d11","--link-color":"#037cbf","--link-color-10":"#f1f5fe","--link-color-100":"#ddebf8","--link-color-200":"#bcd8f1","--link-color-300":"#81b6e4","--link-color-400":"#2b91c9","--link-color-600":"#0368a0","--link-color-700":"#025482","--link-color-800":"#024063","--link-color-900":"#012d45","--static-color-black":"#1b2124","--static-color-white":"#ffffff","--static-color-grey-1":"#3d3d3d","--static-color-grey-2":"#757575","--static-color-deep-blue":"#140D52","--static-color-transparent":"transparent","--static-color-inherit":"inherit","--static-color-current":"currentColor","--indigo-color":"#6172F3","--indigo-color-25":"#F5F8FF","--indigo-color-50":"#EEF4FF","--indigo-color-100":"#E0EAFF","--indigo-color-200":"#C7D7FE","--indigo-color-300":"#A4BCFD","--indigo-color-400":"#8098F9","--indigo-color-600":"#444CE7","--indigo-color-700":"#3538CD","--indigo-color-800":"#2D31A6","--indigo-color-900":"#2D3282","--violet-color":"#7A5AF8","--violet-color-25":"#FAFAFF","--violet-color-50":"#F4F3FF","--violet-color-100":"#EBE9FE","--violet-color-200":"#D9D6FE","--violet-color-300":"#BDB4FE","--violet-color-400":"#9B8AFB","--violet-color-600":"#6938EF","--violet-color-700":"#5925DC","--violet-color-800":"#4A1FB8","--violet-color-900":"#3E1C96","--blue-color":"#2E90FA","--blue-color-25":"#F5FAFF","--blue-color-50":"#EFF8FF","--blue-color-100":"#D1E9FF","--blue-color-200":"#B2DDFF","--blue-color-300":"#84CAFF","--blue-color-400":"#53B1FD","--blue-color-600":"#1570EF","--blue-color-700":"#175CD3","--blue-color-800":"#1849A9","--blue-color-900":"#194185","--green-color":"#16B364","--green-color-25":"#F6FEF9","--green-color-50":"#EDFCF2","--green-color-100":"#D3F8DF","--green-color-200":"#AAF0C4","--green-color-300":"#73E2A3","--green-color-400":"#3CCB7F","--green-color-600":"#099250","--green-color-700":"#087443","--green-color-800":"#095C37","--green-color-900":"#084C2E","--yellow-color":"#EAAA08","--yellow-color-25":"#FEFDF0","--yellow-color-50":"#FEFBE8","--yellow-color-100":"#FEF7C3","--yellow-color-200":"#FEEE95","--yellow-color-300":"#FDE272","--yellow-color-400":"#FAC515","--yellow-color-600":"#CA8504","--yellow-color-700":"#A15C07","--yellow-color-800":"#854A0E","--yellow-color-900":"#542C0D","--orange-color":"#FB6514","--orange-color-25":"#FFFAF5","--orange-color-50":"#FFF6ED","--orange-color-100":"#FFEAD5","--orange-color-200":"#FDDCAB","--orange-color-300":"#FEB273","--orange-color-400":"#FD853A","--orange-color-600":"#EC4A0A","--orange-color-700":"#C4320A","--orange-color-800":"#9C2A10","--orange-color-900":"#7E2410","--red-color":"#F04438","--red-color-25":"#FFFBFA","--red-color-50":"#FEF3F2","--red-color-100":"#FEE4E2","--red-color-200":"#FECDCA","--red-color-300":"#FDA29B","--red-color-400":"#F97066","--red-color-600":"#D92D20","--red-color-700":"#B42318","--red-color-800":"#912018","--red-color-900":"#7A271A","--text-color-heading":"#1B2124","--text-color-body-1":"#3D3D3D","--text-color-body-2":"#757575","--text-color-disabled":"#A1A3A4","--stroke-color-dark":"#747474","--stroke-color-medium":"#B7B7B7","--stroke-color-light":"#D9DCE1","--stroke-color-extra-light":"#EFEFEF","--overlay-modal-bg":"rgba(0, 0, 0, 0.75)","--spacing-0":"0px","--spacing-1":"1px","--spacing-2":"2px","--spacing-3":"3px","--spacing-4":"4px","--spacing-6":"6px","--spacing-8":"8px","--spacing-10":"10px","--spacing-12":"12px","--spacing-14":"14px","--spacing-16":"16px","--spacing-18":"18px","--spacing-20":"20px","--spacing-24":"24px","--spacing-28":"28px","--spacing-32":"32px","--spacing-40":"40px","--spacing-48":"48px","--spacing-56":"56px","--spacing-64":"
164px","--spacing-80":"80px","--spacing-82":"82px","--spacing-96":"96px","--spacing-100":"100px","--spacing-120":"120px","--spacing-160":"160px","--spacing-auto":"auto","--font-10":"10px","--font-12":"12px","--font-14":"14px","--font-16":"16px","--font-18":"18px","--font-20":"20px","--font-24":"24px","--font-32":"32px","--font-40":"40px","--font-64":"64px","--font-80":"80px","--line-height-16":"16px","--line-height-18":"18px","--line-height-20":"20px","--line-height-22":"22px","--line-height-24":"24px","--line-height-26":"26px","--line-height-28":"28px","--line-height-30":"30px","--line-height-32":"32px","--line-height-36":"36px","--line-height-48":"48px","--line-height-50":"50px","--line-height-60":"60px","--line-height-80":"80px","--line-height-96":"96px","--line-height-100":"100px","--line-height-120":"120px","--line-height-none":"1","--border-radius-160":"160px","--shadow-light":"0px 1px 8px rgba(0,0,0,0.08)","--shadow-medium":"0px 8px 24px rgba(0,0,0,0.6)","--shadow-dark":"0px 12px 36px rgba(0,0,0,0.1)","--shadow-none":"0 0 #0000","--delay-800":"800","--font-family-reddit":"RedditSans"}},36282:function(e,t,o){o(74412);var i,r,a,n,s=o(95683),c=o(60807),l=o(80828),g=o(78597);let u="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",d="google.c.a.c_id";function p(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}(i=a||(a={}))[i.DATA_MESSAGE=1]="DATA_MESSAGE",i[i.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION",(r=n||(n={})).PUSH_RECEIVED="push-received",r.NOTIFICATION_CLICKED="notification-clicked";let h="fcm_token_details_db",f="fcm_token_object_Store";async function m(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(e=>e.name).includes(h))return null;let t=null;return(await (0,c.X3)(h,5,{upgrade:async(o,i,r,a)=>{var n;if(i<2||!o.objectStoreNames.contains(f))return;let s=a.objectStore(f),c=await s.index("fcmSenderId").get(e);if(await s.clear(),c){if(2===i){if(!c.auth||!c.p256dh||!c.endpoint)return;t={token:c.fcmToken,createTime:null!==(n=c.createTime)&&void 0!==n?n:Date.now(),subscriptionOptions:{auth:c.auth,p256dh:c.p256dh,endpoint:c.endpoint,swScope:c.swScope,vapidKey:"string"==typeof c.vapidKey?c.vapidKey:p(c.vapidKey)}}}else 3===i?t={token:c.fcmToken,createTime:c.createTime,subscriptionOptions:{auth:p(c.auth),p256dh:p(c.p256dh),endpoint:c.endpoint,swScope:c.swScope,vapidKey:p(c.vapidKey)}}:4===i&&(t={token:c.fcmToken,createTime:c.createTime,subscriptionOptions:{auth:p(c.auth),p256dh:p(c.p256dh),endpoint:c.endpoint,swScope:c.swScope,vapidKey:p(c.vapidKey)}})}}})).close(),await (0,c.Lj)(h),await (0,c.Lj)("fcm_vapid_details_db"),await (0,c.Lj)("undefined"),!function(e){if(!e||!e.subscriptionOptions)return!1;let{subscriptionOptions:t}=e;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof t.auth&&t.auth.length>0&&"string"==typeof t.p256dh&&t.p256dh.length>0&&"string"==typeof t.endpoint&&t.endpoint.length>0&&"string"==typeof t.swScope&&t.swScope.length>0&&"string"==typeof t.vapidKey&&t.vapidKey.length>0}(t)?null:t}let w="firebase-messaging-store",b=null;function y(){return b||(b=(0,c.X3)("firebase-messaging-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(w)}})),b}async function F(e){let t=function({appConfig:e}){return e.appId}(e),o=await y(),i=await o.transaction(w).objectStore(w).get(t);if(i)return i;{let t=await m(e.appConfig.senderId);if(t)return await v(e,t),t}}async function v(e,t){let o=function({appConfig:e}){return e.appId}(e),i=(await y()).transaction(w,"readwrite");return await i.objectStore(w).put(t,o),await i.done,t}let E=new l.LL("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invali
1d-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});async function C(e,t){let o;let i={method:"POST",headers:await A(e),body:JSON.stringify(S(t))};try{let t=await fetch(T(e.appConfig),i);o=await t.json()}catch(e){throw E.create("token-subscribe-failed",{errorInfo:null==e?void 0:e.toString()})}if(o.error){let e=o.error.message;throw E.create("token-subscribe-failed",{errorInfo:e})}if(!o.token)throw E.create("token-subscribe-no-token");return o.token}async function k(e,t){let o;let i={method:"PATCH",headers:await A(e),body:JSON.stringify(S(t.subscriptionOptions))};try{let r=await fetch(`${T(e.appConfig)}/${t.token}`,i);o=await r.json()}catch(e){throw E.create("token-update-failed",{errorInfo:null==e?void 0:e.toString()})}if(o.error){let e=o.error.message;throw E.create("token-update-failed",{errorInfo:e})}if(!o.token)throw E.create("token-update-no-token");return o.token}async function _(e,t){let o=await A(e);try{let i=await fetch(`${T(e.appConfig)}/${t}`,{method:"DELETE",headers:o}),r=await i.json();if(r.error){let e=r.error.message;throw E.create("token-unsubscribe-failed",{errorInfo:e})}}catch(e){throw E.create("token-unsubscribe-failed",{errorInfo:null==e?void 0:e.toString()})}}function T({projectId:e}){return`https://fcmregistrations.googleapis.com/v1/projects/${e}/registrations`}async function A({appConfig:e,installations:t}){let o=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${o}`})}function S({p256dh:e,auth:t,endpoint:o,vapidKey:i}){let r={web:{endpoint:o,auth:t,p256dh:e}};return i!==u&&(r.web.applicationPubKey=i),r}async function x(e){let t=await M(e.swRegistration,e.vapidKey),o={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:p(t.getKey("auth")),p256dh:p(t.getKey("p256dh"))},i=await F(e.firebaseDependencies);if(!i)return I(e.firebaseDependencies,o);if(function(e,t){let o=t.vapidKey===e.vapidKey,i=t.endpoint===e.endpoint,r=t.auth===e.auth,a=t.p256dh===e.p256dh;return o&&i&&r&&a}(i.subscriptionOptions,o))return Date.now()>=i.createTime+6048e5?D(e,{token:i.token,createTime:Date.now(),subscriptionOptions:o}):i.token;try{await _(e.firebaseDependencies,i.token)}catch(e){console.warn(e)}return I(e.firebaseDependencies,o)}async function D(e,t){try{let o=await k(e.firebaseDependencies,t),i=Object.assign(Object.assign({},t),{token:o,createTime:Date.now()});return await v(e.firebaseDependencies,i),o}catch(e){throw e}}async function I(e,t){let o={token:await C(e,t),createTime:Date.now(),subscriptionOptions:t};return await v(e,o),o.token}async function M(e,t){return await e.pushManager.getSubscription()||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let t="=".repeat((4-e.length%4)%4),o=atob((e+t).replace(/\-/g,"+").replace(/_/g,"/")),i=new Uint8Array(o.length);for(let e=0;e<o.length;++e)i[e]=o.charCodeAt(e);return i}(t)})}function P(e){let t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return function(e,t){if(!t.notification)return;e.notification={};let o=t.notification.title;o&&(e.notification.title=o);let i=t.notification.body;i&&(e.notification.body=i);let r=t.notification.image;r&&(e.notification.image=r);let a=t.notification.icon;a&&(e.notification.icon=a)}(t,e),e.data&&(t.data=e.data),function(e,t){var o,i,r,a,n;if(!t.fcmOptions&&!(null===(o=t.notification)||void 0===o?void 0:o.click_action))return;e.fcmOptions={};let s=null!==(r=null===(i=t.fcmOptions)||void 0===i?void 0:i.link)&&void 0!==r?r:null===(a=t.notification)||void 0===a?void 0:a.click_action;s&&(e.fcmOptions.link=s);let c=null===(n=t.fcmOptions)||void 0===n?void 0:n.analytics_label;c&&(e.fcmOptions.analyticsLabel=c)}(t,e),t}function K(e){return E.create("missing-app-config-values",{valueName:e})}!function(e,t){let o=[];for(let i=0;i<e.length;i++)o.push(e.charAt(i)),i<t.length&&o.push(t.charAt(i));o.join("")}("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class L{constructor(e,t,o){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroun
1dMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;let i=function(e){if(!e||!e.options)throw K("App Configuration Object");if(!e.name)throw K("App Name");let{options:t}=e;for(let e of["projectId","apiKey","appId","messagingSenderId"])if(!t[e])throw K(e);return{appName:e.name,projectId:t.projectId,apiKey:t.apiKey,appId:t.appId,senderId:t.messagingSenderId}}(e);this.firebaseDependencies={app:e,appConfig:i,installations:t,analyticsProvider:o}}_delete(){return Promise.resolve()}}async function N(e){try{e.swRegistration=await navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}),e.swRegistration.update().catch(()=>{})}catch(e){throw E.create("failed-service-worker-registration",{browserErrorMessage:null==e?void 0:e.message})}}async function O(e,t){if(t||e.swRegistration||await N(e),t||!e.swRegistration){if(!(t instanceof ServiceWorkerRegistration))throw E.create("invalid-sw-registration");e.swRegistration=t}}async function j(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=u)}async function B(e,t){if(!navigator)throw E.create("only-available-in-window");if("default"===Notification.permission&&await Notification.requestPermission(),"granted"!==Notification.permission)throw E.create("permission-blocked");return await j(e,null==t?void 0:t.vapidKey),await O(e,null==t?void 0:t.serviceWorkerRegistration),x(e)}async function R(e,t,o){let i=function(e){switch(e){case n.NOTIFICATION_CLICKED:return"notification_open";case n.PUSH_RECEIVED:return"notification_foreground";default:throw Error()}}(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(i,{message_id:o[d],message_name:o["google.c.a.c_l"],message_time:o["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)})}async function $(e,t){let o=t.data;if(!o.isFirebaseMessaging)return;e.onMessageHandler&&o.messageType===n.PUSH_RECEIVED&&("function"==typeof e.onMessageHandler?e.onMessageHandler(P(o)):e.onMessageHandler.next(P(o)));let i=o.data;"object"==typeof i&&i&&d in i&&"1"===i["google.c.a.e"]&&await R(e,o.messageType,i)}let H="@firebase/messaging",z="0.12.12";(0,g.Xd)(new s.wA("messaging",e=>{let t=new L(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",e=>$(t,e)),t},"PUBLIC")),(0,g.Xd)(new s.wA("messaging-internal",e=>{let t=e.getProvider("messaging").getImmediate();return{getToken:e=>B(t,e)}},"PRIVATE")),(0,g.KN)(H,z),(0,g.KN)(H,z,"esm2017")},61543:function(e,t,o){o.d(t,{xS:function(){return x},Pf:function(){return w},Dx:function(){return b},sN:function(){return h},KF:function(){return y},NA:function(){return F}});var i=o(78597),r=o(80828),a=o(95683),n=o(16309);o(74412);let s="@firebase/remote-config",c="0.4.9";class l{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}}let g="remote-config",u=new r.LL("remoteconfig","Remote Config",{"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"}),d=["1","true","t","yes","y","on"];class p{constructor(e,t=""){this._source=e,this._value=t}asString(){return this._value}asBoolean(){return"static"!==this._source&&d.indexOf(this._value.toLowerCase())>=0}asNumber(){if("static"===this._source)return 0;let e=Number(this._value);return isNaN(e)&&(e=0),e}getSource(){return this._source}}function h(e=(0,i.Mq)()){return e=(0,r.m9)(e),(0,i.qX)(e,g).getImmediate()}async function f(e){let t=(0,r.m9)(e),[o,i]=await Promise.all([t._storage.getLastSuccessfulFetchResponse(),t._storage.getActiveConfigEtag()]);return!!o&&!!o.config&&!!o.eTag&&o.eTag!==i&&(await Promise.all([t._storageCache.setActiveConfig(o.config),t._storage.setActiveConfigEtag(o.eTag)]),!0)}async function m(e){let t=(0,r.m9)(e),o=new l;setTimeout(async()=>{o.abort()},t.settings.fetchTimeoutMillis);try{await t._client.fetch({cacheMaxAgeMillis:t.settings.minimumFetchIntervalMillis,signal:o}),await t._storageCache.setLastFetchStatus("success")}catch(o){var i;let e=(i="fetch-throttle",o instanceof r.ZR&&-1!==o.code.indexOf(i))?"throttle":"failure";throw await t._storageCache.setLastFetchStatus(e),o}}function w(e,t){return F((0,r.m9)(e),t).asBoolean()}function b(e,t){return F((0,r.m9)(e),t).asNumber()}function y(e,t){return F((0,r.m9)(e),t).asString()}function F(e,t){let o=(0,r.m9)(e);o._isInitializationComplete||o._logger.debug(`A value was requested for key "${t}" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.`);let i=o._storageCache.getActiveConfig();return i&&void 0!==i[t]?new p("remote",i[t]):o.defaultConfig&&void 0!==o.defaultConfig[t]?new p("default",String(o.defaultConfig[t])):(o._logger.debug(`Returning static value for key "${t}". Define a default or remote value if this is unintentional.`),new p("static"))}class v{constructor(e,t,o,i){this.client=e,this.storage=t,this.storageCache=o,this.logger=i}
1isCachedDataFresh(e,t){if(!t)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;let o=Date.now()-t,i=o<=e;return this.logger.debug(`Config fetch cache check. Cache age millis: ${o}. Cache max age millis (minimumFetchIntervalMillis setting): ${e}. Is cache hit: ${i}.`),i}async fetch(e){let[t,o]=await Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()]);if(o&&this.isCachedDataFresh(e.cacheMaxAgeMillis,t))return o;e.eTag=o&&o.eTag;let i=await this.client.fetch(e),r=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===i.status&&r.push(this.storage.setLastSuccessfulFetchResponse(i)),await Promise.all(r),i}}class E{constructor(e,t,o,i,r,a){this.firebaseInstallations=e,this.sdkVersion=t,this.namespace=o,this.projectId=i,this.apiKey=r,this.appId=a}async fetch(e){let t,o,i;let[r,a]=await Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()]),n=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",s=fetch(`${n}/v1/projects/${this.projectId}/namespaces/${this.namespace}:fetch?key=${this.apiKey}`,{method:"POST",headers:{"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":e.eTag||"*"},body:JSON.stringify({sdk_version:this.sdkVersion,app_instance_id:r,app_instance_id_token:a,app_id:this.appId,language_code:function(e=navigator){return e.languages&&e.languages[0]||e.language}()})}),c=new Promise((t,o)=>{e.signal.addEventListener(()=>{let e=Error("The operation was aborted.");e.name="AbortError",o(e)})});try{await Promise.race([s,c]),t=await s}catch(t){let e="fetch-client-network";throw(null==t?void 0:t.name)==="AbortError"&&(e="fetch-timeout"),u.create(e,{originalErrorMessage:null==t?void 0:t.message})}let l=t.status,g=t.headers.get("ETag")||void 0;if(200===t.status){let e;try{e=await t.json()}catch(e){throw u.create("fetch-client-parse",{originalErrorMessage:null==e?void 0:e.message})}o=e.entries,i=e.state}if("INSTANCE_STATE_UNSPECIFIED"===i?l=500:"NO_CHANGE"===i?l=304:("NO_TEMPLATE"===i||"EMPTY_CONFIG"===i)&&(o={}),304!==l&&200!==l)throw u.create("fetch-status",{httpStatus:l});return{status:l,eTag:g,config:o}}}class C{constructor(e,t){this.client=e,this.storage=t}async fetch(e){let t=await this.storage.getThrottleMetadata()||{backoffCount:0,throttleEndTimeMillis:Date.now()};return this.attemptFetch(e,t)}async attemptFetch(e,{throttleEndTimeMillis:t,backoffCount:o}){var i;await (i=e.signal,new Promise((e,o)=>{let r=setTimeout(e,Math.max(t-Date.now(),0));i.addEventListener(()=>{clearTimeout(r),o(u.create("fetch-throttle",{throttleEndTimeMillis:t}))})}));try{let t=await this.client.fetch(e);return await this.storage.deleteThrottleMetadata(),t}catch(i){if(!function(e){if(!(e instanceof r.ZR)||!e.customData)return!1;let t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(i))throw i;let t={throttleEndTimeMillis:Date.now()+(0,r.$s)(o),backoffCount:o+1};return await this.storage.setThrottleMetadata(t),this.attemptFetch(e,t)}}}class k{constructor(e,t,o,i,r){this.app=e,this._client=t,this._storageCache=o,this._storage=i,this._logger=r,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}}function _(e,t){let o=e.target.error||void 0;return u.create(t,{originalErrorMessage:o&&(null==o?void 0:o.message)})}let T="app_namespace_store";class A{constructor(e,t,o,i=new Promise((e,t)=>{try{let o=indexedDB.open("firebase_remote_config",1);o.onerror=e=>{t(_(e,"storage-open"))},o.onsuccess=t=>{e(t.target.result)},o.onupgradeneeded=e=>{let t=e.target.result;0===e.oldVersion&&t.createObjectStore(T,{keyPath:"compositeKey"})}}catch(e){t(u.create("storage-open",{originalErrorMessage:null==e?void 0:e.message}))}})){this.appId=e,this.appName=t,this.namespace=o,this.openDbPromise=i}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(e){return this.set("last_fetch_status",e)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(e){return this.set("last_successful_fetch_timestamp_millis",e)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(e){return this.set("last_successful_fetch_response",e)}getActiveConfig(){return this.get("active_config")}setActiveConfig(e){return this.set("active_config",e)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(e){return this.set("active_config_etag",e)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(e){return this.set("throttle_metadata",e)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}async get(e){let t=await this.openDbPromise;return new Promise((o,i)=>{let r=t.transaction([T],"readonly").objectStore(T),a=this.createCompositeKey(e);try{let e=r.get(a);e.onerror=e=>{i(_(e,"storage-get"))},e.onsuccess=e=>{let t=e.target.result;t?o(t.value):o(void 0)}}catch(e){i(u.create("storage-get",{originalErrorMessage:null==e?void 0:e.message}))}})}async set(e,t){let o=await this.openDbPromise;return new Promise((i,r)=>{let a=o.transaction([T],"readwrite").objectStore(T),n=this.createCompositeKey(e);try{let e=a.put({compositeKey:n,value:t});e.onerror=e=>{r(_(e,"storage-set"))},e.onsuccess=()=>{i()}}catch(e){r(u.create("storage-set",{originalErrorMessage:null==e?void 0:e.message}))}})}async delete(e){let t=await this.openDbPromise;return new Promise((o,i)=>{let r=t.transaction([T],"readwrite").objectStore(T),a=this.createCompositeKey(e);try{let e=r.delete(a);e.onerror=e=>{i(_(e,"storage-delete"))},e.onsuccess=()=>{o()}}catch(e){i(u.create("storage-delete",{originalErrorMessage:null==e?void 0:e.message}))}})}createCompositeKey(e){return[this.appId,this.appName,this.namespace,e].join()}}class S{constructor(e){this.storage=e}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}async loadFromStorage(){let e=this.storage.getLastFetchStatus(),t=this.storage.getLastSuccessfulFetchTimestampMillis(),o=this.storage.getActiveConfig(),i=await e;i&&(this.lastFetchStatus=i);let r=await t;r&&(this.lastSuccessfulFetchTimestampMillis=r);let a=await o;a&&(this.activeConfig=a)}setLastFetchStatus(e){return this.lastFetchStatus=e,this.storage.setLastFetchStatus(e)}setLastSuccessfulFetchTimestampMillis(e){return this.lastSuccessfulFetchTimestampMillis=e,this.storage.setLastSuccessfulFetchTimestampMillis(e)}setActiveConfig(e){return this.activeConfig=e,this.storage.setActiveConfig(e)}}async function x(e){return e=(0,r.m9)(e),await m(e),f(e)}(0,i.Xd)(new a.wA(g,function(e,{instanceIdentifier:t}){let o=e.getProvider("app").getImmediate(),a=e.getProvider("installations-internal").getImmediate();if("undefined"==typeof window)throw u.create("registration-window");if(!(0,r.hl)())throw u.create("indexed-db-unavailable");let{projectId:c,apiKey:l,appId:g}=o.options;if(!c)throw u.create("registration-project-id");if(!l)throw u.create("registration-api-key");if(!g)throw u.create("registration-app-id");t=t||"firebase";let d=new A(g,o.name,t),p=new S(d),h=new n.Yd(s);h.logLevel=n.in.ERROR;let f=new k(o,new v(new C(new E(a,i.Jn,t,c,l,g),d),d,p,h),p,d,h);return function(e){let t=(0,r.m9)(e);t._initializePromise||(t._initializePromise=t._storageCache.loadFromStorage().then(()=>{t._isInitializationComplete=!0})),t._initializePromise}(f),f},"PUBLIC").setMultipleInstances(!0)),(0,i.KN)(s,c),(0,i.KN)(s,c,"esm2017")}}]);
2//# sourceMappingURL=5820-9185f40c09864688.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.