omnigateway 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +94 -7
  2. package/bin/omni.js +4954 -2939
  3. package/gateway.js +3132 -1164
  4. package/package.json +1 -1
  5. package/public/assets/{Chip-BB_5C1Zp.js → Chip-DJwp7gBu.js} +2 -2
  6. package/public/assets/{Confirm-B6aAiVbT.js → Confirm-CVLz9F7a.js} +1 -1
  7. package/public/assets/CopyValue-CNZbWS59.js +27 -0
  8. package/public/assets/{Field-uHZxl4fI.js → Field-BDtp692L.js} +8 -8
  9. package/public/assets/Lamp-B65uWKbW.js +25 -0
  10. package/public/assets/{Meter-DI_BRUKt.js → Meter-BREBUFGX.js} +2 -2
  11. package/public/assets/{Modal-CI6jk2D4.js → Modal-DbydSAlp.js} +8 -8
  12. package/public/assets/Rack-Bbo4JfEX.js +151 -0
  13. package/public/assets/{Readout-BocZ2HXP.js → Readout-CEAoN5hu.js} +9 -5
  14. package/public/assets/{States-Bbiu5cHE.js → States-BEKLros0.js} +10 -10
  15. package/public/assets/{Table-CdPWxYaz.js → Table-BBypbVWj.js} +1 -1
  16. package/public/assets/{Toggle-CiLC67Dw.js → Toggle-BUr71O4J.js} +2 -2
  17. package/public/assets/{TokenBreakdown-B96iPBm9.js → TokenBreakdown-C1ziK9d1.js} +6 -3
  18. package/public/assets/_app-ByQ1bPbe.js +1 -0
  19. package/public/assets/_app.accounts-BTug_Xfo.js +64 -0
  20. package/public/assets/{_app.console-Daz4aKhf.js → _app.console-DKyGL9xx.js} +10 -10
  21. package/public/assets/_app.index-CSw9gmMf.js +62 -0
  22. package/public/assets/_app.keys-07Kbw4RS.js +39 -0
  23. package/public/assets/_app.logs-C9QiV39p.js +32 -0
  24. package/public/assets/_app.models-CDqVrAeF.js +148 -0
  25. package/public/assets/{_app.settings-a0FKyQAi.js → _app.settings-DmUEeTaP.js} +10 -10
  26. package/public/assets/_app.usage-B1WuMGRr.js +83 -0
  27. package/public/assets/catalog-BBKm8Ih8.js +1 -0
  28. package/public/assets/{dist-C-IbPRiV.js → dist-Bka7ErcH.js} +1 -1
  29. package/public/assets/index-DJfb1i4P.js +186 -0
  30. package/public/assets/{login-CTvH_KAd.js → login-DKZYqRh0.js} +8 -8
  31. package/public/assets/queries-D8LJNQpL.js +144 -0
  32. package/public/assets/shared-CIhZ6FCO.js +84 -0
  33. package/public/assets/{trash-2-BcZb-sCT.js → trash-2-CLYNAAJA.js} +1 -1
  34. package/public/index.html +2 -2
  35. package/public/assets/CopyValue-CRQDLo7k.js +0 -27
  36. package/public/assets/Lamp-B-5SjXbG.js +0 -25
  37. package/public/assets/Rack-D1WJswv3.js +0 -151
  38. package/public/assets/_app-BBOF6A0T.js +0 -1
  39. package/public/assets/_app.accounts-BNkhpvaB.js +0 -54
  40. package/public/assets/_app.index-LO6d38oe.js +0 -62
  41. package/public/assets/_app.keys-kBqLqoFf.js +0 -39
  42. package/public/assets/_app.logs-_wYNS47N.js +0 -32
  43. package/public/assets/_app.models-Cjng8ohC.js +0 -144
  44. package/public/assets/_app.usage-D3KtgLrC.js +0 -166
  45. package/public/assets/catalog-C_OQ0icG.js +0 -1
  46. package/public/assets/index-PW6EvVh5.js +0 -170
  47. package/public/assets/queries-D2o-X8Pj.js +0 -144
