PageSourceSearch

https://campio.web.app/chunk-523GZVTR.js

js campio.web.app collected 2026-10-03 12:19:08 UTC 9,678 bytes, 2 lines download raw bytes

1import{A,E as D,G as S,J as C,K as v,o as E,x as w,y as b,z as O}from"./chunk-JURUXNMY.js";import{j as f}from"./chunk-HT3IURLE.js";var B="type.googleapis.com/google.protobuf.Int64Value",X="type.googleapis.com/google.protobuf.UInt64Value";function $(e,t){let n={};for(let r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}function T(e){if(e==null)return null;if(e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&isFinite(e)||e===!0||e===!1||Object.prototype.toString.call(e)==="[object String]")return e;if(e instanceof Date)return e.toISOString();if(Array.isArray(e))return e.map(t=>T(t));if(typeof e=="function"||typeof e=="object")return $(e,t=>T(t));throw new Error("Data cannot be encoded in JSON: "+e)}function g(e){if(e==null)return e;if(e["@type"])switch(e["@type"]){case B:case X:{let t=Number(e.value);if(isNaN(t))throw new Error("Data cannot be decoded from JSON: "+e);return t}default:throw new Error("Data cannot be decoded from JSON: "+e)}return Array.isArray(e)?e.map(t=>g(t)):typeof e=="function"||typeof e=="object"?$(e,t=>g(t)):e}var x="functions";var R={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},p=class e extends E{constructor(t,n,r,o){super(`${x}/${t}`,n||"",o!=null?{url:o}:void 0),this.details=r,Object.setPrototypeOf(this,e.prototype)}};function Y(e){if(e>=200&&e<300)return"ok";switch(e){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}function y(e,t,n){let r=Y(e),o=r,i;try{let c=t&&t.error;if(c){let s=c.status;if(typeof s=="string"){if(!R[s])return new p("internal",`Unknown backend error status: ${s} [${e}]`,void 0,n);r=R[s],o=`Backend error status: ${s}`}let a=c.message;typeof a=="string"&&(o=a),i=c.details,i!==void 0&&(i=g(i))}}catch(c){}return r==="ok"?null:new p(r,`${o} [${e}]`,i,n)}var P=class{constructor(t,n,r,o){this.app=t,this.auth=null,this.messaging=null,this.appCheck=null,this.serverAppAppCheckToken=null,S(t)&&t.settings.appCheckToken&&(this.serverAppAppCheckToken=t.settings.appCheckToken),this.auth=n.getImmediate({optional:!0}),this.messaging=r.getImmediate({optional:!0}),this.auth||n.get().then(i=>this.auth=i,()=>{}),this.messaging||r.get().then(i=>this.messaging=i,()=>{}),this.appCheck||o?.get().then(i=>this.appCheck=i,()=>{})}getAuthToken(){return f(this,null,function*(){if(this.auth)try{return(yield this.auth.getToken())?.accessToken}catch(t){return}})}getMessagingToken(){return f(this,null,function*(){if(!(!this.messaging||!("Notification"in self)||Notification.permission!=="granted"))try{return yield this.messaging.getToken()}catch(t){return}})}getAppCheckToken(t){return f(this,null,function*(){if(this.serverAppAppCheckToken)return this.serverAppAppCheckToken;if(this.appCheck){let n=t?yield this.appCheck.getLimitedUseToken():yield this.appCheck.getToken();return n.error?null:n.token}return null})}getContext(t){return f(this,null,function*(){let n=yield this.getAuthToken(),r=yield this.getMessagingToken(),o=yield this.getAppCheckToken(t);return{authToken:n,messagingToken:r,appCheckToken:o}})}};var L="us-central1",z=/^data: (.*?)(?:\n|$)/;function K(e){let t=null;return{promise:new Promise((n,r)=>{t=setTimeout(()=>{r(new p("deadline-exceeded","deadline-exceeded"))},e)}),cancel:()=>{t&&clearTimeout(t)}}}var _=class{constructor(t,n,r,o,i=L,c=(...s)=>fetch(...s)){this.app=t,this.fetchImpl=c,this.emulatorOrigin=null,this.contextProvider=new P(t,n,r,o),this.cancelAllRequests=new Promise(s=>{this.deleteService=()=>Promise.resolve(s())});try{let s=new URL(i);this.customDomain=s.origin+(s.pathname==="/"?"":s.pathname),this.region=L}catch(s){this.customDomain=null,this.region=i}}_delete(){return this.deleteService()}_url(t){let n=this.app.options.projectId;return this.emulatorOrigin!==null?`${this.emulatorOrigin}/${n}/${this.region}/${t}`:this.customDomain!==null?`${this.customDomain}/${t}`:`https://${this.region}-${n}.cloudfunctions.net/${t}`}};
1function W(e,t,n){let r=b(t);e.emulatorOrigin=`http${r?"s":""}://${t}:${n}`,r&&O(e.emulatorOrigin+"/backends")}function Z(e,t,n){let r=o=>te(e,t,o,n||{});return r.stream=(o,i)=>ne(e,t,o,i),r}function Q(e,t,n){let r=o=>H(e,t,o,n||{});return r.stream=(o,i)=>J(e,t,o,i||{}),r}function M(e){return e.emulatorOrigin&&b(e.emulatorOrigin)?"include":void 0}function ee(e,t,n,r,o){return f(this,null,function*(){n["Content-Type"]="application/json";let i;try{i=yield r(e,{method:"POST",body:JSON.stringify(t),headers:n,credentials:M(o)})}catch(s){return{status:0,json:null}}let c=null;try{c=yield i.json()}catch(s){}return{status:i.status,json:c}})}function G(e,t){return f(this,null,function*(){let n={},r=yield e.contextProvider.getContext(t.limitedUseAppCheckTokens);return r.authToken&&(n.Authorization="Bearer "+r.authToken),r.messagingToken&&(n["Firebase-Instance-ID-Token"]=r.messagingToken),r.appCheckToken!==null&&(n["X-Firebase-AppCheck"]=r.appCheckToken),n})}function te(e,t,n,r){let o=e._url(t);return H(e,o,n,r)}function H(e,t,n,r){return f(this,null,function*(){n=T(n);let o={data:n},i=yield G(e,r),c=r.timeout||7e4,s=K(c),a=yield Promise.race([ee(t,o,i,e.fetchImpl,e),s.promise,e.cancelAllRequests]);if(s.cancel(),!a)throw new p("cancelled","Firebase Functions instance was deleted.");let m=y(a.status,a.json,t);if(m)throw m;if(!a.json)throw new p("internal","Response is not valid JSON object.",void 0,t);let l=a.json.data;if(typeof l>"u"&&(l=a.json.result),typeof l>"u")throw new p("internal","Response is missing data field.",void 0,t);return{data:g(l)}})}function ne(e,t,n,r){let o=e._url(t);return J(e,o,n,r||{})}function J(e,t,n,r){return f(this,null,function*(){n=T(n);let o={data:n},i=yield G(e,r);i["Content-Type"]="application/json",i.Accept="text/event-stream";let c;try{c=yield e.fetchImpl(t,{method:"POST",body:JSON.stringify(o),headers:i,signal:r?.signal,credentials:M(e)})}catch(d){if(d instanceof Error&&d.name==="AbortError"){let k=new p("cancelled","Request was cancelled.");return{data:Promise.reject(k),stream:{[Symbol.asyncIterator](){return{next(){return Promise.reject(k)}}}}}}let h=y(0,null,t);return{data:Promise.reject(h),stream:{[Symbol.asyncIterator](){return{next(){return Promise.reject(h)}}}}}}let s,a,m=new Promise((d,h)=>{s=d,a=h});r?.signal?.addEventListener("abort",()=>{let d=new p("cancelled","Request was cancelled.");a(d)});let l=c.body.getReader(),u=re(l,s,a,r?.signal,t);return{stream:{[Symbol.asyncIterator](){let d=u.getReader();return{next(){return f(this,null,function*(){let{value:k,done:V}=yield d.read();return{value:k,done:V}})},return(){return f(this,null,function*(){return yield d.cancel(),{done:!0,value:void 0}})}}}},data:m}})}function re(e,t,n,r,o){let i=(s,a)=>{let m=s.match(z);if(!m)return;let l=m[1];try{let u=JSON.parse(l);if("result"in u){t(g(u.result));return}if("message"in u){a.enqueue(g(u.message));return}if("error"in u){let d=y(0,u,o);a.error(d),n(d);return}}catch(u){if(u instanceof p){a.error(u),n(u);return}}},c=new TextDecoder;return new ReadableStream({start(s){let a="";return m();function m(){return f(this,null,function*(){if(r?.aborted){let l=new p("cancelled","Request was cancelled");return s.error(l),n(l),Promise.resolve()}try{let{value:l,done:u}=yield e.read();if(u){a.trim()&&i(a.trim(),s),s.close();return}if(r?.aborted){let h=new p("cancelled","Request was cancelled");s.error(h),n(h),yield e.cancel();return}a+=c.decode(l,{stream:!0});let d=a.split(`
2`);a=d.pop()||"";for(let h of d)h.trim()&&i(h.trim(),s);return m()}catch(l){let u=l instanceof p?l:y(0,null,o);s.error(u),n(u)}})}},cancel(){return e.cancel()}})}var U="@firebase/functions",F="0.14.0";var oe="auth-internal",ie="app-check-internal",se="messaging-internal";function ae(e){let t=(n,{instanceIdentifier:r})=>{let o=n.getProvider("app").getImmediate(),i=n.getProvider(oe),c=n.getProvider(se),s=n.getProvider(ie);return new _(o,i,c,s,r)};D(new A(x,t,"PUBLIC").setMultipleInstances(!0)),C(U,F,e),C(U,F,"esm2020")}function I(e,t,n){W(w(e),t,n)}function j(e,t,n){return Z(w(e),t,n)}function q(e,t,n){return Q(w(e),t,n)}ae();var ce="@firebase/functions-compat",ue="0.5.0";var N=class{constructor(t,n){this.app=t,this._delegate=n,this._region=this._delegate.regi
2on,this._customDomain=this._delegate.customDomain}httpsCallable(t,n){return j(this._delegate,t,n)}httpsCallableFromURL(t,n){return q(this._delegate,t,n)}useFunctionsEmulator(t){let n=t.match("[a-zA-Z]+://([a-zA-Z0-9.-]+)(?::([0-9]+))?");if(n==null)throw new E("functions","No origin provided to useFunctionsEmulator()");if(n[2]==null)throw new E("functions","Port missing in origin provided to useFunctionsEmulator()");return I(this._delegate,n[1],Number(n[2]))}useEmulator(t,n){return I(this._delegate,t,n)}};var le="us-central1",de=(e,{instanceIdentifier:t})=>{let n=e.getProvider("app-compat").getImmediate(),r=e.getProvider("functions").getImmediate({identifier:t??le});return new N(n,r)};function pe(){let e={Functions:N};v.INTERNAL.registerComponent(new A("functions-compat",de,"PUBLIC").setServiceProps(e).setMultipleInstances(!0))}pe();v.registerVersion(ce,ue);

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.