PageSourceSearch

https://www.architect.new/_next/static/chunks/8482-b57018bf1970a7eb.js?dpl=dpl_APmwJ4sfr1ZZMiqssAejcG3MqAHC

js architect.new collected 2026-10-04 13:32:00 UTC 26,878 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8482],{88544:function(t,e,r){r.d(e,{W:function(){return o}});var i=r(2265),s=r(4992);let n=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",i.createElement(i.Fragment,null,i.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),i.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",i.createElement(i.Fragment,null,i.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",i.createElement(i.Fragment,null,i.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),a=i.forwardRef((t,e)=>i.createElement(s.Z,{ref:e,...t,weights:n}));a.displayName="CaretLeftIcon";let o=a},73252:function(t,e,r){let i;r.d(e,{m:function(){return n}});var s=r(45345),n=(i=()=>s.sk,{isServer:()=>i(),setIsServer(t){i=t}})},87045:function(t,e,r){r.d(e,{j:function(){return s}});var i=r(24112),s=new class extends i.l{#t;#e;#r;constructor(){super(),this.#r=t=>{if("undefined"!=typeof window&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#r=t,this.#e?.(),this.#e=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return"boolean"==typeof this.#t?this.#t:globalThis.document?.visibilityState!=="hidden"}}},18238:function(t,e,r){r.d(e,{Vr:function(){return s}});var i=r(84554).Hp,s=function(){let t=[],e=0,r=t=>{t()},s=t=>{t()},n=i,a=i=>{e?t.push(i):n(()=>{r(i)})},o=()=>{let e=t;t=[],e.length&&n(()=>{s(()=>{e.forEach(t=>{r(t)})})})};return{batch:t=>{let r;e++;try{r=t()}finally{--e||o()}return r},batchCalls:t=>(...e)=>{a(()=>{t(...e)})},schedule:a,setNotifyFunction:t=>{r=t},setBatchNotifyFunction:t=>{s=t},setScheduler:t=>{n=t}}}()},57853:function(t,e,r){r.d(e,{N:function(){return s}});var i=r(24112),s=new class extends i.l{#i=!0;#e;#r;constructor(){super(),this.#r=t=>{if("undefined"!=typeof window&&window.addEventListener){let e=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#r=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#i!==t&&(this.#i=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#i}}},8028:function(t,e,r){r.d(e,{A:function(){return u},z:function(){return c}});var i=r(45345),s=r(18238),n=r(11255),a=r(7989);function o(t,{pages:e,pageParams:r}){let i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,r[i],r):void 0}var u=class extends a.F{#s;#n;#a;#o;#u;#c;#h;#l;constructor(t){super(),this.#l=!1,this.#h=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#u=t.client,this.#o=this.#u.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#n=l(this.options),this.state=t.state??this.#n,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#s}get promise(){return this.#c?.promise}setOptions(t){if(this.options={...this.#h,...t},t?._type&&(this.#s=t._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let t=l(this.options);void 0!==t.data&&(this.setState(h(t.data,t.dataUpdatedAt)),this.#n=t)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#o.remove(this)}setData(t,e){let r=(0,i.oE)(this.state.data,t,this.options);return this.#d({data:r,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),r}setState(t){this.#d({type:"setState",state:t})}cancel(t){let e=this.#c?.promise;return this.#c?.cancel(t),e?e.then(i.ZT).catch(i.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#n}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>!1!==(0,i.TD)(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===i.CN||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
1Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===(0,i.KC)(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!(0,i.Kp)(this.state.dataUpdatedAt,t))}onFocus(){let t=this.observers.find(t=>t.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),this.#c?.continue()}onOnline(){let t=this.observers.find(t=>t.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),this.#c?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#c&&(this.#l||this.#f()?this.#c.cancel({revert:!0}):this.#c.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#f(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}async fetch(t,e){var r;if("idle"!==this.state.fetchStatus&&this.#c?.status()!=="rejected"){if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#c)return this.#c.continueRetry(),this.#c.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let s=new AbortController,a=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#l=!0,s.signal)})},u=()=>{let t=(0,i.cG)(this.options,e),r=(()=>{let t={client:this.#u,queryKey:this.queryKey,meta:this.meta};return a(t),t})();return(this.#l=!1,this.options.persister)?this.options.persister(t,r,this):t(r)},c=(()=>{let t={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:u};return a(t),t})(),h="infinite"===this.#s?(r=this.options.pages,{onFetch:(t,e)=>{let s=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],u=t.state.data?.pageParams||[],c={pages:[],pageParams:[]},h=0,l=async()=>{let e=!1,l=r=>{(0,i.I4)(r,()=>t.signal,()=>e=!0)},d=(0,i.cG)(t.options,t.fetchOptions),f=async(r,s,n)=>{if(e)return Promise.reject(t.signal.reason);if(null==s&&r.pages.length)return Promise.resolve(r);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:s,direction:n?"backward":"forward",meta:t.options.meta};return l(e),e})(),o=await d(a),{maxPages:u}=t.options,c=n?i.Ht:i.VX;return{pages:c(r.pages,o,u),pageParams:c(r.pageParams,s,u)}};if(n&&a.length){let t="backward"===n,e={pages:a,pageParams:u},r=(t?function(t,{pages:e,pageParams:r}){return e.length>0?t.getPreviousPageParam?.(e[0],e,r[0],r):void 0}:o)(s,e);c=await f(e,r,t)}else{let t=r??a.length;do{let t=0===h?u[0]??s.initialPageParam:o(s,c);if(h>0&&null==t)break;c=await f(c,t),h++}while(h<t)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e):t.fetchFn=l}}):this.options.behavior;h?.onFetch(c,this),this.#a=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#d({type:"fetch",meta:c.fetchOptions?.meta}),this.#c=(0,n.Mz)({initialPromise:e?.initialPromise,fn:c.fetchFn,onCancel:t=>{t instanceof n.p8&&t.revert&&this.setState({...this.#a,fetchStatus:"idle"}),s.abort()},onFail:(t,e)=>{this.#d({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{let t=await this.#c.start();if(void 0===t)throw Error(`${this.queryHash} data is undefined`);return this.setData(t),this.#o.config.onSuccess?.(t,this),this.#o.config.onSettled?.(t,this.state.error,this),t}catch(t){if(t instanceof n.p8){if(t.silent)return this.#c.promise;if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw this.#d({type:"error",error:t}),this.#o.config.onError?.(t,this),this.#o.config.onSettled?.(this.state.data,t,this),t}finally{this.scheduleGc()}}#d(t){this.state=(e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...c(e.data,this.options),fetchMeta:t.meta??null};case"success":let r={...e,...h(t.data,t.dataUpdatedAt),dataUpdateCount:e.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#a=t.manual?r:void 0,r;case"error":let i=t.error;
1return{...e,error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}})(this.state),s.Vr.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:t})})}};function c(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.Kw)(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}function h(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function l(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,r=void 0!==e,i=r?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}},7989:function(t,e,r){r.d(e,{F:function(){return a}});var i=r(84554),s=r(73252),n=r(45345),a=class{#p;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.PN)(this.gcTime)&&(this.#p=i.mr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(s.m.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#p&&(i.mr.clearTimeout(this.#p),this.#p=void 0)}}},11255:function(t,e,r){r.d(e,{Kw:function(){return c},Mz:function(){return l},p8:function(){return h}});var i=r(87045),s=r(57853),n=r(16803),a=r(73252),o=r(45345);function u(t){return Math.min(1e3*2**t,3e4)}function c(t){return(t??"online")!=="online"||s.N.isOnline()}var h=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function l(t){let e,r=!1,l=0,d=(0,n.O)(),f=()=>"pending"!==d.status,p=()=>i.j.isFocused()&&("always"===t.networkMode||s.N.isOnline())&&t.canRun(),y=()=>c(t.networkMode)&&t.canRun(),v=t=>{f()||(e?.(),d.resolve(t))},m=t=>{f()||(e?.(),d.reject(t))},b=()=>new Promise(r=>{e=t=>{(f()||p())&&r(t)},t.onPause?.()}).then(()=>{e=void 0,f()||t.onContinue?.()}),g=()=>{let e;if(f())return;let i=0===l?t.initialPromise:void 0;try{e=i??t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(v).catch(e=>{if(f())return;let i=t.retry??(a.m.isServer()?0:3),s=t.retryDelay??u,n="function"==typeof s?s(l,e):s,c=!0===i||"number"==typeof i&&l<i||"function"==typeof i&&i(l,e);if(r||!c){m(e);return}l++,t.onFail?.(l,e),(0,o._v)(n).then(()=>p()?void 0:b()).then(()=>{r?m(e):g()})})};return{promise:d,status:()=>d.status,cancel:e=>{if(!f()){let r=new h(e);m(r),t.onCancel?.(r)}},continue:()=>(e?.(),d),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:y,start:()=>(y()?g():b().then(g),d)}}},24112:function(t,e,r){r.d(e,{l:function(){return i}});var i=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},16803:function(t,e,r){r.d(e,{O:function(){return i}});function i(){let t,e;let r=new Promise((r,i)=>{t=r,e=i});function i(t){Object.assign(r,t),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=e=>{i({status:"fulfilled",value:e}),t(e)},r.reject=t=>{i({status:"rejected",reason:t}),e(t)},r}},84554:function(t,e,r){r.d(e,{Hp:function(){return n},mr:function(){return s}});var i={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},s=new class{#y=i;#v=!1;setTimeoutProvider(t){this.#y=t}setTimeout(t,e){return this.#y.setTimeout(t,e)}clearTimeout(t){this.#y.clearTimeout(t)}setInterval(t,e){return this.#y.setInterval(t,e)}clearInterval(t){this.#y.clearInterval(t)}};function n(t){setTimeout(t,0)}},45345:function(t,e,r){r.d(e,{CN:function(){return C},Ht:function(){return w},I4:function(){return I},KC:function(){return c},Kp:function(){return u},L3:function(){return E},PN:function(){return o},Rm:function(){return f},SE:function(){return a},TD:function(){return h},VS:function(){return m},VX:function(){return T},X7:function(){return d},Ym:function(){return p},ZT:function(){return n},_v:function(){return S},_x:function(){return l},cG:function(){return F},oE:function(){return O},sk:function(){return s},to:function(){return y}});var i=r(84554),s="undefined"==typeof window||"Deno"in globalThis;function n(){}function a(t,e){return"function"==typeof t?t(e):t}function o(t){return"number"==typeof t&&t>=0&&t!==1/0}function u(t,e){return Math.max(t+(e||0)-Date.now(),0)}function c(t,e){return"function"==typeof t?t(e):t}function h(t,e){return"function"==typeof t?t(e):t}function l(t,e){let{type:r="all",exact:i,fetchStatus:s,predicate:n,queryKey:a,stale:o}=t;if(a){if(i){if(e.queryHash!==f(a,e.options))return!1}else if(!y(e.queryKey,a))return!1}if("all"!==r){let t=e.isActive();if("active"===r&&!t||"inactive"===r&&t)return!1}return("boolean"!=typeof o||e.isStale()===o)&&(!s||s===e.state.fetchStatus)&&(!n||!!n(e))}function d(t,e){let{exact:r,status:i,predicate:s,mutationKey:n}=t;if(n){if(!e.options.mutationKey)return!1;if(r){if(p(e.options.mutationKey)!==p(n))return!1}else if(!y(e.options.mutationKey,n))return!1}return(!i||e.state.status===i)&&(!s||!!s(e))}function f(t,e){return(e?.queryKeyHashFn||p)(t)}function p(t){return JSON.stringify(t,(t,e)=>g(e)?Object.keys(e).sort().reduce((t,r)=>(t[r]=e[r],t),{}):e)}function y(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).every(r=>y(t[r],e[r]))}var v=Object.prototype.hasOwnProperty;function m(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let r in t)if(t[r]!==e[r])return!1;return!0}function b(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function g(t){if(!R(t))return!1;let e=t.constructor;if(void 0===e)return!0;let r=e.prototype;return!!(R(r)&&r.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(t)===Object.prototype}function R(t){return"[object Object]"===Object.prototype.toString.call(t)}function S(t){return new Promise(e=>{i.mr.setTimeout(e,t)})}function O(t,e,r){return"function"==typeof r.structuralSharing?r.structuralSharing(t,e):!1!==r.structuralSharing?function t(e,r,i=0){if(e===r)return e;if(i>500)return r;let s=b(e)&&b(r);if(!s&&!(g(e)&&g(r)))return r;let n=(s?e:Object.keys(e)).length,a=s?r:Object.keys(r),o=a.length,u=s?Array(o):{},c=0;for(let h=0;h<o;h++){let o=s?h:a[h],l=e[o],d=r[o];if(l===d){u[o]=l,(s?h<n:v.call(e,o))&&c++;continue}if(null===l||null===d||"object"!=typeof l||"object"!=typeof d){u[o]=d;continue}let f=t(l,d,i+1);u[o]=f,f===l&&c++}return n===o&&c===n?e:u}(t,e):e}function T(t,e,r=0){let i=[...t,e];return r&&i.length>r?i.slice(1):i}function w(t,e,r=0){let i=[e,...t];return r&&i.length>r?i.slice(0,-1):i}var C=Symbol();function F(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:t.queryFn&&t.queryFn!==C?t.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${t.queryHash}'`))}function E(t,e){return"function"==typeof t?t(...e):!!t}function I(t,e,r){let i,s=!1;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(i??=e(),s||(s=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),t}},29827:function(t,e,r){r.d(e,{NL:function(){return a},aH:function(){return o}});
1var i=r(2265),s=r(57437),n=i.createContext(void 0),a=t=>{let e=i.useContext(n);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},o=t=>{let{client:e,children:r}=t;return i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,s.jsx)(n.Provider,{value:e,children:r})}},11713:function(t,e,r){let i;r.d(e,{a:function(){return P}});var s=r(87045),n=r(73252),a=r(18238),o=r(8028),u=r(24112),c=r(16803),h=r(45345),l=r(84554),d=class extends u.l{constructor(t,e){super(),this.options=e,this.#u=t,this.#m=null,this.#b=(0,c.O)(),this.bindMethods(),this.setOptions(e)}#u;#g=void 0;#R=void 0;#S=void 0;#O;#T;#b;#m;#w;#C;#F;#E;#I;#Q;#P=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#g.addObserver(this),f(this.#g,this.options)?this.#D():this.updateResult(),this.#q())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return p(this.#g,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return p(this.#g,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#U(),this.#j(),this.#g.removeObserver(this)}setOptions(t){let e=this.options,r=this.#g;if(this.options=this.#u.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,h.TD)(this.options.enabled,this.#g))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#k(),this.#g.setOptions(this.options),e._defaulted&&!(0,h.VS)(this.options,e)&&this.#u.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#g,observer:this});let i=this.hasListeners();i&&y(this.#g,r,this.options,e)&&this.#D(),this.updateResult(),i&&(this.#g!==r||(0,h.TD)(this.options.enabled,this.#g)!==(0,h.TD)(e.enabled,this.#g)||(0,h.KC)(this.options.staleTime,this.#g)!==(0,h.KC)(e.staleTime,this.#g))&&this.#L();let s=this.#x();i&&(this.#g!==r||(0,h.TD)(this.options.enabled,this.#g)!==(0,h.TD)(e.enabled,this.#g)||s!==this.#Q)&&this.#M(s)}getOptimisticResult(t){let e=this.#u.getQueryCache().build(this.#u,t),r=this.createResult(e,t);return(0,h.VS)(this.getCurrentResult(),r)||(this.#S=r,this.#T=this.options,this.#O=this.#g.state),r}getCurrentResult(){return this.#S}trackResult(t,e){return new Proxy(t,{get:(t,r)=>(this.trackProp(r),e?.(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(t,r))})}trackProp(t){this.#P.add(t)}getCurrentQuery(){return this.#g}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#u.defaultQueryOptions(t),r=this.#u.getQueryCache().build(this.#u,e);return r.fetch().then(()=>this.createResult(r,e))}fetch(t){return this.#D({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#S))}#D(t){this.#k();let e=this.#g.fetch(this.options,t);return t?.throwOnError||(e=e.catch(h.ZT)),e}#L(){this.#U();let t=(0,h.KC)(this.options.staleTime,this.#g);if(n.m.isServer()||this.#S.isStale||!(0,h.PN)(t))return;let e=(0,h.Kp)(this.#S.dataUpdatedAt,t);this.#E=l.mr.setTimeout(()=>{this.#S.isStale||this.updateResult()},e+1)}#x(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#g):this.options.refetchInterval)??!1}#M(t){this.#j(),this.#Q=t,!n.m.isServer()&&!1!==(0,h.TD)(this.options.enabled,this.#g)&&(0,h.PN)(this.#Q)&&0!==this.#Q&&(this.#I=l.mr.setInterval(()=>{(this.options.refetchIntervalInBackground||s.j.isFocused())&&this.#D()},this.#Q))}#q(){this.#L(),this.#M(this.#x())}#U(){void 0!==this.#E&&(l.mr.clearTimeout(this.#E),this.#E=void 0)}#j(){void 0!==this.#I&&(l.mr.clearInterval(this.#I),this.#I=void 0)}createResult(t,e){let r;let i=this.#g,s=this.options,n=this.#S,a=this.#O,u=this.#T,l=t!==i?t.state:this.#R,{state:d}=t,p={...d},m=!1;if(e._optimisticResults){let r=this.hasListeners(),n=!r&&f(t,e),a=r&&y(t,i,e,s);(n||a)&&(p={...p,...(0,o.z)(d.data,t.options)}),"isRestoring"===e._optimisticResults&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:R}=p;r=p.data;let S=!1;if(void 0!==e.placeholderData&&void 0===r&&"pending"===R){let t;n?.isPlaceholderData&&e.placeholderData===u?.placeholderData?(t=n.data,S=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#F?.state.data,this.#F):e.placeholderData,void 0!==t&&(R="success",r=(0,h.oE)(n?.data,t,e),m=!0)}if(e.select&&void 0!==r&&!S){if(n&&r===a?.data&&e.select===this.#w)r=this.#C;else try{this.#w=e.select,r=e.select(r),r=(0,h.oE)(n?.data,r,e),this.#C=r,this.#m=null}catch(t){this.#m=t}}this.#m&&(b=this.#m,r=this.#C,g=Date.now(),R="error");let O="fetching"===p.fetchStatus,T="pending"===R,w="error"===R,C=T&&O,F=void 0!==r,E={status:R,fetchStatus:p.fetchStatus,isPending:T,isSuccess:"success"===R,isError:w,isInitialLoading:C,isLoading:C,data:r,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdate
1Count:p.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:O,isRefetching:O&&!T,isLoadingError:w&&!F,isPaused:"paused"===p.fetchStatus,isPlaceholderData:m,isRefetchError:w&&F,isStale:v(t,e),refetch:this.refetch,promise:this.#b,isEnabled:!1!==(0,h.TD)(e.enabled,t)};if(this.options.experimental_prefetchInRender){let e=void 0!==E.data,r="error"===E.status&&!e,s=t=>{r?t.reject(E.error):e&&t.resolve(E.data)},n=()=>{s(this.#b=E.promise=(0,c.O)())},a=this.#b;switch(a.status){case"pending":t.queryHash===i.queryHash&&s(a);break;case"fulfilled":(r||E.data!==a.value)&&n();break;case"rejected":r&&E.error===a.reason||n()}}return E}updateResult(){let t=this.#S,e=this.createResult(this.#g,this.options);this.#O=this.#g.state,this.#T=this.options,void 0!==this.#O.data&&(this.#F=this.#g),(0,h.VS)(e,t)||(this.#S=e,this.#A({listeners:(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#P.size)return!0;let i=new Set(r??this.#P);return this.options.throwOnError&&i.add("error"),Object.keys(this.#S).some(e=>this.#S[e]!==t[e]&&i.has(e))})()}))}#k(){let t=this.#u.getQueryCache().build(this.#u,this.options);if(t===this.#g)return;let e=this.#g;this.#g=t,this.#R=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#q()}#A(t){a.Vr.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#S)}),this.#u.getQueryCache().notify({query:this.#g,type:"observerResultsUpdated"})})}};function f(t,e){return!1!==(0,h.TD)(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===(0,h.TD)(e.retryOnMount,t))||void 0!==t.state.data&&p(t,e,e.refetchOnMount)}function p(t,e,r){if(!1!==(0,h.TD)(e.enabled,t)&&"static"!==(0,h.KC)(e.staleTime,t)){let i="function"==typeof r?r(t):r;return"always"===i||!1!==i&&v(t,e)}return!1}function y(t,e,r,i){return(t!==e||!1===(0,h.TD)(i.enabled,t))&&(!r.suspense||"error"!==t.state.status)&&v(t,r)}function v(t,e){return!1!==(0,h.TD)(e.enabled,t)&&t.isStaleByTime((0,h.KC)(e.staleTime,t))}var m=r(2265),b=r(29827);r(57437);var g=m.createContext((i=!1,{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i})),R=()=>m.useContext(g),S=(t,e,r)=>{let i=(null==r?void 0:r.state.error)&&"function"==typeof t.throwOnError?(0,h.L3)(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||i)&&!e.isReset()&&(t.retryOnMount=!1)},O=t=>{m.useEffect(()=>{t.clearReset()},[t])},T=t=>{let{result:e,errorResetBoundary:r,throwOnError:i,query:s,suspense:n}=t;return e.isError&&!r.isReset()&&!e.isFetching&&s&&(n&&void 0===e.data||(0,h.L3)(i,[e.error,s]))},w=m.createContext(!1),C=()=>m.useContext(w);w.Provider;var F=t=>{if(t.suspense){let e=t=>"static"===t?t:Math.max(t??1e3,1e3),r=t.staleTime;t.staleTime="function"==typeof r?(...t)=>e(r(...t)):e(r),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3))}},E=(t,e)=>t.isLoading&&t.isFetching&&!e,I=(t,e)=>t?.suspense&&e.isPending,Q=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function P(t,e){return function(t,e,r){var i,s,o,u;let c=C(),l=R(),d=(0,b.NL)(r),f=d.defaultQueryOptions(t);null===(s=d.getDefaultOptions().queries)||void 0===s||null===(i=s._experimental_beforeQuery)||void 0===i||i.call(s,f);let p=d.getQueryCache().get(f.queryHash);f._optimisticResults=c?"isRestoring":"optimistic",F(f),S(f,l,p),O(l);let y=!d.getQueryCache().get(f.queryHash),[v]=m.useState(()=>new e(d,f)),g=v.getOptimisticResult(f),w=!c&&!1!==t.subscribed;if(m.useSyncExternalStore(m.useCallback(t=>{let e=w?v.subscribe(a.Vr.batchCalls(t)):h.ZT;return v.updateResult(),e},[v,w]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),m.useEffect(()=>{v.setOptions(f)},[f,v]),I(f,g))throw Q(f,v,l);if(T({result:g,errorResetBoundary:l,throwOnError:f.throwOnError,query:p,suspense:f.suspense}))throw g.error;if(null===(u=d.getDefaultOptions().queries)||void 0===u||null===(o=u._experimental_afterQuery)||void 0===o||o.call(u,f,g),f.experimental_prefetchInRender&&!n.m.isServer()&&E(g,c)){let t=y?Q(f,v,l):null==p?void 0:p.promise;null==t||t.catch(h.ZT).finally(()=>{v.updateResult()})}return f.notifyOnChangeProps?g:v.trackResult(g)}(t,d,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.