PageSourceSearch

https://www.elev8.com/_next/static/chunks/12bkdeuktevmf.js

js elev8.com collected 2026-09-24 09:19:36 UTC 27,898 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="744d4d49-47de-0274-b726-90155471ccd0")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,593558,610934,923092,700519,600446,647854,917767,651498,434938,238573,31616,838181,e=>{"use strict";let t,r,s,i,n,a,o;var u=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};e.s(["Subscribable",0,u],610934);var l=new class extends u{#e;#t;#r;constructor(){super(),this.#r=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,l],593558);var c={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},h=new class{#s=c;#i=!1;setTimeoutProvider(e){this.#s=e}setTimeout(e,t){return this.#s.setTimeout(e,t)}clearTimeout(e){this.#s.clearTimeout(e)}setInterval(e,t){return this.#s.setInterval(e,t)}clearInterval(e){this.#s.clearInterval(e)}};function d(e){setTimeout(e,0)}e.s(["systemSetTimeoutZero",0,d,"timeoutManager",0,h],923092);var p="u"<typeof window||"Deno"in globalThis;function f(){}function y(e){return"number"==typeof e&&e>=0&&e!==1/0}function v(e,t){return Math.max(e+(t||0)-Date.now(),0)}function m(e,t){return"function"==typeof e?e(t):e}function b(e,t){return"function"==typeof e?e(t):e}function g(e,t){return(t?.queryKeyHashFn||S)(e)}function S(e){return JSON.stringify(e,(e,t)=>w(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function R(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){for(let r=0;r<t.length;r++)if(!R(e[r],t[r]))return!1;return!0}for(let r of Object.keys(t))if(!R(e[r],t[r]))return!1;return!0}return!1}var T=Object.prototype.hasOwnProperty;function O(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w(e){if(!Q(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!Q(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function Q(e){return"[object Object]"===Object.prototype.toString.call(e)}function C(e){return new Promise(t=>{h.setTimeout(t,e)})}function F(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t===r)return t;if(s>500)return r;let i=O(t)&&O(r);if(!i&&!(w(t)&&w(r)))return r;let n=(i?t:Object.keys(t)).length,a=i?r:Object.keys(r),o=a.length,u=i?Array(o):{},l=0;for(let c=0;c<o;c++){let o=i?c:a[c],h=t[o],d=r[o];if(h===d){u[o]=h,(i?c<n:T.call(t,o))&&l++;continue}if(null===h||null===d||"object"!=typeof h||"object"!=typeof d){u[o]=d;continue}let p=e(h,d,s+1);u[o]=p,p===h&&l++}return n===o&&l===n?t:u}(e,t):t}function I(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=[...e,t];return r&&s.length>r?s.slice(1):s}function E(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}var P=Symbol();function q(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==P?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function U(e,t,r){let s,i=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),i||(i=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),e}e.s(["addConsumeAwareSignal",0,U,"addToEnd",0,I,"addToStart",0,E,"ensureQueryFn",0,q,"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,S,"hashQueryKeyByOptions",0,g,"isServer",0,p,"isValidTimeout",0,y,"matchMutation",0,function(e,t){let{exact:r,status:s,predicate:i,mutationKey:n}=e;if(n){if(!t.options.mutationKey)return!1;if(r){if(S(t.options.mutationKey)!==S(n))return!1}else if(!R(t.options.mutationKey,n))return!1}return(!s||t.state.status===s)&&(!i||!!i(t))},"matchQuery",0,function(e,t){let{type:r="all",exact:s,fetchStatus:i,predicate:n,queryKey:a,stale:o}=e;if(a){if(s){if(t.queryHash!==g(a,t.options))return!1}else if(!R(t.queryKey,a))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!i||i===t.state.fetchStatus)&&(!n||!!n(t))},"noop",0,f,"partialMatchKey",0,R,"replaceData",0,F,"resolveQueryBoolean",0,b,"resolveStaleTime",0,m,"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,P,"sleep",0,C,"timeUntilStale",0,v],700519);var D=(t=()=>p,{isServer:()=>t(),setIsServer(e){t=e}});e.s(["environmentManager",0,D],600446);var j=(r=[],s=0,i=e=>{e()},n=e=>{e()},a=d,{batch:e=>{let t;s++;try{t=e()}finally{let e;--s||(e=r,r=[],e.length&&a(()=>{n(()=>
2{e.forEach(e=>{i(e)})})}))}return t},batchCalls:e=>function(){for(var t=arguments.length,r=Array(t),s=0;s<t;s++)r[s]=arguments[s];o(()=>{e(...r)})},schedule:o=e=>{s?r.push(e):a(()=>{i(e)})},setNotifyFunction:e=>{i=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{a=e}});e.s(["notifyManager",0,j],647854);var A=new class extends u{#n=!0;#t;#r;constructor(){super(),this.#r=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#n!==e&&(this.#n=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#n}};function M(){let e,t,r=new Promise((r,s)=>{e=r,t=s});function s(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{s({status:"fulfilled",value:t}),e(t)},r.reject=e=>{s({status:"rejected",reason:e}),t(e)},r}function x(e){return Math.min(1e3*2**e,3e4)}function k(e){return(e??"online")!=="online"||A.isOnline()}e.s(["onlineManager",0,A],917767),e.s(["pendingThenable",0,M,"tryResolveSync",0,function(e){let t;if(e.then(e=>(t=e,e),f)?.catch(f),void 0!==t)return{data:t}}],651498);var L=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function B(e){let t,r=!1,s=0,i=M(),n=()=>l.isFocused()&&("always"===e.networkMode||A.isOnline())&&e.canRun(),a=()=>k(e.networkMode)&&e.canRun(),o=e=>{"pending"===i.status&&(t?.(),i.resolve(e))},u=e=>{"pending"===i.status&&(t?.(),i.reject(e))},c=()=>new Promise(r=>{t=e=>{("pending"!==i.status||n())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===i.status&&e.onContinue?.()}),h=()=>{let t;if("pending"!==i.status)return;let a=0===s?e.initialPromise:void 0;try{t=a??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(o).catch(t=>{if("pending"!==i.status)return;let a=e.retry??3*!D.isServer(),o=e.retryDelay??x,l="function"==typeof o?o(s,t):o,d=!0===a||"number"==typeof a&&s<a||"function"==typeof a&&a(s,t);r||!d?u(t):(s++,e.onFail?.(s,t),C(l).then(()=>n()?void 0:c()).then(()=>{r?u(t):h()}))})};return{promise:i,status:()=>i.status,cancel:t=>{if("pending"===i.status){let r=new L(t);u(r),e.onCancel?.(r)}},continue:()=>(t?.(),i),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:a,start:()=>(a()?h():c().then(h),i)}}e.s(["CancelledError",0,L,"canFetch",0,k,"createRetryer",0,B],434938);var K=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),y(this.gcTime)&&(this.#a=h.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(D.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#a&&(h.clearTimeout(this.#a),this.#a=void 0)}};function _(e,t){let{pages:r,pageParams:s}=t,i=r.length-1;return r.length>0?e.getNextPageParam(r[i],r,s[i],s):void 0}e.s(["Removable",0,K],238573);var G=class extends K{#o;#u;#l;#c;#h;#d;#p;#f;constructor(e){super(),this.#f=!1,this.#p=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#h=e.client,this.#c=this.#h.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#u=W(this.options),this.state=e.state??this.#u,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#o}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#p,...e},e?._type&&(this.#o=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=W(this.options);void 0!==e.data&&(this.setState(N(e.data,e.dataUpdatedAt)),this.#u=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){let r=F(this.state.data,e,this.options);return this.#y({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#y({type:"setState",state:e})}cancel(e){let t=this.#d?.promise;return this.#d?.cancel(e),t?t.then(f).catch(f):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#u}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==b(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===P||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
2Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===m(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!v(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#d&&(this.#f||this.#v()?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#v(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#y({type:"invalidate"})}async fetch(e,t){var r;let s;if("idle"!==this.state.fetchStatus&&this.#d?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let i=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#f=!0,i.signal)})},a=()=>{let e,r=q(this.options,t),s=(n(e={client:this.#h,queryKey:this.queryKey,meta:this.meta}),e);return(this.#f=!1,this.options.persister)?this.options.persister(r,s,this):r(s)},o=(n(s={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#h,state:this.state,fetchFn:a}),s),u="infinite"===this.#o?(r=this.options.pages,{onFetch:(e,t)=>{let s=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,n=e.state.data?.pages||[],a=e.state.data?.pageParams||[],o={pages:[],pageParams:[]},u=0,l=async()=>{let t=!1,l=q(e.options,e.fetchOptions),c=async(r,s,i)=>{let n;if(t)return Promise.reject(e.signal.reason);if(null==s&&r.pages.length)return Promise.resolve(r);let a=(U(n={client:e.client,queryKey:e.queryKey,pageParam:s,direction:i?"backward":"forward",meta:e.options.meta},()=>e.signal,()=>t=!0),n),o=await l(a),{maxPages:u}=e.options,c=i?E:I;return{pages:c(r.pages,o,u),pageParams:c(r.pageParams,s,u)}};if(i&&n.length){let e="backward"===i,t={pages:n,pageParams:a},r=(e?function(e,t){let{pages:r,pageParams:s}=t;return r.length>0?e.getPreviousPageParam?.(r[0],r,s[0],s):void 0}:_)(s,t);o=await c(t,r,e)}else{let e=r??n.length;do{let e=0===u?a[0]??s.initialPageParam:_(s,o);if(u>0&&null==e)break;o=await c(o,e),u++}while(u<e)}return o};e.options.persister?e.fetchFn=()=>e.options.persister?.(l,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t):e.fetchFn=l}}):this.options.behavior;u?.onFetch(o,this),this.#l=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#y({type:"fetch",meta:o.fetchOptions?.meta}),this.#d=B({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:e=>{e instanceof L&&e.revert&&this.setState({...this.#l,fetchStatus:"idle"}),i.abort()},onFail:(e,t)=>{this.#y({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#y({type:"pause"})},onContinue:()=>{this.#y({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{let e=await this.#d.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof L){if(e.silent)return this.#d.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#y({type:"error",error:e}),this.#c.config.onError?.(e,this),this.#c.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#y(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...H(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...N(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=e.manual?r:void 0,r;case"error":let s=e.error;
2return{...t,error:s,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),j.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function H(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:k(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function N(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function W(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,s=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,G,"fetchState",0,H],31616);var J=e.i(825774),$=e.i(438437),V=J.createContext(void 0);e.s(["QueryClientProvider",0,e=>{let{client:t,children:r}=e;return J.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,$.jsx)(V.Provider,{value:t,children:r})},"useQueryClient",0,e=>{let t=J.useContext(V);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t}],838181)},827669,806839,e=>{"use strict";e.s(["queryOptions",0,function(e){return e}],827669);let t={forceJsonContentType:!1},r="application/json";async function s(e){var s,i;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,o={...t,...a},u=new Headers(n.headers);u.has("Accept")||u.set("Accept",r),null==n.body||u.has("Content-Type")||null!=(i=n.body)&&("function"==typeof FormData&&i instanceof FormData||"function"==typeof URLSearchParams&&i instanceof URLSearchParams||"function"==typeof Blob&&i instanceof Blob||"function"==typeof ReadableStream&&i instanceof ReadableStream||"function"==typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i)))||u.set("Content-Type",r);let l=await fetch(e,{credentials:"include",method:"GET",redirect:"error",...n,headers:u});if(!l.ok){let t=function(e,t){let r=e instanceof Request?e.url:e.toString(),s=r;try{s=new URL(r).pathname}catch{s=r.split("?")[0]??r}return`${t.toUpperCase()} ${s}`}(e,n.method??"GET"),r=Error(`Error receiving data (${l.status} ${t})`);throw r.status=l.status,r.info=function(e){try{return e?JSON.parse(e):null}catch{return e}}(await l.text()),r}if(204===l.status||205===l.status)return null;let c=await l.text();if(!c)return null;if(o.forceJsonContentType||(s=l.headers.get("content-type"),s?.toLowerCase().includes(r)))try{return JSON.parse(c)}catch{let e=Error("Failed to parse JSON response");throw e.status=l.status,e.info=c,e}return c}e.s(["fetcher",0,s],806839)},814001,e=>{"use strict";let t;var r=e.i(593558),s=e.i(600446),i=e.i(647854),n=e.i(31616),a=e.i(610934),o=e.i(651498),u=e.i(700519),l=e.i(923092),c=class extends a.Subscribable{constructor(e,t){super(),this.options=t,this.#h=e,this.#m=null,this.#b=(0,o.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#h;#g=void 0;#S=void 0;#R=void 0;#T;#O;#b;#m;#w;#Q;#C;#F;#I;#E;#P=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#g.addObserver(this),h(this.#g,this.options)?this.#q():this.updateResult(),this.#U())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#g,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#g,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#D(),this.#j(),this.#g.removeObserver(this)}setOptions(e){let t=this.options,r=this.#g;if(this.options=this.#h.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.resolveQueryBoolean)(this.options.enabled,this.#g))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#A(),this.#g.setOptions(this.options),t._defaulted&&!(0,u.shallowEqualObjects)(this.options,t)&&this.#h.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#g,observer:this});let s=this.hasListeners();s&&p(this.#g,r,this.options,t)&&this.#q(),this.updateResult(),s&&(this.#g!==r||(0,u.resolveQueryBoolean)(this.options.enabled,this.#g)!==(0,u.resolveQueryBoolean)(t.enabled,this.#g)||(0,u.resolveStaleTime)(this.options.staleTime,this.#g)!==(0,u.resolveStaleTime)(t.staleTime,this.#g))&&this.#M();let i=this.#x();s&&(this.#g!==r||(0,u.resolveQueryBoolean)(this.options.enabled,this.#g)!==(0,u.resolveQueryBoolean)(t.enabled,this.#g)||i!==this.#E)&&this.#k(i)}getOptimisticResult(e){var t,r;let s=this.#h.getQueryCache().build(this.#h,e),i=this.createResult(s,e);return t=this,r=i,(0,u.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#R=i,this.#O=this.options,this.#T=this.#g.state),i}getCurrentResult(){return this.#R}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#b.status||this.#b.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#P.add(e)}getCurrentQuery(){return this.#g}refetch(){let{...e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.fetch({...e})}fetchOptimistic(e){let t=this.#h.defaultQueryOptions(e),r=this.#h.getQueryCache().build(this.#h,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#q({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#R))}#q(e){this.#A();let t=this.#g.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.noop)),t}#M(){this.#D();let e=(0,u.resolveStaleTime)(this.options.staleTime,this.#g);if(s.environmentManager.isServer()||this.#R.isStale||!(0,u.isValidTimeout)(e))return;let t=(0,u.timeUntilStale)(this.#R.dataUpdatedAt,e);this.#F=l.timeoutManager.setTimeout(()=>{this.#R.isStale||this.updateResult()},t+1)}#x(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#g):this.options.refetchInterval)??!1}#k(e){this.#j(),this.#E=e,!s.environmentManager.isServer()&&!1!==(0,u.resolveQueryBoolean)(this.options.enabled,this.#g)&&(0,u.isValidTimeout)(this.#E)&&0!==this.#E&&(this.#I=l.timeoutManager.setInterval(()=>
2{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#q()},this.#E))}#U(){this.#M(),this.#k(this.#x())}#D(){void 0!==this.#F&&(l.timeoutManager.clearTimeout(this.#F),this.#F=void 0)}#j(){void 0!==this.#I&&(l.timeoutManager.clearInterval(this.#I),this.#I=void 0)}createResult(e,t){let r,s=this.#g,i=this.options,a=this.#R,l=this.#T,c=this.#O,d=e!==s?e.state:this.#S,{state:y}=e,v={...y},m=!1;if(t._optimisticResults){let r=this.hasListeners(),a=!r&&h(e,t),o=r&&p(e,s,t,i);(a||o)&&(v={...v,...(0,n.fetchState)(y.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:S}=v;r=v.data;let R=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===S){let e;a?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=a.data,R=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#C?.state.data,this.#C):t.placeholderData,void 0!==e&&(S="success",r=(0,u.replaceData)(a?.data,e,t),m=!0)}if(t.select&&void 0!==r&&!R)if(a&&r===l?.data&&t.select===this.#w)r=this.#Q;else try{this.#w=t.select,r=t.select(r),r=(0,u.replaceData)(a?.data,r,t),this.#Q=r,this.#m=null}catch(e){this.#m=e}this.#m&&(b=this.#m,r=this.#Q,g=Date.now(),S="error");let T="fetching"===v.fetchStatus,O="pending"===S,w="error"===S,Q=O&&T,C=void 0!==r,F={status:S,fetchStatus:v.fetchStatus,isPending:O,isSuccess:"success"===S,isError:w,isInitialLoading:Q,isLoading:Q,data:r,dataUpdatedAt:v.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:v.dataUpdateCount>d.dataUpdateCount||v.errorUpdateCount>d.errorUpdateCount,isFetching:T,isRefetching:T&&!O,isLoadingError:w&&!C,isPaused:"paused"===v.fetchStatus,isPlaceholderData:m,isRefetchError:w&&C,isStale:f(e,t),refetch:this.refetch,promise:this.#b,isEnabled:!1!==(0,u.resolveQueryBoolean)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==F.data,r="error"===F.status&&!t,i=e=>{r?e.reject(F.error):t&&e.resolve(F.data)},n=()=>{i(this.#b=F.promise=(0,o.pendingThenable)())},a=this.#b;switch(a.status){case"pending":e.queryHash===s.queryHash&&i(a);break;case"fulfilled":(r||F.data!==a.value)&&n();break;case"rejected":r&&F.error===a.reason||n()}}return F}updateResult(){let e=this.#R,t=this.createResult(this.#g,this.options);if(this.#T=this.#g.state,this.#O=this.options,void 0!==this.#T.data&&(this.#C=this.#g),(0,u.shallowEqualObjects)(t,e))return;this.#R=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#P.size)return!0;let s=new Set(r??this.#P);return this.options.throwOnError&&s.add("error"),Object.keys(this.#R).some(t=>this.#R[t]!==e[t]&&s.has(t))};this.#L({listeners:r()})}#A(){let e=this.#h.getQueryCache().build(this.#h,this.options);if(e===this.#g)return;let t=this.#g;this.#g=e,this.#S=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#U()}#L(e){i.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#R)}),this.#h.getQueryCache().notify({query:this.#g,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,u.resolveQueryBoolean)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,u.resolveQueryBoolean)(t.retryOnMount,e))||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,u.resolveQueryBoolean)(t.enabled,e)&&"static"!==(0,u.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&f(e,t)}return!1}function p(e,t,r,s){return(e!==t||!1===(0,u.resolveQueryBoolean)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,u.resolveQueryBoolean)(t.enabled,e)&&e.isStaleByTime((0,u.resolveStaleTime)(t.staleTime,e))}var y=e.i(825774),v=e.i(838181);e.i(438437);var m=y.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),b=y.createContext(!1);b.Provider;var g=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});e.s(["useQuery",0,function(e,t){return function(e,t,r){let n,a=y.useContext(b),o=y.useContext(m),l=(0,v.useQueryClient)(r),c=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let h=l.getQueryCache().get(c.queryHash),d=!1!==e.subscribed;if(c._optimisticResults=a?"isRestoring":d?"optimistic":void 0,c.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=c.staleTime;c.staleTime="function"==typeof t?function(){for(var r=arguments.length,s=Array(r),i=0;i<r;i++)s[i]=arguments[i];return e(t(...s))}:e(t),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}n=h?.state.error&&"function"==typeof c.throwOnError?(0,u.shouldThrowError)(c.throwOnError,[h.state.error,h]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||n)&&!o.isReset()&&(c.retryOnMount=!1),y.useEffect(()=>{o.clearReset()},[o]);let p=!l.getQueryCache().get(c.queryHash),[f]=y.useState(()=>new t(l,c)),S=f.getOptimisticResult(c),R=!a&&d;if(y.useSyncExternalStore(y.useCallback(e=>{let t=R?f.subscribe(i.notifyManager.batchCalls(e)):u.noop;return f.updateResult(),t},[f,R]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),y.useEffect(()=>{f.setOptions(c)},[c,f]),c?.suspense&&S.isPending)throw g(c,f,o);if((e=>{let{result:t,errorResetBoundary:r,throwOnError:s,query:i,suspense:n}=e;return t.isError&&!r.isReset()&&!t.isFetching&&i&&(n&&void 0===t.data||(0,u.shouldThrowError)(s,[t.error,i]))})({result:S,errorResetBoundary:o,throwOnError:c.throwOnError,query:h,suspense:c.suspense}))throw S.error;if(l.getDefaultOptions().queries?._experimental_afterQuery?.(c,S),c.experimental_prefetchInRender&&!s.environmentManager.isServer()&&S.isLoading&&S.isFetching&&!a){let e=p?g(c,f,o):h?.promise;e?.catch(u.noop).finally(()=>{f.updateResult()})}return c.notifyOnChangeProps?S:f.trackResult(S)}(e,c,t)}],814001)}]);
3
4//# debugId=744d4d49-47de-0274-b726-90155471ccd0

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.