PageSourceSearch

https://www.tpa-grp.com/_next/static/immutable/chunks/1gkvslf_pe9hv.js

js tpa-grp.com collected 2026-10-06 13:14:55 UTC 78,422 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,90849,412128,123756,555454,t=>{"use strict";t.i(961531);var e=t.i(673487),r=t.i(579161),i=t.i(227616),n=t.i(337640),s=t.i(975157),a=t.i(383757);t.s(["default",0,function(t){let{...o}=t,u=t.children||(0,n.getLinkProps)(t.field)?.label;return(0,e.jsx)(a.default,{...o,className:(0,s.cn)("group/titleBtn relative inline-flex",t.className),children:(0,e.jsx)(r.default,{className:"gap-2 pr-2",textWrapCn:"py-[3px]",textNode:(0,e.jsx)("div",{className:"title-md leading-[1.2] text-white",children:u}),rightNode:(0,e.jsx)(i.GradientArwRight,{className:"transition-transform duration-300 ease-out group-hover/titleBtn:translate-x-2"})})})}],412128);let o={large:"subtitle-lg",medium:"body-lg",small:"body-md"},u={large:"tracking-[-1.2px]",medium:"tracking-[-0.54px]",small:"tracking-[-0.48px]"};function l(t){let{children:r,showLabel:i,icon:n}=t;return i?(0,e.jsxs)("div",{className:"body-md flex items-center gap-4",children:[(0,e.jsx)(c,{children:n}),(0,e.jsx)("div",{className:"underline",children:r})]}):(0,e.jsx)(c,{children:n})}function c(t){let{children:r}=t;return(0,e.jsxs)("div",{className:(0,s.cn)("relative flex size-12 items-center justify-center rounded-[50%] border border-white/20","transition-colors duration-300 group-hover:text-black"),children:[(0,e.jsx)("div",{className:"absolute inset-0 scale-0 overflow-hidden rounded-[50%] bg-white transition-transform duration-200 group-hover:scale-100"}),(0,e.jsx)("div",{className:"relative",children:r})]})}t.s(["default",0,function(t){let{size:i="medium",textWrapCn:l,underlineCn:c,active:h,...d}=t,f=t.children||(0,n.getLinkProps)(t.field)?.label;return(0,e.jsx)(a.default,{...d,className:(0,s.cn)("group/textLink relative inline-flex",t.className),children:(0,e.jsx)(r.default,{active:h,textWrapCn:(0,s.cn)("py-1.75",l),underlineCn:(0,s.cn)("bottom-1",c),textNode:(0,e.jsx)("div",{className:(0,s.cn)("action-lg",o[i],u[i]),children:f})})})}],123756),t.s(["default",0,function(t){let{icon:r,showLabel:i=!1,...o}=t,u=t.children||(0,n.getLinkProps)(t.field)?.label;return(0,e.jsx)(a.default,{...o,className:(0,s.cn)("group relative inline-flex",t.className),children:(0,e.jsx)(l,{icon:r,showLabel:i,children:u})})}],555454),t.s([],90849)},961531,337640,383757,t=>{"use strict";var e=t.i(673487),r=t.i(227616),i=t.i(77607);function n(t,e){if(e)return{href:e,label:null};if(t){let{label:e,reference:r,type:n,url:s,anchor:a}=t;if("internal"===n&&r&&"number"!=typeof r?.value){let t="slug"in r.value&&"string"==typeof r.value.slug?r.value.slug:void 0,n="title"in r.value?r.value.title:void 0,s=a?`#${a}`:"";return{href:(0,i.getPathNonStrict)(r.relationTo,t)+s,label:e||n}}if("external"===n&&s)return{href:s,target:"_blank",label:e}}return null}t.s(["getLinkProps",0,n],337640);var s=t.i(975157),a=t.i(792728),o=t.i(217330);function u(t){let r="href"in t&&t.href?t.href:void 0,i=n(t.field,r);if(i&&("a"===t.as||void 0===t.as)){let{field:r,as:n,children:s,...u}=t;return(0,e.jsx)(o.default,{href:i.href,target:i.target,...u,...a.initNoInt,children:s||i.label})}if("button"===t.as){let{field:r,as:i,children:n,...o}=t;return(0,e.jsx)("button",{...o,className:(0,s.cn)("cursor-pointer",o.className),...a.initNoInt,children:n})}if("div"===t.as){let{field:r,as:i,children:n,...s}=t;return(0,e.jsx)("div",{...s,...a.initNoInt,children:n})}if("span"===t.as){let{field:r,as:i,children:n,...s}=t;return(0,e.jsx)("span",{...s,...a.initNoInt,children:n})}return null}t.s(["default",0,u],383757);let l="transition-all duration-[700ms]",c="font-family-inter text-[14px] font-medium text-nowrap uppercase leading-1";t.s(["default",0,function(t){let{...i}=t,a=t.children||n(t.field)?.label;return(0,e.jsxs)(u,{...i,className:(0,s.cn)("group relative inline-flex gap-2 rounded-sm border border-white/20","h-12 min-w-[200px] justify-between overflow-hidden py-2.5 pr-3 pl-6",t.className),children:[(0,e.jsx)("div",{className:(0,s.cn)(l,"absolute inset-0 origin-bottom scale-y-0 bg-white group-hover:scale-y-100")}),(0,e.jsx)("span",{className:(0,s.cn)(c,"invisible"),children:a}),(0,e.jsxs)("span",{className:(0,s.cn)(l,c,"absolute top-1/2 flex translate-y-[calc(-50%-1px)] items-center gap-1","-left-1 group-hover:left-1/2 group-hover:-translate-x-1/2","group-hover:text-black"),children:[(0,e.jsx)(r.PlainArwRight,{className:(0,s.cn)(l,"-translate-x-full text-black opacity-0 group-hover:translate-x-0 group-hover:opacity-100")}),a]}),(0,e.jsx)(r.GradientArwRight,{className:(0,s.cn)(l,"relative group-hover:translate-x-full group-hover:opacity-0")})]})}],961531)},19468,734828,521133,650955,632402,t=>{"use strict";let e,r,i,n,s,a,o,u,l={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},c=new class{#t=l;#e=!1;setTimeoutProvider(t){this.#t=t}setTimeout(t,e){return this.#t.setTimeout(t,e)}clearTimeout(t){this.#t.clearTimeout(t)}setInterval(t,e){return this.#t.setInterval(t,e)}clearInterval(t){this.#t.clearInterval(t)}},h="u"<typeof window||"Deno"in globalThis;function d(){}function f(t){return"number"==typeof t&&t>=0&&t!==1/0}function p(t,e){return Math.max(t+(e||0)-Date.now(),0)}function y(t,e){return"function"==typeof t?t(e):t}function m(t,e){let{type:r="all",exact:i,fetchStatus:n,predicate:s,queryKey:a,stale:o}=t;if(a){if(i){if(e.queryHash!==v(a,e.options))return!1}else if(!O(e.queryKey,a))return!1}if("all"!==r){let t=e.isActive();if("active"===r&&!t||"inactive"===r&&t)return!1}return("boolean"!=typeof o||e.isStale()===o)&&(!n||n===e.state.fetchStatus)&&(!s||!!s(e))}function b(t,e){let{exact:r,status:i,predicate:n,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(r){if(g(e.options.mutationKey)!==g(s))return!1}else if(!O(e.options.mutationKey,s))return!1}return(!i||e.state.status===i)&&(!n||!!n(e))}function v(t,e){return(e?.queryKeyHashFn||g)(t)}function g(t){return JSON.stringify(t,(t,e)=>Q(e)?Object.keys(e).sort().reduce((t,r)=>(t[r]=e[r],t),{}):e)}function O(t,e){if(t===e)return!0;
1if(typeof t!=typeof e)return!1;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(Array.isArray(t)&&Array.isArray(e)){if(e.length>t.length)return!1;for(let r=0;r<e.length;r++)if(!O(t[r],e[r]))return!1;return!0}for(let r of Object.keys(e))if(!O(t[r],e[r]))return!1;return!0}return!1}let w=Object.prototype.hasOwnProperty;function P(t,e,r=0){if(t===e)return t;if(r>500)return e;let i=C(t)&&C(e);if(!i&&!(Q(t)&&Q(e)))return e;let n=(i?t:Object.keys(t)).length,s=i?e:Object.keys(e),a=s.length,o=i?Array(a):{},u=0;for(let l=0;l<a;l++){let a=i?l:s[l],c=t[a],h=e[a];if(c===h){o[a]=c,(i?l<n:w.call(t,a))&&u++;continue}if(null===c||null===h||"object"!=typeof c||"object"!=typeof h){o[a]=h;continue}let d=P(c,h,r+1);o[a]=d,d===c&&u++}return n===a&&u===n?t:o}function S(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let r in t)if(t[r]!==e[r])return!1;return!0}function C(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Q(t){if(!x(t))return!1;let e=Object.getPrototypeOf(t),r=e?.constructor;if(void 0===r)return!0;if("function"!=typeof r)return!1;let i=r.prototype;return!!x(i)&&!!i.hasOwnProperty("isPrototypeOf")&&e===Object.prototype}function x(t){return"[object Object]"===Object.prototype.toString.call(t)}function q(t,e,r){return"function"==typeof r.structuralSharing?r.structuralSharing(t,e):!1!==r.structuralSharing?P(t,e):e}function R(t,e,r=0){let i=[...t,e];return r&&i.length>r?i.slice(1):i}function j(t,e,r=0){let i=[e,...t];return r&&i.length>r?i.slice(0,-1):i}let E=Symbol();function D(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:t.queryFn&&t.queryFn!==E?t.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${t.queryHash}'`))}function k(t,e){return"function"==typeof t?t(...e):!!t}function T(t){return!!t&&!Array.isArray(t)&&"object"==typeof t}let M="function"==typeof Symbol&&!!Symbol.asyncIterator;function I(t){return M&&T(t)&&Symbol.asyncIterator in t}function F(t){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function U(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A(Object(r),!0).forEach(function(e){!function(t,e,r){var i;(i=function(t,e){if("object"!=F(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=F(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==F(i)?i:i+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}let N=["cursor","direction"];function L(t,e,r){let i=t.flatMap(t=>t.split("."));if(!e&&(!r||"any"===r))return i.length?[i]:[];if("infinite"===r&&T(e)&&("direction"in e||"cursor"in e)){let{cursor:t,direction:r}=e;return[i,{input:function(t,e){if(null==t)return{};var r,i,n=function(t,e){if(null==t)return{};var r={};for(var i in t)if(({}).hasOwnProperty.call(t,i)){if(e.includes(i))continue;r[i]=t[i]}return r}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],e.includes(r)||({}).propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}(e,N),type:"infinite"}]}return[i,U(U({},void 0!==e&&e!==E&&{input:e}),r&&"any"!==r&&{type:r})]}function K(t){return L(t,void 0,"any")}function H(t){let e={subscribe(e){let r=null,i=!1,n=!1,s=!1;function a(){if(null===r){s=!0;return}!n&&(n=!0,"function"==typeof r?r():r&&r.unsubscribe())}return r=t({next(t){var r;i||null==(r=e.next)||r.call(e,t)},error(t){var r;i||(i=!0,null==(r=e.error)||r.call(e,t),a())},complete(){var t;i||(i=!0,null==(t=e.complete)||t.call(e),a())}}),s&&a(),{unsubscribe:a}},pipe:(...t)=>t.reduce(_,e)};return e}function _(t,e){return e(t)}function G(t){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function W(t,e,r){var i;return(i=function(t,e){if("object"!=G(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=G(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==G(i)?i:i+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function B(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?z(Object(r),!0).forEach(function(e){W(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var $,J,V,X=class t extends Error{constructor(e,r){var i,n;const s=null==r?void 0:r.cause;super(e,{cause:s}),W(this,"cause",void 0),W(this,"shape",void 0),W(this,"data",void 0),W(this,"meta",void 0),this.meta=null==r?void 0:r.meta,this.cause=s,this.shape=null==r||null==(i=r.result)?void 0:i.error,this.data=null==r||null==(n=r.result)?void 0:n.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,t.prototype)}static from(e,r={}){return e instanceof X?(r.meta&&(e.meta=B(B({},e.meta),r.meta)),e):T(e)&&T(e.error)&&"number"==typeof e.error.code&&"string"==typeof e.error.message?new t(e.error.message,B(B({},r),{},{result:e,cause:r.cause})):new t("string"==typeof e?e:T(e)&&"string"==typeof e.message?e.message:"Unknown error",B(B({},r),{},{cause:e}))}};let Y={query:"GET",mutation:"POST",subscription:"PATCH"};function Z(t){return"input"in t?t.transformer.input.serialize(t.input):function(t){let e={};for(let r=0;r<t.length;r++){let i=t[r];e[r]=i}return e}(t.inputs.map(e=>t.transformer.input.serialize(e)))}let tt=t=>{let e=t.url.split("?"),r=e[0].replace(/\/$/,"")+"/"+t.path,i=[];if(e[1]&&i.push(e[1]),"inputs"in t&&i.push("batch=1"),"query"===t.type||"subscription"===t.type){let e=Z(t);void 0!==e&&"POST"!==t.methodOverride&&i.push(`input=${encodeURIComponent(JSON.stringify(e))}`)}return i.length&&(r+="?"+i.join("&")),r},te=t=>{if("query"===t.type&&"POST"!==t.methodOverride)return;let e=Z(t);return void 0!==e?JSON.stringify(e):void 0};var tr=class extends Error{constructor(){const t="AbortError";super(t),this.name=t,this.message=t}};async function ti(t){var e,r,i,n=t.signal;if(null==n?void 0:n.aborted){if(null==(i=n.throwIfAborted)||i.call(n),"u">typeof DOMException)throw new DOMException("AbortError","AbortError");throw new tr}let s=t.getUrl(t),a=t.getBody(t),o=null!=(e=t.methodOverride)?e:Y[t.type],u=await (async()=>{let e=await t.headers();return Symbol.iterator in e?Object.fromEntries(e):e})(),l=B(B(B({},t.contentTypeHeader&&"GET"!==o?{"content-type":t.contentTypeHeader}:{}),t.trpcAcceptHeader?{[null!=(r=t.trpcAcceptHeaderKey)?r:"trpc-accept"]:t.trpcAcceptHeader}:void 0),u);return(function(t){if(t)return t;if("u">typeof window&&"function"==typeof window.fetch)return window.fetch.bind(window);if("u">typeof globalThis&&"function"==typeof globalThis.fetch)return globalThis.fetch;throw Error("No fetch implementation found")})(t.fetch)(s,{method:o,signal:t.signal,body:a,headers:l})}async function tn(t){let e={},r=await ti(t);e.response=r;let i=await r.json();return e.responseJSON=i,{json:i,meta:e}}let ts=()=>{},ta=t=>{Object.freeze&&Object.freeze(t)},to=t=>(function t(e,r,i){let n=r.join(".");return null!=i[n]||(i[n]=new Proxy(ts,{get(n,s){if("string"==typeof s&&"then"!==s)return t(e,[...r,s],i)},apply(t,i,n){let s=r[r.length-1];if("valueOf"===s||"toString"===s||"toJSON"===s)return`tRPC.proxy(${r.slice(0,-1).join(".")})`;let a={args:n,path:r};return"call"===s?a={args:n.length>=2?[n[1]]:[],path:r.slice(0,-1)}:"apply"===s&&(a={args:n.length>=2?n[1]:[],path:r.slice(0,-1)}),ta(a.args),ta(a.path),e(a)}})),i[n]})(t,[],Object.create(null)),tu=t=>new Proxy(ts,{get(e,r){if("then"!==r)return t(r)}});function tl(t){return(tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tc(t,e,r){var i;return(i=function(t,e){if("object"!=tl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=tl(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==tl(i)?i:i+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function th(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function td(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?th(Object(r),!0).forEach(function(e){tc(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):th(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var tf=class extends Error{constructor(){super("Unable to transform response from server")}};Symbol();let tp=()=>{throw Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function ty(t){let e=null,r=null;function i(){let i=function(e){let r=[[]],i=0;for(;;){var n,s;let a=e[i];if(!a)break;let o=r[r.length-1];if(a.aborted){null==(n=a.reject)||n.call(a,Error("Aborted")),i++;continue}if(t.validate(o.concat(a).map(t=>t.key))){o.push(a),i++;continue}if(0===o.length){null==(s=a.reject)||s.call(a,Error("Input is too big for a single dispatch")),i++;continue}r.push([])}return r}(e);for(let n of(clearTimeout(r),r=null,e=null,i)){if(!n.length)continue;let e={items:n};for(let t of n)t.batch=e;t.fetch(e.items.map(t=>t.key)).then(async t=>{for(let i of(await Promise.all(t.map(async(t,r)=>{var i,n;let s=e.items[r];try{let e=await Promise.resolve(t);null==(i=s.resolve)||i.call(s,e)}catch(t){null==(n=s.reject)||n.call(s,t)}s.batch=null,s.reject=null,s.resolve=null}
1)),e.items)){var r;null==(r=i.reject)||r.call(i,Error("Missing result")),i.batch=null}}).catch(t=>{for(let i of e.items){var r;null==(r=i.reject)||r.call(i,t),i.batch=null}})}}return{load:function(t){let n={aborted:!1,key:t,batch:null,resolve:tp,reject:tp},s=new Promise((t,r)=>{n.reject=r,n.resolve=t,null!=e||(e=[]),e.push(n)});return null!=r||(r=setTimeout(i)),s}}}t.s(["n",0,ty,"t",0,function(t){var e,r,i;let n={url:t.url.toString(),fetch:t.fetch,transformer:(i=t.transformer)?"input"in i?i:{input:i,output:i}:{input:{serialize:t=>t,deserialize:t=>t},output:{serialize:t=>t,deserialize:t=>t}},methodOverride:t.methodOverride},s=null!=(e=t.maxURLLength)?e:1/0,a=null!=(r=t.maxItems)?r:1/0;return()=>{let e=e=>({validate(t){if(s===1/0&&a===1/0)return!0;if(t.length>a)return!1;let r=t.map(t=>t.path).join(","),i=t.map(t=>t.input);return tt(B(B({},n),{},{type:e,path:r,inputs:i,signal:null})).length<=s},async fetch(r){let i,s=r.map(t=>t.path).join(","),a=r.map(t=>t.input),o=function(...t){let e=new AbortController,r=t.length,i=0,n=()=>{++i===r&&e.abort()};for(let e of t)(null==e?void 0:e.aborted)?n():null==e||e.addEventListener("abort",n,{once:!0});return e.signal}(...r.map(t=>t.signal)),u=await (i=B(B({},n),{},{path:s,inputs:a,type:e,headers:()=>t.headers?"function"==typeof t.headers?t.headers({opList:r}):t.headers:{},signal:o}),tn(B(B({},i),{},{contentTypeHeader:"application/json",getUrl:tt,getBody:te})));return(Array.isArray(u.json)?u.json:r.map(()=>u.json)).map(t=>({meta:u.meta,json:t}))}}),r={query:ty(e("query")),mutation:ty(e("mutation"))};return({op:t})=>H(e=>{let i;if("subscription"===t.type)throw Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");let s=new AbortController,a=r[t.type].load(B(B({},t),{},{signal:function(...t){let e=new AbortController;for(let r of t)(null==r?void 0:r.aborted)?e.abort():null==r||r.addEventListener("abort",()=>e.abort(),{once:!0});return e.signal}(t.signal,s.signal)})),o=!1;return a.then(t=>{o=!0,i=t;let r=function(t,e){let r;try{r=function(t,e){if("error"in t){let r=e.deserialize(t.error);return{ok:!1,error:td(td({},t),{},{error:r})}}return{ok:!0,result:td(td({},t.result),(!t.result.type||"data"===t.result.type)&&{type:"data",data:e.deserialize(t.result.data)})}}(t,e)}catch(t){throw new tf}if(!r.ok&&(!T(r.error.error)||"number"!=typeof r.error.error.code)||r.ok&&!T(r.result))throw new tf;return r}(t.json,n.transformer.output);r.ok?(e.next({context:t.meta,result:r.result}),e.complete()):e.error(X.from(r.error,{meta:t.meta}))}).catch(t=>{o=!0,e.error(X.from(t,{meta:null==i?void 0:i.meta}))}),()=>{o||s.abort()}})}}],734828),Symbol();let tm=(t,...e)=>"function"==typeof t?t(...e):t;async function tb(t){let e=await tm(t.url);return t.connectionParams?e+`${e.includes("?")?"&":"?"}connectionParams=1`:e}async function tv(t,e){let r={method:"connectionParams",data:await tm(t)};return e.encode(r)}var tg=class t{constructor(e){var r;if(W(this,"id",++t.connectCount),W(this,"WebSocketPonyfill",void 0),W(this,"urlOptions",void 0),W(this,"keepAliveOpts",void 0),W(this,"encoder",void 0),W(this,"wsObservable",function(){let t=null,e=[],r=H(r=>(void 0!==t&&r.next(t),e.push(r),()=>{e.splice(e.indexOf(r),1)}));return r.next=r=>{if(t!==r)for(let i of(t=r,e))i.next(r)},r.get=()=>t,r}()),W(this,"openPromise",null),this.WebSocketPonyfill=null!=(r=e.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=e.urlOptions,this.keepAliveOpts=e.keepAlive,this.encoder=e.encoder}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}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(){if(this.openPromise)return this.openPromise;this.id=++t.connectCount;let e=tb(this.urlOptions).then(t=>new this.WebSocketPonyfill(t));this.openPromise=e.then(async t=>{this.ws=t,t.binaryType="arraybuffer",t.addEventListener("message",function({data:t}){"PING"===t&&this.send("PONG")}),this.keepAliveOpts.enabled&&function(t,{intervalMs:e,pongTimeoutMs:r}){let i,n;function s(){i=setTimeout(()=>{t.send("PING"),n=setTimeout(()=>{t.close()},r)},e)}t.addEventListener("open",s),t.addEventListener("message",({data:t})=>{clearTimeout(i),s(),"PONG"===t&&(clearTimeout(n),clearTimeout(i),s())}),t.addEventListener("close",()=>{clearTimeout(i),clearTimeout(n)})}(t,this.keepAliveOpts),t.addEventListener("close",()=>{this.ws===t&&(this.ws=null)}),await function(t){let e,r,{promise:i,resolve:n,reject:s}={promise:new Promise((t,i)=>{e=t,r=i}),resolve:e,reject:r};return t.addEventListener("open",()=>{t.removeEventListener("error",s),n()}),t.addEventListener("error",s),i}(t),this.urlOptions.connectionParams&&t.send(await tv(this.urlOptions.connectionParams,this.encoder))});try{await this.openPromise}finally{this.openPromise=null}}async close(){try{await this.openPromise}finally{var t;null==(t=this.ws)||t.close()}}};W(tg,"connectCount",0);let tO=new WeakMap,tw=()=>{};e=Symbol.toStringTag;
1var tP=class t{constructor(t){tc(this,"promise",void 0),tc(this,"subscribers",[]),tc(this,"settlement",null),tc(this,e,"Unpromise"),"function"==typeof t?this.promise=new Promise(t):this.promise=t;const r=this.promise.then(t=>{let{subscribers:e}=this;this.subscribers=null,this.settlement={status:"fulfilled",value:t},null==e||e.forEach(({resolve:e})=>{e(t)})});"catch"in r&&r.catch(t=>{let{subscribers:e}=this;this.subscribers=null,this.settlement={status:"rejected",reason:t},null==e||e.forEach(({reject:e})=>{e(t)})})}subscribe(){let t,e,{settlement:r}=this;if(null===r){var i;let r,n;if(null===this.subscribers)throw Error("Unpromise settled but still has subscribers");let s={promise:new Promise((t,e)=>{r=t,n=e}),resolve:r,reject:n};this.subscribers=(i=this.subscribers,[...i,s]),t=s.promise,e=()=>{null!==this.subscribers&&(this.subscribers=function(t,e){let r=t.indexOf(e);if(-1!==r)return[...t.slice(0,r),...t.slice(r+1)];return t}(this.subscribers,s))}}else{let{status:i}=r;t="fulfilled"===i?Promise.resolve(r.value):Promise.reject(r.reason),e=tw}return Object.assign(t,{unsubscribe:e})}then(t,e){let r=this.subscribe(),{unsubscribe:i}=r;return Object.assign(r.then(t,e),{unsubscribe:i})}catch(t){let e=this.subscribe(),{unsubscribe:r}=e;return Object.assign(e.catch(t),{unsubscribe:r})}finally(t){let e=this.subscribe(),{unsubscribe:r}=e;return Object.assign(e.finally(t),{unsubscribe:r})}static proxy(e){let r=t.getSubscribablePromise(e);return void 0!==r?r:t.createSubscribablePromise(e)}static createSubscribablePromise(e){let r=new t(e);return tO.set(e,r),tO.set(r,r),r}static getSubscribablePromise(t){return tO.get(t)}static resolve(e){let r="object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then?e:Promise.resolve(e);return t.proxy(r).subscribe()}static async any(e){let r=(Array.isArray(e)?e:[...e]).map(t.resolve);try{return await Promise.any(r)}finally{r.forEach(({unsubscribe:t})=>{t()})}}static async race(e){let r=(Array.isArray(e)?e:[...e]).map(t.resolve);try{return await Promise.race(r)}finally{r.forEach(({unsubscribe:t})=>{t()})}}static async raceReferences(t){let e=t.map(tS);try{return await Promise.race(e)}finally{for(let t of e)t.unsubscribe()}}};function tS(t){return tP.proxy(t).then(()=>[t])}function tC(t,e){this.v=t,this.k=e}function tQ(t){var e,r;function i(e,r){try{var s=t[e](r),a=s.value,o=a instanceof tC;Promise.resolve(o?a.v:a).then(function(r){if(o){var u="return"===e?"return":"next";if(!a.k||r.done)return i(u,r);r=t[u](r).value}n(s.done?"return":"normal",r)},function(t){i("throw",t)})}catch(t){n("throw",t)}}function n(t,n){switch(t){case"return":e.resolve({value:n,done:!0});break;case"throw":e.reject(n);break;default:e.resolve({value:n,done:!1})}(e=e.next)?i(e.key,e.arg):r=null}this._invoke=function(t,n){return new Promise(function(s,a){var o={key:t,arg:n,resolve:s,reject:a,next:null};r?r=r.next=o:(e=r=o,i(t,n))})},"function"!=typeof t.return&&(this.return=void 0)}null!=($=Symbol).dispose||($.dispose=Symbol()),null!=(J=Symbol).asyncDispose||(J.asyncDispose=Symbol()),Symbol(),tQ.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},tQ.prototype.next=function(t){return this._invoke("next",t)},tQ.prototype.throw=function(t){return this._invoke("throw",t)},tQ.prototype.return=function(t){return this._invoke("return",t)},Symbol("ping");var tx=class{constructor(t){W(this,"links",void 0),W(this,"runtime",void 0),W(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=t.links.map(t=>t(this.runtime))}$request(t){var e,r;return(r={links:this.links,op:B(B({},t),{},{context:null!=(e=t.context)?e:{},id:++this.requestId})},H(t=>(function t(e=0,i=r.op){let n=r.links[e];if(!n)throw Error("No more links to execute - did you forget to add an ending link?");return n({op:i,next:r=>t(e+1,r)})})().subscribe(t))).pipe(t=>{let e=0,r=null,i=[];return H(n=>(e++,i.push(n),r||(r=t.subscribe({next(t){for(let r of i){var e;null==(e=r.next)||e.call(r,t)}},error(t){for(let r of i){var e;null==(e=r.error)||e.call(r,t)}},complete(){for(let e of i){var t;null==(t=e.complete)||t.call(e)}}})),{unsubscribe(){if(0==--e&&r){let t=r;r=null,t.unsubscribe()}let t=i.findIndex(t=>t===n);t>-1&&i.splice(t,1)}}))})}async requestAsPromise(t){try{let e,r=this.$request(t);return(await (e=new AbortController,new Promise((t,i)=>{let n=!1;function s(){n||(n=!0,a.unsubscribe())}e.signal.addEventListener("abort",()=>{i(e.signal.reason)});let a=r.subscribe({next(e){n=!0,t(e),s()},error(t){i(t)},complete(){e.abort(),s()}})}))).result.data}catch(t){throw X.from(t)}}query(t,e,r){return this.requestAsPromise({type:"query",path:t,input:e,context:null==r?void 0:r.context,signal:null==r?void 0:r.signal})}mutation(t,e,r){return this.requestAsPromise({type:"mutation",path:t,input:e,context:null==r?void 0:r.context,signal:null==r?void 0:r.signal})}subscription(t,e,r){return this.$request({type:"subscription",path:t,input:e,context:r.context,signal:r.signal}).subscribe({next(t){var e,i,n,s;switch(t.result.type){case"state":null==(e=r.onConnectionStateChange)||e.call(r,t.result);break;case"started":null==(i=r.onStarted)||i.call(r,{context:t.context});break;case"stopped":null==(n=r.onStopped)||n.call(r);break;case"data":case void 0:null==(s=r.onData)||s.call(r,t.result.data)}},error(t){var e;null==(e=r.onError)||e.call(r,t)},complete(){var t;null==(t=r.onComplete)||t.call(r)}})}};let tq=Symbol.for("trpc_untypedClient"),tR={query:"query",mutate:"mutation",subscribe:"subscription"};function tj(t){let e=to(({path:e,args:r})=>{let i=[...e],n=tR[i.pop()],s=i.join(".");return t[n](s,...r)});return tu(r=>r===tq?t:e[r])}function tE(t){return tj(new tx(t))}function tD(t,e){this.v=t,this.k=e}function tk(t){var e,r;function i(e,r){try{var s=t[e](r),a=s.value,o=a instanceof tD;Promise.resolve(o?a.v:a).then(function(r){if(o){var u="return"===e?"return":"next";if(!a.k||r.done)return i(u,r);r=t[u](r).value}n(s.done?"return":"normal",r)},function(t){i("throw",t)})}catch(t){n("throw",t)}}function n(t,n){switch(t){case"return":e.resolve({value:n,done:!0});break;case"throw":e.reject(n);break;default:e.resolve({value:n,done:!1})}
vendor: 6,643 bytes, line 1
1(e=e.next)?i(e.key,e.arg):r=null}this._invoke=function(t,n){return new Promise(function(s,a){var o={key:t,arg:n,resolve:s,reject:a,next:null};r?r=r.next=o:(e=r=o,i(t,n))})},"function"!=typeof t.return&&(this.return=void 0)}tk.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},tk.prototype.next=function(t){return this._invoke("next",t)},tk.prototype.throw=function(t){return this._invoke("throw",t)},tk.prototype.return=function(t){return this._invoke("return",t)};var tT=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};let tM=new class extends tT{#r;#i;#n;constructor(){super(),this.#n=t=>{if("u">typeof window&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#i||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#i?.(),this.#i=void 0)}setEventListener(t){this.#n=t,this.#i?.(),this.#i=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.#r!==t&&(this.#r=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return"boolean"==typeof this.#r?this.#r:globalThis.document?.visibilityState!=="hidden"}},tI=(r=[],i=0,n=t=>{t()},s=t=>{t()},a=function(t){setTimeout(t,0)},{batch:t=>{let e;i++;try{e=t()}finally{let t;--i||(t=r,r=[],t.length&&a(()=>{s(()=>{t.forEach(t=>{n(t)})})}))}return e},batchCalls:t=>(...e)=>{o(()=>{t(...e)})},schedule:o=t=>{i?r.push(t):a(()=>{n(t)})},setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{s=t},setScheduler:t=>{a=t}}),tF=new class extends tT{#s=!0;#i;#n;constructor(){super(),this.#n=t=>{if("u">typeof window&&window.addEventListener){let e=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#i||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#i?.(),this.#i=void 0)}setEventListener(t){this.#n=t,this.#i?.(),this.#i=t(this.setOnline.bind(this))}setOnline(t){this.#s!==t&&(this.#s=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#s}};function tA(t){return Math.min(1e3*2**t,3e4)}function tU(t){return(t??"online")!=="online"||tF.isOnline()}var tN=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function tL(t){let e,r,i,n=!1,s=0,a="pending",o=new Promise((t,e)=>{r=t,i=e});o.catch(d);let u=()=>tM.isFocused()&&("always"===t.networkMode||tF.isOnline())&&t.canRun(),l=()=>tU(t.networkMode)&&t.canRun(),f=t=>{"pending"===a&&(e?.(),a="resolved",r(t))},p=t=>{"pending"===a&&(e?.(),a="rejected",i(t))},y=()=>new Promise(r=>{e=t=>{("pending"!==a||u())&&r(t)},t.onPause?.()}).then(()=>{e=void 0,"pending"===a&&t.onContinue?.()}),m=()=>{let e;if("pending"!==a)return;let r=0===s?t.initialPromise:void 0;try{e=r??t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(f).catch(e=>{if("pending"!==a)return;let r=t.retry??3*!h,i=t.retryDelay??tA,o="function"==typeof i?i(s,e):i,l=!0===r||"number"==typeof r&&s<r||"function"==typeof r&&r(s,e);n||!l?p(e):(s++,t.onFail?.(s,e),new Promise(t=>{c.setTimeout(t,o)}).then(()=>u()?void 0:y()).then(()=>{n?p(e):m()}))})};return{promise:o,status:()=>a,cancel:e=>{if("pending"===a){let r=new tN(e);p(r),t.onCancel?.(r)}},continue:()=>(e?.(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:l,start:()=>(l()?m():y().then(m),o)}}var tK=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),f(this.gcTime)&&(this.#a=c.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(h?1/0:3e5))}clearGcTimeout(){void 0!==this.#a&&(c.clearTimeout(this.#a),this.#a=void 0)}},tH=class extends tK{#o;#u;#l;#c;constructor(t){super(),this.#o=t.client,this.mutationId=t.mutationId,this.#l=t.mutationCache,this.#u=[],this.state=t.state||t_(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#u.includes(t)||(this.#u.push(t),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#u=this.#u.filter(e=>e!==t),this.scheduleGc(),this.#l.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#u.length||("pending"===this.state.status?this.scheduleGc():this.#l.remove(this))}continue(){return this.#c?.continue()??("pending"===this.state.status?this.execute(this.state.variables):Promise.resolve())}async execute(t){let e=()=>{this.#h({type:"continue"})},r={client:this.#o,meta:this.options.meta,mutationKey:this.options.mutationKey},i=this.#c=tL({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#h({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#h({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#l.canRun(this)}),n="pending"===this.state.status,s=!i.canStart();try{if(n)e();else{this.#h({type:"pending",variables:t,isPaused:s}),this.#l.config.onMutate&&await this.#l.config.onMutate(t,this,r);let e=await this.options.onMutate?.(t,r);e!==this.state.context&&this.#h({type:"pending",context:e,variables:t,isPaused:s})}let a=await i.start();return await this.#l.config.onSuccess?.(a,t,this.state.context,this,r),await this.options.onSuccess?.(a,t,this.state.context,r),await this.#l.config.onSettled?.(a,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(a,null,t,this.state.context,r),this.#h({type:"success",data:a}),a}catch(e){try{await this.#l.config.onError?.(e,t,this.state.context,this,r)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,r)}catch(t){Promise.reject(t)}try{await this.#l.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,r)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,r)}catch(t){Promise.reject(t)}throw this.#h({type:"error",error:e}),e}finally{this.#c===i&&(this.#c=void 0),this.#l.runNext(this)}}#h(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};
vendor: 1,619 bytes, line 1
1case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),tI.batch(()=>{this.#u.forEach(e=>{e.onMutationUpdate(t)}),this.#l.notify({mutation:this,type:"updated",action:t})})}};function t_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var tG=class extends tT{#d;#f;#p;constructor(t={}){super(),this.config=t,this.#d=new Set,this.#f=new Map,this.#p=0}build(t,e,r){let i=new tH({client:t,mutationCache:this,mutationId:++this.#p,options:t.defaultMutationOptions(e),state:r});return this.add(i),i}add(t){this.#d.add(t);let e=tW(t);if("string"==typeof e){let r=this.#f.get(e);r?r.push(t):this.#f.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#d.delete(t)){let e=tW(t);if("string"==typeof e){let r=this.#f.get(e);if(r)if(r.length>1){let e=r.indexOf(t);-1!==e&&r.splice(e,1)}else r[0]===t&&this.#f.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){let e=tW(t);if("string"!=typeof e)return!0;{let r=this.#f.get(e)?.find(t=>"pending"===t.state.status);return!r||r===t}}runNext(t){let e=tW(t);return"string"==typeof e?this.#f.get(e)?.find(e=>
vendor: 8,570 bytes, line 1
1e!==t&&e.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){tI.batch(()=>{this.#d.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#d.clear(),this.#f.clear()})}getAll(){return Array.from(this.#d)}find(t){let e={exact:!0,...t};return this.getAll().find(t=>b(e,t))}findAll(t={}){return this.getAll().filter(e=>b(t,e))}notify(t){tI.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(t=>t.state.isPaused);return tI.batch(()=>Promise.all(t.map(t=>t.continue().catch(d))))}};function tW(t){return t.options.scope?.id}function tz(t,{pages:e,pageParams:r}){let i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,r[i],r):void 0}function tB(t,{pages:e,pageParams:r}){return e.length>0?t.getPreviousPageParam?.(e[0],e,r[0],r):void 0}var t$=class extends tK{#y;#m;#b;#v;#o;#c;#g;#O;constructor(t){super(),this.#O=!1,this.#g=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#o=t.client,this.#v=this.#o.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#m=tX(this.options),this.state=t.state??this.#m,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#y}get promise(){return this.#c?.promise}setOptions(t){if(this.options={...this.#g,...t},t?._type&&(this.#y=t._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let t=tX(this.options);void 0!==t.data&&(this.setState(tV(t.data,t.dataUpdatedAt)),this.#m=t)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#v.remove(this)}setData(t,e){let r=q(this.state.data,t,this.options);return this.#h({data:r,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),r}setState(t){this.#h({type:"setState",state:t})}cancel(t){let e=this.#c?.promise;return this.#c?.cancel(t),e?e.then(d).catch(d):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#m}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>!1!==y(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===E||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===y(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!p(this.state.dataUpdatedAt,t))}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#c?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#c?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#v.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){let e=this.observers.indexOf(t);-1!==e&&(this.observers.splice(e,1),this.observers.length||(this.#c&&(this.#O||"paused"===this.state.fetchStatus&&"pending"===this.state.status?this.#c.cancel({revert:!0}):this.#c.cancelRetry()),this.scheduleGc()),this.#v.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#h({type:"invalidate"})}async fetch(t,e){var r;let i;if("idle"!==this.state.fetchStatus&&this.#c?.status()!=="rejected"){if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#c)return this.#c.continueRetry(),this.#c.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let n=new AbortController,s=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#O=!0,n.signal)})},a=()=>{let t,r=D(this.options,e),i=(s(t={client:this.#o,queryKey:this.queryKey,meta:this.meta}),t);return(this.#O=!1,this.options.persister)?this.options.persister(r,i,this):r(i)},o=(s(i={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:a}),i);("infinite"===this.#y?(r=this.options.pages,{onFetch:(t,e)=>{let i=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],a=t.state.data?.pageParams||[],o={pages:[],pageParams:[]},u=0,l=async()=>{let e=!1,l=D(t.options,t.fetchOptions),c=async(r,i,n)=>{if(e)return Promise.reject(t.signal.reason);if(null==i&&r.pages.length)return Promise.resolve(r);let s=(()=>{var r,s;let a,o,u={client:t.client,queryKey:t.queryKey,pageParam:i,direction:n?"backward":"forward",meta:t.options.meta};return r=()=>t.signal,s=()=>e=!0,o=!1,Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(a??=r(),o||(o=!0,a.aborted?s():a.addEventListener("abort",s,{once:!0})),a)}),u})(),a=await l(s),{maxPages:o}=t.options,u=n?j:R;return{pages:u(r.pages,a,o),pageParams:u(r.pageParams,i,o)}};if(n&&s.length){let t="backward"===n,e=t?tB:tz,r={pages:s,pageParams:a};o=await c(r,e(i,r),t)}else{let t=r??s.length;do{let t=0===u?a[0]??i.initialPageParam:tz(i,o);if(u>0&&null==t)break;o=await c(o,t),u++}while(u<t)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e):t.fetchFn=l}}):this.options.behavior)?.onFetch(o,this),this.#b=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#h({type:"fetch",meta:o.fetchOptions?.meta});let u=this.#c=tL({initialPromise:e?.initialPromise,fn:o.fetchFn,onCancel:t=>{t instanceof tN&&t.revert&&this.setState({...this.#b,fetchStatus:"idle"}),n.abort()},onFail:(t,e)=>{this.#h({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#h({type:"pause"})},onContinue:()=>{this.#h({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{let t=await u.start();if(void 0===t)throw Error(`${this.queryHash} data is undefined`);return this.setData(t),this.#v.config.onSuccess?.(t,this),this.#v.config.onSettled?.(t,this.state.error,this),t}catch(t){if(t instanceof tN){if(t.silent)return this.#c.promise;else if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw this.#h({type:"error",error:t}),this.#v.config.onError?.(t,this),this.#v.config.onSettled?.(this.state.data,t,this),t}finally{this.#c===u&&(this.#c=void 0),this.scheduleGc()}}#h(t){let e=e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...tJ(e.data,this.options),fetchMeta:t.meta??null};case"success":let r={...e,...tV(t.data,t.dataUpdatedAt),dataUpdateCount:e.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#b=t.manual?r:void 0,r;case"error":let i=t.error;return{...e,error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),tI.batch(()=>{this.observers.slice().forEach(t=>{t.onQueryUpdate()}),this.#v.notify({query:this,type:"updated",action:t})})}};function tJ(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tU(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}function tV(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function tX(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,r=void 0!==e,i=r?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var tY=class extends tT{#w;constructor(t={}){super(),this.config=t,this.#w=new Map}build(t,e,r){let i=e.queryKey,n=e.queryHash??v(i,e),s=this.get(n);return s||(s=new t$({client:t,queryKey:i,queryHash:n,options:t.defaultQueryOptions(e),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.#w.has(t.queryHash)||(this.#w.set(t.queryHash,t),this.notify({type:"added",query:t}))}
vendor: 4,260 bytes, line 1
1remove(t){this.#w.get(t.queryHash)===t&&(t.destroy(),this.#w.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){tI.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#w.get(t)}getAll(){return[...this.#w.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(t=>m(e,t))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(e=>m(t,e)):e}notify(t){tI.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){tI.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){tI.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},tZ=class{#P;#l;#g;#S;#C;#Q;#x;#q;constructor(t={}){this.#P=t.queryCache||new tY,this.#l=t.mutationCache||new tG,this.#g=t.defaultOptions||{},this.#S=new Map,this.#C=new Map,this.#Q=0}mount(){this.#Q++,1===this.#Q&&(this.#x=tM.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#P.onFocus())}),this.#q=tF.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#P.onOnline())}))}unmount(){this.#Q--,0===this.#Q&&(this.#x?.(),this.#x=void 0,this.#q?.(),this.#q=void 0)}isFetching(t){return this.#P.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#l.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#P.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),r=this.#P.build(this,e),i=r.state.data;return void 0===i?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(y(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return this.#P.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,r){let i=this.defaultQueryOptions({queryKey:t}),n=this.#P.get(i.queryHash)?.state.data,s="function"==typeof e?e(n):e;if(void 0!==s)return this.#P.build(this,i).setData(s,{...r,manual:!0})}setQueriesData(t,e,r){return tI.batch(()=>this.#P.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,r)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#P.get(e.queryHash)?.state}removeQueries(t){let e=this.#P;tI.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){let r=this.#P;return tI.batch(()=>{let i=r.findAll(t),n=new Set(i);return i.forEach(t=>{t.reset()}),this.refetchQueries({type:"active",predicate:t=>n.has(t)},e)})}cancelQueries(t,e={}){let r={revert:!0,...e};return Promise.all(tI.batch(()=>this.#P.findAll(t).map(t=>t.cancel(r)))).then(d).catch(d)}invalidateQueries(t,e={}){return tI.batch(()=>(this.#P.findAll(t).forEach(t=>{t.invalidate()}),t?.refetchType==="none")?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e))}refetchQueries(t,e={}){let r={...e,cancelRefetch:e.cancelRefetch??!0};return Promise.all(tI.batch(()=>this.#P.findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,r);return r.throwOnError||(e=e.catch(d)),"paused"===t.state.fetchStatus?Promise.resolve():e}))).then(d)}async query(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let r=this.#P.build(this,e),i=r.isStaleByTime(y(e.staleTime,r))?await r.fetch(e):r.state.data,n=e.select;return n?n(i):i}fetchQuery(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let r=this.#P.build(this,e);return r.isStaleByTime(y(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(d).catch(d)}infiniteQuery(t){return t._type="infinite",this.query(t)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(d).catch(d)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return tF.isOnline()?this.#l.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#P}getMutationCache(){return this.#l}getDefaultOptions(){return this.#g}setDefaultOptions(t){this.#g=t}setQueryDefaults(t,e){this.#S.set(g(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#S.values()],r={};return e.forEach(e=>{O(t,e.queryKey)&&Object.assign(r,e.defaultOptions)}),r}setMutationDefaults(t,e){this.#C.set(g(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#C.values()],r={};
1return e.forEach(e=>{O(t,e.mutationKey)&&Object.assign(r,e.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#g.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=v(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===E&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#g.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#P.clear(),this.#l.clear()}};t.s(["QueryClient",0,tZ],521133);var t0=t.i(832616),t1=t.i(673487);let t2=t0.createContext(void 0),t3=t=>{let e=t0.useContext(t2);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e};t.s(["QueryClientProvider",0,({client:t,children:e})=>(t0.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,t1.jsx)(t2.Provider,{value:t,children:e})),"useQueryClient",0,t3],650955);let t5=t0.createContext(!1);t5.Provider;let t7=t0.createContext((u=!1,{clearReset:()=>{u=!1},reset:()=>{u=!0},isReset:()=>u})),t6=(t,e,r)=>{let i=r?.state.error&&"function"==typeof t.throwOnError?k(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||i)&&!e.isReset()&&(t.retryOnMount=!1)},t4=t=>{t0.useEffect(()=>{t.clearReset()},[t])},t8=({result:t,errorResetBoundary:e,throwOnError:r,query:i,suspense:n})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(n&&void 0===t.data||k(r,[t.error,i])),t9=(t,e)=>void 0===e.state.data,et=t=>{if(t.suspense){let e=t=>"static"===t?t:Math.max(t??1e3,1e3),r=t.staleTime;t.staleTime="function"==typeof r?(...t)=>e(r(...t)):e(r),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3))}},ee=(t,e)=>t?.suspense&&e.isPending,er=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function ei(t,e,r){let i=t0.useContext(t5),n=t0.useContext(t7),s=t3(r),a=s.defaultQueryOptions(t),o=s.getQueryCache().get(a.queryHash),u=!1!==t.subscribed;a._optimisticResults=i?"isRestoring":u?"optimistic":void 0,et(a),t6(a,n,o),t4(n);let[l]=t0.useState(()=>new e(s,a)),c=l.getOptimisticResult(a),h=!i&&u;
vendor: 4,875 bytes, line 1
1if(t0.useSyncExternalStore(t0.useCallback(t=>{let e=h?l.subscribe(tI.batchCalls(t)):d;return l.updateResult(),e},[l,h]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),t0.useEffect(()=>{l.setOptions(a)},[a,l]),ee(a,c))throw er(a,l,n);if(t8({result:c,errorResetBoundary:n,throwOnError:a.throwOnError,query:o,suspense:a.suspense}))throw c.error;return a.notifyOnChangeProps?c:l.trackResult(c)}var en=class extends tT{#o;#R=void 0;#j=void 0;#E=void 0;#D;#k;#T;#M;#I;#F;#A;#U;#N;#L=new Set;constructor(t,e){super(),this.options=e,this.#o=t,this.#T=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#R.addObserver(this),es(this.#R,this.options)?this.#K():this.updateResult(),this.#H())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ea(this.#R,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ea(this.#R,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#G(),this.#R.removeObserver(this)}setOptions(t){let e=this.options,r=this.#R;if(this.options=this.#o.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof y(this.options.enabled,this.#R))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#W(),this.#R.setOptions(this.options),e._defaulted&&!S(this.options,e)&&this.#o.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#R,observer:this});let i=this.hasListeners();i&&eo(this.#R,r,this.options,e)&&this.#K(),this.updateResult(),i&&(this.#R!==r||y(this.options.enabled,this.#R)!==y(e.enabled,this.#R)||y(this.options.staleTime,this.#R)!==y(e.staleTime,this.#R))&&this.#z();let n=this.#B();i&&(this.#R!==r||y(this.options.enabled,this.#R)!==y(e.enabled,this.#R)||n!==this.#N)&&this.#$(n)}getOptimisticResult(t){let e=this.#o.getQueryCache().build(this.#o,t),r=this.createResult(e,t);return S(this.getCurrentResult(),r)||(this.#E=r,this.#k=this.options,this.#D=this.#R.state),r}getCurrentResult(){return this.#E}trackResult(t,e){return new Proxy(t,{get:(t,r)=>(this.trackProp(r),e?.(r),Reflect.get(t,r))})}trackProp(t){this.#L.add(t)}getCurrentQuery(){return this.#R}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e,r=this.#o.defaultQueryOptions(t),i=this.#o.getQueryCache().build(this.#o,r),n=()=>{},s=new Promise(t=>{e=t,n=this.#o.getQueryCache().subscribe(e=>{"updated"===e.type&&e.query.queryHash===i.queryHash&&void 0!==i.state.data&&(n(),t(this.createResult(i,r)))})});return Promise.race([i.fetch().then(()=>{let t=this.createResult(i,r);return e?.(t),t}).finally(()=>{n()}),s])}fetch(t){return this.#K({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#E))}#K(t){this.#W();let e=this.#R.fetch(this.options,t);return t?.throwOnError||(e=e.catch(d)),e}#J(t){return!h&&!1!==y(this.options.enabled,this.#R)&&f(t)}#z(){this.#_();let t=y(this.options.staleTime,this.#R);if(this.#E.isStale||!this.#J(t))return;let e=p(this.#E.dataUpdatedAt,t)+1;this.#A=c.setTimeout(()=>{this.#E.isStale||this.updateResult()},e)}#B(){return y(this.options.refetchInterval,this.#R)??!1}#$(t){this.#G(),this.#N=t,0!==this.#N&&this.#J(this.#N)&&(this.#U=c.setInterval(()=>{(this.options.refetchIntervalInBackground||tM.isFocused())&&this.#K()},this.#N))}#H(){this.#z(),this.#$(this.#B())}#_(){void 0!==this.#A&&(c.clearTimeout(this.#A),this.#A=void 0)}#G(){void 0!==this.#U&&(c.clearInterval(this.#U),this.#U=void 0)}createResult(t,e){let r,i=this.#R,n=this.options,s=this.#E,a=this.#D,o=this.#k,u=t!==i?t.state:this.#j,{state:l}=t,c={...l},h=!1;if(e._optimisticResults){let r=this.hasListeners(),s=!r&&es(t,e),a=r&&eo(t,i,e,n);(s||a)&&(c={...c,...tJ(l.data,t.options)}),"isRestoring"===e._optimisticResults&&(c.fetchStatus="idle")}let{error:d,errorUpdatedAt:f,status:p}=c;r=c.data;let m=!1;if(void 0!==e.placeholderData&&void 0===r&&"pending"===p){let t;s?.isPlaceholderData&&e.placeholderData===o?.placeholderData?(t=s.data,m=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#F?.state.data,this.#F):e.placeholderData,void 0!==t&&(p="success",r=q(s?.data,t,e),h=!0)}if(e.select&&void 0!==r&&!m)if(s&&r===a?.data&&e.select===this.#M)r=this.#I;else try{this.#M=e.select,r=e.select(r),r=q(s?.data,r,e),this.#I=r,this.#T=null}catch(t){this.#T=t}else void 0===r&&(this.#T=null);this.#T&&(d=this.#T,r=this.#I,f=Date.now(),p="error",h=!1);let b="fetching"===c.fetchStatus,v="pending"===p,g="error"===p,O=v&&b,w=void 0!==r;return{status:p,fetchStatus:c.fetchStatus,isPending:v,isSuccess:"success"===p,isError:g,isInitialLoading:O,isLoading:O,data:r,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:f,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdate
1Count:c.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!v,isLoadingError:g&&!w,isPaused:"paused"===c.fetchStatus,isPlaceholderData:h,isRefetchError:g&&w,isStale:eu(t,e),refetch:this.refetch,isEnabled:!1!==y(e.enabled,t)}}updateResult(){let t=this.#E,e=this.createResult(this.#R,this.options);if(this.#D=this.#R.state,this.#k=this.options,void 0!==this.#D.data&&(this.#F=this.#R),S(e,t))return;this.#E=e;let r=(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#L.size)return!0;let i=new Set(r??this.#L);return this.options.throwOnError&&i.add("error"),Object.keys(this.#E).some(e=>this.#E[e]!==t[e]&&i.has(e))})();tI.batch(()=>{r&&this.listeners.forEach(t=>{t(this.#E)}),this.#o.getQueryCache().notify({query:this.#R,type:"observerResultsUpdated"})})}#W(){let t=this.#o.getQueryCache().build(this.#o,this.options);if(t===this.#R)return;let e=this.#R;this.#R=t,this.#j=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#H()}};function es(t,e){return!1!==y(e.enabled,t)&&void 0===t.state.data&&("error"!==t.state.status||!1!==y(e.retryOnMount,t))||void 0!==t.state.data&&ea(t,e,e.refetchOnMount)}function ea(t,e,r){if(!1!==y(e.enabled,t)&&"static"!==y(e.staleTime,t)){let i=y(r,t);return"always"===i||!1!==i&&eu(t,e)}return!1}function eo(t,e,r,i){return(t!==e||!1===y(i.enabled,t))&&(!r.suspense||"error"!==t.state.status)&&eu(t,r)}function eu(t,e){return!1!==y(e.enabled,t)&&t.isStaleByTime(y(e.staleTime,t))}var el=class extends en{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){t._type="infinite",super.setOptions(t)}getOptimisticResult(t){return t._type="infinite",super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){var r,i;let{state:n}=t,s=super.createResult(t,e),{isFetching:a,isRefetching:o,isError:u,isRefetchError:l}=s,c=n.fetchMeta?.fetchMore?.direction,h=u&&"forward"===c,d=a&&"forward"===c,f=u&&"backward"===c,p=a&&"backward"===c;return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:!!(r=n.data)&&null!=tz(e,r),hasPreviousPage:!!(i=n.data)&&!!e.getPreviousPageParam&&null!=tB(e,i),isFetchNextPageError:h,isFetchingNextPage:d,isFetchPreviousPageError:f,isFetchingPreviousPage:p,isRefetchError:l&&!h&&!f,isRefetching:o&&!d&&!p}}},ec=class extends tT{#o;#E=void 0;#V;#X;constructor(t,e){super(),this.#o=t,this.setOptions(e),this.bindMethods(),this.#Y()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#o.defaultMutationOptions(t),S(this.options,e)||this.#o.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#V,observer:this}),e?.mutationKey&&this.options.mutationKey&&g(e.mutationKey)!==g(this.options.mutationKey)?this.reset():this.#V?.state.status==="pending"&&this.#V.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#V&&(this.#V.addObserver(this),this.#Y())}onUnsubscribe(){this.hasListeners()||this.#V?.removeObserver(this)}onMutationUpdate(t){this.#Y(),this.#Z(t)}getCurrentResult(){return this.#E}reset(){this.#V?.removeObserver(this),this.#V=void 0,this.#Y(),this.#Z()}mutate(t,e){return this.#X=e,this.#V?.removeObserver(this),this.#V=this.#o.getMutationCache().build(this.#o,this.options),this.#V.addObserver(this),this.#V.execute(t)}#Y(){let t=this.#V?.state??t_();this.#E={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#Z(t){tI.batch(()=>{if(this.#X&&this.hasListeners()){let e=this.#E.variables,r=this.#E.context,i={client:this.#o,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#X.onSuccess?.(t.data,e,r,i)}catch(t){Promise.reject(t)}try{this.#X.onSettled?.(t.data,null,e,r,i)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#X.onError?.(t.error,e,r,i)}catch(t){Promise.reject(t)}try{this.#X.onSettled?.(void 0,t.error,e,r,i)}catch(t){Promise.reject(t)}}}
1this.listeners.forEach(t=>{t(this.#E)})})}};function eh(t,e){let r=new Set(e);return t.filter(t=>!r.has(t))}var ed=class extends tT{#o;#tt;#w;#te;#u;#tr;#ti;#tn;#ts;#ta=[];constructor(t,e,r){super(),this.#o=t,this.#te=r,this.#w=[],this.#u=[],this.#tt=[],this.setQueries(e)}onSubscribe(){1===this.listeners.size&&this.#u.forEach(t=>{t.subscribe(e=>{this.#to(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#u.forEach(t=>{t.destroy()})}setQueries(t,e){this.#w=t,this.#te=e,tI.batch(()=>{let t=this.#u,e=this.#tu(this.#w);e.forEach(t=>t.observer.setOptions(t.defaultedQueryOptions));let r=e.map(t=>t.observer),i=r.map(t=>t.getCurrentResult()),n=t.length!==r.length,s=r.some((e,r)=>e!==t[r]),a=n||s,o=!!a||i.some((t,e)=>{let r=this.#tt[e];return!r||!S(t,r)});(a||o)&&(a&&(this.#ta=e,this.#u=r),this.#tt=i,this.hasListeners()&&(a&&(eh(t,r).forEach(t=>{t.destroy()}),eh(r,t).forEach(t=>{t.subscribe(e=>{this.#to(t,e)})})),this.#Z()))})}getCurrentResult(){return this.#tt}getQueries(){return this.#u.map(t=>t.getCurrentQuery())}getObservers(){return this.#u}getOptimisticResult(t,e){let r=this.#tu(t),i=r.map(t=>t.observer.getOptimisticResult(t.defaultedQueryOptions)),n=r.map(t=>t.defaultedQueryOptions.queryHash);return[i,t=>this.#tl(t??i,e,n),()=>this.#tc(i,r)]}#tc(t,e){let r=new Set;return e.map((i,n)=>{let s=t[n];return i.defaultedQueryOptions.notifyOnChangeProps?s:i.observer.trackResult(s,t=>{r.has(t)||(r.add(t),e.forEach(e=>{e.observer.trackProp(t)}))})})}#tl(t,e,r){if(e){let i=this.#ts,n=void 0!==r&&void 0!==i&&(i.length!==r.length||r.some((t,e)=>t!==i[e]));return(this.#tt!==this.#tn||n||e!==this.#ti)&&(this.#ti=e,this.#tn=this.#tt,void 0!==r&&(this.#ts=r),this.#tr=P(this.#tr,e(t))),this.#tr}return t}#th(){return!this.#te?.combine||this.#u.some((t,e)=>t.options.suspense&&this.#tt[e]?.data===void 0)}#tu(t){let e=new Map;this.#u.forEach(t=>{let r=t.options.queryHash;if(!r)return;let i=e.get(r);i?i.push(t):e.set(r,[t])});let r=[];return t.forEach(t=>{let i=this.#o.defaultQueryOptions(t),n=e.get(i.queryHash)?.shift()??new en(this.#o,i);r.push({defaultedQueryOptions:i,observer:n})}),r}#to(t,e){let r=this.#u.indexOf(t);-1!==r&&(this.#tt=this.#tt.slice(),this.#tt[r]=e,this.#Z())}#Z(){if(this.hasListeners()){let t=this.#th(),e=this.#tr,r=t?e:this.#tl(this.#tc(this.#tt,this.#ta),this.#te?.combine);(t||e!==r)&&tI.batch(()=>{this.listeners.forEach(t=>{t(this.#tt)})})}}};function ef({queries:t,...e},r){let i=t3(r),n=t0.useContext(t5),s=t0.useContext(t7),a=!1!==e.subscribed,o=t0.useMemo(()=>t.map(t=>{let e=i.defaultQueryOptions(t);return e._optimisticResults=n?"isRestoring":a?"optimistic":void 0,e}),[t,i,n,a]);o.forEach(t=>{et(t);let e=i.getQueryCache().get(t.queryHash);t6(t,s,e)}),t4(s);let[u]=t0.useState(()=>new ed(i,o,e)),[l,c,h]=u.getOptimisticResult(o,e.combine),f=!n&&a;
1t0.useSyncExternalStore(t0.useCallback(t=>f?u.subscribe(tI.batchCalls(t)):d,[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),t0.useEffect(()=>{u.setQueries(o,e)},[o,e,u]);let p=l.some((t,e)=>ee(o[e],t))?l.flatMap((t,e)=>{let r=o[e];if(r&&ee(r,t)){let t=new en(i,r);return er(r,t,s)}return[]}):[];if(p.length>0)throw Promise.all(p);let y=l.find((t,e)=>{let r=o[e];return r&&t8({result:t,errorResetBoundary:s,throwOnError:r.throwOnError,query:i.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(y)throw y.error;return c(h())}let ep=["client","ssrContext","ssrState","abortOnUnmount"],ey=null==(V=t0.createContext)?void 0:V.call(t0,null);function em(t){let e=t instanceof tx?t:t[tq];return to(t=>{let r=t.path,i=r.join("."),[n,s]=t.args;return U({queryKey:L(r,n,"query"),queryFn:()=>e.query(i,n,null==s?void 0:s.trpc)},s)})}function eb(t,e,r){var i,n;let s=t[0],a=null==(i=t[1])?void 0:i.input;return r&&(a=U(U(U({},null!=(n=a)?n:{}),r.pageParam?{cursor:r.pageParam}:{}),{},{direction:r.direction})),[s.join("."),a,null==e?void 0:e.trpc]}function ev(t){function e(t){if(Object(t)!==t)return Promise.reject(TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then(function(t){return{value:t,done:e}})}return(ev=function(t){this.s=t,this.n=t.next}).prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var r=this.s.return;return void 0===r?Promise.resolve({value:t,done:!0}):e(r.apply(this.s,arguments))},throw:function(t){var r=this.s.return;return void 0===r?Promise.reject(t):e(r.apply(this.s,arguments))}},new ev(t)}function eg(t){return{path:t.path.join(".")}}function eO(t){let e=eg(t);return t0.useMemo(()=>e,[e])}async function ew(t,e,r){let i=e.getQueryCache().build(e,{queryKey:r});i.setState({data:[],status:"success"});let n=[];var s=!1,a=!1;try{for(var o,u,l=function(t){var e,r,i,n=2;for("u">typeof Symbol&&(r=Symbol.asyncIterator,i=Symbol.iterator);n--;){if(r&&null!=(e=t[r]))return e.call(t);if(i&&null!=(e=t[i]))return new ev(e.call(t));r="@@asyncIterator",i="@@iterator"}throw TypeError("Object is not async iterable")}(t);s=!(u=await l.next()).done;s=!1){let t=u.value;n.push(t),i.setState({data:[...n]})}}catch(t){a=!0,o=t}finally{try{s&&null!=l.return&&await l.return()}finally{if(a)throw o}}return n}let eP=(t,e)=>new Proxy(t,{get:(t,r)=>(e(r),t[r])});function eS(t){var e,r;let i;return r=e=function(t){var e,r,i;let n=null!=(e=null==t||null==(r=t.overrides)||null==(r=r.useMutation)?void 0:r.onSuccess)?e:t=>t.originalFn(),s=null!=(i=null==t?void 0:t.context)?i:ey;function a(){let t=t0.useContext(s);if(!t)throw Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return t}function o(t,e){var r;let{queryClient:i,ssrState:n}=a();return n&&"mounted"!==n&&(null==(r=i.getQueryCache().find({queryKey:t}))?void 0:r.state.status)==="error"?U({retryOnMount:!1},e):e}let u={data:void 0,error:null,status:"idle"},l={data:void 0,error:null,status:"connecting"};return{Provider:t=>{var e;let{abortOnUnmount:r=!1,queryClient:i,ssrContext:n}=t,[a,o]=t0.useState(null!=(e=t.ssrState)&&e),u=t.client instanceof tx?t.client:t.client[tq],l=t0.useMemo(()=>(function(t){let{client:e,queryClient:r}=t,i=e instanceof tx?e:e[tq];return{infiniteQueryOptions:(t,e,r)=>{var n,s;let a=(null==(n=e[1])?void 0:n.input)===E,o=async t=>{var n;let s=U(U({},r),{},{trpc:U(U({},null==r?void 0:r.trpc),(null==r||null==(n=r.trpc)?void 0:n.abortOnUnmount)?{signal:t.signal}:{signal:null})});return await i.query(...eb(e,s,{direction:t.direction,pageParam:t.pageParam}))};return Object.assign(U(U({},r),{},{initialData:null==r?void 0:r.initialData,queryKey:e,queryFn:a?E:o,initialPageParam:null!=(s=null==r?void 0:r.initialCursor)?s:null}),{trpc:eg({path:t})})},queryOptions:(t,e,n)=>{var s;let a=(null==(s=e[1])?void 0:s.input)===E,o=async t=>{var s;let a=U(U({},n),{},{trpc:U(U({},null==n?void 0:n.trpc),(null==n||null==(s=n.trpc)?void 0:s.abortOnUnmount)?{signal:t.signal}:{signal:null})}),o=await i.query(...eb(e,a));return I(o)?ew(o,r,e):o};return Object.assign(U(U({},n),{},{initialData:null==n?void 0:n.initialData,queryKey:e,queryFn:a?E:o}),{trpc:eg({path:t})})},fetchQuery:(t,e)=>r.fetchQuery(U(U({},e),{},{queryKey:t,queryFn:()=>i.query(...eb(t,e))})),fetchInfiniteQuery:(t,e)=>{var n;return r.fetchInfiniteQuery(U(U({},e),{},{queryKey:t,queryFn:({pageParam:r,direction:n})=>i.query(...eb(t,e,{pageParam:r,direction:n})),initialPageParam:null!=(n=null==e?void 0:e.initialCursor)?n:null}))},prefetchQuery:(t,e)=>r.prefetchQuery(U(U({},e),{},{queryKey:t,queryFn:()=>i.query(...eb(t,e))})),prefetchInfiniteQuery:(t,e)=>{var n;return r.prefetchInfiniteQuery(U(U({},e),{},{queryKey:t,queryFn:({pageParam:r,direction:n})=>i.query(...eb(t,e,{pageParam:r,direction:n})),initialPageParam:null!=(n=null==e?void 0:e.initialCursor)?n:null}))},ensureQueryData:(t,e)=>r.ensureQueryData(U(U({},e),{},{queryKey:t,queryFn:()=>i.query(...eb(t,e))}
1)),invalidateQueries:(t,e,i)=>r.invalidateQueries(U(U({},e),{},{queryKey:t}),i),resetQueries:(t,e,i)=>r.resetQueries(U(U({},e),{},{queryKey:t}),i),refetchQueries:(t,e,i)=>r.refetchQueries(U(U({},e),{},{queryKey:t}),i),cancelQuery:(t,e)=>r.cancelQueries({queryKey:t},e),setQueryData:(t,e,i)=>r.setQueryData(t,e,i),setQueriesData:(t,e,i,n)=>r.setQueriesData(U(U({},e),{},{queryKey:t}),i,n),getQueryData:t=>r.getQueryData(t),setInfiniteQueryData:(t,e,i)=>r.setQueryData(t,e,i),getInfiniteQueryData:t=>r.getQueryData(t),setMutationDefaults:(e,n)=>{let s=e[0];return r.setMutationDefaults(e,"function"==typeof n?n({canonicalMutationFn:e=>i.mutation(...eb([s,{input:e}],t))}):n)},getMutationDefaults:t=>r.getMutationDefaults(t),isMutating:t=>r.isMutating(U(U({},t),{},{exact:!0}))}})({client:u,queryClient:i}),[u,i]),c=t0.useMemo(()=>U({abortOnUnmount:r,queryClient:i,client:u,ssrContext:null!=n?n:null,ssrState:a},l),[r,u,l,i,n,a]);return t0.useEffect(()=>{o(t=>!!t&&"mounted")},[]),t0.createElement(s.Provider,{value:c},t.children)},createClient:tE,useContext:a,useUtils:a,useQuery:function(e,r,i){var n,s,u,l,c;let{abortOnUnmount:h,client:d,ssrState:f,queryClient:p,prefetchQuery:y}=a(),m=L(e,r,"query"),b=p.getQueryDefaults(m),v=r===E;!("u"<typeof window)||"prepass"!==f||(null==i||null==(n=i.trpc)?void 0:n.ssr)===!1||(null!=(s=null==i?void 0:i.enabled)?s:null==b?void 0:b.enabled)===!1||v||p.getQueryCache().find({queryKey:m})||y(m,i);let g=o(m,U(U({},b),i)),O=null!=(u=null!=(l=null==i||null==(c=i.trpc)?void 0:c.abortOnUnmount)?l:null==t?void 0:t.abortOnUnmount)?u:h,w=ei(U(U({},g),{},{queryKey:m,queryFn:v?r:async t=>{let e=U(U({},g),{},{trpc:U(U({},null==g?void 0:g.trpc),O?{signal:t.signal}:{signal:null})}),r=await d.query(...eb(m,e));return I(r)?ew(r,p,m):r}}),en,p);return w.trpc=eO({path:e}),w},usePrefetchQuery:function(e,r,i){var n,s,o,u;let l,c=a(),h=L(e,r,"query"),f=r===E,p=null!=(n=null!=(s=null==i||null==(o=i.trpc)?void 0:o.abortOnUnmount)?s:null==t?void 0:t.abortOnUnmount)?n:c.abortOnUnmount;u=U(U({},i),{},{queryKey:h,queryFn:f?r:t=>{let e={trpc:U(U({},null==i?void 0:i.trpc),p?{signal:t.signal}:{})};return c.client.query(...eb(h,e))}}),(l=t3(void 0)).getQueryState(u.queryKey)||l.query(u).catch(d)},useSuspenseQuery:function(e,r,i){var n,s,o,u,l;let c=a(),h=L(e,r,"query"),d=null!=(n=null!=(s=null==i||null==(o=i.trpc)?void 0:o.abortOnUnmount)?s:null==t?void 0:t.abortOnUnmount)?n:c.abortOnUnmount,f=(u=U(U({},i),{},{queryKey:h,queryFn:t=>{let e=U(U({},i),{},{trpc:U(U({},null==i?void 0:i.trpc),d?{signal:t.signal}:{signal:null})});return c.client.query(...eb(h,e))}}),l=c.queryClient,ei({...u,enabled:!0,suspense:!0,throwOnError:t9,placeholderData:void 0},en,l));return f.trpc=eO({path:e}),[f.data,f]},useQueries:(t,e)=>{let{ssrState:r,queryClient:i,prefetchQuery:n,client:s}=a(),o=t(em(s));if("u"<typeof window&&"prepass"===r)for(let t of o){var u;(null==(u=t.trpc)?void 0:u.ssr)===!1||i.getQueryCache().find({queryKey:t.queryKey})||n(t.queryKey,t)}return ef({queries:o.map(t=>U(U({},t),{},{queryKey:t.queryKey})),combine:null==e?void 0:e.combine},i)},useSuspenseQueries:t=>{var e;let{queryClient:r,client:i}=a(),n=(e={queries:t(em(i)).map(t=>U(U({},t),{},{queryFn:t.queryFn,queryKey:t.queryKey}))},ef({...e,queries:e.queries.map(t=>({...t,suspense:!0,throwOnError:t9,enabled:!0,placeholderData:void 0}))},r));return[n.map(t=>t.data),n]},useMutation:function(t,e){let{client:r,queryClient:i}=a(),s=K(t),o=i.defaultMutationOptions(i.getMutationDefaults(s)),u=function(t,e){let r=t3(e),[i]=t0.useState(()=>new ec(r,t));t0.useEffect(()=>{i.setOptions(t)},[i,t]);
1let n=t0.useSyncExternalStore(t0.useCallback(t=>i.subscribe(tI.batchCalls(t)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=t0.useCallback((...t)=>{i.mutate(t[0],t[1]).catch(d)},[i]);if(n.error&&k(i.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:s,mutateAsync:n.mutate}}(U(U({},e),{},{mutationKey:s,mutationFn:i=>r.mutation(...eb([t,{input:i}],e)),onSuccess(...t){var r,s;return n({originalFn:()=>{var r,i,n;return null!=(r=null==e||null==(i=e.onSuccess)?void 0:i.call(e,...t))?r:null==o||null==(n=o.onSuccess)?void 0:n.call(o,...t)},queryClient:i,meta:null!=(r=null!=(s=null==e?void 0:e.meta)?s:null==o?void 0:o.meta)?r:{}})}}),i);return u.trpc=eO({path:t}),u},useSubscription:function(t,e,r){var i;let n=null!=(i=null==r?void 0:r.enabled)?i:e!==E,s=g(L(t,e,"any")),{client:o}=a(),c=t0.useRef(r);t0.useEffect(()=>{c.current=r});let[h]=t0.useState(new Set([])),d=t0.useCallback(t=>{h.add(t)},[h]),f=t0.useRef(null),p=t0.useCallback(t=>{let e=m.current,r=m.current=t(e),i=!1;for(let t of h)if(e[t]!==r[t]){i=!0;break}i&&v(eP(r,d))},[d,h]),y=t0.useCallback(()=>{var r;(null==(r=f.current)||r.unsubscribe(),n)?(p(()=>U(U({},l),{},{reset:y})),f.current=o.subscription(t.join("."),null!=e?e:void 0,{onStarted:()=>{var t,e;null==(t=(e=c.current).onStarted)||t.call(e),p(t=>U(U({},t),{},{status:"pending",error:null}))},onData:t=>{var e,r;null==(e=(r=c.current).onData)||e.call(r,t),p(e=>U(U({},e),{},{status:"pending",data:t,error:null}))},onError:t=>{var e,r;null==(e=(r=c.current).onError)||e.call(r,t),p(e=>U(U({},e),{},{status:"error",error:t}))},onConnectionStateChange:t=>{p(e=>{switch(t.state){case"idle":return U(U({},e),{},{status:t.state,error:null,data:void 0});case"connecting":return U(U({},e),{},{error:t.error,status:t.state});case"pending":return e}})},onComplete:()=>{var t,e;null==(t=(e=c.current).onComplete)||t.call(e),p(t=>U(U({},t),{},{status:"idle",error:null,data:void 0}))}})):p(()=>U(U({},u),{},{reset:y}))},[o,s,n,p]);t0.useEffect(()=>(y(),()=>{var t;null==(t=f.current)||t.unsubscribe()}),[y]);let m=t0.useRef(n?U(U({},l),{},{reset:y}):U(U({},u),{},{reset:y})),[b,v]=t0.useState(eP(m.current,d));return b},useInfiniteQuery:function(t,e,r){var i,n,s,u,l;let{client:c,ssrState:h,prefetchInfiniteQuery:d,queryClient:f,abortOnUnmount:p}=a(),y=L(t,e,"infinite"),m=f.getQueryDefaults(y),b=e===E;!("u"<typeof window)||"prepass"!==h||(null==r||null==(i=r.trpc)?void 0:i.ssr)===!1||(null!=(n=null==r?void 0:r.enabled)?n:null==m?void 0:m.enabled)===!1||b||f.getQueryCache().find({queryKey:y})||d(y,U(U({},m),r));let v=o(y,U(U({},m),r)),g=null!=(s=null==r||null==(u=r.trpc)?void 0:u.abortOnUnmount)?s:p,O=ei(U(U({},v),{},{initialPageParam:null!=(l=r.initialCursor)?l:null,persister:r.persister,queryKey:y,queryFn:b?e:t=>{var e;let i=U(U({},v),{},{trpc:U(U({},null==v?void 0:v.trpc),g?{signal:t.signal}:{signal:null})});return c.query(...eb(y,i,{pageParam:null!=(e=t.pageParam)?e:r.initialCursor,direction:t.direction}))}}),el,f);return O.trpc=eO({path:t}),O},usePrefetchInfiniteQuery:function(t,e,r){var i,n,s,u;let l,c=a(),h=L(t,e,"infinite"),f=c.queryClient.getQueryDefaults(h),p=e===E,y=o(h,U(U({},f),r)),m=null!=(i=null==r||null==(n=r.trpc)?void 0:n.abortOnUnmount)?i:c.abortOnUnmount;u=U(U({},r),{},{initialPageParam:null!=(s=r.initialCursor)?s:null,queryKey:h,queryFn:p?e:t=>{var e;let i=U(U({},y),{},{trpc:U(U({},null==y?void 0:y.trpc),m?{signal:t.signal}:{})});return c.client.query(...eb(h,i,{pageParam:null!=(e=t.pageParam)?e:r.initialCursor,direction:t.direction}))}}),(l=t3(void 0)).getQueryState(u.queryKey)||l.infiniteQuery(u).catch(d)},useSuspenseInfiniteQuery:function(t,e,r){var i,n,s,u,l;let c=a(),h=L(t,e,"infinite"),d=c.queryClient.getQueryDefaults(h),f=o(h,U(U({},d),r)),p=null!=(i=null==r||null==(n=r.trpc)?void 0:n.abortOnUnmount)?i:c.abortOnUnmount,y=(u=U(U({},r),{},{initialPageParam:null!=(s=r.initialCursor)?s:null,queryKey:h,queryFn:t=>{var e;let i=U(U({},f),{},{trpc:U(U({},null==f?void 0:f.trpc),p?{signal:t.signal}:{})});return c.client.query(...eb(h,i,{pageParam:null!=(e=t.pageParam)?e:r.initialCursor,direction:t.direction}))}}),l=c.queryClient,ei({...u,enabled:!0,suspense:!0,throwOnError:t9,placeholderData:void 0},el,l));return y.trpc=eO({path:t}),[y.data,y]}}}(t),i=to(({path:t,args:e})=>{var i;let n=[...t],s=n.pop();if("useMutation"===s)return r[s](n,...e);if("_def"===s)return{path:n};let[a,...o]=e,u=null!=(i=o[0])?i:{};return r[s](n,a,u)}),tu(t=>"useContext"===t||"useUtils"===t?()=>{let t=e.useUtils();return t0.useMemo(()=>{let e,r;return e=tj(t.client),r=to(e=>{let r=[...e.path],i=r.pop(),n=[...e.args],s=n.shift(),a=L(r,s,(t=>{switch(t){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"invali
1date":case"refetch":case"reset":return"any"}})(i));return({infiniteQueryOptions:()=>t.infiniteQueryOptions(r,a,n[0]),queryOptions:()=>t.queryOptions(r,a,...n),fetch:()=>t.fetchQuery(a,...n),fetchInfinite:()=>t.fetchInfiniteQuery(a,n[0]),prefetch:()=>t.prefetchQuery(a,...n),prefetchInfinite:()=>t.prefetchInfiniteQuery(a,n[0]),ensureData:()=>t.ensureQueryData(a,...n),invalidate:()=>t.invalidateQueries(a,...n),reset:()=>t.resetQueries(a,...n),refetch:()=>t.refetchQueries(a,...n),cancel:()=>t.cancelQuery(a,...n),setData:()=>{t.setQueryData(a,n[0],n[1])},setQueriesData:()=>t.setQueriesData(a,n[0],n[1],n[2]),setInfiniteData:()=>{t.setInfiniteQueryData(a,n[0],n[1])},getData:()=>t.getQueryData(a),getInfiniteData:()=>t.getInfiniteQueryData(a),setMutationDefaults:()=>t.setMutationDefaults(K(r),s),getMutationDefaults:()=>t.getMutationDefaults(K(r)),isMutating:()=>t.isMutating({mutationKey:K(r)})})[i]()}),tu(i=>"client"===i?e:ep.includes(i)?t[i]:r[i])},[t])}:e.hasOwnProperty(t)?e[t]:i[t])}t.s(["createTRPCReact",0,eS],632402);let eC=eS({});t.s(["trpc",0,eC],19468)}]);

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.