omnigateway 0.1.0

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 (35) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +265 -0
  3. package/bin/omni.js +19582 -0
  4. package/gateway.js +39286 -0
  5. package/package.json +39 -0
  6. package/public/assets/Chip-D0YiqYkz.js +32 -0
  7. package/public/assets/CopyValue-BwjFnqW2.js +27 -0
  8. package/public/assets/Field-DdscQ9OO.js +65 -0
  9. package/public/assets/Lamp-CSv_5d5k.js +15 -0
  10. package/public/assets/Meter-Bm1oQE2U.js +14 -0
  11. package/public/assets/Modal-1tHwlj0o.js +82 -0
  12. package/public/assets/Rack-DANVhi_U.js +147 -0
  13. package/public/assets/Readout-CYg6UOop.js +27 -0
  14. package/public/assets/States-DPTTYUHL.js +54 -0
  15. package/public/assets/Table-LkPaHBsj.js +38 -0
  16. package/public/assets/Toggle-pWcL2A-N.js +42 -0
  17. package/public/assets/_app-C5mYmzgk.js +1 -0
  18. package/public/assets/_app.accounts-e7Mbaxdc.js +47 -0
  19. package/public/assets/_app.index-CxunMQ_m.js +57 -0
  20. package/public/assets/_app.keys-DTREQf0P.js +39 -0
  21. package/public/assets/_app.logs-Co3QPpc1.js +18 -0
  22. package/public/assets/_app.models-DPSKIyeq.js +144 -0
  23. package/public/assets/_app.settings-15ZMiM5O.js +16 -0
  24. package/public/assets/_app.usage-BBffCDCD.js +163 -0
  25. package/public/assets/archivo-latin-ext-standard-normal-7khWdh9v.woff2 +0 -0
  26. package/public/assets/archivo-latin-standard-normal-DY7AcnAa.woff2 +0 -0
  27. package/public/assets/archivo-vietnamese-standard-normal-rJmnGBSt.woff2 +0 -0
  28. package/public/assets/catalog-DmrbfYQe.js +1 -0
  29. package/public/assets/index-Co2s5xMk.css +1 -0
  30. package/public/assets/index-DnNTc35a.js +170 -0
  31. package/public/assets/login-DNvWG7Nv.js +33 -0
  32. package/public/assets/queries-vY5lJqBe.js +144 -0
  33. package/public/assets/spline-sans-mono-latin-ext-wght-normal-Dh0aNLWd.woff2 +0 -0
  34. package/public/assets/spline-sans-mono-latin-wght-normal-DlaB5ohX.woff2 +0 -0
  35. package/public/index.html +26 -0
