1import{t as e}from"./esm-Cxy1Xm3H.js?dpl=dpl_GcGqAmmt7QDBDUd3B6otoHaA1dc5";import{r as t}from"./dist-B1A570ut.js?dpl=dpl_GcGqAmmt7QDBDUd3B6otoHaA1dc5";import{t as n}from"./supabase-D0TWAx-f.js?dpl=dpl_GcGqAmmt7QDBDUd3B6otoHaA1dc5";var r=`https://api.climbingpartner.ai`,i=!1,a=null,o=null,s=[`unauthorized`,`invalid or expired token`,`jwt expired`,`token expired`,`session expired`],c=/(^|[\s:])401(\s|$|[.,;:!?])/i,l=e=>{if(!e)return!1;if(c.test(e))return!0;let t=e.toLowerCase();return s.some(e=>t.includes(e))},u=async()=>a||(a=(async()=>{try{let{data:e,error:r}=await n.auth.refreshSession();if(t(r)){let{data:e}=await n.auth.getSession(),t=e.session?.access_token;return t?(o?.(t),!0):!1}return r||!e.session?.access_token?!1:(o?.(e.session.access_token),!0)}catch{return!1}finally{a=null}})(),a),d=async()=>{if(!i){i=!0;try{await n.auth.signOut(),localStorage.removeItem(`supabase.auth.token`),sessionStorage.clear();let e=window.location.pathname;[`/login`,`/signup`,`/forgot-password`,`/reset-password`,`/`,`/terms`,`/privacy`].includes(e)||(window.location.href=`/login`)}finally{i=!1}}},f=new e(r),p=async(e,t)=>{try{return await e()}catch(n){if(!t.isAuthError(n?.message))throw n;if(await t.refresh())try{return await e()}catch(e){throw t.isAuthError(e?.message)&&await t.signout(),e}throw await t.signout(),n}},m=e=>p(e,{isAuthError:l,refresh:u,signout:d}),h=new class{constructor(e){this.client=e}setToken(e){return this.client.setToken(e)}async generateTrainingPlan(...e){return m(()=>this.client.generateTrainingPlan(...e))}async clarifyTrainingPlan(...e){return m(()=>this.client.clarifyTrainingPlan(...e))}async getFoundingAvailability(...e){return m(()=>this.client.getFoundingAvailability(...e))}async getTrainingPlans(...e){return m(()=>this.client.getTrainingPlans(...e))}async getTrainingPlan(...e){return m(()=>this.client.getTrainingPlan(...e))}async updateTrainingPlan(...e){return m(()=>this.client.updateTrainingPlan(...e))}async deleteTrainingPlan(...e){return m(()=>this.client.deleteTrainingPlan(...e))}async getTrainingPlanProgress(...e){return m(()=>this.client.getTrainingPlanProgress(...e))}async adjustTrainingPlan(...e){return m(()=>this.client.adjustTrainingPlan(...e))}async acceptTrainingPlan(...e){return m(()=>this.client.acceptTrainingPlan(...e))}async retryTrainingPlan(...e){return m(()=>this.client.retryTrainingPlan(...e))}async generateNextTrainingPlanBlock(...e){return m(()=>this.client.generateNextTrainingPlanBlock(...e))}async generatePlanDayBlocks(...e){return m(()=>this.client.generatePlanDayBlocks(...e))}async ensurePlanDaySession(...e){return m(()=>this.client.ensurePlanDaySession(...e))}async ensurePlanDaySessionFromEvent(...e){return m(()=>this.client.ensurePlanDaySessionFromEvent(...e))}async getCalendarEventSessionBlocks(...e){return m(()=>this.client.getCalendarEventSessionBlocks(...e))}async generateCalendarEventSessionBlocks(...e){return m(()=>this.client.generateCalendarEventSessionBlocks(...e))}async pauseTrainingPlan(...e){return m(()=>this.client.pauseTrainingPlan(...e))}async resumeTrainingPlan(...e){return m(()=>this.client.resumeTrainingPlan(...e))}async skipPlanSessions(...e){return m(()=>this.client.skipPlanSessions(...e))}async unskipPlanSessions(...e){return m(()=>this.client.unskipPlanSessions(...e))}async abandonTrainingPlan(...e){return m(()=>this.client.abandonTrainingPlan(...e))}async applyPlanToCalendar(...e){return m(()=>this.client.applyPlanToCalendar(...e))}async syncTrainingPlanToCalendar(...e){return m(()=>this.client.syncTrainingPlanToCalendar(...e))}async scheduleTrainingSession(...e){return m(()=>this.client.scheduleTrainingSession(...e))}async logTrainingSession(...e){return m(()=>this.client.logTrainingSession(...e))}async getTrainingSessions(...e){return m(()=>this.client.getTrainingSessions(...e))}async getTrainingSession(...e){return m(()=>this.client.getTrainingSession(...e))}async updateTrainingSession(...e){return m(()=>this.client.updateTrainingSession(...e))}async deleteTrainingSession(...e){return m(()=>this.client.deleteTrainingSession(...e))}async completeTrainingSession(...e){return m(()=>this.client.completeTrainingSession(...e))}
1async createClimbingSession(...e){return m(()=>this.client.createClimbingSession(...e))}async getClimbingSessions(...e){return m(()=>this.client.getClimbingSessions(...e))}async updateClimbingSession(...e){return m(()=>this.client.updateClimbingSession(...e))}async deleteClimbingSession(...e){return m(()=>this.client.deleteClimbingSession(...e))}async convertLoggedSession(...e){return m(()=>this.client.convertLoggedSession(...e))}async getExercises(...e){return m(()=>this.client.getExercises(...e))}async getTrainingProgress(...e){return m(()=>this.client.getTrainingProgress(...e))}async getTrainingAnalytics(...e){return m(()=>this.client.getTrainingAnalytics(...e))}async getTrainingLoad(...e){return m(()=>this.client.getTrainingLoad(...e))}async createProject(...e){return m(()=>this.client.createProject(...e))}async getProjects(...e){return m(()=>this.client.getProjects(...e))}async getProject(...e){return m(()=>this.client.getProject(...e))}async updateProject(...e){return m(()=>this.client.updateProject(...e))}async deleteProject(...e){return m(()=>this.client.deleteProject(...e))}async logProjectSession(...e){return m(()=>this.client.logProjectSession(...e))}async getProjectSessions(...e){return m(()=>this.client.getProjectSessions(...e))}async getAllProjectSessions(e){return m(()=>this.client.getAllProjectSessions(e))}async updateSession(...e){return m(()=>this.client.updateSession(...e))}async deleteSession(...e){return m(()=>this.client.deleteSession(...e))}async analyzeProject(...e){return m(()=>this.client.analyzeProject(...e))}async getProjectStatistics(...e){return m(()=>this.client.getProjectStatistics(...e))}async getAthleteLimiters(...e){return m(()=>this.client.getAthleteLimiters(...e))}async logWellbeingData(...e){return m(()=>this.client.logWellbeingData(...e))}async updateWellbeingLog(...e){return m(()=>this.client.updateWellbeingLog(...e))}async deleteWellbeingLog(...e){return m(()=>this.client.deleteWellbeingLog(...e))}async getWellbeingLogs(...e){return m(()=>this.client.getWellbeingLogs(...e))}async getWellbeingTrends(...e){return m(()=>this.client.getWellbeingTrends(...e))}async getWellbeingStatistics(...e){return m(()=>this.client.getWellbeingStatistics(...e))}async getWellbeingInsights(...e){return m(()=>this.client.getWellbeingInsights(...e))}async logMenstrualCycle(...e){return m(()=>this.client.logMenstrualCycle(...e))}async getMenstrualCycles(...e){return m(()=>this.client.getMenstrualCycles(...e))}async getCurrentCycle(...e){return m(()=>this.client.getCurrentCycle(...e))}async updateMenstrualCycle(...e){return m(()=>this.client.updateMenstrualCycle(...e))}async deleteMenstrualCycle(...e){return m(()=>this.client.deleteMenstrualCycle(...e))}async updateCyclePrivacySettings(...e){return m(()=>this.client.updateCyclePrivacySettings(...e))}async logPeriodDay(...e){return m(()=>this.client.logPeriodDay(...e))}async getPeriodLogs(...e){return m(()=>this.client.getPeriodLogs(...e))}async updatePeriodLog(...e){return m(()=>this.client.updatePeriodLog(...e))}async deletePeriodLog(...e){return m(()=>this.client.deletePeriodLog(...e))}async getDerivedCycles(...e){return m(()=>this.client.getDerivedCycles(...e))}async getCurrentCyclePhase(...e){return m(()=>this.client.getCurrentCyclePhase(...e))}async*generateTrainingPlanStream(...e){try{yield*this.client.generateTrainingPlanStream(...e)}catch(e){throw(e.message?.includes(`401`)||e.message?.toLowerCase().includes(`unauthorized`)||e.message?.toLowerCase().includes(`invalid or expired token`)||e.message?.toLowerCase().includes(`jwt expired`)||e.message?.toLowerCase().includes(`token expired`))&&await d(),e}}async*analyzeProjectStream(...e){try{yield*this.client.analyzeProjectStream(...e)}catch(e){throw(e.message?.includes(`401`)||e.message?.toLowerCase().includes(`unauthorized`)||e.message?.toLowerCase().includes(`invalid or expired token`)||e.message?.toLowerCase().includes(`jwt expired`)||e.message?.toLowerCase().includes(`token expired`))&&await d(),e}}async healthCheck(...e){return m(()=>this.client.healthCheck(...e))}get weather(){return this.client.weather}get crags(){return this.client.crags}async getNearbyWebcams(...e){return m(()=>this.client.getNearbyWebcams(...e))}async getUserProfile(...e){return m(()=>this.client.getUserProfile(...e))}async updateUserProfile(...e){return m(()=>this.client.updateUserProfile(...e))}async getUserStatistics(...e){return m(()=>this.client.getUserStatistics(...e))}async getUserAchievements(...e){return m(()=>this.client.getUserAchievements(...e))}async getUserActivity(...e){return m(()=>this.client.getUserActivity(...e))}async getUserPreferences(...e){return m(()=>this.client.getUserPreferences(...e))}async updateUserPreferences(...e){return m(()=>this.client.updateUserPreferences(...e))}async deleteAccount(...e){return m(()=>this.client.deleteAccount(...e))}async exportUserData(...e){return m(()=>this.client.exportUserData(...e))}async getChatThread(...e){return m(()=>this.client.getChatThread(...e))}async getChatActivity(...e){return m(()=>this.client.getChatActivity(...e))}async getChatMessagesByDate(...e){return m(()=>this.client.getChatMessagesByDate(...e))}async getChatUsage(...e){return m(()=>this.client.getChatUsage(...e))}async rateChatSession(...e){return m(()=>this.client.rateChatSession(...e))}async getAiPreferences(...e){return m(()=>this.client.getAiPreferences(...e))}async updateAiPreferences(...e){return m(()=>this.client.updateAiPreferences(...e))}
1async createJournalEntry(...e){return m(()=>this.client.createJournalEntry(...e))}async sendMessage(...e){return m(()=>this.client.sendMessage(...e))}async transcribeAudio(...e){return m(()=>this.client.transcribeAudio(...e))}async createCalendarEvent(...e){return m(()=>this.client.createCalendarEvent(...e))}async retryCalendarEventSync(...e){return m(()=>this.client.retryCalendarEventSync(...e))}async getCalendarEvents(...e){return m(()=>this.client.getCalendarEvents(...e))}async getUnifiedCalendar(...e){return m(()=>this.client.getUnifiedCalendar(...e))}async markEventAsLogged(...e){return m(()=>this.client.markEventAsLogged(...e))}async updateCalendarEvent(...e){return m(()=>this.client.updateCalendarEvent(...e))}async deleteCalendarEvent(...e){return m(()=>this.client.deleteCalendarEvent(...e))}async getGoogleCalendarAuthUrl(...e){return m(()=>this.client.getGoogleCalendarAuthUrl(...e))}async exchangeGoogleAuthCode(...e){return m(()=>this.client.exchangeGoogleAuthCode(...e))}async getGoogleCalendarStatus(...e){return m(()=>this.client.getGoogleCalendarStatus(...e))}async disconnectGoogleCalendar(...e){return m(()=>this.client.disconnectGoogleCalendar(...e))}async getLogbookEntries(...e){return m(()=>this.client.getLogbookEntries(...e))}async createLogbookEntry(...e){return m(()=>this.client.createLogbookEntry(...e))}async updateLogbookEntry(...e){return m(()=>this.client.updateLogbookEntry(...e))}async deleteLogbookEntry(...e){return m(()=>this.client.deleteLogbookEntry(...e))}async getLogbookStatistics(...e){return m(()=>this.client.getLogbookStatistics(...e))}async parseLogbookImport(...e){return m(()=>this.client.parseLogbookImport(...e))}async confirmLogbookImport(...e){return m(()=>this.client.confirmLogbookImport(...e))}async cancelLogbookImport(...e){return m(()=>this.client.cancelLogbookImport(...e))}async getPendingLogbookImport(...e){return m(()=>this.client.getPendingLogbookImport(...e))}async getCruxConnection(...e){return m(()=>this.client.getCruxConnection(...e))}async connectCrux(...e){return m(()=>this.client.connectCrux(...e))}async disconnectCrux(...e){return m(()=>this.client.disconnectCrux(...e))}async getCruxWebhookStatus(...e){return m(()=>this.client.getCruxWebhookStatus(...e))}async syncCrux(...e){return m(()=>this.client.syncCrux(...e))}async confirmCruxSync(...e){return m(()=>this.client.confirmCruxSync(...e))}async previewIcsImport(...e){return m(()=>this.client.previewIcsImport(...e))}async commitIcsImport(...e){return m(()=>this.client.commitIcsImport(...e))}async scheduleCompetition(...e){return m(()=>this.client.scheduleCompetition(...e))}async updateScheduledCompetition(...e){return m(()=>this.client.updateScheduledCompetition(...e))}async getCompetitionRoutes(...e){return m(()=>this.client.getCompetitionRoutes(...e))}async getCompetitionStats(...e){return m(()=>this.client.getCompetitionStats(...e))}async updateCompetitionRoute(...e){return m(()=>this.client.updateCompetitionRoute(...e))}async batchUpdateCompetitionRoutes(...e){return m(()=>this.client.batchUpdateCompetitionRoutes(...e))}async deleteCompetitionRoute(...e){return m(()=>this.client.deleteCompetitionRoute(...e))}async logCompetition(...e){return m(()=>this.client.logCompetition(...e))}async searchGyms(...e){return m(()=>this.client.searchGyms(...e))}async getGymGradingSystem(...e){return m(()=>this.client.getGymGradingSystem(...e))}async saveGymGradingSystem(...e){return m(()=>this.client.saveGymGradingSystem(...e))}async deleteGymGradingSystem(...e){return m(()=>this.client.deleteGymGradingSystem(...e))}async getBoardConnections(...e){return m(()=>this.client.getBoardConnections(...e))}async createBoardConnection(...e){return m(()=>this.client.createBoardConnection(...e))}async updateBoardConnection(...e){return m(()=>this.client.updateBoardConnection(...e))}async deleteBoardConnection(...e){return m(()=>this.client.deleteBoardConnection(...e))}async testBoardConnection(...e){return m(()=>this.client.testBoardConnection(...e))}async previewBoardSync(...e){return m(()=>this.client.previewBoardSync(...e))}async importBoardSync(...e){return m(()=>this.client.importBoardSync(...e))}async updateCompetition(...e){return m(()=>this.client.updateCompetition(...e))}async requestPasswordReset(...e){return m(()=>this.client.requestPasswordReset(...e))}async validatePromoCode(...e){return m(()=>this.client.validatePromoCode(...e))}async redeemPromoCode(...e){return m(()=>this.client.redeemPromoCode(...e))}async getDefaultPaywallUrl(...e){return m(()=>this.client.getDefaultPaywallUrl(...e))}async getReports(...e){return m(()=>this.client.getReports(...e))}async getReport(...e){return m(()=>this.client.getReport(...e))}async generateReport(...e){return m(()=>this.client.generateReport(...e))}async markReportRead(...e){return m(()=>this.client.markReportRead(...e))}async saveReflectionAnswers(...e){return m(()=>this.client.saveReflectionAnswers(...e))}async getCircuits(...e){return m(()=>this.client.getCircuits(...e))}async getCircuit(...e){return m(()=>this.client.getCircuit(...e))}async createCircuit(...e){return m(()=>this.client.createCircuit(...e))}async updateCircuit(...e){return m(()=>this.client.updateCircuit(...e))}async deleteCircuit(...e){return m(()=>this.client.deleteCircuit(...e))}async shareCircuit(...e){return m(()=>this.client.shareCircuit(...e))}async getSharedCircuit(...e){return m(()=>this.client.getSharedCircuit(...e))}async getTimers(...e){return m(()=>this.client.getTimers(...e))}async getTimer(...e){return m(()=>this.client.getTimer(...e))}async createTimer(...e){return m(()=>this.client.createTimer(...e))}async updateTimer(...e){return m(()=>this.client.updateTimer(...e))}async deleteTimer(...e){return m(()=>this.client.deleteTimer(...e))}async shareTimer(...e){return m(()=>this.client.shareTimer(...e))}async getSharedTimer(...e){return m(()=>this.client.getSharedTimer(...e))}async getTrips(...e){return m(()=>this.client.getTrips(...e))}async getTrip(...e){return m(()=>this.client.getTrip(...e))}async createTrip(...e){return m(()=>this.client.createTrip(...e))}async updateTrip(...e){return m(()=>this.client.updateTrip(...e))}async deleteTrip(...e){return m(()=>this.client.deleteTrip(...e))}async linkSessionToTrip(...e){return m(()=>this.client.linkSessionToTrip(...e))}async unlinkSessionFromTrip(...e){return m(()=>this.client.unlinkSessionFromTrip(...e))}async getTripSessions(...e){return m(()=>this.client.getTripSessions(...e))}async getTripMedia(...e){return m(()=>this.client.getTripMedia(...e))}async uploadPhoto(...e){return m(()=>this.client.uploadPhoto(...e))}async getMediaProcessingStatus(...e){return m(()=>this.client.getMediaProcessingStatus(...e))}async retryMediaProcessing(...e){return m(()=>this.client.retryMediaProcessing(...e))}async requestMediaUploadUrl(...e){return m(()=>this.client.requestMediaUploadUrl(...e))}async completeMediaUpload(...e){return m(()=>this.client.completeMediaUpload(...e))}async getMediaUrl(...e){return m(()=>this.client.getMediaUrl(...e))}async getMediaByEntity(...e){return m(()=>this.client.getMediaByEntity(...e))}async getMediaByEntities(...e){return m(()=>this.client.getMediaByEntities(...e))}async getStorageUsage(...e){return m(()=>this.client.getStorageUsage(...e))}async getRecentMedia(...e){return m(()=>this.client.getRecentMedia(...e))}async getAllMedia(...e){return m(()=>this.client.getAllMedia(...e))}async deleteMedia(...e){return m(()=>this.client.deleteMedia(...e))}async linkMedia(...e){return m(()=>this.client.linkMedia(...e))}async unlinkMedia(...e){return m(()=>this.client.unlinkMedia(...e))}async createLinkMediaAttachment(...e){return m(()=>this.client.createLinkMediaAttachment(...e))}async syncHealthData(...e){return m(()=>this.client.syncHealthData(...e))}async getHealthSyncStatus(...e){return m(()=>this.client.getHealthSyncStatus(...e))}async updateHealthSyncConsent(...e){return m(()=>this.client.updateHealthSyncConsent(...e))}async getHealthDashboard(...e){return m(()=>this.client.getHealthDashboard(...e))}async getHealthMetrics(...e){return m(()=>this.client.getHealthMetrics(...e))}async getHealthMetricsDaily(...e){return m(()=>this.client.getHealthMetricsDaily(...e))}async getHealthWorkouts(...e){return m(()=>this.client.getHealthWorkouts(...e))}async getHealthWorkoutById(...e){return m(()=>this.client.getHealthWorkoutById(...e))}async linkHealthWorkoutToSession(...e){return m(()=>this.client.linkHealthWorkoutToSession(...e))}async getHealthSleep(...e){return m(()=>this.client.getHealthSleep(...e))}async relinkHealthWorkouts(...e){return m(()=>this.client.relinkHealthWorkouts(...e))}async getCoachProfile(...e){return m(()=>this.client.getCoachProfile(...e))}async createCoachProfile(...e){return m(()=>this.client.createCoachProfile(...e))}async updateCoachProfile(...e){return m(()=>this.client.updateCoachProfile(...e))}async deleteCoachProfile(...e){return m(()=>this.client.deleteCoachProfile(...e))}async getCoachAthletes(...e){return m(()=>this.client.getCoachAthletes(...e))}async getMyCoaches(...e){return m(()=>this.client.getMyCoaches(...e))}async removeCoachingRelationship(...e){return m(()=>this.client.removeCoachingRelationship(...e))}async createEmailInvite(...e){return m(()=>this.client.createEmailInvite(...e))}async createLinkInvite(...e){return m(()=>this.client.createLinkInvite(...e))}async getCoachInvitations(...e){return m(()=>this.client.getCoachInvitations(...e))}async revokeInvitation(...e){return m(()=>this.client.revokeInvitation(...e))}async getInviteInfo(...e){return m(()=>this.client.getInviteInfo(...e))}async getPendingInvites(...e){return m(()=>this.client.getPendingInvites(...e))}async acceptInvite(...e){return m(()=>this.client.acceptInvite(...e))}async declineInvite(...e){return m(()=>this.client.declineInvite(...e))}async getAthleteOverview(...e){return m(()=>this.client.getAthleteOverview(...e))}async getCoachMessages(...e){return m(()=>this.client.getCoachMessages(...e))}async sendCoachMessage(...e){return m(()=>this.client.sendCoachMessage(...e))}async markCoachMessagesRead(...e){return m(()=>this.client.markCoachMessagesRead(...e))}async getUnreadMessageCounts(...e){return m(()=>this.client.getUnreadMessageCounts(...e))}async createTeam(...e){return m(()=>this.client.createTeam(...e))}async getTeams(...e){return m(()=>this.client.getTeams(...e))}async getMyTeams(...e){return m(()=>this.client.getMyTeams(...e))}async updateTeam(...e){return m(()=>this.client.updateTeam(...e))}async deleteTeam(...e){return m(()=>this.client.deleteTeam(...e))}async addTeamMembers(...e){return m(()=>this.client.addTeamMembers(...e))}async removeTeamMember(...e){return m(()=>this.client.removeTeamMember(...e))}async getTeamMembers(...e){return m(()=>this.client.getTeamMembers(...e))}async getTeamMessages(...e){return m(()=>this.client.getTeamMessages(...e))}async sendTeamMessage(...e){return m(()=>this.client.sendTeamMessage(...e))}async updateTeamReadCursor(...e){return m(()=>this.client.updateTeamReadCursor(...e))}async getTeamUnreadCounts(...e){return m(()=>this.client.getTeamUnreadCounts(...e))}async getSessionTemplates(...e){return m(()=>this.client.getSessionTemplates(...e))}async getPlatformTemplates(...e){return m(()=>this.client.getPlatformTemplates(...e))}async getSessionTemplate(...e){return m(()=>this.client.getSessionTemplate(...e))}async saveTemplateToLibrary(...e){return m(()=>this.client.saveTemplateToLibrary(...e))}async getSessionTemplateByShareCode(...e){return m(()=>this.client.getSessionTemplateByShareCode(...e))}async createSessionTemplate(...e){return m(()=>this.client.createSessionTemplate(...e))}async getTemplatePropagationTargets(...e){return m(()=>this.client.getTemplatePropagationTargets(...e))}async updateSessionTemplate(...e){return m(()=>this.client.updateSessionTemplate(...e))}async archiveSessionTemplate(...e){return m(()=>this.client.archiveSessionTemplate(...e))}async deleteSessionTemplate(...e){return m(()=>this.client.deleteSessionTemplate(...e))}async duplicateSessionTemplate(...e){return m(()=>this.client.duplicateSessionTemplate(...e))}async scheduleSession(...e){return m(()=>this.client.scheduleSession(...e))}async startSessionNow(...e){return m(()=>this.client.startSessionNow(...e))}async logFromTemplate(...e){return m(()=>this.client.logFromTemplate(...e))}async listStructuredSessions(...e){return m(()=>this.client.listStructuredSessions(...e))}async getStructuredSession(...e){return m(()=>this.client.getStructuredSession(...e))}async getMyStructuredSessions(...e){return m(()=>this.client.getMyStructuredSessions(...e))}async startStructuredSession(...e){return m(()=>this.client.startStructuredSession(...e))}async updateStructuredSessionProgress(...e){return m(()=>this.client.updateStructuredSessionProgress(...e))}async completeStructuredSession(...e){return m(()=>this.client.completeStructuredSession(...e))}async cancelStructuredSession(...e){return m(()=>this.client.cancelStructuredSession(...e))}async cancelGroupSession(...e){return m(()=>this.client.cancelGroupSession(...e))}async createFingerStrengthAttempt(...e){return m(()=>this.client.createFingerStrengthAttempt(...e))}async batchCreateFingerStrengthAttempts(...e){return m(()=>this.client.batchCreateFingerStrengthAttempts(...e))}async listFingerStrengthAttempts(...e){return m(()=>this.client.listFingerStrengthAttempts(...e))}async getFingerStrengthAttempt(...e){return m(()=>this.client.getFingerStrengthAttempt(...e))}async updateFingerStrengthAttempt(...e){return m(()=>this.client.updateFingerStrengthAttempt(...e))}async deleteFingerStrengthAttempt(...e){return m(()=>this.client.deleteFingerStrengthAttempt(...e))}async getFingerStrengthStats(...e){return m(()=>this.client.getFingerStrengthStats(...e))}}(f);o=e=>h.setToken(e),(async()=>{let{data:{session:e}}=await n.auth.getSession();e?.access_token?h.setToken(e.access_token):h.setToken(``)})(),n.auth.onAuthStateChange(async(e,t)=>{if(t?.access_token)h.setToken(t.access_token);else if(h.setToken(``),e===`SIGNED_OUT`||e===`TOKEN_REFRESHED`&&!t){let e=window.location.pathname;[`/login`,`/signup`,`/forgot-password`,`/reset-password`,`/`,`/terms`,`/privacy`].includes(e)||(window.location.href=`/login`)}});export{h as t};
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.