PageSourceSearch

https://www.hitekmarketing.com/_next/static/chunks/18353-d03b84641fc19096.js

js hitekmarketing.com collected 2026-10-09 22:05:32 UTC 5,399 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18353],{7435:(e,r,t)=>{t.d(r,{jB:()=>i,oA:()=>s,qE:()=>l});let o=!1,n=0,a=0;function i(){let e=Math.min(6e4*Math.pow(1.5,++a-1),3e5);o=!0,n=Date.now()+e,console.warn(`[RateLimitCoordinator] Global rate limit ACTIVE for ${e/1e3}s (hit #${a})`)}function s(){return!!o&&(!(Date.now()>n)||(o=!1,console.log("[RateLimitCoordinator] Cooldown expired, resuming normal operation"),!1))}function l(){a>0&&(console.log("[RateLimitCoordinator] Successful auth, resetting hit counter"),a=0)}},18353:(e,r,t)=>{t.r(r),t.d(r,{createClient:()=>g,getClient:()=>p,refreshSessionDeduped:()=>b,resetClient:()=>h});var o=t(19338),n=t(7435);let a=null,i=!1,s=null,l=0,u=!1,c=0,f=0,d=0,g=()=>{if(a){if("u">typeof localStorage){let e="https://rhfunbabghaeqokjsyus.supabase.co";if(e)try{let r=new URL(e).hostname.split(".")[0],t=`sb-${r}-auth-token`;localStorage.getItem(t)?u=!0:u&&(console.log("[Supabase] Stored tokens cleared externally, resetting stale client"),a=null,s=null,l=0,u=!1)}catch(e){}}if(a)return a}if(i)throw Error("[Supabase] Client is currently initializing. Please retry.");i=!0;try{var e;let r=(e=>{if(!e)return null;try{return new URL(e),e}catch(r){return console.error(`Invalid Supabase URL format: "${e}"`),null}})("https://rhfunbabghaeqokjsyus.supabase.co"),t="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InJoZnVuYmFiZ2hhZXFva2pzeXVzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDEwMzc1NTIsImV4cCI6MjA1NjYxMzU1Mn0.yCSonRV7k7RLFOl5786yD035zYXDsEYyKneEIwoAe64";if(!r||!t)throw console.error("Missing required Supabase credentials"),Error("Missing Supabase configuration. Check your environment variables.");let n=new URL(r).hostname.split(".")[0],i=`sb-${n}-auth-token`;"u">typeof localStorage&&(e=>{try{let r=localStorage.getItem(e);if(!r)return!0;let t=JSON.parse(r);if(!t||"object"!=typeof t)return console.warn("[Supabase] Invalid token structure detected, clearing storage"),localStorage.removeItem(e),!1;if(!t.refresh_token||"string"!=typeof t.refresh_token)return console.warn("[Supabase] Missing or invalid refresh_token, clearing storage"),localStorage.removeItem(e),!1;if(t.expires_at){let r="number"==typeof t.expires_at?t.expires_at:0,o=Math.floor(Date.now()/1e3);if(r>0&&o-r>86400)return console.warn("[Supabase] Token expired >24 hours ago, clearing storage"),localStorage.removeItem(e),!1}return!0}catch(r){console.error("[Supabase] Error validating stored token:",r);try{localStorage.removeItem(e)}catch(e){}return!1}})(i);let s=(0,o.createBrowserClient)(r,t,{auth:{autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,storageKey:i},global:{headers:{"X-Client-Info":"dealer-manager-app"},fetch:(e=(e,r)=>fetch(e,r),async(r,t)=>{if(!("string"==typeof r?r:r instanceof URL?r.href:r.url).includes("/auth/v1/"))return e(r,t);let o=function(e){if("function"!=typeof AbortSignal.timeout)return e??void 0;let r=AbortSignal.timeout(6e3);return e?"function"!=typeof AbortSignal.any?e:AbortSignal.any([e,r]):r}(t?.signal),n=await e(r,o?{...t,signal:o}:t);return n.status>=500&&503!==n.status&&!(n.headers.get("content-type")??"").toLowerCase().includes("json")?(await n.body?.cancel().catch(()=>void 0),new Response(null,{status:503,statusText:`Upstream ${n.status}`})):n})}});if(!s||"object"!=typeof s.auth)throw Error("Supabase client creation failed - auth object not available");return a=s}catch(e){throw console.error("[Supabase] Error creating client:",e),Error(`Failed to initialize Supabase client: ${e instanceof Error?e.message:"Unknown error"}`)}finally{i=!1}},p=g,h=()=>{a=null,i=!1,s=null,l=0,u=!1},b=async()=>{let e=g(),r=Date.now();if((0,n.oA)())return console.warn("[Supabase] Global rate limit active, skipping refresh"),{data:{session:null},error:Error("Global rate limit active")};if(c>0&&r-f<6e4){let e=Math.ceil((6e4-(r-f))/1e3);return console.warn(`[Supabase] Rate limit cooldown active (${e}s remaining), skipping refresh`),{data:{session:null},error:Error("Rate limit cooldown active")}}if(d>0&&r-d<3e5){let e=Math.ceil((3e5-(r-d))/1e3);return console.warn(`[Supabase] Token invalidated (${e}s cooldown remaining), skipping refresh`),{data:{session:null}
1,error:Error("Token was invalidated - please sign in again")}}if(s)return console.debug("[Supabase] Reusing in-flight refresh promise"),s;if(r-l<1e3){console.debug("[Supabase] Refresh debounced, returning current session");let{data:{session:r}}=await e.auth.getSession();return{data:{session:r},error:null}}return s=(async()=>{try{l=r;let t=await e.auth.refreshSession();if(t.data?.session&&(c=0,d=0,(0,n.qE)()),t.error){let e=t.error.message?.toLowerCase()||"",r=t.error?.code||"";if((e.includes("rate limit")||e.includes("too many requests")||t.error?.status===429)&&(c++,f=Date.now(),(0,n.jB)(),console.error(`[Supabase] Rate limit detected (count: ${c}), entering cooldown`)),"refresh_token_not_found"===r||e.includes("refresh token not found")||e.includes("invalid refresh token")){console.error("[Supabase] Refresh token not found - token was revoked/deleted. Invalidating and clearing storage."),d=Date.now();try{Object.keys(localStorage).filter(e=>e.includes("supabase")||e.includes("sb-")).forEach(e=>{console.log("[Supabase] Clearing invalidated token:",e),localStorage.removeItem(e)})}catch(e){console.error("[Supabase] Error clearing invalidated tokens:",e)}}}return t}finally{setTimeout(()=>{s=null},100)}})()}}}]);

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.