@@ -1,33 +1,33 @@
1
- import{B as e,G as t,L as n,Mt as r,Nt as i,P as a,T as o,Y as s,Zt as c,g as l,j as u,w as d,z as f}from"./queries-D2o-X8Pj.js";import{a as p}from"./index-PW6EvVh5.js";import{t as m}from"./Lamp-B-5SjXbG.js";import{n as h,t as g}from"./Field-uHZxl4fI.js";import{i as _,o as v}from"./States-Bbiu5cHE.js";var y=c(i()),b=r(),x=t.div`
1
+ import{$t as e,D as t,E as n,Ft as r,H as i,I as a,N as o,Pt as s,V as c,Z as l,_ as u,q as d,z as f}from"./queries-D8LJNQpL.js";import{a as p}from"./index-DJfb1i4P.js";import{t as m}from"./Lamp-B65uWKbW.js";import{n as h,t as g}from"./Field-BDtp692L.js";import{i as _,o as v}from"./States-BEKLros0.js";var y=e(r()),b=s(),x=d.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
5
5
  min-height: 100vh;
6
6
  padding: ${({theme:e})=>e.space(4)};
7
- `,S=t(v)`
7
+ `,S=d(v)`
8
8
  width: min(380px, 100%);
9
- `,C=t.div`
9
+ `,C=d.div`
10
10
  display: flex;
11
11
  align-items: center;
12
12
  gap: 8px;
13
13
  padding: ${({theme:e})=>`${e.space(3)} ${e.space(4)}`};
14
14
  border-bottom: 1px solid ${({theme:e})=>e.color.rule};
15
15
  background: ${({theme:e})=>e.color.panelSunk};
16
- ${f}
16
+ ${c}
17
17
  font-stretch: 74%;
18
18
  font-weight: 700;
19
19
  letter-spacing: 0.2em;
20
20
  font-size: 12px;
21
21
  text-transform: uppercase;
22
- `,w=t.form`
22
+ `,w=d.form`
23
23
  display: flex;
24
24
  flex-direction: column;
25
25
  gap: ${({theme:e})=>e.space(3)};
26
26
  padding: ${({theme:e})=>e.space(4)};
27
- `,T=t.p`
27
+ `,T=d.p`
28
28
  font-size: 12.5px;
29
29
  color: ${({theme:e})=>e.color.inkDim};
30
- `,E=t.p`
30
+ `,E=d.p`
31
31
  font-size: 12px;
32
32
  color: ${({theme:e})=>e.color.down};
33
- `;function D(){let t=s(),{next:r}=p.useSearch(),i=o(),c=l(),f=d(),[v,D]=(0,y.useState)(``),[O,k]=(0,y.useState)(``),[A,j]=(0,y.useState)(null),M=i.data?.configured===!1,N=c.isPending||f.isPending||i.isLoading,P=()=>{t({to:r?.startsWith(`/`)===!0?r:`/`})};return(0,b.jsx)(x,{children:(0,b.jsxs)(S,{children:[(0,b.jsxs)(C,{children:[(0,b.jsx)(m,{state:i.isError?`down`:`ok`,label:i.isError?`gateway unreachable`:`gateway reachable`}),`Omnigateway`]}),(0,b.jsxs)(w,{onSubmit:e=>{if(e.preventDefault(),j(null),M){if(v!==O){j(`The two passwords do not match.`);return}f.mutate(v,{onSuccess:P,onError:e=>j(_(e))});return}c.mutate(v,{onSuccess:P,onError:()=>j(`That password does not match. Try again.`)})},children:[i.isError?(0,b.jsx)(E,{children:`The gateway is not answering. Check that it is running, then reload.`}):null,(0,b.jsxs)(n,{$gap:1,children:[(0,b.jsx)(u,{children:M?`First run`:`Sign in`}),(0,b.jsx)(T,{children:M?`Set the operator password for this gateway. It is the only account, and it is stored hashed.`:`This console is for the operator of this gateway.`})]}),(0,b.jsx)(g,{label:`Password`,children:e=>(0,b.jsx)(h,{...e,type:`password`,autoFocus:!0,autoComplete:M?`new-password`:`current-password`,value:v,onChange:e=>D(e.target.value)})}),M?(0,b.jsx)(g,{label:`Confirm password`,children:e=>(0,b.jsx)(h,{...e,type:`password`,autoComplete:`new-password`,value:O,onChange:e=>k(e.target.value)})}):null,A===null?null:(0,b.jsx)(E,{role:`alert`,children:A}),(0,b.jsx)(a,{children:(0,b.jsx)(e,{type:`submit`,$variant:`primary`,disabled:N||v.length===0,children:M?`Set password and sign in`:`Sign in`})})]})]})})}export{D as component};
33
+ `;function D(){let e=l(),{next:r}=p.useSearch(),s=t(),c=u(),d=n(),[v,D]=(0,y.useState)(``),[O,k]=(0,y.useState)(``),[A,j]=(0,y.useState)(null),M=s.data?.configured===!1,N=c.isPending||d.isPending||s.isLoading,P=()=>{e({to:r?.startsWith(`/`)===!0?r:`/`})};return(0,b.jsx)(x,{children:(0,b.jsxs)(S,{children:[(0,b.jsxs)(C,{children:[(0,b.jsx)(m,{state:s.isError?`down`:`ok`,label:s.isError?`gateway unreachable`:`gateway reachable`}),`Omnigateway`]}),(0,b.jsxs)(w,{onSubmit:e=>{if(e.preventDefault(),j(null),M){if(v!==O){j(`The two passwords do not match.`);return}d.mutate(v,{onSuccess:P,onError:e=>j(_(e))});return}c.mutate(v,{onSuccess:P,onError:()=>j(`That password does not match. Try again.`)})},children:[s.isError?(0,b.jsx)(E,{children:`The gateway is not answering. Check that it is running, then reload.`}):null,(0,b.jsxs)(f,{$gap:1,children:[(0,b.jsx)(o,{children:M?`First run`:`Sign in`}),(0,b.jsx)(T,{children:M?`Set the operator password for this gateway. It is the only account, and it is stored hashed.`:`This console is for the operator of this gateway.`})]}),(0,b.jsx)(g,{label:`Password`,children:e=>(0,b.jsx)(h,{...e,type:`password`,autoFocus:!0,autoComplete:M?`new-password`:`current-password`,value:v,onChange:e=>D(e.target.value)})}),M?(0,b.jsx)(g,{label:`Confirm password`,children:e=>(0,b.jsx)(h,{...e,type:`password`,autoComplete:`new-password`,value:O,onChange:e=>k(e.target.value)})}):null,A===null?null:(0,b.jsx)(E,{role:`alert`,children:A}),(0,b.jsx)(a,{children:(0,b.jsx)(i,{type:`submit`,$variant:`primary`,disabled:N||v.length===0,children:M?`Set password and sign in`:`Sign in`})})]})]})})}export{D as component};
@@ -0,0 +1,144 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=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(){}},d=new class extends u{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},f={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},p=new class{#e=f;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function m(e){setTimeout(e,0)}var h=typeof window>`u`||`Deno`in globalThis;function g(){}function _(e,t){return typeof e==`function`?e(t):e}function v(e){return typeof e==`number`&&e>=0&&e!==1/0}function y(e,t){return Math.max(e+(t||0)-Date.now(),0)}function b(e,t){return typeof e==`function`?e(t):e}function x(e,t){return typeof e==`function`?e(t):e}function S(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==w(o,t.options))return!1}else if(!E(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function C(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(T(t.options.mutationKey)!==T(a))return!1}else if(!E(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function w(e,t){return(t?.queryKeyHashFn||T)(e)}function T(e){return JSON.stringify(e,(e,t)=>ie(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function E(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!E(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!E(e[r],t[r]))return!1;return!0}return!1}var ee=Object.prototype.hasOwnProperty;function te(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=re(e)&&re(t);if(!r&&!(ie(e)&&ie(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:ee.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=te(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function ne(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function re(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ie(e){if(!ae(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!ae(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function ae(e){return Object.prototype.toString.call(e)===`[object Object]`}function oe(e){return new Promise(t=>{p.setTimeout(t,e)})}function se(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:te(e,t)}function ce(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function le(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ue=Symbol();function de(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ue?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function fe(e,t){return typeof e==`function`?e(...t):!!e}function pe(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var me=(()=>{let e=()=>h;return{isServer(){return e()},setIsServer(t){e=t}}})();function D(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var he=m;function ge(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=he,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var O=ge(),_e=new class extends u{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function ve(e){return Math.min(1e3*2**e,3e4)}function ye(e){return(e??`online`)!==`online`||_e.isOnline()}var be=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function xe(e){let t=!1,n=0,r,i=D(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new be(t);p(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>d.isFocused()&&(e.networkMode===`always`||_e.isOnline())&&e.canRun(),u=()=>ye(e.networkMode)&&e.canRun(),f=e=>{a()||(r?.(),i.resolve(e))},p=e=>{a()||(r?.(),i.reject(e))},m=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),h=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(f).catch(r=>{if(a())return;let i=e.retry??(me.isServer()?0:3),o=e.retryDelay??ve,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){p(r);return}n++,e.onFail?.(n,r),oe(s).then(()=>l()?void 0:m()).then(()=>{t?p(r):h()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?h():m().then(h),i)}}var Se=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),v(this.gcTime)&&(this.#e=p.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(me.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(p.clearTimeout(this.#e),this.#e=void 0)}};function Ce(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{pe(e,()=>t.signal,()=>n=!0)},u=de(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?le:ce;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?Te:we,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:we(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function we(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Te(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Ee=class extends Se{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Oe(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.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Oe(this.options);e.data!==void 0&&(this.setState(De(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=se(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(g).catch(g):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=>x(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ue||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>b(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!y(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=de(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Ce(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=xe({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof be&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof be){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...k(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...De(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),O.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function k(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ye(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function De(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Oe(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var ke=class extends u{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=D(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),je(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Me(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Me(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof x(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!ne(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Ne(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||x(this.options.enabled,this.#t)!==x(t.enabled,this.#t)||b(this.options.staleTime,this.#t)!==b(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||x(this.options.enabled,this.#t)!==x(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Fe(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(g)),t}#g(){this.#b();let e=b(this.options.staleTime,this.#t);if(me.isServer()||this.#r.isStale||!v(e))return;let t=y(this.#r.dataUpdatedAt,e)+1;this.#d=p.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(me.isServer()||x(this.options.enabled,this.#t)===!1||!v(this.#p)||this.#p===0)&&(this.#f=p.setInterval(()=>{(this.options.refetchIntervalInBackground||d.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(p.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(p.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&je(e,t),o=i&&Ne(e,n,t,r);(a||o)&&(l={...l,...k(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=se(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=se(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,S={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Pe(e,t),refetch:this.refetch,promise:this.#o,isEnabled:x(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=S.data!==void 0,r=S.status===`error`&&!t,i=e=>{r?e.reject(S.error):t&&e.resolve(S.data)},a=()=>{let e=this.#o=S.promise=D();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||S.data!==o.value)&&a();break;case`rejected`:(!r||S.error!==o.reason)&&a()}}return S}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!ne(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){O.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Ae(e,t){return x(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||x(t.retryOnMount,e)!==!1)}function je(e,t){return Ae(e,t)||e.state.data!==void 0&&Me(e,t,t.refetchOnMount)}function Me(e,t,n){if(x(t.enabled,e)!==!1&&b(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Pe(e,t)}return!1}function Ne(e,t,n,r){return(e!==t||x(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Pe(e,n)}function Pe(e,t){return x(t.enabled,e)!==!1&&e.isStaleByTime(b(t.staleTime,e))}function Fe(e,t){return!ne(e.getCurrentResult(),t)}var Ie=class extends Se{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Le(),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.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=xe({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=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};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),O.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Le(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Re=class extends u{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),ne(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&T(t.mutationKey)!==T(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.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Le();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){O.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},ze=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return E(e.type,t,e.props)}function te(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function ae(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function oe(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,oe(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),oe(o,r,i,``,function(e){return e})):o!=null&&(te(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ie(a,u),c+=oe(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ie(a,u++),c+=oe(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return oe(ae(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function se(e,t,n){if(e==null)return e;var r=[],i=0;return oe(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ce(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var le=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ue={map:se,forEach:function(e,t,n){se(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return se(e,function(){t++}),t},toArray:function(e){return se(e,function(e){return e})||[]},only:function(e){if(!te(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ue,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=te,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ce}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,le)}catch(e){le(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),Be=o(((e,t)=>{t.exports=ze()})),Ve=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),He=o(((e,t)=>{t.exports=Ve()})),A=l(Be(),1),Ue=He(),We=A.createContext(void 0),j=e=>{let t=A.useContext(We);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Ge=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Ue.jsx)(We.Provider,{value:e,children:t})),Ke=A.createContext(!1),qe=()=>A.useContext(Ke);Ke.Provider;function Je(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ye=A.createContext(Je()),Xe=()=>A.useContext(Ye),Ze=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?fe(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Qe=e=>{A.useEffect(()=>{e.clearReset()},[e])},$e=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||fe(n,[e.error,r])),et=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},tt=(e,t)=>e.isLoading&&e.isFetching&&!t,nt=(e,t)=>e?.suspense&&t.isPending,rt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function it(e,t,n){let r=qe(),i=Xe(),a=j(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,et(o),Ze(o,i,s),Qe(i);let l=!a.getQueryCache().get(o.queryHash),[u]=A.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(A.useSyncExternalStore(A.useCallback(e=>{let t=f?u.subscribe(O.batchCalls(e)):g;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),A.useEffect(()=>{u.setOptions(o)},[o,u]),nt(o,d))throw rt(o,u,i);if($e({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!me.isServer()&&tt(d,r)&&(l?rt(o,u,i):s?.promise)?.catch(g).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function M(e,t){return it(e,ke,t)}function N(e,t){let n=j(t),[r]=A.useState(()=>new Re(n,e));A.useEffect(()=>{r.setOptions(e)},[r,e]);let i=A.useSyncExternalStore(A.useCallback(e=>r.subscribe(O.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=A.useCallback((e,t)=>{r.mutate(e,t).catch(g)},[r]);if(i.error&&fe(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var at=A.use,ot=A.useLayoutEffect;function st(e,t,n={},r){A.useEffect(()=>{if(!e.current||r||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,r,n,e])}function ct(e){let t=A.useRef(null);return A.useImperativeHandle(e,()=>t.current,[]),t}function lt(e){return e[e.length-1]}function ut(e){return typeof e==`function`}function dt(e,t){return ut(e)?e(t):e}var ft=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;function mt(e){for(let t in e)if(ft.call(e,t))return!0;return!1}var ht=()=>Object.create(null),gt=(e,t)=>_t(e,t,ht);function _t(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=xt(e)&&xt(i);if(!a&&!(yt(e)&&yt(i)))return i;let o=a?e:vt(e);if(!o)return i;let s=a?i:vt(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;t<l;t++){let o=a?t:s[t],l=e[o],f=i[o];if(l===f){u[o]=l,(a?t<c:ft.call(e,o))&&d++;continue}if(l===null||f===null||typeof l!=`object`||typeof f!=`object`){u[o]=f;continue}let p=_t(l,f,n,r+1);u[o]=p,p===l&&d++}return c===l&&d===c?e:u}function vt(e){let t=Object.keys(e);if(t.length!==Object.getOwnPropertyNames(e).length)return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;for(let r of n){if(!pt.call(e,r))return!1;t.push(r)}return t}function yt(e){if(!bt(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!bt(n)||!n.hasOwnProperty(`isPrototypeOf`))}function bt(e){return Object.prototype.toString.call(e)===`[object Object]`}function xt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function St(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!St(e[r],t[r],n))return!1;return!0}if(yt(e)&&yt(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!St(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!St(e[o],t[o],n)))return!1;return i===a}return!1}function Ct(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}var wt=/[\x00-\x1f\x7f"<>`{}]/g;function Tt(e){return e.replace(wt,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function Et(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return Tt(t)}var Dt=[`http:`,`https:`,`mailto:`,`tel:`];function Ot(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function kt(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=Et(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=Et(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function At(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function jt(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Mt(){throw Error(`Invariant failed`)}function Nt(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var P=4,Pt=5;function Ft(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function It(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=Ft(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2<a.length&&a.charCodeAt(r+2)===36){let e=r+3,a=s;if(e<a)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+a,n[4]=t+s+1,n[5]=i,n}}else if(c===36){let a=r+1,o=r+2;return o===s?(n[0]=2,n[1]=t+r,n[2]=t+a,n[3]=t+o,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+r,n[2]=t+o,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function Lt(e,t,n,r,i,a,o,s){s?.(n);let c=r;{let r=n.fullPath??n.from,s=n.options,l=r.length,u=s?.caseSensitive??e,d=s?.params?.parse??s?.parseParams;for(;c<l;){let e=It(r,c,t),n,s=c,l=e[5];c=l+1,a++;let f=e[0];switch(f){case 0:{let t=r.substring(e[2],e[3]),o=t,s;u?s=i.static??=new Map:(o=t.toLowerCase(),s=i.staticInsensitive??=new Map);let c=s.get(o);if(c)n=c;else{let e=zt(r);e.parent=i,e.depth=a,n=e,s.set(o,e)}break}case 1:case 3:case 2:{let t=r.substring(s,e[1]),c=r.substring(e[4],l),p=u&&!!(t||c),m=t?p?t:t.toLowerCase():void 0,h=c?p?c:c.toLowerCase():void 0,g=f===1?i.dynamic:f===3?i.optional:i.wildcard,_=f!==2&&!d&&g?.find(e=>!e.parse&&e.caseSensitive===p&&e.prefix===m&&e.suffix===h);if(_)n=_;else{let e=Bt(f,r,p,m,h);n=e,e.parent=i,e.depth=a;let t;t=f===1?i.dynamic??=[]:f===3?i.optional??=[]:i.wildcard??=[],t.push(e),t.length===2&&o?.push(t)}break}}i=n}if(d&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=zt(r);e.kind=Pt,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let f=(n.path||!n.children)&&!n.isRoot;if(f&&r.endsWith(`/`)){let e=zt(r);e.kind=P,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=d??null,i.priority=s?.params?.priority??0,f&&!i.route&&(i.route=n,i.fullPath=r)}if(n.children)for(let r of n.children)Lt(e,t,r,c,i,a,o,s)}function Rt(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function zt(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function Bt(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function Vt(e,t){let n=zt(`/`),r=new Uint16Array(6),i=[];for(let t of e)Lt(!1,r,t,1,n,0,i);for(let e of i)e.sort(Rt);t.masksTree=n,t.flatCache=Nt(1e3)}function Ht(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=qt(e,t.masksTree);return t.flatCache.set(e,r),r}function Ut(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=zt(`/`),Lt(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),qt(r,o,n)}function Wt(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=qt(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Yt(a.route)),t.matchCache.set(r,a),a}function Gt(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Kt(e,t=!1,n){let r=zt(e.fullPath),i=new Uint16Array(6),a=[],o={},s={},c=0;Lt(t,i,e,1,r,0,a,e=>{if(n?.(e,c),e.id in o&&Mt(),o[e.id]=e,c!==0&&e.path){let t=Gt(e.fullPath);(!s[t]||e.fullPath.endsWith(`/`))&&(s[t]=e)}c++});for(let e of a)e.sort(Rt);return{processedTree:{segmentTree:r,singleCache:Nt(1e3),matchCache:Nt(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:s}}function qt(e,t,n=!1){let r=e.split(`/`),i=Zt(e,r,t,n);if(!i)return null;let[a]=Jt(e,r,i);return{route:i.node.route,rawParams:a}}function Jt(e,t,n){let r=Xt(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===P)break;if(u.kind===Pt){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0;if(e.charCodeAt(t)===123){let n=u.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0,r=u.suffix?.length??0,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function Yt(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Xt(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Zt(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!lt(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!tn(l,n))continue;if(i.parse){if(!en(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==P&&tn(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===P||i.kind===2)&&tn(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(en(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&$t(f,o))return n;tn(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(_||!(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)))){if(a){if(_)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+Qt(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+Qt(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+Qt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+Qt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Qt(e,t){return 2**(e-t-1)}function $t(e,t){return e===2**(t-1)-1}function en(e,t,n){let r,i;try{[r,i]=Jt(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function tn(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===P)>(e.node.kind===P)||t.node.kind===P==(e.node.kind===P)&&t.node.depth>e.node.depth)))}function nn(e){return rn(e.filter(e=>e!==void 0).join(`/`))}function rn(e){return e.replace(/\/{2,}/g,`/`)}function an(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function on(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function sn(e){return on(an(e))}function cn(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function ln(e,t,n){return cn(e,n)===cn(t,n)}function un({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t===`.`,a=t.startsWith(`/`),o;if(r){o=a?t:i?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(i)s=e.split(`/`);else if(a)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&lt(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.length>1?s.pop():s=[``]:r===`.`||s.push(r)}}s.length>1&&(lt(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=rn(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function dn(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function fn(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>mn(e,n)).join(`/`):mn(r,n):r}function pn({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=It(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=fn(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=fn(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=fn(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function mn(e,t){let n=encodeURIComponent(e);return t?.(n)??n}var hn=`Error preloading route! ☝️`;function gn({children:e,fallback:t=null}){return(0,Ue.jsx)(A.Fragment,{children:_n()?e:t})}function _n(){return A.useSyncExternalStore(vn,()=>!0,()=>!1)}function vn(){return()=>{}}var yn=A.createContext(null);function bn(e){return A.useContext(yn)}var xn=o((e=>{var t=Be();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),Sn=o(((e,t)=>{t.exports=xn()})),Cn=o((e=>{var t=Be(),n=Sn();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),wn=o(((e,t)=>{t.exports=Cn()})),Tn=wn();function En(e,t){return e===t}function Dn(e,t,n=En){let r=(0,A.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,A.useCallback)(()=>e?.get(),[e]);return(0,Tn.useSyncExternalStoreWithSelector)(r,i,i,t,n)}function On(e){let t=bn();return A.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}var kn=o((e=>{var t=Be();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.8`})),An=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=kn()})),jn=l(An(),1);function Mn(e){let t=A.useRef(e);return St(t.current,e,{ignoreUndefined:!1})||(t.current=e),t.current}function Nn(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function Pn(e,t,n){if(e?.external)return Ot(e.href,n)?void 0:e.href;if(!Kn(t)&&typeof t==`string`&&t.indexOf(`:`)!==-1)try{return new URL(t),Ot(t,n)?void 0:t}catch{}}function Fn(e,t,n,r,i,a){if(a)return!1;if(n?.exact){if(!ln(e.pathname,t.pathname,r))return!1}else{let n=cn(e.pathname,r),i=cn(t.pathname,r);if(!(n.startsWith(i)&&(n.length===i.length||n[i.length]===`/`)))return!1}return(n?.includeSearch??!0)&&!St(e.search,t.search,{partial:!n?.exact,ignoreUndefined:!n?.explicitUndefined})?!1:!n?.includeHash||i&&e.hash===t.hash}function In(e,t){let n=bn(),r=ct(t),{activeProps:i,inactiveProps:a,activeOptions:o,to:s,preload:c,preloadDelay:l,preloadIntentProximity:u,hashScrollIntoView:d,replace:f,startTransition:p,resetScroll:m,viewTransition:h,children:g,target:_,disabled:v,style:y,className:b,onClick:x,onBlur:S,onFocus:C,onMouseEnter:w,onMouseLeave:T,onTouchStart:E,ignoreBlocker:ee,params:te,search:ne,hash:re,state:ie,mask:ae,reloadDocument:oe,unsafeRelative:se,from:ce,_fromLocation:le,...ue}=e,de=_n(),fe=Mn(e.search),pe=Mn(e.params),me=Mn(o),D=A.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,fe,pe,e.state,e.mask,e.unsafeRelative]),he=A.useCallback(e=>{let t=n.buildLocation({_fromLocation:e,...D}),r=Gn(t.maskedLocation?t.maskedLocation.publicHref:t.publicHref,t.maskedLocation?t.maskedLocation.external:t.external,n.history,v),i=Pn(r,s,n.protocolAllowlist);return[r?.href,i,Fn(e,t,me,n.basepath,de,i!==void 0)]},[me,v,de,D,n,s]),[ge,O,_e]=Dn(n.stores.location,he,Nn),ve=_e?dt(i,{})??Rn:Ln,ye=_e?Ln:dt(a,{})??Ln,be=[b,ve.className,ye.className].filter(Boolean).join(` `),xe=(y||ve.style||ye.style)&&{...y,...ve.style,...ye.style},[Se,Ce]=A.useState(!1),we=A.useRef(!1),Te=e.reloadDocument||O?!1:c??n.options.defaultPreload,Ee=l??n.options.defaultPreloadDelay??0,k=A.useCallback(()=>{n.preloadRoute(D).catch(e=>{console.warn(e),console.warn(hn)})},[n,D]);st(r,A.useCallback(e=>{e?.isIntersecting&&k()},[k]),Un,!!v||Te!==`viewport`),A.useEffect(()=>{we.current||!v&&Te===`render`&&(k(),we.current=!0)},[v,k,Te]);let De=e=>{let t=e.currentTarget.getAttribute(`target`),r=_===void 0?t:_;if(!v&&!Jn(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,jn.flushSync)(()=>{Ce(!0)});let t=n.subscribe(`onResolved`,()=>{t(),Ce(!1)});n.navigate({...D,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:ee})}};if(O)return{...ue,ref:r,href:O,...g&&{children:g},..._&&{target:_},...v&&{disabled:v},...y&&{style:y},...b&&{className:b},...x&&{onClick:x},...S&&{onBlur:S},...C&&{onFocus:C},...w&&{onMouseEnter:w},...T&&{onMouseLeave:T},...E&&{onTouchStart:E}};let Oe=e=>{if(v||Te!==`intent`)return;if(!Ee){k();return}let t=e.currentTarget;if(Hn.has(t))return;let n=setTimeout(()=>{Hn.delete(t),k()},Ee);Hn.set(t,n)},ke=e=>{v||Te!==`intent`||k()},Ae=e=>{if(v||!Te||!Ee)return;let t=e.currentTarget,n=Hn.get(t);n&&(clearTimeout(n),Hn.delete(t))};return{...ue,...ve,...ye,href:ge,ref:r,onClick:Wn([x,De]),onBlur:Wn([S,Ae]),onFocus:Wn([C,Oe]),onMouseEnter:Wn([w,Oe]),onMouseLeave:Wn([T,Ae]),onTouchStart:Wn([E,ke]),disabled:!!v,target:_,...xe&&{style:xe},...be&&{className:be},...v&&zn,..._e&&Bn,...de&&Se&&Vn}}var Ln={},Rn={className:`active`},zn={role:`link`,"aria-disabled":!0},Bn={"data-status":`active`,"aria-current":`page`},Vn={"data-transitioning":`transitioning`},Hn=new WeakMap,Un={rootMargin:`100px`},Wn=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Gn(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function Kn(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var qn=A.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=In(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return A.createElement(`a`,t,o)}return A.createElement(n,a,o)});function Jn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var F=`-ms-`,Yn=`-moz-`,I=`-webkit-`,Xn=`comm`,Zn=`rule`,Qn=`decl`,$n=`@import`,er=`@namespace`,tr=`@keyframes`,nr=`@layer`,rr=Math.abs,ir=String.fromCharCode,ar=Object.assign;function or(e,t){return z(e,0)^45?(((t<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3):0}function sr(e){return e.trim()}function L(e,t){return(e=t.exec(e))?e[0]:e}function R(e,t,n){return e.replace(t,n)}function cr(e,t,n){return e.indexOf(t,n)}function z(e,t){return e.charCodeAt(t)|0}function B(e,t,n){return e.slice(t,n)}function V(e){return e.length}function lr(e){return e.length}function ur(e,t){return t.push(e),e}function dr(e,t){return e.map(t).join(``)}function fr(e,t){return e.filter(function(e){return!L(e,t)})}var pr=1,mr=1,hr=0,H=0,U=0,gr=``;function _r(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:pr,column:mr,length:o,return:``,siblings:s}}function W(e,t){return ar(_r(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function vr(e){for(;e.root;)e=W(e.root,{children:[e]});ur(e,e.siblings)}function yr(){return U}function br(){return U=H>0?z(gr,--H):0,mr--,U===10&&(mr=1,pr--),U}function G(){return U=H<hr?z(gr,H++):0,mr++,U===10&&(mr=1,pr++),U}function K(){return z(gr,H)}function xr(){return H}function Sr(e,t){return B(gr,e,t)}function Cr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wr(e){return pr=mr=1,hr=V(gr=e),H=0,[]}function Tr(e){return gr=``,e}function Er(e){return sr(Sr(H-1,kr(e===91?e+2:e===40?e+1:e)))}function Dr(e){for(;(U=K())&&U<33;)G();return Cr(e)>2||Cr(U)>3?``:` `}function Or(e,t){for(;--t&&G()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return Sr(e,xr()+(t<6&&K()==32&&G()==32))}function kr(e){for(;G();)switch(U){case e:return H;case 34:case 39:e!==34&&e!==39&&kr(U);break;case 40:e===41&&kr(e);break;case 92:G();break}return H}function Ar(e,t){for(;G()&&e+U!==57&&(e+U!==84||K()!==47););return`/*`+Sr(t,H-1)+`*`+ir(e===47?e:G())}function jr(e){for(;!Cr(K());)G();return Sr(e,H)}function Mr(e){return Tr(Nr(``,null,null,null,[``],e=wr(e),0,[0],e))}function Nr(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=G()){case 40:if(m!=108&&z(C,d-1)==58){cr(C+=R(Er(v),`&`,`&\f`),`&\f`,rr(l?s[l-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Er(v);break;case 9:case 10:case 13:case 32:C+=Dr(m);break;case 92:C+=Or(xr()-1,7);continue;case 47:switch(K()){case 42:case 47:ur(Fr(Ar(G(),xr()),t,n,c),c),(Cr(m||1)==5||Cr(K()||1)==5)&&V(C)&&B(C,-1,void 0)!==` `&&(C+=` `);break;default:C+=`/`}break;case 123*h:s[l++]=V(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=R(C,/\f/g,``)),p>0&&(V(C)-d||h===0&&m===47)&&ur(p>32?Ir(C+`;`,r,n,d-1,c):Ir(R(C,` `,``)+`;`,r,n,d-2,c),c);break;case 59:C+=`;`;default:if(ur(S=Pr(C,t,n,l,u,i,s,y,b=[],x=[],d,a),a),v===123)if(u===0)Nr(C,t,S,S,b,a,d,s,x);else{switch(f){case 99:if(z(C,3)===110)break;case 108:if(z(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Nr(e,S,S,r&&ur(Pr(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x):Nr(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+V(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&br()==125)continue}switch(C+=ir(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(V(C)-1)*_,_=1;break;case 64:K()===45&&(C+=Er(G())),f=K(),u=d=V(y=C+=jr(xr())),v++;break;case 45:m===45&&V(C)==2&&(h=0)}}return a}function Pr(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=lr(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=B(e,f+1,f=rr(g=o[h])),b=e;v<m;++v)(b=sr(g>0?p[v]+` `+y:R(y,/&\f/g,p[v])))&&(c[_++]=b);return _r(e,t,n,i===0?Zn:s,c,l,u,d)}function Fr(e,t,n,r){return _r(e,t,n,Xn,ir(yr()),B(e,2,-2),0,r)}function Ir(e,t,n,r,i){return _r(e,t,n,Qn,B(e,0,r),B(e,r+1,-1),r,i)}function Lr(e,t,n){switch(or(e,t)){case 5103:return I+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return I+e+e;case 4855:return I+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return Yn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return I+e+Yn+e+F+e+e;case 5936:switch(z(e,t+11)){case 114:return I+e+F+R(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return I+e+F+R(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return I+e+F+R(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return I+e+F+e+e;case 6165:return I+e+F+`flex-`+e+e;case 5187:return I+e+R(e,/(\w+).+(:[^]+)/,I+`box-$1$2`+F+`flex-$1$2`)+e;case 5443:return I+e+F+`flex-item-`+R(e,/flex-|-self/g,``)+(L(e,/flex-|baseline/)?``:F+`grid-row-`+R(e,/flex-|-self/g,``))+e;case 4675:return I+e+F+`flex-line-pack`+R(e,/align-content|flex-|-self/g,``)+e;case 5548:return I+e+F+R(e,`shrink`,`negative`)+e;case 5292:return I+e+F+R(e,`basis`,`preferred-size`)+e;case 6060:return I+`box-`+R(e,`-grow`,``)+I+e+F+R(e,`grow`,`positive`)+e;case 4554:return I+R(e,/([^-])(transform)/g,`$1`+I+`$2`)+e;case 6187:return R(R(R(e,/(zoom-|grab)/,I+`$1`),/(image-set)/,I+`$1`),e,``)+e;case 5495:case 3959:return R(e,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return R(R(e,/(.+:)(flex-)?(.*)/,I+`box-pack:$3`+F+`flex-pack:$3`),/space-between/,`justify`)+I+e+e;case 4200:if(!L(e,/flex-|baseline/))return F+`grid-column-align`+B(e,t)+e;break;case 2592:case 3360:return F+R(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,L(e.props,/grid-\w+-end/)})?~cr(e+(n=n[t].value),`span`,0)?e:F+R(e,`-start`,``)+e+F+`grid-row-span:`+(~cr(n,`span`,0)?L(n,/\d+/):L(n,/\d+/)-+L(e,/\d+/))+`;`:F+R(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return L(e.props,/grid-\w+-start/)})?e:F+R(R(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return R(e,/(.+)-inline(.+)/,I+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(V(e)-1-t>6)switch(z(e,t+1)){case 109:if(z(e,t+4)!==45)break;case 102:return R(e,/(.+:)(.+)-([^]+)/,`$1`+I+`$2-$3$1`+Yn+(z(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~cr(e,`stretch`,0)?Lr(R(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return R(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return F+n+`:`+r+s+(i?F+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(z(e,t+6)===121)return R(e,`:`,`:`+I)+e;break;case 6444:switch(z(e,z(e,14)===45?18:11)){case 120:return R(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+I+(z(e,14)===45?`inline-`:``)+`box$3$1`+I+`$2$3$1`+F+`$2box$3`)+e;case 100:return R(e,`:`,`:`+F)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return R(e,`scroll-`,`scroll-snap-`)+e}return e}function Rr(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function zr(e,t,n,r){switch(e.type){case nr:if(e.children.length)break;case $n:case er:case Qn:return e.return=e.return||e.value;case Xn:return``;case tr:return e.return=e.value+`{`+Rr(e.children,r)+`}`;case Zn:if(!V(e.value=e.props.join(`,`)))return``}return V(n=Rr(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Br(e){var t=lr(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Vr(e){return function(t){t.root||(t=t.return)&&e(t)}}function Hr(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Qn:e.return=Lr(e.value,e.length,n);return;case tr:return Rr([W(e,{value:R(e.value,`@`,`@`+I)})],r);case Zn:if(e.length)return dr(n=e.props,function(t){switch(L(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:vr(W(e,{props:[R(t,/:(read-\w+)/,`:`+Yn+`$1`)]})),vr(W(e,{props:[t]})),ar(e,{props:fr(n,r)});break;case`::placeholder`:vr(W(e,{props:[R(t,/:(plac\w+)/,`:`+I+`input-$1`)]})),vr(W(e,{props:[R(t,/:(plac\w+)/,`:`+Yn+`$1`)]})),vr(W(e,{props:[R(t,/:(plac\w+)/,F+`input-$1`)]})),vr(W(e,{props:[t]})),ar(e,{props:fr(n,r)})}return``})}}var q=typeof process<`u`&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||`data-styled`,Ur=`active`,Wr=`data-styled-version`,Gr=`6.5.1`,Kr=`/*!sc*/
2
+ `,qr=typeof window<`u`&&typeof document<`u`;function Jr(e){if(typeof process<`u`){let t={}[e];if(t!==void 0&&t!==``)return t!==`false`}}var Yr=!!(typeof SC_DISABLE_SPEEDY==`boolean`?SC_DISABLE_SPEEDY:Jr(`REACT_APP_SC_DISABLE_SPEEDY`)??Jr(`SC_DISABLE_SPEEDY`)??(typeof process<`u`&&!1)),Xr=`sc-keyframes-`,Zr={};function Qr(e,...t){return Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(`, `)}`:``}`)}var $r=new Map,ei=new Map,ti=1,ni=e=>{if($r.has(e))return $r.get(e);for(;ei.has(ti);)ti++;let t=ti++;return $r.set(e,t),ei.set(t,e),t},ri=e=>ei.get(e),ii=(e,t)=>{ti=t+1,$r.set(e,t),ei.set(t,e)},ai=Object.freeze([]),oi=Object.freeze({});function si(e,t,n=oi){return e.theme!==n.theme&&e.theme||t||n.theme}var ci=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,li=/(^-|-$)/g;function ui(e){return e.replace(ci,`-`).replace(li,``)}var di=/(a)(d)/gi,fi=e=>String.fromCharCode(e+(e>25?39:97));function pi(e){let t,n=``;for(t=Math.abs(e);t>52;t=t/52|0)n=fi(t%52)+n;return(fi(t%52)+n).replace(di,`$1-$2`)}var mi=5381,hi=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},gi=e=>hi(mi,e);function _i(e){return pi(gi(e)>>>0)}function vi(e){return e.displayName||e.name||`Component`}function yi(e){return typeof e==`string`&&!0}function bi(e){return yi(e)?`styled.${e}`:`Styled(${vi(e)})`}var xi=Symbol.for(`react.memo`),Si=Symbol.for(`react.forward_ref`),Ci={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},wi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ti={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ei={[Si]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[xi]:Ti};function Di(e){return(`type`in(t=e)&&t.type.$$typeof)===xi?Ti:`$$typeof`in e?Ei[e.$$typeof]:Ci;var t}var Oi=Object.defineProperty,ki=Object.getOwnPropertyNames,Ai=Object.getOwnPropertySymbols,ji=Object.getOwnPropertyDescriptor,Mi=Object.getPrototypeOf,Ni=Object.prototype;function Pi(e,t,n){if(typeof t!=`string`){let r=Mi(t);r&&r!==Ni&&Pi(e,r,n);let i=ki(t).concat(Ai(t)),a=Di(e),o=Di(t);for(let r=0;r<i.length;++r){let s=i[r];if(!(s in wi||n&&n[s]||o&&s in o||a&&s in a)){let n=ji(t,s);try{Oi(e,s,n)}catch{}}}}return e}function Fi(e){return typeof e==`function`}var Ii=Symbol.for(`react.forward_ref`);function Li(e){return e!=null&&(typeof e==`object`||typeof e==`function`)&&e.$$typeof===Ii&&`styledComponentId`in e}function Ri(e,t){return e&&t?e+` `+t:e||t||``}function zi(e,t){return e.join(t||``)}function Bi(e){return typeof e==`object`&&!!e&&e.constructor.name===Object.name&&!(`props`in e&&e.$$typeof)}function Vi(e,t,n=!1){if(!n&&!Bi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Vi(e[n],t[n]);else if(Bi(t))for(let n in t)e[n]=Vi(e[n],t[n]);return e}function Hi(e,t){Object.defineProperty(e,"toString",{value:t})}var Ui=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){let t=this.groupSizes,n=t.length,r=n;for(;e>=r;)if(r<<=1,r<0)throw Qr(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,a=t.length;i<a;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){let t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t=``;if(e>=this.length||this.groupSizes[e]===0)return t;let n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+Kr;return t}},Wi=`style[${q}][${Wr}="${Gr}"]`,Gi=RegExp(`^${q}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Ki=e=>typeof ShadowRoot<`u`&&e instanceof ShadowRoot||`host`in e&&e.nodeType===11,qi=e=>{if(!e)return document;if(Ki(e))return e;if(`getRootNode`in e){let t=e.getRootNode();if(Ki(t))return t}return document},Ji=(e,t,n)=>{let r=n.split(`,`),i;for(let n=0,a=r.length;n<a;n++)(i=r[n])&&e.registerName(t,i)},Yi=(e,t)=>{let n=(t.textContent??``).split(Kr),r=[];for(let t=0,i=n.length;t<i;t++){let i=n[t].trim();if(!i)continue;let a=i.match(Gi);if(a){let t=0|parseInt(a[1],10),n=a[2];t!==0&&(ii(n,t),Ji(e,n,a[3]),e.getTag().insertRules(t,r)),r.length=0}else r.push(i)}},Xi=e=>{let t=qi(e.options.target).querySelectorAll(Wi);for(let n=0,r=t.length;n<r;n++){let r=t[n];r&&r.getAttribute(q)!==Ur&&(Yi(e,r),r.parentNode&&r.parentNode.removeChild(r))}},Zi=!1;function Qi(){if(!1!==Zi)return Zi;if(typeof document<`u`){let e=document.head.querySelector(`meta[property="csp-nonce"]`);if(e)return Zi=e.nonce||e.getAttribute(`content`)||void 0;let t=document.head.querySelector(`meta[name="sc-nonce"]`);if(t)return Zi=t.getAttribute(`content`)||void 0}return Zi=typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}var $i=(e,t)=>{let n=document.head,r=e||n,i=document.createElement(`style`),a=(e=>{let t=Array.from(e.querySelectorAll(`style[${q}]`));return t[t.length-1]})(r),o=a===void 0?null:a.nextSibling;i.setAttribute(q,Ur),i.setAttribute(Wr,Gr);let s=t||Qi();return s&&i.setAttribute(`nonce`,s),r.insertBefore(i,o),i},ea=class{constructor(e,t){this.element=$i(e,t),this.element.appendChild(document.createTextNode(``)),this.sheet=(e=>{if(e.sheet)return e.sheet;let t=e.getRootNode().styleSheets??document.styleSheets;for(let n=0,r=t.length;n<r;n++){let r=t[n];if(r.ownerNode===e)return r}throw Qr(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){let t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:``}},ta=class{constructor(e,t){this.element=$i(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){let n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:``}},na=qr,ra={isServer:!qr,useCSSOMInjection:!Yr},ia=class e{static registerId(e){return ni(e)}constructor(e=oi,t={},n){this.options=Object.assign(Object.assign({},ra),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&qr&&na&&(na=!1,Xi(this)),Hi(this,()=>(e=>{let t=e.getTag(),{length:n}=t,r=``;for(let i=0;i<n;i++){let n=ri(i);if(n===void 0)continue;let a=e.names.get(n);if(a===void 0||!a.size)continue;let o=t.getGroup(i);if(o.length===0)continue;let s=q+`.g`+i+`[id="`+n+`"]`,c=``;for(let e of a)e.length>0&&(c+=e+`,`);r+=o+s+`{content:"`+c+`"}/*!sc*/
3
+ `}return r})(this))}rehydrate(){!this.server&&qr&&Xi(this)}reconstructWithOptions(t,n=!0){let r=new e(Object.assign(Object.assign({},this.options),t),this.gs,n&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&qr&&t.target!==this.options.target&&qi(this.options.target)!==qi(t.target)&&Xi(r),r}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new ea(t,n):new ta(t,n))(this.options),new Ui(e));var e}hasNameForId(e,t){var n;return(n=this.names.get(e)?.has(t))!=null&&n}registerName(e,t){ni(e),e.startsWith(Xr)&&this.keyframeIds.add(e);let n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(ni(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(ni(e)),this.clearNames(e)}clearTag(){this.tag=void 0}},aa=new WeakSet,oa={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function sa(e,t){return t==null||typeof t==`boolean`||t===``?``:typeof t!=`number`||t===0||e in oa||e.startsWith(`--`)?String(t).trim():t+`px`}var ca=47;function la(e){if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45)return e;let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r>=65&&r<=90?`-`+String.fromCharCode(r+32):e[n]}return t.startsWith(`ms-`)?`-`+t:t}var ua=Symbol.for(`sc-keyframes`);function da(e){return typeof e==`object`&&!!e&&ua in e}function fa(e){return Fi(e)&&!(e.prototype&&e.prototype.isReactComponent)}var pa=e=>e==null||!1===e||e===``,ma=Symbol.for(`react.client.reference`);function ha(e){return e.$$typeof===ma}function ga(e,t){for(let n in e){let r=e[n];e.hasOwnProperty(n)&&!pa(r)&&(Array.isArray(r)&&aa.has(r)||Fi(r)?t.push(la(n)+`:`,r,`;`):Bi(r)?(t.push(n+` {`),ga(r,t),t.push(`}`)):t.push(la(n)+`: `+sa(n,r)+`;`))}}function J(e,t,n,r,i=[]){if(pa(e))return i;let a=typeof e;if(a===`string`)return i.push(e),i;if(a===`function`)return ha(e)?i:fa(e)&&t?J(e(t),t,n,r,i):(i.push(e),i);if(Array.isArray(e)){for(let a=0;a<e.length;a++)J(e[a],t,n,r,i);return i}return Li(e)?(i.push(`.${e.styledComponentId}`),i):da(e)?(n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i):ha(e)?i:Bi(e)&&e.toString===Object.prototype.toString?(ga(e,i),i):(i.push(e.toString()),i)}var _a=gi(Gr),va=class{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=hi(_a,t),this.baseStyle=n,ia.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):``;{let i=``;for(let r=0;r<this.rules.length;r++){let a=this.rules[r];if(typeof a==`string`)i+=a;else if(a)if(fa(a)){let r=a(e);typeof r==`string`?i+=r:r!=null&&!1!==r&&(i+=zi(J(r,e,t,n)))}else i+=zi(J(a,e,t,n))}if(i){this.dynamicNameCache||=new Map;let e=n.hash?n.hash+i:i,a=this.dynamicNameCache.get(e);if(!a){if(a=pi(hi(hi(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){let e=this.dynamicNameCache.keys().next().value;e!==void 0&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,a)}if(!t.hasNameForId(this.componentId,a)){let e=n(i,`.`+a,void 0,this.componentId);t.insertRules(this.componentId,a,e)}r=Ri(r,a)}}return r}},ya=/&/g;function ba(e,t){let n=0;for(;--t>=0&&e.charCodeAt(t)===92;)n++;return!(1&~n)}function xa(e){let t=e.length,n=``,r=0,i=0,a=0,o=!1,s=!1;for(let c=0;c<t;c++){let l=e.charCodeAt(c);if(a!==0||o||l!==ca||e.charCodeAt(c+1)!==42)if(o)l===42&&e.charCodeAt(c+1)===ca&&(o=!1,c++);else if(l!==34&&l!==39||ba(e,c)){if(a===0)if(l===123)i++;else if(l===125){if(i--,i<0){s=!0;let n=c+1;for(;n<t;){let t=e.charCodeAt(n);if(t===59||t===10)break;n++}n<t&&e.charCodeAt(n)===59&&n++,i=0,c=n-1,r=n;continue}i===0&&(n+=e.substring(r,c+1),r=c+1)}else l===59&&i===0&&(n+=e.substring(r,c+1),r=c+1)}else a===0?a=l:a===l&&(a=0);else o=!0,c++}return s||i!==0||a!==0?(r<t&&i===0&&a===0&&(n+=e.substring(r)),n):e}function Sa(e,t){let n=t+` `,r=`,`+n;for(let i=0;i<e.length;i++){let a=e[i];if(a.type===`rule`){a.value=(n+a.value).replaceAll(`,`,r);let e=a.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];a.props=t}Array.isArray(a.children)&&a.type!==`@keyframes`&&Sa(a.children,t)}return e}function Ca({options:e=oi,plugins:t=ai}=oi){let n,r,i,a=(e,t,i)=>i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,``).length>0?`.${n}`:e,o=t.slice();o.push(e=>{e.type===`rule`&&e.value.includes(`&`)&&(i||=RegExp(`\\${r}\\b`,`g`),e.props[0]=e.props[0].replace(ya,r).replace(i,a))}),e.prefix&&o.push(Hr),o.push(zr);let s=[],c=Br(o.concat(Vr(e=>s.push(e)))),l=(t,a=``,o=``,l=`&`)=>{n=l,r=a,i=void 0;let u=function(e){let t=e.indexOf(`//`)!==-1,n=e.indexOf(`}`)!==-1;if(!t&&!n)return e;if(!t)return xa(e);let r=e.length,i=``,a=0,o=0,s=0,c=0,l=0,u=!1;for(;o<r;){let t=e.charCodeAt(o);if(t!==34&&t!==39||ba(e,o))if(s===0)if(t===ca&&o+1<r&&e.charCodeAt(o+1)===42){for(o+=2;o+1<r&&(e.charCodeAt(o)!==42||e.charCodeAt(o+1)!==ca);)o++;o+=2}else if(t!==40)if(t!==41)if(c>0)o++;else if(t===42&&o+1<r&&e.charCodeAt(o+1)===ca)i+=e.substring(a,o),o+=2,a=o,u=!0;else if(t===ca&&o+1<r&&e.charCodeAt(o+1)===ca){for(i+=e.substring(a,o);o<r&&e.charCodeAt(o)!==10;)o++;a=o,u=!0}else t===123?l++:t===125&&l--,o++;else c>0&&c--,o++;else c++,o++;else o++;else s===0?s=t:s===t&&(s=0),o++}return u?(a<r&&(i+=e.substring(a)),l===0?i:xa(i)):l===0?e:xa(e)}(t),d=Mr(o||a?o+` `+a+` { `+u+` }`:u);return e.namespace&&(d=Sa(d,e.namespace)),s=[],Rr(d,c),s},u=e,d=mi;for(let e=0;e<t.length;e++)t[e].name||Qr(15),d=hi(d,t[e].name);return u!=null&&u.namespace&&(d=hi(d,u.namespace)),u!=null&&u.prefix&&(d=hi(d,`p`)),l.hash=d===mi?``:d.toString(),l}var wa=new ia,Ta=Ca(),Ea=A.createContext({shouldForwardProp:void 0,styleSheet:wa,stylis:Ta,stylisPlugins:void 0});Ea.Consumer;function Da(){return A.useContext(Ea)}var Oa=A.createContext(void 0);Oa.Consumer;function ka(e){let t=A.useContext(Oa),n=A.useMemo(()=>function(e,t){if(!e)throw Qr(14);if(Fi(e))return e(t);if(Array.isArray(e)||typeof e!=`object`)throw Qr(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,t),[e.theme,t]);return e.children?A.createElement(Oa.Provider,{value:n},e.children):null}var Aa=Object.prototype.hasOwnProperty,ja={};function Ma(e,t){let n=typeof e==`string`?ui(e):`sc`;ja[n]=(ja[n]||0)+1;let r=n+`-`+_i(Gr+n+ja[n]);return t?t+`-`+r:r}function Na(e,t,n){let r=Li(e),i=e,a=!yi(e),{attrs:o=ai,componentId:s=Ma(t.displayName,t.parentComponentId),displayName:c=bi(e)}=t,l=t.displayName&&t.componentId?ui(t.displayName)+`-`+t.componentId:t.componentId||s,u=r&&i.attrs?i.attrs.concat(o).filter(Boolean):o,{shouldForwardProp:d}=t;if(r&&i.shouldForwardProp){let e=i.shouldForwardProp;if(t.shouldForwardProp){let n=t.shouldForwardProp;d=(t,r)=>e(t,r)&&n(t,r)}else d=e}let f=new va(n,l,r?i.componentStyle:void 0);function p(e,t){return function(e,t,n){let{attrs:r,componentStyle:i,defaultProps:a,foldedComponentIds:o,styledComponentId:s,target:c}=e,l=A.useContext(Oa),u=Da(),d=e.shouldForwardProp||u.shouldForwardProp,f=si(t,l,a)||oi,p,m;{let e=A.useRef(null),n=e.current;if(n!==null&&n[1]===f&&n[2]===u.styleSheet&&n[3]===u.stylis&&n[7]===i&&function(e,t,n){let r=e,i=t,a=0;for(let e in i)if(Aa.call(i,e)&&(a++,r[e]!==i[e]))return!1;return a===n}(n[0],t,n[4]))p=n[5],m=n[6];else{p=function(e,t,n){let r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){let a=e[n],o=Fi(a)?a(i?Object.assign({},r):r):a;for(let e in o)e===`className`?r.className=Ri(r.className,o[e]):e===`style`?r.style=Object.assign(Object.assign({},r.style),o[e]):e in t&&t[e]===void 0||(r[e]=o[e])}return`className`in t&&typeof t.className==`string`&&(r.className=Ri(r.className,t.className)),r}(r,t,f),m=i.generateAndInjectStyles(p,u.styleSheet,u.stylis);let n=0;for(let e in t)Aa.call(t,e)&&n++;e.current=[t,f,u.styleSheet,u.stylis,n,p,m,i]}}let h=p.as||c,g=function(e,t,n,r){let i={};for(let a in e)e[a]===void 0||a[0]===`$`||a===`as`||a===`theme`&&e.theme===n||(a===`forwardedAs`?i.as=e.forwardedAs:r&&!r(a,t)||(i[a]=e[a]));return i}(p,h,f,d),_=Ri(o,s);return m&&(_+=` `+m),p.className&&(_+=` `+p.className),g[yi(h)&&h.includes(`-`)?`class`:`className`]=_,n&&(g.ref=n),(0,A.createElement)(h,g)}(m,e,t)}p.displayName=c;let m=A.forwardRef(p);return m.attrs=u,m.componentStyle=f,m.displayName=c,m.shouldForwardProp=d,m.foldedComponentIds=r?Ri(i.foldedComponentIds,i.styledComponentId):``,m.styledComponentId=l,m.target=r?i.target:e,Object.defineProperty(m,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=r?function(e,...t){for(let n of t)Vi(e,n,!0);return e}({},i.defaultProps,e):e}}),Hi(m,()=>`.${m.styledComponentId}`),a&&Pi(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),m}var Pa=new Set(`a.abbr.address.area.article.aside.audio.b.bdi.bdo.blockquote.body.button.br.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.map.mark.menu.meter.nav.object.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.slot.small.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.foreignObject.g.image.line.linearGradient.marker.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.switch.symbol.text.textPath.tspan.use`.split(`.`));function Fa(e,t){let n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var Ia=e=>(aa.add(e),e);function Y(e,...t){if(Fi(e)||Bi(e))return Ia(J(Fa(ai,[e,...t])));let n=e;return t.length===0&&n.length===1&&typeof n[0]==`string`?J(n):Ia(J(Fa(n,t)))}function La(e,t,n=oi){if(!t)throw Qr(1,t);let r=(r,...i)=>e(t,n,Y(r,...i));return r.attrs=r=>La(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>La(e,t,Object.assign(Object.assign({},n),r)),r}var Ra=e=>La(Na,e),X=Ra;Pa.forEach(e=>{X[e]=Ra(e)});var za=class{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(Fi(n)&&!Li(n))return!1}return!0}(e),ia.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){let i=this.componentId;if(this.isStatic){if(n.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{let a=this.computeRules(e,t,n,r);n.insertRules(i,a.name,a.rules)}return}let a=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&a){let t=a.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){let i=zi(J(this.rules,t,n,r)),a={name:this.componentId+e,rules:r(i,``)};return this.instanceRules.set(e,a),a}rebuildGroup(e){let t=this.componentId;e.clearRules(t);for(let n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}};function Ba(e,...t){let n=Y(e,...t),r=`sc-global-${_i(JSON.stringify(n))}`,i=new za(n,r),a=e=>{let t=Da(),n=A.useContext(Oa),a;{let e=A.useRef(null);e.current===null&&(e.current=t.styleSheet.allocateGSInstance(r)),a=e.current}t.styleSheet.server&&o(a,e,t.styleSheet,n,t.stylis);{let s=i.isStatic?[a,t.styleSheet,i]:[a,e,t.styleSheet,n,t.stylis,i],c=A.useRef(i);A.useLayoutEffect(()=>{t.styleSheet.server||(c.current!==i&&(t.styleSheet.clearRules(r),c.current=i),o(a,e,t.styleSheet,n,t.stylis))},s),A.useLayoutEffect(()=>()=>{t.styleSheet.server||i.removeStyles(a,t.styleSheet)},[a,t.styleSheet,i])}return t.styleSheet.server&&i.instanceRules.delete(a),null};function o(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,Zr,n,o);else{let s=Object.assign(Object.assign({},t),{theme:si(t,r,a.defaultProps)});i.renderStyles(e,s,n,o)}}return A.memo(a)}var Va,Ha=class{constructor(e,t){this[Va]=!0,this.inject=(e,t=Ta)=>{let n=this.getName(t);if(!e.hasNameForId(this.id,n)){let r=t(this.rules,n,`@keyframes`);e.insertRules(this.id,n,r)}},this.name=e,this.id=Xr+e,this.rules=t,ni(this.id),Hi(this,()=>{throw Qr(12,String(this.name))})}getName(e=Ta){return e.hash?this.name+pi(e.hash>>>0):this.name}};function Ua(e,...t){let n=zi(Y(e,...t));return new Ha(_i(n),n)}Va=ua,`${q}`,`${q}`,`${q}`;var Wa={primary:Y`
4
+ background: ${({theme:e})=>e.color.accent};
5
+ color: ${({theme:e})=>e.color.accentInk};
6
+ border-color: ${({theme:e})=>e.color.accent};
7
+
8
+ &:hover:not(:disabled) {
9
+ filter: brightness(1.08);
10
+ }
11
+ `,default:Y`
12
+ background: ${({theme:e})=>e.color.panelRaised};
13
+ color: ${({theme:e})=>e.color.ink};
14
+ border-color: ${({theme:e})=>e.color.ruleStrong};
15
+
16
+ &:hover:not(:disabled) {
17
+ border-color: ${({theme:e})=>e.color.accent};
18
+ color: ${({theme:e})=>e.color.accent};
19
+ }
20
+ `,ghost:Y`
21
+ background: transparent;
22
+ color: ${({theme:e})=>e.color.inkDim};
23
+ border-color: transparent;
24
+
25
+ &:hover:not(:disabled) {
26
+ background: ${({theme:e})=>e.color.panelRaised};
27
+ color: ${({theme:e})=>e.color.ink};
28
+ }
29
+ `,danger:Y`
30
+ background: transparent;
31
+ color: ${({theme:e})=>e.color.down};
32
+ border-color: ${({theme:e})=>e.color.down};
33
+
34
+ &:hover:not(:disabled) {
35
+ background: ${({theme:e})=>e.color.downWash};
36
+ }
37
+ `},Ga={sm:Y`
38
+ height: 24px;
39
+ padding: 0 ${({theme:e})=>e.space(2)};
40
+ font-size: 11px;
41
+ `,md:Y`
42
+ height: 30px;
43
+ padding: 0 ${({theme:e})=>e.space(3)};
44
+ font-size: 13px;
45
+ `},Ka=X.button`
46
+ display: inline-flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ gap: ${({theme:e})=>e.space(1.5)};
50
+ border: 1px solid transparent;
51
+ border-radius: ${({theme:e})=>e.radius.control};
52
+ font-weight: 500;
53
+ white-space: nowrap;
54
+ cursor: pointer;
55
+ transition:
56
+ background 120ms ease,
57
+ color 120ms ease,
58
+ border-color 120ms ease;
59
+
60
+ ${({$size:e})=>Ga[e??`md`]}
61
+ ${({$variant:e})=>Wa[e??`default`]}
62
+
63
+ &:disabled {
64
+ opacity: 0.45;
65
+ cursor: not-allowed;
66
+ }
67
+
68
+ svg {
69
+ width: 14px;
70
+ height: 14px;
71
+ }
72
+ `,qa=X(Ka)`
73
+ padding: 0;
74
+ width: ${({$size:e})=>e===`sm`?`24px`:`30px`};
75
+ `,Ja=X.span`
76
+ font-size: 10px;
77
+ font-weight: 600;
78
+ font-stretch: 74%;
79
+ letter-spacing: 0.16em;
80
+ text-transform: uppercase;
81
+ color: ${({theme:e})=>e.color.inkFaint};
82
+ white-space: nowrap;
83
+ `,Ya=X.span`
84
+ font-family: ${({theme:e})=>e.font.mono};
85
+ font-variant-numeric: tabular-nums;
86
+ font-size: ${({$size:e})=>e??`12px`};
87
+ color: ${({theme:e,$dim:t})=>t===!0?e.color.inkDim:`inherit`};
88
+ `,Xa=X.span`
89
+ color: ${({theme:e})=>e.color.inkDim};
90
+ `,Za=X.div`
91
+ display: flex;
92
+ align-items: ${({$align:e})=>e??`center`};
93
+ justify-content: ${({$justify:e})=>e??`flex-start`};
94
+ gap: ${({theme:e,$gap:t})=>e.space(t??2)};
95
+ ${({$wrap:e})=>e===!0?`flex-wrap: wrap;`:``}
96
+ min-width: 0;
97
+ `,Qa=X.div`
98
+ display: flex;
99
+ flex-direction: column;
100
+ gap: ${({theme:e,$gap:t})=>e.space(t??2)};
101
+ min-width: 0;
102
+ `,$a=X.div`
103
+ display: grid;
104
+ grid-template-columns: repeat(auto-fit, minmax(${({$min:e})=>e??`220px`}, 1fr));
105
+ gap: ${({theme:e,$gap:t})=>e.space(t??3)};
106
+ /* Panels size to their content; a short one does not stretch to match a tall one. */
107
+ align-items: start;
108
+ `;X.hr`
109
+ height: 1px;
110
+ border: 0;
111
+ margin: 0;
112
+ background: ${({theme:e})=>e.color.rule};
113
+ `;var eo=X.div`
114
+ flex: 1 1 auto;
115
+ min-width: 0;
116
+ `,to=X.div`
117
+ overflow-x: auto;
118
+ overscroll-behavior-x: contain;
119
+ `,no=X.span`
120
+ overflow: hidden;
121
+ text-overflow: ellipsis;
122
+ white-space: nowrap;
123
+ min-width: 0;
124
+ `;X.span`
125
+ position: absolute;
126
+ width: 1px;
127
+ height: 1px;
128
+ padding: 0;
129
+ margin: -1px;
130
+ overflow: hidden;
131
+ clip-path: inset(50%);
132
+ white-space: nowrap;
133
+ `,Y`
134
+ animation: ${Ua`
135
+ 0%, 100% { opacity: 1; }
136
+ 50% { opacity: 0.35; }
137
+ `} 2.4s ease-in-out infinite;
138
+ `;var ro=Y`
139
+ background-image: repeating-linear-gradient(
140
+ to bottom,
141
+ var(--grid-line) 0 1px,
142
+ transparent 1px 4px
143
+ );
144
+ `,io=class extends Error{status;code;constructor(e,t,n){super(n),this.name=`ApiError`,this.status=e,this.code=t}get isUnauthenticated(){return this.status===401||this.code===`AUTH`}};function ao(e){if(typeof e!=`object`||!e)return!1;let t=e.error;return typeof t!=`object`||!t?!1:typeof t.message==`string`}async function oo(e,t={}){let n={method:t.method??`GET`,credentials:`same-origin`,headers:t.body===void 0?{}:{"content-type":`application/json`},...t.body===void 0?{}:{body:JSON.stringify(t.body)},...t.signal===void 0?{}:{signal:t.signal}},r=await fetch(e,n),i=t.accept??[],a=null;if(r.status!==204){let e=await r.text();if(e.length>0)try{a=JSON.parse(e)}catch{a=null}}if(!r.ok&&!i.includes(r.status)){let e=ao(a)?a.error.code??`INTERNAL`:`INTERNAL`,t=ao(a)?a.error.message:`request failed with status ${r.status}`;throw new io(r.status,String(e),t)}return{status:r.status,data:a}}async function Z(e,t){return(await oo(e,t===void 0?{}:{signal:t})).data}async function Q(e,t){return(await oo(e,{method:`POST`,...t===void 0?{}:{body:t}})).data}async function so(e,t){return(await oo(e,{method:`PUT`,body:t})).data}async function co(e,t){return(await oo(e,{method:`PATCH`,body:t})).data}async function lo(e){return(await oo(e,{method:`DELETE`})).data}function uo(e,t){let n=new URLSearchParams;for(let[e,r]of Object.entries(t))r!==void 0&&n.set(e,String(r));let r=n.toString();return r.length===0?e:`${e}?${r}`}var $={status:[`status`],credentials:[`credentials`],credentialHealth:[`credentials`,`health`],models:[`models`],keys:[`keys`],settings:[`settings`],agentSetup:(e,t)=>[`agent-setup`,e,t??null],usage:e=>[`usage`,e.grain??`raw`,e.groupBy,e.splitBy??null,e.since,e.until??null],quotaHistory:e=>[`quota-history`,e.credentialId,e.since,e.until??null],logs:e=>[`logs`,e],console:(e,t)=>[`console`,e,t]};function fo(){return M({queryKey:$.status,queryFn:({signal:e})=>Z(`/api/status`,e),staleTime:3e4})}function po(){return M({queryKey:$.credentials,queryFn:async({signal:e})=>(await Z(`/api/credentials`,e)).credentials})}function mo(e=1e4){return M({queryKey:$.credentialHealth,queryFn:({signal:e})=>Z(`/api/credentials/health`,e),refetchInterval:e})}function ho(e,t=!0){return M({queryKey:$.quotaHistory(e),enabled:t,queryFn:({signal:t})=>Z(uo(`/api/credentials/quota/history`,{credentialId:e.credentialId,since:e.since,...e.until===void 0?{}:{until:e.until}}),t),refetchInterval:!1})}function go(){return M({queryKey:$.models,queryFn:async({signal:e})=>(await Z(`/api/models`,e)).models})}function _o(){return M({queryKey:$.keys,queryFn:async({signal:e})=>(await Z(`/api/keys`,e)).keys})}function vo(){return M({queryKey:$.settings,queryFn:async({signal:e})=>(await Z(`/api/settings`,e)).settings})}function yo(e,t){return M({queryKey:$.agentSetup(e,t),enabled:t!==void 0,queryFn:async({signal:n})=>(await Z(uo(`/api/agent-setup`,{client:e,...t??{}}),n)).files})}function bo(e,t=6e4){return M({queryKey:$.usage(e),queryFn:async({signal:t})=>(await Z(uo(`/api/usage`,{groupBy:e.groupBy,since:e.since,...e.grain===void 0?{}:{grain:e.grain},...e.splitBy===void 0?{}:{splitBy:e.splitBy},...e.until===void 0?{}:{until:e.until}}),t)).rows,refetchInterval:t})}var xo=2e3;function So(e=100,t=xo){return M({queryKey:$.logs(e),queryFn:async({signal:t})=>(await Z(uo(`/api/logs`,{limit:e}),t)).logs,refetchInterval:t})}var Co=5e3;function wo(e=200,t=``,n=Co){return M({queryKey:$.console(e,t),queryFn:async({signal:n})=>Z(uo(`/api/console`,{lines:e,...t===``?{}:{level:t}}),n),refetchInterval:n})}function To(){let e=j();return N({mutationFn:e=>Q(`/api/login`,{password:e}),onSuccess:()=>e.invalidateQueries()})}function Eo(){let e=j();return N({mutationFn:e=>Q(`/api/setup`,{password:e}),onSuccess:()=>e.invalidateQueries()})}function Do(){let e=j();return N({mutationFn:()=>Q(`/api/logout`),onSuccess:()=>{e.clear()}})}function Oo(){let e=j();return N({mutationFn:({id:e,patch:t})=>co(`/api/credentials/${e}`,t),onSuccess:()=>{e.invalidateQueries({queryKey:$.credentials}),e.invalidateQueries({queryKey:$.credentialHealth})}})}function ko(){let e=j();return N({mutationFn:e=>lo(`/api/credentials/${e}`),onSuccess:()=>{e.invalidateQueries({queryKey:$.credentials}),e.invalidateQueries({queryKey:$.credentialHealth})}})}function Ao(){let e=j();return N({mutationFn:e=>so(`/api/models/${e.id}`,e),onSuccess:()=>e.invalidateQueries({queryKey:$.models})})}function jo(){let e=j();return N({mutationFn:e=>lo(`/api/models/${e}`),onSuccess:()=>e.invalidateQueries({queryKey:$.models})})}function Mo(){return N({mutationFn:({modelId:e,need:t})=>Q(`/api/models/${e}/dry-run`,t)})}function No(){let e=j();return N({mutationFn:e=>Q(`/api/keys`,e),onSuccess:()=>e.invalidateQueries({queryKey:$.keys})})}function Po(){let e=j();return N({mutationFn:e=>lo(`/api/keys/${e}`),onSuccess:()=>e.invalidateQueries({queryKey:$.keys})})}function Fo(){let e=j();return N({mutationFn:e=>so(`/api/settings`,e),onSuccess:()=>e.invalidateQueries({queryKey:$.settings})})}function Io(){return N({mutationFn:e=>Q(`/api/connect/start`,e)})}function Lo(){let e=j();return N({mutationFn:e=>Q(`/api/credentials`,e),onSuccess:()=>e.invalidateQueries({queryKey:$.credentials})})}function Ro(){let e=j();return N({mutationFn:e=>Q(`/api/connect/finish`,e),onSuccess:()=>e.invalidateQueries({queryKey:$.credentials})})}async function zo(e){let t=await oo(`/api/connect/poll`,{method:`POST`,body:{flowId:e},accept:[202]});return t.status===202?{status:`pending`}:t.data}export{wn as $,l as $t,io as A,_t as At,no as B,_ as Bt,Ao as C,At as Ct,fo as D,Ct as Dt,Eo as E,Ot as Et,Xa as F,Be as Ft,Ba as G,g as Gt,Ka as H,w as Ht,Za as I,Ie as It,ka as J,ue as Jt,Y as K,E as Kt,to as L,Ee as Lt,$a as M,ot as Mt,Ja as N,Ge as Nt,Oo as O,lt as Ot,Ya as P,He as Pt,Dn as Q,s as Qt,eo as R,_e as Rt,Po as S,St,vo as T,mt as Tt,qa as U,C as Ut,ro as V,T as Vt,Ua as W,S as Wt,An as X,u as Xt,qn as Y,d as Yt,On as Z,o as Zt,To as _,Nt as _t,yo as a,pn as at,go as b,jt as bt,wo as c,sn as ct,mo as d,Yt as dt,bn as et,po as f,Ht as ft,_o as g,Kt as gt,Mo as h,Vt as ht,$ as i,dn as it,Z as j,at as jt,bo as k,gt as kt,Lo as l,an as lt,jo as m,Ut as mt,xo as n,gn as nt,Ro as o,nn as ot,ko as p,Wt as pt,X as q,b as qt,zo as r,rn as rt,Io as s,un as st,Co as t,yn as tt,No as u,on as ut,Do as v,Mt as vt,Fo as w,dt as wt,ho as x,kt as xt,So as y,Dt as yt,Qa as z,O as zt};