vendor: 15,132 bytes, line 1
1import{a as q,p as _}from"./chunk-62JRHF6Z-Bnc4bl6l.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1f302f31-36fe-4a0d-b8d0-5dce6f385d73",e._sentryDebugIdIdentifier="sentry-dbid-1f302f31-36fe-4a0d-b8d0-5dce6f385d73")}catch{}var M=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(){}},H=class extends M{#e;#t;#r;constructor(){super(),this.#r=e=>{if(typeof window<"u"&&window.addEventListener){const 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(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},B=new H,z={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},V=class{#e=z;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},P=new V;function $(e){setTimeout(e,0)}var J=typeof window>"u"||"Deno"in globalThis;function I(){}function ge(e,t){return typeof e=="function"?e(t):e}function W(e){return typeof e=="number"&&e>=0&&e!==1/0}function Z(e,t){return Math.max(e+(t||0)-Date.now(),0)}function X(e,t){return typeof e=="function"?e(t):e}function Y(e,t){return typeof e=="function"?e(t):e}function we(e,t){const{type:s="all",exact:r,fetchStatus:i,predicate:o,queryKey:u,stale:a}=e;if(u){if(r){if(t.queryHash!==ee(u,t.options))return!1}else if(!S(t.queryKey,u))return!1}if(s!=="all"){const n=t.isActive();if(s==="active"&&!n||s==="inactive"&&n)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function Fe(e,t){const{exact:s,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(s){if(C(t.options.mutationKey)!==C(o))return!1}else if(!S(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ee(e,t){return(t?.queryKeyHashFn||C)(e)}function C(e){return JSON.stringify(e,(t,s)=>O(s)?Object.keys(s).sort().reduce((r,i)=>(r[i]=s[i],r),{}):s)}function S(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){for(let r=0;r<t.length;r++)if(!S(e[r],t[r]))return!1;return!0}const s=Object.keys(t);for(const r of s)if(!S(e[r],t[r]))return!1;return!0}return!1}var te=Object.prototype.hasOwnProperty;function K(e,t,s=0){if(e===t)return e;if(s>500)return t;const r=E(e)&&E(t);if(!r&&!(O(e)&&O(t)))return t;const o=(r?e:Object.keys(e)).length,u=r?t:Object.keys(t),a=u.length,n=r?new Array(a):{};let h=0;for(let f=0;f<a;f++){const d=r?f:u[f],y=e[d],v=t[d];if(y===v){n[d]=y,(r?f<o:te.call(e,d))&&h++;continue}if(y===null||v===null||typeof y!="object"||typeof v!="object"){n[d]=v;continue}const l=K(y,v,s+1);n[d]=l,l===y&&h++}return o===a&&h===o?e:n}function Se(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function E(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function O(e){if(!A(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!A(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function A(e){return Object.prototype.toString.call(e)==="[object Object]"}function se(e){return new Promise(t=>{P.setTimeout(t,e)})}function re(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?K(e,t):t}function ne(e,t,s=0){const r=[...e,t];return s&&r.length>s?r.slice(1):r}function ie(e,t,s=0){const r=[t,...e];return s&&r.length>s?r.slice(0,-1):r}var k=Symbol();function Q(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===k?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Pe(e,t){return typeof e=="function"?e(...t):!!e}function ae(e,t,s){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?s():i.addEventListener("abort",s,{once:!0})),i)}),e}var L=(()=>{let e=()=>J;return{isServer(){return e()},setIsServer(t){e=t}}})();function oe(){let e,t;const s=new Promise((i,o)=>{e=i,t=o});s.status="pending",s.catch(()=>{});function r(i){Object.assign(s,i),delete s.resolve,delete s.reject}return s.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},s.reject=i=>{r({status:"rejected",reason:i}),t(i)},s}var ue=$;function ce(){let e=[],t=0,s=a=>{a()},r=a=>{a()},i=ue;const o=a=>{t?e.push(a):i(()=>{s(a)})},u=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(n=>{s(n)})})})};return{batch:a=>{let n;t++;try{n=a()}finally{t--,t||u()}return n},batchCalls:a=>(...n)=>{o(()=>{a(...n)})},schedule:o,setNotifyFunction:a=>{s=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var le=ce(),he=class extends M{#e=!0;#t;#r;constructor(){super(),this.#r=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}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.#e!==e&&(this.#e=e,this.listeners.forEach(s=>{s(e)}))}isOnline(){return this.#e}},x=new he;function fe(e){return Math.min(1e3*2**e,3e4)}function G(e){return(e??"online")==="online"?x.isOnline():!0}var T=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function de(e){let t=!1,s=0,r;const i=oe(),o=()=>i.status!=="pending",u=c=>{if(!o()){const p=new T(c);y(p),e.onCancel?.(p)}},a=()=>{t=!0},n=()=>{t=!1},h=()=>B.isFocused()&&(e.networkMode==="always"||x.isOnline())&&e.canRun(),f=()=>G(e.networkMode)&&e.canRun(),d=c=>{o()||(r?.(),i.resolve(c))},y=c=>{o()||(r?.(),i.reject(c))},v=()=>new Promise(c=>{r=p=>{(o()||h())&&c(p)},e.onPause?.()}).then(()=>{r=void 0,o()||e.onContinue?.()}),l=()=>{if(o())return;let c;const p=s===0?e.initialPromise:void 0;try{c=p??e.fn()}catch(m){c=Promise.reject(m)}Promise.resolve(c).then(d).catch(m=>{if(o())return;const b=e.retry??(L.isServer()?0:3),g=e.retryDelay??fe,w=typeof g=="function"?g(s,m):g,F=b===!0||typeof b=="number"&&s<b||typeof b=="function"&&b(s,m);if(t||!F){y(m);return}s++,e.onFail?.(s,m),se(w).then(()=>h()?void 0:v()).then(()=>{t?y(m):l()})})};return{promise:i,status:()=>i.status,cancel:u,continue:()=>(r?.(),i),cancelRetry:a,continueRetry:n,canStart:f,start:()=>(f()?l():v().then(l),i)}}var ye=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),W(this.gcTime)&&(this.#e=P.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(L.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(P.clearTimeout(this.#e),this.#e=void 0)}};function pe(e){return{onFetch:(t,s)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},n=0;const h=async()=>{let f=!1;const d=l=>{ae(l,()=>t.signal,()=>f=!0)},y=Q(t.options,t.fetchOptions),v=async(l,c,p)=>{if(f)return Promise.reject(t.signal.reason);if(c==null&&l.pages.length)return Promise.resolve(l);const b=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:c,direction:p?"backward":"forward",meta:t.options.meta};return d(j),j})(),g=await y(b),{maxPages:w}=t.options,F=p?ie:ne;return{pages:F(l.pages,g,w),pageParams:F(l.pageParams,c,w)}};if(i&&o.length){const l=i==="backward",c=l?ve:D,p={pages:o,pageParams:u},m=c(r,p);a=await v(p,m,l)}else{const l=e??o.length;do{const c=n===0?u[0]??r.initialPageParam:D(r,a);if(n>0&&c==null)break;a=await v(a,c),n++}while(n<l)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=h}}}function D(e,{pages:t,pageParams:s}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,s[r],s):void 0}function ve(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}var Ce=class extends ye{#e;#t;#r;#n;#a;#s;#u;#o;constructor(e){super(),this.#o=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=U(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#u,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=U(this.options);t.data!==void 0&&(this.setState(R(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const s=re(this.state.data,e,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e){this.#i({type:"setState",state:e})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(I).catch(I):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Y(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===k||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>X(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Z(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.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.#s&&(this.#o||this.#c()?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const n=this.observers.find(h=>h.options.queryFn);n&&this.setOptions(n.options)}const s=new AbortController,r=n=>{Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(this.#o=!0,s.signal)})},i=()=>{const n=Q(this.options,t),f=(()=>{const d={client:this.#a,queryKey:this.queryKey,meta:this.meta};return r(d),d})();return this.#o=!1,this.options.persister?this.options.persister(n,f,this):n(f)},u=(()=>{const n={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:i};return r(n),n})();(this.#e==="infinite"?pe(this.options.pages):this.options.behavior)?.onFetch(u,this),this.#r=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#i({type:"fetch",meta:u.fetchOptions?.meta}),this.#s=de({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:n=>{n instanceof T&&n.revert&&this.setState({...this.#r,fetchStatus:"idle"}),s.abort()},onFail:(n,h)=>{this.#i({type:"failed",failureCount:n,error:h})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const n=await this.#s.start();if(n===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(n),this.#n.config.onSuccess?.(n,this),this.#n.config.onSettled?.(n,this.state.error,this),n}catch(n){if(n instanceof T){if(n.silent)return this.#s.promise;if(n.revert){if(this.state.data===void 0)throw n;return this.state.data}}throw this.#i({type:"error",error:n}),this.#n.config.onError?.(n,this),this.#n.config.onSettled?.(this.state.data,n,this),n}finally{this.scheduleGc()}}#i(e){const t=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...me(s.data,this.options),fetchMeta:e.meta??null};case"success":const r={...s,...R(e.data,e.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#r=e.manual?r:void 0,r;case"error":const i=e.error;return{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),le.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function me(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:G(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function R(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function U(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,r=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdate
1Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var N=q.createContext(void 0),Oe=e=>{const t=q.useContext(N);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Te=({client:e,children:t})=>(q.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),_.jsx(N.Provider,{value:e,children:t}));export{Ce as Q,ye as R,M as S,I as a,we as b,de as c,ge as d,C as e,B as f,Te as g,ee as h,oe as i,Y as j,Se as k,L as l,Fe as m,le as n,x as o,S as p,W as q,X as r,k as s,Z as t,P as u,me as v,re as w,Pe as x,Oe as y};
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.