1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,162319,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(522016),n=e.i(618566),i=e.i(846932),o=e.i(88653);let s=r.forwardRef(function({title:e,titleId:t,...a},n){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9h16.5m-16.5 6.75h16.5"}))});var l=e.i(427217);let c=r.forwardRef(function({title:e,titleId:t,...a},n){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}),d=r.forwardRef(function({title:e,titleId:t,...a},n){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))});function h(){let[e,a]=(0,r.useState)(!1),[n,o]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{o(!0);let e=localStorage.getItem("theme");("dark"===e||!e&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&(a(!0),document.documentElement.classList.add("dark"))},[]),n)?(0,t.jsx)(i.motion.button,{onClick:()=>{let t=!e;a(t),document.documentElement.classList.toggle("dark",t),localStorage.setItem("theme",t?"dark":"light")},className:"relative w-9 h-9 flex items-center justify-center rounded-lg border border-border text-muted hover:text-foreground hover:border-border-hover transition-colors duration-200",whileHover:{scale:1.05},whileTap:{scale:.95},"aria-label":e?"Switch to light mode":"Switch to dark mode",children:(0,t.jsx)(i.motion.div,{initial:!1,animate:{rotate:180*!!e,opacity:1},transition:{duration:.3},children:e?(0,t.jsx)(c,{className:"w-4 h-4"}):(0,t.jsx)(d,{className:"w-4 h-4"})})}):(0,t.jsx)("div",{className:"w-9 h-9"})}var u=e.i(908803);let f=i.motion.create(a.default);function p({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z"})})}function m({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 20",fill:"currentColor","aria-hidden":"true",children:[(0,t.jsx)("polygon",{points:"0,0 3.8,0 8.8,8.5 6.2,8.5"}),(0,t.jsx)("polygon",{points:"12.2,0 16,0 9.8,8.5 7.2,8.5"}),(0,t.jsx)("polygon",{points:"6.2,11.5 8.8,11.5 3.8,20 0,20"}),(0,t.jsx)("polygon",{points:"7.2,11.5 9.8,11.5 16,20 12.2,20"})]})}function g(){let[e,c]=(0,r.useState)(!1),d=(0,n.usePathname)(),g=(0,r.useCallback)((e,t)=>{if(!t.includes("#"))return;let r=t.split("#")[1];if(r&&(c(!1),"/"===d)){e.preventDefault();let a=document.getElementById(r);if(!a)return;let n=a.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:n,behavior:"smooth"}),window.history.replaceState(null,"",t);let i=()=>{let e=a.getBoundingClientRect().top+window.scrollY-80;Math.abs(e-window.scrollY)>2&&window.scrollTo({top:e})};window.setTimeout(i,700),window.setTimeout(i,1200);return}},[d]);return(0,t.jsxs)("nav",{className:"fixed w-full z-50 bg-background/80 backdrop-blur-xl border-b border-border transition-colors duration-300",children:[(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 h-16 flex items-center justify-between relative",children:[(0,t.jsx)(i.motion.div,{initial:{opacity:0,x:-20}
1,animate:{opacity:1,x:0},transition:{duration:.6,ease:[.25,.46,.45,.94]},className:"z-10",children:(0,t.jsxs)(a.default,{href:"/",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"flex items-center text-xl font-bold tracking-tight text-foreground hover:opacity-80 transition-opacity duration-200",children:["C3",(0,t.jsx)(m,{className:"w-4 h-6 text-accent inline-block ml-0.5"})]})}),(0,t.jsx)("div",{className:"hidden md:flex items-center gap-7 absolute left-1/2 -translate-x-1/2",children:u.NAV_LINKS.map((e,r)=>(0,t.jsx)(i.motion.div,{initial:{opacity:0,y:-15},animate:{opacity:1,y:0},transition:{delay:.1+.08*r,duration:.5,ease:[.25,.46,.45,.94]},children:e.href.includes("#")?(0,t.jsxs)("a",{href:e.href,onClick:t=>g(t,e.href),className:"text-sm text-muted hover:text-foreground transition-colors duration-200 relative group cursor-pointer",children:[e.label,(0,t.jsx)("span",{className:"absolute -bottom-1 left-0 w-0 h-px bg-accent group-hover:w-full transition-all duration-300"})]}):(0,t.jsxs)(a.default,{href:e.href,className:"text-sm text-muted hover:text-foreground transition-colors duration-200 relative group",children:[e.label,(0,t.jsx)("span",{className:"absolute -bottom-1 left-0 w-0 h-px bg-accent group-hover:w-full transition-all duration-300"})]})},e.label))}),(0,t.jsxs)(i.motion.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.6,ease:[.25,.46,.45,.94]},className:"hidden md:flex items-center gap-2 z-10",children:[(0,t.jsxs)("a",{href:u.SITE.github,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-sm text-muted hover:text-foreground border border-border hover:border-border-hover rounded-lg transition-all duration-200","aria-label":"Star C3X on GitHub",children:[(0,t.jsx)(p,{className:"w-4 h-4"}),(0,t.jsx)("span",{className:"text-xs font-medium",children:"Star"})]}),(0,t.jsx)(h,{}),(0,t.jsx)(f,{href:"/docs/quickstart",whileHover:{scale:1.03},whileTap:{scale:.97},className:"text-sm font-medium px-5 py-2 rounded-lg bg-accent text-accent-fg hover:bg-accent-hover transition-colors duration-200 inline-block shadow-sm shadow-accent/20",children:"Get Started"})]}),(0,t.jsxs)("div",{className:"md:hidden flex items-center gap-1.5",children:[(0,t.jsx)("a",{href:u.SITE.github,target:"_blank",rel:"noopener noreferrer",className:"p-2 text-muted hover:text-foreground transition-colors","aria-label":"GitHub",children:(0,t.jsx)(p,{className:"w-5 h-5"})}),(0,t.jsx)(h,{}),(0,t.jsx)("button",{className:"p-2 text-muted hover:text-foreground transition-colors",onClick:()=>c(!e),"aria-label":"Toggle navigation menu","aria-expanded":e,"aria-controls":"mobile-nav",children:e?(0,t.jsx)(l.XMarkIcon,{className:"h-5 w-5"}):(0,t.jsx)(s,{className:"h-5 w-5"})})]})]}),(0,t.jsx)(o.AnimatePresence,{children:e&&(0,t.jsx)(i.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.3,ease:[.25,.46,.45,.94]},id:"mobile-nav",className:"md:hidden border-t border-border bg-background/95 backdrop-blur-xl",children:(0,t.jsxs)("div",{className:"px-6 py-4 flex flex-col gap-3",children:[u.NAV_LINKS.map((e,r)=>(0,t.jsx)(i.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:.05*r},children:e.href.includes("#")?(0,t.jsx)("a",{href:e.href,onClick:t=>g(t,e.href),className:"text-sm text-muted hover:text-foreground transition-colors block py-1 cursor-pointer",children:e.label}):(0,t.jsx)(a.default,{href:e.href,onClick:()=>c(!1),className:"text-sm text-muted hover:text-foreground transition-colors block py-1",children:e.label})},e.label)),(0,t.jsx)("div",{className:"pt-2 border-t border-border",children:(0,t.jsx)(a.default,{href:"/docs/quickstart",onClick:()=>c(!1),className:"text-sm font-medium px-5 py-2.5 rounded-lg bg-accent text-accent-fg hover:bg-accent-hover transition-colors text-center block",children:"Get Started"})})]})})})]})}e.s(["default",()=>g],162319)},729065,e=>{"use strict";var t=e.i(618566),r=e.i(271645);function a(){let e=(0,t.usePathname)();return(0,r.useEffect)(()=>{window.location.hash||window.scrollTo(0,0)},[e]),null}e.s(["default",()=>a])},928977,e=>{"use strict";let t,r,a,n,i,o,s;var l,c,d=e.i(271645),h=e.i(247167);let u=function(e){let t=[],r=0;for(let a=0;a<e.length;a++){let n=e.charCodeAt(a);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:((64512&n)==55296&&a+1<e.length&&(64512&e.charCodeAt(a+1))==56320?(n=65536+((1023&n)<<10)+(1023&e.charCodeAt(++a)),t[r++]=n>>18|240,t[r++]=n>>12&63|128):t[r++]=n>>12|224,t[r++]=n>>6&63|128),t[r++]=63&n|128)}return t},f=function(e){let t=[],r=0,a=0;for(;r<e.length;){let n=e[r++];if(n<128)t[a++]=String.fromCharCode(n);else if(n>191&&n<224){let i=e[r++];t[a++]=String.fromCharCode((31&n)<<6|63&i)}else if(n>239&&n<365){let i=((7&n)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;t[a++]=String.fromCharCode(55296+(i>>
110)),t[a++]=String.fromCharCode(56320+(1023&i))}else{let i=e[r++],o=e[r++];t[a++]=String.fromCharCode((15&n)<<12|(63&i)<<6|63&o)}}return t.join("")},p={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,a=[];for(let t=0;t<e.length;t+=3){let n=e[t],i=t+1<e.length,o=i?e[t+1]:0,s=t+2<e.length,l=s?e[t+2]:0,c=n>>2,d=(3&n)<<4|o>>4,h=(15&o)<<2|l>>6,u=63&l;!s&&(u=64,i||(h=64)),a.push(r[c],r[d],r[h],r[u])}return a.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(u(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):f(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let r=t?this.charToByteMapWebSafe_:this.charToByteMap_,a=[];for(let t=0;t<e.length;){let n=r[e.charAt(t++)],i=t<e.length?r[e.charAt(t)]:0,o=++t<e.length?r[e.charAt(t)]:64,s=++t<e.length?r[e.charAt(t)]:64;if(++t,null==n||null==i||null==o||null==s)throw new m;let l=n<<2|i>>4;if(a.push(l),64!==o){let e=i<<4&240|o>>2;if(a.push(e),64!==s){let e=o<<6&192|s;a.push(e)}}}return a},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class m extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let g=function(e){let t=u(e);return p.encodeByteArray(t,!0)},b=function(e){return g(e).replace(/\./g,"")},w=function(e){try{return p.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},v=()=>(()=>{try{return("u">typeof self?self:"u">typeof window?window:e.g).__FIREBASE_DEFAULTS__||(()=>{if(void 0===h.default||void 0===h.default.env)return;let e=h.default.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)})()||(()=>{let e;if("u"<typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let t=e&&w(e[1]);return t&&JSON.parse(t)})()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}})()?.config;class y{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,r))}}}function I(){return"u">typeof WorkerGlobalScope&&"u">typeof self&&self instanceof WorkerGlobalScope}function C(){let e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function _(){try{return"object"==typeof indexedDB}catch(e){return!1}}function S(){return new Promise((e,t)=>{try{let r=!0,a="validate-browser-context-for-indexeddb-analytics-module",n=self.indexedDB.open(a);n.onsuccess=()=>{n.result.close(),r||self.indexedDB.deleteDatabase(a),e(!0)},n.onupgradeneeded=()=>{r=!1},n.onerror=()=>{t(n.error?.message||"")}}catch(e){t(e)}})}function E(){return!("u"<typeof navigator)&&!!navigator.cookieEnabled}class x extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,x.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,D.prototype.create)}}class D{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){var r,a;let n=t[0]||{},i=`${this.service}/${e}`,o=this.errors[e],s=o?(r=o,a=n,r.replace(A,(e,t)=>{let r=a[t];return null!=r?String(r):`<${t}?>`})):"Error",l=`${this.serviceName}: ${s} (${i}).`;return new x(i,l,n)}}let A=/\{\$([^}]+)}/g;function T(e,t){if(e===t)return!0;let r=Object.keys(e),a=Object.keys(t);for(let n of r){if(!a.includes(n))return!1;let r=e[n],i=t[n];if(k(r)&&k(i)){if(!T(r,i))return!1}else if(r!==i)return!1}for(let e of a)if(!r.includes(e))return!1;return!0}function k(e){return null!==e&&"object"==typeof e}function N(e,t=1e3,r=2){let a=t*Math.pow(r,e),n=Math.round(.5*a*(Math.random()-.5)*2);return Math.min(144e5,a+n)}function j(e){return e&&e._delegate?e._delegate:e}class O{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}let L="[DEFAULT]";class M{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new y;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){let t=this.normalizeInstanceIdentifier(e?.identifier),r=e?.optional??!1;if(this.isInitialized(t)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:t})}catch(e){if(r)return null;throw e}if(r)return null;throw Error(`Service ${this.name} is not available`)}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:L})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch(e){}}}}clearInstance(e=L){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=L){return this.instances.has(e)}getOptions(e=L){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let a=this.getOrInitializeService({instanceIdentifier:r,options:t});for(let[e,t]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(e)&&t.resolve(a);return a}onInit(e,t){let r=this.normalizeInstanceIdentifier(t),a=this.onInitCallbacks.get(r)??new Set;a.add(e),this.onInitCallbacks.set(r,a);let n=this.instances.get(r);return n&&e(n,r),()=>{a.delete(e)}}invokeOnInitCallbacks(e,t){let r=this.onInitCallbacks.get(t);if(r)for(let a of r)try{a(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){var r;let a=this.instances.get(e);if(!a&&this.component&&(a=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e)===L?void 0:r,options:t}),this.instances.set(e,a),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(a,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,a)}catch{}return a||null}normalizeInstanceIdentifier(e=L){return this.component?this.component.multipleInstances?e:L:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class B{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new M(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}let $=[];(l=c||(c={}))[l.DEBUG=0]="DEBUG",l[l.VERBOSE=1]="VERBOSE",l[l.INFO=2]="INFO",l[l.WARN=3]="WARN",l[l.ERROR=4]="ERROR",l[l.SILENT=5]="SILENT";let R={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},P=c.INFO,F={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},z=(e,t,...r)=>{if(t<e.logLevel)return;let a=new Date().toISOString(),n=F[t];if(n)console[n](`[${a}] ${e.name}:`,...r);
1else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class H{constructor(e){this.name=e,this._logLevel=P,this._logHandler=z,this._userLogHandler=null,$.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in c))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?R[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,c.DEBUG,...e),this._logHandler(this,c.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,c.VERBOSE,...e),this._logHandler(this,c.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,c.INFO,...e),this._logHandler(this,c.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,c.WARN,...e),this._logHandler(this,c.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,c.ERROR,...e),this._logHandler(this,c.ERROR,...e)}}let V=new WeakMap,U=new WeakMap,W=new WeakMap,q=new WeakMap,G=new WeakMap,K={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return U.get(e);if("objectStoreNames"===t)return e.objectStoreNames||W.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return J(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function J(e){if(e instanceof IDBRequest){let t;return(t=new Promise((t,r)=>{let a=()=>{e.removeEventListener("success",n),e.removeEventListener("error",i)},n=()=>{t(J(e.result)),a()},i=()=>{r(e.error),a()};e.addEventListener("success",n),e.addEventListener("error",i)})).then(t=>{t instanceof IDBCursor&&V.set(t,e)}).catch(()=>{}),G.set(t,e),t}if(q.has(e))return q.get(e);let a=function(e){if("function"==typeof e)return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(r||(r=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(Y(this),t),J(V.get(this))}:function(...t){return J(e.apply(Y(this),t))}:function(t,...r){let a=e.call(Y(this),t,...r);return W.set(a,t.sort?t.sort():[t]),J(a)};return e instanceof IDBTransaction&&function(e){if(U.has(e))return;let t=new Promise((t,r)=>{let a=()=>{e.removeEventListener("complete",n),e.removeEventListener("error",i),e.removeEventListener("abort",i)},n=()=>{t(),a()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),a()};e.addEventListener("complete",n),e.addEventListener("error",i),e.addEventListener("abort",i)});U.set(e,t)}(e),(t||(t=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(t=>e instanceof t)?new Proxy(e,K):e}(e);return a!==e&&(q.set(e,a),G.set(a,e)),a}let Y=e=>G.get(e);function X(e,t,{blocked:r,upgrade:a,blocking:n,terminated:i}={}){let o=indexedDB.open(e,t),s=J(o);return a&&o.addEventListener("upgradeneeded",e=>{a(J(o.result),e.oldVersion,e.newVersion,J(o.transaction),e)}),r&&o.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),s.then(e=>{i&&e.addEventListener("close",()=>i()),n&&e.addEventListener("versionchange",e=>n(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}let Z=["get","getKey","getAll","getAllKeys","count"],Q=["put","add","delete","clear"],ee=new Map;function et(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(ee.get(t))return ee.get(t);let r=t.replace(/FromIndex$/,""),a=t!==r,n=Q.includes(r);if(!(r in(a?IDBIndex:IDBObjectStore).prototype)||!(n||Z.includes(r)))return;let i=async function(e,...t){let i=this.transaction(e,n?"readwrite":"readonly"),o=i.store;return a&&(o=o.index(t.shift())),(await Promise.all([o[r](...t),n&&i.done]))[0]};return ee.set(t,i),i}K={...s=K,get:(e,t,r)=>et(e,t)||s.get(e,t,r),has:(e,t)=>!!et(e,t)||s.has(e,t)};class er{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{let t;if(t=e.getComponent(),t?.type!=="VERSION")return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let ea="@firebase/app",en="0.14.11",ei=new H("@firebase/app"),eo="[DEFAULT]",es={[ea]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/data-connect":"fire-data-connect","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/ai":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},el=new Map,ec=new Map,ed=new Map;function eh(e,t){try{e.container.addComponent(t)}catch(r){ei.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function eu(e,t){e.container.addOrOverwriteComponent(t)}function ef(e){let t=e.name;if(ed.has(t))return ei.debug(`There were multiple attempts to register component ${t}.`),!1;
1for(let r of(ed.set(t,e),el.values()))eh(r,e);for(let t of ec.values())eh(t,e);return!0}function ep(e,t){let r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(t)}function em(e,t,r=eo){ep(e,t).clearInstance(r)}function eg(e){return void 0!==e.options}function eb(e){return!eg(e)&&("authIdToken"in e||"appCheckToken"in e||"releaseOnDeref"in e||"automaticDataCollectionEnabled"in e)}function ew(e){return null!=e&&void 0!==e.settings}function ev(){ed.clear()}let ey=new D("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
1d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class eI{constructor(e,t,r){this._isDeleted=!1,this._options={...e},this._config={...t},this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new O("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw ey.create("app-deleted",{appName:this._name})}}function eC(e,t){let r=w(e.split(".")[1]);null===r?console.error(`FirebaseServerApp ${t} is invalid: second part could not be parsed.`):void 0===JSON.parse(r).exp?console.error(`FirebaseServerApp ${t} is invalid: expiration claim could not be parsed`):1e3*JSON.parse(r).exp-new Date().getTime()<=0&&console.error(`FirebaseServerApp ${t} is invalid: the token has expired.`)}class e_ extends eI{constructor(e,t,r,a){const n=void 0===t.automaticDataCollectionEnabled||t.automaticDataCollectionEnabled,i={name:r,automaticDataCollectionEnabled:n};void 0!==e.apiKey?super(e,i,a):super(e.options,i,a),this._serverConfig={automaticDataCollectionEnabled:n,...t},this._serverConfig.authIdToken&&eC(this._serverConfig.authIdToken,"authIdToken"),this._serverConfig.appCheckToken&&eC(this._serverConfig.appCheckToken,"appCheckToken"),this._finalizationRegistry=null,"u">typeof FinalizationRegistry&&(this._finalizationRegistry=new FinalizationRegistry(()=>{this.automaticCleanup()})),this._refCount=0,this.incRefCount(this._serverConfig.releaseOnDeref),this._serverConfig.releaseOnDeref=void 0,t.releaseOnDeref=void 0,eT(ea,en,"serverapp")}toJSON(){}get refCount(){return this._refCount}incRefCount(e){this.isDeleted||(this._refCount++,void 0!==e&&null!==this._finalizationRegistry&&this._finalizationRegistry.register(e,this))}decRefCount(){return this.isDeleted?0:--this._refCount}automaticCleanup(){eA(this)}get settings(){return this.checkDestroyed(),this._serverConfig}checkDestroyed(){if(this.isDeleted)throw ey.create("server-app-deleted")}}function eS(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});let a={name:eo,automaticDataCollectionEnabled:!0,...t},n=a.name;if("string"!=typeof n||!n)throw ey.create("bad-app-name",{appName:String(n)});if(r||(r=v()),!r)throw ey.create("no-options");let i=el.get(n);if(i)if(T(r,i.options)&&T(a,i.config))return i;else throw ey.create("duplicate-app",{appName:n});let o=new B(n);for(let e of ed.values())o.addComponent(e);let s=new eI(r,a,o);return el.set(n,s),s}function eE(e,t={}){let r;if(("u">typeof window||I())&&!I())throw ey.create("invalid-server-app-environment");let a=t||{};if(e&&(eg(e)?r=e.options:eb(e)?a=e:r=e),void 0===a.automaticDataCollectionEnabled&&(a.automaticDataCollectionEnabled=!0),r||(r=v()),!r)throw ey.create("no-options");let n={...a,...r};if(void 0!==n.releaseOnDeref&&delete n.releaseOnDeref,void 0!==a.releaseOnDeref&&"u"<typeof FinalizationRegistry)throw ey.create("finalization-registry-not-supported",{});let i=""+[...JSON.stringify(n)].reduce((e,t)=>Math.imul(31,e)+t.charCodeAt(0)|0,0),o=ec.get(i);if(o)return o.incRefCount(a.releaseOnDeref),o;let s=new B(i);for(let e of ed.values())s.addComponent(e);let l=new e_(r,a,i,s);return ec.set(i,l),l}function ex(e=eo){let t=el.get(e);if(!t&&e===eo&&v())return eS();if(!t)throw ey.create("no-app",{appName:e});return t}function eD(){return Array.from(el.values())}async function eA(e){let t=!1,r=e.name;el.has(r)?(t=!0,el.delete(r)):ec.has(r)&&0>=e.decRefCount()&&(ec.delete(r),t=!0),t&&(await Promise.all(e.container.getProviders().map(e=>e.delete())),e.isDeleted=!0)}function eT(e,t,r){let a=es[e]??e;r&&(a+=`-${r}`);let n=a.match(/\s|\//),i=t.match(/\s|\//);if(n||i){let e=[`Unable to register library "${a}" with version "${t}":`];n&&e.push(`library name "${a}" contains illegal characters (whitespace or "/")`),n&&i&&e.push("and"),i&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),ei.warn(e.join(" "));return}ef(new O(`${a}-version`,()=>({library:a,version:t}),"VERSION"))}function ek(e,t){if(null!==e&&"function"!=typeof e)throw ey.create("invalid-log-argument");for(let r of $){let a=null;t&&t.level&&(a=R[t.level]),null===e?r.userLogHandler=null:r.userLogHandler=(t,r,...n)=>{let i=n.map(e=>{if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}}).filter(e=>e).join(" ");r>=(a??t.logLevel)&&e({level:c[r].toLowerCase(),message:i,args:n,type:t.name})}}}function eN(e){$.forEach(t=>{t.setLogLevel(e)}
1)}let ej="firebase-heartbeat-store",eO=null;function eL(){return eO||(eO=X("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(ej)}catch(e){console.warn(e)}}}).catch(e=>{throw ey.create("idb-open",{originalErrorMessage:e.message})})),eO}async function eM(e){try{let t=(await eL()).transaction(ej),r=await t.objectStore(ej).get(e$(e));return await t.done,r}catch(e){if(e instanceof x)ei.warn(e.message);else{let t=ey.create("idb-get",{originalErrorMessage:e?.message});ei.warn(t.message)}}}async function eB(e,t){try{let r=(await eL()).transaction(ej,"readwrite"),a=r.objectStore(ej);await a.put(t,e$(e)),await r.done}catch(e){if(e instanceof x)ei.warn(e.message);else{let t=ey.create("idb-set",{originalErrorMessage:e?.message});ei.warn(t.message)}}}function e$(e){return`${e.name}!${e.options.appId}`}class eR{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new eF(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){try{let e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=eP();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===t||this._heartbeatsCache.heartbeats.some(e=>e.date===t))return;if(this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats.length>30){let e=function(e){if(0===e.length)return -1;let t=0,r=e[0].date;for(let a=1;a<e.length;a++)e[a].date<r&&(r=e[a].date,t=a);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){ei.warn(e)}}async getHeartbeatsHeader(){try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||0===this._heartbeatsCache.heartbeats.length)return"";let e=eP(),{heartbeatsToSend:t,unsentEntries:r}=function(e,t=1024){let r=[],a=e.slice();for(let n of e){let e=r.find(e=>e.agent===n.agent);if(e){if(e.dates.push(n.date),ez(r)>t){e.dates.pop();break}}else if(r.push({agent:n.agent,dates:[n.date]}),ez(r)>t){r.pop();break}a=a.slice(1)}return{heartbeatsToSend:r,unsentEntries:a}}(this._heartbeatsCache.heartbeats),a=b(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),a}catch(e){return ei.warn(e),""}}}function eP(){return new Date().toISOString().substring(0,10)}class eF{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!_()&&S().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let e=await eM(this.app);return e?.heartbeats?e:{heartbeats:[]}}}async overwrite(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return eB(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return eB(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:[...t.heartbeats,...e.heartbeats]})}}}function ez(e){return b(JSON.stringify({version:2,heartbeats:e})).length}ef(new O("platform-logger",e=>new er(e),"PRIVATE")),ef(new O("heartbeat",e=>new eR(e),"PRIVATE")),eT(ea,en,""),eT(ea,en,"esm2020"),eT("fire-js",""),e.s(["SDK_VERSION",()=>"12.12.0","_DEFAULT_ENTRY_NAME",()=>eo,"_addComponent",()=>eh,"_addOrOverwriteComponent",()=>eu,"_apps",()=>el,"_clearComponents",()=>ev,"_components",()=>ed,"_getProvider",()=>ep,"_isFirebaseApp",()=>eg,"_isFirebaseServerApp",()=>ew,"_isFirebaseServerAppSettings",()=>eb,"_registerComponent",()=>ef,"_removeServiceInstance",()=>em,"_serverApps",()=>ec,"deleteApp",()=>eA,"getApp",()=>ex,"getApps",()=>eD,"initializeApp",()=>eS,"initializeServerApp",()=>eE,"onLog",()=>ek,"registerVersion",()=>eT,"setLogLevel",()=>eN],92953),eT("firebase","12.12.1","app"),e.i(92953);let eH="@firebase/installations",eV="0.6.21",eU=`w:${eV}`,eW="FIS_v2",eq=new D("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function eG(e){return e instanceof x&&e.code.includes("request-failed")}function eK({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}
1function eJ(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}async function eY(e,t){let r=(await t.json()).error;return eq.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function eX({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function eZ(e){let t=await e();return t.status>=500&&t.status<600?e():t}async function eQ({appConfig:e,heartbeatServiceProvider:t},{fid:r}){let a=eK(e),n=eX(e),i=t.getImmediate({optional:!0});if(i){let e=await i.getHeartbeatsHeader();e&&n.append("x-firebase-client",e)}let o={method:"POST",headers:n,body:JSON.stringify({fid:r,authVersion:eW,appId:e.appId,sdkVersion:eU})},s=await eZ(()=>fetch(a,o));if(s.ok){let e=await s.json();return{fid:e.fid||r,registrationStatus:2,refreshToken:e.refreshToken,authToken:eJ(e.authToken)}}throw await eY("Create Installation",s)}function e0(e){return new Promise(t=>{setTimeout(t,e)})}let e1=/^[cdef][\w-]{21}$/;function e2(e){return`${e.appName}!${e.appId}`}let e5=new Map;function e3(e,t){var r,a;let n,i=e2(e);e6(i,t),r=i,a=t,(n=(!e4&&"BroadcastChannel"in self&&((e4=new BroadcastChannel("[Firebase] FID Change")).onmessage=e=>{e6(e.data.key,e.data.fid)}),e4))&&n.postMessage({key:r,fid:a}),0===e5.size&&e4&&(e4.close(),e4=null)}function e6(e,t){let r=e5.get(e);if(r)for(let e of r)e(t)}let e4=null,e8="firebase-installations-store",e7=null;function e9(){return e7||(e7=X("firebase-installations-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(e8)}})),e7}async function te(e,t){let r=e2(e),a=(await e9()).transaction(e8,"readwrite"),n=a.objectStore(e8),i=await n.get(r);return await n.put(t,r),await a.done,i&&i.fid===t.fid||e3(e,t.fid),t}async function tt(e){let t=e2(e),r=(await e9()).transaction(e8,"readwrite");await r.objectStore(e8).delete(t),await r.done}async function tr(e,t){let r=e2(e),a=(await e9()).transaction(e8,"readwrite"),n=a.objectStore(e8),i=await n.get(r),o=t(i);return void 0===o?await n.delete(r):await n.put(o,r),await a.done,o&&(!i||i.fid!==o.fid)&&e3(e,o.fid),o}async function ta(e){let t,r=await tr(e.appConfig,r=>{let a=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(eq.create("app-offline"))};let r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},a=tn(e,r);return{installationEntry:r,registrationPromise:a}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:ti(e)}:{installationEntry:t}}(e,ts(r||{fid:function(){try{var e;let t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;let r=(e=t,btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").substr(0,22));return e1.test(r)?r:""}catch{return""}}(),registrationStatus:0}));return t=a.registrationPromise,a.installationEntry});return""===r.fid?{installationEntry:await t}:{installationEntry:r,registrationPromise:t}}async function tn(e,t){try{let r=await eQ(e,t);return te(e.appConfig,r)}catch(r){throw eG(r)&&409===r.customData.serverCode?await tt(e.appConfig):await te(e.appConfig,{fid:t.fid,registrationStatus:0}),r}}async function ti(e){let t=await to(e.appConfig);for(;1===t.registrationStatus;)await e0(100),t=await to(e.appConfig);if(0===t.registrationStatus){let{installationEntry:t,registrationPromise:r}=await ta(e);return r||t}return t}function to(e){return tr(e,e=>{if(!e)throw eq.create("installation-not-found");return ts(e)})}function ts(e){var t;return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e}async function tl({appConfig:e,heartbeatServiceProvider:t},r){let a=function(e,{fid:t}){return`${eK(e)}/${t}/authTokens:generate`}(e,r),n=function(e,{refreshToken:t}){var r;let a=eX(e);return a.append("Authorization",(r=t,`${eW} ${r}`)),a}(e,r),i=t.getImmediate({optional:!0});if(i){let e=await i.getHeartbeatsHeader();e&&n.append("x-firebase-client",e)}let o={method:"POST",headers:n,body:JSON.stringify({installation:{sdkVersion:eU,appId:e.appId}})},s=await eZ(()=>fetch(a,o));if(s.ok)return eJ(await s.json());throw await eY("Generate Auth Token",s)}async function tc(e,t=!1){let r,a=await tr(e.appConfig,a=>{var n,i,o;let s;if(!tf(a))throw eq.create("not-registered");let l=a.authToken;if(!t&&2===(n=l).requestStatus&&(i=n,!((s=Date.now())<i.creationTime)&&!(i.creationTime+i.expiresIn<s+36e5)))return a;
1if(1===l.requestStatus)return r=td(e,t),a;{let t;if(!navigator.onLine)throw eq.create("app-offline");let n=(o=a,t={requestStatus:1,requestTime:Date.now()},{...o,authToken:t});return r=tu(e,n),n}});return r?await r:a.authToken}async function td(e,t){let r=await th(e.appConfig);for(;1===r.authToken.requestStatus;)await e0(100),r=await th(e.appConfig);let a=r.authToken;return 0===a.requestStatus?tc(e,t):a}function th(e){return tr(e,e=>{var t;if(!tf(e))throw eq.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4<Date.now()?{...e,authToken:{requestStatus:0}}:e})}async function tu(e,t){try{let r=await tl(e,t),a={...t,authToken:r};return await te(e.appConfig,a),r}catch(r){if(eG(r)&&(401===r.customData.serverCode||404===r.customData.serverCode))await tt(e.appConfig);else{let r={...t,authToken:{requestStatus:0}};await te(e.appConfig,r)}throw r}}function tf(e){return void 0!==e&&2===e.registrationStatus}async function tp(e){let{installationEntry:t,registrationPromise:r}=await ta(e);return r?r.catch(console.error):tc(e).catch(console.error),t.fid}async function tm(e,t=!1){return await tg(e),(await tc(e,t)).token}async function tg(e){let{registrationPromise:t}=await ta(e);t&&await t}function tb(e){return eq.create("missing-app-config-values",{valueName:e})}let tw="installations";ef(new O(tw,e=>{let t=e.getProvider("app").getImmediate(),r=function(e){if(!e||!e.options)throw tb("App Configuration");if(!e.name)throw tb("App Name");for(let t of["projectId","apiKey","appId"])if(!e.options[t])throw tb(t);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),a=ep(t,"heartbeat");return{app:t,appConfig:r,heartbeatServiceProvider:a,_delete:()=>Promise.resolve()}},"PUBLIC")),ef(new O("installations-internal",e=>{let t=ep(e.getProvider("app").getImmediate(),tw).getImmediate();return{getId:()=>tp(t),getToken:e=>tm(t,e)}},"PRIVATE")),eT(eH,eV),eT(eH,eV,"esm2020");let tv="analytics",ty="https://www.googletagmanager.com/gtag/js",tI=new H("@firebase/analytics"),tC=new D("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function t_(e){if(!e.startsWith(ty)){let t=tC.create("invalid-gtag-resource",{gtagURL:e});return tI.warn(t.message),""}return e}function tS(e){return Promise.all(e.map(e=>e.catch(e=>e)))}async function tE(e,t,r,a,n,i){let o=a[n];try{if(o)await t[o];else{let e=(await tS(r)).find(e=>e.measurementId===n);e&&await t[e.appId]}}catch(e){tI.error(e)}e("config",n,i)}async function tx(e,t,r,a,n){try{let i=[];if(n&&n.send_to){let e=n.send_to;Array.isArray(e)||(e=[e]);let a=await tS(r);for(let r of e){let e=a.find(e=>e.measurementId===r),n=e&&t[e.appId];if(n)i.push(n);else{i=[];break}}}0===i.length&&(i=Object.values(t)),await Promise.all(i),e("event",a,n||{})}catch(e){tI.error(e)}}let tD=new class{constructor(e={},t=1e3){this.throttleMetadata=e,this.intervalMillis=t}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,t){this.throttleMetadata[e]=t}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}};async function tA(e){let{appId:t,apiKey:r}=e,a={method:"GET",headers:new Headers({Accept:"application/json","x-goog-api-key":r})},n="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",t),i=await fetch(n,a);if(200!==i.status&&304!==i.status){let e="";try{let t=await i.json();t.error?.message&&(e=t.error.message)}catch(e){}throw tC.create("config-fetch-failed",{httpStatus:i.status,responseMessage:e})}return i.json()}async function tT(e,t=tD,r){let{appId:a,apiKey:n,measurementId:i}=e.options;if(!a)throw tC.create("no-app-id");
1if(!n){if(i)return{measurementId:i,appId:a};throw tC.create("no-api-key")}let o=t.getThrottleMetadata(a)||{backoffCount:0,throttleEndTimeMillis:Date.now()},s=new tN;return setTimeout(async()=>{s.abort()},void 0!==r?r:6e4),tk({appId:a,apiKey:n,measurementId:i},o,s,t)}async function tk(e,{throttleEndTimeMillis:t,backoffCount:r},a,n=tD){let{appId:i,measurementId:o}=e;try{var s,l;await (s=a,l=t,new Promise((e,t)=>{let r=setTimeout(e,Math.max(l-Date.now(),0));s.addEventListener(()=>{clearTimeout(r),t(tC.create("fetch-throttle",{throttleEndTimeMillis:l}))})}))}catch(e){if(o)return tI.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${o} provided in the "measurementId" field in the local Firebase config. [${e?.message}]`),{appId:i,measurementId:o};throw e}try{let t=await tA(e);return n.deleteThrottleMetadata(i),t}catch(l){if(!function(e){if(!(e instanceof x)||!e.customData)return!1;let t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(l)){if(n.deleteThrottleMetadata(i),o)return tI.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${o} provided in the "measurementId" field in the local Firebase config. [${l?.message}]`),{appId:i,measurementId:o};throw l}let t=503===Number(l?.customData?.httpStatus)?N(r,n.intervalMillis,30):N(r,n.intervalMillis),s={throttleEndTimeMillis:Date.now()+t,backoffCount:r+1};return n.setThrottleMetadata(i,s),tI.debug(`Calling attemptFetch again in ${t} millis`),tk(e,s,a,n)}}class tN{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}}async function tj(e,t,r,a,n){if(n&&n.global)return void e("event",r,a);{let n=await t;e("event",r,{...a,send_to:n})}}async function tO(e,t,r,a){if(a&&a.global){let t={};for(let e of Object.keys(r))t[`user_properties.${e}`]=r[e];return e("set",t),Promise.resolve()}e("config",await t,{update:!0,user_properties:r})}async function tL(){if(!_())return tI.warn(tC.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{await S()}catch(e){return tI.warn(tC.create("indexeddb-unavailable",{errorInfo:e?.toString()}).message),!1}return!0}async function tM(e,t,r,i,o,s,l){var c,d;let h,u,f,p,m=tT(e);m.then(t=>{r[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&tI.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${t.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(e=>tI.error(e)),t.push(m);let g=tL().then(e=>e?i.getId():void 0),[b,w]=await Promise.all([m,g]);!function(e){for(let t of Object.values(window.document.getElementsByTagName("script")))if(t.src&&t.src.includes(ty)&&t.src.includes(e))return t;return null}(s)&&(c=b.measurementId,d={createScriptURL:t_},window.trustedTypes&&(h=window.trustedTypes.createPolicy("firebase-js-sdk-policy",d)),u=h,f=document.createElement("script"),p=`${ty}?l=${s}&id=${c}`,f.src=u?u?.createScriptURL(p):p,f.async=!0,document.head.appendChild(f)),n&&(o("consent","default",n),n=void 0),o("js",new Date);let v=l?.config??{};return v.origin="firebase",v.update=!0,null!=w&&(v.firebase_id=w),o("config",b.measurementId,v),a&&(o("set",a),a=void 0),b.measurementId}class tB{constructor(e){this.app=e}_delete(){return delete t$[this.app.options.appId],Promise.resolve()}}let t$={},tR=[],tP={},tF="dataLayer",tz=!1;async function tH(){if(C()||!E()||!_())return!1;try{return await S()}catch(e){return!1}}let tV="@firebase/analytics",tU="0.10.21";ef(new O(tv,(e,{options:t})=>(function(e,t,r){let a=[];if(C()&&a.push("This is a browser extension environment."),E()||a.push("Cookies are not available."),a.length>0){let e=a.map((e,t)=>`(${t+1}) ${e}`).join(" "),t=tC.create("invalid-analytics-context",{errorInfo:e});tI.warn(t.message)}let n=e.options.appId;if(!n)throw tC.create("no-app-id");if(!e.options.apiKey)if(e.options.measurementId)tI.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw tC.create("no-api-key");if(null!=t$[n])throw tC.create("already-exists",{id:n});if(!tz){var s,l;let e,t;e=[],Array.isArray(window[tF])?e=window[tF]:window[tF]=e;let{wrappedGtag:r,gtagCore:a}=(s="gtag",t=function(){window[tF].push(arguments)},window[s]&&"function"==typeof window[s]&&(t=window[s]),window[s]=(l=t,async function(e,...t){try{if("event"===e){let[e,r]=t;await tx(l,t$,tR,e,r)}else if("config"===e){let[e,r]=t;await tE(l,t$,tR,tP,e,r)}else if("consent"===e){let[e,r]=t;l("consent",e,r)}else if("get"===e){let[e,r,a]=t;l("get",e,r,a)}else if("set"===e){let[e]=t;l("set",e)}else l(e,...t)}catch(e){tI.error(e)}}),{gtagCore:t,wrappedGtag:window[s]});o=r,i=a,tz=!0}return t$[n]=tM(e,tR,tP,t,i,tF,r),new tB(e)})(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),t),"PUBLIC")),ef(new O("analytics-internal",function(e){try{let t=e.getProvider(tv).getImmediate();return{logEvent:(e,r,a)=>{var n;return n=t,void(n=j(n),tj(o,t$[n.app.options.appId],e,r,a).catch(e=>tI.error(e)))},setUserProperties:(e,r)=>{var a;return a=t,void(a=j(a),tO(o,t$[a.app.options.appId],e,r).catch(e=>tI.error(e)))}}}catch(e){throw tC.create("interop-component-reg-failed",{reason:e})}},"PRIVATE")),eT(tV,tU),eT(tV,tU,"esm2020");let tW={apiKey:"AIzaSyAG_WYtdpKw8CuwaKRy0RUsf2TqedXcv1g",authDomain:"c3xdev-96de1.firebaseapp.com",projectId:"c3xdev-96de1",storageBucket:"c3xdev-96de1.firebasestorage.app",messagingSenderId:"528038815845",appId:"1:528038815845:web:2710d366e779a62c51be8c",measurementId:"G-VJ1YYD8EJT"},tq=null;function tG(){return(0,d.useEffect)(()=>{tq||(tq=tH().then(e=>e?function(e=ex()){let t=ep(e=j(e),tv);return t.isInitialized()?t.getImmediate():function(e,t={}){let r=ep(e,tv);if(r.isInitialized()){let e=r.getImmediate();if(T(t,r.getOptions()))return e;throw tC.create("already-initialized")}return r.initialize({options:t})}(e)}(eD().length?ex():eS(tW)):null))},[]),null}e.s(["default",()=>tG],928977)}]);
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.