1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34167,e=>{"use strict";let t,s,i,r,n,a;var o=e.i(953226).systemSetTimeoutZero,u=(t=[],s=0,i=e=>{e()},r=e=>{e()},n=o,{batch:e=>{let a;s++;try{a=e()}finally{let e;--s||(e=t,t=[],e.length&&n(()=>{r(()=>{e.forEach(e=>{i(e)})})}))}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a=e=>{s?t.push(e):n(()=>{i(e)})},setNotifyFunction:e=>{i=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{n=e}});e.s(["notifyManager",()=>u])},467784,614099,e=>{"use strict";var t=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",()=>t],614099);var s=new class extends t{#e;#t;#s;constructor(){super(),this.#s=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.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=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",()=>s],467784)},586346,e=>{"use strict";var t=e.i(614099),s=new class extends t.Subscribable{#i=!0;#t;#s;constructor(){super(),this.#s=e=>{if("u">typeof window&&window.addEventListener){let 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.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};e.s(["onlineManager",()=>s])},822474,953226,450740,e=>{"use strict";e.i(167154);var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},s=new class{#r=t;#n=!1;setTimeoutProvider(e){this.#r=e}setTimeout(e,t){return this.#r.setTimeout(e,t)}clearTimeout(e){this.#r.clearTimeout(e)}setInterval(e,t){return this.#r.setInterval(e,t)}clearInterval(e){this.#r.clearInterval(e)}};function i(e){setTimeout(e,0)}e.s(["systemSetTimeoutZero",()=>i,"timeoutManager",()=>s],953226);var r="u"<typeof window||"Deno"in globalThis;function n(){}function a(e,t){return"function"==typeof e?e(t):e}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function h(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function l(e,t){let{type:s="all",exact:i,fetchStatus:r,predicate:n,queryKey:a,stale:o}=e;if(a){if(i){if(t.queryHash!==f(a,t.options))return!1}else if(!y(t.queryKey,a))return!1}if("all"!==s){let e=t.isActive();if("active"===s&&!e||"inactive"===s&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!r||r===t.state.fetchStatus)&&(!n||!!n(t))}function d(e,t){let{exact:s,status:i,predicate:r,mutationKey:n}=e;if(n){if(!t.options.mutationKey)return!1;if(s){if(p(t.options.mutationKey)!==p(n))return!1}else if(!y(t.options.mutationKey,n))return!1}return(!i||t.state.status===i)&&(!r||!!r(t))}function f(e,t){return(t?.queryKeyHashFn||p)(e)}function p(e){return JSON.stringify(e,(e,t)=>S(t)?Object.keys(t).sort().reduce((e,s)=>(e[s]=t[s],e),{}):t)}function y(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(s=>y(e[s],t[s]))}var v=Object.prototype.hasOwnProperty;function m(e,t,s=0){if(e===t)return e;if(s>500)return t;let i=g(e)&&g(t);if(!i&&!(S(e)&&S(t)))return t;let r=(i?e:Object.keys(e)).length,n=i?t:Object.keys(t),a=n.length,o=i?Array(a):{},u=0;for(let h=0;h<a;h++){let a=i?h:n[h],c=e[a],l=t[a];if(c===l){o[a]=c,(i?h<r:v.call(e,a))&&u++;continue}if(null===c||null===l||"object"!=typeof c||"object"!=typeof l){o[a]=l;continue}let d=m(c,l,s+1);o[a]=d,d===c&&u++}return r===a&&u===r?e:o}function b(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let s in e)if(e[s]!==t[s])return!1;return!0}function g(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function S(e){if(!O(e))return!1;let t=e.constructor;if(void 0===t)return!0;let s=t.prototype;
1return!!O(s)&&!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function O(e){return"[object Object]"===Object.prototype.toString.call(e)}function Q(e){return new Promise(t=>{s.setTimeout(t,e)})}function R(e,t,s){return"function"==typeof s.structuralSharing?s.structuralSharing(e,t):!1!==s.structuralSharing?m(e,t):t}function C(e,t,s=0){let i=[...e,t];return s&&i.length>s?i.slice(1):i}function w(e,t,s=0){let i=[t,...e];return s&&i.length>s?i.slice(0,-1):i}var P=Symbol();function T(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==P?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function M(e,t){return"function"==typeof e?e(...t):!!e}function q(e,t,s){let i,r=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?s():i.addEventListener("abort",s,{once:!0})),i)}),e}function F(){let e,t,s=new Promise((s,i)=>{e=s,t=i});function i(e){Object.assign(s,e),delete s.resolve,delete s.reject}return s.status="pending",s.catch(()=>{}),s.resolve=t=>{i({status:"fulfilled",value:t}),e(t)},s.reject=e=>{i({status:"rejected",reason:e}),t(e)},s}function I(e){let t;if(e.then(e=>(t=e,e),n)?.catch(n),void 0!==t)return{data:t}}e.s(["addConsumeAwareSignal",()=>q,"addToEnd",()=>C,"addToStart",()=>w,"ensureQueryFn",()=>T,"functionalUpdate",()=>a,"hashKey",()=>p,"hashQueryKeyByOptions",()=>f,"isServer",()=>r,"isValidTimeout",()=>o,"matchMutation",()=>d,"matchQuery",()=>l,"noop",()=>n,"partialMatchKey",()=>y,"replaceData",()=>R,"replaceEqualDeep",()=>m,"resolveQueryBoolean",()=>c,"resolveStaleTime",()=>h,"shallowEqualObjects",()=>b,"shouldThrowError",()=>M,"skipToken",()=>P,"sleep",()=>Q,"timeUntilStale",()=>u],450740),e.s(["pendingThenable",()=>F,"tryResolveSync",()=>I],822474)},991322,e=>{"use strict";let t;var s=e.i(450740),i=(t=()=>s.isServer,{isServer:()=>t(),setIsServer(e){t=e}});e.s(["environmentManager",()=>i])},731780,778667,e=>{"use strict";var t=e.i(467784),s=e.i(586346),i=e.i(822474),r=e.i(991322),n=e.i(450740);function a(e){return Math.min(1e3*2**e,3e4)}function o(e){return(e??"online")!=="online"||s.onlineManager.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function h(e){let h,c=!1,l=0,d=(0,i.pendingThenable)(),f=()=>t.focusManager.isFocused()&&("always"===e.networkMode||s.onlineManager.isOnline())&&e.canRun(),p=()=>o(e.networkMode)&&e.canRun(),y=e=>{"pending"===d.status&&(h?.(),d.resolve(e))},v=e=>{"pending"===d.status&&(h?.(),d.reject(e))},m=()=>new Promise(t=>{h=e=>{("pending"!==d.status||f())&&t(e)},e.onPause?.()}).then(()=>{h=void 0,"pending"===d.status&&e.onContinue?.()}),b=()=>{let t;if("pending"!==d.status)return;let s=0===l?e.initialPromise:void 0;try{t=s??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(y).catch(t=>{if("pending"!==d.status)return;let s=e.retry??3*!r.environmentManager.isServer(),i=e.retryDelay??a,o="function"==typeof i?i(l,t):i,u=!0===s||"number"==typeof s&&l<s||"function"==typeof s&&s(l,t);c||!u?v(t):(l++,e.onFail?.(l,t),(0,n.sleep)(o).then(()=>f()?void 0:m()).then(()=>{c?v(t):b()}))})};return{promise:d,status:()=>d.status,cancel:t=>{if("pending"===d.status){let s=new u(t);v(s),e.onCancel?.(s)}},continue:()=>(h?.(),d),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1},canStart:p,start:()=>(p()?b():m().then(b),d)}}e.s(["CancelledError",()=>u,"canFetch",()=>o,"createRetryer",()=>h],731780);var c=e.i(953226),l=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.isValidTimeout)(this.gcTime)&&(this.#a=c.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#a&&(c.timeoutManager.clearTimeout(this.#a),this.#a=void 0)}};e.s(["Removable",()=>l],778667)},942529,e=>{"use strict";var t=e.i(34167),s=e.i(778667),i=e.i(731780),r=class extends s.Removable{#o;#u;#h;#c;constructor(e){super(),this.#o=e.client,this.mutationId=e.mutationId,this.#h=e.mutationCache,this.#u=[],this.state=e.state||n(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#u.includes(e)||(this.#u.push(e),this.clearGcTimeout(),this.#h.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#u=this.#u.filter(t=>t!==e),this.scheduleGc(),this.#h.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#u.length||("pending"===this.state.status?this.scheduleGc():this.#h.remove(this))}continue(){return this.#c?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#l({type:"continue"})},s={client:this.#o,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#c=(0,i.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#l({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#l({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#h.canRun(this)});let r="pending"===this.state.status,n=!this.#c.canStart();try{if(r)t();else{this.#l({type:"pending",variables:e,isPaused:n}),this.#h.config.onMutate&&await this.#h.config.onMutate(e,this,s);let t=await this.options.onMutate?.(e,s);t!==this.state.context&&this.#l({type:"pending",context:t,variables:e,isPaused:n})}let i=await this.#c.start();return await this.#h.config.onSuccess?.(i,e,this.state.context,this,s),await this.options.onSuccess?.(i,e,this.state.context,s),await this.#h.config.onSettled?.(i,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(i,null,e,this.state.context,s),this.#l({type:"success",data:i}),i}catch(t){try{await this.#h.config.onError?.(t,e,this.state.context,this,s)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,s)}catch(e){Promise.reject(e)}try{await this.#h.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,s)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,s)}catch(e){Promise.reject(e)}throw this.#l({type:"error",error:t}),t}finally{this.#h.runNext(this)}}#l(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
1case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),t.notifyManager.batch(()=>{this.#u.forEach(t=>{t.onMutationUpdate(e)}),this.#h.notify({mutation:this,type:"updated",action:e})})}};function n(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}e.s(["Mutation",()=>r,"getDefaultState",()=>n])},995254,721198,386111,e=>{"use strict";var t=e.i(467784),s=e.i(991322),i=e.i(34167);e.i(167154);var r=e.i(450740),n=e.i(731780),a=e.i(778667);function o(e){return{onFetch:(t,s)=>{let i=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],c={pages:[],pageParams:[]},l=0,d=async()=>{let s=!1,d=(0,r.ensureQueryFn)(t.options,t.fetchOptions),f=async(e,i,n)=>{let a;if(s)return Promise.reject(t.signal.reason);if(null==i&&e.pages.length)return Promise.resolve(e);let o=(a={client:t.client,queryKey:t.queryKey,pageParam:i,direction:n?"backward":"forward",meta:t.options.meta},(0,r.addConsumeAwareSignal)(a,()=>t.signal,()=>s=!0),a),u=await d(o),{maxPages:h}=t.options,c=n?r.addToStart:r.addToEnd;return{pages:c(e.pages,u,h),pageParams:c(e.pageParams,i,h)}};if(n&&a.length){let e="backward"===n,t={pages:a,pageParams:o},s=(e?h:u)(i,t);c=await f(t,s,e)}else{let t=e??a.length;do{let e=0===l?o[0]??i.initialPageParam:u(i,c);if(l>0&&null==e)break;c=await f(c,e),l++}while(l<t)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=d}}}function u(e,{pages:t,pageParams:s}){let i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,s[i],s):void 0}function h(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}function c(e,t){return!!t&&null!=u(e,t)}function l(e,t){return!!t&&!!e.getPreviousPageParam&&null!=h(e,t)}e.s(["hasNextPage",()=>c,"hasPreviousPage",()=>l,"infiniteQueryBehavior",()=>o],721198);var d=class extends a.Removable{#d;#f;#p;#y;#o;#c;#v;#m;constructor(e){super(),this.#m=!1,this.#v=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#y=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#f=y(this.options),this.state=e.state??this.#f,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#d}get promise(){return this.#c?.promise}setOptions(e){if(this.options={...this.#v,...e},e?._type&&(this.#d=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=y(this.options);void 0!==e.data&&(this.setState(p(e.data,e.dataUpdatedAt)),this.#f=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#y.remove(this)}setData(e,t){let s=(0,r.replaceData)(this.state.data,e,this.options);return this.#l({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e){this.#l({type:"setState",state:e})}cancel(e){let t=this.#c?.promise;return this.#c?.cancel(e),t?t.then(r.noop).catch(r.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#f}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,r.resolveQueryBoolean)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,r.resolveStaleTime)(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(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,r.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#c?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#c?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#y.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.#c&&(this.#m||this.#b()?this.#c.cancel({revert:!0}):this.#c.cancelRetry()),this.scheduleGc()),this.#y.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#b(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){let s;if("idle"!==this.state.fetchStatus&&this.#c?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#c)return this.#c.continueRetry(),this.#c.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,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#m=!0,i.signal)}
1)},u=()=>{let e,s=(0,r.ensureQueryFn)(this.options,t),i=(a(e={client:this.#o,queryKey:this.queryKey,meta:this.meta}),e);return(this.#m=!1,this.options.persister)?this.options.persister(s,i,this):s(i)},h=(a(s={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:u}),s),c="infinite"===this.#d?o(this.options.pages):this.options.behavior;c?.onFetch(h,this),this.#p=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#l({type:"fetch",meta:h.fetchOptions?.meta}),this.#c=(0,n.createRetryer)({initialPromise:t?.initialPromise,fn:h.fetchFn,onCancel:e=>{e instanceof n.CancelledError&&e.revert&&this.setState({...this.#p,fetchStatus:"idle"}),i.abort()},onFail:(e,t)=>{this.#l({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{let e=await this.#c.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#y.config.onSuccess?.(e,this),this.#y.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof n.CancelledError){if(e.silent)return this.#c.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#l({type:"error",error:e}),this.#y.config.onError?.(e,this),this.#y.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(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,...f(t.data,this.options),fetchMeta:e.meta??null};case"success":let s={...t,...p(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#p=e.manual?s:void 0,s;case"error":let i=e.error;return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),i.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#y.notify({query:this,type:"updated",action:e})})}};function f(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function p(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function y(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,s=void 0!==t,i=s?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}e.s(["Query",()=>d,"fetchState",()=>f],386111);var v=e.i(614099),m=e.i(822474),b=e.i(953226),g=class extends v.Subscribable{constructor(e,t){super(),this.options=t,this.#o=e,this.#g=null,this.#S=(0,m.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#o;#O=void 0;#Q=void 0;#R=void 0;#C;#w;#S;#g;#P;#T;#M;#q;#F;#I;#D=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#O.addObserver(this),S(this.#O,this.options)?this.#E():this.updateResult(),this.#A())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return O(this.#O,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return O(this.#O,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#j(),this.#O.removeObserver(this)}setOptions(e){let t=this.options,s=this.#O;if(this.options=this.#o.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,r.resolveQueryBoolean)(this.options.enabled,this.#O))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#U(),this.#O.setOptions(this.options),t._defaulted&&!(0,r.shallowEqualObjects)(this.options,t)&&this.#o.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#O,observer:this});let i=this.hasListeners();i&&Q(this.#O,s,this.options,t)&&this.#E(),this.updateResult(),i&&(this.#O!==s||(0,r.resolveQueryBoolean)(this.options.enabled,this.#O)!==(0,r.resolveQueryBoolean)(t.enabled,this.#O)||(0,r.resolveStaleTime)(this.options.staleTime,this.#O)!==(0,r.resolveStaleTime)(t.staleTime,this.#O))&&this.#k();let n=this.#K();i&&(this.#O!==s||(0,r.resolveQueryBoolean)(this.options.enabled,this.#O)!==(0,r.resolveQueryBoolean)(t.enabled,this.#O)||n!==this.#I)&&this.#B(n)}getOptimisticResult(e){var t,s;let i=this.#o.getQueryCache().build(this.#o,e),n=this.createResult(i,e);return t=this,s=n,(0,r.shallowEqualObjects)(t.getCurrentResult(),s)||(this.#R=n,this.#w=this.options,this.#C=this.#O.state),n}getCurrentResult(){return this.#R}trackResult(e,t){return new Proxy(e,{get:(e,s)=>(this.trackProp(s),t?.(s),"promise"===s&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#S.status||this.#S.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,s))})}trackProp(e){this.#D.add(e)}getCurrentQuery(){return this.#O}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#o.defaultQueryOptions(e),s=this.#o.getQueryCache().build(this.#o,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#E({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#R))}#E(e){this.#U();let t=this.#O.fetch(this.options,e);return e?.throwOnError||(t=t.catch(r.noop)),t}#k(){this.#x();let e=(0,r.resolveStaleTime)(this.options.staleTime,this.#O);if(s.environmentManager.isServer()||this.#R.isStale||!(0,r.isValidTimeout)(e))return;let t=(0,r.timeUntilStale)(this.#R.dataUpdatedAt,e);this.#q=b.timeoutManager.setTimeout(()=>{this.#R.isStale||this.updateResult()},t+1)}#K(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#O):this.options.refetchInterval)??!1}#B(e){this.#j(),this.#I=e,!s.environmentManager.isServer()&&!1!==(0,r.resolveQueryBoolean)(this.options.enabled,this.#O)&&(0,r.isValidTimeout)(this.#I)&&0!==this.#I&&(this.#F=b.timeoutManager.setInterval(()=>
1{(this.options.refetchIntervalInBackground||t.focusManager.isFocused())&&this.#E()},this.#I))}#A(){this.#k(),this.#B(this.#K())}#x(){void 0!==this.#q&&(b.timeoutManager.clearTimeout(this.#q),this.#q=void 0)}#j(){void 0!==this.#F&&(b.timeoutManager.clearInterval(this.#F),this.#F=void 0)}createResult(e,t){let s,i=this.#O,n=this.options,a=this.#R,o=this.#C,u=this.#w,h=e!==i?e.state:this.#Q,{state:c}=e,l={...c},d=!1;if(t._optimisticResults){let s=this.hasListeners(),r=!s&&S(e,t),a=s&&Q(e,i,t,n);(r||a)&&(l={...l,...f(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(l.fetchStatus="idle")}let{error:p,errorUpdatedAt:y,status:v}=l;s=l.data;let b=!1;if(void 0!==t.placeholderData&&void 0===s&&"pending"===v){let e;a?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(e=a.data,b=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#M?.state.data,this.#M):t.placeholderData,void 0!==e&&(v="success",s=(0,r.replaceData)(a?.data,e,t),d=!0)}if(t.select&&void 0!==s&&!b)if(a&&s===o?.data&&t.select===this.#P)s=this.#T;else try{this.#P=t.select,s=t.select(s),s=(0,r.replaceData)(a?.data,s,t),this.#T=s,this.#g=null}catch(e){this.#g=e}this.#g&&(p=this.#g,s=this.#T,y=Date.now(),v="error");let g="fetching"===l.fetchStatus,O="pending"===v,C="error"===v,w=O&&g,P=void 0!==s,T={status:v,fetchStatus:l.fetchStatus,isPending:O,isSuccess:"success"===v,isError:C,isInitialLoading:w,isLoading:w,data:s,dataUpdatedAt:l.dataUpdatedAt,error:p,errorUpdatedAt:y,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>h.dataUpdateCount||l.errorUpdateCount>h.errorUpdateCount,isFetching:g,isRefetching:g&&!O,isLoadingError:C&&!P,isPaused:"paused"===l.fetchStatus,isPlaceholderData:d,isRefetchError:C&&P,isStale:R(e,t),refetch:this.refetch,promise:this.#S,isEnabled:!1!==(0,r.resolveQueryBoolean)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==T.data,s="error"===T.status&&!t,r=e=>{s?e.reject(T.error):t&&e.resolve(T.data)},n=()=>{r(this.#S=T.promise=(0,m.pendingThenable)())},a=this.#S;switch(a.status){case"pending":e.queryHash===i.queryHash&&r(a);break;case"fulfilled":(s||T.data!==a.value)&&n();break;case"rejected":s&&T.error===a.reason||n()}}return T}updateResult(){let e=this.#R,t=this.createResult(this.#O,this.options);if(this.#C=this.#O.state,this.#w=this.options,void 0!==this.#C.data&&(this.#M=this.#O),(0,r.shallowEqualObjects)(t,e))return;this.#R=t;let s=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.#D.size)return!0;let i=new Set(s??this.#D);return this.options.throwOnError&&i.add("error"),Object.keys(this.#R).some(t=>this.#R[t]!==e[t]&&i.has(t))};this.#L({listeners:s()})}#U(){let e=this.#o.getQueryCache().build(this.#o,this.options);if(e===this.#O)return;let t=this.#O;this.#O=e,this.#Q=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#A()}#L(e){i.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#R)}),this.#o.getQueryCache().notify({query:this.#O,type:"observerResultsUpdated"})})}};function S(e,t){return!1!==(0,r.resolveQueryBoolean)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,r.resolveQueryBoolean)(t.retryOnMount,e))||void 0!==e.state.data&&O(e,t,t.refetchOnMount)}function O(e,t,s){if(!1!==(0,r.resolveQueryBoolean)(t.enabled,e)&&"static"!==(0,r.resolveStaleTime)(t.staleTime,e)){let i="function"==typeof s?s(e):s;return"always"===i||!1!==i&&R(e,t)}return!1}function Q(e,t,s,i){return(e!==t||!1===(0,r.resolveQueryBoolean)(i.enabled,e))&&(!s.suspense||"error"!==e.state.status)&&R(e,s)}function R(e,t){return!1!==(0,r.resolveQueryBoolean)(t.enabled,e)&&e.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,e))}e.s(["QueryObserver",()=>g],995254)},839761,e=>{"use strict";var t=e.i(995254),s=e.i(721198),i=class extends t.QueryObserver{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}
1fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:i}=e,r=super.createResult(e,t),{isFetching:n,isRefetching:a,isError:o,isRefetchError:u}=r,h=i.fetchMeta?.fetchMore?.direction,c=o&&"forward"===h,l=n&&"forward"===h,d=o&&"backward"===h,f=n&&"backward"===h;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,s.hasNextPage)(t,i.data),hasPreviousPage:(0,s.hasPreviousPage)(t,i.data),isFetchNextPageError:c,isFetchingNextPage:l,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:u&&!c&&!d,isRefetching:a&&!l&&!f}}};e.s(["InfiniteQueryObserver",()=>i])},494401,e=>{"use strict";var t=e.i(450740),s=e.i(386111),i=e.i(34167),r=e.i(614099),n=class extends r.Subscribable{constructor(e={}){super(),this.config=e,this.#H=new Map}#H;build(e,i,r){let n=i.queryKey,a=i.queryHash??(0,t.hashQueryKeyByOptions)(n,i),o=this.get(a);return o||(o=new s.Query({client:e,queryKey:n,queryHash:a,options:e.defaultQueryOptions(i),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){this.#H.has(e.queryHash)||(this.#H.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#H.get(e.queryHash);t&&(e.destroy(),t===e&&this.#H.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#H.get(e)}getAll(){return[...this.#H.values()]}find(e){let s={exact:!0,...e};return this.getAll().find(e=>(0,t.matchQuery)(s,e))}findAll(e={}){let s=this.getAll();return Object.keys(e).length>0?s.filter(s=>(0,t.matchQuery)(e,s)):s}notify(e){i.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},a=e.i(942529),o=r,u=class extends o.Subscribable{constructor(e={}){super(),this.config=e,this.#_=new Set,this.#G=new Map,this.#N=0}#_;#G;#N;build(e,t,s){let i=new a.Mutation({client:e,mutationCache:this,mutationId:++this.#N,options:e.defaultMutationOptions(t),state:s});return this.add(i),i}add(e){this.#_.add(e);let t=h(e);if("string"==typeof t){let s=this.#G.get(t);s?s.push(e):this.#G.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#_.delete(e)){let t=h(e);if("string"==typeof t){let s=this.#G.get(t);if(s)if(s.length>1){let t=s.indexOf(e);-1!==t&&s.splice(t,1)}else s[0]===e&&this.#G.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=h(e);if("string"!=typeof t)return!0;{let s=this.#G.get(t),i=s?.find(e=>"pending"===e.state.status);return!i||i===e}}runNext(e){let t=h(e);if("string"!=typeof t)return Promise.resolve();{let s=this.#G.get(t)?.find(t=>
1t!==e&&t.state.isPaused);return s?.continue()??Promise.resolve()}}clear(){i.notifyManager.batch(()=>{this.#_.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#_.clear(),this.#G.clear()})}getAll(){return Array.from(this.#_)}find(e){let s={exact:!0,...e};return this.getAll().find(e=>(0,t.matchMutation)(s,e))}findAll(e={}){return this.getAll().filter(s=>(0,t.matchMutation)(e,s))}notify(e){i.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return i.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(t.noop))))}};function h(e){return e.options.scope?.id}var c=e.i(467784),l=e.i(586346),d=class{#W;#h;#v;#V;#z;#Z;#$;#J;constructor(e={}){this.#W=e.queryCache||new n,this.#h=e.mutationCache||new u,this.#v=e.defaultOptions||{},this.#V=new Map,this.#z=new Map,this.#Z=0}mount(){this.#Z++,1===this.#Z&&(this.#$=c.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#W.onFocus())}),this.#J=l.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#W.onOnline())}))}unmount(){this.#Z--,0===this.#Z&&(this.#$?.(),this.#$=void 0,this.#J?.(),this.#J=void 0)}isFetching(e){return this.#W.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#h.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#W.get(t.queryHash)?.state.data}ensureQueryData(e){let s=this.defaultQueryOptions(e),i=this.#W.build(this,s),r=i.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime((0,t.resolveStaleTime)(s.staleTime,i))&&this.prefetchQuery(s),Promise.resolve(r))}getQueriesData(e){return this.#W.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,s,i){let r=this.defaultQueryOptions({queryKey:e}),n=this.#W.get(r.queryHash),a=n?.state.data,o=(0,t.functionalUpdate)(s,a);if(void 0!==o)return this.#W.build(this,r).setData(o,{...i,manual:!0})}setQueriesData(e,t,s){return i.notifyManager.batch(()=>this.#W.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,s)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#W.get(t.queryHash)?.state}removeQueries(e){let t=this.#W;i.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let s=this.#W;return i.notifyManager.batch(()=>(s.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,s={}){let r={revert:!0,...s};return Promise.all(i.notifyManager.batch(()=>this.#W.findAll(e).map(e=>e.cancel(r)))).then(t.noop).catch(t.noop)}invalidateQueries(e,t={}){return i.notifyManager.batch(()=>(this.#W.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,s={}){let r={...s,cancelRefetch:s.cancelRefetch??!0};return Promise.all(i.notifyManager.batch(()=>this.#W.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let s=e.fetch(void 0,r);return r.throwOnError||(s=s.catch(t.noop)),"paused"===e.state.fetchStatus?Promise.resolve():s}))).then(t.noop)}fetchQuery(e){let s=this.defaultQueryOptions(e);void 0===s.retry&&(s.retry=!1);let i=this.#W.build(this,s);return i.isStaleByTime((0,t.resolveStaleTime)(s.staleTime,i))?i.fetch(s):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(t.noop).catch(t.noop)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(t.noop).catch(t.noop)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return l.onlineManager.isOnline()?this.#h.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#W}getMutationCache(){return this.#h}getDefaultOptions(){return this.#v}setDefaultOptions(e){this.#v=e}setQueryDefaults(e,s){this.#V.set((0,t.hashKey)(e),{queryKey:e,defaultOptions:s})}getQueryDefaults(e){let s=[...this.#V.values()],i={};return s.forEach(s=>{(0,t.partialMatchKey)(e,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(e,s){this.#z.set((0,t.hashKey)(e),{mutationKey:e,defaultOptions:s})}getMutationDefaults(e){let s=[...this.#z.values()],i={};
1return s.forEach(s=>{(0,t.partialMatchKey)(e,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;let s={...this.#v.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return s.queryHash||(s.queryHash=(0,t.hashQueryKeyByOptions)(s.queryKey,s)),void 0===s.refetchOnReconnect&&(s.refetchOnReconnect="always"!==s.networkMode),void 0===s.throwOnError&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===t.skipToken&&(s.enabled=!1),s}defaultMutationOptions(e){return e?._defaulted?e:{...this.#v.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#W.clear(),this.#h.clear()}};e.s(["QueryClient",()=>d],494401)}]);
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.