PageSourceSearch

https://xynergy.ai/_next/static/chunks/7014.812680fd6129cc73.js

js xynergy.ai collected 2026-10-05 16:02:30 UTC 1,966 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7014],{37014:(r,e,t)=>{t.d(e,{callFn:()=>s,callPublicFn:()=>i});var a=t(71931),n=t(76458),o=t(19548);async function s(r,e){if(!n.functions)throw Error("Firebase Functions 未初始化");if(!n.auth)throw Error("Firebase Auth 未初始化");if(!n.auth.currentUser)throw Error("用戶未登入,請先登入後再使用此功能");try{if(!await n.auth.currentUser.getIdToken(!0))throw Error("無法取得認證 token")}catch(e){let r=e instanceof Error?e:Error(String(e));throw o.Cp(r,{level:"error",extra:{message:"刷新 ID Token 失敗",operation:"callFn.getIdToken"},tags:{source:"firebase.callFn"}}),Error("認證失敗,請重新登入")}if(!n.app)throw Error("Firebase App 未初始化");if(n.functions&&"app"in n.functions&&n.auth&&"app"in n.auth){let r=n.functions.app,e=n.auth.app;if(r!==e)throw o.Cp(Error("Firebase App mismatch"),{level:"error",extra:{message:"Firebase App 實例不一致",functionsAppName:r?.name,authAppName:e?.name,appName:n.app?.name},tags:{source:"firebase.callFn"}}),Error("Firebase App 實例不一致,請重新初始化")}let t=(0,a.httpsCallable)(n.functions,r);try{return await t(e)}catch(i){let t=i?.code||"",s=String(i?.message||"");if("unauthenticated"===t||"permission-denied"===t||s.includes("unauth")||s.includes("401")||s.includes("Unauthorized"))try{if(!n.auth.currentUser)throw Error("用戶已登出,請重新登入");await n.auth.currentUser.getIdToken(!0),await new Promise(r=>setTimeout(r,100));let t=(0,a.httpsCallable)(n.functions,r);return await t(e)}catch(e){throw o.Cp(e instanceof Error?e:Error(String(e)),{level:"error",extra:{message:`重試失敗: ${r}`,operation:"callFn.retry",code:e?.code},tags:{source:"firebase.callFn"}}),Error(e?.message||"認證失敗,請重新登入後再試")}throw i}}async function i(r,e){if(!n.functions)throw Error("Firebase Functions 未初始化");return(0,a.httpsCallable)(n.functions,r)(e)}}}]);

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.