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]="631ffa81-d36a-ee3e-93ed-1558d7783b62")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,361221,e=>{"use strict";let t;var i=e.i(813723),s=(t=()=>i.isServer,{isServer:()=>t(),setIsServer(e){t=e}});e.s(["environmentManager",0,s])},646689,473620,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",0,t],473620);var i=new class extends t{#e;#t;#i;constructor(){super(),this.#i=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.#i)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#i=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,i],646689)},231278,e=>{"use strict";var t=e.i(869753),i=e.i(469706),s=e.i(968597),r=class extends i.Removable{#s;#r;#n;#a;constructor(e){super(),this.#s=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#r=[],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.#r.includes(e)||(this.#r.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#r=this.#r.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#r.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#o({type:"continue"})},i={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=(0,s.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r="pending"===this.state.status,n=!this.#a.canStart();try{if(r)t();else{this.#o({type:"pending",variables:e,isPaused:n}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,i);let t=await this.options.onMutate?.(e,i);t!==this.state.context&&this.#o({type:"pending",context:t,variables:e,isPaused:n})}let s=await this.#a.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,i),await this.options.onSuccess?.(s,e,this.state.context,i),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(s,null,e,this.state.context,i),this.#o({type:"success",data:s}),s}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,i)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,i)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,i)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,i)}catch(e){Promise.reject(e)}throw this.#o({type:"error",error:t}),t}finally{this.#n.runNext(this)}}#o(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};
2case"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.#r.forEach(t=>{t.onMutationUpdate(e)}),this.#n.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",0,r,"getDefaultState",0,n])},869753,e=>{"use strict";let t,i,s,r,n,a;var o=e.i(882756).systemSetTimeoutZero,u=(t=[],i=0,s=e=>{e()},r=e=>{e()},n=o,{batch:e=>{let a;i++;try{a=e()}finally{let e;--i||(e=t,t=[],e.length&&n(()=>{r(()=>{e.forEach(e=>{s(e)})})}))}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a=e=>{i?t.push(e):n(()=>{s(e)})},setNotifyFunction:e=>{s=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{n=e}});e.s(["notifyManager",0,u])},926498,848011,e=>{"use strict";var t=e.i(473620),i=new class extends t.Subscribable{#u=!0;#t;#i;constructor(){super(),this.#i=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#i=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#u!==e&&(this.#u=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#u}};e.s(["onlineManager",0,i],926498),e.i(813723),e.s(["pendingThenable",0,function(){let e,t,i=new Promise((i,s)=>{e=i,t=s});function s(e){Object.assign(i,e),delete i.resolve,delete i.reject}return i.status="pending",i.catch(()=>{}),i.resolve=t=>{s({status:"fulfilled",value:t}),e(t)},i.reject=e=>{s({status:"rejected",reason:e}),t(e)},i}],848011)},972692,143515,e=>{"use strict";var t=e.i(813723),i=e.i(869753),s=e.i(968597),r=e.i(469706);function n(e){return{onFetch:(i,s)=>{let r=i.options,n=i.fetchOptions?.meta?.fetchMore?.direction,u=i.state.data?.pages||[],c=i.state.data?.pageParams||[],l={pages:[],pageParams:[]},h=0,d=async()=>{let s=!1,d=(0,t.ensureQueryFn)(i.options,i.fetchOptions),f=async(e,r,n)=>{let a;if(s)return Promise.reject(i.signal.reason);if(null==r&&e.pages.length)return Promise.resolve(e);let o=(a={client:i.client,queryKey:i.queryKey,pageParam:r,direction:n?"backward":"forward",meta:i.options.meta},(0,t.addConsumeAwareSignal)(a,()=>i.signal,()=>s=!0),a),u=await d(o),{maxPages:c}=i.options,l=n?t.addToStart:t.addToEnd;return{pages:l(e.pages,u,c),pageParams:l(e.pageParams,r,c)}};if(n&&u.length){let e="backward"===n,t={pages:u,pageParams:c},i=(e?o:a)(r,t);l=await f(t,i,e)}else{let t=e??u.length;do{let e=0===h?c[0]??r.initialPageParam:a(r,l);if(h>0&&null==e)break;l=await f(l,e),h++}while(h<t)}return l};i.options.persister?i.fetchFn=()=>i.options.persister?.(d,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=d}}}function a(e,{pages:t,pageParams:i}){let s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,i[s],i):void 0}function o(e,{pages:t,pageParams:i}){return t.length>0?e.getPreviousPageParam?.(t[0],t,i[0],i):void 0}e.s(["hasNextPage",0,function(e,t){return!!t&&null!=a(e,t)},"hasPreviousPage",0,function(e,t){return!!t&&!!e.getPreviousPageParam&&null!=o(e,t)},"infiniteQueryBehavior",0,n],143515);var u=class extends r.Removable{#c;#l;#h;#d;#s;#a;#f;#p;constructor(e){super(),this.#p=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#d=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#l=h(this.options),this.state=e.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#c}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#f,...e},e?._type&&(this.#c=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=h(this.options);void 0!==e.data&&(this.setState(l(e.data,e.dataUpdatedAt)),this.#l=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#d.remove(this)}setData(e,i){let s=(0,t.replaceData)(this.state.data,e,this.options);return this.#o({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(e){this.#o({type:"setState",state:e})}cancel(e){let i=this.#a?.promise;return this.#a?.cancel(e),i?i.then(t.noop).catch(t.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#l}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,t.resolveQueryBoolean)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
2Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.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,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#d.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.#a&&(this.#p||this.#y()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#d.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#y(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,i){let r;if("idle"!==this.state.fetchStatus&&this.#a?.status()!=="rejected"){if(void 0!==this.state.data&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let a=new AbortController,o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#p=!0,a.signal)})},u=()=>{let e,s=(0,t.ensureQueryFn)(this.options,i),r=(o(e={client:this.#s,queryKey:this.queryKey,meta:this.meta}),e);return(this.#p=!1,this.options.persister)?this.options.persister(s,r,this):s(r)},c=(o(r={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:u}),r),l="infinite"===this.#c?n(this.options.pages):this.options.behavior;l?.onFetch(c,this),this.#h=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#o({type:"fetch",meta:c.fetchOptions?.meta}),this.#a=(0,s.createRetryer)({initialPromise:i?.initialPromise,fn:c.fetchFn,onCancel:e=>{e instanceof s.CancelledError&&e.revert&&this.setState({...this.#h,fetchStatus:"idle"}),a.abort()},onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#d.config.onSuccess?.(e,this),this.#d.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof s.CancelledError){if(e.silent)return this.#a.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#o({type:"error",error:e}),this.#d.config.onError?.(e,this),this.#d.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#o(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,...c(t.data,this.options),fetchMeta:e.meta??null};case"success":let i={...t,...l(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#h=e.manual?i:void 0,i;case"error":let s=e.error;return{...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),i.notifyManager.batch(()=>
2{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#d.notify({query:this,type:"updated",action:e})})}};function c(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,s.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function l(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function h(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,i=void 0!==t,s=i?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,u,"fetchState",0,c],972692)},469706,e=>{"use strict";var t=e.i(882756),i=e.i(361221),s=e.i(813723),r=class{#m;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,s.isValidTimeout)(this.gcTime)&&(this.#m=t.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(i.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#m&&(t.timeoutManager.clearTimeout(this.#m),this.#m=void 0)}};e.s(["Removable",0,r])},968597,e=>{"use strict";var t=e.i(646689),i=e.i(926498),s=e.i(848011),r=e.i(361221),n=e.i(813723);function a(e){return Math.min(1e3*2**e,3e4)}function o(e){return(e??"online")!=="online"||i.onlineManager.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};e.s(["CancelledError",0,u,"canFetch",0,o,"createRetryer",0,function(e){let c,l=!1,h=0,d=(0,s.pendingThenable)(),f=()=>t.focusManager.isFocused()&&("always"===e.networkMode||i.onlineManager.isOnline())&&e.canRun(),p=()=>o(e.networkMode)&&e.canRun(),y=e=>{"pending"===d.status&&(c?.(),d.resolve(e))},m=e=>{"pending"===d.status&&(c?.(),d.reject(e))},v=()=>new Promise(t=>{c=e=>{("pending"!==d.status||f())&&t(e)},e.onPause?.()}).then(()=>{c=void 0,"pending"===d.status&&e.onContinue?.()}),g=()=>{let t;if("pending"!==d.status)return;let i=0===h?e.initialPromise:void 0;try{t=i??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(y).catch(t=>{if("pending"!==d.status)return;let i=e.retry??3*!r.environmentManager.isServer(),s=e.retryDelay??a,o="function"==typeof s?s(h,t):s,u=!0===i||"number"==typeof i&&h<i||"function"==typeof i&&i(h,t);l||!u?m(t):(h++,e.onFail?.(h,t),(0,n.sleep)(o).then(()=>f()?void 0:v()).then(()=>{l?m(t):g()}))})};return{promise:d,status:()=>d.status,cancel:t=>{if("pending"===d.status){let i=new u(t);m(i),e.onCancel?.(i)}},continue:()=>(c?.(),d),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1},canStart:p,start:()=>(p()?g():v().then(g),d)}}])},882756,e=>{"use strict";var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},i=new class{#v=t;#g=!1;setTimeoutProvider(e){this.#v=e}setTimeout(e,t){return this.#v.setTimeout(e,t)}clearTimeout(e){this.#v.clearTimeout(e)}setInterval(e,t){return this.#v.setInterval(e,t)}clearInterval(e){this.#v.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,i])},813723,e=>{"use strict";var t=e.i(882756),i="u"<typeof window||"Deno"in globalThis;function s(e,t){return(t?.queryKeyHashFn||r)(e)}function r(e){return JSON.stringify(e,(e,t)=>c(t)?Object.keys(t).sort().reduce((e,i)=>(e[i]=t[i],e),{}):t)}function n(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(i=>n(e[i],t[i]))}var a=Object.prototype.hasOwnProperty;function o(e,t,i=0){if(e===t)return e;if(i>500)return t;let s=u(e)&&u(t);if(!s&&!(c(e)&&c(t)))return t;let r=(s?e:Object.keys(e)).length,n=s?t:Object.keys(t),l=n.length,h=s?Array(l):{},d=0;for(let u=0;u<l;u++){let c=s?u:n[u],l=e[c],f=t[c];if(l===f){h[c]=l,(s?u<r:a.call(e,c))&&d++;continue}if(null===l||null===f||"object"!=typeof l||"object"!=typeof f){h[c]=f;continue}let p=o(l,f,i+1);h[c]=p,p===l&&d++}return r===l&&d===r?e:h}function u(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function c(e){if(!l(e))return!1;let t=e.constructor;if(void 0===t)return!0;let i=t.prototype;return!!l(i)&&!!i.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}var h=Symbol();e.s(["addConsumeAwareSignal",0,function(e,t,i){let s,r=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),r||(r=!0,s.aborted?i():s.addEventListener("abort",i,{once:!0})),s)}),e},"addToEnd",0,function(e,t,i=0){let s=[...e,t];return i&&s.length>i?s.slice(1):s},"addToStart",0,function(e,t,i=0){let s=[t,...e];return i&&s.length>i?s.slice(0,-1):s},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==h?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,r,"hashQueryKeyByOptions",0,s,"isServer",0,i,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"keepPreviousData",0,function(e){return e},"matchMutation",0,function(e,t){let{exact:i,status:s,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(i){if(r(t.options.mutationKey)!==r(o))return!1}
2else if(!n(t.options.mutationKey,o))return!1}return(!s||t.state.status===s)&&(!a||!!a(t))},"matchQuery",0,function(e,t){let{type:i="all",exact:r,fetchStatus:a,predicate:o,queryKey:u,stale:c}=e;if(u){if(r){if(t.queryHash!==s(u,t.options))return!1}else if(!n(t.queryKey,u))return!1}if("all"!==i){let e=t.isActive();if("active"===i&&!e||"inactive"===i&&e)return!1}return("boolean"!=typeof c||t.isStale()===c)&&(!a||a===t.state.fetchStatus)&&(!o||!!o(t))},"noop",0,function(){},"partialMatchKey",0,n,"replaceData",0,function(e,t,i){return"function"==typeof i.structuralSharing?i.structuralSharing(e,t):!1!==i.structuralSharing?o(e,t):t},"replaceEqualDeep",0,o,"resolveQueryBoolean",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e)if(e[i]!==t[i])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,h,"sleep",0,function(e){return new Promise(i=>{t.timeoutManager.setTimeout(i,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}])},203515,e=>{"use strict";var t=e.i(801454),i=e.i(369251),s=e.i(867434);function r(){return"u">typeof window}function n(){return"production"}function a(){return"development"===((r()?window.vam:n())||"production")}function o(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function u(e){return(0,i.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,i.useEffect)(()=>{!function(e={debug:!0}){var t;if(!r())return;!function(e="auto"){if("auto"===e){window.vam=n();return}window.vam=e}(e.mode),window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)}),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let i=e.scriptSrc?e.scriptSrc:a()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?`${e.basePath}/insights/script.js`:"/_vercel/insights/script.js";if(document.head.querySelector(`script[src*="${i}"]`))return;let s=document.createElement("script");s.src=i,s.defer=!0,s.dataset.sdkn="@vercel/analytics"+(e.framework?`/${e.framework}`:""),s.dataset.sdkv="1.6.1",e.disableAutoTrack&&(s.dataset.disableAutoTrack="1"),e.endpoint?s.dataset.endpoint=e.endpoint:e.basePath&&(s.dataset.endpoint=`${e.basePath}/insights`),e.dsn&&(s.dataset.dsn=e.dsn),s.onerror=()=>{let e=a()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${i}. ${e}`)},a()&&!1===e.debug&&(s.dataset.debug="false"),document.head.appendChild(s)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,i.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var i;null==(i=window.va)||i.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}function c(e){let r,n,a,{route:c,path:l}=(r=(0,s.useParams)(),n=(0,s.useSearchParams)(),a=(0,s.usePathname)(),r?{route:function(e,t){if(!e||!t)return e;let i=e;try{let e=Object.entries(t);for(let[t,s]of e)if(!Array.isArray(s)){let e=o(s);e.test(i)&&(i=i.replace(e,`/[${t}]`))}for(let[t,s]of e)if(Array.isArray(s)){let e=o(s.join("/"));e.test(i)&&(i=i.replace(e,`/[...${t}]`))}return i}catch(t){return e}}(a,Object.keys(r).length?r:Object.fromEntries(n.entries())),path:a}:{route:null,path:a});return i.default.createElement(u,{path:l,route:c,...e,basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}(),framework:"next"})}e.s(["Analytics",0,function(e){return i.default.createElement(i.Suspense,{fallback:null},i.default.createElement(c,{...e}))}])},476496,e=>{"use strict";var t=e.i(801454),i=e.i(369251),s=e.i(867434);function r(){return false}function n(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function a(e){(0,i.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let s=(0,i.useRef)(null);return(0,i.useEffect)(()=>
2{if(s.current)e.route&&s.current(e.route);else{let i=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let i=e.scriptSrc?e.scriptSrc:r()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${i}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let s=document.createElement("script");return s.src=i,s.defer=!0,s.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),s.dataset.sdkv="1.3.1",e.sampleRate&&(s.dataset.sampleRate=e.sampleRate.toString()),e.route&&(s.dataset.route=e.route),e.endpoint?s.dataset.endpoint=e.endpoint:e.basePath&&(s.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(s.dataset.dsn=e.dsn),r()&&!1===e.debug&&(s.dataset.debug="false"),s.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${i}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(s),{setRoute:e=>{s.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});i&&(s.current=i.setRoute)}},[e.route]),null}function o(e){let r=(()=>{let e=(0,s.useParams)(),t=(0,s.useSearchParams)()||new URLSearchParams,i=(0,s.usePathname)();if(!e)return null;let r=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!i||!r)return i;let a=i;try{let e=Object.entries(r);for(let[t,i]of e)if(!Array.isArray(i)){let e=n(i);e.test(a)&&(a=a.replace(e,`/[${t}]`))}for(let[t,i]of e)if(Array.isArray(i)){let e=n(i.join("/"));e.test(a)&&(a=a.replace(e,`/[...${t}]`))}return a}catch(e){return i}})();return i.default.createElement(a,{route:r,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return i.default.createElement(i.Suspense,{fallback:null},i.default.createElement(o,{...e}))}])},635790,e=>{"use strict";var t=e.i(369251),i=(e,t,i,s,r,n,a,o)=>{let u=document.documentElement,c=["light","dark"];function l(t){var i;(Array.isArray(e)?e:[e]).forEach(e=>{let i="class"===e,s=i&&n?r.map(e=>n[e]||e):r;i?(u.classList.remove(...s),u.classList.add(n&&n[t]?n[t]:t)):u.setAttribute(e,t)}),i=t,o&&c.includes(i)&&(u.style.colorScheme=i)}if(s)l(s);else try{let e=localStorage.getItem(t)||i,s=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;l(s)}catch(e){}},s=["light","dark"],r="(prefers-color-scheme: dark)",n="u"<typeof window,a=t.createContext(void 0),o={setTheme:e=>{},themes:[]},u=["light","dark"],c=({forcedTheme:e,disableTransitionOnChange:i=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:c="theme",themes:p=u,defaultTheme:y=n?"system":"light",attribute:m="data-theme",value:v,children:g,nonce:b,scriptProps:w})=>{let[S,C]=t.useState(()=>h(c,y)),[P,E]=t.useState(()=>"system"===S?f():S),A=v?Object.values(v):p,T=t.useCallback(e=>{let t=e;if(!t)return;"system"===e&&n&&(t=f());let r=v?v[t]:t,a=i?d(b):null,u=document.documentElement,c=e=>{"class"===e?(u.classList.remove(...A),r&&u.classList.add(r)):e.startsWith("data-")&&(r?u.setAttribute(e,r):u.removeAttribute(e))};if(Array.isArray(m)?m.forEach(c):c(m),o){let e=s.includes(y)?y:null,i=s.includes(t)?t:e;u.style.colorScheme=i}null==a||a()},[b]),O=t.useCallback(e=>{let t="function"==typeof e?e(S):e;C(t);try{localStorage.setItem(c,t)}catch(e){}},[S]),q=t.useCallback(t=>{E(f(t)),"system"===S&&n&&!e&&T("system")},[S,e]);t.useEffect(()=>{let e=window.matchMedia(r);return e.addListener(q),q(e),()=>e.removeListener(q)},[q]),t.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?C(e.newValue):O(y))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[O]),t.useEffect(()=>{T(null!=e?e:S)},[e,S]);let k=t.useMemo(()=>({theme:S,setTheme:O,forcedTheme:e,resolvedTheme:"system"===S?P:S,themes:n?[...p,"system"]:p,systemTheme:n?P:void 0}),[S,O,e,P,n,p]);return t.createElement(a.Provider,{value:k},t.createElement(l,{forcedTheme:e,storageKey:c,attribute:m,enableSystem:n,enableColorScheme:o,defaultTheme:y,value:v,themes:p,nonce:b,scriptProps:w}),g)},l=t.memo(({forcedTheme:e,storageKey:s,attribute:r,enableSystem:n,enableColorScheme:a,defaultTheme:o,value:u,themes:c,nonce:l,scriptProps:h})=>{let d=JSON.stringify([r,s,o,e,c,u,n,a]).slice(1,-1);return t.createElement("script",{...h,suppressHydrationWarning:!0,nonce:"u"<typeof window?l:"",dangerouslySetInnerHTML:{__html:`(${i.toString()})(${d})`}})}),h=(e,t)=>{let i;if(!n){try{i=localStorage.getItem(e)||void 0}catch(e){}return i||t}},d=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},f=e=>
2(e||(e=window.matchMedia(r)),e.matches?"dark":"light");e.s(["ThemeProvider",0,e=>t.useContext(a)?t.createElement(t.Fragment,null,e.children):t.createElement(c,{...e}),"useTheme",0,()=>{var e;return null!=(e=t.useContext(a))?e:o}])},684738,(e,t,i)=>{t.exports=e.r(403223)},943516,e=>{"use strict";var t=e.i(970093),i=e.i(225931),s=e.i(684738),r=e.i(360936),n=e.i(310851);function a(){}let o="jaydai_consent_id",u="jaydai_consent_logged",c=null,l=null;function h(){c&&clearTimeout(c),c=setTimeout(d,350)}function d(){let e=window.tarteaucitron;if(!e?.state)return;let t=document.cookie.match(/(?:^|;\s*)tarteaucitron=([^;]*)/)?.[1];if(!t||t.includes("=wait"))return;let i=!0===e.state[r.TAC_ANALYTICS_KEY],s=`ga4=${i}`;if(s===l)return;let a="";try{a=localStorage.getItem(u)||""}catch{}if(s!==a){let e;l=s;try{localStorage.setItem(u,s)}catch{}fetch("/api/consent-log",{method:"POST",headers:{"Content-Type":"application/json",...n.CSRF_HEADERS},keepalive:!0,body:JSON.stringify({consentId:function(){try{let e=localStorage.getItem(o);return e||(e=crypto.randomUUID(),localStorage.setItem(o,e)),e}catch{return""}}(),locale:(e=document.cookie.match(/(?:^|;\s*)app-locale=([^;]*)/)?.[1])?e.slice(0,2).toLowerCase():"en",analytics:i,marketing:!1,services:{[r.TAC_ANALYTICS_KEY]:i},rawCookie:decodeURIComponent(t)})}).catch(()=>{})}}let f=null;function p(){let e=document.documentElement,t=document.getElementById("tarteaucitronAlertBig");if(t&&"none"!==getComputedStyle(t).display&&t.getBoundingClientRect().height>0&&t){f?.observe(t);let i=Math.max(0,Math.ceil(window.innerHeight-t.getBoundingClientRect().top));e.style.setProperty("--cookie-banner-inset",`${i}px`),e.classList.add("has-cookie-banner")}else e.classList.remove("has-cookie-banner"),e.style.removeProperty("--cookie-banner-inset")}let y=!1;function m(){let e,t=window.tarteaucitron;if(!t||y)return;y=!0;let i=window.location.hostname;t.services[r.TAC_ANALYTICS_KEY]={key:r.TAC_ANALYTICS_KEY,type:"analytic",name:"Amplitude & PostHog",uri:"https://amplitude.com/privacy",needConsent:!0,cookies:["AMP_*","amplitude_id_*"],js:a,fallback:a},t.lang=t.lang||{},t.lang[r.TAC_ANALYTICS_KEY]={title:"Amplitude & PostHog",details:"fr"===window.tarteaucitronForceLanguage?"Analytics produit (Amplitude & PostHog, hébergé en UE). Nous aide à comprendre l'usage de l'app.":"Product analytics (Amplitude & PostHog, EU-hosted). Helps us understand how the app is used."},t.init({privacyUrl:"https://www.jayd.ai/privacy",readmoreLink:"https://www.jayd.ai/cookies",cookieName:"tarteaucitron",cookieDomain:"localhost"===i||"127.0.0.1"===i?"":".jayd.ai",orientation:"bottom",showDetailsOnClick:!1,serviceDefaultState:"wait",highPrivacy:!0,softConsentMode:!1,handleBrowserDNTRequest:!1,DenyAllCta:!0,AcceptAllCta:!0,mandatory:!0,mandatoryCta:!0,cookieslist:!0,showIcon:!1,iconPosition:"BottomRight",showAlertSmall:!1,closePopup:!1,moreInfoLink:!0,removeCredit:!0,useExternalCss:!1,useExternalJs:!1,googleConsentMode:!1,bingConsentMode:!1,dataLayer:!1}),t.job=t.job||[],t.job.push(r.TAC_ANALYTICS_KEY),document.addEventListener("tac.consent_updated",h),document.addEventListener("click",e=>{let t=e.target;t?.closest("#tarteaucitronAllDenied2, #tarteaucitronAllAllowed2")&&window.setTimeout(()=>window.tarteaucitron?.userInterface?.closePanel?.(),0)}),f=new ResizeObserver(e=()=>requestAnimationFrame(p)),new MutationObserver(e).observe(document.body,{childList:!0}),window.addEventListener("resize",e,{passive:!0}),document.addEventListener("tac.consent_updated",e),e(),window.setTimeout(e,500)}e.s(["CookieConsent",0,function(){let e,r=(0,i.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(s.default,{id:"tarteaucitron-loader",src:"/vendor/tarteaucitron/tarteaucitron.min.js",strategy:"afterInteractive",onLoad:m,onReady:m}),r[0]=e):e=r[0],e}])},582565,e=>{"use strict";var t=e.i(970093),i=e.i(225931),s=e.i(369251),r=e.i(867434);e.i(44570);var n=e.i(749492),a=e.i(700482),o=e.i(177527),u=e.i(360936);let c=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,l=/^\d+$/,h=(0,s.createContext)(null);function d(){n.analyticsService.flush()}function f(e,t){n.analyticsService.incrementProperty(e,void 0===t?1:t)}function p(e){n.analyticsService.identify(e)}function y(e,t){n.analyticsService.track(e,void 0===t?{}:t)}function m(){(0,u.denyConsent)()}e.s(["AnalyticsProvider",0,function(e){let v,g,b,w,S,C,P,E,A,T,O,q,k=(0,i.c)(28),{children:M}=e,j=(0,r.usePathname)(),{user:F,isAuthenticated:R}=(0,a.useAuth)(),{locale:I}=(0,o.useI18n)(),_=(0,s.useRef)(null);k[0]!==R||k[1]!==I||k[2]!==F?(v=()=>{if(R&&F?.id){n.analyticsService.initialize(F.id);let e=F.email?.split("@")[1]??null;n.analyticsService.identify({user_id:F.id,locale:I,email_domain:e}),n.analyticsService.setLocale(I),_.current!==F.id&&(_.current=F.id,n.analyticsService.incrementProperty("webapp_sessions_count"))}},k[0]=R,k[1]=I,k[2]=F,k[3]=v):v=k[3];let D=F?.id,L=F?.email;k[4]!==R||k[5]!==I||k[6]!==D||k[7]!==L?(g=[R,D,L,I],k[4]=R,k[5]=I,k[6]=D,k[7]=L,k[8]=g):g=k[8],(0,s.useEffect)(v,g),k[9]!==R||k[10]!==j?(b=()=>{j&&R&&n.analyticsService.trackPageViewed({page_name:function(e){if(!e||"/"===e)return"Home";
2let t=e.split("/").filter(Boolean).map(e=>c.test(e)||l.test(e)?":id":e);return 0===t.length?"Home":t.join(" > ")}(j),page_path:j,referrer:"u">typeof document?document.referrer:void 0})},w=[j,R],k[9]=R,k[10]=j,k[11]=b,k[12]=w):(b=k[11],w=k[12]),(0,s.useEffect)(b,w),k[13]!==R?(S=()=>{},C=[R],k[13]=R,k[14]=S,k[15]=C):(S=k[14],C=k[15]),(0,s.useEffect)(S,C),k[16]!==F?(P=()=>{(0,u.grantConsent)(),F?.id&&n.analyticsService.initialize(F.id)},k[16]=F,k[17]=P):P=k[17];let Q=P;k[18]!==j?(E=e=>{n.analyticsService.trackPageViewed({page_name:e,page_path:j||""})},k[18]=j,k[19]=E):E=k[19];let x=E;k[20]===Symbol.for("react.memo_cache_sentinel")?(A=(0,u.hasConsent)(),T=(0,u.isConsentPending)(),k[20]=A,k[21]=T):(A=k[20],T=k[21]),k[22]!==Q||k[23]!==x?(O={hasConsent:A,isConsentPending:T,grantConsent:Q,denyConsent:m,track:y,identify:p,incrementProperty:f,trackPageViewed:x,flush:d},k[22]=Q,k[23]=x,k[24]=O):O=k[24];let K=O;return k[25]!==M||k[26]!==K?(q=(0,t.jsx)(h.Provider,{value:K,children:M}),k[25]=M,k[26]=K,k[27]=q):q=k[27],q},"useAnalytics",0,function(){let e=(0,s.useContext)(h);if(!e)throw Error("useAnalytics must be used within an AnalyticsProvider");return e}],582565)},950898,e=>{"use strict";var t=e.i(970093),i=e.i(225931),s=e.i(819955),r=e.i(813723),n=e.i(972692),a=e.i(869753),o=e.i(473620),u=class extends o.Subscribable{constructor(e={}){super(),this.config=e,this.#b=new Map}#b;build(e,t,i){let s=t.queryKey,a=t.queryHash??(0,r.hashQueryKeyByOptions)(s,t),o=this.get(a);return o||(o=new n.Query({client:e,queryKey:s,queryHash:a,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){this.#b.has(e.queryHash)||(this.#b.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#b.get(e.queryHash);t&&(e.destroy(),t===e&&this.#b.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){a.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#b.get(e)}getAll(){return[...this.#b.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r.matchQuery)(e,t)):t}notify(e){a.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){a.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){a.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},c=e.i(231278),l=o,h=class extends l.Subscribable{constructor(e={}){super(),this.config=e,this.#w=new Set,this.#S=new Map,this.#C=0}#w;#S;#C;build(e,t,i){let s=new c.Mutation({client:e,mutationCache:this,mutationId:++this.#C,options:e.defaultMutationOptions(t),state:i});return this.add(s),s}add(e){this.#w.add(e);let t=d(e);if("string"==typeof t){let i=this.#S.get(t);i?i.push(e):this.#S.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#w.delete(e)){let t=d(e);if("string"==typeof t){let i=this.#S.get(t);if(i)if(i.length>1){let t=i.indexOf(e);-1!==t&&i.splice(t,1)}else i[0]===e&&this.#S.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=d(e);if("string"!=typeof t)return!0;{let i=this.#S.get(t),s=i?.find(e=>"pending"===e.state.status);return!s||s===e}}runNext(e){let t=d(e);if("string"!=typeof t)return Promise.resolve();{let i=this.#S.get(t)?.find(t=>
2t!==e&&t.state.isPaused);return i?.continue()??Promise.resolve()}}clear(){a.notifyManager.batch(()=>{this.#w.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#w.clear(),this.#S.clear()})}getAll(){return Array.from(this.#w)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.matchMutation)(e,t))}notify(e){a.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return a.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.noop))))}};function d(e){return e.options.scope?.id}var f=e.i(646689),p=e.i(926498),y=class{#P;#n;#f;#E;#A;#T;#O;#q;constructor(e={}){this.#P=e.queryCache||new u,this.#n=e.mutationCache||new h,this.#f=e.defaultOptions||{},this.#E=new Map,this.#A=new Map,this.#T=0}mount(){this.#T++,1===this.#T&&(this.#O=f.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#P.onFocus())}),this.#q=p.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#P.onOnline())}))}unmount(){this.#T--,0===this.#T&&(this.#O?.(),this.#O=void 0,this.#q?.(),this.#q=void 0)}isFetching(e){return this.#P.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#P.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),i=this.#P.build(this,t),s=i.state.data;return void 0===s?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#P.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,i){let s=this.defaultQueryOptions({queryKey:e}),n=this.#P.get(s.queryHash),a=n?.state.data,o=(0,r.functionalUpdate)(t,a);if(void 0!==o)return this.#P.build(this,s).setData(o,{...i,manual:!0})}setQueriesData(e,t,i){return a.notifyManager.batch(()=>this.#P.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,i)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#P.get(t.queryHash)?.state}removeQueries(e){let t=this.#P;a.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let i=this.#P;return a.notifyManager.batch(()=>(i.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let i={revert:!0,...t};return Promise.all(a.notifyManager.batch(()=>this.#P.findAll(e).map(e=>e.cancel(i)))).then(r.noop).catch(r.noop)}invalidateQueries(e,t={}){return a.notifyManager.batch(()=>(this.#P.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let i={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(a.notifyManager.batch(()=>this.#P.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,i);return i.throwOnError||(t=t.catch(r.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let i=this.#P.build(this,t);return i.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.noop).catch(r.noop)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.noop).catch(r.noop)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return p.onlineManager.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#P}getMutationCache(){return this.#n}getDefaultOptions(){return this.#f}setDefaultOptions(e){this.#f=e}setQueryDefaults(e,t){this.#E.set((0,r.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#E.values()],i={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.queryKey)&&Object.assign(i,t.defaultOptions)}),i}setMutationDefaults(e,t){this.#A.set((0,r.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#A.values()],i={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.mutationKey)&&Object.assign(i,t.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#f.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#f.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#P.clear(),this.#n.clear()}},m=e.i(305484),v=e.i(369251);e.i(324016);var g=e.i(454487),b=e.i(402997),w=e.i(778497);function S(){return new y({queryCache:new u({onError:E}),defaultOptions:{queries:{staleTime:3e5,gcTime:6e5,retry:P,refetchOnWindowFocus:!1},mutations:{onError:C}}})}function C(e){return w.logger.error("Mutation error:",e)}function P(e,t){return(!(t instanceof g.ApiError)||!(t.status>=400)||!(t.status<500))&&e<1}function E(e,t){(0,b.isExpectedClientError)(e)||e instanceof g.ApiError&&401===e.status||e instanceof Error&&("AbortError"===e.name||/\babort(ed)?\b|\bcancell?ed\b/i.test(e.message))||s.captureException(e,{tags:{source:"react-query"},contexts:{query:{queryKey:JSON.stringify(t.queryKey).slice(0,200)}}})}e.s(["QueryProvider",0,function(e){let s,r=(0,i.c)(3),{children:n}=e,[a]=(0,v.useState)(S);return r[0]!==n||r[1]!==a?(s=(0,t.jsx)(m.QueryClientProvider,{client:a,children:n}),r[0]=n,r[1]=a,r[2]=s):s=r[2],s}],950898)},407738,e=>{"use strict";var t=e.i(970093),i=e.i(225931),s=e.i(635790);e.s(["ThemeProvider",0,function(e){let r,n,a,o=(0,i.c)(6);return o[0]!==e?({children:r,...n}=e,o[0]=e,o[1]=r,o[2]=n):(r=o[1],n=o[2]),o[3]!==r||o[4]!==n?(a=(0,t.jsx)(s.ThemeProvider,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,...n,children:r}),o[3]=r,o[4]=n,o[5]=a):a=o[5],a}])}]); 3 4//# debugId=631ffa81-d36a-ee3e-93ed-1558d7783b62
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.