1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[914],{9343:(e,t,r)=>{r.d(t,{U6:()=>y,Vh:()=>g,f1:()=>h,jr:()=>O,vX:()=>f});var n=r(45015),s=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(e,t)=>function(){return t||(0,e[u(e)[0]])((t={exports:{}}).exports,t),t.exports},h=(e,t,r)=>(r=null!=e?s(a(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var s,a=u(t),c=0,h=a.length;c<h;c++)s=a[c],l.call(e,s)||s===r||i(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(n=o(t,s))||n.enumerable});return e})(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e));let d=()=>{},p=e=>{Object.freeze&&Object.freeze(e)},f=e=>(function e(t,r,n){let s=r.join(".");return null!=n[s]||(n[s]=new Proxy(d,{get(s,i){if("string"==typeof i&&"then"!==i)return e(t,[...r,i],n)},apply(e,n,s){let i=r[r.length-1];if("valueOf"===i||"toString"===i||"toJSON"===i){let e=r.slice(0,-1).join(".");return`tRPC.proxy(${e})`}let o={args:s,path:r};return"call"===i?o={args:s.length>=2?[s[1]]:[],path:r.slice(0,-1)}:"apply"===i&&(o={args:s.length>=2?s[1]:[],path:r.slice(0,-1)}),p(o.args),p(o.path),t(o)}})),n[s]})(e,[],(0,n.vB)()),y=e=>new Proxy(d,{get(t,r){if("then"!==r)return e(r)}});var m=c({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),v=c({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=m().default;t.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=r(s))return s;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},t.exports.__esModule=!0,t.exports.default=t.exports}}),b=c({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=m().default,n=v();t.exports=function(e){var t=n(e,"string");return"symbol"==r(t)?t:t+""},t.exports.__esModule=!0,t.exports.default=t.exports}}),g=c({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=b();t.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},t.exports.__esModule=!0,t.exports.default=t.exports}}),O=c({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=g();function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}t.exports=function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?n(Object(s),!0).forEach(function(t){r(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e},t.exports.__esModule=!0,t.exports.default=t.exports}});h(O(),1)},17554:(e,t,r)=>{r.d(t,{Ke:()=>H,XT:()=>B,Xq:()=>$,n2:()=>X,fu:()=>k});var n=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,u=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,l=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},c=(e,t,r)=>(r=null!=e?n(u(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var u,l=o(t),c=0,h=l.length;c<h;c++)u=l[c],a.call(e,u)||u===r||s(e,u,{get:(e=>t[e]).bind(null,u),enumerable:!(n=i(t,u))||n.enumerable});return e}
1)(!t&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),h=l({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),d=l({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=h().default;t.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=r(s))return s;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},t.exports.__esModule=!0,t.exports.default=t.exports}}),p=l({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=h().default,n=d();t.exports=function(e){var t=n(e,"string");return"symbol"==r(t)?t:t+""},t.exports.__esModule=!0,t.exports.default=t.exports}}),f=l({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=p();t.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},t.exports.__esModule=!0,t.exports.default=t.exports}}),y=l({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=f();function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}t.exports=function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?n(Object(s),!0).forEach(function(t){r(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e},t.exports.__esModule=!0,t.exports.default=t.exports}});function m(e){let t={subscribe(t){let r=null,n=!1,s=!1,i=!1;function o(){if(null===r){i=!0;return}!s&&(s=!0,"function"==typeof r?r():r&&r.unsubscribe())}return r=e({next(e){var r;n||null==(r=t.next)||r.call(t,e)},error(e){var r;n||(n=!0,null==(r=t.error)||r.call(t,e),o())},complete(){var e;n||(n=!0,null==(e=t.complete)||e.call(t),o())}}),i&&o(),{unsubscribe:o}},pipe:(...e)=>e.reduce(v,t)};return t}function v(e,t){return t(e)}var b=r(45015),g=c(f(),1),O=c(y(),1),x=class e extends Error{constructor(t,r){var n,s;let i=null==r?void 0:r.cause;super(t,{cause:i}),(0,g.default)(this,"cause",void 0),(0,g.default)(this,"shape",void 0),(0,g.default)(this,"data",void 0),(0,g.default)(this,"meta",void 0),this.meta=null==r?void 0:r.meta,this.cause=i,this.shape=null==r||null==(n=r.result)?void 0:n.error,this.data=null==r||null==(s=r.result)?void 0:s.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,e.prototype)}static from(t,r={}){return t instanceof x?(r.meta&&(t.meta=(0,O.default)((0,O.default)({},t.meta),r.meta)),t):(0,b.Gv)(t)&&(0,b.Gv)(t.error)&&"number"==typeof t.error.code&&"string"==typeof t.error.message?new e(t.error.message,(0,O.default)((0,O.default)({},r),{},{result:t,cause:r.cause})):new e("string"==typeof t?t:(0,b.Gv)(t)&&"string"==typeof t.message?t.message:"Unknown error",(0,O.default)((0,O.default)({},r),{},{cause:t}))}},w=c(y());let j={query:"GET",mutation:"POST",subscription:"PATCH"};function P(e){return"input"in e?e.transformer.input.serialize(e.input):function(e){let t={};for(let r=0;r<e.length;r++){let n=e[r];t[r]=n}return t}(e.inputs.map(t=>e.transformer.input.serialize(t)))}let S=e=>{let t=e.url.split("?"),r=t[0].replace(/\/$/,"")+"/"+e.path,n=[];if(t[1]&&n.push(t[1]),"inputs"in e&&n.push("batch=1"),"query"===e.type||"subscription"===e.type){let t=P(e);void 0!==t&&"POST"!==e.methodOverride&&n.push(`input=${encodeURIComponent(JSON.stringify(t))}`)}return n.length&&(r+="?"+n.join("&")),r},R=e=>{if("query"===e.type&&"POST"!==e.methodOverride)return;let t=P(e);return void 0!==t?JSON.stringify(t):void 0};
1var E=class extends Error{constructor(){let e="AbortError";super(e),this.name=e,this.message=e}};async function C(e){var t,r,n,s=e.signal;if(null==s?void 0:s.aborted){if(null==(n=s.throwIfAborted)||n.call(s),"undefined"!=typeof DOMException)throw new DOMException("AbortError","AbortError");throw new E}let i=e.getUrl(e),o=e.getBody(e),u=null!=(t=e.methodOverride)?t:j[e.type],a=await (async()=>{let t=await e.headers();return Symbol.iterator in t?Object.fromEntries(t):t})(),l=(0,w.default)((0,w.default)((0,w.default)({},e.contentTypeHeader&&"GET"!==u?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{[null!=(r=e.trpcAcceptHeaderKey)?r:"trpc-accept"]:e.trpcAcceptHeader}:void 0),a);return(function(e){if(e)return e;if("undefined"!=typeof window&&"function"==typeof window.fetch)return window.fetch;if("undefined"!=typeof globalThis&&"function"==typeof globalThis.fetch)return globalThis.fetch;throw Error("No fetch implementation found")})(e.fetch)(i,{method:u,signal:e.signal,body:o,headers:l})}async function Q(e){let t={},r=await C(e);t.response=r;let n=await r.json();return t.responseJSON=n,{json:n,meta:t}}c(y(),1);var _=r(9343);(0,_.f1)((0,_.Vh)(),1);var T=(0,_.f1)((0,_.jr)(),1),q=class extends Error{constructor(){super("Unable to transform response from server")}};(0,_.f1)((0,_.jr)(),1),Symbol();let I=()=>{throw Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function M(e){let t=null,r=null;function n(){let n=function(t){let r=[[]],n=0;for(;;){var s,i;let o=t[n];if(!o)break;let u=r[r.length-1];if(o.aborted){null==(s=o.reject)||s.call(o,Error("Aborted")),n++;continue}if(e.validate(u.concat(o).map(e=>e.key))){u.push(o),n++;continue}if(0===u.length){null==(i=o.reject)||i.call(o,Error("Input is too big for a single dispatch")),n++;continue}r.push([])}return r}(t);for(let s of(clearTimeout(r),r=null,t=null,n)){if(!s.length)continue;let t={items:s};for(let e of s)e.batch=t;e.fetch(t.items.map(e=>e.key)).then(async e=>{for(let n of(await Promise.all(e.map(async(e,r)=>{var n,s;let i=t.items[r];try{let t=await Promise.resolve(e);null==(n=i.resolve)||n.call(i,t)}catch(e){null==(s=i.reject)||s.call(i,e)}i.batch=null,i.reject=null,i.resolve=null})),t.items)){var r;null==(r=n.reject)||r.call(n,Error("Missing result")),n.batch=null}}).catch(e=>{for(let n of t.items){var r;null==(r=n.reject)||r.call(n,e),n.batch=null}})}}return{load:function(e){let s={aborted:!1,key:e,batch:null,resolve:I,reject:I},i=new Promise((e,r)=>{s.reject=r,s.resolve=e,null!=t||(t=[]),t.push(s)});return null!=r||(r=setTimeout(n)),i}}}var D=c(y(),1);function k(e){var t,r,n;let s={url:e.url.toString(),fetch:e.fetch,transformer:(n=e.transformer)?"input"in n?n:{input:n,output:n}:{input:{serialize:e=>e,deserialize:e=>e},output:{serialize:e=>e,deserialize:e=>e}},methodOverride:e.methodOverride},i=null!=(t=e.maxURLLength)?t:1/0,o=null!=(r=e.maxItems)?r:1/0;return()=>{let t=t=>({validate(e){if(i===1/0&&o===1/0)return!0;if(e.length>o)return!1;let r=e.map(e=>e.path).join(","),n=e.map(e=>e.input);return S((0,D.default)((0,D.default)({},s),{},{type:t,path:r,inputs:n,signal:null})).length<=i},async fetch(r){let n,i=r.map(e=>e.path).join(","),o=r.map(e=>e.input),u=function(...e){let t=new AbortController,r=e.length,n=0,s=()=>{++n===r&&t.abort()};for(let t of e)(null==t?void 0:t.aborted)?s():null==t||t.addEventListener("abort",s,{once:!0});return t.signal}(...r.map(e=>e.signal)),a=await (n=(0,D.default)((0,D.default)({},s),{},{path:i,inputs:o,type:t,headers:()=>e.headers?"function"==typeof e.headers?e.headers({opList:r}):e.headers:{},signal:u}),Q((0,w.default)((0,w.default)({},n),{},{contentTypeHeader:"application/json",getUrl:S,getBody:R})));return(Array.isArray(a.json)?a.json:r.map(()=>a.json)).map(e=>({meta:a.meta,json:e}))}}),r={query:M(t("query")),mutation:M(t("mutation"))};return({op:e})=>m(t=>{let n;if("subscription"===e.type)throw Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");return r[e.type].load(e).then(e=>{n=e;let r=function(e,t){let r;try{r=function(e,t){if("error"in e){let r=t.deserialize(e.error);return{ok:!1,error:(0,T.default)((0,T.default)({},e),{},{error:r})}}return{ok:!0,result:(0,T.default)((0,T.default)({},e.result),(!e.result.type||"data"===e.result.type)&&{type:"data",data:t.deserialize(e.result.data)})}}(e,t)}catch(e){throw new q}if(!r.ok&&(!(0,b.Gv)(r.error.error)||"number"!=typeof r.error.error.code)||r.ok&&!(0,b.Gv)(r.result))throw new q;return r}(e.json,s.transformer.output);if(!r.ok)return void t.error(x.from(r.error,{meta:e.meta}));t.next({context:e.meta,result:r.result}),t.complete()}).catch(e=>{t.error(x.from(e,{meta:null==n?void 0:n.meta}))}),()=>{}})}}c(y(),1),Symbol();let U=(e,...t)=>"function"==typeof e?e(...t):e;async function F(e){let t=await U(e.url);if(!e.connectionParams)return t;let r=t.includes("?")?"&":"?";return t+`${r}connectionParams=1`}async function A(e,t){let r={method:"connectionParams",data:await U(e)};return t.encode(r)}c(f(),1),c(f(),1);var L=c(f(),1),G=class e{constructor(t){var r;if((0,L.default)(this,"id",++e.connectCount),(0,L.default)(this,"WebSocketPonyfill",void 0),(0,L.default)(this,"urlOptions",void 0),(0,L.default)(this,"keepAliveOpts",void 0),(0,L.default)(this,"encoder",void 0),(0,L.default)(this,"wsObservable",function(e){let t=null,r=[],n=m(e=>(void 0!==t&&e.next(t),r.push(e),()=>{r.splice(r.indexOf(e),1)}
1));return n.next=e=>{if(t!==e)for(let n of(t=e,r))n.next(e)},n.get=()=>t,n}(0)),(0,L.default)(this,"openPromise",null),this.WebSocketPonyfill=null!=(r=t.WebSocketPonyfill)?r:WebSocket,!this.WebSocketPonyfill)throw Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive,this.encoder=t.encoder}get ws(){return this.wsObservable.get()}set ws(e){this.wsObservable.next(e)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++e.connectCount;let r=F(t.urlOptions).then(e=>new t.WebSocketPonyfill(e));t.openPromise=r.then(async e=>{t.ws=e,e.binaryType="arraybuffer",e.addEventListener("message",function({data:e}){"PING"===e&&this.send("PONG")}),t.keepAliveOpts.enabled&&function(e,{intervalMs:t,pongTimeoutMs:r}){let n,s;function i(){n=setTimeout(()=>{e.send("PING"),s=setTimeout(()=>{e.close()},r)},t)}e.addEventListener("open",i),e.addEventListener("message",({data:e})=>{clearTimeout(n),i(),"PONG"===e&&(clearTimeout(s),clearTimeout(n),i())}),e.addEventListener("close",()=>{clearTimeout(n),clearTimeout(s)})}(e,t.keepAliveOpts),e.addEventListener("close",()=>{t.ws===e&&(t.ws=null)}),await function(e){let t,r,{promise:n,resolve:s,reject:i}={promise:new Promise((e,n)=>{t=e,r=n}),resolve:t,reject:r};return e.addEventListener("open",()=>{e.removeEventListener("error",i),s()}),e.addEventListener("error",i),n}(e),t.urlOptions.connectionParams&&e.send(await A(t.urlOptions.connectionParams,t.encoder))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var e;try{await this.openPromise}finally{null==(e=this.ws)||e.close()}}};(0,L.default)(G,"connectCount",0),c(f(),1),c(y(),1);var N=c(f(),1),K=c(y(),1),H=class{constructor(e){(0,N.default)(this,"links",void 0),(0,N.default)(this,"runtime",void 0),(0,N.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(e=>e(this.runtime))}$request(e){var t,r;return(r={links:this.links,op:(0,K.default)((0,K.default)({},e),{},{context:null!=(t=e.context)?t:{},id:++this.requestId})},m(e=>(function e(t=0,n=r.op){let s=r.links[t];if(!s)throw Error("No more links to execute - did you forget to add an ending link?");return s({op:n,next:r=>e(t+1,r)})})().subscribe(e))).pipe(e=>{let t=0,r=null,n=[];return m(s=>(t++,n.push(s),r||(r=e.subscribe({next(e){for(let r of n){var t;null==(t=r.next)||t.call(r,e)}},error(e){for(let r of n){var t;null==(t=r.error)||t.call(r,e)}},complete(){for(let t of n){var e;null==(e=t.complete)||e.call(t)}}})),{unsubscribe(){if(0==--t&&r){let e=r;r=null,e.unsubscribe()}let e=n.findIndex(e=>e===s);e>-1&&n.splice(e,1)}}))})}async requestAsPromise(e){try{let t=this.$request(e);return(await function(e){let t=new AbortController;return new Promise((r,n)=>{let s=!1;function i(){s||(s=!0,o.unsubscribe())}t.signal.addEventListener("abort",()=>{n(t.signal.reason)});let o=e.subscribe({next(e){s=!0,r(e),i()},error(e){n(e)},complete(){t.abort(),i()}})})}(t)).result.data}catch(e){throw x.from(e)}}query(e,t,r){return this.requestAsPromise({type:"query",path:e,input:t,context:null==r?void 0:r.context,signal:null==r?void 0:r.signal})}mutation(e,t,r){return this.requestAsPromise({type:"mutation",path:e,input:t,context:null==r?void 0:r.context,signal:null==r?void 0:r.signal})}subscription(e,t,r){return this.$request({type:"subscription",path:e,input:t,context:r.context,signal:r.signal}).subscribe({next(e){var t,n,s,i;switch(e.result.type){case"state":null==(t=r.onConnectionStateChange)||t.call(r,e.result);break;case"started":null==(n=r.onStarted)||n.call(r,{context:e.context});break;case"stopped":null==(s=r.onStopped)||s.call(r);break;case"data":case void 0:null==(i=r.onData)||i.call(r,e.result.data)}},error(e){var t;null==(t=r.onError)||t.call(r,e)},complete(){var e;null==(e=r.onComplete)||e.call(r)}})}};let W=Symbol.for("trpc_untypedClient"),z={query:"query",mutate:"mutation",subscribe:"subscription"};function $(e){let t=(0,_.vX)(({path:t,args:r})=>{let n=[...t],s=z[n.pop()],i=n.join(".");return e[s](i,...r)});return(0,_.U6)(r=>r===W?e:t[r])}function B(e){return $(new H(e))}function X(e){return e[W]}c(y(),1),c(y(),1),c(l({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(r=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new r(e)}t.exports=function(e){var t,n,s,i=2;
1for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,s=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(s&&null!=(t=e[s]))return new r(t.call(e));n="@@asyncIterator",s="@@iterator"}throw TypeError("Object is not async iterable")},t.exports.__esModule=!0,t.exports.default=t.exports}})(),1),c(y(),1);var Z=l({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){t.exports=function(){var e="function"==typeof SuppressedError?SuppressedError:function(e,t){var r=Error();return r.name="SuppressedError",r.error=e,r.suppressed=t,r},t={},r=[];function n(e,t){if(null!=t){if(Object(t)!==t)throw TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(e)var n=t[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===n&&(n=t[Symbol.dispose||Symbol.for("Symbol.dispose")],e))var s=n;if("function"!=typeof n)throw TypeError("Object is not disposable.");s&&(n=function(){try{s.call(t)}catch(e){return Promise.reject(e)}}),r.push({v:t,d:n,a:e})}else e&&r.push({d:t,a:e});return t}return{e:t,u:n.bind(null,!1),a:n.bind(null,!0),d:function(){var n,s=this.e,i=0;function o(){for(;n=r.pop();)try{if(!n.a&&1===i)return i=0,r.push(n),Promise.resolve().then(o);if(n.d){var e=n.d.call(n.v);if(n.a)return i|=2,Promise.resolve(e).then(o,u)}else i|=1}catch(e){return u(e)}if(1===i)return s!==t?Promise.reject(s):Promise.resolve();if(s!==t)throw s}function u(r){return s=s!==t?new e(r,s):r,o()}return o()}}},t.exports.__esModule=!0,t.exports.default=t.exports}}),V=l({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){t.exports=function(e,t){this.v=e,this.k=t},t.exports.__esModule=!0,t.exports.default=t.exports}}),J=l({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var r=V();t.exports=function(e){return new r(e,0)},t.exports.__esModule=!0,t.exports.default=t.exports}}),Y=l({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var r=V();function n(e){var t,n;function s(t,n){try{var o=e[t](n),u=o.value,a=u instanceof r;Promise.resolve(a?u.v:u).then(function(r){if(a){var n="return"===t?"return":"next";if(!u.k||r.done)return s(n,r);r=e[n](r).value}i(o.done?"return":"normal",r)},function(e){s("throw",e)})}catch(e){i("throw",e)}}function i(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?s(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(i,o){var u={key:e,arg:r,resolve:i,reject:o,next:null};n?n=n.next=u:(t=n=u,s(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}n.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},n.prototype.next=function(e){return this._invoke("next",e)},n.prototype.throw=function(e){return this._invoke("throw",e)},n.prototype.return=function(e){return this._invoke("return",e)},t.exports=function(e){return function(){return new n(e.apply(this,arguments))}},t.exports.__esModule=!0,t.exports.default=t.exports}});c(Z(),1),c(J(),1),c(Y(),1),c(y(),1)},17788:(e,t,r)=>{r.d(t,{H:()=>s});var n=r(34049),s=(()=>{let e=()=>n.S$;return{isServer:()=>e(),setIsServer(t){e=t}}})()},31668:(e,t,r)=>{r.d(t,{X:()=>a,k:()=>l});var n=r(34049),s=r(74268),i=r(93049),o=r(69781),u=r(66902),a=class extends o.k{#e;#t;#r;#n;#s;#i;#o;#u;constructor(e){super(),this.#u=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#n=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=h(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.#i?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=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(c(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#n.remove(this)}setData(e,t){let r=(0,n.pl)(this.state.data,e,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#a({type:"setState",state:e})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(n.lQ).catch(n.lQ):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=>!1!==(0,n.nU)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===n.hT||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
1Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,n.d2)(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,n.j3)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#i?.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.#i&&(this.#u||this.#l()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#l(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&this.#i?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#u=!0,r.signal)})},o=()=>{let e=(0,n.ZM)(this.options,t),r=(()=>{let e={client:this.#s,queryKey:this.queryKey,meta:this.meta};return s(e),e})();return(this.#u=!1,this.options.persister)?this.options.persister(e,r,this):e(r)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:o};return s(e),e})(),l="infinite"===this.#e?(0,u.PL)(this.options.pages):this.options.behavior;l?.onFetch(a,this),this.#r=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#a({type:"fetch",meta:a.fetchOptions?.meta}),this.#i=(0,i.II)({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof i.cc&&e.revert&&this.setState({...this.#r,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof i.cc){if(e.silent)return this.#i.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#a({type:"error",error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#a(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,...l(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...c(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#r=e.manual?r:void 0,r;case"error":let n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),s.jG.batch(()=>
1{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function l(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,i.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function c(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,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}},34049:(e,t,r)=>{r.d(t,{BH:()=>v,Cp:()=>y,EN:()=>f,F$:()=>p,GU:()=>C,MK:()=>h,S$:()=>s,ZM:()=>E,ZZ:()=>S,Zw:()=>o,d2:()=>l,f8:()=>b,gn:()=>u,hT:()=>R,j3:()=>a,lQ:()=>i,nJ:()=>d,nU:()=>c,ox:()=>Q,pl:()=>j,y9:()=>P,yy:()=>w});var n=r(37126),s="undefined"==typeof window||"Deno"in globalThis;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function u(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function h(e,t){let{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:o,stale:u}=e;if(o){if(n){if(t.queryHash!==p(o,t.options))return!1}else if(!y(t.queryKey,o))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(!s||s===t.state.fetchStatus)&&(!i||!!i(t))}function d(e,t){let{exact:r,status:n,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(f(t.options.mutationKey)!==f(i))return!1}else if(!y(t.options.mutationKey,i))return!1}return(!n||t.state.status===n)&&(!s||!!s(t))}function p(e,t){return(t?.queryKeyHashFn||f)(e)}function f(e){return JSON.stringify(e,(e,t)=>O(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function y(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){for(let r=0;r<t.length;r++)if(!y(e[r],t[r]))return!1;return!0}for(let r of Object.keys(t))if(!y(e[r],t[r]))return!1;return!0}return!1}var m=Object.prototype.hasOwnProperty;function v(e,t,r=0){if(e===t)return e;if(r>500)return t;let n=g(e)&&g(t);if(!n&&!(O(e)&&O(t)))return t;let s=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),o=i.length,u=n?Array(o):{},a=0;for(let l=0;l<o;l++){let o=n?l:i[l],c=e[o],h=t[o];if(c===h){u[o]=c,(n?l<s:m.call(e,o))&&a++;continue}if(null===c||null===h||"object"!=typeof c||"object"!=typeof h){u[o]=h;continue}let d=v(c,h,r+1);u[o]=d,d===c&&a++}return s===o&&a===s?e:u}function b(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function g(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function O(e){if(!x(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!x(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function x(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return new Promise(t=>{n.zs.setTimeout(t,e)})}function j(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?v(e,t):t}function P(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function S(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var R=Symbol();function E(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==R?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function C(e,t){return"function"==typeof e?e(...t):!!e}function Q(e,t,r){let n,s=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),s||(s=!0,n.aborted?r():n.addEventListener("abort",r,{once:!0})),n)}),e}},37126:(e,t,r)=>{r.d(t,{Zq:()=>i,zs:()=>s});var n={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},s=new class{#c=n;#h=!1;setTimeoutProvider(e){this.#c=e}setTimeout(e,t){return this.#c.setTimeout(e,t)}clearTimeout(e){this.#c.clearTimeout(e)}setInterval(e,t){return this.#c.setInterval(e,t)}clearInterval(e){this.#c.clearInterval(e)}};function i(e){setTimeout(e,0)}},38445:(e,t,r)=>{r.d(t,{Q:()=>n});var n=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(){}}},38559:(e,t,r)=>{r.d(t,{$:()=>u,s:()=>o});var n=r(74268),s=r(69781),i=r(93049),o=class extends s.k{#s;#d;#p;#i;constructor(e){super(),this.#s=e.client,this.mutationId=e.mutationId,this.#p=e.mutationCache,this.#d=[],this.state=e.state||u(),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.#d.includes(e)||(this.#d.push(e),this.clearGcTimeout(),this.#p.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#d=this.#d.filter(t=>t!==e),this.scheduleGc(),this.#p.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#d.length||("pending"===this.state.status?this.scheduleGc():this.#p.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#a({type:"continue"})},r={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=(0,i.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#p.canRun(this)});let n="pending"===this.state.status,s=!this.#i.canStart();try{if(n)t();else{this.#a({type:"pending",variables:e,isPaused:s}),this.#p.config.onMutate&&await this.#p.config.onMutate(e,this,r);let t=await this.options.onMutate?.(e,r);t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:s})}let i=await this.#i.start();return await this.#p.config.onSuccess?.(i,e,this.state.context,this,r),await this.options.onSuccess?.(i,e,this.state.context,r),await this.#p.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(i,null,e,this.state.context,r),this.#a({type:"success",data:i}),i}catch(t){try{await this.#p.config.onError?.(t,e,this.state.context,this,r)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,r)}catch(e){Promise.reject(e)}try{await this.#p.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,r)}catch(e){Promise.reject(e)}throw this.#a({type:"error",error:t}),t}finally{this.#p.runNext(this)}}#a(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),n.jG.batch(()=>{this.#d.forEach(t=>{t.onMutationUpdate(e)}),this.#p.notify({mutation:this,type:"updated",action:e})})}};function u(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},45015:(e,t,r)=>{function n(e){return!!e&&!Array.isArray(e)&&"object"==typeof e}function s(){return Object.create(null)}r.d(t,{Gv:()=>n,Td:()=>o,vB:()=>s});let i="function"==typeof Symbol&&!!Symbol.asyncIterator;function o(e){return i&&n(e)&&Symbol.asyncIterator in e}let u={INTERNAL_SERVER_ERROR:-32603,BAD_GATEWAY:-32603,SERVICE_UNAVAILABLE:-32603,GATEWAY_TIMEOUT:-32603};u.BAD_GATEWAY,u.SERVICE_UNAVAILABLE,u.GATEWAY_TIMEOUT,u.INTERNAL_SERVER_ERROR},56195:(e,t,r)=>{r.d(t,{m:()=>s});var n=r(38445),s=new class extends n.Q{#f;#y;#m;constructor(){super(),this.#m=e=>{if("undefined"!=typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#y||this.setEventListener(this.#m)}onUnsubscribe(){this.hasListeners()||(this.#y?.(),this.#y=void 0)}setEventListener(e){this.#m=e,this.#y?.(),this.#y=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#f!==e&&(this.#f=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#f?this.#f:globalThis.document?.visibilityState!=="hidden"}}},63122:(e,t,r)=>{r.d(t,{t:()=>s});var n=r(38445),s=new class extends n.Q{#v=!0;#y;#m;constructor(){super(),this.#m=e=>{if("undefined"!=typeof window&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#y||this.setEventListener(this.#m)}onUnsubscribe(){this.hasListeners()||(this.#y?.(),this.#y=void 0)}setEventListener(e){this.#m=e,this.#y?.(),this.#y=e(this.setOnline.bind(this))}setOnline(e){this.#v!==e&&(this.#v=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#v}}},66902:(e,t,r)=>{r.d(t,{PL:()=>s,RQ:()=>a,rB:()=>u});var n=r(34049);function s(e){return{onFetch:(t,r)=>{let s=t.options,u=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],l=t.state.data?.pageParams||[],c={pages:[],pageParams:[]},h=0,d=async()=>{let r=!1,d=(0,n.ZM)(t.options,t.fetchOptions),p=async(e,s,i)=>{if(r)return Promise.reject(t.signal.reason);if(null==s&&e.pages.length)return Promise.resolve(e);let o=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:s,direction:i?"backward":"forward",meta:t.options.meta};return(0,n.ox)(e,()=>t.signal,()=>r=!0),e})(),u=await d(o),{maxPages:a}=t.options,l=i?n.ZZ:n.y9;return{pages:l(e.pages,u,a),pageParams:l(e.pageParams,s,a)}};if(u&&a.length){let e="backward"===u,t={pages:a,pageParams:l},r=(e?o:i)(s,t);c=await p(t,r,e)}else{let t=e??a.length;do{let e=0===h?l[0]??s.initialPageParam:i(s,c);if(h>0&&null==e)break;c=await p(c,e),h++}while(h<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},r):t.fetchFn=d}}}function i(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function o(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function u(e,t){return!!t&&null!=i(e,t)}function a(e,t){return!!t&&!!e.getPreviousPageParam&&null!=o(e,t)}},69781:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(37126),s=r(17788),i=r(34049),o=class{#b;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.gn)(this.gcTime)&&(this.#b=n.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(s.H.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#b&&(n.zs.clearTimeout(this.#b),this.#b=void 0)}}},74268:(e,t,r)=>{r.d(t,{jG:()=>s});var n=r(37126).Zq,s=function(){let e=[],t=0,r=e=>{e()},s=e=>{e()},i=n,o=n=>
1{t?e.push(n):i(()=>{r(n)})};return{batch:n=>{let o;t++;try{o=n()}finally{--t||(()=>{let t=e;e=[],t.length&&i(()=>{s(()=>{t.forEach(e=>{r(e)})})})})()}return o},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{s=e},setScheduler:e=>{i=e}}}()},83515:(e,t,r)=>{r.d(t,{T:()=>n});function n(){let e,t,r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}},93049:(e,t,r)=>{r.d(t,{II:()=>h,cc:()=>c,v_:()=>l});var n=r(56195),s=r(63122),i=r(83515),o=r(17788),u=r(34049);function a(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||s.t.isOnline()}var c=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function h(e){let t,r=!1,h=0,d=(0,i.T)(),p=()=>n.m.isFocused()&&("always"===e.networkMode||s.t.isOnline())&&e.canRun(),f=()=>l(e.networkMode)&&e.canRun(),y=e=>{"pending"===d.status&&(t?.(),d.resolve(e))},m=e=>{"pending"===d.status&&(t?.(),d.reject(e))},v=()=>new Promise(r=>{t=e=>{("pending"!==d.status||p())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===d.status&&e.onContinue?.()}),b=()=>{let t;if("pending"!==d.status)return;let n=0===h?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(y).catch(t=>{if("pending"!==d.status)return;let n=e.retry??3*!o.H.isServer(),s=e.retryDelay??a,i="function"==typeof s?s(h,t):s,l=!0===n||"number"==typeof n&&h<n||"function"==typeof n&&n(h,t);if(r||!l)return void m(t);h++,e.onFail?.(h,t),(0,u.yy)(i).then(()=>p()?void 0:v()).then(()=>{r?m(t):b()})})};return{promise:d,status:()=>d.status,cancel:t=>{if("pending"===d.status){let r=new c(t);m(r),e.onCancel?.(r)}},continue:()=>(t?.(),d),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:f,start:()=>(f()?b():v().then(b),d)}}},99776:(e,t,r)=>{r.d(t,{Ht:()=>u,jE:()=>o});var n=r(12115),s=r(95155),i=n.createContext(void 0),o=e=>{let t=n.useContext(i);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},u=e=>{let{client:t,children:r}=e;return n.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,s.jsx)(i.Provider,{value:t,children:r})}},99914:(e,t,r)=>{r.d(t,{pY:()=>ew});var n,s=r(34049),i=r(45015),o=Object.create,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,d=(e,t)=>function(){return t||(0,e[l(e)[0]])((t={exports:{}}).exports,t),t.exports},p=(e,t,r)=>(r=null!=e?o(c(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var s,i=l(t),o=0,c=i.length;o<c;o++)s=i[o],h.call(e,s)||s===r||u(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(n=a(t,s))||n.enumerable});return e})(!t&&e&&e.__esModule?r:u(r,"default",{value:e,enumerable:!0}),e)),f=d({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){t.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},t.exports.__esModule=!0,t.exports.default=t.exports}}),y=d({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var r=f();t.exports=function(e,t){if(null==e)return{};var n,s,i=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)n=o[s],t.includes(n)||({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},t.exports.__esModule=!0,t.exports.default=t.exports}}),m=d({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}
1,t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),v=d({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=m().default;t.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=r(s))return s;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},t.exports.__esModule=!0,t.exports.default=t.exports}}),b=d({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=m().default,n=v();t.exports=function(e){var t=n(e,"string");return"symbol"==r(t)?t:t+""},t.exports.__esModule=!0,t.exports.default=t.exports}}),g=d({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=b();t.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},t.exports.__esModule=!0,t.exports.default=t.exports}}),O=d({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=g();function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}t.exports=function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?n(Object(s),!0).forEach(function(t){r(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e},t.exports.__esModule=!0,t.exports.default=t.exports}}),x=p(y(),1),w=p(O(),1);let j=["cursor","direction"];function P(e,t,r){let n=e.flatMap(e=>e.split("."));if(!t&&(!r||"any"===r))return n.length?[n]:[];if("infinite"===r&&(0,i.Gv)(t)&&("direction"in t||"cursor"in t)){let{cursor:e,direction:r}=t;return[n,{input:(0,x.default)(t,j),type:"infinite"}]}return[n,(0,w.default)((0,w.default)({},void 0!==t&&t!==s.hT&&{input:t}),r&&"any"!==r&&{type:r})]}function S(e){return P(e,void 0,"any")}var R=r(17554),E=r(56195),C=r(17788),Q=r(74268),_=r(31668),T=r(38445),q=r(83515),I=r(37126),M=class extends T.Q{constructor(e,t){super(),this.options=t,this.#s=e,this.#g=null,this.#O=(0,q.T)(),this.bindMethods(),this.setOptions(t)}#s;#x=void 0;#w=void 0;#j=void 0;#P;#S;#O;#g;#R;#E;#C;#Q;#_;#T;#q=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#x.addObserver(this),D(this.#x,this.options)?this.#I():this.updateResult(),this.#M())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return k(this.#x,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return k(this.#x,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#D(),this.#k(),this.#x.removeObserver(this)}setOptions(e){let t=this.options,r=this.#x;if(this.options=this.#s.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,s.nU)(this.options.enabled,this.#x))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#U(),this.#x.setOptions(this.options),t._defaulted&&!(0,s.f8)(this.options,t)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#x,observer:this});let n=this.hasListeners();n&&U(this.#x,r,this.options,t)&&this.#I(),this.updateResult(),n&&(this.#x!==r||(0,s.nU)(this.options.enabled,this.#x)!==(0,s.nU)(t.enabled,this.#x)||(0,s.d2)(this.options.staleTime,this.#x)!==(0,s.d2)(t.staleTime,this.#x))&&this.#F();let i=this.#A();n&&(this.#x!==r||(0,s.nU)(this.options.enabled,this.#x)!==(0,s.nU)(t.enabled,this.#x)||i!==this.#T)&&this.#L(i)}getOptimisticResult(e){var t,r;let n=this.#s.getQueryCache().build(this.#s,e),i=this.createResult(n,e);return t=this,r=i,(0,s.f8)(t.getCurrentResult(),r)||(this.#j=i,this.#S=this.options,this.#P=this.#x.state),i}getCurrentResult(){return this.#j}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#O.status||this.#O.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#q.add(e)}getCurrentQuery(){return this.#x}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#s.defaultQueryOptions(e),r=this.#s.getQueryCache().build(this.#s,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#I({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#j))}#I(e){this.#U();let t=this.#x.fetch(this.options,e);return e?.throwOnError||(t=t.catch(s.lQ)),t}#F(){this.#D();let e=(0,s.d2)(this.options.staleTime,this.#x);if(C.H.isServer()||this.#j.isStale||!(0,s.gn)(e))return;let t=(0,s.j3)(this.#j.dataUpdatedAt,e);this.#Q=I.zs.setTimeout(()=>{this.#j.isStale||this.updateResult()},t+1)}#A(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#x):this.options.refetchInterval)??!1}#L(e){this.#k(),this.#T=e,!C.H.isServer()&&!1!==(0,s.nU)(this.options.enabled,this.#x)&&(0,s.gn)(this.#T)&&0!==this.#T&&(this.#_=I.zs.setInterval(()=>
1{(this.options.refetchIntervalInBackground||E.m.isFocused())&&this.#I()},this.#T))}#M(){this.#F(),this.#L(this.#A())}#D(){void 0!==this.#Q&&(I.zs.clearTimeout(this.#Q),this.#Q=void 0)}#k(){void 0!==this.#_&&(I.zs.clearInterval(this.#_),this.#_=void 0)}createResult(e,t){let r,n=this.#x,i=this.options,o=this.#j,u=this.#P,a=this.#S,l=e!==n?e.state:this.#w,{state:c}=e,h={...c},d=!1;if(t._optimisticResults){let r=this.hasListeners(),s=!r&&D(e,t),o=r&&U(e,n,t,i);(s||o)&&(h={...h,...(0,_.k)(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(h.fetchStatus="idle")}let{error:p,errorUpdatedAt:f,status:y}=h;r=h.data;let m=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===y){let e;o?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#C?.state.data,this.#C):t.placeholderData,void 0!==e&&(y="success",r=(0,s.pl)(o?.data,e,t),d=!0)}if(t.select&&void 0!==r&&!m)if(o&&r===u?.data&&t.select===this.#R)r=this.#E;else try{this.#R=t.select,r=t.select(r),r=(0,s.pl)(o?.data,r,t),this.#E=r,this.#g=null}catch(e){this.#g=e}this.#g&&(p=this.#g,r=this.#E,f=Date.now(),y="error");let v="fetching"===h.fetchStatus,b="pending"===y,g="error"===y,O=b&&v,x=void 0!==r,w={status:y,fetchStatus:h.fetchStatus,isPending:b,isSuccess:"success"===y,isError:g,isInitialLoading:O,isLoading:O,data:r,dataUpdatedAt:h.dataUpdatedAt,error:p,errorUpdatedAt:f,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:h.dataUpdateCount>l.dataUpdateCount||h.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!b,isLoadingError:g&&!x,isPaused:"paused"===h.fetchStatus,isPlaceholderData:d,isRefetchError:g&&x,isStale:F(e,t),refetch:this.refetch,promise:this.#O,isEnabled:!1!==(0,s.nU)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==w.data,r="error"===w.status&&!t,s=e=>{r?e.reject(w.error):t&&e.resolve(w.data)},i=()=>{s(this.#O=w.promise=(0,q.T)())},o=this.#O;switch(o.status){case"pending":e.queryHash===n.queryHash&&s(o);break;case"fulfilled":(r||w.data!==o.value)&&i();break;case"rejected":r&&w.error===o.reason||i()}}return w}updateResult(){let e=this.#j,t=this.createResult(this.#x,this.options);if(this.#P=this.#x.state,this.#S=this.options,void 0!==this.#P.data&&(this.#C=this.#x),(0,s.f8)(t,e))return;this.#j=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#q.size)return!0;let n=new Set(r??this.#q);return this.options.throwOnError&&n.add("error"),Object.keys(this.#j).some(t=>this.#j[t]!==e[t]&&n.has(t))};this.#G({listeners:r()})}#U(){let e=this.#s.getQueryCache().build(this.#s,this.options);if(e===this.#x)return;let t=this.#x;this.#x=e,this.#w=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#M()}#G(e){Q.jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#j)}),this.#s.getQueryCache().notify({query:this.#x,type:"observerResultsUpdated"})})}};function D(e,t){return!1!==(0,s.nU)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,s.nU)(t.retryOnMount,e))||void 0!==e.state.data&&k(e,t,t.refetchOnMount)}function k(e,t,r){if(!1!==(0,s.nU)(t.enabled,e)&&"static"!==(0,s.d2)(t.staleTime,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&F(e,t)}return!1}function U(e,t,r,n){return(e!==t||!1===(0,s.nU)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&F(e,r)}function F(e,t){return!1!==(0,s.nU)(t.enabled,e)&&e.isStaleByTime((0,s.d2)(t.staleTime,e))}var A=r(12115),L=r.t(A,2),G=r(99776),N=r(95155),K=A.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),H=()=>A.useContext(K),W=(e,t,r)=>{let n=(null==r?void 0:r.state.error)&&"function"==typeof e.throwOnError?(0,s.GU)(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&!t.isReset()&&(e.retryOnMount=!1)},z=e=>{A.useEffect(()=>{e.clearReset()},[e])},$=e=>{let{result:t,errorResetBoundary:r,throwOnError:n,query:i,suspense:o}=e;return t.isError&&!r.isReset()&&!t.isFetching&&i&&(o&&void 0===t.data||(0,s.GU)(n,[t.error,i]))},B=A.createContext(!1),X=()=>A.useContext(B);B.Provider;var Z=(e,t)=>void 0===t.state.data,V=e=>{if(e.suspense){let t=e=>"static"===e?e:Math.max(e??1e3,1e3),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>t(r(...e)):t(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}},J=(e,t)=>
1e?.suspense&&t.isPending,Y=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function ee(e,t,r){var n,i,o,u;let a=X(),l=H(),c=(0,G.jE)(r),h=c.defaultQueryOptions(e);null==(i=c.getDefaultOptions().queries)||null==(n=i._experimental_beforeQuery)||n.call(i,h);let d=c.getQueryCache().get(h.queryHash),p=!1!==e.subscribed;h._optimisticResults=a?"isRestoring":p?"optimistic":void 0,V(h),W(h,l,d),z(l);let f=!c.getQueryCache().get(h.queryHash),[y]=A.useState(()=>new t(c,h)),m=y.getOptimisticResult(h),v=!a&&p;if(A.useSyncExternalStore(A.useCallback(e=>{let t=v?y.subscribe(Q.jG.batchCalls(e)):s.lQ;return y.updateResult(),t},[y,v]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),A.useEffect(()=>{y.setOptions(h)},[h,y]),J(h,m))throw Y(h,y,l);if($({result:m,errorResetBoundary:l,throwOnError:h.throwOnError,query:d,suspense:h.suspense}))throw m.error;if(null==(u=c.getDefaultOptions().queries)||null==(o=u._experimental_afterQuery)||o.call(u,h,m),h.experimental_prefetchInRender&&!C.H.isServer()&&m.isLoading&&m.isFetching&&!a){let e=f?Y(h,y,l):null==d?void 0:d.promise;null==e||e.catch(s.lQ).finally(()=>{y.updateResult()})}return h.notifyOnChangeProps?m:y.trackResult(m)}var et=r(38559),er=class extends T.Q{#s;#j=void 0;#N;#K;constructor(e,t){super(),this.#s=e,this.setOptions(t),this.bindMethods(),this.#H()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#s.defaultMutationOptions(e),(0,s.f8)(this.options,t)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#N,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.EN)(t.mutationKey)!==(0,s.EN)(this.options.mutationKey)?this.reset():this.#N?.state.status==="pending"&&this.#N.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#N?.removeObserver(this)}onMutationUpdate(e){this.#H(),this.#G(e)}getCurrentResult(){return this.#j}reset(){this.#N?.removeObserver(this),this.#N=void 0,this.#H(),this.#G()}mutate(e,t){return this.#K=t,this.#N?.removeObserver(this),this.#N=this.#s.getMutationCache().build(this.#s,this.options),this.#N.addObserver(this),this.#N.execute(e)}#H(){let e=this.#N?.state??(0,et.$)();this.#j={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#G(e){Q.jG.batch(()=>{if(this.#K&&this.hasListeners()){let t=this.#j.variables,r=this.#j.context,n={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#K.onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{this.#K.onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#K.onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{this.#K.onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#j)})})}},en=r(66902),es=class extends M{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)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:r}=e,n=super.createResult(e,t),{isFetching:s,isRefetching:i,isError:o,isRefetchError:u}=n,a=r.fetchMeta?.fetchMore?.direction,l=o&&"forward"===a,c=s&&"forward"===a,h=o&&"backward"===a,d=s&&"backward"===a;return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,en.rB)(t,r.data),hasPreviousPage:(0,en.RQ)(t,r.data),isFetchNextPageError:l,isFetchingNextPage:c,isFetchPreviousPageError:h,isFetchingPreviousPage:d,isRefetchError:u&&!l&&!h,isRefetching:i&&!c&&!d}}};function ei(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var eo=class extends T.Q{#s;#W;#z;#$;#d;#B;#X;#Z;#V;#J=[];constructor(e,t,r){super(),this.#s=e,this.#$=r,this.#z=[],this.#d=[],this.#W=[],this.setQueries(t)}
1onSubscribe(){1===this.listeners.size&&this.#d.forEach(e=>{e.subscribe(t=>{this.#Y(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#d.forEach(e=>{e.destroy()})}setQueries(e,t){this.#z=e,this.#$=t,Q.jG.batch(()=>{let e=this.#d,t=this.#ee(this.#z);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let r=t.map(e=>e.observer),n=r.map(e=>e.getCurrentResult()),i=e.length!==r.length,o=r.some((t,r)=>t!==e[r]),u=i||o,a=!!u||n.some((e,t)=>{let r=this.#W[t];return!r||!(0,s.f8)(e,r)});(u||a)&&(u&&(this.#J=t,this.#d=r),this.#W=n,this.hasListeners()&&(u&&(ei(e,r).forEach(e=>{e.destroy()}),ei(r,e).forEach(e=>{e.subscribe(t=>{this.#Y(e,t)})})),this.#G()))})}getCurrentResult(){return this.#W}getQueries(){return this.#d.map(e=>e.getCurrentQuery())}getObservers(){return this.#d}getOptimisticResult(e,t){let r=this.#ee(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),s=r.map(e=>e.defaultedQueryOptions.queryHash);return[n,e=>this.#et(e??n,t,s),()=>this.#er(n,r)]}#er(e,t){return t.map((r,n)=>{let s=e[n];return r.defaultedQueryOptions.notifyOnChangeProps?s:r.observer.trackResult(s,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#et(e,t,r){if(t){let n=this.#V,i=void 0!==r&&void 0!==n&&(n.length!==r.length||r.some((e,t)=>e!==n[t]));return(!this.#B||this.#W!==this.#Z||i||t!==this.#X)&&(this.#X=t,this.#Z=this.#W,void 0!==r&&(this.#V=r),this.#B=(0,s.BH)(this.#B,t(e))),this.#B}return e}#en(){return this.#$?.combine!==void 0&&this.#d.some((e,t)=>e.options.suspense&&this.#W[t]?.data===void 0)}#ee(e){let t=new Map;this.#d.forEach(e=>{let r=e.options.queryHash;if(!r)return;let n=t.get(r);n?n.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let n=this.#s.defaultQueryOptions(e),s=t.get(n.queryHash)?.shift()??new M(this.#s,n);r.push({defaultedQueryOptions:n,observer:s})}),r}#Y(e,t){let r=this.#d.indexOf(e);-1!==r&&(this.#W=function(e,t,r){let n=e.slice(0);return n[t]=r,n}(this.#W,r,t),this.#G())}#G(){if(this.hasListeners()){let e=this.#er(this.#W,this.#J),t=this.#en(),r=this.#B,n=t?r:this.#et(e,this.#$?.combine);(t||r!==n)&&Q.jG.batch(()=>{this.listeners.forEach(e=>{e(this.#W)})})}}};function eu(e,t){let{queries:r,...n}=e,i=(0,G.jE)(t),o=X(),u=H(),a=A.useMemo(()=>r.map(e=>{let t=i.defaultQueryOptions(e);return t._optimisticResults=o?"isRestoring":"optimistic",t}),[r,i,o]);a.forEach(e=>{V(e);let t=i.getQueryCache().get(e.queryHash);W(e,u,t)}),z(u);let[l]=A.useState(()=>new eo(i,a,n)),[c,h,d]=l.getOptimisticResult(a,n.combine),p=!o&&!1!==n.subscribed;A.useSyncExternalStore(A.useCallback(e=>p?l.subscribe(Q.jG.batchCalls(e)):s.lQ,[l,p]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),A.useEffect(()=>{l.setQueries(a,n)},[a,n,l]);let f=c.some((e,t)=>J(a[t],e))?c.flatMap((e,t)=>{let r=a[t];if(r&&J(r,e)){let e=new M(i,r);return Y(r,e,u)}return[]}):[];if(f.length>0)throw Promise.all(f);let y=c.find((e,t)=>{let r=a[t];return r&&$({result:e,errorResetBoundary:u,throwOnError:r.throwOnError,query:i.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(null==y?void 0:y.error)throw y.error;return h(d())}var ea=r(9343);let el=["client","ssrContext","ssrState","abortOnUnmount"],ec=null==(n=A.createContext)?void 0:n.call(L,null);var eh=p(O(),1);function ed(e){let t=e instanceof R.Ke?e:(0,R.n2)(e);return(0,ea.vX)(e=>{let r=e.path,n=r.join("."),[s,i]=e.args;return(0,eh.default)({queryKey:P(r,s,"query"),queryFn:()=>t.query(n,s,null==i?void 0:i.trpc)},i)})}var ep=p(O(),1);function ef(e,t,r){var n,s;let i=e[0],o=null==(n=e[1])?void 0:n.input;return r&&(o=(0,ep.default)((0,ep.default)((0,ep.default)({},null!=(s=o)?s:{}),r.pageParam?{cursor:r.pageParam}:{}),{},{direction:r.direction})),[i.join("."),o,null==t?void 0:t.trpc]}var ey=p(d({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(r=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new r(e)}t.exports=function(e){var t,n,s,i=2;
1for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,s=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(s&&null!=(t=e[s]))return new r(t.call(e));n="@@asyncIterator",s="@@iterator"}throw TypeError("Object is not async iterable")},t.exports.__esModule=!0,t.exports.default=t.exports}})(),1);function em(e){return{path:e.path.join(".")}}function ev(e){let t=em(e);return A.useMemo(()=>t,[t])}async function eb(e,t,r){let n=t.getQueryCache().build(t,{queryKey:r});n.setState({data:[],status:"success"});let s=[];var i=!1,o=!1;try{for(var u,a,l=(0,ey.default)(e);i=!(a=await l.next()).done;i=!1){let e=a.value;s.push(e),n.setState({data:[...s]})}}catch(e){o=!0,u=e}finally{try{i&&null!=l.return&&await l.return()}finally{if(o)throw u}}return s}var eg=p(O(),1),eO=p(O());let ex=(e,t)=>new Proxy(e,{get:(e,r)=>(t(r),e[r])});function ew(e){return function(e){let t=(0,ea.vX)(({path:t,args:r})=>{var n;let s=[...t],i=s.pop();if("useMutation"===i)return e[i](s,...r);if("_def"===i)return{path:s};let[o,...u]=r,a=null!=(n=u[0])?n:{};return e[i](s,o,a)});return(0,ea.U6)(r=>"useContext"===r||"useUtils"===r?()=>{let t=e.useUtils();return A.useMemo(()=>(function(e){let t=(0,R.Xq)(e.client),r=(0,ea.vX)(t=>{let r=[...t.path],n=r.pop(),s=[...t.args],i=s.shift(),o=P(r,i,(e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}})(n));return({infiniteQueryOptions:()=>e.infiniteQueryOptions(r,o,s[0]),queryOptions:()=>e.queryOptions(r,o,...s),fetch:()=>e.fetchQuery(o,...s),fetchInfinite:()=>e.fetchInfiniteQuery(o,s[0]),prefetch:()=>e.prefetchQuery(o,...s),prefetchInfinite:()=>e.prefetchInfiniteQuery(o,s[0]),ensureData:()=>e.ensureQueryData(o,...s),invalidate:()=>e.invalidateQueries(o,...s),reset:()=>e.resetQueries(o,...s),refetch:()=>e.refetchQueries(o,...s),cancel:()=>e.cancelQuery(o,...s),setData:()=>{e.setQueryData(o,s[0],s[1])},setQueriesData:()=>e.setQueriesData(o,s[0],s[1],s[2]),setInfiniteData:()=>{e.setInfiniteQueryData(o,s[0],s[1])},getData:()=>e.getQueryData(o),getInfiniteData:()=>e.getInfiniteQueryData(o),setMutationDefaults:()=>e.setMutationDefaults(S(r),i),getMutationDefaults:()=>e.getMutationDefaults(S(r)),isMutating:()=>e.isMutating({mutationKey:S(r)})})[n]()});return(0,ea.U6)(n=>"client"===n?t:el.includes(n)?e[n]:r[n])})(t),[t])}:e.hasOwnProperty(r)?e[r]:t[r])}(function(e){var t,r,n;let o=null!=(t=null==e||null==(r=e.overrides)||null==(r=r.useMutation)?void 0:r.onSuccess)?t:e=>e.originalFn(),u=null!=(n=null==e?void 0:e.context)?n:ec,a=R.XT;function l(){let e=A.useContext(u);if(!e)throw Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return e}function c(e,t){var r;let{queryClient:n,ssrState:s}=l();return s&&"mounted"!==s&&(null==(r=n.getQueryCache().find({queryKey:e}))?void 0:r.state.status)==="error"?(0,eO.default)({retryOnMount:!1},t):t}let h={data:void 0,error:null,status:"idle"},d={data:void 0,error:null,status:"connecting"};return{Provider:e=>{var t;let{abortOnUnmount:r=!1,queryClient:n,ssrContext:o}=e,[a,l]=A.useState(null!=(t=e.ssrState)&&t),c=e.client instanceof R.Ke?e.client:(0,R.n2)(e.client),h=A.useMemo(()=>(function(e){let{client:t,queryClient:r}=e,n=t instanceof R.Ke?t:(0,R.n2)(t);return{infiniteQueryOptions:(e,t,r)=>{var i,o;let u=(null==(i=t[1])?void 0:i.input)===s.hT,a=async e=>{var s;let i=(0,eg.default)((0,eg.default)({},r),{},{trpc:(0,eg.default)((0,eg.default)({},null==r?void 0:r.trpc),(null==r||null==(s=r.trpc)?void 0:s.abortOnUnmount)?{signal:e.signal}:{signal:null})});return await n.query(...ef(t,i,{direction:e.direction,pageParam:e.pageParam}))};return Object.assign((0,eg.default)((0,eg.default)({},r),{},{initialData:null==r?void 0:r.initialData,queryKey:t,queryFn:u?s.hT:a,initialPageParam:null!=(o=null==r?void 0:r.initialCursor)?o:null}),{trpc:em({path:e})})},queryOptions:(e,t,o)=>{var u;let a=(null==(u=t[1])?void 0:u.input)===s.hT,l=async e=>{var s;let u=(0,eg.default)((0,eg.default)({},o),{},{trpc:(0,eg.default)((0,eg.default)({},null==o?void 0:o.trpc),(null==o||null==(s=o.trpc)?void 0:s.abortOnUnmount)?{signal:e.signal}:{signal:null})}),a=await n.query(...ef(t,u));return(0,i.Td)(a)?eb(a,r,t):a};return Object.assign((0,eg.default)((0,eg.default)({},o),{},{initialData:null==o?void 0:o.initialData,queryKey:t,queryFn:a?s.hT:l}),{trpc:em({path:e})})},fetchQuery:(e,t)=>r.fetchQuery((0,eg.default)((0,eg.default)({},t),{},{queryKey:e,queryFn:()=>n.query(...ef(e,t))})),fetchInfiniteQuery:(e,t)=>{var s;return r.fetchInfiniteQuery((0,eg.default)((0,eg.default)({},t),{},{queryKey:e,queryFn:({pageParam:r,direction:s})=>n.query(...ef(e,t,{pageParam:r,direction:s})),initialPageParam:null!=(s=null==t?void 0:t.initialCursor)?s:null}))},prefetchQuery:(e,t)=>r.prefetchQuery((0,eg.default)((0,eg.default)({},t),{},{queryKey:e,queryFn:()=>n.query(...ef(e,t))})),prefetchInfiniteQuery:(e,t)=>{var s;return r.prefetchInfiniteQuery((0,eg.default)((0,eg.default)({},t),{},{queryKey:e,queryFn:({pageParam:r,direction:s})=>n.query(...ef(e,t,{pageParam:r,direction:s})),initialPageParam:null!=(s=null==t?void 0:t.initialCursor)?s:null}))},ensureQueryData:(e,t)=>r.ensureQueryData((0,eg.default)((0,eg.default)({},t),{},{queryKey:e,queryFn:()=>n.query(...ef(e,t))})),invalidateQueries:(e,t,n)=>
1r.invalidateQueries((0,eg.default)((0,eg.default)({},t),{},{queryKey:e}),n),resetQueries:(e,t,n)=>r.resetQueries((0,eg.default)((0,eg.default)({},t),{},{queryKey:e}),n),refetchQueries:(e,t,n)=>r.refetchQueries((0,eg.default)((0,eg.default)({},t),{},{queryKey:e}),n),cancelQuery:(e,t)=>r.cancelQueries({queryKey:e},t),setQueryData:(e,t,n)=>r.setQueryData(e,t,n),setQueriesData:(e,t,n,s)=>r.setQueriesData((0,eg.default)((0,eg.default)({},t),{},{queryKey:e}),n,s),getQueryData:e=>r.getQueryData(e),setInfiniteQueryData:(e,t,n)=>r.setQueryData(e,t,n),getInfiniteQueryData:e=>r.getQueryData(e),setMutationDefaults:(t,s)=>{let i=t[0];return r.setMutationDefaults(t,"function"==typeof s?s({canonicalMutationFn:t=>n.mutation(...ef([i,{input:t}],e))}):s)},getMutationDefaults:e=>r.getMutationDefaults(e),isMutating:e=>r.isMutating((0,eg.default)((0,eg.default)({},e),{},{exact:!0}))}})({client:c,queryClient:n}),[c,n]),d=A.useMemo(()=>(0,eO.default)({abortOnUnmount:r,queryClient:n,client:c,ssrContext:null!=o?o:null,ssrState:a},h),[r,c,h,n,o,a]);return A.useEffect(()=>{l(e=>!!e&&"mounted")},[]),(0,N.jsx)(u.Provider,{value:d,children:e.children})},createClient:a,useContext:l,useUtils:l,useQuery:function(t,r,n){var o,u,a,h,d;let{abortOnUnmount:p,client:f,ssrState:y,queryClient:m,prefetchQuery:v}=l(),b=P(t,r,"query"),g=m.getQueryDefaults(b),O=r===s.hT;"undefined"!=typeof window||"prepass"!==y||(null==n||null==(o=n.trpc)?void 0:o.ssr)===!1||(null!=(u=null==n?void 0:n.enabled)?u:null==g?void 0:g.enabled)===!1||O||m.getQueryCache().find({queryKey:b})||v(b,n);let x=c(b,(0,eO.default)((0,eO.default)({},g),n)),w=null!=(a=null!=(h=null==n||null==(d=n.trpc)?void 0:d.abortOnUnmount)?h:null==e?void 0:e.abortOnUnmount)?a:p,j=ee((0,eO.default)((0,eO.default)({},x),{},{queryKey:b,queryFn:O?r:async e=>{let t=(0,eO.default)((0,eO.default)({},x),{},{trpc:(0,eO.default)((0,eO.default)({},null==x?void 0:x.trpc),w?{signal:e.signal}:{signal:null})}),r=await f.query(...ef(b,t));return(0,i.Td)(r)?eb(r,m,b):r}}),M,m);return j.trpc=ev({path:t}),j},usePrefetchQuery:function(t,r,n){var i,o,u;let a=l(),c=P(t,r,"query"),h=r===s.hT,d=null!=(i=null!=(o=null==n||null==(u=n.trpc)?void 0:u.abortOnUnmount)?o:null==e?void 0:e.abortOnUnmount)?i:a.abortOnUnmount;!function(e,t){let r=(0,G.jE)(void 0);r.getQueryState(e.queryKey)||r.prefetchQuery(e)}((0,eO.default)((0,eO.default)({},n),{},{queryKey:c,queryFn:h?r:e=>{let t={trpc:(0,eO.default)((0,eO.default)({},null==n?void 0:n.trpc),d?{signal:e.signal}:{})};return a.client.query(...ef(c,t))}}))},useSuspenseQuery:function(t,r,n){var s,i,o,u,a;let c=l(),h=P(t,r,"query"),d=null!=(s=null!=(i=null==n||null==(o=n.trpc)?void 0:o.abortOnUnmount)?i:null==e?void 0:e.abortOnUnmount)?s:c.abortOnUnmount,p=(u=(0,eO.default)((0,eO.default)({},n),{},{queryKey:h,queryFn:e=>{let t=(0,eO.default)((0,eO.default)({},n),{},{trpc:(0,eO.default)((0,eO.default)({},null==n?void 0:n.trpc),d?{signal:e.signal}:{signal:null})});return c.client.query(...ef(h,t))}}),a=c.queryClient,ee({...u,enabled:!0,suspense:!0,throwOnError:Z,placeholderData:void 0},M,a));return p.trpc=ev({path:t}),[p.data,p]},useQueries:(e,t)=>{let{ssrState:r,queryClient:n,prefetchQuery:s,client:i}=l(),o=e(ed(i));if("undefined"==typeof window&&"prepass"===r)for(let e of o){var u;(null==(u=e.trpc)?void 0:u.ssr)===!1||n.getQueryCache().find({queryKey:e.queryKey})||s(e.queryKey,e)}return eu({queries:o.map(e=>(0,eO.default)((0,eO.default)({},e),{},{queryKey:e.queryKey})),combine:null==t?void 0:t.combine},n)},useSuspenseQueries:e=>{var t;let{queryClient:r,client:n}=l(),s=(t={queries:e(ed(n)).map(e=>(0,eO.default)((0,eO.default)({},e),{},{queryFn:e.queryFn,queryKey:e.queryKey}))},eu({...t,queries:t.queries.map(e=>({...e,suspense:!0,throwOnError:Z,enabled:!0,placeholderData:void 0}))},r));return[s.map(e=>e.data),s]},useMutation:function(e,t){let{client:r,queryClient:n}=l(),i=S(e),u=n.defaultMutationOptions(n.getMutationDefaults(i)),a=function(e,t){let r=(0,G.jE)(t),[n]=A.useState(()=>new er(r,e));A.useEffect(()=>{n.setOptions(e)},[n,e]);let i=A.useSyncExternalStore(A.useCallback(e=>n.subscribe(Q.jG.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=A.useCallback((e,t)=>{n.mutate(e,t).catch(s.lQ)},[n]);if(i.error&&(0,s.GU)(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}((0,eO.default)((0,eO.default)({},t),{},{mutationKey:i,mutationFn:n=>r.mutation(...ef([e,{input:n}],t)),onSuccess(...e){var r,s;return o({originalFn:()=>{var r,n,s;return null!=(r=null==t||null==(n=t.onSuccess)?void 0:n.call(t,...e))?r:null==u||null==(s=u.onSuccess)?void 0:s.call(u,...e)},queryClient:n,meta:null!=(r=null!=(s=null==t?void 0:t.meta)?s:null==u?void 0:u.meta)?r:{}})}}),n);return a.trpc=ev({path:e}),a},useSubscription:function(e,t,r){var n;let i=null!=(n=null==r?void 0:r.enabled)?n:t!==s.hT,o=(0,s.EN)(P(e,t,"any")),{client:u}=l(),a=A.useRef(r);A.useEffect(()=>{a.current=r});let[c]=A.useState(new Set([])),p=A.useCallback(e=>{c.add(e)},[c]),f=A.useRef(null),y=A.useCallback(e=>{let t=v.current,r=v.current=e(t),n=!1;for(let e of c)if(t[e]!==r[e]){n=!0;break}n&&g(ex(r,p))},[p,c]),m=A.useCallback(()=>{var r;if(null==(r=f.current)||r.unsubscribe(),!i)return void y(()=>(0,eO.default)((0,eO.default)({},h),{},{reset:m}));y(()=>(0,eO.default)((0,eO.default)({},d),{},{reset:m})),f.current=u.subscription(e.join("."),null!=t?t:void 0,{onStarted:()=>{var e,t;null==(e=(t=a.current).onStarted)||e.call(t),y(e=>(0,eO.default)((0,eO.default)({},e),{},{status:"pending",error:null}))},onData:e=>{var t,r;null==(t=(r=a.current).onData)||t.call(r,e),y(t=>(0,eO.default)((0,eO.default)({},t),{},{status:"pending",data:e,error:null}))},onError:e=>{var t,r;null==(t=(r=a.current).onError)||t.call(r,e),y(t=>(0,eO.default)((0,eO.default)({},t),{},{status:"error",error:e}))},onConnectionStateChange:e=>{y(t=>{switch(e.state){case"idle":return(0,eO.default)((0,eO.default)({},t),{},{status:e.state,error:null,data:void 0});case"connecting":return(0,eO.default)((0,eO.default)({},t),{},{error:e.error,status:e.state});
1case"pending":return t}})},onComplete:()=>{var e,t;null==(e=(t=a.current).onComplete)||e.call(t),y(e=>(0,eO.default)((0,eO.default)({},e),{},{status:"idle",error:null,data:void 0}))}})},[u,o,i,y]);A.useEffect(()=>(m(),()=>{var e;null==(e=f.current)||e.unsubscribe()}),[m]);let v=A.useRef(i?(0,eO.default)((0,eO.default)({},d),{},{reset:m}):(0,eO.default)((0,eO.default)({},h),{},{reset:m})),[b,g]=A.useState(ex(v.current,p));return b},useInfiniteQuery:function(e,t,r){var n,i,o,u,a;let{client:h,ssrState:d,prefetchInfiniteQuery:p,queryClient:f,abortOnUnmount:y}=l(),m=P(e,t,"infinite"),v=f.getQueryDefaults(m),b=t===s.hT;"undefined"!=typeof window||"prepass"!==d||(null==r||null==(n=r.trpc)?void 0:n.ssr)===!1||(null!=(i=null==r?void 0:r.enabled)?i:null==v?void 0:v.enabled)===!1||b||f.getQueryCache().find({queryKey:m})||p(m,(0,eO.default)((0,eO.default)({},v),r));let g=c(m,(0,eO.default)((0,eO.default)({},v),r)),O=null!=(o=null==r||null==(u=r.trpc)?void 0:u.abortOnUnmount)?o:y,x=ee((0,eO.default)((0,eO.default)({},g),{},{initialPageParam:null!=(a=r.initialCursor)?a:null,persister:r.persister,queryKey:m,queryFn:b?t:e=>{var t;let n=(0,eO.default)((0,eO.default)({},g),{},{trpc:(0,eO.default)((0,eO.default)({},null==g?void 0:g.trpc),O?{signal:e.signal}:{signal:null})});return h.query(...ef(m,n,{pageParam:null!=(t=e.pageParam)?t:r.initialCursor,direction:e.direction}))}}),es,f);return x.trpc=ev({path:e}),x},usePrefetchInfiniteQuery:function(e,t,r){var n,i,o;let u=l(),a=P(e,t,"infinite"),h=u.queryClient.getQueryDefaults(a),d=t===s.hT,p=c(a,(0,eO.default)((0,eO.default)({},h),r)),f=null!=(n=null==r||null==(i=r.trpc)?void 0:i.abortOnUnmount)?n:u.abortOnUnmount;!function(e,t){let r=(0,G.jE)(void 0);r.getQueryState(e.queryKey)||r.prefetchInfiniteQuery(e)}((0,eO.default)((0,eO.default)({},r),{},{initialPageParam:null!=(o=r.initialCursor)?o:null,queryKey:a,queryFn:d?t:e=>{var t;let n=(0,eO.default)((0,eO.default)({},p),{},{trpc:(0,eO.default)((0,eO.default)({},null==p?void 0:p.trpc),f?{signal:e.signal}:{})});return u.client.query(...ef(a,n,{pageParam:null!=(t=e.pageParam)?t:r.initialCursor,direction:e.direction}))}}))},useSuspenseInfiniteQuery:function(e,t,r){var n,s,i,o,u;let a=l(),h=P(e,t,"infinite"),d=a.queryClient.getQueryDefaults(h),p=c(h,(0,eO.default)((0,eO.default)({},d),r)),f=null!=(n=null==r||null==(s=r.trpc)?void 0:s.abortOnUnmount)?n:a.abortOnUnmount,y=(o=(0,eO.default)((0,eO.default)({},r),{},{initialPageParam:null!=(i=r.initialCursor)?i:null,queryKey:h,queryFn:e=>{var t;let n=(0,eO.default)((0,eO.default)({},p),{},{trpc:(0,eO.default)((0,eO.default)({},null==p?void 0:p.trpc),f?{signal:e.signal}:{})});return a.client.query(...ef(h,n,{pageParam:null!=(t=e.pageParam)?t:r.initialCursor,direction:e.direction}))}}),u=a.queryClient,ee({...o,enabled:!0,suspense:!0,throwOnError:Z},es,u));return y.trpc=ev({path:e}),[y.data,y]}}}(e))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.