@@ -0,0 +1,33 @@
1
+ import{B as e,D as t,Dt as n,F as r,Kt as i,M as a,Ot as o,P as s,W as c,b as l,f as u,k as d,x as f}from"./queries-vY5lJqBe.js";import{a as p}from"./index-DnNTc35a.js";import{t as m}from"./Lamp-CSv_5d5k.js";import{n as h,t as g}from"./Field-DdscQ9OO.js";import{i as _,o as v}from"./States-DPTTYUHL.js";var y=i(o()),b=n(),x=e.div`
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ min-height: 100vh;
6
+ padding: ${({theme:e})=>e.space(4)};
7
+ `,S=e(v)`
8
+ width: min(380px, 100%);
9
+ `,C=e.div`
10
+ display: flex;
11
+ align-items: center;
12
+ gap: 8px;
13
+ padding: ${({theme:e})=>`${e.space(3)} ${e.space(4)}`};
14
+ border-bottom: 1px solid ${({theme:e})=>e.color.rule};
15
+ background: ${({theme:e})=>e.color.panelSunk};
16
+ ${s}
17
+ font-stretch: 74%;
18
+ font-weight: 700;
19
+ letter-spacing: 0.2em;
20
+ font-size: 12px;
21
+ text-transform: uppercase;
22
+ `,w=e.form`
23
+ display: flex;
24
+ flex-direction: column;
25
+ gap: ${({theme:e})=>e.space(3)};
26
+ padding: ${({theme:e})=>e.space(4)};
27
+ `,T=e.p`
28
+ font-size: 12.5px;
29
+ color: ${({theme:e})=>e.color.inkDim};
30
+ `,E=e.p`
31
+ font-size: 12px;
32
+ color: ${({theme:e})=>e.color.down};
33
+ `;function D(){let e=c(),{next:n}=p.useSearch(),i=f(),o=u(),s=l(),[v,D]=(0,y.useState)(``),[O,k]=(0,y.useState)(``),[A,j]=(0,y.useState)(null),M=i.data?.configured===!1,N=o.isPending||s.isPending||i.isLoading,P=()=>{e({to:n?.startsWith(`/`)===!0?n:`/`})};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}s.mutate(v,{onSuccess:P,onError:e=>j(_(e))});return}o.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)(a,{$gap:1,children:[(0,b.jsx)(t,{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)(d,{children:(0,b.jsx)(r,{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 D(e,t){return typeof e==`function`?e(...t):!!e}function O(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 k=(()=>{let e=()=>h;return{isServer(){return e()},setIsServer(t){e=t}}})();function fe(){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 pe=m;function me(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=pe,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 A=me(),he=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 ge(e){return Math.min(1e3*2**e,3e4)}function _e(e){return(e??`online`)!==`online`||he.isOnline()}var ve=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function ye(e){let t=!1,n=0,r,i=fe(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new ve(t);p(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>d.isFocused()&&(e.networkMode===`always`||he.isOnline())&&e.canRun(),u=()=>_e(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??(k.isServer()?0:3),o=e.retryDelay??ge,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 be=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??(k.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(p.clearTimeout(this.#e),this.#e=void 0)}};function xe(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=>{O(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?Ce:Se,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:Se(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 Se(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 Ce(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var we=class extends be{#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=Ee(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=Ee(this.options);e.data!==void 0&&(this.setState(Te(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`?xe(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=ye({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof ve&&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 ve){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,...j(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Te(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),A.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function j(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_e(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Te(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ee(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 De=class extends u{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=fe(),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),ke(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ae(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ae(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&&je(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 Ne(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(k.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,!(k.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&&ke(e,t),o=i&&je(e,n,t,r);(a||o)&&(l={...l,...j(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:Me(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=fe();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){A.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Oe(e,t){return x(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||x(t.retryOnMount,e)!==!1)}function ke(e,t){return Oe(e,t)||e.state.data!==void 0&&Ae(e,t,t.refetchOnMount)}function Ae(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&&Me(e,t)}return!1}function je(e,t,n,r){return(e!==t||x(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Me(e,n)}function Me(e,t){return x(t.enabled,e)!==!1&&e.isStaleByTime(b(t.staleTime,e))}function Ne(e,t){return!ne(e.getCurrentResult(),t)}var Pe=class extends be{#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||Fe(),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=ye({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),A.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Fe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Ie=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??Fe();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){A.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)})})}},Le=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`})),Re=o(((e,t)=>{t.exports=Le()})),ze=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})),Be=o(((e,t)=>{t.exports=ze()})),M=l(Re(),1),Ve=Be(),He=M.createContext(void 0),N=e=>{let t=M.useContext(He);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Ue=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Ve.jsx)(He.Provider,{value:e,children:t})),We=M.createContext(!1),Ge=()=>M.useContext(We);We.Provider;function Ke(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var qe=M.createContext(Ke()),Je=()=>M.useContext(qe),Ye=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?D(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Xe=e=>{M.useEffect(()=>{e.clearReset()},[e])},Ze=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||D(n,[e.error,r])),Qe=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))}},$e=(e,t)=>e.isLoading&&e.isFetching&&!t,et=(e,t)=>e?.suspense&&t.isPending,tt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function nt(e,t,n){let r=Ge(),i=Je(),a=N(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,Qe(o),Ye(o,i,s),Xe(i);let l=!a.getQueryCache().get(o.queryHash),[u]=M.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(M.useSyncExternalStore(M.useCallback(e=>{let t=f?u.subscribe(A.batchCalls(e)):g;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),M.useEffect(()=>{u.setOptions(o)},[o,u]),et(o,d))throw tt(o,u,i);if(Ze({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&&!k.isServer()&&$e(d,r)&&(l?tt(o,u,i):s?.promise)?.catch(g).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function P(e,t){return nt(e,De,t)}function F(e,t){let n=N(t),[r]=M.useState(()=>new Ie(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);let i=M.useSyncExternalStore(M.useCallback(e=>r.subscribe(A.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=M.useCallback((e,t)=>{r.mutate(e,t).catch(g)},[r]);if(i.error&&D(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var rt=M.use,it=M.useLayoutEffect;function at(e,t,n={},r={}){M.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function ot(e){let t=M.useRef(null);return M.useImperativeHandle(e,()=>t.current,[]),t}function st(e){return e[e.length-1]}function ct(e){return typeof e==`function`}function lt(e,t){return ct(e)?e(t):e}var ut=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable;function ft(e){for(let t in e)if(ut.call(e,t))return!0;return!1}var pt=()=>Object.create(null),mt=(e,t)=>ht(e,t,pt);function ht(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=yt(e)&&yt(i);if(!a&&!(_t(e)&&_t(i)))return i;let o=a?e:gt(e);if(!o)return i;let s=a?i:gt(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:ut.call(e,o))&&d++;continue}if(l===null||f===null||typeof l!=`object`||typeof f!=`object`){u[o]=f;continue}let p=ht(l,f,n,r+1);u[o]=p,p===l&&d++}return c===l&&d===c?e:u}function gt(e){let t=Object.getOwnPropertyNames(e);for(let n of t)if(!dt.call(e,n))return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;let r=t;for(let t of n){if(!dt.call(e,t))return!1;r.push(t)}return r}function _t(e){if(!vt(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!vt(n)||!n.hasOwnProperty(`isPrototypeOf`))}function vt(e){return Object.prototype.toString.call(e)===`[object Object]`}function yt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function bt(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(!bt(e[r],t[r],n))return!1;return!0}if(_t(e)&&_t(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!bt(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||!bt(e[o],t[o],n)))return!1;return i===a}return!1}function xt(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 St=/[\x00-\x1f\x7f"<>`{}]/g;function Ct(e){return e.replace(St,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function wt(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 Ct(t)}var Tt=[`http:`,`https:`,`mailto:`,`tel:`];function Et(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function Dt(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+=wt(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=wt(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function Ot(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function kt(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 At(){throw Error(`Invariant failed`)}function jt(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 I=4,Mt=5;function Nt(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 Pt(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=Nt(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 Ft(e,t,n,r,i,a,o){o?.(n);let s=r;{let r=n.fullPath??n.from,o=r.length,c=n.options?.caseSensitive??e,l=n.options?.params?.parse??n.options?.parseParams;for(;s<o;){let e=Pt(r,s,t),o,u=s,d=e[5];switch(s=d+1,a++,e[0]){case 0:{let t=r.substring(e[2],e[3]);if(c){let e=i.static?.get(t);if(e)o=e;else{i.static??=new Map;let e=Lt(n.fullPath??n.from);e.parent=i,e.depth=a,o=e,i.static.set(t,e)}}else{let e=t.toLowerCase(),r=i.staticInsensitive?.get(e);if(r)o=r;else{i.staticInsensitive??=new Map;let t=Lt(n.fullPath??n.from);t.parent=i,t.depth=a,o=t,i.staticInsensitive.set(e,t)}}break}case 1:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.dynamic?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Rt(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Rt(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=Rt(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=Lt(n.fullPath??n.from);e.kind=Mt,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=Lt(n.fullPath??n.from);e.kind=I,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)Ft(e,t,r,s,i,a,o)}function It(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 L(e){if(e.pathless)for(let t of e.pathless)L(t);if(e.static)for(let t of e.static.values())L(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())L(t);if(e.dynamic?.length){e.dynamic.sort(It);for(let t of e.dynamic)L(t)}if(e.optional?.length){e.optional.sort(It);for(let t of e.optional)L(t)}if(e.wildcard?.length){e.wildcard.sort(It);for(let t of e.wildcard)L(t)}}function Lt(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 Rt(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 zt(e,t){let n=Lt(`/`),r=new Uint16Array(6);for(let t of e)Ft(!1,r,t,1,n,0);L(n),t.masksTree=n,t.flatCache=jt(1e3)}function Bt(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=Gt(e,t.masksTree);return t.flatCache.set(e,r),r}function Vt(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=Lt(`/`),Ft(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),Gt(r,o,n)}function Ht(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=Gt(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=qt(a.route)),t.matchCache.set(r,a),a}function Ut(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Wt(e,t=!1,n){let r=Lt(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return Ft(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&At(),a[e.id]=e,s!==0&&e.path){let t=Ut(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),L(r),{processedTree:{segmentTree:r,singleCache:jt(1e3),matchCache:jt(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function Gt(e,t,n=!1){let r=e.split(`/`),i=Yt(e,r,t,n);if(!i)return null;let[a]=Kt(e,r,i);return{route:i.node.route,rawParams:a}}function Kt(e,t,n){let r=Jt(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===I)break;if(u.kind===Mt){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 qt(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Jt(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Yt(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!st(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,depth:f,statics:p,dynamics:m,optionals:h}=n,{extract:g,rawParams:_}=n;if(i.kind===2&&i.route&&!$t(l,n))continue;if(i.parse){if(!Qt(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==I&&$t(c,n)&&(c=n);let v=u===o;if(v&&(i.route&&(!a||i.kind===I||i.kind===2)&&$t(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let y=v?void 0:t[u],b;if(v&&i.index){let n={node:i.index,index:u,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_},r=!0;if(i.index.parse&&(Qt(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&Zt(p,o))return n;$t(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&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)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,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<<f,t=f+1;for(let n=i.optional.length-1;n>=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+Xt(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)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?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+Xt(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Xt(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Xt(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}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 Xt(e,t){return 2**(e-t-1)}function Zt(e,t){return e===2**(t-1)-1}function Qt(e,t,n){let r,i;try{[r,i]=Kt(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 $t(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===I)>(e.node.kind===I)||t.node.kind===I==(e.node.kind===I)&&t.depth>e.depth)))}function en(e){return tn(e.filter(e=>e!==void 0).join(`/`))}function tn(e){return e.replace(/\/{2,}/g,`/`)}function nn(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function rn(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function an(e){return rn(nn(e))}function on(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function sn(e,t,n){return on(e,n)===on(t,n)}function cn({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&st(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.pop():r===`.`||s.push(r)}}s.length>1&&(st(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=tn(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function ln(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 un(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>fn(e,n)).join(`/`):fn(r,n):r}function dn({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=Pt(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=un(`_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=un(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=un(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function fn(e,t){let n=encodeURIComponent(e);return t?.(n)??n}var pn=`Error preloading route! ☝️`;function mn({children:e,fallback:t=null}){return(0,Ve.jsx)(M.Fragment,{children:hn()?e:t})}function hn(){return M.useSyncExternalStore(gn,()=>!0,()=>!1)}function gn(){return()=>{}}var _n=M.createContext(null);function vn(e){return M.useContext(_n)}var yn=o((e=>{var t=Re();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})),bn=o(((e,t)=>{t.exports=yn()})),xn=o((e=>{var t=Re(),n=bn();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}})),Sn=o(((e,t)=>{t.exports=xn()})),Cn=Sn();function wn(e,t){return e===t}function Tn(e,t,n=wn){let r=(0,M.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,M.useCallback)(()=>e?.get(),[e]);return(0,Cn.useSyncExternalStoreWithSelector)(r,i,i,t,n)}function En(e){let t=vn();return M.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}var Dn=o((e=>{var t=Re();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`})),On=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=Dn()})),kn=l(On(),1);function An(e,t){let n=vn(),r=ot(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=hn(),D=M.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),O=Tn(n.stores.location,e=>e,(e,t)=>e.href===t.href),k=M.useMemo(()=>{let e={_fromLocation:O,...D};return n.buildLocation(e)},[n,O,D]),fe=k.maskedLocation?k.maskedLocation.publicHref:k.publicHref,pe=k.maskedLocation?k.maskedLocation.external:k.external,me=M.useMemo(()=>zn(fe,pe,n.history,v),[v,pe,fe,n.history]),A=M.useMemo(()=>{if(me?.external)return Et(me.href,n.protocolAllowlist)?void 0:me.href;if(!Bn(s)&&typeof s==`string`&&s.indexOf(`:`)!==-1)try{return new URL(s),Et(s,n.protocolAllowlist)?void 0:s}catch{}},[s,me,n.protocolAllowlist]),he=M.useMemo(()=>{if(A)return!1;if(o?.exact){if(!sn(O.pathname,k.pathname,n.basepath))return!1}else{let e=on(O.pathname,n.basepath),t=on(k.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(o?.includeSearch??!0)&&!bt(O.search,k.search,{partial:!o?.exact,ignoreUndefined:!o?.explicitUndefined})?!1:!o?.includeHash||de&&O.hash===k.hash},[o?.exact,o?.explicitUndefined,o?.includeHash,o?.includeSearch,O,A,de,k.hash,k.pathname,k.search,n.basepath]),ge=he?lt(i,{})??Mn:jn,_e=he?jn:lt(a,{})??jn,ve=[b,ge.className,_e.className].filter(Boolean).join(` `),ye=(y||ge.style||_e.style)&&{...y,...ge.style,..._e.style},[be,xe]=M.useState(!1),Se=M.useRef(!1),Ce=e.reloadDocument||A?!1:c??n.options.defaultPreload,we=l??n.options.defaultPreloadDelay??0,j=M.useCallback(()=>{n.preloadRoute({...D,_builtLocation:k}).catch(e=>{console.warn(e),console.warn(pn)})},[n,D,k]);at(r,M.useCallback(e=>{e?.isIntersecting&&j()},[j]),Ln,{disabled:!!v||Ce!==`viewport`}),M.useEffect(()=>{Se.current||!v&&Ce===`render`&&(j(),Se.current=!0)},[v,j,Ce]);let Te=e=>{let t=e.currentTarget.getAttribute(`target`),r=_===void 0?t:_;if(!v&&!Hn(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,kn.flushSync)(()=>{xe(!0)});let t=n.subscribe(`onResolved`,()=>{t(),xe(!1)});n.navigate({...D,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:ee})}};if(A)return{...ue,ref:r,href:A,...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 Ee=e=>{if(v||Ce!==`intent`)return;if(!we){j();return}let t=e.currentTarget;if(In.has(t))return;let n=setTimeout(()=>{In.delete(t),j()},we);In.set(t,n)},De=e=>{v||Ce!==`intent`||j()},Oe=e=>{if(v||!Ce||!we)return;let t=e.currentTarget,n=In.get(t);n&&(clearTimeout(n),In.delete(t))};return{...ue,...ge,..._e,href:me?.href,ref:r,onClick:Rn([x,Te]),onBlur:Rn([S,Oe]),onFocus:Rn([C,Ee]),onMouseEnter:Rn([w,Ee]),onMouseLeave:Rn([T,Oe]),onTouchStart:Rn([E,De]),disabled:!!v,target:_,...ye&&{style:ye},...ve&&{className:ve},...v&&Nn,...he&&Pn,...de&&be&&Fn}}var jn={},Mn={className:`active`},Nn={role:`link`,"aria-disabled":!0},Pn={"data-status":`active`,"aria-current":`page`},Fn={"data-transitioning":`transitioning`},In=new WeakMap,Ln={rootMargin:`100px`},Rn=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function zn(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function Bn(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Vn=M.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=An(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return M.createElement(`a`,t,o)}return M.createElement(n,a,o)});function Hn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var R=`-ms-`,Un=`-moz-`,z=`-webkit-`,Wn=`comm`,Gn=`rule`,Kn=`decl`,qn=`@import`,Jn=`@namespace`,Yn=`@keyframes`,Xn=`@layer`,Zn=Math.abs,Qn=String.fromCharCode,$n=Object.assign;function er(e,t){return H(e,0)^45?(((t<<2^H(e,0))<<2^H(e,1))<<2^H(e,2))<<2^H(e,3):0}function tr(e){return e.trim()}function B(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,n){return e.replace(t,n)}function nr(e,t,n){return e.indexOf(t,n)}function H(e,t){return e.charCodeAt(t)|0}function rr(e,t,n){return e.slice(t,n)}function U(e){return e.length}function ir(e){return e.length}function ar(e,t){return t.push(e),e}function or(e,t){return e.map(t).join(``)}function sr(e,t){return e.filter(function(e){return!B(e,t)})}var cr=1,lr=1,ur=0,W=0,G=0,dr=``;function fr(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:cr,column:lr,length:o,return:``,siblings:s}}function K(e,t){return $n(fr(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function pr(e){for(;e.root;)e=K(e.root,{children:[e]});ar(e,e.siblings)}function mr(){return G}function hr(){return G=W>0?H(dr,--W):0,lr--,G===10&&(lr=1,cr--),G}function q(){return G=W<ur?H(dr,W++):0,lr++,G===10&&(lr=1,cr++),G}function J(){return H(dr,W)}function gr(){return W}function _r(e,t){return rr(dr,e,t)}function vr(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 yr(e){return cr=lr=1,ur=U(dr=e),W=0,[]}function br(e){return dr=``,e}function xr(e){return tr(_r(W-1,wr(e===91?e+2:e===40?e+1:e)))}function Sr(e){for(;(G=J())&&G<33;)q();return vr(e)>2||vr(G)>3?``:` `}function Cr(e,t){for(;--t&&q()&&!(G<48||G>102||G>57&&G<65||G>70&&G<97););return _r(e,gr()+(t<6&&J()==32&&q()==32))}function wr(e){for(;q();)switch(G){case e:return W;case 34:case 39:e!==34&&e!==39&&wr(G);break;case 40:e===41&&wr(e);break;case 92:q();break}return W}function Tr(e,t){for(;q()&&e+G!==57&&(e+G!==84||J()!==47););return`/*`+_r(t,W-1)+`*`+Qn(e===47?e:q())}function Er(e){for(;!vr(J());)q();return _r(e,W)}function Dr(e){return br(Or(``,null,null,null,[``],e=yr(e),0,[0],e))}function Or(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=q()){case 40:if(m!=108&&H(C,d-1)==58){nr(C+=V(xr(v),`&`,`&\f`),`&\f`,Zn(l?s[l-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:C+=xr(v);break;case 9:case 10:case 13:case 32:C+=Sr(m);break;case 92:C+=Cr(gr()-1,7);continue;case 47:switch(J()){case 42:case 47:ar(Ar(Tr(q(),gr()),t,n,c),c),(vr(m||1)==5||vr(J()||1)==5)&&U(C)&&rr(C,-1,void 0)!==` `&&(C+=` `);break;default:C+=`/`}break;case 123*h:s[l++]=U(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=V(C,/\f/g,``)),p>0&&(U(C)-d||h===0&&m===47)&&ar(p>32?jr(C+`;`,r,n,d-1,c):jr(V(C,` `,``)+`;`,r,n,d-2,c),c);break;case 59:C+=`;`;default:if(ar(S=kr(C,t,n,l,u,i,s,y,b=[],x=[],d,a),a),v===123)if(u===0)Or(C,t,S,S,b,a,d,s,x);else{switch(f){case 99:if(H(C,3)===110)break;case 108:if(H(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Or(e,S,S,r&&ar(kr(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x):Or(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+U(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&hr()==125)continue}switch(C+=Qn(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(U(C)-1)*_,_=1;break;case 64:J()===45&&(C+=xr(q())),f=J(),u=d=U(y=C+=Er(gr())),v++;break;case 45:m===45&&U(C)==2&&(h=0)}}return a}function kr(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=ir(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=rr(e,f+1,f=Zn(g=o[h])),b=e;v<m;++v)(b=tr(g>0?p[v]+` `+y:V(y,/&\f/g,p[v])))&&(c[_++]=b);return fr(e,t,n,i===0?Gn:s,c,l,u,d)}function Ar(e,t,n,r){return fr(e,t,n,Wn,Qn(mr()),rr(e,2,-2),0,r)}function jr(e,t,n,r,i){return fr(e,t,n,Kn,rr(e,0,r),rr(e,r+1,-1),r,i)}function Mr(e,t,n){switch(er(e,t)){case 5103:return z+`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 z+e+e;case 4855:return z+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return Un+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+Un+e+R+e+e;case 5936:switch(H(e,t+11)){case 114:return z+e+R+V(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return z+e+R+V(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return z+e+R+V(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return z+e+R+e+e;case 6165:return z+e+R+`flex-`+e+e;case 5187:return z+e+V(e,/(\w+).+(:[^]+)/,z+`box-$1$2`+R+`flex-$1$2`)+e;case 5443:return z+e+R+`flex-item-`+V(e,/flex-|-self/g,``)+(B(e,/flex-|baseline/)?``:R+`grid-row-`+V(e,/flex-|-self/g,``))+e;case 4675:return z+e+R+`flex-line-pack`+V(e,/align-content|flex-|-self/g,``)+e;case 5548:return z+e+R+V(e,`shrink`,`negative`)+e;case 5292:return z+e+R+V(e,`basis`,`preferred-size`)+e;case 6060:return z+`box-`+V(e,`-grow`,``)+z+e+R+V(e,`grow`,`positive`)+e;case 4554:return z+V(e,/([^-])(transform)/g,`$1`+z+`$2`)+e;case 6187:return V(V(V(e,/(zoom-|grab)/,z+`$1`),/(image-set)/,z+`$1`),e,``)+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,z+`box-pack:$3`+R+`flex-pack:$3`),/space-between/,`justify`)+z+e+e;case 4200:if(!B(e,/flex-|baseline/))return R+`grid-column-align`+rr(e,t)+e;break;case 2592:case 3360:return R+V(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,B(e.props,/grid-\w+-end/)})?~nr(e+(n=n[t].value),`span`,0)?e:R+V(e,`-start`,``)+e+R+`grid-row-span:`+(~nr(n,`span`,0)?B(n,/\d+/):B(n,/\d+/)-+B(e,/\d+/))+`;`:R+V(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return B(e.props,/grid-\w+-start/)})?e:R+V(V(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,z+`$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(U(e)-1-t>6)switch(H(e,t+1)){case 109:if(H(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,`$1`+z+`$2-$3$1`+Un+(H(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~nr(e,`stretch`,0)?Mr(V(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return V(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return R+n+`:`+r+s+(i?R+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(H(e,t+6)===121)return V(e,`:`,`:`+z)+e;break;case 6444:switch(H(e,H(e,14)===45?18:11)){case 120:return V(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+z+(H(e,14)===45?`inline-`:``)+`box$3$1`+z+`$2$3$1`+R+`$2box$3`)+e;case 100:return V(e,`:`,`:`+R)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return V(e,`scroll-`,`scroll-snap-`)+e}return e}function Nr(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Pr(e,t,n,r){switch(e.type){case Xn:if(e.children.length)break;case qn:case Jn:case Kn:return e.return=e.return||e.value;case Wn:return``;case Yn:return e.return=e.value+`{`+Nr(e.children,r)+`}`;case Gn:if(!U(e.value=e.props.join(`,`)))return``}return U(n=Nr(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Fr(e){var t=ir(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 Ir(e){return function(t){t.root||(t=t.return)&&e(t)}}function Lr(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Kn:e.return=Mr(e.value,e.length,n);return;case Yn:return Nr([K(e,{value:V(e.value,`@`,`@`+z)})],r);case Gn:if(e.length)return or(n=e.props,function(t){switch(B(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:pr(K(e,{props:[V(t,/:(read-\w+)/,`:`+Un+`$1`)]})),pr(K(e,{props:[t]})),$n(e,{props:sr(n,r)});break;case`::placeholder`:pr(K(e,{props:[V(t,/:(plac\w+)/,`:`+z+`input-$1`)]})),pr(K(e,{props:[V(t,/:(plac\w+)/,`:`+Un+`$1`)]})),pr(K(e,{props:[V(t,/:(plac\w+)/,R+`input-$1`)]})),pr(K(e,{props:[t]})),$n(e,{props:sr(n,r)})}return``})}}var Y=typeof process<`u`&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||`data-styled`,Rr=`active`,zr=`data-styled-version`,Br=`6.5.1`,Vr=`/*!sc*/
2
+ `,Hr=typeof window<`u`&&typeof document<`u`;function Ur(e){if(typeof process<`u`){let t={}[e];if(t!==void 0&&t!==``)return t!==`false`}}var Wr=!!(typeof SC_DISABLE_SPEEDY==`boolean`?SC_DISABLE_SPEEDY:Ur(`REACT_APP_SC_DISABLE_SPEEDY`)??Ur(`SC_DISABLE_SPEEDY`)??(typeof process<`u`&&!1)),Gr=`sc-keyframes-`,Kr={};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 Jr=new Map,Yr=new Map,Xr=1,Zr=e=>{if(Jr.has(e))return Jr.get(e);for(;Yr.has(Xr);)Xr++;let t=Xr++;return Jr.set(e,t),Yr.set(t,e),t},Qr=e=>Yr.get(e),$r=(e,t)=>{Xr=t+1,Jr.set(e,t),Yr.set(t,e)},ei=Object.freeze([]),ti=Object.freeze({});function ni(e,t,n=ti){return e.theme!==n.theme&&e.theme||t||n.theme}var ri=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ii=/(^-|-$)/g;function ai(e){return e.replace(ri,`-`).replace(ii,``)}var oi=/(a)(d)/gi,si=e=>String.fromCharCode(e+(e>25?39:97));function ci(e){let t,n=``;for(t=Math.abs(e);t>52;t=t/52|0)n=si(t%52)+n;return(si(t%52)+n).replace(oi,`$1-$2`)}var li=5381,ui=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},di=e=>ui(li,e);function fi(e){return ci(di(e)>>>0)}function pi(e){return e.displayName||e.name||`Component`}function mi(e){return typeof e==`string`&&!0}function hi(e){return mi(e)?`styled.${e}`:`Styled(${pi(e)})`}var gi=Symbol.for(`react.memo`),_i=Symbol.for(`react.forward_ref`),vi={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},yi={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},bi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xi={[_i]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[gi]:bi};function Si(e){return(`type`in(t=e)&&t.type.$$typeof)===gi?bi:`$$typeof`in e?xi[e.$$typeof]:vi;var t}var Ci=Object.defineProperty,wi=Object.getOwnPropertyNames,Ti=Object.getOwnPropertySymbols,Ei=Object.getOwnPropertyDescriptor,Di=Object.getPrototypeOf,Oi=Object.prototype;function ki(e,t,n){if(typeof t!=`string`){let r=Di(t);r&&r!==Oi&&ki(e,r,n);let i=wi(t).concat(Ti(t)),a=Si(e),o=Si(t);for(let r=0;r<i.length;++r){let s=i[r];if(!(s in yi||n&&n[s]||o&&s in o||a&&s in a)){let n=Ei(t,s);try{Ci(e,s,n)}catch{}}}}return e}function Ai(e){return typeof e==`function`}var ji=Symbol.for(`react.forward_ref`);function Mi(e){return e!=null&&(typeof e==`object`||typeof e==`function`)&&e.$$typeof===ji&&`styledComponentId`in e}function Ni(e,t){return e&&t?e+` `+t:e||t||``}function Pi(e,t){return e.join(t||``)}function Fi(e){return typeof e==`object`&&!!e&&e.constructor.name===Object.name&&!(`props`in e&&e.$$typeof)}function Ii(e,t,n=!1){if(!n&&!Fi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Ii(e[n],t[n]);else if(Fi(t))for(let n in t)e[n]=Ii(e[n],t[n]);return e}function Li(e,t){Object.defineProperty(e,"toString",{value:t})}var Ri=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)+Vr;return t}},zi=`style[${Y}][${zr}="${Br}"]`,Bi=RegExp(`^${Y}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Vi=e=>typeof ShadowRoot<`u`&&e instanceof ShadowRoot||`host`in e&&e.nodeType===11,Hi=e=>{if(!e)return document;if(Vi(e))return e;if(`getRootNode`in e){let t=e.getRootNode();if(Vi(t))return t}return document},Ui=(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)},Wi=(e,t)=>{let n=(t.textContent??``).split(Vr),r=[];for(let t=0,i=n.length;t<i;t++){let i=n[t].trim();if(!i)continue;let a=i.match(Bi);if(a){let t=0|parseInt(a[1],10),n=a[2];t!==0&&($r(n,t),Ui(e,n,a[3]),e.getTag().insertRules(t,r)),r.length=0}else r.push(i)}},Gi=e=>{let t=Hi(e.options.target).querySelectorAll(zi);for(let n=0,r=t.length;n<r;n++){let r=t[n];r&&r.getAttribute(Y)!==Rr&&(Wi(e,r),r.parentNode&&r.parentNode.removeChild(r))}},Ki=!1;function qi(){if(!1!==Ki)return Ki;if(typeof document<`u`){let e=document.head.querySelector(`meta[property="csp-nonce"]`);if(e)return Ki=e.nonce||e.getAttribute(`content`)||void 0;let t=document.head.querySelector(`meta[name="sc-nonce"]`);if(t)return Ki=t.getAttribute(`content`)||void 0}return Ki=typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}var Ji=(e,t)=>{let n=document.head,r=e||n,i=document.createElement(`style`),a=(e=>{let t=Array.from(e.querySelectorAll(`style[${Y}]`));return t[t.length-1]})(r),o=a===void 0?null:a.nextSibling;i.setAttribute(Y,Rr),i.setAttribute(zr,Br);let s=t||qi();return s&&i.setAttribute(`nonce`,s),r.insertBefore(i,o),i},Yi=class{constructor(e,t){this.element=Ji(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:``}},Xi=class{constructor(e,t){this.element=Ji(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:``}},Zi=Hr,Qi={isServer:!Hr,useCSSOMInjection:!Wr},$i=class e{static registerId(e){return Zr(e)}constructor(e=ti,t={},n){this.options=Object.assign(Object.assign({},Qi),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Hr&&Zi&&(Zi=!1,Gi(this)),Li(this,()=>(e=>{let t=e.getTag(),{length:n}=t,r=``;for(let i=0;i<n;i++){let n=Qr(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=Y+`.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&&Hr&&Gi(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&&Hr&&t.target!==this.options.target&&Hi(this.options.target)!==Hi(t.target)&&Gi(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 Yi(t,n):new Xi(t,n))(this.options),new Ri(e));var e}hasNameForId(e,t){var n;return(n=this.names.get(e)?.has(t))!=null&&n}registerName(e,t){Zr(e),e.startsWith(Gr)&&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(Zr(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(Zr(e)),this.clearNames(e)}clearTag(){this.tag=void 0}},ea=new WeakSet,ta={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 na(e,t){return t==null||typeof t==`boolean`||t===``?``:typeof t!=`number`||t===0||e in ta||e.startsWith(`--`)?String(t).trim():t+`px`}var ra=47;function ia(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 aa=Symbol.for(`sc-keyframes`);function oa(e){return typeof e==`object`&&!!e&&aa in e}function sa(e){return Ai(e)&&!(e.prototype&&e.prototype.isReactComponent)}var ca=e=>e==null||!1===e||e===``,la=Symbol.for(`react.client.reference`);function ua(e){return e.$$typeof===la}function da(e,t){for(let n in e){let r=e[n];e.hasOwnProperty(n)&&!ca(r)&&(Array.isArray(r)&&ea.has(r)||Ai(r)?t.push(ia(n)+`:`,r,`;`):Fi(r)?(t.push(n+` {`),da(r,t),t.push(`}`)):t.push(ia(n)+`: `+na(n,r)+`;`))}}function fa(e,t,n,r,i=[]){if(ca(e))return i;let a=typeof e;if(a===`string`)return i.push(e),i;if(a===`function`)return ua(e)?i:sa(e)&&t?fa(e(t),t,n,r,i):(i.push(e),i);if(Array.isArray(e)){for(let a=0;a<e.length;a++)fa(e[a],t,n,r,i);return i}return Mi(e)?(i.push(`.${e.styledComponentId}`),i):oa(e)?(n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i):ua(e)?i:Fi(e)&&e.toString===Object.prototype.toString?(da(e,i),i):(i.push(e.toString()),i)}var pa=di(Br),ma=class{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=ui(pa,t),this.baseStyle=n,$i.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(sa(a)){let r=a(e);typeof r==`string`?i+=r:r!=null&&!1!==r&&(i+=Pi(fa(r,e,t,n)))}else i+=Pi(fa(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=ci(ui(ui(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=Ni(r,a)}}return r}},ha=/&/g;function ga(e,t){let n=0;for(;--t>=0&&e.charCodeAt(t)===92;)n++;return!(1&~n)}function _a(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!==ra||e.charCodeAt(c+1)!==42)if(o)l===42&&e.charCodeAt(c+1)===ra&&(o=!1,c++);else if(l!==34&&l!==39||ga(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 va(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`&&va(a.children,t)}return e}function ya({options:e=ti,plugins:t=ei}=ti){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(ha,r).replace(i,a))}),e.prefix&&o.push(Lr),o.push(Pr);let s=[],c=Fr(o.concat(Ir(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 _a(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||ga(e,o))if(s===0)if(t===ra&&o+1<r&&e.charCodeAt(o+1)===42){for(o+=2;o+1<r&&(e.charCodeAt(o)!==42||e.charCodeAt(o+1)!==ra);)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)===ra)i+=e.substring(a,o),o+=2,a=o,u=!0;else if(t===ra&&o+1<r&&e.charCodeAt(o+1)===ra){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:_a(i)):l===0?e:_a(e)}(t),d=Dr(o||a?o+` `+a+` { `+u+` }`:u);return e.namespace&&(d=va(d,e.namespace)),s=[],Nr(d,c),s},u=e,d=li;for(let e=0;e<t.length;e++)t[e].name||qr(15),d=ui(d,t[e].name);return u!=null&&u.namespace&&(d=ui(d,u.namespace)),u!=null&&u.prefix&&(d=ui(d,`p`)),l.hash=d===li?``:d.toString(),l}var ba=new $i,xa=ya(),Sa=M.createContext({shouldForwardProp:void 0,styleSheet:ba,stylis:xa,stylisPlugins:void 0});Sa.Consumer;function Ca(){return M.useContext(Sa)}var wa=M.createContext(void 0);wa.Consumer;function Ta(e){let t=M.useContext(wa),n=M.useMemo(()=>function(e,t){if(!e)throw qr(14);if(Ai(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?M.createElement(wa.Provider,{value:n},e.children):null}var Ea=Object.prototype.hasOwnProperty,Da={};function Oa(e,t){let n=typeof e==`string`?ai(e):`sc`;Da[n]=(Da[n]||0)+1;let r=n+`-`+fi(Br+n+Da[n]);return t?t+`-`+r:r}function ka(e,t,n){let r=Mi(e),i=e,a=!mi(e),{attrs:o=ei,componentId:s=Oa(t.displayName,t.parentComponentId),displayName:c=hi(e)}=t,l=t.displayName&&t.componentId?ai(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 ma(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=M.useContext(wa),u=Ca(),d=e.shouldForwardProp||u.shouldForwardProp,f=ni(t,l,a)||ti,p,m;{let e=M.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(Ea.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=Ai(a)?a(i?Object.assign({},r):r):a;for(let e in o)e===`className`?r.className=Ni(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=Ni(r.className,t.className)),r}(r,t,f),m=i.generateAndInjectStyles(p,u.styleSheet,u.stylis);let n=0;for(let e in t)Ea.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),_=Ni(o,s);return m&&(_+=` `+m),p.className&&(_+=` `+p.className),g[mi(h)&&h.includes(`-`)?`class`:`className`]=_,n&&(g.ref=n),(0,M.createElement)(h,g)}(m,e,t)}p.displayName=c;let m=M.forwardRef(p);return m.attrs=u,m.componentStyle=f,m.displayName=c,m.shouldForwardProp=d,m.foldedComponentIds=r?Ni(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)Ii(e,n,!0);return e}({},i.defaultProps,e):e}}),Li(m,()=>`.${m.styledComponentId}`),a&&ki(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),m}var Aa=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 ja(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 Ma=e=>(ea.add(e),e);function X(e,...t){if(Ai(e)||Fi(e))return Ma(fa(ja(ei,[e,...t])));let n=e;return t.length===0&&n.length===1&&typeof n[0]==`string`?fa(n):Ma(fa(ja(n,t)))}function Na(e,t,n=ti){if(!t)throw qr(1,t);let r=(r,...i)=>e(t,n,X(r,...i));return r.attrs=r=>Na(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>Na(e,t,Object.assign(Object.assign({},n),r)),r}var Pa=e=>Na(ka,e),Z=Pa;Aa.forEach(e=>{Z[e]=Pa(e)});var Fa=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(Ai(n)&&!Mi(n))return!1}return!0}(e),$i.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=Pi(fa(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 Ia(e,...t){let n=X(e,...t),r=`sc-global-${fi(JSON.stringify(n))}`,i=new Fa(n,r),a=e=>{let t=Ca(),n=M.useContext(wa),a;{let e=M.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=M.useRef(i);M.useLayoutEffect(()=>{t.styleSheet.server||(c.current!==i&&(t.styleSheet.clearRules(r),c.current=i),o(a,e,t.styleSheet,n,t.stylis))},s),M.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,Kr,n,o);else{let s=Object.assign(Object.assign({},t),{theme:ni(t,r,a.defaultProps)});i.renderStyles(e,s,n,o)}}return M.memo(a)}var La,Ra=class{constructor(e,t){this[La]=!0,this.inject=(e,t=xa)=>{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=Gr+e,this.rules=t,Zr(this.id),Li(this,()=>{throw qr(12,String(this.name))})}getName(e=xa){return e.hash?this.name+ci(e.hash>>>0):this.name}};function za(e,...t){let n=Pi(X(e,...t));return new Ra(fi(n),n)}La=aa,`${Y}`,`${Y}`,`${Y}`;var Ba={primary:X`
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:X`
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:X`
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:X`
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
+ `},Va={sm:X`
38
+ height: 24px;
39
+ padding: 0 ${({theme:e})=>e.space(2)};
40
+ font-size: 11px;
41
+ `,md:X`
42
+ height: 30px;
43
+ padding: 0 ${({theme:e})=>e.space(3)};
44
+ font-size: 13px;
45
+ `},Ha=Z.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})=>Va[e??`md`]}
61
+ ${({$variant:e})=>Ba[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
+ `,Ua=Z(Ha)`
73
+ padding: 0;
74
+ width: ${({$size:e})=>e===`sm`?`24px`:`30px`};
75
+ `,Wa=Z.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
+ `,Ga=Z.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
+ `;Z.span`
89
+ color: ${({theme:e})=>e.color.inkDim};
90
+ `;var Ka=Z.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=Z.div`
98
+ display: flex;
99
+ flex-direction: column;
100
+ gap: ${({theme:e,$gap:t})=>e.space(t??2)};
101
+ min-width: 0;
102
+ `,Ja=Z.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
+ `;Z.hr`
109
+ height: 1px;
110
+ border: 0;
111
+ margin: 0;
112
+ background: ${({theme:e})=>e.color.rule};
113
+ `;var Ya=Z.div`
114
+ flex: 1 1 auto;
115
+ min-width: 0;
116
+ `,Xa=Z.div`
117
+ overflow-x: auto;
118
+ overscroll-behavior-x: contain;
119
+ `,Za=Z.span`
120
+ overflow: hidden;
121
+ text-overflow: ellipsis;
122
+ white-space: nowrap;
123
+ min-width: 0;
124
+ `;Z.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
+ `,X`
134
+ animation: ${za`
135
+ 0%, 100% { opacity: 1; }
136
+ 50% { opacity: 0.35; }
137
+ `} 2.4s ease-in-out infinite;
138
+ `;var Qa=X`
139
+ background-image: repeating-linear-gradient(
140
+ to bottom,
141
+ var(--grid-line) 0 1px,
142
+ transparent 1px 4px
143
+ );
144
+ `,$a=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 eo(e){if(typeof e!=`object`||!e)return!1;let t=e.error;return typeof t!=`object`||!t?!1:typeof t.message==`string`}async function to(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=eo(a)?a.error.code??`INTERNAL`:`INTERNAL`,t=eo(a)?a.error.message:`request failed with status ${r.status}`;throw new $a(r.status,String(e),t)}return{status:r.status,data:a}}async function Q(e,t){return(await to(e,t===void 0?{}:{signal:t})).data}async function no(e,t){return(await to(e,{method:`POST`,...t===void 0?{}:{body:t}})).data}async function ro(e,t){return(await to(e,{method:`PUT`,body:t})).data}async function io(e,t){return(await to(e,{method:`PATCH`,body:t})).data}async function ao(e){return(await to(e,{method:`DELETE`})).data}function oo(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`],usage:e=>[`usage`,e.grain??`raw`,e.groupBy,e.splitBy??null,e.since,e.until??null],logs:e=>[`logs`,e]};function so(){return P({queryKey:$.status,queryFn:({signal:e})=>Q(`/api/status`,e),staleTime:3e4})}function co(){return P({queryKey:$.credentials,queryFn:async({signal:e})=>(await Q(`/api/credentials`,e)).credentials})}function lo(e=1e4){return P({queryKey:$.credentialHealth,queryFn:({signal:e})=>Q(`/api/credentials/health`,e),refetchInterval:e})}function uo(){return P({queryKey:$.models,queryFn:async({signal:e})=>(await Q(`/api/models`,e)).models})}function fo(){return P({queryKey:$.keys,queryFn:async({signal:e})=>(await Q(`/api/keys`,e)).keys})}function po(){return P({queryKey:$.settings,queryFn:async({signal:e})=>(await Q(`/api/settings`,e)).settings})}function mo(e,t=6e4){return P({queryKey:$.usage(e),queryFn:async({signal:t})=>(await Q(oo(`/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})}function ho(e=100,t=1e4){return P({queryKey:$.logs(e),queryFn:async({signal:t})=>(await Q(oo(`/api/logs`,{limit:e}),t)).logs,refetchInterval:t})}function go(){let e=N();return F({mutationFn:e=>no(`/api/login`,{password:e}),onSuccess:()=>e.invalidateQueries()})}function _o(){let e=N();return F({mutationFn:e=>no(`/api/setup`,{password:e}),onSuccess:()=>e.invalidateQueries()})}function vo(){let e=N();return F({mutationFn:()=>no(`/api/logout`),onSuccess:()=>{e.clear()}})}function yo(){let e=N();return F({mutationFn:({id:e,patch:t})=>io(`/api/credentials/${e}`,t),onSuccess:()=>{e.invalidateQueries({queryKey:$.credentials}),e.invalidateQueries({queryKey:$.credentialHealth})}})}function bo(){let e=N();return F({mutationFn:e=>ao(`/api/credentials/${e}`),onSuccess:()=>{e.invalidateQueries({queryKey:$.credentials}),e.invalidateQueries({queryKey:$.credentialHealth})}})}function xo(){let e=N();return F({mutationFn:e=>ro(`/api/models/${e.id}`,e),onSuccess:()=>e.invalidateQueries({queryKey:$.models})})}function So(){let e=N();return F({mutationFn:e=>ao(`/api/models/${e}`),onSuccess:()=>e.invalidateQueries({queryKey:$.models})})}function Co(){return F({mutationFn:({modelId:e,need:t})=>no(`/api/models/${e}/dry-run`,t)})}function wo(){let e=N();return F({mutationFn:e=>no(`/api/keys`,e),onSuccess:()=>e.invalidateQueries({queryKey:$.keys})})}function To(){let e=N();return F({mutationFn:e=>ao(`/api/keys/${e}`),onSuccess:()=>e.invalidateQueries({queryKey:$.keys})})}function Eo(){let e=N();return F({mutationFn:e=>ro(`/api/settings`,e),onSuccess:()=>e.invalidateQueries({queryKey:$.settings})})}function Do(){return F({mutationFn:e=>no(`/api/connect/start`,e)})}function Oo(){let e=N();return F({mutationFn:e=>no(`/api/connect/finish`,e),onSuccess:()=>e.invalidateQueries({queryKey:$.credentials})})}async function ko(e){let t=await to(`/api/connect/poll`,{method:`POST`,body:{flowId:e},accept:[202]});return t.status===202?{status:`pending`}:t.data}export{en as $,Xa as A,we as At,Z as B,b as Bt,mo as C,ht as Ct,Wa as D,Be as Dt,Ja as E,Ue as Et,Ha as F,w as Ft,Tn as G,s as Gt,Vn as H,d as Ht,Ua as I,C as It,_n as J,Sn as K,l as Kt,za as L,S as Lt,qa as M,A as Mt,Za as N,_ as Nt,Ga as O,Re as Ot,Qa as P,T as Pt,dn as Q,Ia as R,g as Rt,yo as S,mt as St,Q as T,it as Tt,On as U,u as Ut,Ta as V,ue as Vt,En as W,o as Wt,tn as X,mn as Y,ln as Z,xo as _,lt as _t,wo as a,Bt as at,_o as b,xt as bt,bo as c,zt as ct,fo as d,At as dt,cn as et,go as f,Tt as ft,To as g,Ot as gt,uo as h,bt as ht,Do as i,qt as it,Ya as j,he as jt,Ka as k,Pe as kt,So as l,Wt as lt,ho as m,Dt as mt,$ as n,nn as nt,lo as o,Ht as ot,vo as p,kt as pt,vn as q,Oo as r,rn as rt,co as s,Vt as st,ko as t,an as tt,Co as u,jt as ut,Eo as v,ft as vt,$a as w,rt as wt,so as x,st as xt,po as y,Et as yt,X as z,E as zt};
@@ -0,0 +1,26 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>OmniGateway</title>
7
+ <script type="module" crossorigin src="/assets/index-DnNTc35a.js"></script>
8
+ <link rel="modulepreload" crossorigin href="/assets/queries-vY5lJqBe.js">
9
+ <link rel="stylesheet" crossorigin href="/assets/index-Co2s5xMk.css">
10
+ </head>
11
+ <body>
12
+ <div id="root"></div>
13
+ <script>
14
+ (() => {
15
+ let mode = null;
16
+ try {
17
+ mode = localStorage.getItem("omni-theme");
18
+ } catch {}
19
+ const theme = mode === "light" || mode === "dark" || mode === "system" ? mode : "system";
20
+ const resolved = theme === "system" ? (matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light") : theme;
21
+ document.documentElement.classList.toggle("dark", resolved === "dark");
22
+ document.documentElement.dataset.theme = resolved;
23
+ })();
24
+ </script>
25
+ </body>
26
+ </html>