@prisma/studio-core 0.0.0-dev.202504121330 → 0.0.0-dev.202504121402
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.
- package/dist/CPIOZS5X-NALOZFPD.js +1 -0
- package/dist/OKF6E45R-6KC3BLVB.js +1 -0
- package/dist/chunk-5MNS4IJC.js +1332 -0
- package/dist/chunk-N2MLAUEV.js +1 -0
- package/dist/ui/index.cjs +1332 -1
- package/dist/ui/index.js +1 -1
- package/package.json +2 -1
package/dist/ui/index.cjs
CHANGED
|
@@ -1 +1,1332 @@
|
|
|
1
|
-
"use strict";var f=Object.defineProperty;var q=Object.getOwnPropertyDescriptor;var V=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var M=(t,e)=>{for(var r in e)f(t,r,{get:e[r],enumerable:!0})},Q=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of V(e))!B.call(t,o)&&o!==r&&f(t,o,{get:()=>e[o],enumerable:!(s=q(e,o))||s.enumerable});return t};var R=t=>Q(f({},"__esModule",{value:!0}),t);var W={};M(W,{Studio:()=>D});module.exports=R(W);var ue=require("../index-ESMXH6DI.css");var w=require("@radix-ui/react-slot");var C=require("@tanstack/react-query");var v=require("@tanstack/react-query"),T=require("nuqs/adapters/react"),m=require("react"),c=require("react/jsx-runtime"),U=new v.QueryClient,b=(0,m.createContext)(void 0);function P(t){let{children:e,...r}=t,[s,o]=(0,m.useState)(null);return(0,c.jsx)(v.QueryClientProvider,{client:U,children:(0,c.jsx)(T.NuqsAdapter,{children:(0,c.jsx)(b.Provider,{value:{...r,activeTable:s,setActiveTable:o},children:e})})})}function h(){let t=(0,m.useContext)(b);if(!t)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return t}var S=-1;function g(){let{adapter:t}=h();return(0,C.useQuery)({initialData:{schemas:{[t.defaultSchema||"db"]:{tables:{}}}},initialDataUpdatedAt:S,queryFn:async({signal:e})=>{let[r,s]=await t.introspect({abortSignal:e});if(r)throw r;return s},queryKey:["introspection"],staleTime:e=>e.state.dataUpdatedAt===S?0:1/0})}var y=require("clsx"),A=require("tailwind-merge");function x(...t){return(0,A.twMerge)((0,y.clsx)(t))}var i=require("react/jsx-runtime"),u=()=>{let{data:t}=g(),{activeTable:e,adapter:r,setActiveTable:s}=h();return(0,i.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0",children:(0,i.jsx)(u.Block,{label:"Tables",children:Object.values(t.schemas[r.defaultSchema||"db"].tables).map(o=>(0,i.jsx)(u.Item,{isActive:e===o,onClick:l=>{l.preventDefault(),e!==o&&s(o)},className:`ps-px-2 ps-py-1 ps-cursor-pointer ps-rounded ${e===o?"ps-bg-primary ps-text-white":"ps-hover:ps-bg-gray-100"}`,children:o.name},`${o.schema}-${o.name}`))})})},_=({className:t,label:e,children:r,...s})=>(0,i.jsxs)("div",{className:x("ps-rounded-lg ps-border ps-bg-card ps-text-card-foreground ps-shadow-xs",t),...s,children:[(0,i.jsx)("div",{className:"ps-pt-4 ps-pb-2 ps-px-4",children:(0,i.jsx)("h2",{className:"ps-text-sm ps-font-medium",children:e})}),(0,i.jsx)("nav",{"aria-label":e,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:r})]}),$=({className:t,asChild:e=!1,isActive:r,size:s,...o})=>(0,i.jsx)(e?w.Slot:"button",{"data-sidebar":"menu-button","data-size":s,"data-active":r,className:x("ps-py-1.5 ps-px-4 ps-text-sm ps-font-medium ps-flex ps-gap-2 ps-items-center ps-border ps-border-transparent ps-bg-transparent ps-hover:bg-muted/50",t),...o});u.Block=_;u.Item=$;var N=u;var n=require("react"),I=require("react/jsx-runtime"),z={theme:"system",setTheme:()=>null},H=(0,n.createContext)(z);function k({children:t,defaultTheme:e="system",storageKey:r="vite-ui-theme",...s}){let[o,l]=(0,n.useState)(()=>localStorage.getItem(r)||e);(0,n.useEffect)(()=>{let p=window.document.documentElement;if(p.classList.remove("light","dark"),o==="system"){let L=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";p.classList.add(L);return}p.classList.add(o)},[o]);let E={theme:o,setTheme:p=>{localStorage.setItem(r,p),l(p)}};return(0,I.jsx)(H.Provider,{...s,value:E,children:t})}var a=require("react/jsx-runtime");function D(t){let{adapter:e}=t;return e?(0,a.jsx)(k,{children:(0,a.jsx)(P,{adapter:e,children:(0,a.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-rounded-sm ps-bg-background ps-p-4 ps-relative",children:[(0,a.jsx)(N,{}),(0,a.jsx)("div",{className:"ps-flex ps-w-full ps-flex-col ps-border ps-rounded-lg"})]})})}):(console.error("No adapter provided to Studio component"),(0,a.jsx)("div",{children:"Error: No adapter provided"}))}0&&(module.exports={Studio});
|
|
1
|
+
"use strict";var Tc=Object.create;var gr=Object.defineProperty;var Ac=Object.getOwnPropertyDescriptor;var Pc=Object.getOwnPropertyNames;var Mc=Object.getPrototypeOf,Dc=Object.prototype.hasOwnProperty;var Dn=(e,t)=>()=>(e&&(t=e(e=0)),t);var io=(e,t)=>{for(var n in t)gr(e,n,{get:t[n],enumerable:!0})},Ei=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Pc(t))!Dc.call(e,o)&&o!==n&&gr(e,o,{get:()=>t[o],enumerable:!(r=Ac(t,o))||r.enumerable});return e};var Ti=(e,t,n)=>(n=e!=null?Tc(Mc(e)):{},Ei(t||!e||!e.__esModule?gr(n,"default",{value:e,enumerable:!0}):n,e)),Oc=e=>Ei(gr({},"__esModule",{value:!0}),e);var te=Dn(()=>{});function Ai(e){let t=String(e),n=t.length-1;return j.context.id+(n?String.fromCharCode(96+n):"")+t}function Qt(e){j.context=e}function Ic(){return{...j.context,id:j.getNextContextId(),count:0}}function dt(e,t){let n=oe,r=X,o=e.length===0,i=t===void 0?r:t,s=o?Vi:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=o?e:()=>e(()=>ue(()=>qt(s)));X=s,oe=null;try{return ze(a,!0)}finally{oe=n,X=r}}function q(e,t){t=t?Object.assign({},br,t):br;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(L&&L.running&&L.sources.has(n)?o=o(n.tValue):o=o(n.value)),Wi(n,o));return[Qi.bind(n),r]}function wr(e,t,n){let r=kr(e,t,!0,Ke);hn&&L&&L.running?xe.push(r):mn(r)}function K(e,t,n){let r=kr(e,t,!1,Ke);hn&&L&&L.running?xe.push(r):mn(r)}function V(e,t,n){Ki=Bc;let r=kr(e,t,!1,Ke),o=Ln&&Ce(Ln);o&&(r.suspense=o),(!n||!n.render)&&(r.user=!0),De?De.push(r):mn(r)}function S(e,t,n){n=n?Object.assign({},br,n):br;let r=kr(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,hn&&L&&L.running?(r.tState=Ke,xe.push(r)):mn(r),Qi.bind(r)}function Lc(e){return e&&typeof e=="object"&&"then"in e}function qc(e,t,n){let r,o,i;r=!0,o=e,i={};let s=null,a=so,l=null,c=!1,d=!1,u="initialValue"in i,g=typeof r=="function"&&S(r),f=new Set,[h,p]=(i.storage||q)(i.initialValue),[y,v]=q(void 0),[b,w]=q(void 0,{equals:!1}),[x,C]=q(u?"ready":"unresolved");j.context&&(l=j.getNextContextId(),i.ssrLoadFrom==="initial"?a=i.initialValue:j.load&&j.has(l)&&(a=j.load(l)));function I(A,B,N,J){return s===A&&(s=null,J!==void 0&&(u=!0),(A===a||B===a)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(J,{value:B})),a=so,L&&A&&c?(L.promises.delete(A),c=!1,ze(()=>{L.running=!0,O(B,N)},!1)):O(B,N)),B}function O(A,B){ze(()=>{B===void 0&&p(()=>A),C(B!==void 0?"errored":u?"ready":"unresolved"),v(B);for(let N of f.keys())N.decrement();f.clear()},!1)}function F(){let A=Ln&&Ce(Ln),B=h(),N=y();if(N!==void 0&&!s)throw N;return oe&&!oe.user&&A&&wr(()=>{b(),s&&(A.resolved&&L&&c?L.promises.add(s):f.has(A)||(A.increment(),f.add(A)))}),B}function $(A=!0){if(A!==!1&&d)return;d=!1;let B=g?g():r;if(c=L&&L.running,B==null||B===!1){I(s,ue(h));return}L&&s&&L.promises.delete(s);let N=a!==so?a:ue(()=>o(B,{value:h(),refetching:A}));return Lc(N)?(s=N,"value"in N?(N.status==="success"?I(s,N.value,void 0,B):I(s,void 0,co(N.value),B),N):(d=!0,queueMicrotask(()=>d=!1),ze(()=>{C(u?"refreshing":"pending"),w()},!1),N.then(J=>I(N,J,void 0,B),J=>I(N,void 0,co(J),B)))):(I(s,N,void 0,B),N)}return Object.defineProperties(F,{state:{get:()=>x()},error:{get:()=>y()},loading:{get(){let A=x();return A==="pending"||A==="refreshing"}},latest:{get(){if(!u)return F();let A=y();if(A&&!s)throw A;return h()}}}),g?wr(()=>$(!1)):$(!1),[F,{refetch:$,mutate:p}]}function Ui(e){return ze(e,!1)}function ue(e){if(!fn&&oe===null)return e();let t=oe;oe=null;try{return fn?fn.untrack(e):e()}finally{oe=t}}function ft(e,t,n){let r=Array.isArray(e),o,i=n&&n.defer;return s=>{let a;if(r){a=Array(e.length);for(let c=0;c<e.length;c++)a[c]=e[c]()}else a=e();if(i)return i=!1,s;let l=ue(()=>t(a,o,s));return o=a,l}}function $t(e){V(()=>ue(e))}function H(e){return X===null||(X.cleanups===null?X.cleanups=[e]:X.cleanups.push(e)),e}function xr(){return X}function _c(e,t){let n=X,r=oe;X=e,oe=null;try{return ze(t,!0)}catch(o){Er(o)}finally{X=n,oe=r}}function Gi(e){if(L&&L.running)return e(),L.done;let t=oe,n=X;return Promise.resolve().then(()=>{oe=t,X=n;let r;return(hn||Ln)&&(r=L||(L={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),r.done||(r.done=new Promise(o=>r.resolve=o)),r.running=!0),ze(e,!1),oe=X=null,r?r.done:void 0})}function Hi(){return[Rc,Gi]}function Ee(e,t){let n=Symbol("context");return{id:n,Provider:Kc(n),defaultValue:e}}function Ce(e){let t;return X&&X.context&&(t=X.context[e.id])!==void 0?t:e.defaultValue}function ji(e){let t=S(e),n=S(()=>uo(t()));return n.toArray=()=>{let r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}function Qi(){let e=L&&L.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===Ke)mn(this);else{let t=xe;xe=null,ze(()=>Cr(this),!1),xe=t}if(oe){let t=this.observers?this.observers.length:0;oe.sources?(oe.sources.push(this),oe.sourceSlots.push(t)):(oe.sources=[this],oe.sourceSlots=[t]),this.observers?(this.observers.push(oe),this.observerSlots.push(oe.sources.length-1)):(this.observers=[oe],this.observerSlots=[oe.sources.length-1])}return e&&L.sources.has(this)?this.tValue:this.value}function Wi(e,t,n){let r=L&&L.running&&L.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(L){let o=L.running;(o||!n&&L.sources.has(e))&&(L.sources.add(e),e.tValue=t),o||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&ze(()=>{for(let o=0;o<e.observers.length;o+=1){let i=e.observers[o],s=L&&L.running;s&&L.disposed.has(i)||((s?!i.tState:!i.state)&&(i.pure?xe.push(i):De.push(i),i.observers&&Xi(i)),s?i.tState=Ke:i.state=Ke)}if(xe.length>1e6)throw xe=[],new Error},!1)}return t}function mn(e){if(!e.fn)return;qt(e);let t=$r;Di(e,L&&L.running&&L.sources.has(e)?e.tValue:e.value,t),L&&!L.running&&L.sources.has(e)&&queueMicrotask(()=>{ze(()=>{L&&(L.running=!0),oe=X=e,Di(e,e.tValue,t),oe=X=null},!1)})}function Di(e,t,n){let r,o=X,i=oe;oe=X=e;try{r=e.fn(t)}catch(s){return e.pure&&(L&&L.running?(e.tState=Ke,e.tOwned&&e.tOwned.forEach(qt),e.tOwned=void 0):(e.state=Ke,e.owned&&e.owned.forEach(qt),e.owned=null)),e.updatedAt=n+1,Er(s)}finally{oe=i,X=o}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Wi(e,r,!0):L&&L.running&&e.pure?(L.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function kr(e,t,n,r=Ke,o){let i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:X,context:X?X.context:null,pure:n};if(L&&L.running&&(i.state=0,i.tState=r),X===null||X!==Vi&&(L&&L.running&&X.pure?X.tOwned?X.tOwned.push(i):X.tOwned=[i]:X.owned?X.owned.push(i):X.owned=[i]),fn&&i.fn){let[s,a]=q(void 0,{equals:!1}),l=fn.factory(i.fn,a);H(()=>l.dispose());let c=()=>Gi(a).then(()=>d.dispose()),d=fn.factory(i.fn,c);i.fn=u=>(s(),L&&L.running?d.track(u):l.track(u))}return i}function qn(e){let t=L&&L.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===Fn)return Cr(e);if(e.suspense&&ue(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<$r);){if(t&&L.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let o=e,i=n[r+1];for(;(o=o.owner)&&o!==i;)if(L.disposed.has(o))return}if((t?e.tState:e.state)===Ke)mn(e);else if((t?e.tState:e.state)===Fn){let o=xe;xe=null,ze(()=>Cr(e,n[0]),!1),xe=o}}}function ze(e,t){if(xe)return e();let n=!1;t||(xe=[]),De?n=!0:De=[],$r++;try{let r=e();return zc(n),r}catch(r){n||(De=null),xe=null,Er(r)}}function zc(e){if(xe&&(hn&&L&&L.running?Nc(xe):Yi(xe),xe=null),e)return;let t;if(L){if(!L.promises.size&&!L.queue.size){let r=L.sources,o=L.disposed;De.push.apply(De,L.effects),t=L.resolve;for(let i of De)"tState"in i&&(i.state=i.tState),delete i.tState;L=null,ze(()=>{for(let i of o)qt(i);for(let i of r){if(i.value=i.tValue,i.owned)for(let s=0,a=i.owned.length;s<a;s++)qt(i.owned[s]);i.tOwned&&(i.owned=i.tOwned),delete i.tValue,delete i.tOwned,i.tState=0}Mi(!1)},!1)}else if(L.running){L.running=!1,L.effects.push.apply(L.effects,De),De=null,Mi(!0);return}}let n=De;De=null,n.length&&ze(()=>Ki(n),!1),t&&t()}function Yi(e){for(let t=0;t<e.length;t++)qn(e[t])}function Nc(e){for(let t=0;t<e.length;t++){let n=e[t],r=L.queue;r.has(n)||(r.add(n),hn(()=>{r.delete(n),ze(()=>{L.running=!0,qn(n)},!1),L&&(L.running=!1)}))}}function Bc(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:qn(r)}if(j.context){if(j.count){j.effects||(j.effects=[]),j.effects.push(...e.slice(0,n));return}Qt()}for(j.effects&&(j.done||!j.count)&&(e=[...j.effects,...e],n+=j.effects.length,delete j.effects),t=0;t<n;t++)qn(e[t])}function Cr(e,t){let n=L&&L.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let o=e.sources[r];if(o.sources){let i=n?o.tState:o.state;i===Ke?o!==t&&(!o.updatedAt||o.updatedAt<$r)&&qn(o):i===Fn&&Cr(o,t)}}}function Xi(e){let t=L&&L.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=Fn:r.state=Fn,r.pure?xe.push(r):De.push(r),r.observers&&Xi(r))}}function qt(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){let i=o.pop(),s=n.observerSlots.pop();r<o.length&&(i.sourceSlots[s]=r,o[r]=i,n.observerSlots[r]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)qt(e.tOwned[t]);delete e.tOwned}if(L&&L.running&&e.pure)Zi(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)qt(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}L&&L.running?e.tState=0:e.state=0}function Zi(e,t){if(t||(e.tState=0,L.disposed.add(e)),e.owned)for(let n=0;n<e.owned.length;n++)Zi(e.owned[n])}function co(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Oi(e,t,n){try{for(let r of t)r(e)}catch(r){Er(r,n&&n.owner||null)}}function Er(e,t=X){let n=Pi&&t&&t.context&&t.context[Pi],r=co(e);if(!n)throw r;De?De.push({fn(){Oi(r,n,t)},state:Ke}):Oi(r,n,t)}function uo(e){if(typeof e=="function"&&!e.length)return uo(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=uo(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Kc(e,t){return function(r){let o;return K(()=>o=ue(()=>(X.context={...X.context,[e]:r.value},ji(()=>r.children))),void 0),o}}function Sr(e){for(let t=0;t<e.length;t++)e[t]()}function Vc(e,t,n={}){let r=[],o=[],i=[],s=0,a=t.length>1?[]:null;return H(()=>Sr(i)),()=>{let l=e()||[],c=l.length,d,u;return l[Bn],ue(()=>{let f,h,p,y,v,b,w,x,C;if(c===0)s!==0&&(Sr(i),i=[],r=[],o=[],s=0,a&&(a=[])),n.fallback&&(r=[fo],o[0]=dt(I=>(i[0]=I,n.fallback())),s=1);else if(s===0){for(o=new Array(c),u=0;u<c;u++)r[u]=l[u],o[u]=dt(g);s=c}else{for(p=new Array(c),y=new Array(c),a&&(v=new Array(c)),b=0,w=Math.min(s,c);b<w&&r[b]===l[b];b++);for(w=s-1,x=c-1;w>=b&&x>=b&&r[w]===l[x];w--,x--)p[x]=o[w],y[x]=i[w],a&&(v[x]=a[w]);for(f=new Map,h=new Array(x+1),u=x;u>=b;u--)C=l[u],d=f.get(C),h[u]=d===void 0?-1:d,f.set(C,u);for(d=b;d<=w;d++)C=r[d],u=f.get(C),u!==void 0&&u!==-1?(p[u]=o[d],y[u]=i[d],a&&(v[u]=a[d]),u=h[u],f.set(C,u)):i[d]();for(u=b;u<c;u++)u in p?(o[u]=p[u],i[u]=y[u],a&&(a[u]=v[u],a[u](u))):o[u]=dt(g);o=o.slice(0,s=c),r=l.slice(0)}return o});function g(f){if(i[u]=f,a){let[h,p]=q(u);return a[u]=p,t(l[u],h)}return t(l[u])}}}function Uc(e,t,n={}){let r=[],o=[],i=[],s=[],a=0,l;return H(()=>Sr(i)),()=>{let c=e()||[],d=c.length;return c[Bn],ue(()=>{if(d===0)return a!==0&&(Sr(i),i=[],r=[],o=[],a=0,s=[]),n.fallback&&(r=[fo],o[0]=dt(g=>(i[0]=g,n.fallback())),a=1),o;for(r[0]===fo&&(i[0](),i=[],r=[],o=[],a=0),l=0;l<d;l++)l<r.length&&r[l]!==c[l]?s[l](()=>c[l]):l>=r.length&&(o[l]=dt(u));for(;l<r.length;l++)i[l]();return a=s.length=i.length=d,r=c.slice(0),o=o.slice(0,a)});function u(g){i[l]=g;let[f,h]=q(c[l]);return s[l]=h,t(f,l)}}}function m(e,t){if(Gc&&j.context){let n=j.context;Qt(Ic());let r=ue(()=>e(t||{}));return Qt(n),r}return ue(()=>e(t||{}))}function hr(){return!0}function lo(e){return(e=typeof e=="function"?e():e)?e:{}}function Hc(){for(let e=0,t=this.length;e<t;++e){let n=this[e]();if(n!==void 0)return n}}function W(...e){let t=!1;for(let s=0;s<e.length;s++){let a=e[s];t=t||!!a&&vr in a,e[s]=typeof a=="function"?(t=!0,S(a)):a}if(Bi&&t)return new Proxy({get(s){for(let a=e.length-1;a>=0;a--){let l=lo(e[a])[s];if(l!==void 0)return l}},has(s){for(let a=e.length-1;a>=0;a--)if(s in lo(e[a]))return!0;return!1},keys(){let s=[];for(let a=0;a<e.length;a++)s.push(...Object.keys(lo(e[a])));return[...new Set(s)]}},go);let n={},r=Object.create(null);for(let s=e.length-1;s>=0;s--){let a=e[s];if(!a)continue;let l=Object.getOwnPropertyNames(a);for(let c=l.length-1;c>=0;c--){let d=l[c];if(d==="__proto__"||d==="constructor")continue;let u=Object.getOwnPropertyDescriptor(a,d);if(!r[d])r[d]=u.get?{enumerable:!0,configurable:!0,get:Hc.bind(n[d]=[u.get.bind(a)])}:u.value!==void 0?u:void 0;else{let g=n[d];g&&(u.get?g.push(u.get.bind(a)):u.value!==void 0&&g.push(()=>u.value))}}}let o={},i=Object.keys(r);for(let s=i.length-1;s>=0;s--){let a=i[s],l=r[a];l&&l.get?Object.defineProperty(o,a,l):o[a]=l?l.value:void 0}return o}function ne(e,...t){if(Bi&&vr in e){let o=new Set(t.length>1?t.flat():t[0]),i=t.map(s=>new Proxy({get(a){return s.includes(a)?e[a]:void 0},has(a){return s.includes(a)&&a in e},keys(){return s.filter(a=>a in e)}},go));return i.push(new Proxy({get(s){return o.has(s)?void 0:e[s]},has(s){return o.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!o.has(s))}},go)),i}let n={},r=t.map(()=>({}));for(let o of Object.getOwnPropertyNames(e)){let i=Object.getOwnPropertyDescriptor(e,o),s=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable,a=!1,l=0;for(let c of t)c.includes(o)&&(a=!0,s?r[l][o]=i.value:Object.defineProperty(r[l],o,i)),++l;a||(s?n[o]=i.value:Object.defineProperty(n,o,i))}return[...r,n]}function bo(e){let t,n,r=o=>{let i=j.context;if(i){let[a,l]=q();j.count||(j.count=0),j.count++,(n||(n=e())).then(c=>{!j.done&&Qt(i),j.count--,l(()=>c.default),Qt()}),t=a}else if(!t){let[a]=qc(()=>(n||(n=e())).then(l=>l.default));t=a}let s;return S(()=>(s=t())?ue(()=>{if(!i||j.done)return s(o);let a=j.context;Qt(i);let l=s(o);return Qt(a),l}):"")};return r.preload=()=>n||((n=e()).then(o=>t=()=>o.default),n),r}function Ve(){return j.context?j.getNextContextId():`cl-${jc++}`}function es(e){let t="fallback"in e&&{fallback:()=>e.fallback};return S(Vc(()=>e.each,e.children,t||void 0))}function ts(e){let t="fallback"in e&&{fallback:()=>e.fallback};return S(Uc(()=>e.each,e.children,t||void 0))}function U(e){let t=e.keyed,n=S(()=>e.when,void 0,void 0),r=t?n:S(n,void 0,{equals:(o,i)=>!o==!i});return S(()=>{let o=r();if(o){let i=e.children;return typeof i=="function"&&i.length>0?ue(()=>i(t?o:()=>{if(!ue(r))throw Ji("Show");return n()})):i}return e.fallback},void 0,void 0)}function ns(e){let t=ji(()=>e.children),n=S(()=>{let r=t(),o=Array.isArray(r)?r:[r],i=()=>{};for(let s=0;s<o.length;s++){let a=s,l=o[s],c=i,d=S(()=>c()?void 0:l.when,void 0,void 0),u=l.keyed?d:S(d,void 0,{equals:(g,f)=>!g==!f});i=()=>c()||(u()?[a,d,l]:void 0)}return i});return S(()=>{let r=n()();if(!r)return e.fallback;let[o,i,s]=r,a=s.children;return typeof a=="function"&&a.length>0?ue(()=>a(s.keyed?i():()=>{if(ue(n)()?.[0]!==o)throw Ji("Match");return i()})):a},void 0,void 0)}function Tr(e){return e}function Jc(e,t){let n=Zc[e];return typeof n=="object"?n[t]?n.$:void 0:n}function ru(e,t,n){let r=n.length,o=t.length,i=r,s=0,a=0,l=t[o-1].nextSibling,c=null;for(;s<o||a<i;){if(t[s]===n[a]){s++,a++;continue}for(;t[o-1]===n[i-1];)o--,i--;if(o===s){let d=i<r?a?n[a-1].nextSibling:n[i-a]:l;for(;a<i;)e.insertBefore(n[a++],d)}else if(i===a)for(;s<o;)(!c||!c.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[i-1]&&n[a]===t[o-1]){let d=t[--o].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--i],d),t[o]=n[i]}else{if(!c){c=new Map;let u=a;for(;u<i;)c.set(n[u],u++)}let d=c.get(t[s]);if(d!=null)if(a<d&&d<i){let u=s,g=1,f;for(;++u<o&&u<i&&!((f=c.get(t[u]))==null||f!==d+g);)g++;if(g>d-a){let h=t[s];for(;a<d;)e.insertBefore(n[a++],h)}else e.replaceChild(n[a++],t[s++])}else s++;else t[s++].remove()}}}function wo(e,t,n,r={}){let o;return dt(i=>{o=i,t===document?e():k(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}function z(e,t,n,r){let o,i=()=>{let a=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return a.innerHTML=e,n?a.content.firstChild.firstChild:r?a.firstChild:a.content.firstChild},s=t?()=>ue(()=>document.importNode(o||(o=i()),!0)):()=>(o||(o=i())).cloneNode(!0);return s.cloneNode=s,s}function Kn(e,t=window.document){let n=t[On]||(t[On]=new Set);for(let r=0,o=e.length;r<o;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,is))}}function os(e=window.document){if(e[On]){for(let t of e[On].keys())e.removeEventListener(t,is);delete e[On]}}function P(e,t,n){Yt(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function ou(e,t,n,r){Yt(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function iu(e,t,n){Yt(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function M(e,t){Yt(e)||(t==null?e.removeAttribute("class"):e.className=t)}function xo(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let o=n[0];e.addEventListener(t,n[0]=i=>o.call(e,n[1],i))}else e.addEventListener(t,n,typeof n!="function"&&n)}function su(e,t,n={}){let r=Object.keys(t||{}),o=Object.keys(n),i,s;for(i=0,s=o.length;i<s;i++){let a=o[i];!a||a==="undefined"||t[a]||(Ii(e,a,!1),delete n[a])}for(i=0,s=r.length;i<s;i++){let a=r[i],l=!!t[a];!a||a==="undefined"||n[a]===l||!l||(Ii(e,a,!0),n[a]=l)}return n}function lu(e,t,n){if(!t)return n?P(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}function Co(e,t={},n,r){let o={};return r||K(()=>o.children=_n(e,t.children,o.children)),K(()=>typeof t.ref=="function"&&Wt(t.ref,e)),K(()=>au(e,t,n,!0,o,!0)),o}function Wt(e,t,n){return ue(()=>e(t,n))}function k(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return _n(e,t,r,n);K(o=>_n(e,t(),o,n),r)}function au(e,t,n,r,o={},i=!1){t||(t={});for(let s in o)if(!(s in t)){if(s==="children")continue;o[s]=Fi(e,s,null,o[s],n,i,t)}for(let s in t){if(s==="children")continue;let a=t[s];o[s]=Fi(e,s,a,o[s],n,i,t)}}function cu(e){let t,n;return!Yt()||!(t=j.registry.get(n=du()))?e():(j.completed&&j.completed.add(t),j.registry.delete(n),t)}function Yt(e){return!!j.context&&!j.done&&(!e||e.isConnected)}function uu(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Ii(e,t,n){let r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function Fi(e,t,n,r,o,i,s){let a,l,c,d,u;if(t==="style")return lu(e,n,r);if(t==="classList")return su(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){let g=t.slice(3);r&&e.removeEventListener(g,r,typeof r!="function"&&r),n&&e.addEventListener(g,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){let g=t.slice(10);r&&e.removeEventListener(g,r,!0),n&&e.addEventListener(g,n,!0)}else if(t.slice(0,2)==="on"){let g=t.slice(2).toLowerCase(),f=eu.has(g);if(!f&&r){let h=Array.isArray(r)?r[0]:r;e.removeEventListener(g,h)}(f||n)&&(xo(e,g,n,f),f&&Kn([g]))}else if(t.slice(0,5)==="attr:")P(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")iu(e,t.slice(5),n);else if((u=t.slice(0,5)==="prop:")||(c=Yc.has(t))||!o&&((d=Jc(t,e.tagName))||(l=Wc.has(t)))||(a=e.nodeName.includes("-")||"is"in s)){if(u)t=t.slice(5),l=!0;else if(Yt(e))return n;t==="class"||t==="className"?M(e,n):a&&!l&&!c?e[uu(t)]=n:e[d||t]=n}else{let g=o&&t.indexOf(":")>-1&&nu[t.split(":")[0]];g?ou(e,g,t,n):P(e,Xc[t]||t,n)}return n}function is(e){if(j.registry&&j.events&&j.events.find(([l,c])=>c===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),s=()=>{let l=t[n];if(l&&!t.disabled){let c=t[`${n}Data`];if(c!==void 0?l.call(t,c,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},a=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),j.registry&&!j.done&&(j.done=_$HY.done=!0),e.composedPath){let l=e.composedPath();i(l[0]);for(let c=0;c<l.length-2&&(t=l[c],!!s());c++){if(t._$host){t=t._$host,a();break}if(t.parentNode===o)break}}else a();i(r)}function _n(e,t,n,r,o){let i=Yt(e);if(i){!n&&(n=[...e.childNodes]);let l=[];for(let c=0;c<n.length;c++){let d=n[c];d.nodeType===8&&d.data.slice(0,2)==="!$"?d.remove():l.push(d)}n=l}for(;typeof n=="function";)n=n();if(t===n)return n;let s=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,s==="string"||s==="number"){if(i||s==="number"&&(t=t.toString(),t===n))return n;if(a){let l=n[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),n=cn(e,n,r,l)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||s==="boolean"){if(i)return n;n=cn(e,n,r)}else{if(s==="function")return K(()=>{let l=t();for(;typeof l=="function";)l=l();n=_n(e,l,n,r)}),()=>n;if(Array.isArray(t)){let l=[],c=n&&Array.isArray(n);if(ho(l,t,n,o))return K(()=>n=_n(e,l,n,r,!0)),()=>n;if(i){if(!l.length)return n;if(r===void 0)return n=[...e.childNodes];let d=l[0];if(d.parentNode!==e)return n;let u=[d];for(;(d=d.nextSibling)!==r;)u.push(d);return n=u}if(l.length===0){if(n=cn(e,n,r),a)return n}else c?n.length===0?Li(e,l,r):ru(e,n,l):(n&&cn(e),Li(e,l));n=l}else if(t.nodeType){if(i&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=cn(e,n,r,t);cn(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function ho(e,t,n,r){let o=!1;for(let i=0,s=t.length;i<s;i++){let a=t[i],l=n&&n[e.length],c;if(!(a==null||a===!0||a===!1))if((c=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))o=ho(e,a,l)||o;else if(c==="function")if(r){for(;typeof a=="function";)a=a();o=ho(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||o}else e.push(a),o=!0;else{let d=String(a);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d))}}return o}function Li(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function cn(e,t,n,r){if(n===void 0)return e.textContent="";let o=r||document.createTextNode("");if(t.length){let i=!1;for(let s=t.length-1;s>=0;s--){let a=t[s];if(o!==a){let l=a.parentNode===e;!i&&!s?l?e.replaceChild(o,a):e.insertBefore(o,n):l&&a.remove()}else i=!0}}else e.insertBefore(o,n);return[o]}function du(){return j.getNextContextId()}function ss(e,t=!1){return t?document.createElementNS(fu,e):document.createElement(e)}function So(e){let{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,o=xr(),i,s=!!j.context;return V(()=>{s&&(xr().user=s=!1),i||(i=_c(o,()=>S(()=>e.children)));let a=r();if(a instanceof HTMLHeadElement){let[l,c]=q(!1),d=()=>c(!0);dt(u=>k(a,()=>l()?u():i(),null)),H(d)}else{let l=ss(e.isSVG?"g":"div",e.isSVG),c=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return n.parentNode},configurable:!0}),k(c,i),a.appendChild(l),e.ref&&e.ref(l),H(()=>a.removeChild(l))}},void 0,{render:!s}),n}function gu(e,t){let n=S(e);return S(()=>{let r=n();switch(typeof r){case"function":return ue(()=>r(t));case"string":let o=tu.has(r),i=j.context?cu():ss(r,o);return Co(i,t,o),i}})}function ls(e){let[,t]=ne(e,["component"]);return gu(()=>e.component,t)}function pu(e){if("values"in Object)return Object.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function yu(e,t){let n=pu(e);if("find"in n)return n.find(t);let r=n;for(let o=0;o<r.length;o++){let i=r[o];if(t(i))return i}}function gn(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function yr(e,t){return e.indexOf(t)!==-1}function qi(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}function ut(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}function Ar(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}function ms(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function bs(e){if(yr(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(yr(e,"prototype"))throw new Error("prototype is not allowed as a property");if(yr(e,"constructor"))throw new Error("constructor is not allowed as a property")}function yo(e,t,n=[]){if(!e)return;if(!_t(e)){gn(e,(i,s)=>yo(i,t,[...n,...In(s)]));return}let[r,o]=e;o&&gn(o,(i,s)=>{yo(i,t,[...n,...In(s)])}),t(r,n)}function qu(e,t,n){return yo(t,(r,o)=>{e=po(e,o,i=>Fu(i,r,n))}),e}function _u(e,t){function n(r,o){let i=Lu(e,In(o));r.map(In).forEach(s=>{e=po(e,s,()=>i)})}if(_t(t)){let[r,o]=t;r.forEach(i=>{e=po(e,In(i),()=>e)}),o&&gn(o,n)}else gn(t,n);return e}function zu(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t])}function Nu(e,t){let n={},r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(a=>a.map(String)).sort((a,l)=>a.length-l.length));let[i,...s]=o;i.length===0?r=s.map(ao):n[ao(i)]=s.map(ao)}),r?mo(n)?[r]:[r,n]:mo(n)?void 0:n}function xs(e){return Object.prototype.toString.call(e).slice(8,-1)}function zi(e){return xs(e)==="Array"}function Bu(e){if(xs(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Ku(e,t,n,r,o){let i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),o&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function vo(e,t={}){if(zi(e))return e.map(o=>vo(o,t));if(!Bu(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,i)=>{if(zi(t.props)&&!t.props.includes(i))return o;let s=e[i],a=vo(s,t);return Ku(o,i,a,e,t.nonenumerable),o},{})}function Xt(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function Ss(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function $s({queryState:e,observerCount:t,isStale:n}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":n?"yellow":"green":"gray"}function Zt({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function ks(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var j,Ni,Fc,vr,Bi,Bn,br,Pi,Ki,Ke,Fn,Vi,so,X,L,hn,fn,oe,xe,De,$r,Rc,Mi,Ln,fo,Gc,go,jc,Ji,rs,Qc,Wc,Yc,Xc,Zc,eu,tu,nu,On,Oe,fu,hu,as,mu,vu,bu,cs,wu,Rn,mo,_t,xu,Cu,Su,$u,zn,Nn,us,ku,Eu,_i,Tu,Au,Pu,Mu,Du,ds,ao,In,fs,gs,Ou,hs,ps,ys,Iu,Ri,vs,Fu,un,Lu,po,Ru,ws,Z,$o,Cs,Vn,mr,Vu,Es,Uu,Pr,pr,Ts,Gu,Mr,ko,Dr,Lt,dn,Eo,Un=Dn(()=>{"use strict";te();j={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Ai(this.context.count)},getNextContextId(){return Ai(this.context.count++)}};Ni=!1,Fc=(e,t)=>e===t,vr=Symbol("solid-proxy"),Bi=typeof Proxy=="function",Bn=Symbol("solid-track"),br={equals:Fc},Pi=null,Ki=Yi,Ke=1,Fn=2,Vi={owned:null,cleanups:null,context:null,owner:null},so={},X=null,L=null,hn=null,fn=null,oe=null,xe=null,De=null,$r=0;[Rc,Mi]=q(!1);fo=Symbol("fallback");Gc=!1;go={get(e,t,n){return t===vr?n:e.get(t)},has(e,t){return t===vr?!0:e.has(t)},set:hr,deleteProperty:hr,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:hr,deleteProperty:hr}},ownKeys(e){return e.keys()}};jc=0;Ji=e=>`Stale read from <${e}>.`;rs=void 0,Qc=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Wc=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Qc]),Yc=new Set(["innerHTML","textContent","innerText","children"]),Xc=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Zc=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});eu=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),tu=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","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","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),nu={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};On="_$DX_DELEGATE";Oe=!1,fu="http://www.w3.org/2000/svg";hu=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},as=class{constructor(e){this.generateIdentifier=e,this.kv=new hu}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},mu=class extends as{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};vu=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return yu(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},bu=e=>Object.prototype.toString.call(e).slice(8,-1),cs=e=>typeof e>"u",wu=e=>e===null,Rn=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,mo=e=>Rn(e)&&Object.keys(e).length===0,_t=e=>Array.isArray(e),xu=e=>typeof e=="string",Cu=e=>typeof e=="number"&&!isNaN(e),Su=e=>typeof e=="boolean",$u=e=>e instanceof RegExp,zn=e=>e instanceof Map,Nn=e=>e instanceof Set,us=e=>bu(e)==="Symbol",ku=e=>e instanceof Date&&!isNaN(e.valueOf()),Eu=e=>e instanceof Error,_i=e=>typeof e=="number"&&isNaN(e),Tu=e=>Su(e)||wu(e)||cs(e)||Cu(e)||xu(e)||us(e),Au=e=>typeof e=="bigint",Pu=e=>e===1/0||e===-1/0,Mu=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Du=e=>e instanceof URL,ds=e=>e.replace(/\./g,"\\."),ao=e=>e.map(String).map(ds).join("."),In=e=>{let t=[],n="";for(let o=0;o<e.length;o++){let i=e.charAt(o);if(i==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(i==="."){t.push(n),n="";continue}n+=i}let r=n;return t.push(r),t};fs=[ut(cs,"undefined",()=>null,()=>{}),ut(Au,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),ut(ku,"Date",e=>e.toISOString(),e=>new Date(e)),ut(Eu,"Error",(e,t)=>{let n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{let n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),ut($u,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),ut(Nn,"set",e=>[...e.values()],e=>new Set(e)),ut(zn,"map",e=>[...e.entries()],e=>new Map(e)),ut(e=>_i(e)||Pu(e),"number",e=>_i(e)?"NaN":e>0?"Infinity":"-Infinity",Number),ut(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),ut(Du,"URL",e=>e.toString(),e=>new URL(e))];gs=Ar((e,t)=>us(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{let r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Ou=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),hs=Ar(Mu,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let n=Ou[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});ps=Ar(ms,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};let r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{let r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),ys=Ar((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{let r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Iu=[ps,gs,ys,hs],Ri=(e,t)=>{let n=qi(Iu,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};let r=qi(fs,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},vs={};fs.forEach(e=>{vs[e.annotation]=e});Fu=(e,t,n)=>{if(_t(t))switch(t[0]){case"symbol":return gs.untransform(e,t,n);case"class":return ps.untransform(e,t,n);case"custom":return ys.untransform(e,t,n);case"typed-array":return hs.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{let r=vs[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},un=(e,t)=>{let n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};Lu=(e,t)=>{bs(t);for(let n=0;n<t.length;n++){let r=t[n];if(Nn(e))e=un(e,+r);else if(zn(e)){let o=+r,i=+t[++n]==0?"key":"value",s=un(e,o);switch(i){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[r]}return e},po=(e,t,n)=>{if(bs(t),t.length===0)return n(e);let r=e;for(let i=0;i<t.length-1;i++){let s=t[i];if(_t(r)){let a=+s;r=r[a]}else if(Rn(r))r=r[s];else if(Nn(r)){let a=+s;r=un(r,a)}else if(zn(r)){if(i===t.length-2)break;let l=+s,c=+t[++i]==0?"key":"value",d=un(r,l);switch(c){case"key":r=d;break;case"value":r=r.get(d);break}}}let o=t[t.length-1];if(_t(r)?r[+o]=n(r[+o]):Rn(r)&&(r[o]=n(r[o])),Nn(r)){let i=un(r,+o),s=n(i);i!==s&&(r.delete(i),r.add(s))}if(zn(r)){let i=+t[t.length-2],s=un(r,i);switch(+o==0?"key":"value"){case"key":{let l=n(s);r.set(l,r.get(s)),l!==s&&r.delete(s);break}case"value":{r.set(s,n(r.get(s)));break}}}return e};Ru=(e,t)=>Rn(e)||_t(e)||zn(e)||Nn(e)||ms(e,t);ws=(e,t,n,r,o=[],i=[],s=new Map)=>{let a=Tu(e);if(!a){zu(e,o,t);let f=s.get(e);if(f)return r?{transformedValue:null}:f}if(!Ru(e,n)){let f=Ri(e,n),h=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:e};return a||s.set(e,h),h}if(yr(i,e))return{transformedValue:null};let l=Ri(e,n),c=l?.value??e,d=_t(c)?[]:{},u={};gn(c,(f,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")throw new Error(`Detected property ${h}. This is a prototype pollution risk, please remove it from your object.`);let p=ws(f,t,n,r,[...o,h],[...i,e],s);d[h]=p.transformedValue,_t(p.annotations)?u[h]=p.annotations:Rn(p.annotations)&&gn(p.annotations,(y,v)=>{u[ds(h)+"."+v]=y})});let g=mo(u)?{transformedValue:d,annotations:l?[l.type]:void 0}:{transformedValue:d,annotations:l?[l.type,u]:u};return a||s.set(e,g),g};Z=class{constructor({dedupe:e=!1}={}){this.classRegistry=new mu,this.symbolRegistry=new as(t=>t.description??""),this.customTransformerRegistry=new vu,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,n=ws(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let o=Nu(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){let{json:t,meta:n}=e,r=vo(t);return n?.values&&(r=qu(r,n.values,this)),n?.referentialEqualities&&(r=_u(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};Z.defaultInstance=new Z;Z.serialize=Z.defaultInstance.serialize.bind(Z.defaultInstance);Z.deserialize=Z.defaultInstance.deserialize.bind(Z.defaultInstance);Z.stringify=Z.defaultInstance.stringify.bind(Z.defaultInstance);Z.parse=Z.defaultInstance.parse.bind(Z.defaultInstance);Z.registerClass=Z.defaultInstance.registerClass.bind(Z.defaultInstance);Z.registerSymbol=Z.defaultInstance.registerSymbol.bind(Z.defaultInstance);Z.registerCustom=Z.defaultInstance.registerCustom.bind(Z.defaultInstance);Z.allowErrorProps=Z.defaultInstance.allowErrorProps.bind(Z.defaultInstance);$o=Z.serialize;Z.deserialize;Cs=Z.stringify;Z.parse;Z.registerClass;Z.registerCustom;Z.registerSymbol;Z.allowErrorProps;Vn=(e,t=!1)=>{let{json:n}=$o(e);return JSON.stringify(n,null,t?2:void 0)},mr=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,Vu=(e,t)=>e.queryHash.localeCompare(t.queryHash),Es=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Uu=(e,t)=>mr(e)===mr(t)?Es(e,t):mr(e)>mr(t)?1:-1,Pr={status:Uu,"query hash":Vu,"last updated":Es},pr=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,Ts=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Gu=(e,t)=>pr(e)===pr(t)?Ts(e,t):pr(e)>pr(t)?1:-1,Mr={status:Gu,"last updated":Ts},ko=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),Dr=()=>{let[e,t]=q("dark");return $t(()=>{let n=window.matchMedia("(prefers-color-scheme: dark)");t(n.matches?"dark":"light");let r=o=>{t(o.matches?"dark":"light")};n.addEventListener("change",r),H(()=>n.removeEventListener("change",r))}),e},Lt=(e,t,n)=>{if(t.length===0)return n;if(e instanceof Map){let r=new Map(e);if(t.length===1)return r.set(t[0],n),r;let[o,...i]=t;return r.set(o,Lt(r.get(o),i,n)),r}if(e instanceof Set){let r=Lt(Array.from(e),t,n);return new Set(r)}if(Array.isArray(e)){let r=[...e];if(t.length===1)return r[t[0]]=n,r;let[o,...i]=t;return r[o]=Lt(r[o],i,n),r}if(e instanceof Object){let r={...e};if(t.length===1)return r[t[0]]=n,r;let[o,...i]=t;return r[o]=Lt(r[o],i,n),r}return e},dn=(e,t)=>{if(e instanceof Map){let n=new Map(e);if(t.length===1)return n.delete(t[0]),n;let[r,...o]=t;return n.set(r,dn(n.get(r),o)),n}if(e instanceof Set){let n=dn(Array.from(e),t);return new Set(n)}if(Array.isArray(e)){let n=[...e];if(t.length===1)return n.filter((i,s)=>s.toString()!==t[0]);let[r,...o]=t;return n[r]=dn(n[r],o),n}if(e instanceof Object){let n={...e};if(t.length===1)return delete n[t[0]],n;let[r,...o]=t;return n[r]=dn(n[r],o),n}return e},Eo=(e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;let r=document.createElement("style"),o=document.createTextNode("");r.appendChild(o),r.id="_goober",r.setAttribute("nonce",e),t?t.appendChild(r):document.head.appendChild(r)}});function Yu(e){return(...t)=>{for(let n of e)n&&n(...t)}}function Xu(e,...t){return typeof e=="function"?e(...t):e}function Ju(e,t,n,r){let o=e.length,i=t.length,s=0;if(!i){for(;s<o;s++)n(e[s]);return}if(!o){for(;s<i;s++)r(t[s]);return}for(;s<i&&t[s]===e[s];s++);let a,l;t=t.slice(s),e=e.slice(s);for(a of t)e.includes(a)||r(a);for(l of e)t.includes(l)||n(l)}function ed(e){let[t,n]=q(),r=e?.throw?(g,f)=>{throw n(g instanceof Error?g:new Error(f)),g}:(g,f)=>{n(g instanceof Error?g:new Error(f))},o=e?.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),i=e?.prefix?`${e.prefix}.`:"",s=new Map,a=new Proxy({},{get(g,f){let h=s.get(f);h||(h=q(void 0,{equals:!1}),s.set(f,h)),h[0]();let p=o.reduce((y,v)=>{if(y!==null||!v)return y;try{return v.getItem(`${i}${f}`)}catch(b){return r(b,`Error reading ${i}${f} from ${v.name}`),null}},null);return p!==null&&e?.deserializer?e.deserializer(p,f,e.options):p}}),l=(g,f,h)=>{let p=e?.serializer?e.serializer(f,g,h??e.options):f,y=`${i}${g}`;o.forEach(b=>{try{b.getItem(y)!==p&&b.setItem(y,p)}catch(w){r(w,`Error setting ${i}${g} to ${p} in ${b.name}`)}});let v=s.get(g);v&&v[1]()},c=g=>o.forEach(f=>{try{f.removeItem(`${i}${g}`)}catch(h){r(h,`Error removing ${i}${g} from ${f.name}`)}}),d=()=>o.forEach(g=>{try{g.clear()}catch(f){r(f,`Error clearing ${g.name}`)}}),u=()=>{let g={},f=(h,p)=>{if(!g.hasOwnProperty(h)){let y=p&&e?.deserializer?e.deserializer(p,h,e.options):p;y&&(g[h]=y)}};return o.forEach(h=>{if(typeof h.getAll=="function"){let p;try{p=h.getAll()}catch(y){r(y,`Error getting all values from in ${h.name}`)}for(let y of p)f(y,p[y])}else{let p=0,y;try{for(;y=h.key(p++);)g.hasOwnProperty(y)||f(y,h.getItem(y))}catch(v){r(v,`Error getting all values from ${h.name}`)}}}),g};return e?.sync!==!1&&$t(()=>{let g=f=>{let h=!1;o.forEach(p=>{try{p!==f.storageArea&&f.key&&f.newValue!==p.getItem(f.key)&&(f.newValue?p.setItem(f.key,f.newValue):p.removeItem(f.key),h=!0)}catch(y){r(y,`Error synching api ${p.name} from storage event (${f.key}=${f.newValue})`)}}),h&&f.key&&s.get(f.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",g),H(()=>globalThis.removeEventListener("storage",g))):(o.forEach(f=>f.addEventListener?.("storage",g)),H(()=>o.forEach(f=>f.removeEventListener?.("storage",g))))}),[a,l,{clear:d,error:t,remove:c,toJSON:u}]}function G(){return Ce(tr)}function Ae(){return Ce(nr)}function ud(e){return e.replace(cd,t=>El[t])}function Ds(e,t,n){var r;if(n=n||{},n.threshold=(r=n.threshold)!=null?r:Be.MATCHES,!n.accessors){let s=Os(e,t,n);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:n.threshold,passed:s>=n.threshold}}let o=hd(e,n.accessors),i={rankedValue:e,rank:Be.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let s=0;s<o.length;s++){let a=o[s],l=Os(a.itemValue,t,n),{minRanking:c,maxRanking:d,threshold:u=n.threshold}=a.attributes;l<c&&l>=Be.MATCHES?l=c:l>d&&(l=d),l=Math.min(l,d),l>=u&&l>i.rank&&(i.rank=l,i.passed=!0,i.accessorIndex=s,i.accessorThreshold=u,i.rankedValue=a.itemValue)}return i}function Os(e,t,n){return e=Is(e,n),t=Is(t,n),t.length>e.length?Be.NO_MATCH:e===t?Be.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Be.EQUAL:e.startsWith(t)?Be.STARTS_WITH:e.includes(` ${t}`)?Be.WORD_STARTS_WITH:e.includes(t)?Be.CONTAINS:t.length===1?Be.NO_MATCH:dd(e).includes(t)?Be.ACRONYM:fd(e,t))}function dd(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(i=>{t+=i.substr(0,1)})}),t}function fd(e,t){let n=0,r=0;function o(l,c,d){for(let u=d,g=c.length;u<g;u++)if(c[u]===l)return n+=1,u+1;return-1}function i(l){let c=1/l,d=n/t.length;return Be.MATCHES+d*c}let s=o(t[0],e,0);if(s<0)return Be.NO_MATCH;r=s;for(let l=1,c=t.length;l<c;l++){let d=t[l];if(r=o(d,e,r),!(r>-1))return Be.NO_MATCH}let a=r-s;return i(a)}function Is(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=ud(e)),e}function gd(e,t){let n=t;typeof t=="object"&&(n=t.accessor);let r=n(e);return r==null?[]:Array.isArray(r)?r:[String(r)]}function hd(e,t){let n=[];for(let r=0,o=t.length;r<o;r++){let i=t[r],s=md(i),a=gd(e,i);for(let l=0,c=a.length;l<c;l++)n.push({itemValue:a[l],attributes:s})}return n}function md(e){return typeof e=="function"?Fs:{...Fs,...e}}function Y(e){let t=this||{},n=e.call?e(t.p):e;return wd(n.unshift?n.raw?xd(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,yd(t.target),t.g,t.o,t.k)}function Al(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Al(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function R(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Al(e))&&(r&&(r+=" "),r+=t);return r}function Cd(e,t){let n=ue(e);if(Oe){let u=n.slice();return()=>u}let{onChange:r}=t,o=new Set(t.appear?void 0:n),i=new WeakSet,[s,a]=q([],{equals:!1}),[l]=Hi(),c=u=>{a(g=>(g.push.apply(g,u),g));for(let g of u)i.delete(g)},d=(u,g,f)=>u.splice(f,0,g);return S(u=>{let g=s(),f=e();if(f[Bn],ue(l))return l(),u;if(g.length){let h=u.filter(p=>!g.includes(p));return g.length=0,r({list:h,added:[],removed:[],unchanged:h,finishRemoved:c}),h}return ue(()=>{let h=new Set(f),p=f.slice(),y=[],v=[],b=[];for(let x of f)(o.has(x)?b:y).push(x);let w=!y.length;for(let x=0;x<u.length;x++){let C=u[x];h.has(C)||(i.has(C)||(v.push(C),i.add(C)),d(p,C,x)),w&&C!==p[x]&&(w=!1)}return!v.length&&w?u:(r({list:p,added:y,removed:v,unchanged:b,finishRemoved:c}),o=h,p)})},t.appear?[]:n.slice())}function _e(...e){return Yu(e)}function Fo(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return Fo(e(),t);if(Array.isArray(e)){let n=[];for(let r of e){let o=Fo(r,t);o&&(Array.isArray(o)?n.push.apply(n,o):n.push(o))}return n.length?n:null}return null}function Sd(e,t=qs,n=qs){let r=S(e),o=S(()=>Fo(r(),Oe?n:t));return o.toArray=()=>{let i=o();return Array.isArray(i)?i:i?[i]:[]},o}function $d(e){return S(()=>{let t=e.name||"s";return{enterActive:(e.enterActiveClass||t+"-enter-active").split(" "),enter:(e.enterClass||t+"-enter").split(" "),enterTo:(e.enterToClass||t+"-enter-to").split(" "),exitActive:(e.exitActiveClass||t+"-exit-active").split(" "),exit:(e.exitClass||t+"-exit").split(" "),exitTo:(e.exitToClass||t+"-exit-to").split(" "),move:(e.moveClass||t+"-move").split(" ")}})}function Pl(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function kd(e,t,n,r){let{onBeforeEnter:o,onEnter:i,onAfterEnter:s}=t;o?.(n),n.classList.add(...e.enter),n.classList.add(...e.enterActive),queueMicrotask(()=>{if(!n.parentNode)return r?.();i?.(n,()=>a())}),Pl(()=>{n.classList.remove(...e.enter),n.classList.add(...e.enterTo),(!i||i.length<2)&&(n.addEventListener("transitionend",a),n.addEventListener("animationend",a))});function a(l){(!l||l.target===n)&&(n.removeEventListener("transitionend",a),n.removeEventListener("animationend",a),n.classList.remove(...e.enterActive),n.classList.remove(...e.enterTo),s?.(n))}}function Ed(e,t,n,r){let{onBeforeExit:o,onExit:i,onAfterExit:s}=t;if(!n.parentNode)return r?.();o?.(n),n.classList.add(...e.exit),n.classList.add(...e.exitActive),i?.(n,()=>a()),Pl(()=>{n.classList.remove(...e.exit),n.classList.add(...e.exitTo),(!i||i.length<2)&&(n.addEventListener("transitionend",a),n.addEventListener("animationend",a))});function a(l){(!l||l.target===n)&&(r?.(),n.removeEventListener("transitionend",a),n.removeEventListener("animationend",a),n.classList.remove(...e.exitActive),n.classList.remove(...e.exitTo),s?.(n))}}function Rs(e){for(let t of e)t.dispose()}function Td(e,t,n,r={}){if(Oe){let s=e(),a=[];if(s&&s.length)for(let l=0,c=s.length;l<c;l++)a.push(n(()=>s[l],()=>l));else r.fallback&&(a=[r.fallback()]);return()=>a}let o=new Map;return H(()=>Rs(o.values())),()=>{let s=e()||[];return s[Bn],ue(()=>{if(!s.length)return Rs(o.values()),o.clear(),r.fallback?[dt(u=>(o.set(To,{dispose:u}),r.fallback()))]:[];let a=new Array(s.length),l=o.get(To);if(!o.size||l){l?.dispose(),o.delete(To);for(let d=0;d<s.length;d++){let u=s[d],g=t(u,d);i(a,u,d,g)}return a}let c=new Set(o.keys());for(let d=0;d<s.length;d++){let u=s[d],g=t(u,d);c.delete(g);let f=o.get(g);f?(a[d]=f.mapped,f.setIndex?.(d),f.setItem(()=>u)):i(a,u,d,g)}for(let d of c)o.get(d)?.dispose(),o.delete(d);return a})};function i(s,a,l,c){dt(d=>{let[u,g]=q(a),f={setItem:g,dispose:d};if(n.length>1){let[h,p]=q(l);f.setIndex=p,f.mapped=n(u,h)}else f.mapped=n(u);o.set(c,f),s[l]=f.mapped})}}function Lr(e){let{by:t}=e;return S(Td(()=>e.each,typeof t=="function"?t:n=>n[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function Ad(e,t,n,r){return e.addEventListener(t,n,r),Zu(e.removeEventListener.bind(e,t,n,r))}function Pd(e,t,n,r){if(Oe)return;let o=()=>{Oo(T(e)).forEach(i=>{i&&Oo(T(t)).forEach(s=>Ad(i,s,n,r))})};typeof e=="function"?V(o):K(o)}function Md(e,t){if(Oe)return{observe:As,unobserve:As};let n=new ResizeObserver(e);return H(n.disconnect.bind(n)),{observe:r=>n.observe(r,t),unobserve:n.unobserve.bind(n)}}function Ml(e,t,n){if(Oe)return;let r=new WeakMap,{observe:o,unobserve:i}=Md(s=>{for(let a of s){let{contentRect:l,target:c}=a,d=Math.round(l.width),u=Math.round(l.height),g=r.get(c);(!g||g.width!==d||g.height!==u)&&(t(l,c,a),r.set(c,{width:d,height:u}))}},n);V(s=>{let a=Wu(Oo(T(e)));return Ju(a,s,o,i),a},[])}function zs(e){let t={},n;for(;n=Dd.exec(e);)t[n[1]]=n[2];return t}function Gr(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=zs(e)}else typeof t=="string"&&(t=zs(t));return{...e,...t}}function Od(e,t,n=-1){return n in e?[...e.slice(0,n),t,...e.slice(n)]:[...e,t]}function Lo(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Id(e){return typeof e=="number"}function yn(e){return Object.prototype.toString.call(e)==="[object String]"}function Fd(e){return typeof e=="function"}function rr(e){return t=>`${e()}-${t}`}function Ze(e,t){return e?e===t||e.contains(t):!1}function Qn(e,t=!1){let{activeElement:n}=ht(e);if(!n?.nodeName)return null;if(Dl(n)&&n.contentDocument)return Qn(n.contentDocument.body,t);if(t){let r=n.getAttribute("aria-activedescendant");if(r){let o=ht(n).getElementById(r);if(o)return o}}return n}function Ld(e){return ht(e).defaultView||window}function ht(e){return e?e.ownerDocument||e:document}function Dl(e){return e.tagName==="IFRAME"}function Ho(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Hr(){return Ho(/^Mac/i)}function qd(){return Ho(/^iPhone/i)}function _d(){return Ho(/^iPad/i)||Hr()&&navigator.maxTouchPoints>1}function Rd(){return qd()||_d()}function zd(){return Hr()||Rd()}function ye(e,t){return t&&(Fd(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function Te(e){return t=>{for(let n of e)ye(t,n)}}function Nd(e){return Hr()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function Fe(e){if(e)if(Bd())e.focus({preventScroll:!0});else{let t=Kd(e);e.focus(),Vd(t)}}function Bd(){if(Or==null){Or=!1;try{document.createElement("div").focus({get preventScroll(){return Or=!0,!0}})}catch{}}return Or}function Kd(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Vd(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Il(e,t){let r=Array.from(e.querySelectorAll(jo)).filter(Ns);return t&&Ns(e)&&r.unshift(e),r.forEach((o,i)=>{if(Dl(o)&&o.contentDocument){let s=o.contentDocument.body,a=Il(s,!1);r.splice(i,1,...a)}}),r}function Ns(e){return Fl(e)&&!Hd(e)}function Fl(e){return e.matches(jo)&&Qo(e)}function Hd(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Qo(e,t){return e.nodeName!=="#comment"&&jd(e)&&Qd(e,t)&&(!e.parentElement||Qo(e.parentElement,e))}function jd(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){if(!e.ownerDocument.defaultView)return r;let{getComputedStyle:o}=e.ownerDocument.defaultView,{display:i,visibility:s}=o(e);r=i!=="none"&&s!=="hidden"&&s!=="collapse"}return r}function Qd(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Wd(e,t,n){let r=t?.tabbable?Gd:jo,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){return t?.from?.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&Qo(i)&&(!t?.accept||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(o.currentNode=t.from),o}function Bs(e){for(;e&&!Yd(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Yd(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Xd(){}function Zd(e,t){let[n,r]=e,o=!1,i=t.length;for(let s=i,a=0,l=s-1;a<s;l=a++){let[c,d]=t[a],[u,g]=t[l],[,f]=t[l===0?s-1:l-1]||[0,0],h=(d-g)*(n-c)-(c-u)*(r-d);if(g<d){if(r>=g&&r<d){if(h===0)return!0;h>0&&(r===g?r>f&&(o=!o):o=!o)}}else if(d<g){if(r>d&&r<=g){if(h===0)return!0;h<0&&(r===g?r<f&&(o=!o):o=!o)}}else if(r==d&&(n>=u&&n<=c||n>=c&&n<=u))return!0}return o}function ee(e,t){return W(e,t)}function Vs(){if(typeof window>"u")return;let e=n=>{if(!n.target)return;let r=Gn.get(n.target);r||(r=new Set,Gn.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{if(!n.target)return;let r=Gn.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Gn.delete(n.target)),Gn.size===0)){for(let o of Ks)o();Ks.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function qo(e,t){let n=Us(e,t,"left"),r=Us(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,l=s+e.offsetWidth,c=a+e.offsetHeight;n<=s?s=n:n+o>l&&(s+=n+o-l),r<=a?a=r:r+i>c&&(a+=r+i-c),e.scrollLeft=s,e.scrollTop=a}function Us(e,t,n){let r=n==="left"?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Jd(e,t){if(document.contains(e)){let n=document.scrollingElement||document.documentElement;if(window.getComputedStyle(n).overflow==="hidden"){let o=Bs(e);for(;e&&o&&e!==n&&o!==n;)qo(o,e),e=o,o=Bs(e)}else{let{left:o,top:i}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:s,top:a}=e.getBoundingClientRect();(Math.abs(o-s)>1||Math.abs(i-a)>1)&&e.scrollIntoView?.({block:"nearest"})}}}function Je(e){return t=>(e(t),()=>e(void 0))}function jr(e,t){let[n,r]=q(Gs(t?.()));return V(()=>{r(e()?.tagName.toLowerCase()||Gs(t?.()))}),n}function Gs(e){return yn(e)?e:void 0}function ve(e){let[t,n]=ne(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return m(ls,W(n,{get component(){return t.as}}))}function tf(e){let t=`form-control-${Ve()}`,n=ee({id:t},e),[r,o]=q(),[i,s]=q(),[a,l]=q(),[c,d]=q(),u=(p,y,v)=>{let b=v!=null||r()!=null;return[v,r(),b&&y!=null?p:void 0].filter(Boolean).join(" ")||void 0},g=p=>[a(),c(),p].filter(Boolean).join(" ")||void 0,f=S(()=>({"data-valid":T(n.validationState)==="valid"?"":void 0,"data-invalid":T(n.validationState)==="invalid"?"":void 0,"data-required":T(n.required)?"":void 0,"data-disabled":T(n.disabled)?"":void 0,"data-readonly":T(n.readOnly)?"":void 0}));return{formControlContext:{name:()=>T(n.name)??T(n.id),dataset:f,validationState:()=>T(n.validationState),isRequired:()=>T(n.required),isDisabled:()=>T(n.disabled),isReadOnly:()=>T(n.readOnly),labelId:r,fieldId:i,descriptionId:a,errorMessageId:c,getAriaLabelledBy:u,getAriaDescribedBy:g,generateId:rr(()=>T(n.id)),registerLabel:Je(o),registerField:Je(s),registerDescription:Je(l),registerErrorMessage:Je(d)}}}function or(){let e=Ce(ql);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function _l(e){let t=or(),n=ee({id:t.generateId("description")},e);return V(()=>H(t.registerDescription(n.id))),m(ve,W({as:"div"},()=>t.dataset(),n))}function Rl(e){let t=or(),n=ee({id:t.generateId("error-message")},e),[r,o]=ne(n,["forceMount"]),i=()=>t.validationState()==="invalid";return V(()=>{i()&&H(t.registerErrorMessage(o.id))}),m(U,{get when(){return r.forceMount||i()},get children(){return m(ve,W({as:"div"},()=>t.dataset(),o))}})}function nf(e){let t,n=or(),r=ee({id:n.generateId("label")},e),[o,i]=ne(r,["ref"]),s=jr(()=>t,()=>"label");return V(()=>H(n.registerLabel(i.id))),m(ve,W({as:"label",ref(a){let l=_e(c=>t=c,o.ref);typeof l=="function"&&l(a)},get for(){return S(()=>s()==="label")()?n.fieldId():void 0}},()=>n.dataset(),i))}function rf(e,t){V(ft(e,n=>{if(n==null)return;let r=of(n);r!=null&&(r.addEventListener("reset",t,{passive:!0}),H(()=>{r.removeEventListener("reset",t)}))}))}function of(e){return sf(e)?e.form:e.closest("form")}function sf(e){return e.matches("textarea, input, select, button")}function ir(e){let[t,n]=q(e.defaultValue?.()),r=S(()=>e.value?.()!==void 0),o=S(()=>r()?e.value?.():t());return[o,s=>{ue(()=>{let a=Xu(s,o());return Object.is(a,o())||(r()||n(a),e.onChange?.(a)),a})}]}function zl(e){let[t,n]=ir(e);return[()=>t()??!1,n]}function lf(e){let[t,n]=ir(e);return[()=>t()??[],n]}function af(e={}){let[t,n]=zl({value:()=>T(e.isSelected),defaultValue:()=>!!T(e.defaultIsSelected),onChange:i=>e.onSelectedChange?.(i)});return{isSelected:t,setIsSelected:i=>{!T(e.isReadOnly)&&!T(e.isDisabled)&&n(i)},toggle:()=>{!T(e.isReadOnly)&&!T(e.isDisabled)&&n(!t())}}}function Bl(){return Ce(Nl)}function uf(){let e=Bl();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function Kl(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function df(e,t){let n=t.ref();if(!n)return-1;let r=e.length;if(!r)return-1;for(;r--;){let o=e[r]?.ref();if(o&&Kl(o,n))return r+1}return 0}function ff(e){let t=e.map((r,o)=>[o,r]),n=!1;return t.sort(([r,o],[i,s])=>{let a=o.ref(),l=s.ref();return a===l||!a||!l?0:Kl(a,l)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1)}),n?t.map(([r,o])=>o):e}function Vl(e,t){let n=ff(e);e!==n&&t(n)}function gf(e){let t=e[0],n=e[e.length-1]?.ref(),r=t?.ref()?.parentElement;for(;r;){if(n&&r.contains(n))return r;r=r.parentElement}return ht(r).body}function hf(e,t){V(()=>{let n=setTimeout(()=>{Vl(e(),t)});H(()=>clearTimeout(n))})}function mf(e,t){if(typeof IntersectionObserver!="function"){hf(e,t);return}let n=[];V(()=>{let r=()=>{let s=!!n.length;n=e(),s&&Vl(e(),t)},o=gf(e()),i=new IntersectionObserver(r,{root:o});for(let s of e()){let a=s.ref();a&&i.observe(a)}H(()=>i.disconnect())})}function pf(e={}){let[t,n]=lf({value:()=>T(e.items),onChange:i=>e.onItemsChange?.(i)});mf(t,n);let r=i=>(n(s=>{let a=df(s,i);return Od(s,i,a)}),()=>{n(s=>{let a=s.filter(l=>l.ref()!==i.ref());return s.length===a.length?s:a})});return{DomCollectionProvider:i=>m(Nl.Provider,{value:{registerItem:r},get children(){return i.children}})}}function yf(e){let t=uf(),n=ee({shouldRegisterItem:!0},e);V(()=>{if(!n.shouldRegisterItem)return;let r=t.registerItem(n.getItem());H(r)})}function Ul(e){let t=e.startIndex??0,n=e.startLevel??0,r=[],o=l=>{if(l==null)return"";let c=e.getKey??"key",d=yn(c)?l[c]:c(l);return d!=null?String(d):""},i=l=>{if(l==null)return"";let c=e.getTextValue??"textValue",d=yn(c)?l[c]:c(l);return d!=null?String(d):""},s=l=>{if(l==null)return!1;let c=e.getDisabled??"disabled";return(yn(c)?l[c]:c(l))??!1},a=l=>{if(l!=null)return yn(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(yn(l)||Id(l)){r.push({type:"item",rawValue:l,key:String(l),textValue:String(l),disabled:s(l),level:n,index:t}),t++;continue}if(a(l)!=null){r.push({type:"section",rawValue:l,key:"",textValue:"",disabled:!1,level:n,index:t}),t++;let c=a(l)??[];if(c.length>0){let d=Ul({dataSource:c,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});r.push(...d),t+=d.length}}else r.push({type:"item",rawValue:l,key:o(l),textValue:i(l),disabled:s(l),level:n,index:t}),t++}return r}function vf(e,t=[]){return S(()=>{let n=Ul({dataSource:T(e.dataSource),getKey:T(e.getKey),getTextValue:T(e.getTextValue),getDisabled:T(e.getDisabled),getSectionChildren:T(e.getSectionChildren)});for(let r=0;r<t.length;r++)t[r]();return e.factory(n)})}function xf(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize().script??"";return bf.has(n)}let t=e.split("-")[0];return wf.has(t)}function Cf(e){return xf(e)?"rtl":"ltr"}function Gl(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:Cf(e)}}function Hs(){_o=Gl();for(let e of Wn)e(_o)}function Sf(){let e={locale:"en-US",direction:"ltr"},[t,n]=q(_o),r=S(()=>Oe?e:t());return $t(()=>{Wn.size===0&&window.addEventListener("languagechange",Hs),Wn.add(n),H(()=>{Wn.delete(n),Wn.size===0&&window.removeEventListener("languagechange",Hs)})}),{locale:()=>r().locale,direction:()=>r().direction}}function Vt(){let e=Sf();return Ce($f)||e}function kf(e){let{locale:t}=Vt(),n=S(()=>t()+(e?Object.entries(e).sort((r,o)=>r[0]<o[0]?-1:1).join():""));return S(()=>{let r=n(),o;return Ao.has(r)&&(o=Ao.get(r)),o||(o=new Intl.Collator(t(),e),Ao.set(r,o)),o})}function Ef(e){let[t,n]=ir(e);return[()=>t()??new Et,n]}function jl(e){return zd()?e.altKey:e.ctrlKey}function vn(e){return Hr()?e.metaKey:e.ctrlKey}function js(e){return new Et(e)}function Tf(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Af(e){let t=ee({selectionMode:"none",selectionBehavior:"toggle"},e),[n,r]=q(!1),[o,i]=q(),s=S(()=>{let p=T(t.selectedKeys);return p!=null?js(p):p}),a=S(()=>{let p=T(t.defaultSelectedKeys);return p!=null?js(p):new Et}),[l,c]=Ef({value:s,defaultValue:a,onChange:p=>t.onSelectionChange?.(p)}),[d,u]=q(T(t.selectionBehavior)),g=()=>T(t.selectionMode),f=()=>T(t.disallowEmptySelection)??!1,h=p=>{(T(t.allowDuplicateSelectionEvents)||!Tf(p,l()))&&c(p)};return V(()=>{let p=l();T(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof p=="object"&&p.size===0&&u("replace")}),V(()=>{u(T(t.selectionBehavior)??"toggle")}),{selectionMode:g,disallowEmptySelection:f,selectionBehavior:d,setSelectionBehavior:u,isFocused:n,setFocused:r,focusedKey:o,setFocusedKey:i,selectedKeys:l,setSelectedKeys:h}}function Pf(e){let[t,n]=q(""),[r,o]=q(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(T(e.isDisabled))return;let a=T(e.keyboardDelegate),l=T(e.selectionManager);if(!a.getKeyForSearch)return;let c=Mf(s.key);if(!c||s.ctrlKey||s.metaKey)return;c===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let d=n(g=>g+c),u=a.getKeyForSearch(d,l.focusedKey())??a.getKeyForSearch(d);u==null&&Df(d)&&(d=d[0],u=a.getKeyForSearch(d,l.focusedKey())??a.getKeyForSearch(d)),u!=null&&(l.setFocusedKey(u),e.onTypeSelect?.(u)),clearTimeout(r()),o(window.setTimeout(()=>n(""),500))}}}}function Mf(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Df(e){return e.split("").every(t=>t===e[0])}function Of(e,t,n){let o=W({selectOnFocus:()=>T(e.selectionManager).selectionBehavior()==="replace"},e),i=()=>t(),{direction:s}=Vt(),a={top:0,left:0};Pd(()=>T(o.isVirtualized)?void 0:i(),"scroll",()=>{let y=i();y&&(a={top:y.scrollTop,left:y.scrollLeft})});let{typeSelectHandlers:l}=Pf({isDisabled:()=>T(o.disallowTypeAhead),keyboardDelegate:()=>T(o.keyboardDelegate),selectionManager:()=>T(o.selectionManager)}),c=()=>T(o.orientation)??"vertical",d=y=>{ye(y,l.onKeyDown),y.altKey&&y.key==="Tab"&&y.preventDefault();let v=t();if(!v?.contains(y.target))return;let b=T(o.selectionManager),w=T(o.selectOnFocus),x=F=>{F!=null&&(b.setFocusedKey(F),y.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(F):w&&!jl(y)&&b.replaceSelection(F))},C=T(o.keyboardDelegate),I=T(o.shouldFocusWrap),O=b.focusedKey();switch(y.key){case(c()==="vertical"?"ArrowDown":"ArrowRight"):{if(C.getKeyBelow){y.preventDefault();let F;O!=null?F=C.getKeyBelow(O):F=C.getFirstKey?.(),F==null&&I&&(F=C.getFirstKey?.(O)),x(F)}break}case(c()==="vertical"?"ArrowUp":"ArrowLeft"):{if(C.getKeyAbove){y.preventDefault();let F;O!=null?F=C.getKeyAbove(O):F=C.getLastKey?.(),F==null&&I&&(F=C.getLastKey?.(O)),x(F)}break}case(c()==="vertical"?"ArrowLeft":"ArrowUp"):{if(C.getKeyLeftOf){y.preventDefault();let F=s()==="rtl",$;O!=null?$=C.getKeyLeftOf(O):$=F?C.getFirstKey?.():C.getLastKey?.(),x($)}break}case(c()==="vertical"?"ArrowRight":"ArrowDown"):{if(C.getKeyRightOf){y.preventDefault();let F=s()==="rtl",$;O!=null?$=C.getKeyRightOf(O):$=F?C.getLastKey?.():C.getFirstKey?.(),x($)}break}case"Home":if(C.getFirstKey){y.preventDefault();let F=C.getFirstKey(O,vn(y));F!=null&&(b.setFocusedKey(F),vn(y)&&y.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(F):w&&b.replaceSelection(F))}break;case"End":if(C.getLastKey){y.preventDefault();let F=C.getLastKey(O,vn(y));F!=null&&(b.setFocusedKey(F),vn(y)&&y.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection(F):w&&b.replaceSelection(F))}break;case"PageDown":if(C.getKeyPageBelow&&O!=null){y.preventDefault();let F=C.getKeyPageBelow(O);x(F)}break;case"PageUp":if(C.getKeyPageAbove&&O!=null){y.preventDefault();let F=C.getKeyPageAbove(O);x(F)}break;case"a":vn(y)&&b.selectionMode()==="multiple"&&T(o.disallowSelectAll)!==!0&&(y.preventDefault(),b.selectAll());break;case"Escape":y.defaultPrevented||(y.preventDefault(),T(o.disallowEmptySelection)||b.clearSelection());break;case"Tab":if(!T(o.allowsTabNavigation)){if(y.shiftKey)v.focus();else{let F=Wd(v,{tabbable:!0}),$,A;do A=F.lastChild(),A&&($=A);while(A);$&&!$.contains(document.activeElement)&&Fe($)}break}}},u=y=>{let v=T(o.selectionManager),b=T(o.keyboardDelegate),w=T(o.selectOnFocus);if(v.isFocused()){y.currentTarget.contains(y.target)||v.setFocused(!1);return}if(y.currentTarget.contains(y.target)){if(v.setFocused(!0),v.focusedKey()==null){let x=I=>{I!=null&&(v.setFocusedKey(I),w&&v.replaceSelection(I))},C=y.relatedTarget;C&&y.currentTarget.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_FOLLOWING?x(v.lastSelectedKey()??b.getLastKey?.()):x(v.firstSelectedKey()??b.getFirstKey?.())}else if(!T(o.isVirtualized)){let x=i();if(x){x.scrollTop=a.top,x.scrollLeft=a.left;let C=x.querySelector(`[data-key="${v.focusedKey()}"]`);C&&(Fe(C),qo(x,C))}}}},g=y=>{let v=T(o.selectionManager);y.currentTarget.contains(y.relatedTarget)||v.setFocused(!1)},f=y=>{i()===y.target&&y.preventDefault()},h=()=>{let y=T(o.autoFocus);if(!y)return;let v=T(o.selectionManager),b=T(o.keyboardDelegate),w;y==="first"&&(w=b.getFirstKey?.()),y==="last"&&(w=b.getLastKey?.());let x=v.selectedKeys();x.size&&(w=x.values().next().value),v.setFocused(!0),v.setFocusedKey(w);let C=t();C&&w==null&&!T(o.shouldUseVirtualFocus)&&Fe(C)};return $t(()=>{o.deferAutoFocus?setTimeout(h,0):h()}),V(ft([i,()=>T(o.isVirtualized),()=>T(o.selectionManager).focusedKey()],y=>{let[v,b,w]=y;if(b)w&&o.scrollToKey?.(w);else if(w&&v){let x=v.querySelector(`[data-key="${w}"]`);x&&qo(v,x)}})),{tabIndex:S(()=>{if(!T(o.shouldUseVirtualFocus))return T(o.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:f,onFocusIn:u,onFocusOut:g}}function Ql(e,t){let n=()=>T(e.selectionManager),r=()=>T(e.key),o=()=>T(e.shouldUseVirtualFocus),i=b=>{n().selectionMode()!=="none"&&(n().selectionMode()==="single"?n().isSelected(r())&&!n().disallowEmptySelection()?n().toggleSelection(r()):n().replaceSelection(r()):b?.shiftKey?n().extendSelection(r()):n().selectionBehavior()==="toggle"||vn(b)||"pointerType"in b&&b.pointerType==="touch"?n().toggleSelection(r()):n().replaceSelection(r()))},s=()=>n().isSelected(r()),a=()=>T(e.disabled)||n().isDisabled(r()),l=()=>!a()&&n().canSelectItem(r()),c=null,d=b=>{l()&&(c=b.pointerType,b.pointerType==="mouse"&&b.button===0&&!T(e.shouldSelectOnPressUp)&&i(b))},u=b=>{l()&&b.pointerType==="mouse"&&b.button===0&&T(e.shouldSelectOnPressUp)&&T(e.allowsDifferentPressOrigin)&&i(b)},g=b=>{l()&&(T(e.shouldSelectOnPressUp)&&!T(e.allowsDifferentPressOrigin)||c!=="mouse")&&i(b)},f=b=>{!l()||!["Enter"," "].includes(b.key)||(jl(b)?n().toggleSelection(r()):i(b))},h=b=>{a()&&b.preventDefault()},p=b=>{let w=t();o()||a()||!w||b.target===w&&n().setFocusedKey(r())},y=S(()=>{if(!(o()||a()))return r()===n().focusedKey()?0:-1}),v=S(()=>T(e.virtualized)?void 0:r());return V(ft([t,r,o,()=>n().focusedKey(),()=>n().isFocused()],([b,w,x,C,I])=>{b&&w===C&&I&&!x&&document.activeElement!==b&&(e.focus?e.focus():Fe(b))})),{isSelected:s,isDisabled:a,allowsSelection:l,tabIndex:y,dataKey:v,onPointerDown:d,onPointerUp:u,onClick:g,onKeyDown:f,onMouseDown:h,onFocus:p}}function Ff(e){let t=Af(e),r=vf({dataSource:()=>T(e.dataSource),getKey:()=>T(e.getKey),getTextValue:()=>T(e.getTextValue),getDisabled:()=>T(e.getDisabled),getSectionChildren:()=>T(e.getSectionChildren),factory:i=>e.filter?new Qs(e.filter(i)):new Qs(i)},[()=>e.filter]),o=new If(r,t);return wr(()=>{let i=t.focusedKey();i!=null&&!r().getItem(i)&&t.setFocusedKey(void 0)}),{collection:r,selectionManager:()=>o}}function Xn(e){return At.findIndex(t=>t.node===e)}function _f(e){return At[Xn(e)]}function Rf(e){return At[At.length-1].node===e}function Xl(){return At.filter(e=>e.isPointerBlocking)}function zf(){return[...Xl()].slice(-1)[0]}function Wo(){return Xl().length>0}function Zl(e){let t=Xn(zf()?.node);return Xn(e)<t}function Nf(e){At.push(e)}function Bf(e){let t=Xn(e);t<0||At.splice(t,1)}function Kf(){for(let{node:e}of At)e.style.pointerEvents=Zl(e)?"none":"auto"}function Vf(e){if(Wo()&&!Ro){let t=ht(e);Yl=document.body.style.pointerEvents,t.body.style.pointerEvents="none",Ro=!0}}function Uf(e){if(Wo())return;let t=ht(e);t.body.style.pointerEvents=Yl,t.body.style.length===0&&t.body.removeAttribute("style"),Ro=!1}function jf(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?Hf.indexOf(e.type)!==-1:!1}function Yo(e){let t,n=ee({type:"button"},e),[r,o]=ne(n,["ref","type","disabled"]),i=jr(()=>t,()=>"button"),s=S(()=>{let c=i();return c==null?!1:jf({tagName:c,type:r.type})}),a=S(()=>i()==="input"),l=S(()=>i()==="a"&&t?.getAttribute("href")!=null);return m(ve,W({as:"button",ref(c){let d=_e(u=>t=u,r.ref);typeof d=="function"&&d(c)},get type(){return s()||a()?r.type:void 0},get role(){return!s()&&!l()?"button":void 0},get tabIndex(){return!s()&&!l()&&!r.disabled?0:void 0},get disabled(){return s()||a()?r.disabled:void 0},get"aria-disabled"(){return!s()&&!a()&&r.disabled?!0:void 0},get"data-disabled"(){return r.disabled?"":void 0}},o))}function zo(e,t,n){return He(e,gt(t,n))}function rn(e,t){return typeof e=="function"?e(t):e}function Bt(e){return e.split("-")[0]}function xn(e){return e.split("-")[1]}function Jl(e){return e==="x"?"y":"x"}function Xo(e){return e==="y"?"height":"width"}function tn(e){return["top","bottom"].includes(Bt(e))?"y":"x"}function Zo(e){return Jl(tn(e))}function Zf(e,t,n){n===void 0&&(n=!1);let r=xn(e),o=Zo(e),i=Xo(o),s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Rr(s)),[s,Rr(s)]}function Jf(e){let t=Rr(e);return[No(e),t,No(t)]}function No(e){return e.replace(/start|end/g,t=>Xf[t])}function e0(e,t,n){let r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function t0(e,t,n,r){let o=xn(e),i=e0(Bt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(No)))),i}function Rr(e){return e.replace(/left|right|bottom|top/g,t=>Yf[t])}function n0(e){return{top:0,right:0,bottom:0,left:0,...e}}function ea(e){return typeof e!="number"?n0(e):{top:e,right:e,bottom:e,left:e}}function zr(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ws(e,t,n){let{reference:r,floating:o}=e,i=tn(t),s=Zo(t),a=Xo(s),l=Bt(t),c=i==="y",d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2,f;switch(l){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:u};break;case"left":f={x:r.x-o.width,y:u};break;default:f={x:r.x,y:r.y}}switch(xn(t)){case"start":f[s]-=g*(n&&c?-1:1);break;case"end":f[s]+=g*(n&&c?-1:1);break}return f}async function Zn(e,t){var n;t===void 0&&(t={});let{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:g=!1,padding:f=0}=rn(t,e),h=ea(f),y=a[g?u==="floating"?"reference":"floating":u],v=zr(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),b=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},C=zr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:w,strategy:l}):b);return{top:(v.top-C.top+h.top)/x.y,bottom:(C.bottom-v.bottom+h.bottom)/x.y,left:(v.left-C.left+h.left)/x.x,right:(C.right-v.right+h.right)/x.x}}function Ys(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xs(e){return Wf.some(t=>e[t]>=0)}async function l0(e,t){let{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Bt(n),a=xn(n),l=tn(n)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,u=rn(t,e),{mainAxis:g,crossAxis:f,alignmentAxis:h}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof h=="number"&&(f=a==="end"?h*-1:h),l?{x:f*d,y:g*c}:{x:g*c,y:f*d}}function Cn(e){return ta(e)?(e.nodeName||"").toLowerCase():"#document"}function je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pt(e){var t;return(t=(ta(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ta(e){return e instanceof Node||e instanceof je(e).Node}function st(e){return e instanceof Element||e instanceof je(e).Element}function mt(e){return e instanceof HTMLElement||e instanceof je(e).HTMLElement}function Zs(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof je(e).ShadowRoot}function sr(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function d0(e){return["table","td","th"].includes(Cn(e))}function Wr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Jo(e){let t=ei(),n=st(e)?lt(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function f0(e){let t=Kt(e);for(;mt(t)&&!wn(t);){if(Jo(t))return t;if(Wr(t))return null;t=Kt(t)}return null}function ei(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wn(e){return["html","body","#document"].includes(Cn(e))}function lt(e){return je(e).getComputedStyle(e)}function Yr(e){return st(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kt(e){if(Cn(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Zs(e)&&e.host||Pt(e);return Zs(t)?t.host:t}function na(e){let t=Kt(e);return wn(t)?e.ownerDocument?e.ownerDocument.body:e.body:mt(t)&&sr(t)?t:na(t)}function Jn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let o=na(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=je(o);return i?t.concat(s,s.visualViewport||[],sr(o)?o:[],s.frameElement&&n?Jn(s.frameElement):[]):t.concat(o,Jn(o,[],n))}function ra(e){let t=lt(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=mt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=_r(n)!==i||_r(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ti(e){return st(e)?e:e.contextElement}function bn(e){let t=ti(e);if(!mt(t))return Nt(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ra(t),s=(i?_r(n.width):n.width)/r,a=(i?_r(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}function oa(e){let t=je(e);return!ei()||!t.visualViewport?g0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function h0(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==je(e)?!1:t}function nn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let o=e.getBoundingClientRect(),i=ti(e),s=Nt(1);t&&(r?st(r)&&(s=bn(r)):s=bn(e));let a=h0(i,n,r)?oa(i):Nt(0),l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){let g=je(i),f=r&&st(r)?je(r):r,h=g,p=h.frameElement;for(;p&&r&&f!==h;){let y=bn(p),v=p.getBoundingClientRect(),b=lt(p),w=v.left+(p.clientLeft+parseFloat(b.paddingLeft))*y.x,x=v.top+(p.clientTop+parseFloat(b.paddingTop))*y.y;l*=y.x,c*=y.y,d*=y.x,u*=y.y,l+=w,c+=x,h=je(p),p=h.frameElement}}return zr({width:d,height:u,x:l,y:c})}function m0(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i=o==="fixed",s=Pt(r),a=t?Wr(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Nt(1),d=Nt(0),u=mt(r);if((u||!u&&!i)&&((Cn(r)!=="body"||sr(s))&&(l=Yr(r)),mt(r))){let g=nn(r);c=bn(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}}function p0(e){return Array.from(e.getClientRects())}function ia(e){return nn(Pt(e)).left+Yr(e).scrollLeft}function y0(e){let t=Pt(e),n=Yr(e),r=e.ownerDocument.body,o=He(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=He(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+ia(e),a=-n.scrollTop;return lt(r).direction==="rtl"&&(s+=He(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function v0(e,t){let n=je(e),r=Pt(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;let c=ei();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function b0(e,t){let n=nn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=mt(e)?bn(e):Nt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function Js(e,t,n){let r;if(t==="viewport")r=v0(e,n);else if(t==="document")r=y0(Pt(e));else if(st(t))r=b0(t,n);else{let o=oa(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return zr(r)}function sa(e,t){let n=Kt(e);return n===t||!st(n)||wn(n)?!1:lt(n).position==="fixed"||sa(n,t)}function w0(e,t){let n=t.get(e);if(n)return n;let r=Jn(e,[],!1).filter(a=>st(a)&&Cn(a)!=="body"),o=null,i=lt(e).position==="fixed",s=i?Kt(e):e;for(;st(s)&&!wn(s);){let a=lt(s),l=Jo(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||sr(s)&&!l&&sa(e,s))?r=r.filter(d=>d!==s):o=a,s=Kt(s)}return t.set(e,r),r}function x0(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,s=[...n==="clippingAncestors"?Wr(t)?[]:w0(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,d)=>{let u=Js(t,d,o);return c.top=He(u.top,c.top),c.right=gt(u.right,c.right),c.bottom=gt(u.bottom,c.bottom),c.left=He(u.left,c.left),c},Js(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function C0(e){let{width:t,height:n}=ra(e);return{width:t,height:n}}function S0(e,t,n){let r=mt(t),o=Pt(t),i=n==="fixed",s=nn(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=Nt(0);if(r||!r&&!i)if((Cn(t)!=="body"||sr(o))&&(a=Yr(t)),r){let u=nn(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=ia(o));let c=s.left+a.scrollLeft-l.x,d=s.top+a.scrollTop-l.y;return{x:c,y:d,width:s.width,height:s.height}}function Po(e){return lt(e).position==="static"}function el(e,t){return!mt(e)||lt(e).position==="fixed"?null:t?t(e):e.offsetParent}function la(e,t){let n=je(e);if(Wr(e))return n;if(!mt(e)){let o=Kt(e);for(;o&&!wn(o);){if(st(o)&&!Po(o))return o;o=Kt(o)}return n}let r=el(e,t);for(;r&&d0(r)&&Po(r);)r=el(r,t);return r&&wn(r)&&Po(r)&&!Jo(r)?n:r||f0(e)||n}function k0(e){return lt(e).direction==="rtl"}function E0(e,t){let n=null,r,o=Pt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();let{left:c,top:d,width:u,height:g}=e.getBoundingClientRect();if(a||t(),!u||!g)return;let f=Ir(d),h=Ir(o.clientWidth-(c+u)),p=Ir(o.clientHeight-(d+g)),y=Ir(c),b={rootMargin:-f+"px "+-h+"px "+-p+"px "+-y+"px",threshold:He(0,gt(1,l))||1},w=!0;function x(C){let I=C[0].intersectionRatio;if(I!==l){if(!w)return s();I?s(!1,I):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(x,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,b)}n.observe(e)}return s(!0),i}function T0(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ti(e),d=o||i?[...c?Jn(c):[],...Jn(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});let u=c&&a?E0(c,n):null,g=-1,f=null;s&&(f=new ResizeObserver(v=>{let[b]=v;b&&b.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let h,p=l?nn(e):null;l&&y();function y(){let v=nn(e);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&n(),p=v,h=requestAnimationFrame(y)}return n(),()=>{var v;d.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),u?.(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(h)}}function ri(){let e=Ce(ni);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function oi(e){let t=ri(),n=ee({size:Bo},e),[r,o]=ne(n,["ref","style","size"]),i=()=>t.currentPlacement().split("-")[0],s=_0(t.contentRef),a=()=>s()?.getPropertyValue("background-color")||"none",l=()=>s()?.getPropertyValue(`border-${i()}-color`)||"none",c=()=>s()?.getPropertyValue(`border-${i()}-width`)||"0px",d=()=>Number.parseInt(c())*2*(Bo/r.size),u=()=>`rotate(${q0[i()]} ${tl} ${tl}) translate(0 2)`;return m(ve,W({as:"div",ref(g){let f=_e(t.setArrowRef,r.ref);typeof f=="function"&&f(g)},"aria-hidden":"true",get style(){return Gr({position:"absolute","font-size":`${r.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:a(),stroke:l(),"stroke-width":d()},r.style)}},o,{get children(){let g=L0(),f=g.firstChild;return K(()=>P(f,"transform",u())),g}}))}function _0(e){let[t,n]=q();return V(()=>{let r=e();r&&n(Ld(r).getComputedStyle(r))}),t}function R0(e){let t=ri(),[n,r]=ne(e,["ref","style"]);return m(ve,W({as:"div",ref(o){let i=_e(t.setPositionerRef,n.ref);typeof i=="function"&&i(o)},"data-popper-positioner":"",get style(){return Gr({position:"absolute",top:0,left:0,"min-width":"max-content"},n.style)}},r))}function nl(e){let{x:t=0,y:n=0,width:r=0,height:o=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,n,r,o);let i={x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:n+o,left:t};return{...i,toJSON:()=>i}}function z0(e,t){return{contextElement:e,getBoundingClientRect:()=>{let r=t(e);return r?nl(r):e?e.getBoundingClientRect():nl()}}}function N0(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function K0(e,t){let[n,r]=e.split("-"),o=B0[n];return r?n==="left"||n==="right"?`${o} ${r==="start"?"top":"bottom"}`:r==="start"?`${o} ${t==="rtl"?"right":"left"}`:`${o} ${t==="rtl"?"left":"right"}`:`${o} center`}function V0(e){let t=ee({getAnchorRect:g=>g?.getBoundingClientRect(),placement:"bottom",gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e),[n,r]=q(),[o,i]=q(),[s,a]=q(t.placement),l=()=>z0(t.anchorRef?.(),t.getAnchorRect),{direction:c}=Vt();async function d(){let g=l(),f=n(),h=o();if(!g||!f)return;let p=(h?.clientHeight||0)/2,y=typeof t.gutter=="number"?t.gutter+p:t.gutter??p;f.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),g.getBoundingClientRect();let v=[A0(({placement:I})=>{let O=!!I.split("-")[1];return{mainAxis:y,crossAxis:O?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let I=typeof t.flip=="string"?t.flip.split(" "):void 0;if(I!==void 0&&!I.every(N0))throw new Error("`flip` expects a spaced-delimited list of placements");v.push(M0({padding:t.overflowPadding,fallbackPlacements:I}))}(t.slide||t.overlap)&&v.push(P0({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),v.push(D0({padding:t.overflowPadding,apply({availableWidth:I,availableHeight:O,rects:F}){let $=Math.round(F.reference.width);I=Math.floor(I),O=Math.floor(O),f.style.setProperty("--kb-popper-anchor-width",`${$}px`),f.style.setProperty("--kb-popper-content-available-width",`${I}px`),f.style.setProperty("--kb-popper-content-available-height",`${O}px`),t.sameWidth&&(f.style.width=`${$}px`),t.fitViewport&&(f.style.maxWidth=`${I}px`,f.style.maxHeight=`${O}px`)}})),t.hideWhenDetached&&v.push(O0({padding:t.detachedPadding})),h&&v.push(I0({element:h,padding:t.arrowPadding}));let b=await F0(g,f,{placement:t.placement,strategy:"absolute",middleware:v,platform:{...aa,isRTL:()=>c()==="rtl"}});if(a(b.placement),t.onCurrentPlacementChange?.(b.placement),!f)return;f.style.setProperty("--kb-popper-content-transform-origin",K0(b.placement,c()));let w=Math.round(b.x),x=Math.round(b.y),C;if(t.hideWhenDetached&&(C=b.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(f.style,{top:"0",left:"0",transform:`translate3d(${w}px, ${x}px, 0)`,visibility:C}),h&&b.middlewareData.arrow){let{x:I,y:O}=b.middlewareData.arrow,F=b.placement.split("-")[0];Object.assign(h.style,{left:I!=null?`${I}px`:"",top:O!=null?`${O}px`:"",[F]:"100%"})}}V(()=>{let g=l(),f=n();if(!g||!f)return;let h=T0(g,f,d,{elementResize:typeof ResizeObserver=="function"});H(h)}),V(()=>{let g=n(),f=t.contentRef?.();!g||!f||queueMicrotask(()=>{g.style.zIndex=getComputedStyle(f).zIndex})});let u={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:r,setArrowRef:i};return m(ni.Provider,{value:u,get children(){return t.children}})}function U0(e){let t=n=>{n.key===Go.Escape&&e.onEscapeKeyDown?.(n)};V(()=>{if(Oe||T(e.isDisabled))return;let n=e.ownerDocument?.()??ht();n.addEventListener("keydown",t),H(()=>{n.removeEventListener("keydown",t)})})}function G0(e,t){let n,r=Xd,o=()=>ht(t()),i=u=>e.onPointerDownOutside?.(u),s=u=>e.onFocusOutside?.(u),a=u=>e.onInteractOutside?.(u),l=u=>{let g=u.target;return!(g instanceof HTMLElement)||g.closest(`[${qr}]`)||!Ze(o(),g)||Ze(t(),g)?!1:!e.shouldExcludeElement?.(g)},c=u=>{function g(){let f=t(),h=u.target;if(!f||!h||!l(u))return;let p=Te([i,a]);h.addEventListener(rl,p,{once:!0});let y=new CustomEvent(rl,{bubbles:!1,cancelable:!0,detail:{originalEvent:u,isContextMenu:u.button===2||Nd(u)&&u.button===0}});h.dispatchEvent(y)}u.pointerType==="touch"?(o().removeEventListener("click",g),r=g,o().addEventListener("click",g,{once:!0})):g()},d=u=>{let g=t(),f=u.target;if(!g||!f||!l(u))return;let h=Te([s,a]);f.addEventListener(ol,h,{once:!0});let p=new CustomEvent(ol,{bubbles:!1,cancelable:!0,detail:{originalEvent:u,isContextMenu:!1}});f.dispatchEvent(p)};V(()=>{Oe||T(e.isDisabled)||(n=window.setTimeout(()=>{o().addEventListener("pointerdown",c,!0)},0),o().addEventListener("focusin",d,!0),H(()=>{window.clearTimeout(n),o().removeEventListener("click",r),o().removeEventListener("pointerdown",c,!0),o().removeEventListener("focusin",d,!0)}))})}function H0(){return Ce(ua)}function j0(e){let t,n=H0(),[r,o]=ne(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),i=new Set([]),s=u=>{i.add(u);let g=n?.registerNestedLayer(u);return()=>{i.delete(u),g?.()}};G0({shouldExcludeElement:u=>t?r.excludedElements?.some(g=>Ze(g(),u))||[...i].some(g=>Ze(g,u)):!1,onPointerDownOutside:u=>{!t||Ue.isBelowPointerBlockingLayer(t)||!r.bypassTopMostLayerCheck&&!Ue.isTopMostLayer(t)||(r.onPointerDownOutside?.(u),r.onInteractOutside?.(u),u.defaultPrevented||r.onDismiss?.())},onFocusOutside:u=>{r.onFocusOutside?.(u),r.onInteractOutside?.(u),u.defaultPrevented||r.onDismiss?.()}},()=>t),U0({ownerDocument:()=>ht(t),onEscapeKeyDown:u=>{!t||!Ue.isTopMostLayer(t)||(r.onEscapeKeyDown?.(u),!u.defaultPrevented&&r.onDismiss&&(u.preventDefault(),r.onDismiss()))}}),$t(()=>{if(!t)return;Ue.addLayer({node:t,isPointerBlocking:r.disableOutsidePointerEvents,dismiss:r.onDismiss});let u=n?.registerNestedLayer(t);Ue.assignPointerEventToLayers(),Ue.disableBodyPointerEvents(t),H(()=>{t&&(Ue.removeLayer(t),u?.(),Ue.assignPointerEventToLayers(),Ue.restoreBodyPointerEvents(t))})}),V(ft([()=>t,()=>r.disableOutsidePointerEvents],([u,g])=>{if(!u)return;let f=Ue.find(u);f&&f.isPointerBlocking!==g&&(f.isPointerBlocking=g,Ue.assignPointerEventToLayers()),g&&Ue.disableBodyPointerEvents(u),H(()=>{Ue.restoreBodyPointerEvents(u)})},{defer:!0}));let d={registerNestedLayer:s};return m(ua.Provider,{value:d,get children(){return m(ve,W({as:"div",ref(u){let g=_e(f=>t=f,r.ref);typeof g=="function"&&g(u)}},o))}})}function da(e={}){let[t,n]=zl({value:()=>T(e.open),defaultValue:()=>!!T(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),r=()=>{n(!0)},o=()=>{n(!1)};return{isOpen:t,setIsOpen:n,open:r,close:o,toggle:()=>{t()?o():r()}}}function ga(){let e=Ce(fa);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function lr(){let e=Ce(ha);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function ma(e){let t=or(),n=ga(),r=`${t.generateId("item")}-${Ve()}`,o=ee({id:r},e),[i,s]=ne(o,["value","disabled","onPointerDown"]),[a,l]=q(),[c,d]=q(),[u,g]=q(),[f,h]=q(),[p,y]=q(!1),v=S(()=>n.isSelectedValue(i.value)),b=S(()=>i.disabled||t.isDisabled()||!1),w=I=>{ye(I,i.onPointerDown),p()&&I.preventDefault()},x=S(()=>({...t.dataset(),"data-disabled":b()?"":void 0,"data-checked":v()?"":void 0})),C={value:()=>i.value,dataset:x,isSelected:v,isDisabled:b,inputId:a,labelId:c,descriptionId:u,inputRef:f,select:()=>n.setSelectedValue(i.value),generateId:rr(()=>s.id),registerInput:Je(l),registerLabel:Je(d),registerDescription:Je(g),setIsFocused:y,setInputRef:h};return m(ha.Provider,{value:C,get children(){return m(ve,W({as:"div",role:"group",onPointerDown:w},x,s))}})}function pa(e){let t=lr(),n=ee({id:t.generateId("control")},e),[r,o]=ne(n,["onClick","onKeyDown"]);return m(ve,W({as:"div",onClick:a=>{ye(a,r.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:a=>{ye(a,r.onKeyDown),a.key===Go.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),o))}function ya(e){let t=lr(),n=ee({id:t.generateId("description")},e);return V(()=>H(t.registerDescription(n.id))),m(ve,W({as:"div"},()=>t.dataset(),n))}function va(e){let t=lr(),n=ee({id:t.generateId("indicator")},e),[r,o]=ne(n,["ref","forceMount"]),[i,s]=q(),{present:a}=Wl({show:()=>r.forceMount||t.isSelected(),element:()=>i()??null});return m(U,{get when(){return a()},get children(){return m(ve,W({as:"div",ref(l){let c=_e(s,r.ref);typeof c=="function"&&c(l)}},()=>t.dataset(),o))}})}function ba(e){let t=or(),n=ga(),r=lr(),o=ee({id:r.generateId("input")},e),[i,s]=ne(o,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),a=()=>[i["aria-labelledby"],r.labelId(),i["aria-labelledby"]!=null&&s["aria-label"]!=null?s.id:void 0].filter(Boolean).join(" ")||void 0,l=()=>[i["aria-describedby"],r.descriptionId(),n.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[c,d]=q(!1),u=h=>{if(ye(h,i.onChange),h.stopPropagation(),!c()){n.setSelectedValue(r.value());let p=h.target;p.checked=r.isSelected()}d(!1)},g=h=>{ye(h,i.onFocus),r.setIsFocused(!0)},f=h=>{ye(h,i.onBlur),r.setIsFocused(!1)};return V(ft([()=>r.isSelected(),()=>r.value()],h=>{if(!h[0]&&h[1]===r.value())return;d(!0);let p=r.inputRef();p?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),p?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},{defer:!0})),V(()=>H(r.registerInput(s.id))),m(ve,W({as:"input",ref(h){let p=_e(r.setInputRef,i.ref);typeof p=="function"&&p(h)},type:"radio",get name(){return t.name()},get value(){return r.value()},get checked(){return r.isSelected()},get required(){return t.isRequired()},get disabled(){return r.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return Gr({...Ll},i.style)},get"aria-labelledby"(){return a()},get"aria-describedby"(){return l()},onChange:u,onFocus:g,onBlur:f},()=>r.dataset(),s))}function wa(e){let t=lr(),n=ee({id:t.generateId("label")},e);return V(()=>H(t.registerLabel(n.id))),m(ve,W({as:"label",get for(){return t.inputId()}},()=>t.dataset(),n))}function xa(e){return m(nf,W({as:"span"},e))}function Ca(e){let t,n=`radiogroup-${Ve()}`,r=ee({id:n,orientation:"vertical"},e),[o,i,s]=ne(r,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],ef),[a,l]=ir({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:h=>o.onChange?.(h)}),{formControlContext:c}=tf(i);rf(()=>t,()=>l(o.defaultValue??""));let d=()=>c.getAriaLabelledBy(T(i.id),s["aria-label"],o["aria-labelledby"]),u=()=>c.getAriaDescribedBy(o["aria-describedby"]),g=h=>h===a(),f={ariaDescribedBy:u,isSelectedValue:g,setSelectedValue:h=>{if(!(c.isReadOnly()||c.isDisabled())&&(l(h),t))for(let p of t.querySelectorAll("[type='radio']")){let y=p;y.checked=g(y.value)}}};return m(ql.Provider,{value:c,get children(){return m(fa.Provider,{value:f,get children(){return m(ve,W({as:"div",ref(h){let p=_e(y=>t=y,o.ref);typeof p=="function"&&p(h)},role:"radiogroup",get id(){return T(i.id)},get"aria-invalid"(){return c.validationState()==="invalid"||void 0},get"aria-required"(){return c.isRequired()||void 0},get"aria-disabled"(){return c.isDisabled()||void 0},get"aria-readonly"(){return c.isReadOnly()||void 0},get"aria-orientation"(){return o.orientation},get"aria-labelledby"(){return d()},get"aria-describedby"(){return u()}},()=>c.dataset(),s))}})}})}function Y0(e,t,n){let r=kf({usage:"search",sensitivity:"base"}),o=S(()=>{let i=T(e.keyboardDelegate);return i||new W0(e.collection,t,r)});return Of({selectionManager:()=>T(e.selectionManager),keyboardDelegate:o,autoFocus:()=>T(e.autoFocus),deferAutoFocus:()=>T(e.deferAutoFocus),shouldFocusWrap:()=>T(e.shouldFocusWrap),disallowEmptySelection:()=>T(e.disallowEmptySelection),selectOnFocus:()=>T(e.selectOnFocus),disallowTypeAhead:()=>T(e.disallowTypeAhead),shouldUseVirtualFocus:()=>T(e.shouldUseVirtualFocus),allowsTabNavigation:()=>T(e.allowsTabNavigation),isVirtualized:()=>T(e.isVirtualized),scrollToKey:i=>T(e.scrollToKey)?.(i),orientation:()=>T(e.orientation)},t)}function X0(e,t){let[n,r]=q(!1),o={pause(){r(!0)},resume(){r(!1)}},i=null,s=h=>e.onMountAutoFocus?.(h),a=h=>e.onUnmountAutoFocus?.(h),l=()=>ht(t()),c=()=>{let h=l().createElement("span");return h.setAttribute("data-focus-trap",""),h.tabIndex=0,Object.assign(h.style,Ll),h},d=()=>{let h=t();return h?Il(h,!0).filter(p=>!p.hasAttribute("data-focus-trap")):[]},u=()=>{let h=d();return h.length>0?h[0]:null},g=()=>{let h=d();return h.length>0?h[h.length-1]:null},f=()=>{let h=t();if(!h)return!1;let p=Qn(h);return!p||Ze(h,p)?!1:Fl(p)};V(()=>{if(Oe)return;let h=t();if(!h)return;sl.add(o);let p=Qn(h);if(!Ze(h,p)){let v=new CustomEvent(Mo,il);h.addEventListener(Mo,s),h.dispatchEvent(v),v.defaultPrevented||setTimeout(()=>{Fe(u()),Qn(h)===p&&Fe(h)},0)}H(()=>{h.removeEventListener(Mo,s),setTimeout(()=>{let v=new CustomEvent(Do,il);f()&&v.preventDefault(),h.addEventListener(Do,a),h.dispatchEvent(v),v.defaultPrevented||Fe(p??l().body),h.removeEventListener(Do,a),sl.remove(o)},0)})}),V(()=>{if(Oe)return;let h=t();if(!h||!T(e.trapFocus)||n())return;let p=v=>{let b=v.target;b?.closest(`[${qr}]`)||(Ze(h,b)?i=b:Fe(i))},y=v=>{let w=v.relatedTarget??Qn(h);w?.closest(`[${qr}]`)||Ze(h,w)||Fe(i)};l().addEventListener("focusin",p),l().addEventListener("focusout",y),H(()=>{l().removeEventListener("focusin",p),l().removeEventListener("focusout",y)})}),V(()=>{if(Oe)return;let h=t();if(!h||!T(e.trapFocus)||n())return;let p=c();h.insertAdjacentElement("afterbegin",p);let y=c();h.insertAdjacentElement("beforeend",y);function v(w){let x=u(),C=g();w.relatedTarget===x?Fe(C):Fe(x)}p.addEventListener("focusin",v),y.addEventListener("focusin",v);let b=new MutationObserver(w=>{for(let x of w)x.previousSibling===y&&(y.remove(),h.insertAdjacentElement("beforeend",y)),x.nextSibling===p&&(p.remove(),h.insertAdjacentElement("afterbegin",p))});b.observe(h,{childList:!0,subtree:!1}),H(()=>{p.removeEventListener("focusin",v),y.removeEventListener("focusin",v),p.remove(),y.remove(),b.disconnect()})})}function J0(e){V(()=>{T(e.isDisabled)||H(eg(T(e.targets),T(e.root)))})}function eg(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let g of l.querySelectorAll(`[${Z0}], [${qr}]`))n.add(g);let c=g=>{if(n.has(g)||g.parentElement&&r.has(g.parentElement)&&g.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let f of n)if(g.contains(f))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),u=c(l);if(u===NodeFilter.FILTER_ACCEPT&&i(l),u!==NodeFilter.FILTER_REJECT){let g=d.nextNode();for(;g!=null;)i(g),g=d.nextNode()}},i=l=>{let c=Hn.get(l)??0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),Hn.set(l,c+1))};Ye.length&&Ye[Ye.length-1].disconnect(),o(t);let s=new MutationObserver(l=>{for(let c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&o(d)}});s.observe(t,{childList:!0,subtree:!0});let a={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Ye.push(a),()=>{s.disconnect();for(let l of r){let c=Hn.get(l);if(c==null)return;c===1?(l.removeAttribute("aria-hidden"),Hn.delete(l)):Hn.set(l,c-1)}a===Ye[Ye.length-1]?(Ye.pop(),Ye.length&&Ye[Ye.length-1].observe()):Ye.splice(Ye.indexOf(a),1)}}function $a(){return Ce(Sa)}function Mt(){let e=$a();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function ii(){let e=Ce(ka);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function pt(){let e=Ce(Ea);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function si(e){let t,n=pt(),r=Mt(),o=ee({id:n.generateId(`item-${Ve()}`)},e),[i,s]=ne(o,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[a,l]=q(),[c,d]=q(),[u,g]=q(),f=()=>r.listState().selectionManager(),h=()=>s.id,p=()=>f().focusedKey()===h(),y=()=>{i.onSelect?.(),i.closeOnSelect&&setTimeout(()=>{r.close(!0)})};yf({getItem:()=>({ref:()=>t,type:"item",key:h(),textValue:i.textValue??u()?.textContent??t?.textContent??"",disabled:i.disabled??!1})});let v=Ql({key:h,selectionManager:f,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),b=$=>{ye($,i.onPointerMove),$.pointerType==="mouse"&&(i.disabled?r.onItemLeave($):(r.onItemEnter($),$.defaultPrevented||(Fe($.currentTarget),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(h()))))},w=$=>{ye($,i.onPointerLeave),$.pointerType==="mouse"&&r.onItemLeave($)},x=$=>{ye($,i.onPointerUp),!i.disabled&&$.button===0&&y()},C=$=>{if(ye($,i.onKeyDown),!$.repeat&&!i.disabled)switch($.key){case"Enter":case" ":y();break}},I=S(()=>{if(i.indeterminate)return"mixed";if(i.checked!=null)return i.checked}),O=S(()=>({"data-indeterminate":i.indeterminate?"":void 0,"data-checked":i.checked&&!i.indeterminate?"":void 0,"data-disabled":i.disabled?"":void 0,"data-highlighted":p()?"":void 0})),F={isChecked:()=>i.checked,dataset:O,setLabelRef:g,generateId:rr(()=>s.id),registerLabel:Je(l),registerDescription:Je(d)};return m(ka.Provider,{value:F,get children(){return m(ve,W({as:"div",ref($){let A=_e(B=>t=B,i.ref);typeof A=="function"&&A($)},get tabIndex(){return v.tabIndex()},get"aria-checked"(){return I()},get"aria-disabled"(){return i.disabled},get"aria-labelledby"(){return a()},get"aria-describedby"(){return c()},get"data-key"(){return v.dataKey()},get onPointerDown(){return Te([i.onPointerDown,v.onPointerDown])},get onPointerUp(){return Te([x,v.onPointerUp])},get onClick(){return Te([i.onClick,v.onClick])},get onKeyDown(){return Te([C,v.onKeyDown])},get onMouseDown(){return Te([i.onMouseDown,v.onMouseDown])},get onFocus(){return Te([i.onFocus,v.onFocus])},onPointerMove:b,onPointerLeave:w},O,s))}})}function Ta(e){let t=ee({closeOnSelect:!1},e),[n,r]=ne(t,["checked","defaultChecked","onChange","onSelect"]),o=af({isSelected:()=>n.checked,defaultIsSelected:()=>n.defaultChecked,onSelectedChange:s=>n.onChange?.(s),isDisabled:()=>r.disabled});return m(si,W({role:"menuitemcheckbox",get checked(){return o.isSelected()},onSelect:()=>{n.onSelect?.(),o.toggle()}},r))}function Xr(){return Ce(ug)}function Aa(e){let t=pt(),n=Mt(),r=Xr(),{direction:o}=Vt(),i=ee({id:t.generateId("trigger")},e),[s,a]=ne(i,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]),l=()=>t.value();r!==void 0&&(l=()=>t.value()??s.id,r.lastValue()===void 0&&r.setLastValue(l));let c=jr(()=>n.triggerRef(),()=>"button"),d=S(()=>c()==="a"&&n.triggerRef()?.getAttribute("href")!=null);V(ft(()=>r?.value(),v=>{d()&&v===l()&&n.triggerRef()?.focus()}));let u=()=>{r!==void 0?n.isOpen()?r.value()===l()&&r.closeMenu():(r.autoFocusMenu()||r.setAutoFocusMenu(!0),n.open(!1)):n.toggle(!0)},g=v=>{ye(v,s.onPointerDown),v.currentTarget.dataset.pointerType=v.pointerType,!s.disabled&&v.pointerType!=="touch"&&v.button===0&&u()},f=v=>{ye(v,s.onClick),s.disabled||v.currentTarget.dataset.pointerType==="touch"&&u()},h=v=>{if(ye(v,s.onKeyDown),!s.disabled){if(d())switch(v.key){case"Enter":case" ":return}switch(v.key){case"Enter":case" ":case fl.first(t.orientation()):v.stopPropagation(),v.preventDefault(),Jd(v.currentTarget),n.open("first"),r?.setAutoFocusMenu(!0),r?.setValue(l);break;case fl.last(t.orientation()):v.stopPropagation(),v.preventDefault(),n.open("last");break;case er.next(o(),t.orientation()):if(r===void 0)break;v.stopPropagation(),v.preventDefault(),r.nextMenu();break;case er.previous(o(),t.orientation()):if(r===void 0)break;v.stopPropagation(),v.preventDefault(),r.previousMenu();break}}},p=v=>{ye(v,s.onMouseOver),n.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&r!==void 0&&r.value()!==void 0&&r.setValue(l)},y=v=>{ye(v,s.onFocus),r!==void 0&&v.currentTarget.dataset.pointerType!=="touch"&&r.setValue(l)};return V(()=>H(n.registerTriggerId(s.id))),m(Yo,W({ref(v){let b=_e(n.setTriggerRef,s.ref);typeof b=="function"&&b(v)},get"data-kb-menu-value-trigger"(){return t.value()},get id(){return s.id},get disabled(){return s.disabled},"aria-haspopup":"true",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return S(()=>!!n.isOpen())()?n.contentId():void 0},get"data-highlighted"(){return l()!==void 0&&r?.value()===l()?!0:void 0},get tabIndex(){return r!==void 0?r.value()===l()||r.lastValue()===l()?0:-1:void 0},onPointerDown:g,onMouseOver:p,onClick:f,onKeyDown:h,onFocus:y,role:r!==void 0?"menuitem":void 0},()=>n.dataset(),a))}function Pa(){return Ce(dg)}function Ma(e){let t,n=pt(),r=Mt(),o=Xr(),i=Pa(),{direction:s}=Vt(),a=ee({id:n.generateId(`content-${Ve()}`)},e),[l,c]=ne(a,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),d=0,u=()=>r.parentMenuContext()==null&&o===void 0&&n.isModal(),g=Y0({selectionManager:r.listState().selectionManager,collection:r.listState().collection,autoFocus:r.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!r.listState().selectionManager().isFocused(),orientation:()=>n.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);X0({trapFocus:()=>u()&&r.isOpen(),onMountAutoFocus:w=>{o===void 0&&l.onOpenAutoFocus?.(w)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let f=w=>{if(Ze(w.currentTarget,w.target)&&(w.key==="Tab"&&r.isOpen()&&w.preventDefault(),o!==void 0&&w.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(w.key){case er.next(s(),n.orientation()):w.stopPropagation(),w.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.nextMenu();break;case er.previous(s(),n.orientation()):if(w.currentTarget.hasAttribute("data-closed"))break;w.stopPropagation(),w.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.previousMenu();break}},h=w=>{l.onEscapeKeyDown?.(w),o?.setAutoFocusMenu(!1),r.close(!0)},p=w=>{l.onFocusOutside?.(w),n.isModal()&&w.preventDefault()},y=w=>{ye(w,l.onPointerEnter),r.isOpen()&&(r.parentMenuContext()?.listState().selectionManager().setFocused(!1),r.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},v=w=>{if(ye(w,l.onPointerMove),w.pointerType!=="mouse")return;let x=w.target,C=d!==w.clientX;Ze(w.currentTarget,x)&&C&&(r.setPointerDir(w.clientX>d?"right":"left"),d=w.clientX)};V(()=>H(r.registerContentId(l.id)));let b={ref:_e(w=>{r.setContentRef(w),t=w},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return g.tabIndex()},get"aria-labelledby"(){return r.triggerId()},onKeyDown:Te([l.onKeyDown,g.onKeyDown,f]),onMouseDown:Te([l.onMouseDown,g.onMouseDown]),onFocusIn:Te([l.onFocusIn,g.onFocusIn]),onFocusOut:Te([l.onFocusOut,g.onFocusOut]),onPointerEnter:y,onPointerMove:v,get"data-orientation"(){return n.orientation()}};return m(U,{get when(){return r.contentPresent()},get children(){return m(U,{get when(){return i===void 0||r.parentMenuContext()!=null},get fallback(){return m(ve,W({as:"div"},()=>r.dataset(),b,c))},get children(){return m(ca.Positioner,{get children(){return m(j0,W({get disableOutsidePointerEvents(){return S(()=>!!u())()&&r.isOpen()},get excludedElements(){return[r.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return Gr({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},l.style)},onEscapeKeyDown:h,onFocusOutside:p,get onDismiss(){return r.close}},()=>r.dataset(),b,c))}})}})}})}function fg(e){let t,n=pt(),r=Mt(),[o,i]=ne(e,["ref"]);return cg({element:()=>t??null,enabled:()=>r.contentPresent()&&n.preventScroll()}),m(Ma,W({ref(s){let a=_e(l=>{t=l},o.ref);typeof a=="function"&&a(s)}},i))}function gg(){let e=Ce(Da);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function li(e){let t=pt(),n=ee({id:t.generateId(`group-${Ve()}`)},e),[r,o]=q(),i={generateId:rr(()=>n.id),registerLabelId:Je(o)};return m(Da.Provider,{value:i,get children(){return m(ve,W({as:"div",role:"group",get"aria-labelledby"(){return r()}},n))}})}function Oa(e){let t=gg(),n=ee({id:t.generateId("label")},e),[r,o]=ne(n,["id"]);return V(()=>H(t.registerLabelId(r.id))),m(ve,W({as:"span",get id(){return r.id},"aria-hidden":"true"},o))}function Ia(e){let t=Mt(),n=ee({children:"\u25BC"},e);return m(ve,W({as:"span","aria-hidden":"true"},()=>t.dataset(),n))}function Fa(e){return m(si,W({role:"menuitem",closeOnSelect:!0},e))}function La(e){let t=ii(),n=ee({id:t.generateId("description")},e),[r,o]=ne(n,["id"]);return V(()=>H(t.registerDescription(r.id))),m(ve,W({as:"div",get id(){return r.id}},()=>t.dataset(),o))}function qa(e){let t=ii(),n=ee({id:t.generateId("indicator")},e),[r,o]=ne(n,["forceMount"]);return m(U,{get when(){return r.forceMount||t.isChecked()},get children(){return m(ve,W({as:"div"},()=>t.dataset(),o))}})}function _a(e){let t=ii(),n=ee({id:t.generateId("label")},e),[r,o]=ne(n,["ref","id"]);return V(()=>H(t.registerLabel(r.id))),m(ve,W({as:"div",ref(i){let s=_e(t.setLabelRef,r.ref);typeof s=="function"&&s(i)},get id(){return r.id}},()=>t.dataset(),o))}function Ra(e){let t=Mt();return m(U,{get when(){return t.contentPresent()},get children(){return m(So,e)}})}function hg(){let e=Ce(za);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Na(e){let n=pt().generateId(`radiogroup-${Ve()}`),r=ee({id:n},e),[o,i]=ne(r,["value","defaultValue","onChange","disabled"]),[s,a]=ir({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:c=>o.onChange?.(c)}),l={isDisabled:()=>o.disabled,isSelectedValue:c=>c===s(),setSelectedValue:a};return m(za.Provider,{value:l,get children(){return m(li,i)}})}function Ba(e){let t=hg(),n=ee({closeOnSelect:!1},e),[r,o]=ne(n,["value","onSelect"]);return m(si,W({role:"menuitemradio",get checked(){return t.isSelectedValue(r.value)},onSelect:()=>{r.onSelect?.(),t.setSelectedValue(r.value)}},o))}function mg(e,t,n){let r=e.split("-")[0],o=n.getBoundingClientRect(),i=[],s=t.clientX,a=t.clientY;switch(r){case"top":i.push([s,a+5]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]);break;case"right":i.push([s-5,a]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]);break;case"bottom":i.push([s,a-5]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]);break;case"left":i.push([s+5,a]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]);break}return i}function pg(e,t){return t?Zd([e.clientX,e.clientY],t):!1}function Ka(e){let t=pt(),n=Bl(),r=$a(),o=Xr(),i=Pa(),s=ee({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[a,l]=ne(s,["open","defaultOpen","onOpenChange"]),c=0,d=null,u="right",[g,f]=q(),[h,p]=q(),[y,v]=q(),[b,w]=q(),[x,C]=q(!0),[I,O]=q(l.placement),[F,$]=q([]),[A,B]=q([]),{DomCollectionProvider:N}=pf({items:A,onItemsChange:B}),J=da({open:()=>a.open,defaultOpen:()=>a.defaultOpen,onOpenChange:Q=>a.onOpenChange?.(Q)}),{present:se}=Wl({show:()=>t.forceMount()||J.isOpen(),element:()=>b()??null}),he=Ff({selectionMode:"none",dataSource:A}),de=Q=>{C(Q),J.open()},ae=(Q=!1)=>{J.close(),Q&&r&&r.close(!0)},fe=Q=>{C(Q),J.toggle()},me=()=>{let Q=b();Q&&(Fe(Q),he.selectionManager().setFocused(!0),he.selectionManager().setFocusedKey(void 0))},$e=()=>{i!=null?setTimeout(()=>me()):me()},Re=Q=>{$(Me=>[...Me,Q]);let nt=r?.registerNestedMenu(Q);return()=>{$(Me=>Lo(Me,Q)),nt?.()}},we=Q=>u===d?.side&&pg(Q,d?.area),Le=Q=>{we(Q)&&Q.preventDefault()},D=Q=>{we(Q)||$e()},be=Q=>{we(Q)&&Q.preventDefault()};J0({isDisabled:()=>!(r==null&&J.isOpen()&&t.isModal()),targets:()=>[b(),...F()].filter(Boolean)}),V(()=>{let Q=b();if(!Q||!r)return;let nt=r.registerNestedMenu(Q);H(()=>{nt()})}),V(()=>{r===void 0&&o?.registerMenu(t.value(),[b(),...F()])}),V(()=>{r!==void 0||o===void 0||(o.value()===t.value()?(y()?.focus(),o.autoFocusMenu()&&de(!0)):ae())}),V(()=>{r!==void 0||o===void 0||J.isOpen()&&o.setValue(t.value())}),H(()=>{r===void 0&&o?.unregisterMenu(t.value())});let Ot={dataset:S(()=>({"data-expanded":J.isOpen()?"":void 0,"data-closed":J.isOpen()?void 0:""})),isOpen:J.isOpen,contentPresent:se,nestedMenus:F,currentPlacement:I,pointerGraceTimeoutId:()=>c,autoFocus:x,listState:()=>he,parentMenuContext:()=>r,triggerRef:y,contentRef:b,triggerId:g,contentId:h,setTriggerRef:v,setContentRef:w,open:de,close:ae,toggle:fe,focusContent:$e,onItemEnter:Le,onItemLeave:D,onTriggerLeave:be,setPointerDir:Q=>u=Q,setPointerGraceTimeoutId:Q=>c=Q,setPointerGraceIntent:Q=>d=Q,registerNestedMenu:Re,registerItemToParentDomCollection:n?.registerItem,registerTriggerId:Je(f),registerContentId:Je(p)};return m(N,{get children(){return m(Sa.Provider,{value:Ot,get children(){return m(U,{when:i===void 0,get fallback(){return l.children},get children(){return m(ca,W({anchorRef:y,contentRef:b,onCurrentPlacementChange:O},l))}})}})}})}function Va(e){let{direction:t}=Vt();return m(Ka,W({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function Ua(e){let t=Mt(),n=pt(),[r,o]=ne(e,["onFocusOutside","onKeyDown"]),{direction:i}=Vt();return m(Ma,W({onOpenAutoFocus:d=>{d.preventDefault()},onCloseAutoFocus:d=>{d.preventDefault()},onFocusOutside:d=>{r.onFocusOutside?.(d);let u=d.target;Ze(t.triggerRef(),u)||t.close()},onKeyDown:d=>{ye(d,r.onKeyDown);let u=Ze(d.currentTarget,d.target),g=yg.close(i(),n.orientation()).includes(d.key),f=t.parentMenuContext()!=null;u&&g&&f&&(t.close(),Fe(t.triggerRef()))}},o))}function Ga(e){let t,n=pt(),r=Mt(),o=ee({id:n.generateId(`sub-trigger-${Ve()}`)},e),[i,s]=ne(o,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),a=null,l=()=>{Oe||(a&&window.clearTimeout(a),a=null)},{direction:c}=Vt(),d=()=>i.id,u=()=>{let w=r.parentMenuContext();if(w==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return w.listState().selectionManager()},g=()=>r.listState().collection(),f=()=>u().focusedKey()===d(),h=Ql({key:d,selectionManager:u,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),p=w=>{ye(w,i.onClick),!r.isOpen()&&!i.disabled&&r.open(!0)},y=w=>{if(ye(w,i.onPointerMove),w.pointerType!=="mouse")return;let x=r.parentMenuContext();if(x?.onItemEnter(w),!w.defaultPrevented){if(i.disabled){x?.onItemLeave(w);return}!r.isOpen()&&!a&&(r.parentMenuContext()?.setPointerGraceIntent(null),a=window.setTimeout(()=>{r.open(!1),l()},100)),x?.onItemEnter(w),w.defaultPrevented||(r.listState().selectionManager().isFocused()&&(r.listState().selectionManager().setFocused(!1),r.listState().selectionManager().setFocusedKey(void 0)),Fe(w.currentTarget),x?.listState().selectionManager().setFocused(!0),x?.listState().selectionManager().setFocusedKey(d()))}},v=w=>{if(ye(w,i.onPointerLeave),w.pointerType!=="mouse")return;l();let x=r.parentMenuContext(),C=r.contentRef();if(C){x?.setPointerGraceIntent({area:mg(r.currentPlacement(),w,C),side:r.currentPlacement().split("-")[0]}),window.clearTimeout(x?.pointerGraceTimeoutId());let I=window.setTimeout(()=>{x?.setPointerGraceIntent(null)},300);x?.setPointerGraceTimeoutId(I)}else{if(x?.onTriggerLeave(w),w.defaultPrevented)return;x?.setPointerGraceIntent(null)}x?.onItemLeave(w)},b=w=>{ye(w,i.onKeyDown),!w.repeat&&(i.disabled||vg.open(c(),n.orientation()).includes(w.key)&&(w.stopPropagation(),w.preventDefault(),u().setFocused(!1),u().setFocusedKey(void 0),r.isOpen()||r.open("first"),r.focusContent(),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(g().getFirstKey())))};return V(()=>{if(r.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let w=r.registerItemToParentDomCollection({ref:()=>t,type:"item",key:d(),textValue:i.textValue??t?.textContent??"",disabled:i.disabled??!1});H(w)}),V(ft(()=>r.parentMenuContext()?.pointerGraceTimeoutId(),w=>{H(()=>{window.clearTimeout(w),r.parentMenuContext()?.setPointerGraceIntent(null)})})),V(()=>H(r.registerTriggerId(i.id))),H(()=>{l()}),m(ve,W({as:"div",ref(w){let x=_e(C=>{r.setTriggerRef(C),t=C},i.ref);typeof x=="function"&&x(w)},get id(){return i.id},role:"menuitem",get tabIndex(){return h.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return S(()=>!!r.isOpen())()?r.contentId():void 0},get"aria-disabled"(){return i.disabled},get"data-key"(){return h.dataKey()},get"data-highlighted"(){return f()?"":void 0},get"data-disabled"(){return i.disabled?"":void 0},get onPointerDown(){return Te([i.onPointerDown,h.onPointerDown])},get onPointerUp(){return Te([i.onPointerUp,h.onPointerUp])},get onClick(){return Te([p,h.onClick])},get onKeyDown(){return Te([b,h.onKeyDown])},get onMouseDown(){return Te([i.onMouseDown,h.onMouseDown])},get onFocus(){return Te([i.onFocus,h.onFocus])},onPointerMove:y,onPointerLeave:v},()=>r.dataset(),s))}function bg(e){let t=Xr(),n=`menu-${Ve()}`,r=ee({id:n,modal:!0},e),[o,i]=ne(r,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=da({open:()=>o.open,defaultOpen:()=>o.defaultOpen,onOpenChange:l=>o.onOpenChange?.(l)}),a={isModal:()=>o.modal??!0,preventScroll:()=>o.preventScroll??a.isModal(),forceMount:()=>o.forceMount??!1,generateId:rr(()=>o.id),value:()=>o.value,orientation:()=>o.orientation??t?.orientation()??"horizontal"};return m(Ea.Provider,{value:a,get children(){return m(Ka,W({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},i))}})}function Zr(e){let t,n=ee({orientation:"horizontal"},e),[r,o]=ne(n,["ref","orientation"]),i=jr(()=>t,()=>"hr");return m(ve,W({as:"hr",ref(s){let a=_e(l=>t=l,r.ref);typeof a=="function"&&a(s)},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},o))}function Ha(e){let t=pt(),n=Mt(),[r,o]=ne(e,["onCloseAutoFocus","onInteractOutside"]),i=!1;return m(fg,W({onCloseAutoFocus:l=>{r.onCloseAutoFocus?.(l),i||Fe(n.triggerRef()),i=!1,l.preventDefault()},onInteractOutside:l=>{r.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(i=!0)}},o))}function ja(e){let t=`dropdownmenu-${Ve()}`,n=ee({id:t},e);return m(bg,n)}function Ug(){return Sg()}function Wa(){return $g()}function Yn(){return kg()}function hl(){return Eg()}function ml(){return ai()}function Gg(){return(()=>{var e=ai();return e.style.setProperty("transform","rotate(90deg)"),e})()}function Hg(){return(()=>{var e=ai();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function jg(){return Tg()}function Qg(){return Ag()}function Wg(){return Pg()}function Yg(){return Mg()}function Xg(){return Dg()}function Zg(){return Og()}function Jg(){return Ig()}function eh(){return Fg()}function th(){return Lg()}function nh(e){return(()=>{var t=Qa(),n=t.firstChild;return K(()=>P(n,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function rh(){return qg()}function oh(){return _g()}function ih(e){return[m(U,{get when(){return e.checked},get children(){var t=Qa(),n=t.firstChild;return K(()=>P(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),m(U,{get when(){return!e.checked},get children(){var t=Rg(),n=t.firstChild;return K(()=>P(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function sh(){return zg()}function lh(){return Ng()}function ah(){return Bg()}function ch(){return Kg()}function pl(){let e=Ve();return(()=>{var t=Vg(),n=t.firstChild,r=n.nextSibling,o=r.nextSibling,i=o.firstChild,s=o.nextSibling,a=s.firstChild,l=s.nextSibling,c=l.nextSibling,d=c.firstChild,u=c.nextSibling,g=u.firstChild,f=u.nextSibling,h=f.nextSibling,p=h.firstChild,y=h.nextSibling,v=y.firstChild,b=y.nextSibling,w=b.nextSibling,x=w.firstChild,C=w.nextSibling,I=C.firstChild,O=C.nextSibling,F=O.nextSibling,$=F.firstChild,A=F.nextSibling,B=A.firstChild,N=A.nextSibling,J=N.nextSibling,se=J.firstChild,he=J.nextSibling,de=he.firstChild,ae=he.nextSibling,fe=ae.nextSibling,me=fe.firstChild,$e=fe.nextSibling,Re=$e.firstChild,we=$e.nextSibling,Le=we.firstChild,D=Le.nextSibling,be=D.nextSibling,re=be.nextSibling,Ot=re.nextSibling,Q=we.nextSibling,nt=Q.firstChild,Me=Q.nextSibling,sn=Me.firstChild,Qe=Me.nextSibling,It=Qe.firstChild,Gt=It.nextSibling,vt=Gt.nextSibling,ct=vt.firstChild,bt=ct.nextSibling,_=bt.nextSibling,ce=_.nextSibling,qe=ce.nextSibling,ge=qe.nextSibling,le=ge.nextSibling,pe=le.nextSibling,ke=pe.nextSibling,ie=ke.nextSibling,wt=ie.nextSibling,xt=wt.nextSibling,rt=Qe.nextSibling,Ht=rt.firstChild,Ct=rt.nextSibling,jt=Ct.firstChild,St=Ct.nextSibling,Ft=St.firstChild,ur=Ft.nextSibling,Tn=St.nextSibling,dr=Tn.firstChild,ln=Tn.nextSibling,fr=ln.firstChild,An=ln.nextSibling,Pn=An.firstChild,Mn=Pn.nextSibling,an=Mn.nextSibling,fi=an.nextSibling,gi=fi.nextSibling,hi=gi.nextSibling,mi=hi.nextSibling,pi=mi.nextSibling,yi=pi.nextSibling,vi=yi.nextSibling,bi=vi.nextSibling,wi=bi.nextSibling,xi=wi.nextSibling,Ci=xi.nextSibling,Si=Ci.nextSibling,$i=Si.nextSibling,ki=$i.nextSibling,Ec=ki.nextSibling;return P(n,"id",`a-${e}`),P(r,"fill",`url(#a-${e})`),P(i,"id",`am-${e}`),P(s,"id",`b-${e}`),P(a,"filter",`url(#am-${e})`),P(l,"mask",`url(#b-${e})`),P(d,"id",`ah-${e}`),P(u,"id",`k-${e}`),P(g,"filter",`url(#ah-${e})`),P(f,"mask",`url(#k-${e})`),P(p,"id",`ae-${e}`),P(y,"id",`j-${e}`),P(v,"filter",`url(#ae-${e})`),P(b,"mask",`url(#j-${e})`),P(x,"id",`ai-${e}`),P(C,"id",`i-${e}`),P(I,"filter",`url(#ai-${e})`),P(O,"mask",`url(#i-${e})`),P($,"id",`aj-${e}`),P(A,"id",`h-${e}`),P(B,"filter",`url(#aj-${e})`),P(N,"mask",`url(#h-${e})`),P(se,"id",`ag-${e}`),P(he,"id",`g-${e}`),P(de,"filter",`url(#ag-${e})`),P(ae,"mask",`url(#g-${e})`),P(me,"id",`af-${e}`),P($e,"id",`f-${e}`),P(Re,"filter",`url(#af-${e})`),P(we,"mask",`url(#f-${e})`),P(re,"id",`m-${e}`),P(Ot,"fill",`url(#m-${e})`),P(nt,"id",`ak-${e}`),P(Me,"id",`e-${e}`),P(sn,"filter",`url(#ak-${e})`),P(Qe,"mask",`url(#e-${e})`),P(It,"id",`n-${e}`),P(Gt,"fill",`url(#n-${e})`),P(ct,"id",`r-${e}`),P(bt,"fill",`url(#r-${e})`),P(_,"id",`s-${e}`),P(ce,"fill",`url(#s-${e})`),P(qe,"id",`q-${e}`),P(ge,"fill",`url(#q-${e})`),P(le,"id",`p-${e}`),P(pe,"fill",`url(#p-${e})`),P(ke,"id",`o-${e}`),P(ie,"fill",`url(#o-${e})`),P(wt,"id",`l-${e}`),P(xt,"fill",`url(#l-${e})`),P(Ht,"id",`al-${e}`),P(Ct,"id",`d-${e}`),P(jt,"filter",`url(#al-${e})`),P(St,"mask",`url(#d-${e})`),P(Ft,"id",`u-${e}`),P(ur,"fill",`url(#u-${e})`),P(dr,"id",`ad-${e}`),P(ln,"id",`c-${e}`),P(fr,"filter",`url(#ad-${e})`),P(An,"mask",`url(#c-${e})`),P(Pn,"id",`t-${e}`),P(Mn,"fill",`url(#t-${e})`),P(an,"id",`v-${e}`),P(fi,"stroke",`url(#v-${e})`),P(gi,"id",`aa-${e}`),P(hi,"stroke",`url(#aa-${e})`),P(mi,"id",`w-${e}`),P(pi,"stroke",`url(#w-${e})`),P(yi,"id",`ac-${e}`),P(vi,"stroke",`url(#ac-${e})`),P(bi,"id",`ab-${e}`),P(wi,"stroke",`url(#ab-${e})`),P(xi,"id",`y-${e}`),P(Ci,"stroke",`url(#y-${e})`),P(Si,"id",`x-${e}`),P($i,"stroke",`url(#x-${e})`),P(ki,"id",`z-${e}`),P(Ec,"stroke",`url(#z-${e})`),t})()}function wh(e,t){let n=0,r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n=n+t;return r}function wl(e){return Symbol.iterator in e}function Rt(e){let t=Ae(),n=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,r=S(()=>t()==="dark"?$n(n):Sn(n)),o=G().client,[i,s]=q((e.defaultExpanded||[]).includes(e.label)),a=()=>s(h=>!h),[l,c]=q([]),d=S(()=>Array.isArray(e.value)?e.value.map((h,p)=>({label:p.toString(),value:h})):e.value!==null&&typeof e.value=="object"&&wl(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([h,p])=>({label:h,value:p})):Array.from(e.value,(h,p)=>({label:p.toString(),value:h})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([h,p])=>({label:h,value:p})):[]),u=S(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&wl(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),g=S(()=>wh(d(),100)),f=e.dataPath??[];return(()=>{var h=jn();return k(h,m(U,{get when(){return g().length},get children(){return[(()=>{var p=ph(),y=p.firstChild,v=y.firstChild,b=v.nextSibling,w=b.nextSibling,x=w.nextSibling,C=x.firstChild;return y.$$click=()=>a(),k(y,m(vl,{get expanded(){return i()}}),v),k(b,()=>e.label),k(x,()=>String(u()).toLowerCase()==="iterable"?"(Iterable) ":"",C),k(x,()=>d().length,C),k(x,()=>d().length>1?"items":"item",null),k(p,m(U,{get when(){return e.editable},get children(){var I=jn();return k(I,m(xh,{get value(){return e.value}}),null),k(I,m(U,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return m(bl,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),k(I,m(U,{get when(){return u()==="array"&&e.activeQuery!==void 0},get children(){return m(Ch,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),k(I,m(U,{get when(){return S(()=>!!e.onEdit)()&&!$o(e.value).meta},get children(){var O=mh();return O.$$click=()=>{e.onEdit?.()},k(O,m(th,{})),K(()=>M(O,r().actionButton)),O}}),null),K(()=>M(I,r().actions)),I}}),null),K(I=>{var O=r().expanderButtonContainer,F=r().expanderButton,$=r().info;return O!==I.e&&M(p,I.e=O),F!==I.t&&M(y,I.t=F),$!==I.a&&M(x,I.a=$),I},{e:void 0,t:void 0,a:void 0}),p})(),m(U,{get when(){return i()},get children(){return[m(U,{get when(){return g().length===1},get children(){var p=jn();return k(p,m(Lr,{get each(){return d()},by:y=>y.label,children:y=>m(Rt,{get defaultExpanded(){return e.defaultExpanded},get label(){return y().label},get value(){return y().value},get editable(){return e.editable},get dataPath(){return[...f,y().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return u()==="array"||u()==="Iterable"||u()==="object"}})})),K(()=>M(p,r().subEntry)),p}}),m(U,{get when(){return g().length>1},get children(){var p=jn();return k(p,m(ts,{get each(){return g()},children:(y,v)=>(()=>{var b=bh(),w=b.firstChild,x=w.firstChild,C=x.firstChild,I=C.nextSibling,O=I.nextSibling,F=O.nextSibling;return F.nextSibling,x.$$click=()=>c($=>$.includes(v)?$.filter(A=>A!==v):[...$,v]),k(x,m(vl,{get expanded(){return l().includes(v)}}),C),k(x,v*100,I),k(x,v*100+100-1,F),k(w,m(U,{get when(){return l().includes(v)},get children(){var $=jn();return k($,m(Lr,{get each(){return y()},by:A=>A.label,children:A=>m(Rt,{get defaultExpanded(){return e.defaultExpanded},get label(){return A().label},get value(){return A().value},get editable(){return e.editable},get dataPath(){return[...f,A().label]},get activeQuery(){return e.activeQuery}})})),K(()=>M($,r().subEntry)),$}}),null),K($=>{var A=r().entry,B=r().expanderButton;return A!==$.e&&M(w,$.e=A),B!==$.t&&M(x,$.t=B),$},{e:void 0,t:void 0}),b})()})),K(()=>M(p,r().subEntry)),p}})]}})]}}),null),k(h,m(U,{get when(){return g().length===0},get children(){var p=vh(),y=p.firstChild,v=y.firstChild;return k(y,()=>e.label,v),k(p,m(U,{get when(){return S(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(u()==="string"||u()==="number"||u()==="boolean")},get fallback(){return(()=>{var b=yl();return k(b,()=>Vn(e.value)),K(()=>M(b,r().value)),b})()},get children(){return[m(U,{get when(){return S(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(u()==="string"||u()==="number")},get children(){var b=yh();return b.addEventListener("change",w=>{let x=e.activeQuery.state.data,C=Lt(x,f,u()==="number"?w.target.valueAsNumber:w.target.value);o.setQueryData(e.activeQuery.queryKey,C)}),K(w=>{var x=u()==="number"?"number":"text",C=R(r().value,r().editableInput);return x!==w.e&&P(b,"type",w.e=x),C!==w.t&&M(b,w.t=C),w},{e:void 0,t:void 0}),K(()=>b.value=e.value),b}}),m(U,{get when(){return u()==="boolean"},get children(){var b=yl();return k(b,m(Sh,{get activeQuery(){return e.activeQuery},dataPath:f,get value(){return e.value}}),null),k(b,()=>Vn(e.value),null),K(()=>M(b,R(r().value,r().actions,r().editableInput))),b}})]}}),null),k(p,m(U,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return m(bl,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),K(b=>{var w=r().row,x=r().label;return w!==b.e&&M(p,b.e=w),x!==b.t&&M(y,b.t=x),b},{e:void 0,t:void 0}),p}}),null),K(()=>M(h,r().entry)),h})()}var Hu,ju,As,Qu,Wu,T,Oo,Zu,Kr,td,Ps,We,nd,en,Vo,rd,Io,Vr,od,Sl,id,$l,sd,Ms,ld,tr,kl,Ur,Uo,nr,El,ad,cd,Be,Fs,pd,yd,vd,bd,Ls,Jt,kt,Tl,wd,xd,qs,_s,To,Dd,Go,Or,Ol,Ud,jo,Gd,Gn,Ks,Ll,ef,ql,cf,Qr,Nl,bf,wf,_o,Wn,$f,Ao,Et,If,Qs,Ie,Lf,qf,Wl,qr,Yl,Ro,At,Ue,Gf,Hf,Qf,Wf,gt,He,_r,Ir,Nt,Yf,Xf,r0,o0,i0,s0,a0,c0,u0,g0,$0,aa,A0,P0,M0,D0,O0,I0,F0,ni,L0,Bo,tl,q0,B0,ca,rl,ol,ua,Xe,fa,ha,Q0,W0,Mo,Do,il,sl,Z0,Hn,Ye,Fr,tg,ll,ng,rg,og,al,cl,ig,sg,lg,ul,dl,Ko,ag,cg,Sa,ka,Ea,ug,er,fl,dg,Da,za,yg,gl,vg,wg,xg,Se,Cg,E,Sg,$g,kg,Eg,ai,Tg,Ag,Pg,Mg,Dg,Og,Ig,Fg,Lg,Qa,qg,_g,Rg,zg,Ng,Bg,Kg,Vg,uh,dh,fh,gh,hh,mh,jn,ph,yh,yl,vh,bh,vl,xh,Ch,bl,Sh,Ya,Sn,$n,$h,ar,kh,Eh,Th,Ah,Ph,Mh,Dh,Oh,Ih,Fh,Lh,qh,_h,Rh,zh,Nh,Bh,Kh,Vh,xl,Uh,Xa,Gh,Hh,jh,Qh,Wh,Yh,Xh,Zh,Jh,e1,Ge,Jr,zt,Za,it,ci,pn,Cl,Ja,t1,ec,n1,eo,r1,o1,i1,s1,Tt,l1,a1,Nr,c1,Pe,Br,u1,ot,tc,et,tt,ui=Dn(()=>{"use strict";te();Un();Hu=!Oe,ju=Hu&&!!rs,As=()=>{},Qu=e=>e!=null,Wu=e=>e.filter(Qu);T=e=>typeof e=="function"&&!e.length?e():e,Oo=e=>Array.isArray(e)?e:e?[e]:[];Zu=ju?e=>xr()?H(e):e:H;Kr=ed,td=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),Ps=e=>{if(!e)return"";let t="";for(let n in e){if(!e.hasOwnProperty(n))continue;let r=e[n];t+=r instanceof Date?`; ${n}=${r.toUTCString()}`:typeof r=="boolean"?`; ${n}`:`; ${n}=${r}`}return t},We=td({_cookies:[globalThis.document,"cookie"],getItem:e=>We._cookies[0][We._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,n)=>{let r=We.getItem(e);We._cookies[0][We._cookies[1]]=`${e}=${t}${Ps(n)}`;let o=Object.assign(new Event("storage"),{key:e,oldValue:r,newValue:t,url:globalThis.document.URL,storageArea:We});window.dispatchEvent(o)},removeItem:e=>{We._cookies[0][We._cookies[1]]=`${e}=deleted${Ps({expires:new Date(0)})}`},key:e=>{let t=null,n=0;return We._cookies[0][We._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(r,o)=>(!t&&o&&n++===e&&(t=o),"")),t},get length(){let e=0;return We._cookies[0][We._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),nd=1024,en=796,Vo=700,rd="bottom-right",Io="bottom",Vr="system",od=!1,Sl=500,id=500,$l=500,sd=Object.keys(Pr)[0],Ms=1,ld=Object.keys(Mr)[0],tr=Ee({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});kl=Ee(void 0),Ur=e=>{let[t,n]=q(null),r=()=>{let s=t();s!=null&&(s.close(),n(null))},o=(s,a)=>{if(t()!=null)return;let l=window.open("","TSQD-Devtools-Panel",`width=${s},height=${a},popup`);if(!l)throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");l.document.head.innerHTML="",l.document.body.innerHTML="",os(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),n(null)}),[...(G().shadowDOMTarget||document).styleSheets].forEach(c=>{try{let d=[...c.cssRules].map(h=>h.cssText).join(""),u=document.createElement("style"),g=c.ownerNode,f="";g&&"id"in g&&(f=g.id),f&&u.setAttribute("id",f),u.textContent=d,l.document.head.appendChild(u)}catch{let u=document.createElement("link");if(c.href==null)return;u.rel="stylesheet",u.type=c.type,u.media=c.media.toString(),u.href=c.href,l.document.head.appendChild(u)}}),Kn(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),n(l)};V(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&o(Number(window.innerWidth),Number(e.localStore.height||id))}),V(()=>{let s=(G().shadowDOMTarget||document).querySelector("#_goober"),a=t();if(s&&a){let l=new MutationObserver(()=>{let c=(G().shadowDOMTarget||a.document).querySelector("#_goober");c&&(c.textContent=s.textContent)});l.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),H(()=>{l.disconnect()})}});let i=S(()=>({pipWindow:t(),requestPipWindow:o,closePipWindow:r,disabled:e.disabled??!1}));return m(kl.Provider,{value:i,get children(){return e.children}})},Uo=()=>S(()=>{let t=Ce(kl);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),nr=Ee(()=>"dark");El={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u1EA4:"A",\u1EAE:"A",\u1EB2:"A",\u1EB4:"A",\u1EB6:"A",\u00C6:"AE",\u1EA6:"A",\u1EB0:"A",\u0202:"A",\u00C7:"C",\u1E08:"C",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u1EBE:"E",\u1E16:"E",\u1EC0:"E",\u1E14:"E",\u1E1C:"E",\u0206:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u1E2E:"I",\u020A:"I",\u00D0:"D",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u1ED0:"O",\u1E4C:"O",\u1E52:"O",\u020E:"O",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00DD:"Y",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u1EA5:"a",\u1EAF:"a",\u1EB3:"a",\u1EB5:"a",\u1EB7:"a",\u00E6:"ae",\u1EA7:"a",\u1EB1:"a",\u0203:"a",\u00E7:"c",\u1E09:"c",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u1EBF:"e",\u1E17:"e",\u1EC1:"e",\u1E15:"e",\u1E1D:"e",\u0207:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u1E2F:"i",\u020B:"i",\u00F0:"d",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u1ED1:"o",\u1E4D:"o",\u1E53:"o",\u020F:"o",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00FD:"y",\u00FF:"y",\u0100:"A",\u0101:"a",\u0102:"A",\u0103:"a",\u0104:"A",\u0105:"a",\u0106:"C",\u0107:"c",\u0108:"C",\u0109:"c",\u010A:"C",\u010B:"c",\u010C:"C",\u010D:"c",C\u0306:"C",c\u0306:"c",\u010E:"D",\u010F:"d",\u0110:"D",\u0111:"d",\u0112:"E",\u0113:"e",\u0114:"E",\u0115:"e",\u0116:"E",\u0117:"e",\u0118:"E",\u0119:"e",\u011A:"E",\u011B:"e",\u011C:"G",\u01F4:"G",\u011D:"g",\u01F5:"g",\u011E:"G",\u011F:"g",\u0120:"G",\u0121:"g",\u0122:"G",\u0123:"g",\u0124:"H",\u0125:"h",\u0126:"H",\u0127:"h",\u1E2A:"H",\u1E2B:"h",\u0128:"I",\u0129:"i",\u012A:"I",\u012B:"i",\u012C:"I",\u012D:"i",\u012E:"I",\u012F:"i",\u0130:"I",\u0131:"i",\u0132:"IJ",\u0133:"ij",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u1E30:"K",\u1E31:"k",K\u0306:"K",k\u0306:"k",\u0139:"L",\u013A:"l",\u013B:"L",\u013C:"l",\u013D:"L",\u013E:"l",\u013F:"L",\u0140:"l",\u0141:"l",\u0142:"l",\u1E3E:"M",\u1E3F:"m",M\u0306:"M",m\u0306:"m",\u0143:"N",\u0144:"n",\u0145:"N",\u0146:"n",\u0147:"N",\u0148:"n",\u0149:"n",N\u0306:"N",n\u0306:"n",\u014C:"O",\u014D:"o",\u014E:"O",\u014F:"o",\u0150:"O",\u0151:"o",\u0152:"OE",\u0153:"oe",P\u0306:"P",p\u0306:"p",\u0154:"R",\u0155:"r",\u0156:"R",\u0157:"r",\u0158:"R",\u0159:"r",R\u0306:"R",r\u0306:"r",\u0212:"R",\u0213:"r",\u015A:"S",\u015B:"s",\u015C:"S",\u015D:"s",\u015E:"S",\u0218:"S",\u0219:"s",\u015F:"s",\u0160:"S",\u0161:"s",\u0162:"T",\u0163:"t",\u021B:"t",\u021A:"T",\u0164:"T",\u0165:"t",\u0166:"T",\u0167:"t",T\u0306:"T",t\u0306:"t",\u0168:"U",\u0169:"u",\u016A:"U",\u016B:"u",\u016C:"U",\u016D:"u",\u016E:"U",\u016F:"u",\u0170:"U",\u0171:"u",\u0172:"U",\u0173:"u",\u0216:"U",\u0217:"u",V\u0306:"V",v\u0306:"v",\u0174:"W",\u0175:"w",\u1E82:"W",\u1E83:"w",X\u0306:"X",x\u0306:"x",\u0176:"Y",\u0177:"y",\u0178:"Y",Y\u0306:"Y",y\u0306:"y",\u0179:"Z",\u017A:"z",\u017B:"Z",\u017C:"z",\u017D:"Z",\u017E:"z",\u017F:"s",\u0192:"f",\u01A0:"O",\u01A1:"o",\u01AF:"U",\u01B0:"u",\u01CD:"A",\u01CE:"a",\u01CF:"I",\u01D0:"i",\u01D1:"O",\u01D2:"o",\u01D3:"U",\u01D4:"u",\u01D5:"U",\u01D6:"u",\u01D7:"U",\u01D8:"u",\u01D9:"U",\u01DA:"u",\u01DB:"U",\u01DC:"u",\u1EE8:"U",\u1EE9:"u",\u1E78:"U",\u1E79:"u",\u01FA:"A",\u01FB:"a",\u01FC:"AE",\u01FD:"ae",\u01FE:"O",\u01FF:"o",\u00DE:"TH",\u00FE:"th",\u1E54:"P",\u1E55:"p",\u1E64:"S",\u1E65:"s",X\u0301:"X",x\u0301:"x",\u0403:"\u0413",\u0453:"\u0433",\u040C:"\u041A",\u045C:"\u043A",A\u030B:"A",a\u030B:"a",E\u030B:"E",e\u030B:"e",I\u030B:"I",i\u030B:"i",\u01F8:"N",\u01F9:"n",\u1ED2:"O",\u1ED3:"o",\u1E50:"O",\u1E51:"o",\u1EEA:"U",\u1EEB:"u",\u1E80:"W",\u1E81:"w",\u1EF2:"Y",\u1EF3:"y",\u0200:"A",\u0201:"a",\u0204:"E",\u0205:"e",\u0208:"I",\u0209:"i",\u020C:"O",\u020D:"o",\u0210:"R",\u0211:"r",\u0214:"U",\u0215:"u",B\u030C:"B",b\u030C:"b",\u010C\u0323:"C",\u010D\u0323:"c",\u00CA\u030C:"E",\u00EA\u030C:"e",F\u030C:"F",f\u030C:"f",\u01E6:"G",\u01E7:"g",\u021E:"H",\u021F:"h",J\u030C:"J",\u01F0:"j",\u01E8:"K",\u01E9:"k",M\u030C:"M",m\u030C:"m",P\u030C:"P",p\u030C:"p",Q\u030C:"Q",q\u030C:"q",\u0158\u0329:"R",\u0159\u0329:"r",\u1E66:"S",\u1E67:"s",V\u030C:"V",v\u030C:"v",W\u030C:"W",w\u030C:"w",X\u030C:"X",x\u030C:"x",Y\u030C:"Y",y\u030C:"y",A\u0327:"A",a\u0327:"a",B\u0327:"B",b\u0327:"b",\u1E10:"D",\u1E11:"d",\u0228:"E",\u0229:"e",\u0190\u0327:"E",\u025B\u0327:"e",\u1E28:"H",\u1E29:"h",I\u0327:"I",i\u0327:"i",\u0197\u0327:"I",\u0268\u0327:"i",M\u0327:"M",m\u0327:"m",O\u0327:"O",o\u0327:"o",Q\u0327:"Q",q\u0327:"q",U\u0327:"U",u\u0327:"u",X\u0327:"X",x\u0327:"x",Z\u0327:"Z",z\u0327:"z"},ad=Object.keys(El).join("|"),cd=new RegExp(ad,"g");Be={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};Fs={maxRanking:1/0,minRanking:-1/0};pd={data:""},yd=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||pd,vd=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,bd=/\/\*[^]*?\*\/| +/g,Ls=/\n+/g,Jt=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?Jt(s,i):i+"{"+Jt(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=Jt(s,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Jt.p?Jt.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},kt={},Tl=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Tl(e[n]);return t}return e},wd=(e,t,n,r,o)=>{let i=Tl(e),s=kt[i]||(kt[i]=(l=>{let c=0,d=11;for(;c<l.length;)d=101*d+l.charCodeAt(c++)>>>0;return"go"+d})(i));if(!kt[s]){let l=i!==e?e:(c=>{let d,u,g=[{}];for(;d=vd.exec(c.replace(bd,""));)d[4]?g.shift():d[3]?(u=d[3].replace(Ls," ").trim(),g.unshift(g[0][u]=g[0][u]||{})):g[0][d[1]]=d[2].replace(Ls," ").trim();return g[0]})(e);kt[s]=Jt(o?{["@keyframes "+s]:l}:l,n?"":"."+s)}let a=n&&kt.g?kt.g:null;return n&&(kt.g=kt[s]),((l,c,d,u)=>{u?c.data=c.data.replace(u,l):c.data.indexOf(l)===-1&&(c.data=d?l+c.data:c.data+l)})(kt[s],t,r,a),s},xd=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":Jt(a,""):a===!1?"":a}return r+o+(s??"")},"");Y.bind({g:1});Y.bind({k:1});qs=Oe?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;_s=e=>{let t=$d(e);return Cd(Sd(()=>e.children).toArray,{appear:e.appear,onChange({added:n,removed:r,finishRemoved:o,list:i}){let s=t();for(let l of n)kd(s,e,l);let a=[];for(let l of i)l.isConnected&&(l instanceof HTMLElement||l instanceof SVGElement)&&a.push({el:l,rect:l.getBoundingClientRect()});queueMicrotask(()=>{let l=[];for(let{el:c,rect:d}of a)if(c.isConnected){let u=c.getBoundingClientRect(),g=d.left-u.left,f=d.top-u.top;(g||f)&&(c.style.transform=`translate(${g}px, ${f}px)`,c.style.transitionDuration="0s",l.push(c))}document.body.offsetHeight;for(let c of l){let d=function(u){(u.target===c||/transform$/.test(u.propertyName))&&(c.removeEventListener("transitionend",d),c.classList.remove(...s.move))};c.classList.add(...s.move),c.style.transform=c.style.transitionDuration="",c.addEventListener("transitionend",d)}});for(let l of r)Ed(s,e,l,()=>o([l]))}})},To=Symbol("fallback");Dd=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;Go=(e=>(e.Escape="Escape",e.Enter="Enter",e.Tab="Tab",e.Space=" ",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.PageDown="PageDown",e.PageUp="PageUp",e))(Go||{});Or=null;Ol=["input:not([type='hidden']):not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","[tabindex]","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]:not([contenteditable='false'])"],Ud=[...Ol,'[tabindex]:not([tabindex="-1"]):not([disabled])'],jo=Ol.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",Gd=Ud.join(':not([hidden]):not([tabindex="-1"]),');Gn=new Map,Ks=new Set;typeof document<"u"&&(document.readyState!=="loading"?Vs():document.addEventListener("DOMContentLoaded",Vs));Ll={border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:"0",position:"absolute",width:"1px","white-space":"nowrap"};ef=["id","name","validationState","required","disabled","readOnly"];ql=Ee();cf=Object.defineProperty,Qr=(e,t)=>{for(var n in t)cf(e,n,{get:t[n],enumerable:!0})},Nl=Ee();bf=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),wf=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);_o=Gl(),Wn=new Set;$f=Ee();Ao=new Map;Et=class Hl extends Set{anchorKey;currentKey;constructor(t,n,r){super(t),t instanceof Hl?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}};If=class{collection;state;constructor(e,t){this.collection=e,this.state=t}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e)}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e)}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()==="none")return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;let e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(let t of this.state.selectedKeys()){let n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index<e.index;(!e||r)&&(e=n)}return e?.key}lastSelectedKey(){let e;for(let t of this.state.selectedKeys()){let n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index>e.index;(!e||r)&&(e=n)}return e?.key}extendSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=this.state.selectedKeys(),r=n.anchorKey||t,o=new Et(n,r,t);for(let i of this.getKeyRange(r,n.currentKey||t))o.delete(i);for(let i of this.getKeyRange(t,r))this.canSelectItem(i)&&o.add(i);this.state.setSelectedKeys(o)}getKeyRange(e,t){let n=this.collection().getItem(e),r=this.collection().getItem(t);return n&&r?n.index!=null&&r.index!=null&&n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r!=null;){let o=this.collection().getItem(r);if(o&&o.type==="item"&&n.push(r),r===t)return n;r=this.collection().getKeyAfter(r)}return[]}getKey(e){let t=this.collection().getItem(e);return t?!t||t.type!=="item"?null:t.key:e}toggleSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new Et(this.state.selectedKeys());n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection()&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode()==="none")return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new Et([t],t,t):new Et;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new Et;for(let n of e){let r=this.getKey(n);if(r!=null&&(t.add(r),this.selectionMode()==="single"))break}this.state.setSelectedKeys(t)}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){let e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new Et)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()==="toggle"||t&&t.pointerType==="touch"?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys())return!0;let t=this.selectedKeys();if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if(this.state.selectionMode()==="none")return!1;let t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){let t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){let e=[];return(n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection().getItem(n);if(!r)continue;r.type==="item"&&e.push(n)}n=this.collection().getKeyAfter(n)}})(this.collection().getFirstKey()),e}},Qs=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(let r of e)this.keyMap.set(r.key,r);if(this.keyMap.size===0)return;let t,n=0;for(let[r,o]of this.keyMap)t?(t.nextKey=r,o.prevKey=t.key):(this.firstKey=r,o.prevKey=void 0),o.type==="item"&&(o.index=n++),t=o,t.nextKey=void 0;this.lastKey=t.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey}getKeyAfter(e){return this.keyMap.get(e)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}};Ie=e=>typeof e=="function"?e():e,Lf=e=>{let t=S(()=>{let s=Ie(e.element);if(s)return getComputedStyle(s)}),n=()=>t()?.animationName??"none",[r,o]=q(Ie(e.show)?"present":"hidden"),i="none";return V(s=>{let a=Ie(e.show);return ue(()=>{if(s===a)return a;let l=i,c=n();a?o("present"):c==="none"||t()?.display==="none"?o("hidden"):o(s===!0&&l!==c?"hiding":"hidden")}),a}),V(()=>{let s=Ie(e.element);if(!s)return;let a=c=>{c.target===s&&(i=n())},l=c=>{let u=n().includes(c.animationName);c.target===s&&u&&r()==="hiding"&&o("hidden")};s.addEventListener("animationstart",a),s.addEventListener("animationcancel",l),s.addEventListener("animationend",l),H(()=>{s.removeEventListener("animationstart",a),s.removeEventListener("animationcancel",l),s.removeEventListener("animationend",l)})}),{present:()=>r()==="present"||r()==="hiding",state:r}},qf=Lf,Wl=qf,qr="data-kb-top-layer",Ro=!1,At=[];Ue={layers:At,isTopMostLayer:Rf,hasPointerBlockingLayer:Wo,isBelowPointerBlockingLayer:Zl,addLayer:Nf,removeLayer:Bf,indexOf:Xn,find:_f,assignPointerEventToLayers:Kf,disableBodyPointerEvents:Vf,restoreBodyPointerEvents:Uf},Gf={};Qr(Gf,{Button:()=>Qf,Root:()=>Yo});Hf=["button","color","file","image","reset","submit"];Qf=Yo,Wf=["top","right","bottom","left"],gt=Math.min,He=Math.max,_r=Math.round,Ir=Math.floor,Nt=e=>({x:e,y:e}),Yf={left:"right",right:"left",bottom:"top",top:"bottom"},Xf={start:"end",end:"start"};r0=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Ws(c,r,l),g=r,f={},h=0;for(let p=0;p<a.length;p++){let{name:y,fn:v}=a[p],{x:b,y:w,data:x,reset:C}=await v({x:d,y:u,initialPlacement:r,placement:g,strategy:o,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});d=b??d,u=w??u,f={...f,[y]:{...f[y],...x}},C&&h<=50&&(h++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(c=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:d,y:u}=Ws(c,g,l)),p=-1)}return{x:d,y:u,placement:g,strategy:o,middlewareData:f}};o0=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=rn(e,t)||{};if(c==null)return{};let u=ea(d),g={x:n,y:r},f=Zo(o),h=Xo(f),p=await s.getDimensions(c),y=f==="y",v=y?"top":"left",b=y?"bottom":"right",w=y?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[f]-g[f]-i.floating[h],C=g[f]-i.reference[f],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),O=I?I[w]:0;(!O||!await(s.isElement==null?void 0:s.isElement(I)))&&(O=a.floating[w]||i.floating[h]);let F=x/2-C/2,$=O/2-p[h]/2-1,A=gt(u[v],$),B=gt(u[b],$),N=A,J=O-p[h]-B,se=O/2-p[h]/2+F,he=zo(N,se,J),de=!l.arrow&&xn(o)!=null&&se!==he&&i.reference[h]/2-(se<N?A:B)-p[h]/2<0,ae=de?se<N?se-N:se-J:0;return{[f]:g[f]+ae,data:{[f]:he,centerOffset:se-he-ae,...de&&{alignmentOffset:ae}},reset:de}}}),i0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;let{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:g,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...y}=rn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let v=Bt(o),b=tn(a),w=Bt(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=g||(w||!p?[Rr(a)]:Jf(a)),I=h!=="none";!g&&I&&C.push(...t0(a,p,h,x));let O=[a,...C],F=await Zn(t,y),$=[],A=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&$.push(F[v]),u){let se=Zf(o,s,x);$.push(F[se[0]],F[se[1]])}if(A=[...A,{placement:o,overflows:$}],!$.every(se=>se<=0)){var B,N;let se=(((B=i.flip)==null?void 0:B.index)||0)+1,he=O[se];if(he)return{data:{index:se,overflows:A},reset:{placement:he}};let de=(N=A.filter(ae=>ae.overflows[0]<=0).sort((ae,fe)=>ae.overflows[1]-fe.overflows[1])[0])==null?void 0:N.placement;if(!de)switch(f){case"bestFit":{var J;let ae=(J=A.filter(fe=>{if(I){let me=tn(fe.placement);return me===b||me==="y"}return!0}).map(fe=>[fe.placement,fe.overflows.filter(me=>me>0).reduce((me,$e)=>me+$e,0)]).sort((fe,me)=>fe[1]-me[1])[0])==null?void 0:J[0];ae&&(de=ae);break}case"initialPlacement":de=a;break}if(o!==de)return{reset:{placement:de}}}return{}}}};s0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=rn(e,t);switch(r){case"referenceHidden":{let i=await Zn(t,{...o,elementContext:"reference"}),s=Ys(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xs(s)}}}case"escaped":{let i=await Zn(t,{...o,altBoundary:!0}),s=Ys(i,n.floating);return{data:{escapedOffsets:s,escaped:Xs(s)}}}default:return{}}}}};a0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:s,middlewareData:a}=t,l=await l0(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},c0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:v,y:b}=y;return{x:v,y:b}}},...l}=rn(e,t),c={x:n,y:r},d=await Zn(t,l),u=tn(Bt(o)),g=Jl(u),f=c[g],h=c[u];if(i){let y=g==="y"?"top":"left",v=g==="y"?"bottom":"right",b=f+d[y],w=f-d[v];f=zo(b,f,w)}if(s){let y=u==="y"?"top":"left",v=u==="y"?"bottom":"right",b=h+d[y],w=h-d[v];h=zo(b,h,w)}let p=a.fn({...t,[g]:f,[u]:h});return{...p,data:{x:p.x-n,y:p.y-r}}}}},u0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=rn(e,t),l=await Zn(t,a),c=Bt(n),d=xn(n),u=tn(n)==="y",{width:g,height:f}=r.floating,h,p;c==="top"||c==="bottom"?(h=c,p=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(p=c,h=d==="end"?"top":"bottom");let y=f-l.top-l.bottom,v=g-l.left-l.right,b=gt(f-l[h],y),w=gt(g-l[p],v),x=!t.middlewareData.shift,C=b,I=w;if(u?I=d||x?gt(w,v):v:C=d||x?gt(b,y):y,x&&!d){let F=He(l.left,0),$=He(l.right,0),A=He(l.top,0),B=He(l.bottom,0);u?I=g-2*(F!==0||$!==0?F+$:He(l.left,l.right)):C=f-2*(A!==0||B!==0?A+B:He(l.top,l.bottom))}await s({...t,availableWidth:I,availableHeight:C});let O=await o.getDimensions(i.floating);return g!==O.width||f!==O.height?{reset:{rects:!0}}:{}}}};g0=Nt(0);$0=async function(e){let t=this.getOffsetParent||la,n=this.getDimensions,r=await n(e.floating);return{reference:S0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};aa={convertOffsetParentRelativeRectToViewportRelativeRect:m0,getDocumentElement:Pt,getClippingRect:x0,getOffsetParent:la,getElementRects:$0,getClientRects:p0,getDimensions:C0,getScale:bn,isElement:st,isRTL:k0};A0=a0,P0=c0,M0=i0,D0=u0,O0=s0,I0=o0,F0=(e,t,n)=>{let r=new Map,o={platform:aa,...n},i={...o.platform,_c:r};return r0(e,t,{...o,platform:i})},ni=Ee();L0=z('<svg display="block" viewBox="0 0 30 30" style="transform:scale(1.02)"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">'),Bo=30,tl=Bo/2,q0={top:180,right:-90,bottom:0,left:90};B0={top:"bottom",right:"left",bottom:"top",left:"right"};ca=Object.assign(V0,{Arrow:oi,Context:ni,usePopperContext:ri,Positioner:R0});rl="interactOutside.pointerDownOutside",ol="interactOutside.focusOutside";ua=Ee();Xe={};Qr(Xe,{Description:()=>_l,ErrorMessage:()=>Rl,Item:()=>ma,ItemControl:()=>pa,ItemDescription:()=>ya,ItemIndicator:()=>va,ItemInput:()=>ba,ItemLabel:()=>wa,Label:()=>xa,RadioGroup:()=>Q0,Root:()=>Ca});fa=Ee();ha=Ee();Q0=Object.assign(Ca,{Description:_l,ErrorMessage:Rl,Item:ma,ItemControl:pa,ItemDescription:ya,ItemIndicator:va,ItemInput:ba,ItemLabel:wa,Label:xa}),W0=class{collection;ref;collator;constructor(e,t,n){this.collection=e,this.ref=t,this.collator=n}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){let n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){let n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyBefore(t)}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){let t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyAfter(e)}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){let t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyBefore(e)}}getItem(e){return this.ref?.()?.querySelector(`[data-key="${e}"]`)??null}getKeyPageAbove(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight),o=e;for(;o&&n&&n.offsetTop>r;)o=this.getKeyAbove(o),n=o!=null?this.getItem(o):null;return o}getKeyPageBelow(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight),o=e;for(;o&&n&&n.offsetTop<r;)o=this.getKeyBelow(o),n=o!=null?this.getItem(o):null;return o}getKeyForSearch(e,t){let n=this.collator?.();if(!n)return;let r=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;r!=null;){let o=this.collection().getItem(r);if(o){let i=o.textValue.slice(0,e.length);if(o.textValue&&n.compare(i,e)===0)return r}r=this.getKeyBelow(r)}}};Mo="focusScope.autoFocusOnMount",Do="focusScope.autoFocusOnUnmount",il={bubbles:!1,cancelable:!0},sl={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=Lo(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=Lo(this.stack,e),this.active()?.resume()}};Z0="data-live-announcer";Hn=new WeakMap,Ye=[];Fr=new Map,tg=e=>{V(()=>{let t=Ie(e.style)??{},n=Ie(e.properties)??[],r={};for(let i in t)r[i]=e.element.style[i];let o=Fr.get(e.key);o?o.activeCount++:Fr.set(e.key,{activeCount:1,originalStyles:r,properties:n.map(i=>i.key)}),Object.assign(e.element.style,e.style);for(let i of n)e.element.style.setProperty(i.key,i.value);H(()=>{let i=Fr.get(e.key);if(i){if(i.activeCount!==1){i.activeCount--;return}Fr.delete(e.key);for(let[s,a]of Object.entries(i.originalStyles))e.element.style[s]=a;for(let s of i.properties)e.element.style.removeProperty(s);e.element.style.length===0&&e.element.removeAttribute("style"),e.cleanup?.()}})})},ll=tg,ng=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},rg=(e,t)=>{let n=getComputedStyle(e),r=t==="x"?n.overflowX:n.overflowY;return r==="auto"||r==="scroll"||e.tagName==="HTML"&&r==="visible"},og=(e,t,n)=>{let r=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1,o=e,i=0,s=0,a=!1;do{let[l,c,d]=ng(o,t),u=d-l-r*c;(c!==0||u!==0)&&rg(o,t)&&(i+=u,s+=c),o===(n??document.documentElement)?a=!0:o=o._$host??o.parentElement}while(o&&!a);return[i,s]},[al,cl]=q([]),ig=e=>al().indexOf(e)===al().length-1,sg=e=>{let t=W({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),n=Ve(),r=[0,0],o=null,i=null;V(()=>{Ie(t.enabled)&&(cl(c=>[...c,n]),H(()=>{cl(c=>c.filter(d=>d!==n))}))}),V(()=>{if(!Ie(t.enabled)||!Ie(t.hideScrollbar))return;let{body:c}=document,d=window.innerWidth-c.offsetWidth;if(Ie(t.preventScrollbarShift)){let u={overflow:"hidden"},g=[];d>0&&(Ie(t.preventScrollbarShiftMode)==="padding"?u.paddingRight=`calc(${window.getComputedStyle(c).paddingRight} + ${d}px)`:u.marginRight=`calc(${window.getComputedStyle(c).marginRight} + ${d}px)`,g.push({key:"--scrollbar-width",value:`${d}px`}));let f=window.scrollY,h=window.scrollX;ll({key:"prevent-scroll",element:c,style:u,properties:g,cleanup:()=>{Ie(t.restoreScrollPosition)&&d>0&&window.scrollTo(h,f)}})}else ll({key:"prevent-scroll",element:c,style:{overflow:"hidden"}})}),V(()=>{!ig(n)||!Ie(t.enabled)||(document.addEventListener("wheel",a,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),H(()=>{document.removeEventListener("wheel",a),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",l)}))});let s=c=>{r=ul(c),o=null,i=null},a=c=>{let d=c.target,u=Ie(t.element),g=lg(c),f=Math.abs(g[0])>Math.abs(g[1])?"x":"y",h=f==="x"?g[0]:g[1],p=dl(d,f,h,u),y;u&&Ko(u,d)?y=!p:y=!0,y&&c.cancelable&&c.preventDefault()},l=c=>{let d=Ie(t.element),u=c.target,g;if(c.touches.length===2)g=!Ie(t.allowPinchZoom);else{if(o==null||i===null){let f=ul(c).map((p,y)=>r[y]-p),h=Math.abs(f[0])>Math.abs(f[1])?"x":"y";o=h,i=h==="x"?f[0]:f[1]}if(u.type==="range")g=!1;else{let f=dl(u,o,i,d);d&&Ko(d,u)?g=!f:g=!0}}g&&c.cancelable&&c.preventDefault()}},lg=e=>[e.deltaX,e.deltaY],ul=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],dl=(e,t,n,r)=>{let o=r!==null&&Ko(r,e),[i,s]=og(e,t,o?r:void 0);return!(n>0&&Math.abs(i)<=1||n<0&&Math.abs(s)<1)},Ko=(e,t)=>{if(e.contains(t))return!0;let n=t;for(;n;){if(n===e)return!0;n=n._$host??n.parentElement}return!1},ag=sg,cg=ag,Sa=Ee();ka=Ee();Ea=Ee();ug=Ee();er={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>er.next(e==="ltr"?"rtl":"ltr",t)},fl={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};dg=Ee();Da=Ee();za=Ee();yg={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};gl=["Enter"," "],vg={open:(e,t)=>e==="ltr"?[...gl,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...gl,t==="horizontal"?"ArrowLeft":"ArrowUp"]};wg={};Qr(wg,{Root:()=>Zr,Separator:()=>xg});xg=Zr,Se={};Qr(Se,{Arrow:()=>oi,CheckboxItem:()=>Ta,Content:()=>Ha,DropdownMenu:()=>Cg,Group:()=>li,GroupLabel:()=>Oa,Icon:()=>Ia,Item:()=>Fa,ItemDescription:()=>La,ItemIndicator:()=>qa,ItemLabel:()=>_a,Portal:()=>Ra,RadioGroup:()=>Na,RadioItem:()=>Ba,Root:()=>ja,Separator:()=>Zr,Sub:()=>Va,SubContent:()=>Ua,SubTrigger:()=>Ga,Trigger:()=>Aa});Cg=Object.assign(ja,{Arrow:oi,CheckboxItem:Ta,Content:Ha,Group:li,GroupLabel:Oa,Icon:Ia,Item:Fa,ItemDescription:La,ItemIndicator:qa,ItemLabel:_a,Portal:Ra,RadioGroup:Na,RadioItem:Ba,Separator:Zr,Sub:Va,SubContent:Ua,SubTrigger:Ga,Trigger:Aa}),E={colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000000",white:"#ffffff",neutral:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},darkGray:{50:"#525c7a",100:"#49536e",200:"#414962",300:"#394056",400:"#313749",500:"#292e3d",600:"#212530",700:"#191c24",800:"#111318",900:"#0b0d10"},gray:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},blue:{25:"#F5FAFF",50:"#EFF8FF",100:"#D1E9FF",200:"#B2DDFF",300:"#84CAFF",400:"#53B1FD",500:"#2E90FA",600:"#1570EF",700:"#175CD3",800:"#1849A9",900:"#194185"},green:{25:"#F6FEF9",50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},yellow:{25:"#FFFCF5",50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E"},purple:{25:"#FAFAFF",50:"#F4F3FF",100:"#EBE9FE",200:"#D9D6FE",300:"#BDB4FE",400:"#9B8AFB",500:"#7A5AF8",600:"#6938EF",700:"#5925DC",800:"#4A1FB8",900:"#3E1C96"},teal:{25:"#F6FEFC",50:"#F0FDF9",100:"#CCFBEF",200:"#99F6E0",300:"#5FE9D0",400:"#2ED3B7",500:"#15B79E",600:"#0E9384",700:"#107569",800:"#125D56",900:"#134E48"},pink:{25:"#fdf2f8",50:"#fce7f3",100:"#fbcfe8",200:"#f9a8d4",300:"#f472b6",400:"#ec4899",500:"#db2777",600:"#be185d",700:"#9d174d",800:"#831843",900:"#500724"},cyan:{25:"#ecfeff",50:"#cffafe",100:"#a5f3fc",200:"#67e8f9",300:"#22d3ee",400:"#06b6d4",500:"#0891b2",600:"#0e7490",700:"#155e75",800:"#164e63",900:"#083344"}},alpha:{100:"ff",90:"e5",80:"cc",70:"b3",60:"99",50:"80",40:"66",30:"4d",20:"33",10:"1a",0:"00"},font:{size:{"2xs":"calc(var(--tsqd-font-size) * 0.625)",xs:"calc(var(--tsqd-font-size) * 0.75)",sm:"calc(var(--tsqd-font-size) * 0.875)",md:"var(--tsqd-font-size)",lg:"calc(var(--tsqd-font-size) * 1.125)",xl:"calc(var(--tsqd-font-size) * 1.25)","2xl":"calc(var(--tsqd-font-size) * 1.5)","3xl":"calc(var(--tsqd-font-size) * 1.875)","4xl":"calc(var(--tsqd-font-size) * 2.25)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.75)","7xl":"calc(var(--tsqd-font-size) * 4.5)","8xl":"calc(var(--tsqd-font-size) * 6)","9xl":"calc(var(--tsqd-font-size) * 8)"},lineHeight:{xs:"calc(var(--tsqd-font-size) * 1)",sm:"calc(var(--tsqd-font-size) * 1.25)",md:"calc(var(--tsqd-font-size) * 1.5)",lg:"calc(var(--tsqd-font-size) * 1.75)",xl:"calc(var(--tsqd-font-size) * 2)","2xl":"calc(var(--tsqd-font-size) * 2.25)","3xl":"calc(var(--tsqd-font-size) * 2.5)","4xl":"calc(var(--tsqd-font-size) * 2.75)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.25)","7xl":"calc(var(--tsqd-font-size) * 3.5)","8xl":"calc(var(--tsqd-font-size) * 3.75)","9xl":"calc(var(--tsqd-font-size) * 4)"},weight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"}},breakpoints:{xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},border:{radius:{none:"0px",xs:"calc(var(--tsqd-font-size) * 0.125)",sm:"calc(var(--tsqd-font-size) * 0.25)",md:"calc(var(--tsqd-font-size) * 0.375)",lg:"calc(var(--tsqd-font-size) * 0.5)",xl:"calc(var(--tsqd-font-size) * 0.75)","2xl":"calc(var(--tsqd-font-size) * 1)","3xl":"calc(var(--tsqd-font-size) * 1.5)",full:"9999px"}},size:{0:"0px",.25:"calc(var(--tsqd-font-size) * 0.0625)",.5:"calc(var(--tsqd-font-size) * 0.125)",1:"calc(var(--tsqd-font-size) * 0.25)",1.5:"calc(var(--tsqd-font-size) * 0.375)",2:"calc(var(--tsqd-font-size) * 0.5)",2.5:"calc(var(--tsqd-font-size) * 0.625)",3:"calc(var(--tsqd-font-size) * 0.75)",3.5:"calc(var(--tsqd-font-size) * 0.875)",4:"calc(var(--tsqd-font-size) * 1)",4.5:"calc(var(--tsqd-font-size) * 1.125)",5:"calc(var(--tsqd-font-size) * 1.25)",5.5:"calc(var(--tsqd-font-size) * 1.375)",6:"calc(var(--tsqd-font-size) * 1.5)",6.5:"calc(var(--tsqd-font-size) * 1.625)",7:"calc(var(--tsqd-font-size) * 1.75)",8:"calc(var(--tsqd-font-size) * 2)",9:"calc(var(--tsqd-font-size) * 2.25)",10:"calc(var(--tsqd-font-size) * 2.5)",11:"calc(var(--tsqd-font-size) * 2.75)",12:"calc(var(--tsqd-font-size) * 3)",14:"calc(var(--tsqd-font-size) * 3.5)",16:"calc(var(--tsqd-font-size) * 4)",20:"calc(var(--tsqd-font-size) * 5)",24:"calc(var(--tsqd-font-size) * 6)",28:"calc(var(--tsqd-font-size) * 7)",32:"calc(var(--tsqd-font-size) * 8)",36:"calc(var(--tsqd-font-size) * 9)",40:"calc(var(--tsqd-font-size) * 10)",44:"calc(var(--tsqd-font-size) * 11)",48:"calc(var(--tsqd-font-size) * 12)",52:"calc(var(--tsqd-font-size) * 13)",56:"calc(var(--tsqd-font-size) * 14)",60:"calc(var(--tsqd-font-size) * 15)",64:"calc(var(--tsqd-font-size) * 16)",72:"calc(var(--tsqd-font-size) * 18)",80:"calc(var(--tsqd-font-size) * 20)",96:"calc(var(--tsqd-font-size) * 24)"},shadow:{xs:(e="rgb(0 0 0 / 0.1)")=>"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:(e="rgb(0 0 0 / 0.1)")=>`0 1px 3px 0 ${e}, 0 1px 2px -1px ${e}`,md:(e="rgb(0 0 0 / 0.1)")=>`0 4px 6px -1px ${e}, 0 2px 4px -2px ${e}`,lg:(e="rgb(0 0 0 / 0.1)")=>`0 10px 15px -3px ${e}, 0 4px 6px -4px ${e}`,xl:(e="rgb(0 0 0 / 0.1)")=>`0 20px 25px -5px ${e}, 0 8px 10px -6px ${e}`,"2xl":(e="rgb(0 0 0 / 0.25)")=>`0 25px 50px -12px ${e}`,inner:(e="rgb(0 0 0 / 0.05)")=>`inset 0 2px 4px 0 ${e}`,none:()=>"none"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}},Sg=z('<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),$g=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),kg=z('<svg width=10 height=6 viewBox="0 0 10 6"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1L5 5L9 1"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),Eg=z('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),ai=z('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),Tg=z('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Ag=z('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Pg=z('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Mg=z('<svg stroke=currentColor fill=currentColor stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">'),Dg=z('<svg stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">'),Og=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Ig=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M16 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V8M11.5 12.5L17 7M17 7H12M17 7V12M6.2 21H8.8C9.9201 21 10.4802 21 10.908 20.782C11.2843 20.5903 11.5903 20.2843 11.782 19.908C12 19.4802 12 18.9201 12 17.8V15.2C12 14.0799 12 13.5198 11.782 13.092C11.5903 12.7157 11.2843 12.4097 10.908 12.218C10.4802 12 9.92011 12 8.8 12H6.2C5.0799 12 4.51984 12 4.09202 12.218C3.71569 12.4097 3.40973 12.7157 3.21799 13.092C3 13.5198 3 14.0799 3 15.2V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Fg=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path class=copier d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round stroke=currentColor>'),Lg=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M2.5 21.4998L8.04927 19.3655C8.40421 19.229 8.58168 19.1607 8.74772 19.0716C8.8952 18.9924 9.0358 18.901 9.16804 18.7984C9.31692 18.6829 9.45137 18.5484 9.72028 18.2795L21 6.99982C22.1046 5.89525 22.1046 4.10438 21 2.99981C19.8955 1.89525 18.1046 1.89524 17 2.99981L5.72028 14.2795C5.45138 14.5484 5.31692 14.6829 5.20139 14.8318C5.09877 14.964 5.0074 15.1046 4.92823 15.2521C4.83911 15.4181 4.77085 15.5956 4.63433 15.9506L2.5 21.4998ZM2.5 21.4998L4.55812 16.1488C4.7054 15.7659 4.77903 15.5744 4.90534 15.4867C5.01572 15.4101 5.1523 15.3811 5.2843 15.4063C5.43533 15.4351 5.58038 15.5802 5.87048 15.8703L8.12957 18.1294C8.41967 18.4195 8.56472 18.5645 8.59356 18.7155C8.61877 18.8475 8.58979 18.9841 8.51314 19.0945C8.42545 19.2208 8.23399 19.2944 7.85107 19.4417L2.5 21.4998Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Qa=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),qg=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),_g=z('<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>'),Rg=z('<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),zg=z('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Ng=z('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 dur=2s repeatCount=indefinite>'),Bg=z('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Kg=z('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Vg=z('<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>');uh=z('<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),dh=z('<button title="Copy object to clipboard">'),fh=z('<button title="Remove all items"aria-label="Remove all items">'),gh=z('<button title="Delete item"aria-label="Delete item">'),hh=z('<button title="Toggle value"aria-label="Toggle value">'),mh=z('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),jn=z("<div>"),ph=z("<div><button> <span></span> <span> "),yh=z("<input>"),yl=z("<span>"),vh=z("<div><span>:"),bh=z("<div><div><button> [<!>...<!>]");vl=e=>{let t=Ae(),n=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,r=S(()=>t()==="dark"?$n(n):Sn(n));return(()=>{var o=uh();return K(()=>M(o,R(r().expander,n`
|
|
2
|
+
transform: rotate(${e.expanded?90:0}deg);
|
|
3
|
+
`,e.expanded&&n`
|
|
4
|
+
& svg {
|
|
5
|
+
top: -1px;
|
|
6
|
+
}
|
|
7
|
+
`))),o})()},xh=e=>{let t=Ae(),n=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,r=S(()=>t()==="dark"?$n(n):Sn(n)),[o,i]=q("NoCopy");return(()=>{var s=dh();return xo(s,"click",o()==="NoCopy"?()=>{navigator.clipboard.writeText(Cs(e.value)).then(()=>{i("SuccessCopy"),setTimeout(()=>{i("NoCopy")},1500)},a=>{i("ErrorCopy"),setTimeout(()=>{i("NoCopy")},1500)})}:void 0,!0),k(s,m(ns,{get children(){return[m(Tr,{get when(){return o()==="NoCopy"},get children(){return m(eh,{})}}),m(Tr,{get when(){return o()==="SuccessCopy"},get children(){return m(nh,{get theme(){return t()}})}}),m(Tr,{get when(){return o()==="ErrorCopy"},get children(){return m(rh,{})}})]}})),K(a=>{var l=r().actionButton,c=`${o()==="NoCopy"?"Copy object to clipboard":o()==="SuccessCopy"?"Object copied to clipboard":"Error copying object to clipboard"}`;return l!==a.e&&M(s,a.e=l),c!==a.t&&P(s,"aria-label",a.t=c),a},{e:void 0,t:void 0}),s})()},Ch=e=>{let t=Ae(),n=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,r=S(()=>t()==="dark"?$n(n):Sn(n)),o=G().client;return(()=>{var i=fh();return i.$$click=()=>{let s=e.activeQuery.state.data,a=Lt(s,e.dataPath,[]);o.setQueryData(e.activeQuery.queryKey,a)},k(i,m(oh,{})),K(()=>M(i,r().actionButton)),i})()},bl=e=>{let t=Ae(),n=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,r=S(()=>t()==="dark"?$n(n):Sn(n)),o=G().client;return(()=>{var i=gh();return i.$$click=()=>{let s=e.activeQuery.state.data,a=dn(s,e.dataPath);o.setQueryData(e.activeQuery.queryKey,a)},k(i,m(Wa,{})),K(()=>M(i,R(r().actionButton))),i})()},Sh=e=>{let t=Ae(),n=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,r=S(()=>t()==="dark"?$n(n):Sn(n)),o=G().client;return(()=>{var i=hh();return i.$$click=()=>{let s=e.activeQuery.state.data,a=Lt(s,e.dataPath,!e.value);o.setQueryData(e.activeQuery.queryKey,a)},k(i,m(ih,{get theme(){return t()},get checked(){return e.value}})),K(()=>M(i,R(r().actionButton,n`
|
|
8
|
+
width: ${E.size[3.5]};
|
|
9
|
+
height: ${E.size[3.5]};
|
|
10
|
+
`))),i})()};Ya=(e,t)=>{let{colors:n,font:r,size:o,border:i}=E,s=(a,l)=>e==="light"?a:l;return{entry:t`
|
|
11
|
+
& * {
|
|
12
|
+
font-size: ${r.size.xs};
|
|
13
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
14
|
+
'Liberation Mono', 'Courier New', monospace;
|
|
15
|
+
}
|
|
16
|
+
position: relative;
|
|
17
|
+
outline: none;
|
|
18
|
+
word-break: break-word;
|
|
19
|
+
`,subEntry:t`
|
|
20
|
+
margin: 0 0 0 0.5em;
|
|
21
|
+
padding-left: 0.75em;
|
|
22
|
+
border-left: 2px solid ${s(n.gray[300],n.darkGray[400])};
|
|
23
|
+
/* outline: 1px solid ${n.teal[400]}; */
|
|
24
|
+
`,expander:t`
|
|
25
|
+
& path {
|
|
26
|
+
stroke: ${n.gray[400]};
|
|
27
|
+
}
|
|
28
|
+
& svg {
|
|
29
|
+
width: ${o[3]};
|
|
30
|
+
height: ${o[3]};
|
|
31
|
+
}
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
transition: all 0.1s ease;
|
|
35
|
+
/* outline: 1px solid ${n.blue[400]}; */
|
|
36
|
+
`,expanderButtonContainer:t`
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
line-height: ${o[4]};
|
|
40
|
+
min-height: ${o[4]};
|
|
41
|
+
gap: ${o[2]};
|
|
42
|
+
`,expanderButton:t`
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
color: inherit;
|
|
45
|
+
font: inherit;
|
|
46
|
+
outline: inherit;
|
|
47
|
+
height: ${o[5]};
|
|
48
|
+
background: transparent;
|
|
49
|
+
border: none;
|
|
50
|
+
padding: 0;
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: ${o[1]};
|
|
54
|
+
position: relative;
|
|
55
|
+
/* outline: 1px solid ${n.green[400]}; */
|
|
56
|
+
|
|
57
|
+
&:focus-visible {
|
|
58
|
+
border-radius: ${i.radius.xs};
|
|
59
|
+
outline: 2px solid ${n.blue[800]};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
& svg {
|
|
63
|
+
position: relative;
|
|
64
|
+
left: 1px;
|
|
65
|
+
}
|
|
66
|
+
`,info:t`
|
|
67
|
+
color: ${s(n.gray[500],n.gray[500])};
|
|
68
|
+
font-size: ${r.size.xs};
|
|
69
|
+
margin-left: ${o[1]};
|
|
70
|
+
/* outline: 1px solid ${n.yellow[400]}; */
|
|
71
|
+
`,label:t`
|
|
72
|
+
color: ${s(n.gray[700],n.gray[300])};
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
`,value:t`
|
|
75
|
+
color: ${s(n.purple[600],n.purple[400])};
|
|
76
|
+
flex-grow: 1;
|
|
77
|
+
`,actions:t`
|
|
78
|
+
display: inline-flex;
|
|
79
|
+
gap: ${o[2]};
|
|
80
|
+
align-items: center;
|
|
81
|
+
`,row:t`
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
gap: ${o[2]};
|
|
84
|
+
width: 100%;
|
|
85
|
+
margin: ${o[.25]} 0px;
|
|
86
|
+
line-height: ${o[4.5]};
|
|
87
|
+
align-items: center;
|
|
88
|
+
`,editableInput:t`
|
|
89
|
+
border: none;
|
|
90
|
+
padding: ${o[.5]} ${o[1]} ${o[.5]} ${o[1.5]};
|
|
91
|
+
flex-grow: 1;
|
|
92
|
+
border-radius: ${i.radius.xs};
|
|
93
|
+
background-color: ${s(n.gray[200],n.darkGray[500])};
|
|
94
|
+
|
|
95
|
+
&:hover {
|
|
96
|
+
background-color: ${s(n.gray[300],n.darkGray[600])};
|
|
97
|
+
}
|
|
98
|
+
`,actionButton:t`
|
|
99
|
+
background-color: transparent;
|
|
100
|
+
color: ${s(n.gray[500],n.gray[500])};
|
|
101
|
+
border: none;
|
|
102
|
+
display: inline-flex;
|
|
103
|
+
padding: 0px;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
width: ${o[3]};
|
|
108
|
+
height: ${o[3]};
|
|
109
|
+
position: relative;
|
|
110
|
+
z-index: 1;
|
|
111
|
+
|
|
112
|
+
&:hover svg {
|
|
113
|
+
color: ${s(n.gray[600],n.gray[400])};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:focus-visible {
|
|
117
|
+
border-radius: ${i.radius.xs};
|
|
118
|
+
outline: 2px solid ${n.blue[800]};
|
|
119
|
+
outline-offset: 2px;
|
|
120
|
+
}
|
|
121
|
+
`}},Sn=e=>Ya("light",e),$n=e=>Ya("dark",e);Kn(["click"]);$h=z('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),ar=z("<div>"),kh=z('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'),Eh=z("<select name=tsqd-queries-filter-sort>"),Th=z("<select name=tsqd-mutations-filter-sort>"),Ah=z("<span>Asc"),Ph=z("<span>Desc"),Mh=z('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),Dh=z("<div>Settings"),Oh=z("<span>Position"),Ih=z("<span>Top"),Fh=z("<span>Bottom"),Lh=z("<span>Left"),qh=z("<span>Right"),_h=z("<span>Theme"),Rh=z("<span>Light"),zh=z("<span>Dark"),Nh=z("<span>System"),Bh=z("<div><div class=tsqd-queries-container>"),Kh=z("<div><div class=tsqd-mutations-container>"),Vh=z('<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>'),xl=z("<option>Sort by "),Uh=z("<div class=tsqd-query-disabled-indicator>disabled"),Xa=z("<button><div></div><code class=tsqd-query-hash>"),Gh=z("<div role=tooltip id=tsqd-status-tooltip>"),Hh=z("<span>"),jh=z("<button><span></span><span>"),Qh=z("<button><span></span> Error"),Wh=z('<div><span></span>Trigger Error<select><option value=""disabled selected>'),Yh=z('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),Xh=z("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),Zh=z('<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data </div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'),Jh=z("<option>"),e1=z('<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'),[Ge,Jr]=q(null),[zt,Za]=q(null),[it,ci]=q(0),[pn,Cl]=q(!1),Ja=e=>{let t=Ae(),n=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,r=S(()=>t()==="dark"?tt(n):et(n)),o=Uo(),i=S(()=>G().buttonPosition||rd),s=S(()=>e.localStore.open==="true"?!0:e.localStore.open==="false"?!1:G().initialIsOpen||od),a=S(()=>e.localStore.position||G().position||Io),l;V(()=>{let d=l.parentElement,u=e.localStore.height||Sl,g=e.localStore.width||$l,f=a();d.style.setProperty("--tsqd-panel-height",`${f==="top"?"-":""}${u}px`),d.style.setProperty("--tsqd-panel-width",`${f==="left"?"-":""}${g}px`)}),$t(()=>{let d=()=>{let u=l.parentElement,g=getComputedStyle(u).fontSize;u.style.setProperty("--tsqd-font-size",g)};d(),window.addEventListener("focus",d),H(()=>{window.removeEventListener("focus",d)})});let c=S(()=>e.localStore.pip_open??"false");return[m(U,{get when(){return S(()=>!!o().pipWindow)()&&c()=="true"},get children(){return m(So,{get mount(){return o().pipWindow?.document.body},get children(){return m(t1,{get children(){return m(eo,e)}})}})}}),(()=>{var d=ar(),u=l;return typeof u=="function"?Wt(u,d):l=d,k(d,m(_s,{name:"tsqd-panel-transition",get children(){return m(U,{get when(){return S(()=>!!(s()&&!o().pipWindow))()&&c()=="false"},get children(){return m(n1,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),k(d,m(_s,{name:"tsqd-button-transition",get children(){return m(U,{get when(){return!s()},get children(){var g=$h(),f=g.firstChild,h=f.nextSibling;return k(f,m(pl,{})),h.$$click=()=>e.setLocalStore("open","true"),k(h,m(pl,{})),K(()=>M(g,R(r().devtoolsBtn,r()[`devtoolsBtn-position-${i()}`],"tsqd-open-btn-container"))),g}})}}),null),K(()=>M(d,R(n`
|
|
122
|
+
& .tsqd-panel-transition-exit-active,
|
|
123
|
+
& .tsqd-panel-transition-enter-active {
|
|
124
|
+
transition:
|
|
125
|
+
opacity 0.3s,
|
|
126
|
+
transform 0.3s;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
& .tsqd-panel-transition-exit-to,
|
|
130
|
+
& .tsqd-panel-transition-enter {
|
|
131
|
+
${a()==="top"||a()==="bottom"?"transform: translateY(var(--tsqd-panel-height));":"transform: translateX(var(--tsqd-panel-width));"}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
& .tsqd-button-transition-exit-active,
|
|
135
|
+
& .tsqd-button-transition-enter-active {
|
|
136
|
+
transition:
|
|
137
|
+
opacity 0.3s,
|
|
138
|
+
transform 0.3s;
|
|
139
|
+
opacity: 1;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
& .tsqd-button-transition-exit-to,
|
|
143
|
+
& .tsqd-button-transition-enter {
|
|
144
|
+
transform: ${i()==="relative"?"none;":i()==="top-left"?"translateX(-72px);":i()==="top-right"?"translateX(72px);":"translateY(72px);"};
|
|
145
|
+
opacity: 0;
|
|
146
|
+
}
|
|
147
|
+
`,"tsqd-transitions-container"))),d})()]},t1=e=>{let t=Uo(),n=Ae(),r=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,o=S(()=>n()==="dark"?tt(r):et(r)),i=()=>{let{colors:s}=E,a=(l,c)=>n()==="dark"?c:l;return it()<en?r`
|
|
148
|
+
flex-direction: column;
|
|
149
|
+
background-color: ${a(s.gray[300],s.gray[600])};
|
|
150
|
+
`:r`
|
|
151
|
+
flex-direction: row;
|
|
152
|
+
background-color: ${a(s.gray[200],s.darkGray[900])};
|
|
153
|
+
`};return V(()=>{let s=t().pipWindow,a=()=>{s&&ci(s.innerWidth)};s&&(s.addEventListener("resize",a),a()),H(()=>{s&&s.removeEventListener("resize",a)})}),(()=>{var s=ar();return s.style.setProperty("--tsqd-font-size","16px"),s.style.setProperty("max-height","100vh"),s.style.setProperty("height","100vh"),s.style.setProperty("width","100vw"),k(s,()=>e.children),K(()=>M(s,R(o().panel,i(),{[r`
|
|
154
|
+
min-width: min-content;
|
|
155
|
+
`]:it()<Vo},"tsqd-main-panel"))),s})()},ec=e=>{let t=Ae(),n=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,r=S(()=>t()==="dark"?tt(n):et(n)),o;$t(()=>{Ml(o,({width:s},a)=>{a===o&&ci(s)})});let i=()=>{let{colors:s}=E,a=(l,c)=>t()==="dark"?c:l;return it()<en?n`
|
|
156
|
+
flex-direction: column;
|
|
157
|
+
background-color: ${a(s.gray[300],s.gray[600])};
|
|
158
|
+
`:n`
|
|
159
|
+
flex-direction: row;
|
|
160
|
+
background-color: ${a(s.gray[200],s.darkGray[900])};
|
|
161
|
+
`};return(()=>{var s=ar(),a=o;return typeof a=="function"?Wt(a,s):o=s,s.style.setProperty("--tsqd-font-size","16px"),k(s,()=>e.children),K(()=>M(s,R(r().parentPanel,i(),{[n`
|
|
162
|
+
min-width: min-content;
|
|
163
|
+
`]:it()<Vo},"tsqd-main-panel"))),s})()},n1=e=>{let t=Ae(),n=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,r=S(()=>t()==="dark"?tt(n):et(n)),[o,i]=q(!1),s=S(()=>e.localStore.position||G().position||Io),a=d=>{let u=d.currentTarget.parentElement;if(!u)return;i(!0);let{height:g,width:f}=u.getBoundingClientRect(),h=d.clientX,p=d.clientY,y=0,v=ko(3.5),b=ko(12),w=C=>{if(C.preventDefault(),s()==="left"||s()==="right"){let I=s()==="right"?h-C.clientX:C.clientX-h;y=Math.round(f+I),y<b&&(y=b),e.setLocalStore("width",String(Math.round(y)));let O=u.getBoundingClientRect().width;Number(e.localStore.width)<O&&e.setLocalStore("width",String(O))}else{let I=s()==="bottom"?p-C.clientY:C.clientY-p;y=Math.round(g+I),y<v&&(y=v,Jr(null)),e.setLocalStore("height",String(Math.round(y)))}},x=()=>{o()&&i(!1),document.removeEventListener("mousemove",w,!1),document.removeEventListener("mouseUp",x,!1)};document.addEventListener("mousemove",w,!1),document.addEventListener("mouseup",x,!1)},l;$t(()=>{Ml(l,({width:d},u)=>{u===l&&ci(d)})}),V(()=>{let d=l.parentElement?.parentElement?.parentElement;if(!d)return;let u=e.localStore.position||Io,g=Ss("padding",u),f=e.localStore.position==="left"||e.localStore.position==="right",h=(({padding:p,paddingTop:y,paddingBottom:v,paddingLeft:b,paddingRight:w})=>({padding:p,paddingTop:y,paddingBottom:v,paddingLeft:b,paddingRight:w}))(d.style);d.style[g]=`${f?e.localStore.width:e.localStore.height}px`,H(()=>{Object.entries(h).forEach(([p,y])=>{d.style[p]=y})})});let c=()=>{let{colors:d}=E,u=(g,f)=>t()==="dark"?f:g;return it()<en?n`
|
|
164
|
+
flex-direction: column;
|
|
165
|
+
background-color: ${u(d.gray[300],d.gray[600])};
|
|
166
|
+
`:n`
|
|
167
|
+
flex-direction: row;
|
|
168
|
+
background-color: ${u(d.gray[200],d.darkGray[900])};
|
|
169
|
+
`};return(()=>{var d=kh(),u=d.firstChild,g=u.nextSibling,f=l;return typeof f=="function"?Wt(f,d):l=d,u.$$mousedown=a,g.$$click=()=>e.setLocalStore("open","false"),k(g,m(Yn,{})),k(d,m(eo,e),null),K(h=>{var p=R(r().panel,r()[`panel-position-${s()}`],c(),{[n`
|
|
170
|
+
min-width: min-content;
|
|
171
|
+
`]:it()<Vo&&(s()==="right"||s()==="left")},"tsqd-main-panel"),y=s()==="bottom"||s()==="top"?`${e.localStore.height||Sl}px`:"auto",v=s()==="right"||s()==="left"?`${e.localStore.width||$l}px`:"auto",b=R(r().dragHandle,r()[`dragHandle-position-${s()}`],"tsqd-drag-handle"),w=R(r().closeBtn,r()[`closeBtn-position-${s()}`],"tsqd-minimize-btn");return p!==h.e&&M(d,h.e=p),y!==h.t&&((h.t=y)!=null?d.style.setProperty("height",y):d.style.removeProperty("height")),v!==h.a&&((h.a=v)!=null?d.style.setProperty("width",v):d.style.removeProperty("width")),b!==h.o&&M(u,h.o=b),w!==h.i&&M(g,h.i=w),h},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),d})()},eo=e=>{c1(),u1();let t,n=Ae(),r=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,o=S(()=>n()==="dark"?tt(r):et(r)),i=Uo(),[s,a]=q("queries"),l=S(()=>e.localStore.sort||sd),c=S(()=>Number(e.localStore.sortOrder)||Ms),d=S(()=>e.localStore.mutationSort||ld),u=S(()=>Number(e.localStore.mutationSortOrder)||Ms),g=S(()=>Pr[l()]),f=S(()=>Mr[d()]),h=S(()=>G().onlineManager),p=S(()=>G().client.getQueryCache()),y=S(()=>G().client.getMutationCache()),v=Pe(O=>O().getAll().length,!1),b=S(ft(()=>[v(),e.localStore.filter,l(),c()],()=>{let O=p().getAll(),F=e.localStore.filter?O.filter(A=>Ds(A.queryHash,e.localStore.filter||"").passed):[...O];return g()?F.sort((A,B)=>g()(A,B)*c()):F})),w=ot(O=>O().getAll().length,!1),x=S(ft(()=>[w(),e.localStore.mutationFilter,d(),u()],()=>{let O=y().getAll(),F=e.localStore.mutationFilter?O.filter(A=>{let B=`${A.options.mutationKey?JSON.stringify(A.options.mutationKey)+" - ":""}${new Date(A.state.submittedAt).toLocaleString()}`;return Ds(B,e.localStore.mutationFilter||"").passed}):[...O];return f()?F.sort((A,B)=>f()(A,B)*u()):F})),C=O=>{e.setLocalStore("position",O)},I=O=>{let $=getComputedStyle(t).getPropertyValue("--tsqd-font-size");O.style.setProperty("--tsqd-font-size",$)};return[(()=>{var O=Vh(),F=O.firstChild,$=F.firstChild,A=$.firstChild,B=A.firstChild,N=B.nextSibling,J=N.firstChild,se=F.nextSibling,he=se.firstChild,de=he.firstChild,ae=de.firstChild,fe=de.nextSibling,me=fe.nextSibling,$e=he.nextSibling,Re=$e.firstChild,we=Re.nextSibling,Le=t;return typeof Le=="function"?Wt(Le,O):t=O,A.$$click=()=>{if(!i().pipWindow&&!e.showPanelViewOnly){e.setLocalStore("open","false");return}e.onClose&&e.onClose()},k(N,()=>G().queryFlavor,J),k(N,()=>G().version,null),k($,m(Xe.Root,{get class(){return R(o().viewToggle)},get value(){return s()},onChange:D=>{a(D),Jr(null),Za(null)},get children(){return[m(Xe.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return[m(Xe.ItemInput,{}),m(Xe.ItemControl,{get children(){return m(Xe.ItemIndicator,{})}}),m(Xe.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),m(Xe.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return[m(Xe.ItemInput,{}),m(Xe.ItemControl,{get children(){return m(Xe.ItemIndicator,{})}}),m(Xe.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),k(F,m(U,{get when(){return s()==="queries"},get children(){return m(i1,{})}}),null),k(F,m(U,{get when(){return s()==="mutations"},get children(){return m(s1,{})}}),null),k(de,m(Ug,{}),ae),ae.$$input=D=>{s()==="queries"?e.setLocalStore("filter",D.currentTarget.value):e.setLocalStore("mutationFilter",D.currentTarget.value)},k(fe,m(U,{get when(){return s()==="queries"},get children(){var D=Eh();return D.addEventListener("change",be=>{e.setLocalStore("sort",be.currentTarget.value)}),k(D,()=>Object.keys(Pr).map(be=>(()=>{var re=xl();return re.firstChild,re.value=be,k(re,be,null),re})())),K(()=>D.value=l()),D}}),null),k(fe,m(U,{get when(){return s()==="mutations"},get children(){var D=Th();return D.addEventListener("change",be=>{e.setLocalStore("mutationSort",be.currentTarget.value)}),k(D,()=>Object.keys(Mr).map(be=>(()=>{var re=xl();return re.firstChild,re.value=be,k(re,be,null),re})())),K(()=>D.value=d()),D}}),null),k(fe,m(Yn,{}),null),me.$$click=()=>{s()==="queries"?e.setLocalStore("sortOrder",String(c()*-1)):e.setLocalStore("mutationSortOrder",String(u()*-1))},k(me,m(U,{get when(){return(s()==="queries"?c():u())===1},get children(){return[Ah(),m(hl,{})]}}),null),k(me,m(U,{get when(){return(s()==="queries"?c():u())===-1},get children(){return[Ph(),m(ml,{})]}}),null),Re.$$click=()=>{s()==="queries"?p().clear():y().clear()},k(Re,m(Wa,{})),we.$$click=()=>{pn()?(h().setOnline(!0),Cl(!1)):(h().setOnline(!1),Cl(!0))},k(we,(()=>{var D=S(()=>!!pn());return()=>D()?m(Xg,{}):m(Yg,{})})()),k($e,m(U,{get when(){return S(()=>!i().pipWindow)()&&!i().disabled},get children(){var D=Mh();return D.$$click=()=>{i().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500))},k(D,m(Jg,{})),K(()=>M(D,R(o().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),D}}),null),k($e,m(Se.Root,{gutter:4,get children(){return[m(Se.Trigger,{get class(){return R(o().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},get children(){return m(Zg,{})}}),m(Se.Portal,{ref:D=>I(D),get mount(){return S(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return m(Se.Content,{get class(){return R(o().settingsMenu,"tsqd-settings-menu")},get children(){return[(()=>{var D=Dh();return K(()=>M(D,R(o().settingsMenuHeader,"tsqd-settings-menu-header"))),D})(),m(U,{get when(){return!e.showPanelViewOnly},get children(){return m(Se.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[m(Se.SubTrigger,{get class(){return R(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[Oh(),m(Yn,{})]}}),m(Se.Portal,{ref:D=>I(D),get mount(){return S(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return m(Se.SubContent,{get class(){return R(o().settingsMenu,"tsqd-settings-submenu")},get children(){return[m(Se.Item,{onSelect:()=>{C("top")},as:"button",get class(){return R(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Ih(),m(hl,{})]}}),m(Se.Item,{onSelect:()=>{C("bottom")},as:"button",get class(){return R(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[Fh(),m(ml,{})]}}),m(Se.Item,{onSelect:()=>{C("left")},as:"button",get class(){return R(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Lh(),m(Gg,{})]}}),m(Se.Item,{onSelect:()=>{C("right")},as:"button",get class(){return R(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return[qh(),m(Hg,{})]}})]}})}})]}})}}),m(Se.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[m(Se.SubTrigger,{get class(){return R(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[_h(),m(Yn,{})]}}),m(Se.Portal,{ref:D=>I(D),get mount(){return S(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return m(Se.SubContent,{get class(){return R(o().settingsMenu,"tsqd-settings-submenu")},get children(){return[m(Se.Item,{onSelect:()=>{e.setLocalStore("theme_preference","light")},as:"button",get class(){return R(o().settingsSubButton,e.localStore.theme_preference==="light"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Rh(),m(jg,{})]}}),m(Se.Item,{onSelect:()=>{e.setLocalStore("theme_preference","dark")},as:"button",get class(){return R(o().settingsSubButton,e.localStore.theme_preference==="dark"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[zh(),m(Qg,{})]}}),m(Se.Item,{onSelect:()=>{e.setLocalStore("theme_preference","system")},as:"button",get class(){return R(o().settingsSubButton,e.localStore.theme_preference==="system"&&o().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Nh(),m(Wg,{})]}})]}})}})]}})]}})}})]}}),null),k(O,m(U,{get when(){return s()==="queries"},get children(){var D=Bh(),be=D.firstChild;return k(be,m(Lr,{by:re=>re.queryHash,get each(){return b()},children:re=>m(r1,{get query(){return re()}})})),K(()=>M(D,R(o().overflowQueryContainer,"tsqd-queries-overflow-container"))),D}}),null),k(O,m(U,{get when(){return s()==="mutations"},get children(){var D=Kh(),be=D.firstChild;return k(be,m(Lr,{by:re=>re.mutationId,get each(){return x()},children:re=>m(o1,{get mutation(){return re()}})})),K(()=>M(D,R(o().overflowQueryContainer,"tsqd-mutations-overflow-container"))),D}}),null),K(D=>{var be=R(o().queriesContainer,it()<en&&(Ge()||zt())&&r`
|
|
172
|
+
height: 50%;
|
|
173
|
+
max-height: 50%;
|
|
174
|
+
`,it()<en&&!(Ge()||zt())&&r`
|
|
175
|
+
height: 100%;
|
|
176
|
+
max-height: 100%;
|
|
177
|
+
`,"tsqd-queries-container"),re=R(o().row,"tsqd-header"),Ot=o().logoAndToggleContainer,Q=R(o().logo,"tsqd-text-logo-container"),nt=R(o().tanstackLogo,"tsqd-text-logo-tanstack"),Me=R(o().queryFlavorLogo,"tsqd-text-logo-query-flavor"),sn=R(o().row,"tsqd-filters-actions-container"),Qe=R(o().filtersContainer,"tsqd-filters-container"),It=R(o().filterInput,"tsqd-query-filter-textfield-container"),Gt=R("tsqd-query-filter-textfield"),vt=R(o().filterSelect,"tsqd-query-filter-sort-container"),ct=`Sort order ${(s()==="queries"?c():u())===-1?"descending":"ascending"}`,bt=(s()==="queries"?c():u())===-1,_=R(o().actionsContainer,"tsqd-actions-container"),ce=R(o().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),qe=`Clear ${s()} cache`,ge=R(o().actionsBtn,pn()&&o().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),le=`${pn()?"Unset offline mocking behavior":"Mock offline behavior"}`,pe=pn(),ke=`${pn()?"Unset offline mocking behavior":"Mock offline behavior"}`;return be!==D.e&&M(O,D.e=be),re!==D.t&&M(F,D.t=re),Ot!==D.a&&M($,D.a=Ot),Q!==D.o&&M(A,D.o=Q),nt!==D.i&&M(B,D.i=nt),Me!==D.n&&M(N,D.n=Me),sn!==D.s&&M(se,D.s=sn),Qe!==D.h&&M(he,D.h=Qe),It!==D.r&&M(de,D.r=It),Gt!==D.d&&M(ae,D.d=Gt),vt!==D.l&&M(fe,D.l=vt),ct!==D.u&&P(me,"aria-label",D.u=ct),bt!==D.c&&P(me,"aria-pressed",D.c=bt),_!==D.w&&M($e,D.w=_),ce!==D.m&&M(Re,D.m=ce),qe!==D.f&&P(Re,"title",D.f=qe),ge!==D.y&&M(we,D.y=ge),le!==D.g&&P(we,"aria-label",D.g=le),pe!==D.p&&P(we,"aria-pressed",D.p=pe),ke!==D.b&&P(we,"title",D.b=ke),D},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0}),K(()=>ae.value=s()==="queries"?e.localStore.filter||"":e.localStore.mutationFilter||""),O})(),m(U,{get when(){return S(()=>s()==="queries")()&&Ge()},get children(){return m(l1,{})}}),m(U,{get when(){return S(()=>s()==="mutations")()&&zt()},get children(){return m(a1,{})}})]},r1=e=>{let t=Ae(),n=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,r=S(()=>t()==="dark"?tt(n):et(n)),{colors:o,alpha:i}=E,s=(f,h)=>t()==="dark"?h:f,a=Pe(f=>f().find({queryKey:e.query.queryKey})?.state,!0,f=>f.query.queryHash===e.query.queryHash),l=Pe(f=>f().find({queryKey:e.query.queryKey})?.isDisabled()??!1,!0,f=>f.query.queryHash===e.query.queryHash),c=Pe(f=>f().find({queryKey:e.query.queryKey})?.isStale()??!1,!0,f=>f.query.queryHash===e.query.queryHash),d=Pe(f=>f().find({queryKey:e.query.queryKey})?.getObserversCount()??0,!0,f=>f.query.queryHash===e.query.queryHash),u=S(()=>$s({queryState:a(),observerCount:d(),isStale:c()})),g=()=>u()==="gray"?n`
|
|
178
|
+
background-color: ${s(o[u()][200],o[u()][700])};
|
|
179
|
+
color: ${s(o[u()][700],o[u()][300])};
|
|
180
|
+
`:n`
|
|
181
|
+
background-color: ${s(o[u()][200]+i[80],o[u()][900])};
|
|
182
|
+
color: ${s(o[u()][800],o[u()][300])};
|
|
183
|
+
`;return m(U,{get when(){return a()},get children(){var f=Xa(),h=f.firstChild,p=h.nextSibling;return f.$$click=()=>Jr(e.query.queryHash===Ge()?null:e.query.queryHash),k(h,d),k(p,()=>e.query.queryHash),k(f,m(U,{get when(){return l()},get children(){return Uh()}}),null),K(y=>{var v=R(r().queryRow,Ge()===e.query.queryHash&&r().selectedQueryRow,"tsqd-query-row"),b=`Query key ${e.query.queryHash}`,w=R(g(),"tsqd-query-observer-count");return v!==y.e&&M(f,y.e=v),b!==y.t&&P(f,"aria-label",y.t=b),w!==y.a&&M(h,y.a=w),y},{e:void 0,t:void 0,a:void 0}),f}})},o1=e=>{let t=Ae(),n=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,r=S(()=>t()==="dark"?tt(n):et(n)),{colors:o,alpha:i}=E,s=(g,f)=>t()==="dark"?f:g,a=ot(g=>g().getAll().find(p=>p.mutationId===e.mutation.mutationId)?.state),l=ot(g=>{let h=g().getAll().find(p=>p.mutationId===e.mutation.mutationId);return h?h.state.isPaused:!1}),c=ot(g=>{let h=g().getAll().find(p=>p.mutationId===e.mutation.mutationId);return h?h.state.status:"idle"}),d=S(()=>Zt({isPaused:l(),status:c()})),u=()=>d()==="gray"?n`
|
|
184
|
+
background-color: ${s(o[d()][200],o[d()][700])};
|
|
185
|
+
color: ${s(o[d()][700],o[d()][300])};
|
|
186
|
+
`:n`
|
|
187
|
+
background-color: ${s(o[d()][200]+i[80],o[d()][900])};
|
|
188
|
+
color: ${s(o[d()][800],o[d()][300])};
|
|
189
|
+
`;return m(U,{get when(){return a()},get children(){var g=Xa(),f=g.firstChild,h=f.nextSibling;return g.$$click=()=>{Za(e.mutation.mutationId===zt()?null:e.mutation.mutationId)},k(f,m(U,{get when(){return d()==="purple"},get children(){return m(ch,{})}}),null),k(f,m(U,{get when(){return d()==="green"},get children(){return m(sh,{})}}),null),k(f,m(U,{get when(){return d()==="red"},get children(){return m(ah,{})}}),null),k(f,m(U,{get when(){return d()==="yellow"},get children(){return m(lh,{})}}),null),k(h,m(U,{get when(){return e.mutation.options.mutationKey},get children(){return[S(()=>JSON.stringify(e.mutation.options.mutationKey))," -"," "]}}),null),k(h,()=>new Date(e.mutation.state.submittedAt).toLocaleString(),null),K(p=>{var y=R(r().queryRow,zt()===e.mutation.mutationId&&r().selectedQueryRow,"tsqd-query-row"),v=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,b=R(u(),"tsqd-query-observer-count");return y!==p.e&&M(g,p.e=y),v!==p.t&&P(g,"aria-label",p.t=v),b!==p.a&&M(f,p.a=b),p},{e:void 0,t:void 0,a:void 0}),g}})},i1=()=>{let e=Pe(l=>l().getAll().filter(c=>Xt(c)==="stale").length),t=Pe(l=>l().getAll().filter(c=>Xt(c)==="fresh").length),n=Pe(l=>l().getAll().filter(c=>Xt(c)==="fetching").length),r=Pe(l=>l().getAll().filter(c=>Xt(c)==="paused").length),o=Pe(l=>l().getAll().filter(c=>Xt(c)==="inactive").length),i=Ae(),s=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,a=S(()=>i()==="dark"?tt(s):et(s));return(()=>{var l=ar();return k(l,m(Tt,{label:"Fresh",color:"green",get count(){return t()}}),null),k(l,m(Tt,{label:"Fetching",color:"blue",get count(){return n()}}),null),k(l,m(Tt,{label:"Paused",color:"purple",get count(){return r()}}),null),k(l,m(Tt,{label:"Stale",color:"yellow",get count(){return e()}}),null),k(l,m(Tt,{label:"Inactive",color:"gray",get count(){return o()}}),null),K(()=>M(l,R(a().queryStatusContainer,"tsqd-query-status-container"))),l})()},s1=()=>{let e=ot(a=>a().getAll().filter(l=>Zt({isPaused:l.state.isPaused,status:l.state.status})==="green").length),t=ot(a=>a().getAll().filter(l=>Zt({isPaused:l.state.isPaused,status:l.state.status})==="yellow").length),n=ot(a=>a().getAll().filter(l=>Zt({isPaused:l.state.isPaused,status:l.state.status})==="purple").length),r=ot(a=>a().getAll().filter(l=>Zt({isPaused:l.state.isPaused,status:l.state.status})==="red").length),o=Ae(),i=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,s=S(()=>o()==="dark"?tt(i):et(i));return(()=>{var a=ar();return k(a,m(Tt,{label:"Paused",color:"purple",get count(){return n()}}),null),k(a,m(Tt,{label:"Pending",color:"yellow",get count(){return t()}}),null),k(a,m(Tt,{label:"Success",color:"green",get count(){return e()}}),null),k(a,m(Tt,{label:"Error",color:"red",get count(){return r()}}),null),K(()=>M(a,R(s().queryStatusContainer,"tsqd-query-status-container"))),a})()},Tt=e=>{let t=Ae(),n=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,r=S(()=>t()==="dark"?tt(n):et(n)),{colors:o,alpha:i}=E,s=(f,h)=>t()==="dark"?h:f,a,[l,c]=q(!1),[d,u]=q(!1),g=S(()=>!(Ge()&&it()<nd&&it()>en||it()<en));return(()=>{var f=jh(),h=f.firstChild,p=h.nextSibling,y=a;return typeof y=="function"?Wt(y,f):a=f,f.addEventListener("mouseleave",()=>{c(!1),u(!1)}),f.addEventListener("mouseenter",()=>c(!0)),f.addEventListener("blur",()=>u(!1)),f.addEventListener("focus",()=>u(!0)),Co(f,W({get disabled(){return g()},get class(){return R(r().queryStatusTag,!g()&&n`
|
|
190
|
+
cursor: pointer;
|
|
191
|
+
&:hover {
|
|
192
|
+
background: ${s(o.gray[200],o.darkGray[400])}${i[80]};
|
|
193
|
+
}
|
|
194
|
+
`,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>l()||d()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),k(f,m(U,{get when(){return S(()=>!g())()&&(l()||d())},get children(){var v=Gh();return k(v,()=>e.label),K(()=>M(v,R(r().statusTooltip,"tsqd-query-status-tooltip"))),v}}),h),k(f,m(U,{get when(){return g()},get children(){var v=Hh();return k(v,()=>e.label),K(()=>M(v,R(r().queryStatusTagLabel,"tsqd-query-status-tag-label"))),v}}),p),k(p,()=>e.count),K(v=>{var b=R(n`
|
|
195
|
+
width: ${E.size[1.5]};
|
|
196
|
+
height: ${E.size[1.5]};
|
|
197
|
+
border-radius: ${E.border.radius.full};
|
|
198
|
+
background-color: ${E.colors[e.color][500]};
|
|
199
|
+
`,"tsqd-query-status-tag-dot"),w=R(r().queryStatusCount,e.count>0&&e.color!=="gray"&&n`
|
|
200
|
+
background-color: ${s(o[e.color][100],o[e.color][900])};
|
|
201
|
+
color: ${s(o[e.color][700],o[e.color][300])};
|
|
202
|
+
`,"tsqd-query-status-tag-count");return b!==v.e&&M(h,v.e=b),w!==v.t&&M(p,v.t=w),v},{e:void 0,t:void 0}),f})()},l1=()=>{let e=Ae(),t=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,n=S(()=>e()==="dark"?tt(t):et(t)),{colors:r}=E,o=($,A)=>e()==="dark"?A:$,i=G().client,[s,a]=q(!1),[l,c]=q("view"),[d,u]=q(!1),g=S(()=>G().errorTypes||[]),f=Pe($=>$().getAll().find(A=>A.queryHash===Ge()),!1),h=Pe($=>$().getAll().find(A=>A.queryHash===Ge()),!1),p=Pe($=>$().getAll().find(A=>A.queryHash===Ge())?.state,!1),y=Pe($=>$().getAll().find(A=>A.queryHash===Ge())?.state.data,!1),v=Pe($=>{let A=$().getAll().find(B=>B.queryHash===Ge());return A?Xt(A):"inactive"}),b=Pe($=>{let A=$().getAll().find(B=>B.queryHash===Ge());return A?A.state.status:"pending"}),w=Pe($=>$().getAll().find(A=>A.queryHash===Ge())?.getObserversCount()??0),x=S(()=>ks(v())),C=()=>{f()?.fetch()?.catch(()=>{})},I=$=>{let A=$?.initializer(f())??new Error("Unknown error from devtools"),B=f().options;f().setState({status:"error",error:A,fetchMeta:{...f().state.fetchMeta,__previousQueryOptions:B}})},O=()=>{let $=f(),A=$.state,B=$.state.fetchMeta?$.state.fetchMeta.__previousQueryOptions:null;$.cancel({silent:!0}),$.setState({...A,fetchStatus:"idle",fetchMeta:null}),B&&$.fetch(B)};V(()=>{v()!=="fetching"&&a(!1)});let F=()=>x()==="gray"?t`
|
|
203
|
+
background-color: ${o(r[x()][200],r[x()][700])};
|
|
204
|
+
color: ${o(r[x()][700],r[x()][300])};
|
|
205
|
+
border-color: ${o(r[x()][400],r[x()][600])};
|
|
206
|
+
`:t`
|
|
207
|
+
background-color: ${o(r[x()][100],r[x()][900])};
|
|
208
|
+
color: ${o(r[x()][700],r[x()][300])};
|
|
209
|
+
border-color: ${o(r[x()][400],r[x()][600])};
|
|
210
|
+
`;return m(U,{get when(){return S(()=>!!f())()&&p()},get children(){var $=Zh(),A=$.firstChild,B=A.nextSibling,N=B.firstChild,J=N.firstChild,se=J.firstChild,he=J.nextSibling,de=N.nextSibling,ae=de.firstChild,fe=ae.nextSibling,me=de.nextSibling,$e=me.firstChild,Re=$e.nextSibling,we=B.nextSibling,Le=we.nextSibling,D=Le.firstChild,be=D.firstChild,re=D.nextSibling,Ot=re.firstChild,Q=re.nextSibling,nt=Q.firstChild,Me=Q.nextSibling,sn=Me.firstChild,Qe=Me.nextSibling,It=Qe.firstChild,Gt=It.nextSibling,vt=Le.nextSibling;vt.firstChild;var ct=vt.nextSibling,bt=ct.nextSibling;return k(se,()=>Vn(f().queryKey,!0)),k(he,v),k(fe,w),k(Re,()=>new Date(p().dataUpdatedAt).toLocaleTimeString()),D.$$click=C,re.$$click=()=>i.invalidateQueries(f()),Q.$$click=()=>i.resetQueries(f()),Me.$$click=()=>{i.removeQueries(f()),Jr(null)},Qe.$$click=()=>{if(f()?.state.data===void 0)a(!0),O();else{let _=f();if(!_)return;let ce=_.options;_.fetch({...ce,queryFn:()=>new Promise(()=>{}),gcTime:-1}),_.setState({data:void 0,status:"pending",fetchMeta:{..._.state.fetchMeta,__previousQueryOptions:ce}})}},k(Qe,()=>b()==="pending"?"Restore":"Trigger",Gt),k(Le,m(U,{get when(){return g().length===0||b()==="error"},get children(){var _=Qh(),ce=_.firstChild,qe=ce.nextSibling;return _.$$click=()=>{f().state.error?i.resetQueries(f()):I()},k(_,()=>b()==="error"?"Restore":"Trigger",qe),K(ge=>{var le=R(t`
|
|
211
|
+
color: ${o(r.red[500],r.red[400])};
|
|
212
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),pe=b()==="pending",ke=t`
|
|
213
|
+
background-color: ${o(r.red[500],r.red[400])};
|
|
214
|
+
`;return le!==ge.e&&M(_,ge.e=le),pe!==ge.t&&(_.disabled=ge.t=pe),ke!==ge.a&&M(ce,ge.a=ke),ge},{e:void 0,t:void 0,a:void 0}),_}}),null),k(Le,m(U,{get when(){return!(g().length===0||b()==="error")},get children(){var _=Wh(),ce=_.firstChild,qe=ce.nextSibling,ge=qe.nextSibling;return ge.firstChild,ge.addEventListener("change",le=>{let pe=g().find(ke=>ke.name===le.currentTarget.value);I(pe)}),k(ge,m(es,{get each(){return g()},children:le=>(()=>{var pe=Jh();return k(pe,()=>le.name),K(()=>pe.value=le.name),pe})()}),null),k(_,m(Yn,{}),null),K(le=>{var pe=R(n().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),ke=t`
|
|
215
|
+
background-color: ${E.colors.red[400]};
|
|
216
|
+
`,ie=b()==="pending";return pe!==le.e&&M(_,le.e=pe),ke!==le.t&&M(ce,le.t=ke),ie!==le.a&&(ge.disabled=le.a=ie),le},{e:void 0,t:void 0,a:void 0}),_}}),null),k(vt,()=>l()==="view"?"Explorer":"Editor",null),k($,m(U,{get when(){return l()==="view"},get children(){var _=Yh();return k(_,m(Rt,{label:"Data",defaultExpanded:["Data"],get value(){return y()},editable:!0,onEdit:()=>c("edit"),get activeQuery(){return f()}})),K(ce=>(ce=E.size[2])!=null?_.style.setProperty("padding",ce):_.style.removeProperty("padding")),_}}),ct),k($,m(U,{get when(){return l()==="edit"},get children(){var _=Xh(),ce=_.firstChild,qe=ce.nextSibling,ge=qe.firstChild,le=ge.nextSibling,pe=le.firstChild,ke=pe.nextSibling;return _.addEventListener("submit",ie=>{ie.preventDefault();let xt=new FormData(ie.currentTarget).get("data");try{let rt=JSON.parse(xt);f().setState({...f().state,data:rt}),c("view")}catch{u(!0)}}),ce.addEventListener("focus",()=>u(!1)),k(ge,()=>d()?"Invalid Value":""),pe.$$click=()=>c("view"),K(ie=>{var wt=R(n().devtoolsEditForm,"tsqd-query-details-data-editor"),xt=n().devtoolsEditTextarea,rt=d(),Ht=n().devtoolsEditFormActions,Ct=n().devtoolsEditFormError,jt=n().devtoolsEditFormActionContainer,St=R(n().devtoolsEditFormAction,t`
|
|
217
|
+
color: ${o(r.gray[600],r.gray[300])};
|
|
218
|
+
`),Ft=R(n().devtoolsEditFormAction,t`
|
|
219
|
+
color: ${o(r.blue[600],r.blue[400])};
|
|
220
|
+
`);return wt!==ie.e&&M(_,ie.e=wt),xt!==ie.t&&M(ce,ie.t=xt),rt!==ie.a&&P(ce,"data-error",ie.a=rt),Ht!==ie.o&&M(qe,ie.o=Ht),Ct!==ie.i&&M(ge,ie.i=Ct),jt!==ie.n&&M(le,ie.n=jt),St!==ie.s&&M(pe,ie.s=St),Ft!==ie.h&&M(ke,ie.h=Ft),ie},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),K(()=>ce.value=JSON.stringify(y(),null,2)),_}}),ct),k(bt,m(Rt,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return h()}})),K(_=>{var ce=R(n().detailsContainer,"tsqd-query-details-container"),qe=R(n().detailsHeader,"tsqd-query-details-header"),ge=R(n().detailsBody,"tsqd-query-details-summary-container"),le=R(n().queryDetailsStatus,F()),pe=R(n().detailsHeader,"tsqd-query-details-header"),ke=R(n().actionsBody,"tsqd-query-details-actions-container"),ie=R(t`
|
|
221
|
+
color: ${o(r.blue[600],r.blue[400])};
|
|
222
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),wt=v()==="fetching",xt=t`
|
|
223
|
+
background-color: ${o(r.blue[600],r.blue[400])};
|
|
224
|
+
`,rt=R(t`
|
|
225
|
+
color: ${o(r.yellow[600],r.yellow[400])};
|
|
226
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),Ht=b()==="pending",Ct=t`
|
|
227
|
+
background-color: ${o(r.yellow[600],r.yellow[400])};
|
|
228
|
+
`,jt=R(t`
|
|
229
|
+
color: ${o(r.gray[600],r.gray[300])};
|
|
230
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),St=b()==="pending",Ft=t`
|
|
231
|
+
background-color: ${o(r.gray[600],r.gray[400])};
|
|
232
|
+
`,ur=R(t`
|
|
233
|
+
color: ${o(r.pink[500],r.pink[400])};
|
|
234
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),Tn=v()==="fetching",dr=t`
|
|
235
|
+
background-color: ${o(r.pink[500],r.pink[400])};
|
|
236
|
+
`,ln=R(t`
|
|
237
|
+
color: ${o(r.cyan[500],r.cyan[400])};
|
|
238
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),fr=s(),An=t`
|
|
239
|
+
background-color: ${o(r.cyan[500],r.cyan[400])};
|
|
240
|
+
`,Pn=R(n().detailsHeader,"tsqd-query-details-header"),Mn=R(n().detailsHeader,"tsqd-query-details-header"),an=E.size[2];return ce!==_.e&&M($,_.e=ce),qe!==_.t&&M(A,_.t=qe),ge!==_.a&&M(B,_.a=ge),le!==_.o&&M(he,_.o=le),pe!==_.i&&M(we,_.i=pe),ke!==_.n&&M(Le,_.n=ke),ie!==_.s&&M(D,_.s=ie),wt!==_.h&&(D.disabled=_.h=wt),xt!==_.r&&M(be,_.r=xt),rt!==_.d&&M(re,_.d=rt),Ht!==_.l&&(re.disabled=_.l=Ht),Ct!==_.u&&M(Ot,_.u=Ct),jt!==_.c&&M(Q,_.c=jt),St!==_.w&&(Q.disabled=_.w=St),Ft!==_.m&&M(nt,_.m=Ft),ur!==_.f&&M(Me,_.f=ur),Tn!==_.y&&(Me.disabled=_.y=Tn),dr!==_.g&&M(sn,_.g=dr),ln!==_.p&&M(Qe,_.p=ln),fr!==_.b&&(Qe.disabled=_.b=fr),An!==_.T&&M(It,_.T=An),Pn!==_.A&&M(vt,_.A=Pn),Mn!==_.O&&M(ct,_.O=Mn),an!==_.I&&((_.I=an)!=null?bt.style.setProperty("padding",an):bt.style.removeProperty("padding")),_},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0,T:void 0,A:void 0,O:void 0,I:void 0}),$}})},a1=()=>{let e=Ae(),t=G().shadowDOMTarget?Y.bind({target:G().shadowDOMTarget}):Y,n=S(()=>e()==="dark"?tt(t):et(t)),{colors:r}=E,o=(d,u)=>e()==="dark"?u:d,i=ot(d=>{let g=d().getAll().find(f=>f.mutationId===zt());return g?g.state.isPaused:!1}),s=ot(d=>{let g=d().getAll().find(f=>f.mutationId===zt());return g?g.state.status:"idle"}),a=S(()=>Zt({isPaused:i(),status:s()})),l=ot(d=>d().getAll().find(u=>u.mutationId===zt()),!1),c=()=>a()==="gray"?t`
|
|
241
|
+
background-color: ${o(r[a()][200],r[a()][700])};
|
|
242
|
+
color: ${o(r[a()][700],r[a()][300])};
|
|
243
|
+
border-color: ${o(r[a()][400],r[a()][600])};
|
|
244
|
+
`:t`
|
|
245
|
+
background-color: ${o(r[a()][100],r[a()][900])};
|
|
246
|
+
color: ${o(r[a()][700],r[a()][300])};
|
|
247
|
+
border-color: ${o(r[a()][400],r[a()][600])};
|
|
248
|
+
`;return m(U,{get when(){return l()},get children(){var d=e1(),u=d.firstChild,g=u.nextSibling,f=g.firstChild,h=f.firstChild,p=h.firstChild,y=h.nextSibling,v=f.nextSibling,b=v.firstChild,w=b.nextSibling,x=g.nextSibling,C=x.nextSibling,I=C.nextSibling,O=I.nextSibling,F=O.nextSibling,$=F.nextSibling,A=$.nextSibling,B=A.nextSibling;return k(p,m(U,{get when(){return l().options.mutationKey},fallback:"No mutationKey found",get children(){return Vn(l().options.mutationKey,!0)}})),k(y,m(U,{get when(){return a()==="purple"},children:"pending"}),null),k(y,m(U,{get when(){return a()!=="purple"},get children(){return s()}}),null),k(w,()=>new Date(l().state.submittedAt).toLocaleTimeString()),k(C,m(Rt,{label:"Variables",defaultExpanded:["Variables"],get value(){return l().state.variables}})),k(O,m(Rt,{label:"Context",defaultExpanded:["Context"],get value(){return l().state.context}})),k($,m(Rt,{label:"Data",defaultExpanded:["Data"],get value(){return l().state.data}})),k(B,m(Rt,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return l()}})),K(N=>{var J=R(n().detailsContainer,"tsqd-query-details-container"),se=R(n().detailsHeader,"tsqd-query-details-header"),he=R(n().detailsBody,"tsqd-query-details-summary-container"),de=R(n().queryDetailsStatus,c()),ae=R(n().detailsHeader,"tsqd-query-details-header"),fe=E.size[2],me=R(n().detailsHeader,"tsqd-query-details-header"),$e=E.size[2],Re=R(n().detailsHeader,"tsqd-query-details-header"),we=E.size[2],Le=R(n().detailsHeader,"tsqd-query-details-header"),D=E.size[2];return J!==N.e&&M(d,N.e=J),se!==N.t&&M(u,N.t=se),he!==N.a&&M(g,N.a=he),de!==N.o&&M(y,N.o=de),ae!==N.i&&M(x,N.i=ae),fe!==N.n&&((N.n=fe)!=null?C.style.setProperty("padding",fe):C.style.removeProperty("padding")),me!==N.s&&M(I,N.s=me),$e!==N.h&&((N.h=$e)!=null?O.style.setProperty("padding",$e):O.style.removeProperty("padding")),Re!==N.r&&M(F,N.r=Re),we!==N.d&&((N.d=we)!=null?$.style.setProperty("padding",we):$.style.removeProperty("padding")),Le!==N.l&&M(A,N.l=Le),D!==N.u&&((N.u=D)!=null?B.style.setProperty("padding",D):B.style.removeProperty("padding")),N},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0}),d}})},Nr=new Map,c1=()=>{let e=S(()=>G().client.getQueryCache()),t=e().subscribe(n=>{Ui(()=>{for(let[r,o]of Nr.entries())o.shouldUpdate(n)&&o.setter(r(e))})});return H(()=>{Nr.clear(),t()}),t},Pe=(e,t=!0,n=()=>!0)=>{let r=S(()=>G().client.getQueryCache()),[o,i]=q(e(r),t?void 0:{equals:!1});return V(()=>{i(e(r))}),Nr.set(e,{setter:i,shouldUpdate:n}),H(()=>{Nr.delete(e)}),o},Br=new Map,u1=()=>{let e=S(()=>G().client.getMutationCache()),t=e().subscribe(()=>{for(let[n,r]of Br.entries())queueMicrotask(()=>{r(n(e))})});return H(()=>{Br.clear(),t()}),t},ot=(e,t=!0)=>{let n=S(()=>G().client.getMutationCache()),[r,o]=q(e(n),t?void 0:{equals:!1});return V(()=>{o(e(n))}),Br.set(e,o),H(()=>{Br.delete(e)}),r},tc=(e,t)=>{let{colors:n,font:r,size:o,alpha:i,shadow:s,border:a}=E,l=(c,d)=>e==="light"?c:d;return{devtoolsBtn:t`
|
|
249
|
+
z-index: 100000;
|
|
250
|
+
position: fixed;
|
|
251
|
+
padding: 4px;
|
|
252
|
+
text-align: left;
|
|
253
|
+
|
|
254
|
+
display: flex;
|
|
255
|
+
align-items: center;
|
|
256
|
+
justify-content: center;
|
|
257
|
+
border-radius: 9999px;
|
|
258
|
+
box-shadow: ${s.md()};
|
|
259
|
+
overflow: hidden;
|
|
260
|
+
|
|
261
|
+
& div {
|
|
262
|
+
position: absolute;
|
|
263
|
+
top: -8px;
|
|
264
|
+
left: -8px;
|
|
265
|
+
right: -8px;
|
|
266
|
+
bottom: -8px;
|
|
267
|
+
border-radius: 9999px;
|
|
268
|
+
|
|
269
|
+
& svg {
|
|
270
|
+
position: absolute;
|
|
271
|
+
width: 100%;
|
|
272
|
+
height: 100%;
|
|
273
|
+
}
|
|
274
|
+
filter: blur(6px) saturate(1.2) contrast(1.1);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&:focus-within {
|
|
278
|
+
outline-offset: 2px;
|
|
279
|
+
outline: 3px solid ${n.green[600]};
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
& button {
|
|
283
|
+
position: relative;
|
|
284
|
+
z-index: 1;
|
|
285
|
+
padding: 0;
|
|
286
|
+
border-radius: 9999px;
|
|
287
|
+
background-color: transparent;
|
|
288
|
+
border: none;
|
|
289
|
+
height: 40px;
|
|
290
|
+
display: flex;
|
|
291
|
+
width: 40px;
|
|
292
|
+
overflow: hidden;
|
|
293
|
+
cursor: pointer;
|
|
294
|
+
outline: none;
|
|
295
|
+
& svg {
|
|
296
|
+
position: absolute;
|
|
297
|
+
width: 100%;
|
|
298
|
+
height: 100%;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
`,panel:t`
|
|
302
|
+
position: fixed;
|
|
303
|
+
z-index: 9999;
|
|
304
|
+
display: flex;
|
|
305
|
+
gap: ${E.size[.5]};
|
|
306
|
+
& * {
|
|
307
|
+
box-sizing: border-box;
|
|
308
|
+
text-transform: none;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
& *::-webkit-scrollbar {
|
|
312
|
+
width: 7px;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
& *::-webkit-scrollbar-track {
|
|
316
|
+
background: transparent;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
& *::-webkit-scrollbar-thumb {
|
|
320
|
+
background: ${l(n.gray[300],n.darkGray[200])};
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
324
|
+
background: ${l(n.gray[400],n.darkGray[300])};
|
|
325
|
+
}
|
|
326
|
+
`,parentPanel:t`
|
|
327
|
+
z-index: 9999;
|
|
328
|
+
display: flex;
|
|
329
|
+
height: 100%;
|
|
330
|
+
gap: ${E.size[.5]};
|
|
331
|
+
& * {
|
|
332
|
+
box-sizing: border-box;
|
|
333
|
+
text-transform: none;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
& *::-webkit-scrollbar {
|
|
337
|
+
width: 7px;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
& *::-webkit-scrollbar-track {
|
|
341
|
+
background: transparent;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
& *::-webkit-scrollbar-thumb {
|
|
345
|
+
background: ${l(n.gray[300],n.darkGray[200])};
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
349
|
+
background: ${l(n.gray[400],n.darkGray[300])};
|
|
350
|
+
}
|
|
351
|
+
`,"devtoolsBtn-position-bottom-right":t`
|
|
352
|
+
bottom: 12px;
|
|
353
|
+
right: 12px;
|
|
354
|
+
`,"devtoolsBtn-position-bottom-left":t`
|
|
355
|
+
bottom: 12px;
|
|
356
|
+
left: 12px;
|
|
357
|
+
`,"devtoolsBtn-position-top-left":t`
|
|
358
|
+
top: 12px;
|
|
359
|
+
left: 12px;
|
|
360
|
+
`,"devtoolsBtn-position-top-right":t`
|
|
361
|
+
top: 12px;
|
|
362
|
+
right: 12px;
|
|
363
|
+
`,"devtoolsBtn-position-relative":t`
|
|
364
|
+
position: relative;
|
|
365
|
+
`,"panel-position-top":t`
|
|
366
|
+
top: 0;
|
|
367
|
+
right: 0;
|
|
368
|
+
left: 0;
|
|
369
|
+
max-height: 90%;
|
|
370
|
+
min-height: ${o[14]};
|
|
371
|
+
border-bottom: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
372
|
+
`,"panel-position-bottom":t`
|
|
373
|
+
bottom: 0;
|
|
374
|
+
right: 0;
|
|
375
|
+
left: 0;
|
|
376
|
+
max-height: 90%;
|
|
377
|
+
min-height: ${o[14]};
|
|
378
|
+
border-top: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
379
|
+
`,"panel-position-right":t`
|
|
380
|
+
bottom: 0;
|
|
381
|
+
right: 0;
|
|
382
|
+
top: 0;
|
|
383
|
+
border-left: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
384
|
+
max-width: 90%;
|
|
385
|
+
`,"panel-position-left":t`
|
|
386
|
+
bottom: 0;
|
|
387
|
+
left: 0;
|
|
388
|
+
top: 0;
|
|
389
|
+
border-right: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
390
|
+
max-width: 90%;
|
|
391
|
+
`,closeBtn:t`
|
|
392
|
+
position: absolute;
|
|
393
|
+
cursor: pointer;
|
|
394
|
+
z-index: 5;
|
|
395
|
+
display: flex;
|
|
396
|
+
align-items: center;
|
|
397
|
+
justify-content: center;
|
|
398
|
+
outline: none;
|
|
399
|
+
background-color: ${l(n.gray[50],n.darkGray[700])};
|
|
400
|
+
&:hover {
|
|
401
|
+
background-color: ${l(n.gray[200],n.darkGray[500])};
|
|
402
|
+
}
|
|
403
|
+
&:focus-visible {
|
|
404
|
+
outline: 2px solid ${n.blue[600]};
|
|
405
|
+
}
|
|
406
|
+
& svg {
|
|
407
|
+
color: ${l(n.gray[600],n.gray[400])};
|
|
408
|
+
width: ${o[2]};
|
|
409
|
+
height: ${o[2]};
|
|
410
|
+
}
|
|
411
|
+
`,"closeBtn-position-top":t`
|
|
412
|
+
bottom: 0;
|
|
413
|
+
right: ${o[2]};
|
|
414
|
+
transform: translate(0, 100%);
|
|
415
|
+
border-right: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
416
|
+
border-left: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
417
|
+
border-top: none;
|
|
418
|
+
border-bottom: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
419
|
+
border-radius: 0px 0px ${a.radius.sm} ${a.radius.sm};
|
|
420
|
+
padding: ${o[.5]} ${o[1.5]} ${o[1]} ${o[1.5]};
|
|
421
|
+
|
|
422
|
+
&::after {
|
|
423
|
+
content: ' ';
|
|
424
|
+
position: absolute;
|
|
425
|
+
bottom: 100%;
|
|
426
|
+
left: -${o[2.5]};
|
|
427
|
+
height: ${o[1.5]};
|
|
428
|
+
width: calc(100% + ${o[5]});
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
& svg {
|
|
432
|
+
transform: rotate(180deg);
|
|
433
|
+
}
|
|
434
|
+
`,"closeBtn-position-bottom":t`
|
|
435
|
+
top: 0;
|
|
436
|
+
right: ${o[2]};
|
|
437
|
+
transform: translate(0, -100%);
|
|
438
|
+
border-right: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
439
|
+
border-left: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
440
|
+
border-top: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
441
|
+
border-bottom: none;
|
|
442
|
+
border-radius: ${a.radius.sm} ${a.radius.sm} 0px 0px;
|
|
443
|
+
padding: ${o[1]} ${o[1.5]} ${o[.5]} ${o[1.5]};
|
|
444
|
+
|
|
445
|
+
&::after {
|
|
446
|
+
content: ' ';
|
|
447
|
+
position: absolute;
|
|
448
|
+
top: 100%;
|
|
449
|
+
left: -${o[2.5]};
|
|
450
|
+
height: ${o[1.5]};
|
|
451
|
+
width: calc(100% + ${o[5]});
|
|
452
|
+
}
|
|
453
|
+
`,"closeBtn-position-right":t`
|
|
454
|
+
bottom: ${o[2]};
|
|
455
|
+
left: 0;
|
|
456
|
+
transform: translate(-100%, 0);
|
|
457
|
+
border-right: none;
|
|
458
|
+
border-left: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
459
|
+
border-top: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
460
|
+
border-bottom: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
461
|
+
border-radius: ${a.radius.sm} 0px 0px ${a.radius.sm};
|
|
462
|
+
padding: ${o[1.5]} ${o[.5]} ${o[1.5]} ${o[1]};
|
|
463
|
+
|
|
464
|
+
&::after {
|
|
465
|
+
content: ' ';
|
|
466
|
+
position: absolute;
|
|
467
|
+
left: 100%;
|
|
468
|
+
height: calc(100% + ${o[5]});
|
|
469
|
+
width: ${o[1.5]};
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
& svg {
|
|
473
|
+
transform: rotate(-90deg);
|
|
474
|
+
}
|
|
475
|
+
`,"closeBtn-position-left":t`
|
|
476
|
+
bottom: ${o[2]};
|
|
477
|
+
right: 0;
|
|
478
|
+
transform: translate(100%, 0);
|
|
479
|
+
border-left: none;
|
|
480
|
+
border-right: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
481
|
+
border-top: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
482
|
+
border-bottom: ${l(n.gray[400],n.darkGray[300])} 1px solid;
|
|
483
|
+
border-radius: 0px ${a.radius.sm} ${a.radius.sm} 0px;
|
|
484
|
+
padding: ${o[1.5]} ${o[1]} ${o[1.5]} ${o[.5]};
|
|
485
|
+
|
|
486
|
+
&::after {
|
|
487
|
+
content: ' ';
|
|
488
|
+
position: absolute;
|
|
489
|
+
right: 100%;
|
|
490
|
+
height: calc(100% + ${o[5]});
|
|
491
|
+
width: ${o[1.5]};
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
& svg {
|
|
495
|
+
transform: rotate(90deg);
|
|
496
|
+
}
|
|
497
|
+
`,queriesContainer:t`
|
|
498
|
+
flex: 1 1 700px;
|
|
499
|
+
background-color: ${l(n.gray[50],n.darkGray[700])};
|
|
500
|
+
display: flex;
|
|
501
|
+
flex-direction: column;
|
|
502
|
+
& * {
|
|
503
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
504
|
+
}
|
|
505
|
+
`,dragHandle:t`
|
|
506
|
+
position: absolute;
|
|
507
|
+
transition: background-color 0.125s ease;
|
|
508
|
+
&:hover {
|
|
509
|
+
background-color: ${n.purple[400]}${l("",i[90])};
|
|
510
|
+
}
|
|
511
|
+
z-index: 4;
|
|
512
|
+
`,"dragHandle-position-top":t`
|
|
513
|
+
bottom: 0;
|
|
514
|
+
width: 100%;
|
|
515
|
+
height: 3px;
|
|
516
|
+
cursor: ns-resize;
|
|
517
|
+
`,"dragHandle-position-bottom":t`
|
|
518
|
+
top: 0;
|
|
519
|
+
width: 100%;
|
|
520
|
+
height: 3px;
|
|
521
|
+
cursor: ns-resize;
|
|
522
|
+
`,"dragHandle-position-right":t`
|
|
523
|
+
left: 0;
|
|
524
|
+
width: 3px;
|
|
525
|
+
height: 100%;
|
|
526
|
+
cursor: ew-resize;
|
|
527
|
+
`,"dragHandle-position-left":t`
|
|
528
|
+
right: 0;
|
|
529
|
+
width: 3px;
|
|
530
|
+
height: 100%;
|
|
531
|
+
cursor: ew-resize;
|
|
532
|
+
`,row:t`
|
|
533
|
+
display: flex;
|
|
534
|
+
justify-content: space-between;
|
|
535
|
+
align-items: center;
|
|
536
|
+
padding: ${E.size[2]} ${E.size[2.5]};
|
|
537
|
+
gap: ${E.size[2.5]};
|
|
538
|
+
border-bottom: ${l(n.gray[300],n.darkGray[500])} 1px solid;
|
|
539
|
+
align-items: center;
|
|
540
|
+
& > button {
|
|
541
|
+
padding: 0;
|
|
542
|
+
background: transparent;
|
|
543
|
+
border: none;
|
|
544
|
+
display: flex;
|
|
545
|
+
gap: ${o[.5]};
|
|
546
|
+
flex-direction: column;
|
|
547
|
+
}
|
|
548
|
+
`,logoAndToggleContainer:t`
|
|
549
|
+
display: flex;
|
|
550
|
+
gap: ${E.size[3]};
|
|
551
|
+
align-items: center;
|
|
552
|
+
`,logo:t`
|
|
553
|
+
cursor: pointer;
|
|
554
|
+
display: flex;
|
|
555
|
+
flex-direction: column;
|
|
556
|
+
background-color: transparent;
|
|
557
|
+
border: none;
|
|
558
|
+
gap: ${E.size[.5]};
|
|
559
|
+
padding: 0px;
|
|
560
|
+
&:hover {
|
|
561
|
+
opacity: 0.7;
|
|
562
|
+
}
|
|
563
|
+
&:focus-visible {
|
|
564
|
+
outline-offset: 4px;
|
|
565
|
+
border-radius: ${a.radius.xs};
|
|
566
|
+
outline: 2px solid ${n.blue[800]};
|
|
567
|
+
}
|
|
568
|
+
`,tanstackLogo:t`
|
|
569
|
+
font-size: ${r.size.md};
|
|
570
|
+
font-weight: ${r.weight.bold};
|
|
571
|
+
line-height: ${r.lineHeight.xs};
|
|
572
|
+
white-space: nowrap;
|
|
573
|
+
color: ${l(n.gray[600],n.gray[300])};
|
|
574
|
+
`,queryFlavorLogo:t`
|
|
575
|
+
font-weight: ${r.weight.semibold};
|
|
576
|
+
font-size: ${r.size.xs};
|
|
577
|
+
background: linear-gradient(
|
|
578
|
+
to right,
|
|
579
|
+
${l("#ea4037, #ff9b11","#dd524b, #e9a03b")}
|
|
580
|
+
);
|
|
581
|
+
background-clip: text;
|
|
582
|
+
-webkit-background-clip: text;
|
|
583
|
+
line-height: 1;
|
|
584
|
+
-webkit-text-fill-color: transparent;
|
|
585
|
+
white-space: nowrap;
|
|
586
|
+
`,queryStatusContainer:t`
|
|
587
|
+
display: flex;
|
|
588
|
+
gap: ${E.size[2]};
|
|
589
|
+
height: min-content;
|
|
590
|
+
`,queryStatusTag:t`
|
|
591
|
+
display: flex;
|
|
592
|
+
gap: ${E.size[1.5]};
|
|
593
|
+
box-sizing: border-box;
|
|
594
|
+
height: ${E.size[6.5]};
|
|
595
|
+
background: ${l(n.gray[50],n.darkGray[500])};
|
|
596
|
+
color: ${l(n.gray[700],n.gray[300])};
|
|
597
|
+
border-radius: ${E.border.radius.sm};
|
|
598
|
+
font-size: ${r.size.sm};
|
|
599
|
+
padding: ${E.size[1]};
|
|
600
|
+
padding-left: ${E.size[1.5]};
|
|
601
|
+
align-items: center;
|
|
602
|
+
font-weight: ${r.weight.medium};
|
|
603
|
+
border: ${l("1px solid "+n.gray[300],"1px solid transparent")};
|
|
604
|
+
user-select: none;
|
|
605
|
+
position: relative;
|
|
606
|
+
&:focus-visible {
|
|
607
|
+
outline-offset: 2px;
|
|
608
|
+
outline: 2px solid ${n.blue[800]};
|
|
609
|
+
}
|
|
610
|
+
`,queryStatusTagLabel:t`
|
|
611
|
+
font-size: ${r.size.xs};
|
|
612
|
+
`,queryStatusCount:t`
|
|
613
|
+
font-size: ${r.size.xs};
|
|
614
|
+
padding: 0 5px;
|
|
615
|
+
display: flex;
|
|
616
|
+
align-items: center;
|
|
617
|
+
justify-content: center;
|
|
618
|
+
color: ${l(n.gray[500],n.gray[400])};
|
|
619
|
+
background-color: ${l(n.gray[200],n.darkGray[300])};
|
|
620
|
+
border-radius: 2px;
|
|
621
|
+
font-variant-numeric: tabular-nums;
|
|
622
|
+
height: ${E.size[4.5]};
|
|
623
|
+
`,statusTooltip:t`
|
|
624
|
+
position: absolute;
|
|
625
|
+
z-index: 1;
|
|
626
|
+
background-color: ${l(n.gray[50],n.darkGray[500])};
|
|
627
|
+
top: 100%;
|
|
628
|
+
left: 50%;
|
|
629
|
+
transform: translate(-50%, calc(${E.size[2]}));
|
|
630
|
+
padding: ${E.size[.5]} ${E.size[2]};
|
|
631
|
+
border-radius: ${E.border.radius.sm};
|
|
632
|
+
font-size: ${r.size.xs};
|
|
633
|
+
border: 1px solid ${l(n.gray[400],n.gray[600])};
|
|
634
|
+
color: ${l(n.gray[600],n.gray[300])};
|
|
635
|
+
|
|
636
|
+
&::before {
|
|
637
|
+
top: 0px;
|
|
638
|
+
content: ' ';
|
|
639
|
+
display: block;
|
|
640
|
+
left: 50%;
|
|
641
|
+
transform: translate(-50%, -100%);
|
|
642
|
+
position: absolute;
|
|
643
|
+
border-color: transparent transparent
|
|
644
|
+
${l(n.gray[400],n.gray[600])} transparent;
|
|
645
|
+
border-style: solid;
|
|
646
|
+
border-width: 7px;
|
|
647
|
+
/* transform: rotate(180deg); */
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
&::after {
|
|
651
|
+
top: 0px;
|
|
652
|
+
content: ' ';
|
|
653
|
+
display: block;
|
|
654
|
+
left: 50%;
|
|
655
|
+
transform: translate(-50%, calc(-100% + 2px));
|
|
656
|
+
position: absolute;
|
|
657
|
+
border-color: transparent transparent
|
|
658
|
+
${l(n.gray[100],n.darkGray[500])} transparent;
|
|
659
|
+
border-style: solid;
|
|
660
|
+
border-width: 7px;
|
|
661
|
+
}
|
|
662
|
+
`,filtersContainer:t`
|
|
663
|
+
display: flex;
|
|
664
|
+
gap: ${E.size[2]};
|
|
665
|
+
& > button {
|
|
666
|
+
cursor: pointer;
|
|
667
|
+
padding: ${E.size[.5]} ${E.size[1.5]} ${E.size[.5]}
|
|
668
|
+
${E.size[2]};
|
|
669
|
+
border-radius: ${E.border.radius.sm};
|
|
670
|
+
background-color: ${l(n.gray[100],n.darkGray[400])};
|
|
671
|
+
border: 1px solid ${l(n.gray[300],n.darkGray[200])};
|
|
672
|
+
color: ${l(n.gray[700],n.gray[300])};
|
|
673
|
+
font-size: ${r.size.xs};
|
|
674
|
+
display: flex;
|
|
675
|
+
align-items: center;
|
|
676
|
+
line-height: ${r.lineHeight.sm};
|
|
677
|
+
gap: ${E.size[1.5]};
|
|
678
|
+
max-width: 160px;
|
|
679
|
+
&:focus-visible {
|
|
680
|
+
outline-offset: 2px;
|
|
681
|
+
border-radius: ${a.radius.xs};
|
|
682
|
+
outline: 2px solid ${n.blue[800]};
|
|
683
|
+
}
|
|
684
|
+
& svg {
|
|
685
|
+
width: ${E.size[3]};
|
|
686
|
+
height: ${E.size[3]};
|
|
687
|
+
color: ${l(n.gray[500],n.gray[400])};
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
`,filterInput:t`
|
|
691
|
+
padding: ${o[.5]} ${o[2]};
|
|
692
|
+
border-radius: ${E.border.radius.sm};
|
|
693
|
+
background-color: ${l(n.gray[100],n.darkGray[400])};
|
|
694
|
+
display: flex;
|
|
695
|
+
box-sizing: content-box;
|
|
696
|
+
align-items: center;
|
|
697
|
+
gap: ${E.size[1.5]};
|
|
698
|
+
max-width: 160px;
|
|
699
|
+
min-width: 100px;
|
|
700
|
+
border: 1px solid ${l(n.gray[300],n.darkGray[200])};
|
|
701
|
+
height: min-content;
|
|
702
|
+
color: ${l(n.gray[600],n.gray[400])};
|
|
703
|
+
& > svg {
|
|
704
|
+
width: ${o[3]};
|
|
705
|
+
height: ${o[3]};
|
|
706
|
+
}
|
|
707
|
+
& input {
|
|
708
|
+
font-size: ${r.size.xs};
|
|
709
|
+
width: 100%;
|
|
710
|
+
background-color: ${l(n.gray[100],n.darkGray[400])};
|
|
711
|
+
border: none;
|
|
712
|
+
padding: 0;
|
|
713
|
+
line-height: ${r.lineHeight.sm};
|
|
714
|
+
color: ${l(n.gray[700],n.gray[300])};
|
|
715
|
+
&::placeholder {
|
|
716
|
+
color: ${l(n.gray[700],n.gray[300])};
|
|
717
|
+
}
|
|
718
|
+
&:focus {
|
|
719
|
+
outline: none;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
&:focus-within {
|
|
724
|
+
outline-offset: 2px;
|
|
725
|
+
border-radius: ${a.radius.xs};
|
|
726
|
+
outline: 2px solid ${n.blue[800]};
|
|
727
|
+
}
|
|
728
|
+
`,filterSelect:t`
|
|
729
|
+
padding: ${E.size[.5]} ${E.size[2]};
|
|
730
|
+
border-radius: ${E.border.radius.sm};
|
|
731
|
+
background-color: ${l(n.gray[100],n.darkGray[400])};
|
|
732
|
+
display: flex;
|
|
733
|
+
align-items: center;
|
|
734
|
+
gap: ${E.size[1.5]};
|
|
735
|
+
box-sizing: content-box;
|
|
736
|
+
max-width: 160px;
|
|
737
|
+
border: 1px solid ${l(n.gray[300],n.darkGray[200])};
|
|
738
|
+
height: min-content;
|
|
739
|
+
& > svg {
|
|
740
|
+
color: ${l(n.gray[600],n.gray[400])};
|
|
741
|
+
width: ${E.size[2]};
|
|
742
|
+
height: ${E.size[2]};
|
|
743
|
+
}
|
|
744
|
+
& > select {
|
|
745
|
+
appearance: none;
|
|
746
|
+
color: ${l(n.gray[700],n.gray[300])};
|
|
747
|
+
min-width: 100px;
|
|
748
|
+
line-height: ${r.lineHeight.sm};
|
|
749
|
+
font-size: ${r.size.xs};
|
|
750
|
+
background-color: ${l(n.gray[100],n.darkGray[400])};
|
|
751
|
+
border: none;
|
|
752
|
+
&:focus {
|
|
753
|
+
outline: none;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
&:focus-within {
|
|
757
|
+
outline-offset: 2px;
|
|
758
|
+
border-radius: ${a.radius.xs};
|
|
759
|
+
outline: 2px solid ${n.blue[800]};
|
|
760
|
+
}
|
|
761
|
+
`,actionsContainer:t`
|
|
762
|
+
display: flex;
|
|
763
|
+
gap: ${E.size[2]};
|
|
764
|
+
`,actionsBtn:t`
|
|
765
|
+
border-radius: ${E.border.radius.sm};
|
|
766
|
+
background-color: ${l(n.gray[100],n.darkGray[400])};
|
|
767
|
+
border: 1px solid ${l(n.gray[300],n.darkGray[200])};
|
|
768
|
+
width: ${E.size[6.5]};
|
|
769
|
+
height: ${E.size[6.5]};
|
|
770
|
+
justify-content: center;
|
|
771
|
+
display: flex;
|
|
772
|
+
align-items: center;
|
|
773
|
+
gap: ${E.size[1.5]};
|
|
774
|
+
max-width: 160px;
|
|
775
|
+
cursor: pointer;
|
|
776
|
+
padding: 0;
|
|
777
|
+
&:hover {
|
|
778
|
+
background-color: ${l(n.gray[200],n.darkGray[500])};
|
|
779
|
+
}
|
|
780
|
+
& svg {
|
|
781
|
+
color: ${l(n.gray[700],n.gray[300])};
|
|
782
|
+
width: ${E.size[3]};
|
|
783
|
+
height: ${E.size[3]};
|
|
784
|
+
}
|
|
785
|
+
&:focus-visible {
|
|
786
|
+
outline-offset: 2px;
|
|
787
|
+
border-radius: ${a.radius.xs};
|
|
788
|
+
outline: 2px solid ${n.blue[800]};
|
|
789
|
+
}
|
|
790
|
+
`,actionsBtnOffline:t`
|
|
791
|
+
& svg {
|
|
792
|
+
stroke: ${l(n.yellow[700],n.yellow[500])};
|
|
793
|
+
fill: ${l(n.yellow[700],n.yellow[500])};
|
|
794
|
+
}
|
|
795
|
+
`,overflowQueryContainer:t`
|
|
796
|
+
flex: 1;
|
|
797
|
+
overflow-y: auto;
|
|
798
|
+
& > div {
|
|
799
|
+
display: flex;
|
|
800
|
+
flex-direction: column;
|
|
801
|
+
}
|
|
802
|
+
`,queryRow:t`
|
|
803
|
+
display: flex;
|
|
804
|
+
align-items: center;
|
|
805
|
+
padding: 0;
|
|
806
|
+
border: none;
|
|
807
|
+
cursor: pointer;
|
|
808
|
+
color: ${l(n.gray[700],n.gray[300])};
|
|
809
|
+
background-color: ${l(n.gray[50],n.darkGray[700])};
|
|
810
|
+
line-height: 1;
|
|
811
|
+
&:focus {
|
|
812
|
+
outline: none;
|
|
813
|
+
}
|
|
814
|
+
&:focus-visible {
|
|
815
|
+
outline-offset: -2px;
|
|
816
|
+
border-radius: ${a.radius.xs};
|
|
817
|
+
outline: 2px solid ${n.blue[800]};
|
|
818
|
+
}
|
|
819
|
+
&:hover .tsqd-query-hash {
|
|
820
|
+
background-color: ${l(n.gray[200],n.darkGray[600])};
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
& .tsqd-query-observer-count {
|
|
824
|
+
padding: 0 ${E.size[1]};
|
|
825
|
+
user-select: none;
|
|
826
|
+
min-width: ${E.size[6.5]};
|
|
827
|
+
align-self: stretch;
|
|
828
|
+
display: flex;
|
|
829
|
+
align-items: center;
|
|
830
|
+
justify-content: center;
|
|
831
|
+
font-size: ${r.size.xs};
|
|
832
|
+
font-weight: ${r.weight.medium};
|
|
833
|
+
border-bottom-width: 1px;
|
|
834
|
+
border-bottom-style: solid;
|
|
835
|
+
border-bottom: 1px solid ${l(n.gray[300],n.darkGray[700])};
|
|
836
|
+
}
|
|
837
|
+
& .tsqd-query-hash {
|
|
838
|
+
user-select: text;
|
|
839
|
+
font-size: ${r.size.xs};
|
|
840
|
+
display: flex;
|
|
841
|
+
align-items: center;
|
|
842
|
+
min-height: ${E.size[6]};
|
|
843
|
+
flex: 1;
|
|
844
|
+
padding: ${E.size[1]} ${E.size[2]};
|
|
845
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
846
|
+
'Liberation Mono', 'Courier New', monospace;
|
|
847
|
+
border-bottom: 1px solid ${l(n.gray[300],n.darkGray[400])};
|
|
848
|
+
text-align: left;
|
|
849
|
+
text-overflow: clip;
|
|
850
|
+
word-break: break-word;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
& .tsqd-query-disabled-indicator {
|
|
854
|
+
align-self: stretch;
|
|
855
|
+
display: flex;
|
|
856
|
+
align-items: center;
|
|
857
|
+
padding: 0 ${E.size[2]};
|
|
858
|
+
color: ${l(n.gray[800],n.gray[300])};
|
|
859
|
+
background-color: ${l(n.gray[300],n.darkGray[600])};
|
|
860
|
+
border-bottom: 1px solid ${l(n.gray[300],n.darkGray[400])};
|
|
861
|
+
font-size: ${r.size.xs};
|
|
862
|
+
}
|
|
863
|
+
`,selectedQueryRow:t`
|
|
864
|
+
background-color: ${l(n.gray[200],n.darkGray[500])};
|
|
865
|
+
`,detailsContainer:t`
|
|
866
|
+
flex: 1 1 700px;
|
|
867
|
+
background-color: ${l(n.gray[50],n.darkGray[700])};
|
|
868
|
+
color: ${l(n.gray[700],n.gray[300])};
|
|
869
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
870
|
+
display: flex;
|
|
871
|
+
flex-direction: column;
|
|
872
|
+
overflow-y: auto;
|
|
873
|
+
display: flex;
|
|
874
|
+
text-align: left;
|
|
875
|
+
`,detailsHeader:t`
|
|
876
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
877
|
+
position: sticky;
|
|
878
|
+
top: 0;
|
|
879
|
+
z-index: 2;
|
|
880
|
+
background-color: ${l(n.gray[200],n.darkGray[600])};
|
|
881
|
+
padding: ${E.size[1.5]} ${E.size[2]};
|
|
882
|
+
font-weight: ${r.weight.medium};
|
|
883
|
+
font-size: ${r.size.xs};
|
|
884
|
+
line-height: ${r.lineHeight.xs};
|
|
885
|
+
text-align: left;
|
|
886
|
+
`,detailsBody:t`
|
|
887
|
+
margin: ${E.size[1.5]} 0px ${E.size[2]} 0px;
|
|
888
|
+
& > div {
|
|
889
|
+
display: flex;
|
|
890
|
+
align-items: stretch;
|
|
891
|
+
padding: 0 ${E.size[2]};
|
|
892
|
+
line-height: ${r.lineHeight.sm};
|
|
893
|
+
justify-content: space-between;
|
|
894
|
+
& > span {
|
|
895
|
+
font-size: ${r.size.xs};
|
|
896
|
+
}
|
|
897
|
+
& > span:nth-child(2) {
|
|
898
|
+
font-variant-numeric: tabular-nums;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
& > div:first-child {
|
|
903
|
+
margin-bottom: ${E.size[1.5]};
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
& code {
|
|
907
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
908
|
+
'Liberation Mono', 'Courier New', monospace;
|
|
909
|
+
margin: 0;
|
|
910
|
+
font-size: ${r.size.xs};
|
|
911
|
+
line-height: ${r.lineHeight.xs};
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
& pre {
|
|
915
|
+
margin: 0;
|
|
916
|
+
display: flex;
|
|
917
|
+
align-items: center;
|
|
918
|
+
}
|
|
919
|
+
`,queryDetailsStatus:t`
|
|
920
|
+
border: 1px solid ${n.darkGray[200]};
|
|
921
|
+
border-radius: ${E.border.radius.sm};
|
|
922
|
+
font-weight: ${r.weight.medium};
|
|
923
|
+
padding: ${E.size[1]} ${E.size[2.5]};
|
|
924
|
+
`,actionsBody:t`
|
|
925
|
+
flex-wrap: wrap;
|
|
926
|
+
margin: ${E.size[2]} 0px ${E.size[2]} 0px;
|
|
927
|
+
display: flex;
|
|
928
|
+
gap: ${E.size[2]};
|
|
929
|
+
padding: 0px ${E.size[2]};
|
|
930
|
+
& > button {
|
|
931
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
932
|
+
font-size: ${r.size.xs};
|
|
933
|
+
padding: ${E.size[1]} ${E.size[2]};
|
|
934
|
+
display: flex;
|
|
935
|
+
border-radius: ${E.border.radius.sm};
|
|
936
|
+
background-color: ${l(n.gray[100],n.darkGray[600])};
|
|
937
|
+
border: 1px solid ${l(n.gray[300],n.darkGray[400])};
|
|
938
|
+
align-items: center;
|
|
939
|
+
gap: ${E.size[2]};
|
|
940
|
+
font-weight: ${r.weight.medium};
|
|
941
|
+
line-height: ${r.lineHeight.xs};
|
|
942
|
+
cursor: pointer;
|
|
943
|
+
&:focus-visible {
|
|
944
|
+
outline-offset: 2px;
|
|
945
|
+
border-radius: ${a.radius.xs};
|
|
946
|
+
outline: 2px solid ${n.blue[800]};
|
|
947
|
+
}
|
|
948
|
+
&:hover {
|
|
949
|
+
background-color: ${l(n.gray[200],n.darkGray[500])};
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
&:disabled {
|
|
953
|
+
opacity: 0.6;
|
|
954
|
+
cursor: not-allowed;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
& > span {
|
|
958
|
+
width: ${o[1.5]};
|
|
959
|
+
height: ${o[1.5]};
|
|
960
|
+
border-radius: ${E.border.radius.full};
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
`,actionsSelect:t`
|
|
964
|
+
font-size: ${r.size.xs};
|
|
965
|
+
padding: ${E.size[.5]} ${E.size[2]};
|
|
966
|
+
display: flex;
|
|
967
|
+
border-radius: ${E.border.radius.sm};
|
|
968
|
+
overflow: hidden;
|
|
969
|
+
background-color: ${l(n.gray[100],n.darkGray[600])};
|
|
970
|
+
border: 1px solid ${l(n.gray[300],n.darkGray[400])};
|
|
971
|
+
align-items: center;
|
|
972
|
+
gap: ${E.size[2]};
|
|
973
|
+
font-weight: ${r.weight.medium};
|
|
974
|
+
line-height: ${r.lineHeight.sm};
|
|
975
|
+
color: ${l(n.red[500],n.red[400])};
|
|
976
|
+
cursor: pointer;
|
|
977
|
+
position: relative;
|
|
978
|
+
&:hover {
|
|
979
|
+
background-color: ${l(n.gray[200],n.darkGray[500])};
|
|
980
|
+
}
|
|
981
|
+
& > span {
|
|
982
|
+
width: ${o[1.5]};
|
|
983
|
+
height: ${o[1.5]};
|
|
984
|
+
border-radius: ${E.border.radius.full};
|
|
985
|
+
}
|
|
986
|
+
&:focus-within {
|
|
987
|
+
outline-offset: 2px;
|
|
988
|
+
border-radius: ${a.radius.xs};
|
|
989
|
+
outline: 2px solid ${n.blue[800]};
|
|
990
|
+
}
|
|
991
|
+
& select {
|
|
992
|
+
position: absolute;
|
|
993
|
+
top: 0;
|
|
994
|
+
left: 0;
|
|
995
|
+
width: 100%;
|
|
996
|
+
height: 100%;
|
|
997
|
+
appearance: none;
|
|
998
|
+
background-color: transparent;
|
|
999
|
+
border: none;
|
|
1000
|
+
color: transparent;
|
|
1001
|
+
outline: none;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
& svg path {
|
|
1005
|
+
stroke: ${E.colors.red[400]};
|
|
1006
|
+
}
|
|
1007
|
+
& svg {
|
|
1008
|
+
width: ${E.size[2]};
|
|
1009
|
+
height: ${E.size[2]};
|
|
1010
|
+
}
|
|
1011
|
+
`,settingsMenu:t`
|
|
1012
|
+
display: flex;
|
|
1013
|
+
& * {
|
|
1014
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
1015
|
+
}
|
|
1016
|
+
flex-direction: column;
|
|
1017
|
+
gap: ${o[.5]};
|
|
1018
|
+
border-radius: ${E.border.radius.sm};
|
|
1019
|
+
border: 1px solid ${l(n.gray[300],n.gray[700])};
|
|
1020
|
+
background-color: ${l(n.gray[50],n.darkGray[600])};
|
|
1021
|
+
font-size: ${r.size.xs};
|
|
1022
|
+
color: ${l(n.gray[700],n.gray[300])};
|
|
1023
|
+
z-index: 99999;
|
|
1024
|
+
min-width: 120px;
|
|
1025
|
+
padding: ${o[.5]};
|
|
1026
|
+
`,settingsSubTrigger:t`
|
|
1027
|
+
display: flex;
|
|
1028
|
+
align-items: center;
|
|
1029
|
+
justify-content: space-between;
|
|
1030
|
+
border-radius: ${E.border.radius.xs};
|
|
1031
|
+
padding: ${E.size[1]} ${E.size[1]};
|
|
1032
|
+
cursor: pointer;
|
|
1033
|
+
background-color: transparent;
|
|
1034
|
+
border: none;
|
|
1035
|
+
color: ${l(n.gray[700],n.gray[300])};
|
|
1036
|
+
& svg {
|
|
1037
|
+
color: ${l(n.gray[600],n.gray[400])};
|
|
1038
|
+
transform: rotate(-90deg);
|
|
1039
|
+
width: ${E.size[2]};
|
|
1040
|
+
height: ${E.size[2]};
|
|
1041
|
+
}
|
|
1042
|
+
&:hover {
|
|
1043
|
+
background-color: ${l(n.gray[200],n.darkGray[500])};
|
|
1044
|
+
}
|
|
1045
|
+
&:focus-visible {
|
|
1046
|
+
outline-offset: 2px;
|
|
1047
|
+
outline: 2px solid ${n.blue[800]};
|
|
1048
|
+
}
|
|
1049
|
+
&.data-disabled {
|
|
1050
|
+
opacity: 0.6;
|
|
1051
|
+
cursor: not-allowed;
|
|
1052
|
+
}
|
|
1053
|
+
`,settingsMenuHeader:t`
|
|
1054
|
+
padding: ${E.size[1]} ${E.size[1]};
|
|
1055
|
+
font-weight: ${r.weight.medium};
|
|
1056
|
+
border-bottom: 1px solid ${l(n.gray[300],n.darkGray[400])};
|
|
1057
|
+
color: ${l(n.gray[500],n.gray[400])};
|
|
1058
|
+
font-size: ${r.size.xs};
|
|
1059
|
+
`,settingsSubButton:t`
|
|
1060
|
+
display: flex;
|
|
1061
|
+
align-items: center;
|
|
1062
|
+
justify-content: space-between;
|
|
1063
|
+
color: ${l(n.gray[700],n.gray[300])};
|
|
1064
|
+
font-size: ${r.size.xs};
|
|
1065
|
+
border-radius: ${E.border.radius.xs};
|
|
1066
|
+
padding: ${E.size[1]} ${E.size[1]};
|
|
1067
|
+
cursor: pointer;
|
|
1068
|
+
background-color: transparent;
|
|
1069
|
+
border: none;
|
|
1070
|
+
& svg {
|
|
1071
|
+
color: ${l(n.gray[600],n.gray[400])};
|
|
1072
|
+
}
|
|
1073
|
+
&:hover {
|
|
1074
|
+
background-color: ${l(n.gray[200],n.darkGray[500])};
|
|
1075
|
+
}
|
|
1076
|
+
&:focus-visible {
|
|
1077
|
+
outline-offset: 2px;
|
|
1078
|
+
outline: 2px solid ${n.blue[800]};
|
|
1079
|
+
}
|
|
1080
|
+
`,themeSelectedButton:t`
|
|
1081
|
+
background-color: ${l(n.purple[100],n.purple[900])};
|
|
1082
|
+
color: ${l(n.purple[700],n.purple[300])};
|
|
1083
|
+
& svg {
|
|
1084
|
+
color: ${l(n.purple[700],n.purple[300])};
|
|
1085
|
+
}
|
|
1086
|
+
&:hover {
|
|
1087
|
+
background-color: ${l(n.purple[100],n.purple[900])};
|
|
1088
|
+
}
|
|
1089
|
+
`,viewToggle:t`
|
|
1090
|
+
border-radius: ${E.border.radius.sm};
|
|
1091
|
+
background-color: ${l(n.gray[200],n.darkGray[600])};
|
|
1092
|
+
border: 1px solid ${l(n.gray[300],n.darkGray[200])};
|
|
1093
|
+
display: flex;
|
|
1094
|
+
padding: 0;
|
|
1095
|
+
font-size: ${r.size.xs};
|
|
1096
|
+
color: ${l(n.gray[700],n.gray[300])};
|
|
1097
|
+
overflow: hidden;
|
|
1098
|
+
|
|
1099
|
+
&:has(:focus-visible) {
|
|
1100
|
+
outline: 2px solid ${n.blue[800]};
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
& .tsqd-radio-toggle {
|
|
1104
|
+
opacity: 0.5;
|
|
1105
|
+
display: flex;
|
|
1106
|
+
& label {
|
|
1107
|
+
display: flex;
|
|
1108
|
+
align-items: center;
|
|
1109
|
+
cursor: pointer;
|
|
1110
|
+
line-height: ${r.lineHeight.md};
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
& label:hover {
|
|
1114
|
+
background-color: ${l(n.gray[100],n.darkGray[500])};
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
& > [data-checked] {
|
|
1119
|
+
opacity: 1;
|
|
1120
|
+
background-color: ${l(n.gray[100],n.darkGray[400])};
|
|
1121
|
+
& label:hover {
|
|
1122
|
+
background-color: ${l(n.gray[100],n.darkGray[400])};
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
& .tsqd-radio-toggle:first-child {
|
|
1127
|
+
& label {
|
|
1128
|
+
padding: 0 ${E.size[1.5]} 0 ${E.size[2]};
|
|
1129
|
+
}
|
|
1130
|
+
border-right: 1px solid ${l(n.gray[300],n.darkGray[200])};
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
& .tsqd-radio-toggle:nth-child(2) {
|
|
1134
|
+
& label {
|
|
1135
|
+
padding: 0 ${E.size[2]} 0 ${E.size[1.5]};
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
`,devtoolsEditForm:t`
|
|
1139
|
+
padding: ${o[2]};
|
|
1140
|
+
& > [data-error='true'] {
|
|
1141
|
+
outline: 2px solid ${l(n.red[200],n.red[800])};
|
|
1142
|
+
outline-offset: 2px;
|
|
1143
|
+
border-radius: ${a.radius.xs};
|
|
1144
|
+
}
|
|
1145
|
+
`,devtoolsEditTextarea:t`
|
|
1146
|
+
width: 100%;
|
|
1147
|
+
max-height: 500px;
|
|
1148
|
+
font-family: 'Fira Code', monospace;
|
|
1149
|
+
font-size: ${r.size.xs};
|
|
1150
|
+
border-radius: ${a.radius.sm};
|
|
1151
|
+
field-sizing: content;
|
|
1152
|
+
padding: ${o[2]};
|
|
1153
|
+
background-color: ${l(n.gray[100],n.darkGray[800])};
|
|
1154
|
+
color: ${l(n.gray[900],n.gray[100])};
|
|
1155
|
+
border: 1px solid ${l(n.gray[200],n.gray[700])};
|
|
1156
|
+
resize: none;
|
|
1157
|
+
&:focus {
|
|
1158
|
+
outline-offset: 2px;
|
|
1159
|
+
border-radius: ${a.radius.xs};
|
|
1160
|
+
outline: 2px solid ${l(n.blue[200],n.blue[800])};
|
|
1161
|
+
}
|
|
1162
|
+
`,devtoolsEditFormActions:t`
|
|
1163
|
+
display: flex;
|
|
1164
|
+
justify-content: space-between;
|
|
1165
|
+
gap: ${o[2]};
|
|
1166
|
+
align-items: center;
|
|
1167
|
+
padding-top: ${o[1]};
|
|
1168
|
+
font-size: ${r.size.xs};
|
|
1169
|
+
`,devtoolsEditFormError:t`
|
|
1170
|
+
color: ${l(n.red[700],n.red[500])};
|
|
1171
|
+
`,devtoolsEditFormActionContainer:t`
|
|
1172
|
+
display: flex;
|
|
1173
|
+
gap: ${o[2]};
|
|
1174
|
+
`,devtoolsEditFormAction:t`
|
|
1175
|
+
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
1176
|
+
font-size: ${r.size.xs};
|
|
1177
|
+
padding: ${o[1]} ${E.size[2]};
|
|
1178
|
+
display: flex;
|
|
1179
|
+
border-radius: ${a.radius.sm};
|
|
1180
|
+
background-color: ${l(n.gray[100],n.darkGray[600])};
|
|
1181
|
+
border: 1px solid ${l(n.gray[300],n.darkGray[400])};
|
|
1182
|
+
align-items: center;
|
|
1183
|
+
gap: ${o[2]};
|
|
1184
|
+
font-weight: ${r.weight.medium};
|
|
1185
|
+
line-height: ${r.lineHeight.xs};
|
|
1186
|
+
cursor: pointer;
|
|
1187
|
+
&:focus-visible {
|
|
1188
|
+
outline-offset: 2px;
|
|
1189
|
+
border-radius: ${a.radius.xs};
|
|
1190
|
+
outline: 2px solid ${n.blue[800]};
|
|
1191
|
+
}
|
|
1192
|
+
&:hover {
|
|
1193
|
+
background-color: ${l(n.gray[200],n.darkGray[500])};
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
&:disabled {
|
|
1197
|
+
opacity: 0.6;
|
|
1198
|
+
cursor: not-allowed;
|
|
1199
|
+
}
|
|
1200
|
+
`}},et=e=>tc("light",e),tt=e=>tc("dark",e);Kn(["click","mousedown","input"]);});var nc={};io(nc,{default:()=>f1});var d1,f1,rc=Dn(()=>{"use strict";te();ui();Un();d1=e=>{let[t,n]=Kr({prefix:"TanstackQueryDevtools"}),r=Dr(),o=S(()=>{let i=t.theme_preference||Vr;return i!=="system"?i:r()});return m(tr.Provider,{value:e,get children(){return m(Ur,{localStore:t,setLocalStore:n,get children(){return m(nr.Provider,{value:o,get children(){return m(Ja,{localStore:t,setLocalStore:n})}})}})}})},f1=d1});var oc={};io(oc,{default:()=>h1});var g1,h1,ic=Dn(()=>{"use strict";te();ui();Un();g1=e=>{let[t,n]=Kr({prefix:"TanstackQueryDevtools"}),r=Dr(),o=S(()=>{let i=t.theme_preference||Vr;return i!=="system"?i:r()});return m(tr.Provider,{value:e,get children(){return m(Ur,{disabled:!0,localStore:t,setLocalStore:n,get children(){return m(nr.Provider,{value:o,get children(){return m(ec,{get children(){return m(eo,{localStore:t,setLocalStore:n,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},h1=g1});var C1={};io(C1,{Studio:()=>kc});module.exports=Oc(C1);te();var Sm=require("../index-ESMXH6DI.css");te();te();var xc=require("@radix-ui/react-slot");te();var yc=require("@tanstack/react-query");te();var ro=require("@tanstack/react-query");te();te();var at=Ti(require("react"),1),to=require("@tanstack/react-query");te();Un();var sc=class{#t;#c;#u;#d;#e=!1;#f;#n;#r;#o;#i;#s;#l;#a;constructor(e){let{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:i,position:s,initialIsOpen:a,errorTypes:l,styleNonce:c,shadowDOMTarget:d}=e;this.#t=q(t),this.#u=n,this.#d=r,this.#c=o,this.#f=c,this.#n=d,this.#r=q(i),this.#o=q(s),this.#i=q(a),this.#s=q(l)}setButtonPosition(e){this.#r[1](e)}setPosition(e){this.#o[1](e)}setInitialIsOpen(e){this.#i[1](e)}setErrorTypes(e){this.#s[1](e)}setClient(e){this.#t[1](e)}mount(e){if(this.#e)throw new Error("Devtools is already mounted");let t=wo(()=>{let n=this,[r]=this.#r,[o]=this.#o,[i]=this.#i,[s]=this.#s,[a]=this.#t,l;return this.#l?l=this.#l:(l=bo(()=>Promise.resolve().then(()=>(rc(),nc))),this.#l=l),Eo(this.#f,this.#n),m(l,W({get queryFlavor(){return n.#u},get version(){return n.#d},get onlineManager(){return n.#c},get shadowDOMTarget(){return n.#n}},{get client(){return a()},get buttonPosition(){return r()},get position(){return o()},get initialIsOpen(){return i()},get errorTypes(){return s()}}))},e);this.#e=!0,this.#a=t}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#a?.(),this.#e=!1}},lc=class{#t;#c;#u;#d;#e=!1;#f;#n;#r;#o;#i;#s;#l;#a;#g;constructor(e){let{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:i,position:s,initialIsOpen:a,errorTypes:l,styleNonce:c,shadowDOMTarget:d,onClose:u}=e;this.#t=q(t),this.#u=n,this.#d=r,this.#c=o,this.#f=c,this.#n=d,this.#r=q(i),this.#o=q(s),this.#i=q(a),this.#s=q(l),this.#l=q(u)}setButtonPosition(e){this.#r[1](e)}setPosition(e){this.#o[1](e)}setInitialIsOpen(e){this.#i[1](e)}setErrorTypes(e){this.#s[1](e)}setClient(e){this.#t[1](e)}setOnClose(e){this.#l[1](()=>e)}mount(e){if(this.#e)throw new Error("Devtools is already mounted");let t=wo(()=>{let n=this,[r]=this.#r,[o]=this.#o,[i]=this.#i,[s]=this.#s,[a]=this.#t,[l]=this.#l,c;return this.#a?c=this.#a:(c=bo(()=>Promise.resolve().then(()=>(ic(),oc))),this.#a=c),Eo(this.#f,this.#n),m(c,W({get queryFlavor(){return n.#u},get version(){return n.#d},get onlineManager(){return n.#c},get shadowDOMTarget(){return n.#n}},{get client(){return a()},get buttonPosition(){return r()},get position(){return o()},get initialIsOpen(){return i()},get errorTypes(){return s()},get onClose(){return l()}}))},e);this.#e=!0,this.#g=t}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#g?.(),this.#e=!1}};var ac=require("react/jsx-runtime");function cc(e){let t=(0,to.useQueryClient)(e.client),n=at.useRef(null),{buttonPosition:r,position:o,initialIsOpen:i,errorTypes:s,styleNonce:a,shadowDOMTarget:l}=e,[c]=at.useState(new sc({client:t,queryFlavor:"React Query",version:"5",onlineManager:to.onlineManager,buttonPosition:r,position:o,initialIsOpen:i,errorTypes:s,styleNonce:a,shadowDOMTarget:l}));return at.useEffect(()=>{c.setClient(t)},[t,c]),at.useEffect(()=>{r&&c.setButtonPosition(r)},[r,c]),at.useEffect(()=>{o&&c.setPosition(o)},[o,c]),at.useEffect(()=>{c.setInitialIsOpen(i||!1)},[i,c]),at.useEffect(()=>{c.setErrorTypes(s||[])},[s,c]),at.useEffect(()=>(n.current&&c.mount(n.current),()=>{c.unmount()}),[c]),(0,ac.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:n})}te();var Dt=Ti(require("react"),1),no=require("@tanstack/react-query");var uc=require("react/jsx-runtime");function dc(e){let t=(0,no.useQueryClient)(e.client),n=Dt.useRef(null),{errorTypes:r,styleNonce:o,shadowDOMTarget:i}=e,[s]=Dt.useState(new lc({client:t,queryFlavor:"React Query",version:"5",onlineManager:no.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:r,styleNonce:o,shadowDOMTarget:i,onClose:e.onClose}));return Dt.useEffect(()=>{s.setClient(t)},[t,s]),Dt.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),Dt.useEffect(()=>{s.setErrorTypes(r||[])},[r,s]),Dt.useEffect(()=>(n.current&&s.mount(n.current),()=>{s.unmount()}),[s]),(0,uc.jsx)("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:n})}var fc=process.env.NODE_ENV!=="development"?function(){return null}:cc,em=process.env.NODE_ENV!=="development"?function(){return null}:dc;var gc=require("nuqs/adapters/react"),En=require("react"),kn=require("react/jsx-runtime"),y1=new ro.QueryClient,hc=(0,En.createContext)(void 0);function mc(e){let{children:t,...n}=e,[r,o]=(0,En.useState)(null);return(0,kn.jsxs)(ro.QueryClientProvider,{client:y1,children:[(0,kn.jsx)(fc,{}),(0,kn.jsx)(gc.NuqsAdapter,{children:(0,kn.jsx)(hc.Provider,{value:{...n,activeTable:r,setActiveTable:o},children:t})})]})}function oo(){let e=(0,En.useContext)(hc);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}var pc=-1;function vc(){let{adapter:e}=oo();return(0,yc.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}}},initialDataUpdatedAt:pc,queryFn:async({signal:t})=>{let[n,r]=await e.introspect({abortSignal:t});if(n)throw n;return r},queryKey:["introspection"],staleTime:t=>t.state.dataUpdatedAt===pc?0:1/0})}te();var bc=require("clsx"),wc=require("tailwind-merge");function di(...e){return(0,wc.twMerge)((0,bc.clsx)(e))}var yt=require("react/jsx-runtime"),cr=()=>{let{data:e}=vc(),{activeTable:t,adapter:n,setActiveTable:r}=oo();return(0,yt.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0",children:(0,yt.jsx)(cr.Block,{label:"Tables",children:Object.values(e.schemas[n.defaultSchema||"db"].tables).map(o=>(0,yt.jsx)(cr.Item,{isActive:t===o,onClick:i=>{i.preventDefault(),t!==o&&r(o)},className:`ps-px-2 ps-py-1 ps-cursor-pointer ps-rounded ${t===o?"ps-bg-primary ps-text-white":"ps-hover:ps-bg-gray-100"}`,children:o.name},`${o.schema}-${o.name}`))})})},v1=({className:e,label:t,children:n,...r})=>(0,yt.jsxs)("div",{className:di("ps-rounded-lg ps-border ps-bg-card ps-text-card-foreground ps-shadow-xs",e),...r,children:[(0,yt.jsx)("div",{className:"ps-pt-4 ps-pb-2 ps-px-4",children:(0,yt.jsx)("h2",{className:"ps-text-sm ps-font-medium",children:t})}),(0,yt.jsx)("nav",{"aria-label":t,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:n})]}),b1=({className:e,asChild:t=!1,isActive:n,size:r,...o})=>(0,yt.jsx)(t?xc.Slot:"button",{"data-sidebar":"menu-button","data-size":r,"data-active":n,className:di("ps-py-1.5 ps-px-4 ps-text-sm ps-font-medium ps-flex ps-gap-2 ps-items-center ps-border ps-border-transparent ps-bg-transparent ps-hover:bg-muted/50",e),...o});cr.Block=v1;cr.Item=b1;var Cc=cr;te();var on=require("react"),$c=require("react/jsx-runtime"),w1={theme:"system",setTheme:()=>null},x1=(0,on.createContext)(w1);function Sc({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){let[o,i]=(0,on.useState)(()=>localStorage.getItem(n)||t);(0,on.useEffect)(()=>{let a=window.document.documentElement;if(a.classList.remove("light","dark"),o==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";a.classList.add(l);return}a.classList.add(o)},[o]);let s={theme:o,setTheme:a=>{localStorage.setItem(n,a),i(a)}};return(0,$c.jsx)(x1.Provider,{...r,value:s,children:e})}var Ut=require("react/jsx-runtime");function kc(e){let{adapter:t}=e;return t?(0,Ut.jsx)(Sc,{children:(0,Ut.jsx)(mc,{adapter:t,children:(0,Ut.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-rounded-sm ps-bg-background ps-p-4 ps-relative",children:[(0,Ut.jsx)(Cc,{}),(0,Ut.jsx)("div",{className:"ps-flex ps-w-full ps-flex-col ps-border ps-rounded-lg"})]})})}):(console.error("No adapter provided to Studio component"),(0,Ut.jsx)("div",{children:"Error: No adapter provided"}))}0&&(module.exports={Studio});
|
|
1201
|
+
/*! Bundled license information:
|
|
1202
|
+
|
|
1203
|
+
@tanstack/query-devtools/build/chunk/WXAWMS3D.js:
|
|
1204
|
+
(*! Bundled license information:
|
|
1205
|
+
|
|
1206
|
+
@tanstack/match-sorter-utils/build/lib/index.mjs:
|
|
1207
|
+
(**
|
|
1208
|
+
* match-sorter-utils
|
|
1209
|
+
*
|
|
1210
|
+
* Copyright (c) TanStack
|
|
1211
|
+
*
|
|
1212
|
+
* This source code is licensed under the MIT license found in the
|
|
1213
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
1214
|
+
*
|
|
1215
|
+
* @license MIT
|
|
1216
|
+
*)
|
|
1217
|
+
(**
|
|
1218
|
+
* @name match-sorter
|
|
1219
|
+
* @license MIT license.
|
|
1220
|
+
* @copyright (c) 2099 Kent C. Dodds
|
|
1221
|
+
* @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
|
|
1222
|
+
*)
|
|
1223
|
+
|
|
1224
|
+
@kobalte/utils/dist/index.js:
|
|
1225
|
+
(*!
|
|
1226
|
+
* Portions of this file are based on code from ariakit.
|
|
1227
|
+
* MIT Licensed, Copyright (c) Diego Haz.
|
|
1228
|
+
*
|
|
1229
|
+
* Credits to the Ariakit team:
|
|
1230
|
+
* https://github.com/ariakit/ariakit/blob/da142672eddefa99365773ced72171facc06fdcb/packages/ariakit-utils/src/array.ts
|
|
1231
|
+
*)
|
|
1232
|
+
(*!
|
|
1233
|
+
* Original code by Chakra UI
|
|
1234
|
+
* MIT Licensed, Copyright (c) 2019 Segun Adebayo.
|
|
1235
|
+
*
|
|
1236
|
+
* Credits to the Chakra UI team:
|
|
1237
|
+
* https://github.com/chakra-ui/chakra-ui/blob/main/packages/utils/src/assertion.ts
|
|
1238
|
+
*)
|
|
1239
|
+
(*!
|
|
1240
|
+
* Portions of this file are based on code from react-spectrum.
|
|
1241
|
+
* Apache License Version 2.0, Copyright 2020 Adobe.
|
|
1242
|
+
*
|
|
1243
|
+
* Credits to the React Spectrum team:
|
|
1244
|
+
* https://github.com/solidjs-community/solid-aria/blob/2c5f54feb5cfea514b1ee0a52d0416878f882351/packages/utils/src/createGlobalListeners.ts
|
|
1245
|
+
*)
|
|
1246
|
+
(*!
|
|
1247
|
+
* Portions of this file are based on code from ariakit.
|
|
1248
|
+
* MIT Licensed, Copyright (c) Diego Haz.
|
|
1249
|
+
*
|
|
1250
|
+
* Credits to the Ariakit team:
|
|
1251
|
+
* https://github.com/ariakit/ariakit/blob/232bc79018ec20967fec1e097a9474aba3bb5be7/packages/ariakit-utils/src/dom.ts
|
|
1252
|
+
*)
|
|
1253
|
+
(*!
|
|
1254
|
+
* Portions of this file are based on code from react-spectrum.
|
|
1255
|
+
* Apache License Version 2.0, Copyright 2020 Adobe.
|
|
1256
|
+
*
|
|
1257
|
+
* Credits to the React Spectrum team:
|
|
1258
|
+
* https://github.com/adobe/react-spectrum/blob/cf9ab24f3255be1530d0f584061a01aa1e8180e6/packages/@react-aria/utils/src/platform.ts
|
|
1259
|
+
*)
|
|
1260
|
+
(*!
|
|
1261
|
+
* Portions of this file are based on code from react-spectrum.
|
|
1262
|
+
* Apache License Version 2.0, Copyright 2020 Adobe.
|
|
1263
|
+
*
|
|
1264
|
+
* Credits to the React Spectrum team:
|
|
1265
|
+
* https://github.com/adobe/react-spectrum/blob/a9dea8a3672179e6c38aafd1429daf44c7ea2ff6/packages/@react-aria/utils/src/focusWithoutScrolling.ts
|
|
1266
|
+
*)
|
|
1267
|
+
(*!
|
|
1268
|
+
* Portions of this file are based on code from ariakit.
|
|
1269
|
+
* MIT Licensed, Copyright (c) Diego Haz.
|
|
1270
|
+
*
|
|
1271
|
+
* Credits to the Ariakit team:
|
|
1272
|
+
* https://github.com/ariakit/ariakit/blob/main/packages/ariakit-utils/src/focus.ts
|
|
1273
|
+
*
|
|
1274
|
+
* Portions of this file are based on code from react-spectrum.
|
|
1275
|
+
* Apache License Version 2.0, Copyright 2020 Adobe.
|
|
1276
|
+
*
|
|
1277
|
+
* Credits to the React Spectrum team:
|
|
1278
|
+
* https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/focus/src/isElementVisible.ts
|
|
1279
|
+
* https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/focus/src/FocusScope.tsx
|
|
1280
|
+
*)
|
|
1281
|
+
(*!
|
|
1282
|
+
* Portions of this file are based on code from react-spectrum.
|
|
1283
|
+
* Apache License Version 2.0, Copyright 2020 Adobe.
|
|
1284
|
+
*
|
|
1285
|
+
* Credits to the React Spectrum team:
|
|
1286
|
+
* https://github.com/adobe/react-spectrum/blob/f6e686fe9d3b983d48650980c1ecfdde320bc62f/packages/@react-aria/focus/src/FocusScope.tsx
|
|
1287
|
+
*)
|
|
1288
|
+
(*!
|
|
1289
|
+
* Portions of this file are based on code from react-spectrum.
|
|
1290
|
+
* Apache License Version 2.0, Copyright 2020 Adobe.
|
|
1291
|
+
*
|
|
1292
|
+
* Credits to the React Spectrum team:
|
|
1293
|
+
* https://github.com/adobe/react-spectrum/blob/a9dea8a3672179e6c38aafd1429daf44c7ea2ff6/packages/@react-aria/utils/src/getScrollParent.ts
|
|
1294
|
+
*)
|
|
1295
|
+
(*!
|
|
1296
|
+
* Portions of this file are based on code from react-spectrum.
|
|
1297
|
+
* Apache License Version 2.0, Copyright 2020 Adobe.
|
|
1298
|
+
*
|
|
1299
|
+
* Credits to the React Spectrum team:
|
|
1300
|
+
* https://github.com/adobe/react-spectrum/blob/a9dea8a3672179e6c38aafd1429daf44c7ea2ff6/packages/@react-aria/utils/src/isVirtualEvent.ts
|
|
1301
|
+
*)
|
|
1302
|
+
(*!
|
|
1303
|
+
* Portions of this file are based on code from react-spectrum.
|
|
1304
|
+
* Apache License Version 2.0, Copyright 2020 Adobe.
|
|
1305
|
+
*
|
|
1306
|
+
* Credits to the React Spectrum team:
|
|
1307
|
+
* https://github.com/adobe/react-spectrum/blob/ff3e690fffc6c54367b8057e28a0e5b9211f37b5/packages/@react-stately/utils/src/number.ts
|
|
1308
|
+
*)
|
|
1309
|
+
(*!
|
|
1310
|
+
* Portions of this file are based on code from ariakit.
|
|
1311
|
+
* MIT Licensed, Copyright (c) Diego Haz.
|
|
1312
|
+
*
|
|
1313
|
+
* Credits to the Ariakit team:
|
|
1314
|
+
* https://github.com/ariakit/ariakit/blob/84e97943ad637a582c01c9b56d880cd95f595737/packages/ariakit/src/hovercard/__utils/polygon.ts
|
|
1315
|
+
* https://github.com/ariakit/ariakit/blob/f2a96973de523d67e41eec983263936c489ef3e2/packages/ariakit/src/hovercard/__utils/debug-polygon.ts
|
|
1316
|
+
*)
|
|
1317
|
+
(*!
|
|
1318
|
+
* Portions of this file are based on code from react-spectrum.
|
|
1319
|
+
* Apache License Version 2.0, Copyright 2020 Adobe.
|
|
1320
|
+
*
|
|
1321
|
+
* Credits to the React Spectrum team:
|
|
1322
|
+
* https://github.com/adobe/react-spectrum/blob/a9dea8a3672179e6c38aafd1429daf44c7ea2ff6/packages/@react-aria/utils/src/runAfterTransition.ts
|
|
1323
|
+
*)
|
|
1324
|
+
(*!
|
|
1325
|
+
* Portions of this file are based on code from react-spectrum.
|
|
1326
|
+
* Apache License Version 2.0, Copyright 2020 Adobe.
|
|
1327
|
+
*
|
|
1328
|
+
* Credits to the React Spectrum team:
|
|
1329
|
+
* https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/utils/src/scrollIntoView.ts
|
|
1330
|
+
*)
|
|
1331
|
+
*)
|
|
1332
|
+
*/
|