PageSourceSearch

https://existants.fr/_next/static/chunks/9869-c51328717a546c50.js

js existants.fr collected 2026-10-01 15:53:52 UTC 9,257 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="57921835-7b8f-49b9-a404-d99357685b92",e._sentryDebugIdIdentifier="sentry-dbid-57921835-7b8f-49b9-a404-d99357685b92")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9869],{79869:(e,t,n)=>{n.d(t,{Sw:()=>w,As:()=>R});var r=n(72671);class l extends Error{constructor(){super("Supabase authentication timed out"),this.name="AuthOperationTimeoutError"}}let i=new Set(["PGRST301","PGRST303"]),a=/\b(?:jwt|token) expired\b/i,o=/jwt expired|invalid_token/i,s=/^Bearer\s+(\S+)$/i,u=/-/g,c=/_/g,d=new WeakMap;async function f(e){let t;if(401!==e.status)return{expired:!1,response:e};let n=e.headers.get("www-authenticate");if(n&&o.test(n))return{expired:!0,response:e};try{t=await e.text()}catch(t){return{expired:!1,response:e}}let r=new Response(t,{status:e.status,statusText:e.statusText,headers:e.headers});try{var l;return{expired:!!(l=JSON.parse(t))&&"object"==typeof l&&(!!("string"==typeof l.code&&i.has(l.code))||[l.message,l.detail].some(e=>"string"==typeof e&&a.test(e))),response:r}}catch(e){return{expired:!1,response:r}}}let p=e=>"".concat(e,".local-principal.v1");function g(e){try{var t;let n=JSON.parse(null!=(t=localStorage.getItem(p(e)))?t:"null");return(null==n?void 0:n.version)===1&&"string"==typeof n.id&&"string"==typeof n.generation&&"boolean"==typeof n.exited&&(null===n.sessionId||"string"==typeof n.sessionId)&&(void 0===n.email||"string"==typeof n.email)?n:null}catch(e){return null}}function h(e,t){localStorage.setItem(p(e),JSON.stringify(t)),window.dispatchEvent(new Event("existants-local-principal"))}function y(e,t,n){if(null==t?void 0:t.user)try{let r=g(e),l=function(e){try{let t=e.access_token.split(".")[1];if(!t)return null;let n=JSON.parse(atob(t.replace(/-/g,"+").replace(/_/g,"/")));return"string"==typeof n.session_id?n.session_id:null}catch(e){return null}}(t),i=(null==r?void 0:r.exited)&&n===r.generation;if((null==r?void 0:r.exited)&&!i&&(!l||r.sessionId===l))return;let a={version:1,id:t.user.id,email:t.user.email,sessionId:l,generation:r&&!r.exited&&r.id===t.user.id?r.generation:crypto.randomUUID(),exited:!1};JSON.stringify(r)!==JSON.stringify(a)&&h(e,a)}catch(e){}}let v=["signInWithPassword","verifyOtp","exchangeCodeForSession","signInWithIdToken","signUp"],b="__existantsSupabaseClientRegistryV1";function w(e){var t,n,i,a,o,p,w,m,S,R;let{clients:U,headerSources:I}=function(){let e=globalThis,t=e[b];return t||Object.defineProperty(e,b,{value:t={clients:new Map,headerSources:new Map},enumerable:!1}),t}(),_=JSON.stringify({storageKey:e.storageKey,supabaseUrl:e.supabaseUrl,oauthRedirectUrl:null!=(a=e.oauthRedirectUrl)?a:null,emailRedirectUrl:null!=(o=e.emailRedirectUrl)?o:null,passwordResetRedirectUrl:null!=(p=e.passwordResetRedirectUrl)?p:null,flowType:null!=(w=e.flowType)?w:"implicit",detectSessionInUrl:null!=(m=e.detectSessionInUrl)&&m,databaseRetry:null==(S=e.databaseRetry)||S,requireAuthenticatedData:null!=(R=e.requireAuthenticatedData)&&R}),x=U.get(_);if(x)return!function(e,t){var n,r;if(e===t)return;let l=null==(n=Object.getOwnPropertyDescriptor(e,"globalHeaders"))?void 0:n.get,i=null==(r=Object.getOwnPropertyDescriptor(t,"globalHeaders"))?void 0:r.get,a=e=>JSON.stringify([...new Headers(e.globalHeaders).entries()].sort());if(l||i||a(e)!==a(t))throw Error("Supabase client configuration has conflicting globalHeaders for the same cached client")}(I.get(_),e),x;!function(e){if(!("undefined"==typeof document||g(e)))try{var t,n;let r=new Map;for(let t of document.cookie.split(";")){let n=t.indexOf("=");if(n<0)continue;let l=t.slice(0,n).trim();if(l===e||l.startsWith("".concat(e,".")))try{r.set(l,decodeURIComponent(t.slice(n+1)))}catch(e){}}let l=null!=(n=r.get(e))?n:"";if(!l)for(let t=0;r.has("".concat(e,".").concat(t));t++)l+=r.get("".concat(e,".").concat(t));if(l.startsWith("base64-")){let e=atob(l.slice(7).replace(/-/g,"+").replace(/_/g,"/"));l=new TextDecoder().decode(Uint8Array.from(e,e=>e.charCodeAt(0)))}let i=JSON.parse(l);"string"==typeof(null==i||null==(t=i.user)?void 0:t.id)&&"string"==typeof i.access_token&&y(e,i)}catch(e){}}(e.storageKey);let k=null,T=function(e,t){var n;let r,l=null==(n=g(e))?void 0:n.generation,i=new URL("/auth/v1/token",t);return{async fetch(e,t){var n;let a=new URL("string"==typeof e?e:e instanceof URL?e.href:e.url),o=await fetch(e,t);if("POST"===(null!=(n=null==t?void 0:t.method)?n:e instanceof Request?e.method:"GET").toUpperCase()&&a.origin===i.origin&&a.pathname===i.pathname&&"pkce"===a.searchParams.get("grant_type")&&o.ok){let e=await o.clone().json().catch(()=>null);"string"==typeof(null==e?void 0:e.access_token)&&(r={accessToken:e.access_token,generation:l})}return o},match:e=>e&&(null==r?void 0:r.accessToken)===e.access_token?r:void 0}}(e.storageKey,e.supabaseUrl),O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return fetch(...t)},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;return async(n,r)=>{let i;if(!("string"==typeof n?n:n instanceof URL?n.href:n.url).includes("/auth/v1/"))return e(n,r);let a=new AbortController,o=(null==r?void 0:r.signal)?r.signal:"undefined"!=typeof Request&&n instanceof Request?n.signal:null,s=()=>a.abort(null==o?void 0:o.reason);(null==o?void 0:o.aborted)?s():null==o||o.addEventListener("abort",s,{once:!0});
1let u=new Promise((e,n)=>{i=setTimeout(()=>{let e=new l;n(e),a.abort(e)},t)});try{return await Promise.race([e(n,{...r,signal:a.signal}),u])}finally{void 0!==i&&clearTimeout(i),null==o||o.removeEventListener("abort",s)}}}((t,n)=>{var r,l,i;let a=new Headers(null!=(r=null==n?void 0:n.headers)?r:"undefined"!=typeof Request&&t instanceof Request?t.headers:void 0);for(let[t,n]of Object.entries(null!=(l=e.globalHeaders)?l:{}))a.set(t,n);let o=new URL("string"==typeof t?t:t instanceof URL?t.href:t.url);if(e.requireAuthenticatedData&&o.origin===new URL(e.supabaseUrl).origin&&/^\/(rest|storage)\/v1\//.test(o.pathname)){let t=g(e.storageKey),n={};try{let e=null==(i=a.get("Authorization"))?void 0:i.replace(/^Bearer /i,"").split(".")[1];e&&(n=JSON.parse(atob(e.replace(/-/g,"+").replace(/_/g,"/"))))}catch(e){}if(!n.sub||t&&(t.exited||t.id!==n.sub))throw TypeError("Failed to fetch")}return T.fetch(t,{...n,headers:a})}),A=(0,r.createBrowserClient)(e.supabaseUrl,e.supabaseAnonKey,{isSingleton:!1,db:{retry:null==(t=e.databaseRetry)||t},global:{headers:e.globalHeaders,fetch:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return fetch(...t)};return async(n,r)=>{var l;let i=function(e,t){var n;let r=e.headers;return new Headers(null!=(n=null==t?void 0:t.headers)?n:r)}(n,r),a=function(e){var t,n;let r=null==(n=e.get("authorization"))||null==(t=n.match(s))?void 0:t[1],l=null==r?void 0:r.split(".")[1];if(!l)return null;try{let e=l.replace(u,"+").replace(c,"/"),t=e.padEnd(e.length+(4-e.length%4)%4,"="),n=JSON.parse(atob(t));if(!n||"object"!=typeof n)return null;let r=n.sub;return"string"==typeof r&&r.length>0?r:null}catch(e){return null}}(i),o=await t(n,r),p=e();if(!p||("string"==typeof n?n:"string"==typeof n.url?n.url:String(n)).includes("/auth/v1/")||!(!(l=null==r?void 0:r.body)||!("undefined"!=typeof ReadableStream&&l instanceof ReadableStream)))return o;let g=await f(o);if(!g.expired||!a)return g.response;let h=await function(e){let t=d.get(e);if(t)return t;let n=e.auth.refreshSession().then(e=>{let{data:t,error:n}=e,r=n?null:t.session;return(null==r?void 0:r.access_token)&&r.user.id?{accessToken:r.access_token,userId:r.user.id}:null}).catch(()=>null).finally(()=>{d.delete(e)});return d.set(e,n),n}(p);return h&&h.userId===a?(i.set("Authorization","Bearer ".concat(h.accessToken)),t(n,{...r,headers:i})):g.response}}(()=>k,O)},auth:{persistSession:!0,autoRefreshToken:!0,detectSessionInUrl:null!=(n=e.detectSessionInUrl)&&n,storageKey:e.storageKey,flowType:null!=(i=e.flowType)?i:"implicit"}});return k=A,!function(e,t,n){let r=0;e.auth.onAuthStateChange((e,l)=>{if(0!==r)return;let i="SIGNED_IN"===e||"INITIAL_SESSION"===e?null==n?void 0:n.match(l):void 0;if(i){var a;(null==(a=g(t))?void 0:a.generation)===i.generation&&y(t,l,i.generation);return}y(t,l)});let l=e.auth;for(let n of v){let i=l[n];"function"==typeof i&&(l[n]=async function(){for(var n,l,a,o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];let c=null==(n=g(t))?void 0:n.generation;r++;try{let n=await i.apply(e.auth,s);return!n.error&&(null==(l=n.data)?void 0:l.session)&&(null==(a=g(t))?void 0:a.generation)===c&&y(t,n.data.session,c),n}finally{r--}})}let i=e.auth.signOut.bind(e.auth);e.auth.signOut=e=>((null==e?void 0:e.scope)!=="others"&&function(e){let t=g(e);try{t&&h(e,{...t,exited:!0,generation:crypto.randomUUID()})}catch(e){}}(t),i(e))}(A,e.storageKey,T),U.set(_,A),I.set(_,e),A}n(49077);var m=n(2161);let S=(0,m.createContext)(null);function R(){let e=(0,m.useContext)(S);if(!e)throw Error("useAuth must be used within an AuthProvider");return e}n(69251)}}]);

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.