@prisma/studio-core 0.0.0-dev.202505081341 → 0.0.0-dev.202505081603
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/ui/index.cjs +43 -51
- package/dist/ui/index.css +13 -29
- package/dist/ui/index.js +10 -18
- package/package.json +1 -1
package/dist/ui/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";var Nm=Object.create;var bn=Object.defineProperty;var zm=Object.getOwnPropertyDescriptor;var Um=Object.getOwnPropertyNames;var Hm=Object.getPrototypeOf,_m=Object.prototype.hasOwnProperty;var tr=(e,t)=>()=>(e&&(t=e(e=0)),t);var wn=(e,t)=>{for(var a in t)bn(e,a,{get:t[a],enumerable:!0})},Cn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Um(t))!_m.call(e,r)&&r!==a&&bn(e,r,{get:()=>t[r],enumerable:!(o=zm(t,r))||o.enumerable});return e},pa=(e,t,a)=>(Cn(e,t,"default"),a&&Cn(a,t,"default")),xe=(e,t,a)=>(a=e!=null?Nm(Hm(e)):{},Cn(t||!e||!e.__esModule?bn(a,"default",{value:e,enumerable:!0}):a,e)),Vm=e=>Cn(bn({},"__esModule",{value:!0}),e);var b=tr(()=>{});function su(e){let t=String(e),a=t.length-1;return Y.context.id+(a?String.fromCharCode(96+a):"")+t}function io(e){Y.context=e}function Ig(){return{...Y.context,id:Y.getNextContextId(),count:0}}function Xt(e,t){let a=be,o=le,r=e.length===0,n=t===void 0?o:t,s=r?bu:{owned:null,cleanups:null,context:n?n.context:null,owner:n},i=r?e:()=>e(()=>Ie(()=>za(s)));le=s,be=null;try{return ct(i,!0)}finally{be=a,le=o}}function N(e,t){t=t?Object.assign({},Tn,t):Tn;let a={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},o=r=>(typeof r=="function"&&(q&&q.running&&q.sources.has(a)?r=r(a.tValue):r=r(a.value)),Pu(a,r));return[ku.bind(a),o]}function Dn(e,t,a){let o=$n(e,t,!0,ht);Oo&&q&&q.running?ze.push(o):Bo(o)}function W(e,t,a){let o=$n(e,t,!1,ht);Oo&&q&&q.running?ze.push(o):Bo(o)}function Q(e,t,a){Cu=Eg;let o=$n(e,t,!1,ht),r=kr&&Ue(kr);r&&(o.suspense=r),(!a||!a.render)&&(o.user=!0),tt?tt.push(o):Bo(o)}function k(e,t,a){a=a?Object.assign({},Tn,a):Tn;let o=$n(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=a.equals||void 0,Oo&&q&&q.running?(o.tState=ht,ze.push(o)):Bo(o),ku.bind(o)}function Pg(e){return e&&typeof e=="object"&&"then"in e}function Mg(e,t,a){let o,r,n;o=!0,r=e,n={};let s=null,i=zs,l=null,u=!1,d=!1,c="initialValue"in n,p=typeof o=="function"&&k(o),f=new Set,[m,g]=(n.storage||N)(n.initialValue),[h,x]=N(void 0),[y,C]=N(void 0,{equals:!1}),[w,L]=N(c?"ready":"unresolved");Y.context&&(l=Y.getNextContextId(),n.ssrLoadFrom==="initial"?i=n.initialValue:Y.load&&Y.has(l)&&(i=Y.load(l)));function E(I,_,F,re){return s===I&&(s=null,re!==void 0&&(c=!0),(I===i||_===i)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(re,{value:_})),i=zs,q&&I&&u?(q.promises.delete(I),u=!1,ct(()=>{q.running=!0,D(_,F)},!1)):D(_,F)),_}function D(I,_){ct(()=>{_===void 0&&g(()=>I),L(_!==void 0?"errored":c?"ready":"unresolved"),x(_);for(let F of f.keys())F.decrement();f.clear()},!1)}function T(){let I=kr&&Ue(kr),_=m(),F=h();if(F!==void 0&&!s)throw F;return be&&!be.user&&I&&Dn(()=>{y(),s&&(I.resolved&&q&&u?q.promises.add(s):f.has(I)||(I.increment(),f.add(I)))}),_}function S(I=!0){if(I!==!1&&d)return;d=!1;let _=p?p():o;if(u=q&&q.running,_==null||_===!1){E(s,Ie(m));return}q&&s&&q.promises.delete(s);let F=i!==zs?i:Ie(()=>r(_,{value:m(),refetching:I}));return Pg(F)?(s=F,"value"in F?(F.status==="success"?E(s,F.value,void 0,_):E(s,void 0,_s(F.value),_),F):(d=!0,queueMicrotask(()=>d=!1),ct(()=>{L(c?"refreshing":"pending"),C()},!1),F.then(re=>E(F,re,void 0,_),re=>E(F,void 0,_s(re),_)))):(E(s,F,void 0,_),F)}return Object.defineProperties(T,{state:{get:()=>w()},error:{get:()=>h()},loading:{get(){let I=w();return I==="pending"||I==="refreshing"}},latest:{get(){if(!c)return T();let I=h();if(I&&!s)throw I;return m()}}}),p?Dn(()=>S(!1)):S(!1),[T,{refetch:S,mutate:g}]}function wu(e){return ct(e,!1)}function Ie(e){if(!Eo&&be===null)return e();let t=be;be=null;try{return Eo?Eo.untrack(e):e()}finally{be=t}}function Zt(e,t,a){let o=Array.isArray(e),r,n=a&&a.defer;return s=>{let i;if(o){i=Array(e.length);for(let u=0;u<e.length;u++)i[u]=e[u]()}else i=e();if(n)return n=!1,s;let l=Ie(()=>t(i,r,s));return r=i,l}}function ha(e){Q(()=>Ie(e))}function Z(e){return le===null||(le.cleanups===null?le.cleanups=[e]:le.cleanups.push(e)),e}function En(){return le}function Ag(e,t){let a=le,o=be;le=e,be=null;try{return ct(t,!0)}catch(r){qn(r)}finally{le=a,be=o}}function Lu(e){if(q&&q.running)return e(),q.done;let t=be,a=le;return Promise.resolve().then(()=>{be=t,le=a;let o;return(Oo||kr)&&(o=q||(q={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),o.done||(o.done=new Promise(r=>o.resolve=r)),o.running=!0),ct(e,!1),be=le=null,o?o.done:void 0})}function Su(){return[Rg,Lu]}function Qe(e,t){let a=Symbol("context");return{id:a,Provider:Fg(a),defaultValue:e}}function Ue(e){let t;return le&&le.context&&(t=le.context[e.id])!==void 0?t:e.defaultValue}function Iu(e){let t=k(e),a=k(()=>Vs(t()));return a.toArray=()=>{let o=a();return Array.isArray(o)?o:o!=null?[o]:[]},a}function ku(){let e=q&&q.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===ht)Bo(this);else{let t=ze;ze=null,ct(()=>Fn(this),!1),ze=t}if(be){let t=this.observers?this.observers.length:0;be.sources?(be.sources.push(this),be.sourceSlots.push(t)):(be.sources=[this],be.sourceSlots=[t]),this.observers?(this.observers.push(be),this.observerSlots.push(be.sources.length-1)):(this.observers=[be],this.observerSlots=[be.sources.length-1])}return e&&q.sources.has(this)?this.tValue:this.value}function Pu(e,t,a){let o=q&&q.running&&q.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(o,t)){if(q){let r=q.running;(r||!a&&q.sources.has(e))&&(q.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&ct(()=>{for(let r=0;r<e.observers.length;r+=1){let n=e.observers[r],s=q&&q.running;s&&q.disposed.has(n)||((s?!n.tState:!n.state)&&(n.pure?ze.push(n):tt.push(n),n.observers&&Au(n)),s?n.tState=ht:n.state=ht)}if(ze.length>1e6)throw ze=[],new Error},!1)}return t}function Bo(e){if(!e.fn)return;za(e);let t=Bn;uu(e,q&&q.running&&q.sources.has(e)?e.tValue:e.value,t),q&&!q.running&&q.sources.has(e)&&queueMicrotask(()=>{ct(()=>{q&&(q.running=!0),be=le=e,uu(e,e.tValue,t),be=le=null},!1)})}function uu(e,t,a){let o,r=le,n=be;be=le=e;try{o=e.fn(t)}catch(s){return e.pure&&(q&&q.running?(e.tState=ht,e.tOwned&&e.tOwned.forEach(za),e.tOwned=void 0):(e.state=ht,e.owned&&e.owned.forEach(za),e.owned=null)),e.updatedAt=a+1,qn(s)}finally{be=n,le=r}(!e.updatedAt||e.updatedAt<=a)&&(e.updatedAt!=null&&"observers"in e?Pu(e,o,!0):q&&q.running&&e.pure?(q.sources.add(e),e.tValue=o):e.value=o,e.updatedAt=a)}function $n(e,t,a,o=ht,r){let n={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:le,context:le?le.context:null,pure:a};if(q&&q.running&&(n.state=0,n.tState=o),le===null||le!==bu&&(q&&q.running&&le.pure?le.tOwned?le.tOwned.push(n):le.tOwned=[n]:le.owned?le.owned.push(n):le.owned=[n]),Eo&&n.fn){let[s,i]=N(void 0,{equals:!1}),l=Eo.factory(n.fn,i);Z(()=>l.dispose());let u=()=>Lu(i).then(()=>d.dispose()),d=Eo.factory(n.fn,u);n.fn=c=>(s(),q&&q.running?d.track(c):l.track(c))}return n}function Pr(e){let t=q&&q.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===Ir)return Fn(e);if(e.suspense&&Ie(e.suspense.inFallback))return e.suspense.effects.push(e);let a=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Bn);){if(t&&q.disposed.has(e))return;(t?e.tState:e.state)&&a.push(e)}for(let o=a.length-1;o>=0;o--){if(e=a[o],t){let r=e,n=a[o+1];for(;(r=r.owner)&&r!==n;)if(q.disposed.has(r))return}if((t?e.tState:e.state)===ht)Bo(e);else if((t?e.tState:e.state)===Ir){let r=ze;ze=null,ct(()=>Fn(e,a[0]),!1),ze=r}}}function ct(e,t){if(ze)return e();let a=!1;t||(ze=[]),tt?a=!0:tt=[],Bn++;try{let o=e();return Tg(a),o}catch(o){a||(tt=null),ze=null,qn(o)}}function Tg(e){if(ze&&(Oo&&q&&q.running?Dg(ze):Mu(ze),ze=null),e)return;let t;if(q){if(!q.promises.size&&!q.queue.size){let o=q.sources,r=q.disposed;tt.push.apply(tt,q.effects),t=q.resolve;for(let n of tt)"tState"in n&&(n.state=n.tState),delete n.tState;q=null,ct(()=>{for(let n of r)za(n);for(let n of o){if(n.value=n.tValue,n.owned)for(let s=0,i=n.owned.length;s<i;s++)za(n.owned[s]);n.tOwned&&(n.owned=n.tOwned),delete n.tValue,delete n.tOwned,n.tState=0}iu(!1)},!1)}else if(q.running){q.running=!1,q.effects.push.apply(q.effects,tt),tt=null,iu(!0);return}}let a=tt;tt=null,a.length&&ct(()=>Cu(a),!1),t&&t()}function Mu(e){for(let t=0;t<e.length;t++)Pr(e[t])}function Dg(e){for(let t=0;t<e.length;t++){let a=e[t],o=q.queue;o.has(a)||(o.add(a),Oo(()=>{o.delete(a),ct(()=>{q.running=!0,Pr(a)},!1),q&&(q.running=!1)}))}}function Eg(e){let t,a=0;for(t=0;t<e.length;t++){let o=e[t];o.user?e[a++]=o:Pr(o)}if(Y.context){if(Y.count){Y.effects||(Y.effects=[]),Y.effects.push(...e.slice(0,a));return}io()}for(Y.effects&&(Y.done||!Y.count)&&(e=[...Y.effects,...e],a+=Y.effects.length,delete Y.effects),t=0;t<a;t++)Pr(e[t])}function Fn(e,t){let a=q&&q.running;a?e.tState=0:e.state=0;for(let o=0;o<e.sources.length;o+=1){let r=e.sources[o];if(r.sources){let n=a?r.tState:r.state;n===ht?r!==t&&(!r.updatedAt||r.updatedAt<Bn)&&Pr(r):n===Ir&&Fn(r,t)}}}function Au(e){let t=q&&q.running;for(let a=0;a<e.observers.length;a+=1){let o=e.observers[a];(t?!o.tState:!o.state)&&(t?o.tState=Ir:o.state=Ir,o.pure?ze.push(o):tt.push(o),o.observers&&Au(o))}}function za(e){let t;if(e.sources)for(;e.sources.length;){let a=e.sources.pop(),o=e.sourceSlots.pop(),r=a.observers;if(r&&r.length){let n=r.pop(),s=a.observerSlots.pop();o<r.length&&(n.sourceSlots[s]=o,r[o]=n,a.observerSlots[o]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)za(e.tOwned[t]);delete e.tOwned}if(q&&q.running&&e.pure)Ru(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)za(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}q&&q.running?e.tState=0:e.state=0}function Ru(e,t){if(t||(e.tState=0,q.disposed.add(e)),e.owned)for(let a=0;a<e.owned.length;a++)Ru(e.owned[a])}function _s(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function du(e,t,a){try{for(let o of t)o(e)}catch(o){qn(o,a&&a.owner||null)}}function qn(e,t=le){let a=lu&&t&&t.context&&t.context[lu],o=_s(e);if(!a)throw o;tt?tt.push({fn(){du(o,a,t)},state:ht}):du(o,a,t)}function Vs(e){if(typeof e=="function"&&!e.length)return Vs(e());if(Array.isArray(e)){let t=[];for(let a=0;a<e.length;a++){let o=Vs(e[a]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return t}return e}function Fg(e,t){return function(o){let r;return W(()=>r=Ie(()=>(le.context={...le.context,[e]:o.value},Iu(()=>o.children))),void 0),r}}function On(e){for(let t=0;t<e.length;t++)e[t]()}function Og(e,t,a={}){let o=[],r=[],n=[],s=0,i=t.length>1?[]:null;return Z(()=>On(n)),()=>{let l=e()||[],u=l.length,d,c;return l[Dr],Ie(()=>{let f,m,g,h,x,y,C,w,L;if(u===0)s!==0&&(On(n),n=[],o=[],r=[],s=0,i&&(i=[])),a.fallback&&(o=[Gs],r[0]=Xt(E=>(n[0]=E,a.fallback())),s=1);else if(s===0){for(r=new Array(u),c=0;c<u;c++)o[c]=l[c],r[c]=Xt(p);s=u}else{for(g=new Array(u),h=new Array(u),i&&(x=new Array(u)),y=0,C=Math.min(s,u);y<C&&o[y]===l[y];y++);for(C=s-1,w=u-1;C>=y&&w>=y&&o[C]===l[w];C--,w--)g[w]=r[C],h[w]=n[C],i&&(x[w]=i[C]);for(f=new Map,m=new Array(w+1),c=w;c>=y;c--)L=l[c],d=f.get(L),m[c]=d===void 0?-1:d,f.set(L,c);for(d=y;d<=C;d++)L=o[d],c=f.get(L),c!==void 0&&c!==-1?(g[c]=r[d],h[c]=n[d],i&&(x[c]=i[d]),c=m[c],f.set(L,c)):n[d]();for(c=y;c<u;c++)c in g?(r[c]=g[c],n[c]=h[c],i&&(i[c]=x[c],i[c](c))):r[c]=Xt(p);r=r.slice(0,s=u),o=l.slice(0)}return r});function p(f){if(n[c]=f,i){let[m,g]=N(c);return i[c]=g,t(l[c],m)}return t(l[c])}}}function Bg(e,t,a={}){let o=[],r=[],n=[],s=[],i=0,l;return Z(()=>On(n)),()=>{let u=e()||[],d=u.length;return u[Dr],Ie(()=>{if(d===0)return i!==0&&(On(n),n=[],o=[],r=[],i=0,s=[]),a.fallback&&(o=[Gs],r[0]=Xt(p=>(n[0]=p,a.fallback())),i=1),r;for(o[0]===Gs&&(n[0](),n=[],o=[],r=[],i=0),l=0;l<d;l++)l<o.length&&o[l]!==u[l]?s[l](()=>u[l]):l>=o.length&&(r[l]=Xt(c));for(;l<o.length;l++)n[l]();return i=s.length=n.length=d,o=u.slice(0),r=r.slice(0,i)});function c(p){n[l]=p;let[f,m]=N(u[l]);return s[l]=m,t(f,l)}}}function v(e,t){if($g&&Y.context){let a=Y.context;io(Ig());let o=Ie(()=>e(t||{}));return io(a),o}return Ie(()=>e(t||{}))}function kn(){return!0}function Us(e){return(e=typeof e=="function"?e():e)?e:{}}function qg(){for(let e=0,t=this.length;e<t;++e){let a=this[e]();if(a!==void 0)return a}}function ae(...e){let t=!1;for(let s=0;s<e.length;s++){let i=e[s];t=t||!!i&&Rn in i,e[s]=typeof i=="function"?(t=!0,k(i)):i}if(vu&&t)return new Proxy({get(s){for(let i=e.length-1;i>=0;i--){let l=Us(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in Us(e[i]))return!0;return!1},keys(){let s=[];for(let i=0;i<e.length;i++)s.push(...Object.keys(Us(e[i])));return[...new Set(s)]}},Ks);let a={},o=Object.create(null);for(let s=e.length-1;s>=0;s--){let i=e[s];if(!i)continue;let l=Object.getOwnPropertyNames(i);for(let u=l.length-1;u>=0;u--){let d=l[u];if(d==="__proto__"||d==="constructor")continue;let c=Object.getOwnPropertyDescriptor(i,d);if(!o[d])o[d]=c.get?{enumerable:!0,configurable:!0,get:qg.bind(a[d]=[c.get.bind(i)])}:c.value!==void 0?c:void 0;else{let p=a[d];p&&(c.get?p.push(c.get.bind(i)):c.value!==void 0&&p.push(()=>c.value))}}}let r={},n=Object.keys(o);for(let s=n.length-1;s>=0;s--){let i=n[s],l=o[i];l&&l.get?Object.defineProperty(r,i,l):r[i]=l?l.value:void 0}return r}function ye(e,...t){if(vu&&Rn in e){let r=new Set(t.length>1?t.flat():t[0]),n=t.map(s=>new Proxy({get(i){return s.includes(i)?e[i]:void 0},has(i){return s.includes(i)&&i in e},keys(){return s.filter(i=>i in e)}},Ks));return n.push(new Proxy({get(s){return r.has(s)?void 0:e[s]},has(s){return r.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!r.has(s))}},Ks)),n}let a={},o=t.map(()=>({}));for(let r of Object.getOwnPropertyNames(e)){let n=Object.getOwnPropertyDescriptor(e,r),s=!n.get&&!n.set&&n.enumerable&&n.writable&&n.configurable,i=!1,l=0;for(let u of t)u.includes(r)&&(i=!0,s?o[l][r]=n.value:Object.defineProperty(o[l],r,n)),++l;i||(s?a[r]=n.value:Object.defineProperty(a,r,n))}return[...o,a]}function Js(e){let t,a,o=r=>{let n=Y.context;if(n){let[i,l]=N();Y.count||(Y.count=0),Y.count++,(a||(a=e())).then(u=>{!Y.done&&io(n),Y.count--,l(()=>u.default),io()}),t=i}else if(!t){let[i]=Mg(()=>(a||(a=e())).then(l=>l.default));t=i}let s;return k(()=>(s=t())?Ie(()=>{if(!n||Y.done)return s(r);let i=Y.context;io(n);let l=s(r);return io(i),l}):"")};return o.preload=()=>a||((a=e()).then(r=>t=()=>r.default),a),o}function xt(){return Y.context?Y.getNextContextId():`cl-${Ng++}`}function Du(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(Og(()=>e.each,e.children,t||void 0))}function Eu(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(Bg(()=>e.each,e.children,t||void 0))}function j(e){let t=e.keyed,a=k(()=>e.when,void 0,void 0),o=t?a:k(a,void 0,{equals:(r,n)=>!r==!n});return k(()=>{let r=o();if(r){let n=e.children;return typeof n=="function"&&n.length>0?Ie(()=>n(t?r:()=>{if(!Ie(o))throw Tu("Show");return a()})):n}return e.fallback},void 0,void 0)}function Fu(e){let t=Iu(()=>e.children),a=k(()=>{let o=t(),r=Array.isArray(o)?o:[o],n=()=>{};for(let s=0;s<r.length;s++){let i=s,l=r[s],u=n,d=k(()=>u()?void 0:l.when,void 0,void 0),c=l.keyed?d:k(d,void 0,{equals:(p,f)=>!p==!f});n=()=>u()||(c()?[i,d,l]:void 0)}return n});return k(()=>{let o=a()();if(!o)return e.fallback;let[r,n,s]=o,i=s.children;return typeof i=="function"&&i.length>0?Ie(()=>i(s.keyed?n():()=>{if(Ie(a)()?.[0]!==r)throw Tu("Match");return n()})):i},void 0,void 0)}function Nn(e){return e}function Gg(e,t){let a=Vg[e];return typeof a=="object"?a[t]?a.$:void 0:a}function jg(e,t,a){let o=a.length,r=t.length,n=o,s=0,i=0,l=t[r-1].nextSibling,u=null;for(;s<r||i<n;){if(t[s]===a[i]){s++,i++;continue}for(;t[r-1]===a[n-1];)r--,n--;if(r===s){let d=n<o?i?a[i-1].nextSibling:a[n-i]:l;for(;i<n;)e.insertBefore(a[i++],d)}else if(n===i)for(;s<r;)(!u||!u.has(t[s]))&&t[s].remove(),s++;else if(t[s]===a[n-1]&&a[i]===t[r-1]){let d=t[--r].nextSibling;e.insertBefore(a[i++],t[s++].nextSibling),e.insertBefore(a[--n],d),t[r]=a[n]}else{if(!u){u=new Map;let c=i;for(;c<n;)u.set(a[c],c++)}let d=u.get(t[s]);if(d!=null)if(i<d&&d<n){let c=s,p=1,f;for(;++c<r&&c<n&&!((f=u.get(t[c]))==null||f!==d+p);)p++;if(p>d-i){let m=t[s];for(;i<d;)e.insertBefore(a[i++],m)}else e.replaceChild(a[i++],t[s++])}else s++;else t[s++].remove()}}}function Ys(e,t,a,o={}){let r;return Xt(n=>{r=n,t===document?e():P(t,e(),t.firstChild?null:void 0,a)},o.owner),()=>{r(),t.textContent=""}}function K(e,t,a,o){let r,n=()=>{let i=o?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return i.innerHTML=e,a?i.content.firstChild.firstChild:o?i.firstChild:i.content.firstChild},s=t?()=>Ie(()=>document.importNode(r||(r=n()),!0)):()=>(r||(r=n())).cloneNode(!0);return s.cloneNode=s,s}function Er(e,t=window.document){let a=t[Lr]||(t[Lr]=new Set);for(let o=0,r=e.length;o<r;o++){let n=e[o];a.has(n)||(a.add(n),t.addEventListener(n,$u))}}function Bu(e=window.document){if(e[Lr]){for(let t of e[Lr].keys())e.removeEventListener(t,$u);delete e[Lr]}}function O(e,t,a){co(e)||(a==null?e.removeAttribute(t):e.setAttribute(t,a))}function Xg(e,t,a,o){co(e)||(o==null?e.removeAttributeNS(t,a):e.setAttributeNS(t,a,o))}function Zg(e,t,a){co(e)||(a?e.setAttribute(t,""):e.removeAttribute(t))}function B(e,t){co(e)||(t==null?e.removeAttribute("class"):e.className=t)}function el(e,t,a,o){if(o)Array.isArray(a)?(e[`$$${t}`]=a[0],e[`$$${t}Data`]=a[1]):e[`$$${t}`]=a;else if(Array.isArray(a)){let r=a[0];e.addEventListener(t,a[0]=n=>r.call(e,a[1],n))}else e.addEventListener(t,a,typeof a!="function"&&a)}function Jg(e,t,a={}){let o=Object.keys(t||{}),r=Object.keys(a),n,s;for(n=0,s=r.length;n<s;n++){let i=r[n];!i||i==="undefined"||t[i]||(cu(e,i,!1),delete a[i])}for(n=0,s=o.length;n<s;n++){let i=o[n],l=!!t[i];!i||i==="undefined"||a[i]===l||!l||(cu(e,i,!0),a[i]=l)}return a}function Yg(e,t,a){if(!t)return a?O(e,"style"):t;let o=e.style;if(typeof t=="string")return o.cssText=t;typeof a=="string"&&(o.cssText=a=void 0),a||(a={}),t||(t={});let r,n;for(n in a)t[n]==null&&o.removeProperty(n),delete a[n];for(n in t)r=t[n],r!==a[n]&&(o.setProperty(n,r),a[n]=r);return a}function tl(e,t={},a,o){let r={};return o||W(()=>r.children=Mr(e,t.children,r.children)),W(()=>typeof t.ref=="function"&&uo(t.ref,e)),W(()=>eh(e,t,a,!0,r,!0)),r}function uo(e,t,a){return Ie(()=>e(t,a))}function P(e,t,a,o){if(a!==void 0&&!o&&(o=[]),typeof t!="function")return Mr(e,t,o,a);W(r=>Mr(e,t(),r,a),o)}function eh(e,t,a,o,r={},n=!1){t||(t={});for(let s in r)if(!(s in t)){if(s==="children")continue;r[s]=fu(e,s,null,r[s],a,n,t)}for(let s in t){if(s==="children")continue;let i=t[s];r[s]=fu(e,s,i,r[s],a,n,t)}}function th(e){let t,a;return!co()||!(t=Y.registry.get(a=oh()))?e():(Y.completed&&Y.completed.add(t),Y.registry.delete(a),t)}function co(e){return!!Y.context&&!Y.done&&(!e||e.isConnected)}function ah(e){return e.toLowerCase().replace(/-([a-z])/g,(t,a)=>a.toUpperCase())}function cu(e,t,a){let o=t.trim().split(/\s+/);for(let r=0,n=o.length;r<n;r++)e.classList.toggle(o[r],a)}function fu(e,t,a,o,r,n,s){let i,l,u,d,c;if(t==="style")return Yg(e,a,o);if(t==="classList")return Jg(e,a,o);if(a===o)return o;if(t==="ref")n||a(e);else if(t.slice(0,3)==="on:"){let p=t.slice(3);o&&e.removeEventListener(p,o,typeof o!="function"&&o),a&&e.addEventListener(p,a,typeof a!="function"&&a)}else if(t.slice(0,10)==="oncapture:"){let p=t.slice(10);o&&e.removeEventListener(p,o,!0),a&&e.addEventListener(p,a,!0)}else if(t.slice(0,2)==="on"){let p=t.slice(2).toLowerCase(),f=Kg.has(p);if(!f&&o){let m=Array.isArray(o)?o[0]:o;e.removeEventListener(p,m)}(f||a)&&(el(e,p,a,f),f&&Er([p]))}else if(t.slice(0,5)==="attr:")O(e,t.slice(5),a);else if(t.slice(0,5)==="bool:")Zg(e,t.slice(5),a);else if((c=t.slice(0,5)==="prop:")||(u=Hg.has(t))||!r&&((d=Gg(t,e.tagName))||(l=Ug.has(t)))||(i=e.nodeName.includes("-")||"is"in s)){if(c)t=t.slice(5),l=!0;else if(co(e))return a;t==="class"||t==="className"?B(e,a):i&&!l&&!u?e[ah(t)]=a:e[d||t]=a}else{let p=r&&t.indexOf(":")>-1&&Qg[t.split(":")[0]];p?Xg(e,p,t,a):O(e,_g[t]||t,a)}return a}function $u(e){if(Y.registry&&Y.events&&Y.events.find(([l,u])=>u===e))return;let t=e.target,a=`$$${e.type}`,o=e.target,r=e.currentTarget,n=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),s=()=>{let l=t[a];if(l&&!t.disabled){let u=t[`${a}Data`];if(u!==void 0?l.call(t,u,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&n(t.host),!0},i=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),Y.registry&&!Y.done&&(Y.done=_$HY.done=!0),e.composedPath){let l=e.composedPath();n(l[0]);for(let u=0;u<l.length-2&&(t=l[u],!!s());u++){if(t._$host){t=t._$host,i();break}if(t.parentNode===r)break}}else i();n(o)}function Mr(e,t,a,o,r){let n=co(e);if(n){!a&&(a=[...e.childNodes]);let l=[];for(let u=0;u<a.length;u++){let d=a[u];d.nodeType===8&&d.data.slice(0,2)==="!$"?d.remove():l.push(d)}a=l}for(;typeof a=="function";)a=a();if(t===a)return a;let s=typeof t,i=o!==void 0;if(e=i&&a[0]&&a[0].parentNode||e,s==="string"||s==="number"){if(n||s==="number"&&(t=t.toString(),t===a))return a;if(i){let l=a[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),a=Ro(e,a,o,l)}else a!==""&&typeof a=="string"?a=e.firstChild.data=t:a=e.textContent=t}else if(t==null||s==="boolean"){if(n)return a;a=Ro(e,a,o)}else{if(s==="function")return W(()=>{let l=t();for(;typeof l=="function";)l=l();a=Mr(e,l,a,o)}),()=>a;if(Array.isArray(t)){let l=[],u=a&&Array.isArray(a);if(Ws(l,t,a,r))return W(()=>a=Mr(e,l,a,o,!0)),()=>a;if(n){if(!l.length)return a;if(o===void 0)return a=[...e.childNodes];let d=l[0];if(d.parentNode!==e)return a;let c=[d];for(;(d=d.nextSibling)!==o;)c.push(d);return a=c}if(l.length===0){if(a=Ro(e,a,o),i)return a}else u?a.length===0?pu(e,l,o):jg(e,a,l):(a&&Ro(e),pu(e,l));a=l}else if(t.nodeType){if(n&&t.parentNode)return a=i?[t]:t;if(Array.isArray(a)){if(i)return a=Ro(e,a,o,t);Ro(e,a,null,t)}else a==null||a===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);a=t}}return a}function Ws(e,t,a,o){let r=!1;for(let n=0,s=t.length;n<s;n++){let i=t[n],l=a&&a[e.length],u;if(!(i==null||i===!0||i===!1))if((u=typeof i)=="object"&&i.nodeType)e.push(i);else if(Array.isArray(i))r=Ws(e,i,l)||r;else if(u==="function")if(o){for(;typeof i=="function";)i=i();r=Ws(e,Array.isArray(i)?i:[i],Array.isArray(l)?l:[l])||r}else e.push(i),r=!0;else{let d=String(i);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d))}}return r}function pu(e,t,a=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],a)}function Ro(e,t,a,o){if(a===void 0)return e.textContent="";let r=o||document.createTextNode("");if(t.length){let n=!1;for(let s=t.length-1;s>=0;s--){let i=t[s];if(r!==i){let l=i.parentNode===e;!n&&!s?l?e.replaceChild(r,i):e.insertBefore(r,a):l&&i.remove()}else n=!0}}else e.insertBefore(r,a);return[r]}function oh(){return Y.getNextContextId()}function qu(e,t=!1){return t?document.createElementNS(rh,e):document.createElement(e)}function al(e){let{useShadow:t}=e,a=document.createTextNode(""),o=()=>e.mount||document.body,r=En(),n,s=!!Y.context;return Q(()=>{s&&(En().user=s=!1),n||(n=Ag(r,()=>k(()=>e.children)));let i=o();if(i instanceof HTMLHeadElement){let[l,u]=N(!1),d=()=>u(!0);Xt(c=>P(i,()=>l()?c():n(),null)),Z(d)}else{let l=qu(e.isSVG?"g":"div",e.isSVG),u=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return a.parentNode},configurable:!0}),P(u,n),i.appendChild(l),e.ref&&e.ref(l),Z(()=>i.removeChild(l))}},void 0,{render:!s}),a}function nh(e,t){let a=k(e);return k(()=>{let o=a();switch(typeof o){case"function":return Ie(()=>o(t));case"string":let r=Wg.has(o),n=Y.context?th():qu(o,r);return tl(n,t,r),n}})}function Nu(e){let[,t]=ye(e,["component"]);return nh(()=>e.component,t)}function ih(e){if("values"in Object)return Object.values(e);let t=[];for(let a in e)e.hasOwnProperty(a)&&t.push(e[a]);return t}function uh(e,t){let a=ih(e);if("find"in a)return a.find(t);let o=a;for(let r=0;r<o.length;r++){let n=o[r];if(t(n))return n}}function Fo(e,t){Object.entries(e).forEach(([a,o])=>t(o,a))}function An(e,t){return e.indexOf(t)!==-1}function mu(e,t){for(let a=0;a<e.length;a++){let o=e[a];if(t(o))return o}}function jt(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function zn(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function Wu(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function Zu(e){if(An(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(An(e,"prototype"))throw new Error("prototype is not allowed as a property");if(An(e,"constructor"))throw new Error("constructor is not allowed as a property")}function Xs(e,t,a=[]){if(!e)return;if(!Ua(e)){Fo(e,(n,s)=>Xs(n,t,[...a,...Sr(s)]));return}let[o,r]=e;r&&Fo(r,(n,s)=>{Xs(n,t,[...a,...Sr(s)])}),t(o,a)}function Mh(e,t,a){return Xs(t,(o,r)=>{e=js(e,r,n=>kh(n,o,a))}),e}function Ah(e,t){function a(o,r){let n=Ph(e,Sr(r));o.map(Sr).forEach(s=>{e=js(e,s,()=>n)})}if(Ua(t)){let[o,r]=t;o.forEach(n=>{e=js(e,Sr(n),()=>e)}),r&&Fo(r,a)}else Fo(t,a);return e}function Th(e,t,a){let o=a.get(e);o?o.push(t):a.set(e,[t])}function Dh(e,t){let a={},o;return e.forEach(r=>{if(r.length<=1)return;t||(r=r.map(i=>i.map(String)).sort((i,l)=>i.length-l.length));let[n,...s]=r;n.length===0?o=s.map(Hs):a[Hs(n)]=s.map(Hs)}),o?Qs(a)?[o]:[o,a]:Qs(a)?void 0:a}function Yu(e){return Object.prototype.toString.call(e).slice(8,-1)}function xu(e){return Yu(e)==="Array"}function Eh(e){if(Yu(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Fh(e,t,a,o,r){let n={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";n==="enumerable"&&(e[t]=a),r&&n==="nonenumerable"&&Object.defineProperty(e,t,{value:a,enumerable:!1,writable:!0,configurable:!0})}function Zs(e,t={}){if(xu(e))return e.map(r=>Zs(r,t));if(!Eh(e))return e;let a=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...a,...o].reduce((r,n)=>{if(xu(t.props)&&!t.props.includes(n))return r;let s=e[n],i=Zs(s,t);return Fh(r,n,i,e,t.nonenumerable),r},{})}function fo(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function td(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function ad({queryState:e,observerCount:t,isStale:a}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":a?"yellow":"green":"gray"}function po({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function od(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var Y,yu,kg,Rn,vu,Dr,Tn,lu,Cu,ht,Ir,bu,zs,le,q,Oo,Eo,be,ze,tt,Bn,Rg,iu,kr,Gs,$g,Ks,Ng,Tu,Ou,zg,Ug,Hg,_g,Vg,Kg,Wg,Qg,Lr,at,rh,sh,zu,lh,dh,ch,Uu,fh,Ar,Qs,Ua,ph,mh,gh,hh,Rr,Tr,Hu,xh,yh,gu,vh,Ch,bh,wh,Lh,_u,Hs,Sr,Vu,Gu,Sh,Ku,Qu,ju,Ih,hu,Xu,kh,To,Ph,js,Rh,Ju,pe,ol,ed,Fr,Pn,Oh,rd,Bh,Un,Mn,nd,$h,Hn,rl,_n,Na,Do,nl,Or=tr(()=>{"use strict";b();Y={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return su(this.context.count)},getNextContextId(){return su(this.context.count++)}};yu=!1,kg=(e,t)=>e===t,Rn=Symbol("solid-proxy"),vu=typeof Proxy=="function",Dr=Symbol("solid-track"),Tn={equals:kg},lu=null,Cu=Mu,ht=1,Ir=2,bu={owned:null,cleanups:null,context:null,owner:null},zs={},le=null,q=null,Oo=null,Eo=null,be=null,ze=null,tt=null,Bn=0;[Rg,iu]=N(!1);Gs=Symbol("fallback");$g=!1;Ks={get(e,t,a){return t===Rn?a:e.get(t)},has(e,t){return t===Rn?!0:e.has(t)},set:kn,deleteProperty:kn,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:kn,deleteProperty:kn}},ownKeys(e){return e.keys()}};Ng=0;Tu=e=>`Stale read from <${e}>.`;Ou=void 0,zg=["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"],Ug=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...zg]),Hg=new Set(["innerHTML","textContent","innerText","children"]),_g=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Vg=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}});Kg=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Wg=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"]),Qg={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};Lr="_$DX_DELEGATE";at=!1,rh="http://www.w3.org/2000/svg";sh=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()}},zu=class{constructor(e){this.generateIdentifier=e,this.kv=new sh}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)}},lh=class extends zu{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)}};dh=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return uh(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},ch=e=>Object.prototype.toString.call(e).slice(8,-1),Uu=e=>typeof e>"u",fh=e=>e===null,Ar=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Qs=e=>Ar(e)&&Object.keys(e).length===0,Ua=e=>Array.isArray(e),ph=e=>typeof e=="string",mh=e=>typeof e=="number"&&!isNaN(e),gh=e=>typeof e=="boolean",hh=e=>e instanceof RegExp,Rr=e=>e instanceof Map,Tr=e=>e instanceof Set,Hu=e=>ch(e)==="Symbol",xh=e=>e instanceof Date&&!isNaN(e.valueOf()),yh=e=>e instanceof Error,gu=e=>typeof e=="number"&&isNaN(e),vh=e=>gh(e)||fh(e)||Uu(e)||mh(e)||ph(e)||Hu(e),Ch=e=>typeof e=="bigint",bh=e=>e===1/0||e===-1/0,wh=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Lh=e=>e instanceof URL,_u=e=>e.replace(/\./g,"\\."),Hs=e=>e.map(String).map(_u).join("."),Sr=e=>{let t=[],a="";for(let r=0;r<e.length;r++){let n=e.charAt(r);if(n==="\\"&&e.charAt(r+1)==="."){a+=".",r++;continue}if(n==="."){t.push(a),a="";continue}a+=n}let o=a;return t.push(o),t};Vu=[jt(Uu,"undefined",()=>null,()=>{}),jt(Ch,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),jt(xh,"Date",e=>e.toISOString(),e=>new Date(e)),jt(yh,"Error",(e,t)=>{let a={name:e.name,message:e.message};return t.allowedErrorProps.forEach(o=>{a[o]=e[o]}),a},(e,t)=>{let a=new Error(e.message);return a.name=e.name,a.stack=e.stack,t.allowedErrorProps.forEach(o=>{a[o]=e[o]}),a}),jt(hh,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),jt(Tr,"set",e=>[...e.values()],e=>new Set(e)),jt(Rr,"map",e=>[...e.entries()],e=>new Map(e)),jt(e=>gu(e)||bh(e),"number",e=>gu(e)?"NaN":e>0?"Infinity":"-Infinity",Number),jt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),jt(Lh,"URL",e=>e.toString(),e=>new URL(e))];Gu=zn((e,t)=>Hu(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,a)=>{let o=a.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),Sh=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Ku=zn(wh,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let a=Sh[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});Qu=zn(Wu,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let a=t.classRegistry.getAllowedProps(e.constructor);if(!a)return{...e};let o={};return a.forEach(r=>{o[r]=e[r]}),o},(e,t,a)=>{let o=a.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)}),ju=zn((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,a)=>{let o=a.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),Ih=[Qu,Gu,ju,Ku],hu=(e,t)=>{let a=mu(Ih,r=>r.isApplicable(e,t));if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};let o=mu(Vu,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},Xu={};Vu.forEach(e=>{Xu[e.annotation]=e});kh=(e,t,a)=>{if(Ua(t))switch(t[0]){case"symbol":return Gu.untransform(e,t,a);case"class":return Qu.untransform(e,t,a);case"custom":return ju.untransform(e,t,a);case"typed-array":return Ku.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{let o=Xu[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,a)}},To=(e,t)=>{let a=e.keys();for(;t>0;)a.next(),t--;return a.next().value};Ph=(e,t)=>{Zu(t);for(let a=0;a<t.length;a++){let o=t[a];if(Tr(e))e=To(e,+o);else if(Rr(e)){let r=+o,n=+t[++a]==0?"key":"value",s=To(e,r);switch(n){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[o]}return e},js=(e,t,a)=>{if(Zu(t),t.length===0)return a(e);let o=e;for(let n=0;n<t.length-1;n++){let s=t[n];if(Ua(o)){let i=+s;o=o[i]}else if(Ar(o))o=o[s];else if(Tr(o)){let i=+s;o=To(o,i)}else if(Rr(o)){if(n===t.length-2)break;let l=+s,u=+t[++n]==0?"key":"value",d=To(o,l);switch(u){case"key":o=d;break;case"value":o=o.get(d);break}}}let r=t[t.length-1];if(Ua(o)?o[+r]=a(o[+r]):Ar(o)&&(o[r]=a(o[r])),Tr(o)){let n=To(o,+r),s=a(n);n!==s&&(o.delete(n),o.add(s))}if(Rr(o)){let n=+t[t.length-2],s=To(o,n);switch(+r==0?"key":"value"){case"key":{let l=a(s);o.set(l,o.get(s)),l!==s&&o.delete(s);break}case"value":{o.set(s,a(o.get(s)));break}}}return e};Rh=(e,t)=>Ar(e)||Ua(e)||Rr(e)||Tr(e)||Wu(e,t);Ju=(e,t,a,o,r=[],n=[],s=new Map)=>{let i=vh(e);if(!i){Th(e,r,t);let f=s.get(e);if(f)return o?{transformedValue:null}:f}if(!Rh(e,a)){let f=hu(e,a),m=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:e};return i||s.set(e,m),m}if(An(n,e))return{transformedValue:null};let l=hu(e,a),u=l?.value??e,d=Ua(u)?[]:{},c={};Fo(u,(f,m)=>{if(m==="__proto__"||m==="constructor"||m==="prototype")throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);let g=Ju(f,t,a,o,[...r,m],[...n,e],s);d[m]=g.transformedValue,Ua(g.annotations)?c[m]=g.annotations:Ar(g.annotations)&&Fo(g.annotations,(h,x)=>{c[_u(m)+"."+x]=h})});let p=Qs(c)?{transformedValue:d,annotations:l?[l.type]:void 0}:{transformedValue:d,annotations:l?[l.type,c]:c};return i||s.set(e,p),p};pe=class{constructor({dedupe:e=!1}={}){this.classRegistry=new lh,this.symbolRegistry=new zu(t=>t.description??""),this.customTransformerRegistry=new dh,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,a=Ju(e,t,this,this.dedupe),o={json:a.transformedValue};a.annotations&&(o.meta={...o.meta,values:a.annotations});let r=Dh(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){let{json:t,meta:a}=e,o=Zs(t);return a?.values&&(o=Mh(o,a.values,this)),a?.referentialEqualities&&(o=Ah(o,a.referentialEqualities)),o}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)}};pe.defaultInstance=new pe;pe.serialize=pe.defaultInstance.serialize.bind(pe.defaultInstance);pe.deserialize=pe.defaultInstance.deserialize.bind(pe.defaultInstance);pe.stringify=pe.defaultInstance.stringify.bind(pe.defaultInstance);pe.parse=pe.defaultInstance.parse.bind(pe.defaultInstance);pe.registerClass=pe.defaultInstance.registerClass.bind(pe.defaultInstance);pe.registerSymbol=pe.defaultInstance.registerSymbol.bind(pe.defaultInstance);pe.registerCustom=pe.defaultInstance.registerCustom.bind(pe.defaultInstance);pe.allowErrorProps=pe.defaultInstance.allowErrorProps.bind(pe.defaultInstance);ol=pe.serialize;pe.deserialize;ed=pe.stringify;pe.parse;pe.registerClass;pe.registerCustom;pe.registerSymbol;pe.allowErrorProps;Fr=(e,t=!1)=>{let{json:a}=ol(e);return JSON.stringify(a,null,t?2:void 0)},Pn=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,Oh=(e,t)=>e.queryHash.localeCompare(t.queryHash),rd=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Bh=(e,t)=>Pn(e)===Pn(t)?rd(e,t):Pn(e)>Pn(t)?1:-1,Un={status:Bh,"query hash":Oh,"last updated":rd},Mn=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,nd=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,$h=(e,t)=>Mn(e)===Mn(t)?nd(e,t):Mn(e)>Mn(t)?1:-1,Hn={status:$h,"last updated":nd},rl=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),_n=()=>{let[e,t]=N("dark");return ha(()=>{let a=window.matchMedia("(prefers-color-scheme: dark)");t(a.matches?"dark":"light");let o=r=>{t(r.matches?"dark":"light")};a.addEventListener("change",o),Z(()=>a.removeEventListener("change",o))}),e},Na=(e,t,a)=>{if(t.length===0)return a;if(e instanceof Map){let o=new Map(e);if(t.length===1)return o.set(t[0],a),o;let[r,...n]=t;return o.set(r,Na(o.get(r),n,a)),o}if(e instanceof Set){let o=Na(Array.from(e),t,a);return new Set(o)}if(Array.isArray(e)){let o=[...e];if(t.length===1)return o[t[0]]=a,o;let[r,...n]=t;return o[r]=Na(o[r],n,a),o}if(e instanceof Object){let o={...e};if(t.length===1)return o[t[0]]=a,o;let[r,...n]=t;return o[r]=Na(o[r],n,a),o}return e},Do=(e,t)=>{if(e instanceof Map){let a=new Map(e);if(t.length===1)return a.delete(t[0]),a;let[o,...r]=t;return a.set(o,Do(a.get(o),r)),a}if(e instanceof Set){let a=Do(Array.from(e),t);return new Set(a)}if(Array.isArray(e)){let a=[...e];if(t.length===1)return a.filter((n,s)=>s.toString()!==t[0]);let[o,...r]=t;return a[o]=Do(a[o],r),a}if(e instanceof Object){let a={...e};if(t.length===1)return delete a[t[0]],a;let[o,...r]=t;return a[o]=Do(a[o],r),a}return e},nl=(e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;let o=document.createElement("style"),r=document.createTextNode("");o.appendChild(r),o.id="_goober",o.setAttribute("nonce",e),t?t.appendChild(o):document.head.appendChild(o)}});function Hh(e){return(...t)=>{for(let a of e)a&&a(...t)}}function _h(e,...t){return typeof e=="function"?e(...t):e}function Gh(e,t,a,o){let r=e.length,n=t.length,s=0;if(!n){for(;s<r;s++)a(e[s]);return}if(!r){for(;s<n;s++)o(t[s]);return}for(;s<n&&t[s]===e[s];s++);let i,l;t=t.slice(s),e=e.slice(s);for(i of t)e.includes(i)||o(i);for(l of e)t.includes(l)||a(l)}function Kh(e){let[t,a]=N(),o=e?.throw?(p,f)=>{throw a(p instanceof Error?p:new Error(f)),p}:(p,f)=>{a(p instanceof Error?p:new Error(f))},r=e?.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),n=e?.prefix?`${e.prefix}.`:"",s=new Map,i=new Proxy({},{get(p,f){let m=s.get(f);m||(m=N(void 0,{equals:!1}),s.set(f,m)),m[0]();let g=r.reduce((h,x)=>{if(h!==null||!x)return h;try{return x.getItem(`${n}${f}`)}catch(y){return o(y,`Error reading ${n}${f} from ${x.name}`),null}},null);return g!==null&&e?.deserializer?e.deserializer(g,f,e.options):g}}),l=(p,f,m)=>{let g=e?.serializer?e.serializer(f,p,m??e.options):f,h=`${n}${p}`;r.forEach(y=>{try{y.getItem(h)!==g&&y.setItem(h,g)}catch(C){o(C,`Error setting ${n}${p} to ${g} in ${y.name}`)}});let x=s.get(p);x&&x[1]()},u=p=>r.forEach(f=>{try{f.removeItem(`${n}${p}`)}catch(m){o(m,`Error removing ${n}${p} from ${f.name}`)}}),d=()=>r.forEach(p=>{try{p.clear()}catch(f){o(f,`Error clearing ${p.name}`)}}),c=()=>{let p={},f=(m,g)=>{if(!p.hasOwnProperty(m)){let h=g&&e?.deserializer?e.deserializer(g,m,e.options):g;h&&(p[m]=h)}};return r.forEach(m=>{if(typeof m.getAll=="function"){let g;try{g=m.getAll()}catch(h){o(h,`Error getting all values from in ${m.name}`)}for(let h of g)f(h,g[h])}else{let g=0,h;try{for(;h=m.key(g++);)p.hasOwnProperty(h)||f(h,m.getItem(h))}catch(x){o(x,`Error getting all values from ${m.name}`)}}}),p};return e?.sync!==!1&&ha(()=>{let p=f=>{let m=!1;r.forEach(g=>{try{g!==f.storageArea&&f.key&&f.newValue!==g.getItem(f.key)&&(f.newValue?g.setItem(f.key,f.newValue):g.removeItem(f.key),m=!0)}catch(h){o(h,`Error synching api ${g.name} from storage event (${f.key}=${f.newValue})`)}}),m&&f.key&&s.get(f.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",p),Z(()=>globalThis.removeEventListener("storage",p))):(r.forEach(f=>f.addEventListener?.("storage",p)),Z(()=>r.forEach(f=>f.removeEventListener?.("storage",p))))}),[i,l,{clear:d,error:t,remove:u,toJSON:c}]}function X(){return Ue(Kr)}function Xe(){return Ue(Wr)}function a0(e){return e.replace(t0,t=>rc[t])}function ud(e,t,a){var o;if(a=a||{},a.threshold=(o=a.threshold)!=null?o:ft.MATCHES,!a.accessors){let s=dd(e,t,a);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:a.threshold,passed:s>=a.threshold}}let r=s0(e,a.accessors),n={rankedValue:e,rank:ft.NO_MATCH,accessorIndex:-1,accessorThreshold:a.threshold,passed:!1};for(let s=0;s<r.length;s++){let i=r[s],l=dd(i.itemValue,t,a),{minRanking:u,maxRanking:d,threshold:c=a.threshold}=i.attributes;l<u&&l>=ft.MATCHES?l=u:l>d&&(l=d),l=Math.min(l,d),l>=c&&l>n.rank&&(n.rank=l,n.passed=!0,n.accessorIndex=s,n.accessorThreshold=c,n.rankedValue=i.itemValue)}return n}function dd(e,t,a){return e=cd(e,a),t=cd(t,a),t.length>e.length?ft.NO_MATCH:e===t?ft.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?ft.EQUAL:e.startsWith(t)?ft.STARTS_WITH:e.includes(` ${t}`)?ft.WORD_STARTS_WITH:e.includes(t)?ft.CONTAINS:t.length===1?ft.NO_MATCH:o0(e).includes(t)?ft.ACRONYM:r0(e,t))}function o0(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(n=>{t+=n.substr(0,1)})}),t}function r0(e,t){let a=0,o=0;function r(l,u,d){for(let c=d,p=u.length;c<p;c++)if(u[c]===l)return a+=1,c+1;return-1}function n(l){let u=1/l,d=a/t.length;return ft.MATCHES+d*u}let s=r(t[0],e,0);if(s<0)return ft.NO_MATCH;o=s;for(let l=1,u=t.length;l<u;l++){let d=t[l];if(o=r(d,e,o),!(o>-1))return ft.NO_MATCH}let i=o-s;return n(i)}function cd(e,t){let{keepDiacritics:a}=t;return e=`${e}`,a||(e=a0(e)),e}function n0(e,t){let a=t;typeof t=="object"&&(a=t.accessor);let o=a(e);return o==null?[]:Array.isArray(o)?o:[String(o)]}function s0(e,t){let a=[];for(let o=0,r=t.length;o<r;o++){let n=t[o],s=l0(n),i=n0(e,n);for(let l=0,u=i.length;l<u;l++)a.push({itemValue:i[l],attributes:s})}return a}function l0(e){return typeof e=="function"?fd:{...fd,...e}}function se(e){let t=this||{},a=e.call?e(t.p):e;return f0(a.unshift?a.raw?p0(a,[].slice.call(arguments,1),t.p):a.reduce((o,r)=>Object.assign(o,r&&r.call?r(t.p):r),{}):a,u0(t.target),t.g,t.o,t.k)}function sc(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=sc(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function U(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=sc(e))&&(o&&(o+=" "),o+=t);return o}function m0(e,t){let a=Ie(e);if(at){let c=a.slice();return()=>c}let{onChange:o}=t,r=new Set(t.appear?void 0:a),n=new WeakSet,[s,i]=N([],{equals:!1}),[l]=Su(),u=c=>{i(p=>(p.push.apply(p,c),p));for(let p of c)n.delete(p)},d=(c,p,f)=>c.splice(f,0,p);return k(c=>{let p=s(),f=e();if(f[Dr],Ie(l))return l(),c;if(p.length){let m=c.filter(g=>!p.includes(g));return p.length=0,o({list:m,added:[],removed:[],unchanged:m,finishRemoved:u}),m}return Ie(()=>{let m=new Set(f),g=f.slice(),h=[],x=[],y=[];for(let w of f)(r.has(w)?y:h).push(w);let C=!h.length;for(let w=0;w<c.length;w++){let L=c[w];m.has(L)||(n.has(L)||(x.push(L),n.add(L)),d(g,L,w)),C&&L!==g[w]&&(C=!1)}return!x.length&&C?c:(o({list:g,added:h,removed:x,unchanged:y,finishRemoved:u}),r=m,g)})},t.appear?[]:a.slice())}function ut(...e){return Hh(e)}function pl(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return pl(e(),t);if(Array.isArray(e)){let a=[];for(let o of e){let r=pl(o,t);r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}return a.length?a:null}return null}function g0(e,t=md,a=md){let o=k(e),r=k(()=>pl(o(),at?a:t));return r.toArray=()=>{let n=r();return Array.isArray(n)?n:n?[n]:[]},r}function h0(e){return k(()=>{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 lc(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function x0(e,t,a,o){let{onBeforeEnter:r,onEnter:n,onAfterEnter:s}=t;r?.(a),a.classList.add(...e.enter),a.classList.add(...e.enterActive),queueMicrotask(()=>{if(!a.parentNode)return o?.();n?.(a,()=>i())}),lc(()=>{a.classList.remove(...e.enter),a.classList.add(...e.enterTo),(!n||n.length<2)&&(a.addEventListener("transitionend",i),a.addEventListener("animationend",i))});function i(l){(!l||l.target===a)&&(a.removeEventListener("transitionend",i),a.removeEventListener("animationend",i),a.classList.remove(...e.enterActive),a.classList.remove(...e.enterTo),s?.(a))}}function y0(e,t,a,o){let{onBeforeExit:r,onExit:n,onAfterExit:s}=t;if(!a.parentNode)return o?.();r?.(a),a.classList.add(...e.exit),a.classList.add(...e.exitActive),n?.(a,()=>i()),lc(()=>{a.classList.remove(...e.exit),a.classList.add(...e.exitTo),(!n||n.length<2)&&(a.addEventListener("transitionend",i),a.addEventListener("animationend",i))});function i(l){(!l||l.target===a)&&(o?.(),a.removeEventListener("transitionend",i),a.removeEventListener("animationend",i),a.classList.remove(...e.exitActive),a.classList.remove(...e.exitTo),s?.(a))}}function hd(e){for(let t of e)t.dispose()}function v0(e,t,a,o={}){if(at){let s=e(),i=[];if(s&&s.length)for(let l=0,u=s.length;l<u;l++)i.push(a(()=>s[l],()=>l));else o.fallback&&(i=[o.fallback()]);return()=>i}let r=new Map;return Z(()=>hd(r.values())),()=>{let s=e()||[];return s[Dr],Ie(()=>{if(!s.length)return hd(r.values()),r.clear(),o.fallback?[Xt(c=>(r.set(sl,{dispose:c}),o.fallback()))]:[];let i=new Array(s.length),l=r.get(sl);if(!r.size||l){l?.dispose(),r.delete(sl);for(let d=0;d<s.length;d++){let c=s[d],p=t(c,d);n(i,c,d,p)}return i}let u=new Set(r.keys());for(let d=0;d<s.length;d++){let c=s[d],p=t(c,d);u.delete(p);let f=r.get(p);f?(i[d]=f.mapped,f.setIndex?.(d),f.setItem(()=>c)):n(i,c,d,p)}for(let d of u)r.get(d)?.dispose(),r.delete(d);return i})};function n(s,i,l,u){Xt(d=>{let[c,p]=N(i),f={setItem:p,dispose:d};if(a.length>1){let[m,g]=N(l);f.setIndex=g,f.mapped=a(c,m)}else f.mapped=a(c);r.set(u,f),s[l]=f.mapped})}}function Wn(e){let{by:t}=e;return k(v0(()=>e.each,typeof t=="function"?t:a=>a[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function C0(e,t,a,o){return e.addEventListener(t,a,o),Vh(e.removeEventListener.bind(e,t,a,o))}function b0(e,t,a,o){if(at)return;let r=()=>{cl(R(e)).forEach(n=>{n&&cl(R(t)).forEach(s=>C0(n,s,a,o))})};typeof e=="function"?Q(r):W(r)}function w0(e,t){if(at)return{observe:sd,unobserve:sd};let a=new ResizeObserver(e);return Z(a.disconnect.bind(a)),{observe:o=>a.observe(o,t),unobserve:a.unobserve.bind(a)}}function ic(e,t,a){if(at)return;let o=new WeakMap,{observe:r,unobserve:n}=w0(s=>{for(let i of s){let{contentRect:l,target:u}=i,d=Math.round(l.width),c=Math.round(l.height),p=o.get(u);(!p||p.width!==d||p.height!==c)&&(t(l,u,i),o.set(u,{width:d,height:c}))}},a);Q(s=>{let i=Uh(cl(R(e)));return Gh(i,s,r,n),i},[])}function xd(e){let t={},a;for(;a=L0.exec(e);)t[a[1]]=a[2];return t}function os(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=xd(e)}else typeof t=="string"&&(t=xd(t));return{...e,...t}}function S0(e,t,a=-1){return a in e?[...e.slice(0,a),t,...e.slice(a)]:[...e,t]}function ml(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function I0(e){return typeof e=="number"}function qo(e){return Object.prototype.toString.call(e)==="[object String]"}function k0(e){return typeof e=="function"}function Qr(e){return t=>`${e()}-${t}`}function kt(e,t){return e?e===t||e.contains(t):!1}function Nr(e,t=!1){let{activeElement:a}=Yt(e);if(!a?.nodeName)return null;if(uc(a)&&a.contentDocument)return Nr(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=Yt(a).getElementById(o);if(r)return r}}return a}function P0(e){return Yt(e).defaultView||window}function Yt(e){return e?e.ownerDocument||e:document}function uc(e){return e.tagName==="IFRAME"}function Il(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function rs(){return Il(/^Mac/i)}function M0(){return Il(/^iPhone/i)}function A0(){return Il(/^iPad/i)||rs()&&navigator.maxTouchPoints>1}function R0(){return M0()||A0()}function T0(){return rs()||R0()}function Te(e,t){return t&&(k0(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function je(e){return t=>{for(let a of e)Te(t,a)}}function D0(e){return rs()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function rt(e){if(e)if(E0())e.focus({preventScroll:!0});else{let t=F0(e);e.focus(),O0(t)}}function E0(){if(Vn==null){Vn=!1;try{document.createElement("div").focus({get preventScroll(){return Vn=!0,!0}})}catch{}}return Vn}function F0(e){let t=e.parentNode,a=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&a.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&a.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),a}function O0(e){for(let{element:t,scrollTop:a,scrollLeft:o}of e)t.scrollTop=a,t.scrollLeft=o}function cc(e,t){let o=Array.from(e.querySelectorAll(kl)).filter(yd);return t&&yd(e)&&o.unshift(e),o.forEach((r,n)=>{if(uc(r)&&r.contentDocument){let s=r.contentDocument.body,i=cc(s,!1);o.splice(n,1,...i)}}),o}function yd(e){return fc(e)&&!q0(e)}function fc(e){return e.matches(kl)&&Pl(e)}function q0(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Pl(e,t){return e.nodeName!=="#comment"&&N0(e)&&z0(e,t)&&(!e.parentElement||Pl(e.parentElement,e))}function N0(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:a}=e.style,o=t!=="none"&&a!=="hidden"&&a!=="collapse";if(o){if(!e.ownerDocument.defaultView)return o;let{getComputedStyle:r}=e.ownerDocument.defaultView,{display:n,visibility:s}=r(e);o=n!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function z0(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function U0(e,t,a){let o=t?.tabbable?$0:kl,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(n){return t?.from?.contains(n)?NodeFilter.FILTER_REJECT:n.matches(o)&&Pl(n)&&(!t?.accept||t.accept(n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function vd(e){for(;e&&!H0(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function H0(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function _0(){}function V0(e,t){let[a,o]=e,r=!1,n=t.length;for(let s=n,i=0,l=s-1;i<s;l=i++){let[u,d]=t[i],[c,p]=t[l],[,f]=t[l===0?s-1:l-1]||[0,0],m=(d-p)*(a-u)-(u-c)*(o-d);if(p<d){if(o>=p&&o<d){if(m===0)return!0;m>0&&(o===p?o>f&&(r=!r):r=!r)}}else if(d<p){if(o>d&&o<=p){if(m===0)return!0;m<0&&(o===p?o<f&&(r=!r):r=!r)}}else if(o==d&&(a>=c&&a<=u||a>=u&&a<=c))return!0}return r}function ge(e,t){return ae(e,t)}function bd(){if(typeof window>"u")return;let e=a=>{if(!a.target)return;let o=Br.get(a.target);o||(o=new Set,Br.set(a.target,o),a.target.addEventListener("transitioncancel",t)),o.add(a.propertyName)},t=a=>{if(!a.target)return;let o=Br.get(a.target);if(o&&(o.delete(a.propertyName),o.size===0&&(a.target.removeEventListener("transitioncancel",t),Br.delete(a.target)),Br.size===0)){for(let r of Cd)r();Cd.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function gl(e,t){let a=wd(e,t,"left"),o=wd(e,t,"top"),r=t.offsetWidth,n=t.offsetHeight,s=e.scrollLeft,i=e.scrollTop,l=s+e.offsetWidth,u=i+e.offsetHeight;a<=s?s=a:a+r>l&&(s+=a+r-l),o<=i?i=o:o+n>u&&(i+=o+n-u),e.scrollLeft=s,e.scrollTop=i}function wd(e,t,a){let o=a==="left"?"offsetLeft":"offsetTop",r=0;for(;t.offsetParent&&(r+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[o];break}t=t.offsetParent}return r}function G0(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let r=vd(e);for(;e&&r&&e!==a&&r!==a;)gl(r,e),e=r,r=vd(e)}else{let{left:r,top:n}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:s,top:i}=e.getBoundingClientRect();(Math.abs(r-s)>1||Math.abs(n-i)>1)&&e.scrollIntoView?.({block:"nearest"})}}}function Pt(e){return t=>(e(t),()=>e(void 0))}function ns(e,t){let[a,o]=N(Ld(t?.()));return Q(()=>{o(e()?.tagName.toLowerCase()||Ld(t?.()))}),a}function Ld(e){return qo(e)?e:void 0}function De(e){let[t,a]=ye(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return v(Nu,ae(a,{get component(){return t.as}}))}function W0(e){let t=`form-control-${xt()}`,a=ge({id:t},e),[o,r]=N(),[n,s]=N(),[i,l]=N(),[u,d]=N(),c=(g,h,x)=>{let y=x!=null||o()!=null;return[x,o(),y&&h!=null?g:void 0].filter(Boolean).join(" ")||void 0},p=g=>[i(),u(),g].filter(Boolean).join(" ")||void 0,f=k(()=>({"data-valid":R(a.validationState)==="valid"?"":void 0,"data-invalid":R(a.validationState)==="invalid"?"":void 0,"data-required":R(a.required)?"":void 0,"data-disabled":R(a.disabled)?"":void 0,"data-readonly":R(a.readOnly)?"":void 0}));return{formControlContext:{name:()=>R(a.name)??R(a.id),dataset:f,validationState:()=>R(a.validationState),isRequired:()=>R(a.required),isDisabled:()=>R(a.disabled),isReadOnly:()=>R(a.readOnly),labelId:o,fieldId:n,descriptionId:i,errorMessageId:u,getAriaLabelledBy:c,getAriaDescribedBy:p,generateId:Qr(()=>R(a.id)),registerLabel:Pt(r),registerField:Pt(s),registerDescription:Pt(l),registerErrorMessage:Pt(d)}}}function jr(){let e=Ue(mc);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function gc(e){let t=jr(),a=ge({id:t.generateId("description")},e);return Q(()=>Z(t.registerDescription(a.id))),v(De,ae({as:"div"},()=>t.dataset(),a))}function hc(e){let t=jr(),a=ge({id:t.generateId("error-message")},e),[o,r]=ye(a,["forceMount"]),n=()=>t.validationState()==="invalid";return Q(()=>{n()&&Z(t.registerErrorMessage(r.id))}),v(j,{get when(){return o.forceMount||n()},get children(){return v(De,ae({as:"div"},()=>t.dataset(),r))}})}function Q0(e){let t,a=jr(),o=ge({id:a.generateId("label")},e),[r,n]=ye(o,["ref"]),s=ns(()=>t,()=>"label");return Q(()=>Z(a.registerLabel(n.id))),v(De,ae({as:"label",ref(i){let l=ut(u=>t=u,r.ref);typeof l=="function"&&l(i)},get for(){return k(()=>s()==="label")()?a.fieldId():void 0}},()=>a.dataset(),n))}function j0(e,t){Q(Zt(e,a=>{if(a==null)return;let o=X0(a);o!=null&&(o.addEventListener("reset",t,{passive:!0}),Z(()=>{o.removeEventListener("reset",t)}))}))}function X0(e){return Z0(e)?e.form:e.closest("form")}function Z0(e){return e.matches("textarea, input, select, button")}function Xr(e){let[t,a]=N(e.defaultValue?.()),o=k(()=>e.value?.()!==void 0),r=k(()=>o()?e.value?.():t());return[r,s=>{Ie(()=>{let i=_h(s,r());return Object.is(i,r())||(o()||a(i),e.onChange?.(i)),i})}]}function xc(e){let[t,a]=Xr(e);return[()=>t()??!1,a]}function J0(e){let[t,a]=Xr(e);return[()=>t()??[],a]}function Y0(e={}){let[t,a]=xc({value:()=>R(e.isSelected),defaultValue:()=>!!R(e.defaultIsSelected),onChange:n=>e.onSelectedChange?.(n)});return{isSelected:t,setIsSelected:n=>{!R(e.isReadOnly)&&!R(e.isDisabled)&&a(n)},toggle:()=>{!R(e.isReadOnly)&&!R(e.isDisabled)&&a(!t())}}}function vc(){return Ue(yc)}function tx(){let e=vc();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function Cc(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function ax(e,t){let a=t.ref();if(!a)return-1;let o=e.length;if(!o)return-1;for(;o--;){let r=e[o]?.ref();if(r&&Cc(r,a))return o+1}return 0}function ox(e){let t=e.map((o,r)=>[r,o]),a=!1;return t.sort(([o,r],[n,s])=>{let i=r.ref(),l=s.ref();return i===l||!i||!l?0:Cc(i,l)?(o>n&&(a=!0),-1):(o<n&&(a=!0),1)}),a?t.map(([o,r])=>r):e}function bc(e,t){let a=ox(e);e!==a&&t(a)}function rx(e){let t=e[0],a=e[e.length-1]?.ref(),o=t?.ref()?.parentElement;for(;o;){if(a&&o.contains(a))return o;o=o.parentElement}return Yt(o).body}function nx(e,t){Q(()=>{let a=setTimeout(()=>{bc(e(),t)});Z(()=>clearTimeout(a))})}function sx(e,t){if(typeof IntersectionObserver!="function"){nx(e,t);return}let a=[];Q(()=>{let o=()=>{let s=!!a.length;a=e(),s&&bc(e(),t)},r=rx(e()),n=new IntersectionObserver(o,{root:r});for(let s of e()){let i=s.ref();i&&n.observe(i)}Z(()=>n.disconnect())})}function lx(e={}){let[t,a]=J0({value:()=>R(e.items),onChange:n=>e.onItemsChange?.(n)});sx(t,a);let o=n=>(a(s=>{let i=ax(s,n);return S0(s,n,i)}),()=>{a(s=>{let i=s.filter(l=>l.ref()!==n.ref());return s.length===i.length?s:i})});return{DomCollectionProvider:n=>v(yc.Provider,{value:{registerItem:o},get children(){return n.children}})}}function ix(e){let t=tx(),a=ge({shouldRegisterItem:!0},e);Q(()=>{if(!a.shouldRegisterItem)return;let o=t.registerItem(a.getItem());Z(o)})}function wc(e){let t=e.startIndex??0,a=e.startLevel??0,o=[],r=l=>{if(l==null)return"";let u=e.getKey??"key",d=qo(u)?l[u]:u(l);return d!=null?String(d):""},n=l=>{if(l==null)return"";let u=e.getTextValue??"textValue",d=qo(u)?l[u]:u(l);return d!=null?String(d):""},s=l=>{if(l==null)return!1;let u=e.getDisabled??"disabled";return(qo(u)?l[u]:u(l))??!1},i=l=>{if(l!=null)return qo(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(qo(l)||I0(l)){o.push({type:"item",rawValue:l,key:String(l),textValue:String(l),disabled:s(l),level:a,index:t}),t++;continue}if(i(l)!=null){o.push({type:"section",rawValue:l,key:"",textValue:"",disabled:!1,level:a,index:t}),t++;let u=i(l)??[];if(u.length>0){let d=wc({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:a+1});o.push(...d),t+=d.length}}else o.push({type:"item",rawValue:l,key:r(l),textValue:n(l),disabled:s(l),level:a,index:t}),t++}return o}function ux(e,t=[]){return k(()=>{let a=wc({dataSource:R(e.dataSource),getKey:R(e.getKey),getTextValue:R(e.getTextValue),getDisabled:R(e.getDisabled),getSectionChildren:R(e.getSectionChildren)});for(let o=0;o<t.length;o++)t[o]();return e.factory(a)})}function fx(e){if(Intl.Locale){let a=new Intl.Locale(e).maximize().script??"";return dx.has(a)}let t=e.split("-")[0];return cx.has(t)}function px(e){return fx(e)?"rtl":"ltr"}function Lc(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:px(e)}}function Sd(){hl=Lc();for(let e of zr)e(hl)}function mx(){let e={locale:"en-US",direction:"ltr"},[t,a]=N(hl),o=k(()=>at?e:t());return ha(()=>{zr.size===0&&window.addEventListener("languagechange",Sd),zr.add(a),Z(()=>{zr.delete(a),zr.size===0&&window.removeEventListener("languagechange",Sd)})}),{locale:()=>o().locale,direction:()=>o().direction}}function Wa(){let e=mx();return Ue(gx)||e}function hx(e){let{locale:t}=Wa(),a=k(()=>t()+(e?Object.entries(e).sort((o,r)=>o[0]<r[0]?-1:1).join():""));return k(()=>{let o=a(),r;return ll.has(o)&&(r=ll.get(o)),r||(r=new Intl.Collator(t(),e),ll.set(o,r)),r})}function xx(e){let[t,a]=Xr(e);return[()=>t()??new ya,a]}function Ic(e){return T0()?e.altKey:e.ctrlKey}function No(e){return rs()?e.metaKey:e.ctrlKey}function Id(e){return new ya(e)}function yx(e,t){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function vx(e){let t=ge({selectionMode:"none",selectionBehavior:"toggle"},e),[a,o]=N(!1),[r,n]=N(),s=k(()=>{let g=R(t.selectedKeys);return g!=null?Id(g):g}),i=k(()=>{let g=R(t.defaultSelectedKeys);return g!=null?Id(g):new ya}),[l,u]=xx({value:s,defaultValue:i,onChange:g=>t.onSelectionChange?.(g)}),[d,c]=N(R(t.selectionBehavior)),p=()=>R(t.selectionMode),f=()=>R(t.disallowEmptySelection)??!1,m=g=>{(R(t.allowDuplicateSelectionEvents)||!yx(g,l()))&&u(g)};return Q(()=>{let g=l();R(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof g=="object"&&g.size===0&&c("replace")}),Q(()=>{c(R(t.selectionBehavior)??"toggle")}),{selectionMode:p,disallowEmptySelection:f,selectionBehavior:d,setSelectionBehavior:c,isFocused:a,setFocused:o,focusedKey:r,setFocusedKey:n,selectedKeys:l,setSelectedKeys:m}}function Cx(e){let[t,a]=N(""),[o,r]=N(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(R(e.isDisabled))return;let i=R(e.keyboardDelegate),l=R(e.selectionManager);if(!i.getKeyForSearch)return;let u=bx(s.key);if(!u||s.ctrlKey||s.metaKey)return;u===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let d=a(p=>p+u),c=i.getKeyForSearch(d,l.focusedKey())??i.getKeyForSearch(d);c==null&&wx(d)&&(d=d[0],c=i.getKeyForSearch(d,l.focusedKey())??i.getKeyForSearch(d)),c!=null&&(l.setFocusedKey(c),e.onTypeSelect?.(c)),clearTimeout(o()),r(window.setTimeout(()=>a(""),500))}}}}function bx(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function wx(e){return e.split("").every(t=>t===e[0])}function Lx(e,t,a){let r=ae({selectOnFocus:()=>R(e.selectionManager).selectionBehavior()==="replace"},e),n=()=>t(),{direction:s}=Wa(),i={top:0,left:0};b0(()=>R(r.isVirtualized)?void 0:n(),"scroll",()=>{let h=n();h&&(i={top:h.scrollTop,left:h.scrollLeft})});let{typeSelectHandlers:l}=Cx({isDisabled:()=>R(r.disallowTypeAhead),keyboardDelegate:()=>R(r.keyboardDelegate),selectionManager:()=>R(r.selectionManager)}),u=()=>R(r.orientation)??"vertical",d=h=>{Te(h,l.onKeyDown),h.altKey&&h.key==="Tab"&&h.preventDefault();let x=t();if(!x?.contains(h.target))return;let y=R(r.selectionManager),C=R(r.selectOnFocus),w=T=>{T!=null&&(y.setFocusedKey(T),h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(T):C&&!Ic(h)&&y.replaceSelection(T))},L=R(r.keyboardDelegate),E=R(r.shouldFocusWrap),D=y.focusedKey();switch(h.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(L.getKeyBelow){h.preventDefault();let T;D!=null?T=L.getKeyBelow(D):T=L.getFirstKey?.(),T==null&&E&&(T=L.getFirstKey?.(D)),w(T)}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(L.getKeyAbove){h.preventDefault();let T;D!=null?T=L.getKeyAbove(D):T=L.getLastKey?.(),T==null&&E&&(T=L.getLastKey?.(D)),w(T)}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(L.getKeyLeftOf){h.preventDefault();let T=s()==="rtl",S;D!=null?S=L.getKeyLeftOf(D):S=T?L.getFirstKey?.():L.getLastKey?.(),w(S)}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(L.getKeyRightOf){h.preventDefault();let T=s()==="rtl",S;D!=null?S=L.getKeyRightOf(D):S=T?L.getLastKey?.():L.getFirstKey?.(),w(S)}break}case"Home":if(L.getFirstKey){h.preventDefault();let T=L.getFirstKey(D,No(h));T!=null&&(y.setFocusedKey(T),No(h)&&h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(T):C&&y.replaceSelection(T))}break;case"End":if(L.getLastKey){h.preventDefault();let T=L.getLastKey(D,No(h));T!=null&&(y.setFocusedKey(T),No(h)&&h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(T):C&&y.replaceSelection(T))}break;case"PageDown":if(L.getKeyPageBelow&&D!=null){h.preventDefault();let T=L.getKeyPageBelow(D);w(T)}break;case"PageUp":if(L.getKeyPageAbove&&D!=null){h.preventDefault();let T=L.getKeyPageAbove(D);w(T)}break;case"a":No(h)&&y.selectionMode()==="multiple"&&R(r.disallowSelectAll)!==!0&&(h.preventDefault(),y.selectAll());break;case"Escape":h.defaultPrevented||(h.preventDefault(),R(r.disallowEmptySelection)||y.clearSelection());break;case"Tab":if(!R(r.allowsTabNavigation)){if(h.shiftKey)x.focus();else{let T=U0(x,{tabbable:!0}),S,I;do I=T.lastChild(),I&&(S=I);while(I);S&&!S.contains(document.activeElement)&&rt(S)}break}}},c=h=>{let x=R(r.selectionManager),y=R(r.keyboardDelegate),C=R(r.selectOnFocus);if(x.isFocused()){h.currentTarget.contains(h.target)||x.setFocused(!1);return}if(h.currentTarget.contains(h.target)){if(x.setFocused(!0),x.focusedKey()==null){let w=E=>{E!=null&&(x.setFocusedKey(E),C&&x.replaceSelection(E))},L=h.relatedTarget;L&&h.currentTarget.compareDocumentPosition(L)&Node.DOCUMENT_POSITION_FOLLOWING?w(x.lastSelectedKey()??y.getLastKey?.()):w(x.firstSelectedKey()??y.getFirstKey?.())}else if(!R(r.isVirtualized)){let w=n();if(w){w.scrollTop=i.top,w.scrollLeft=i.left;let L=w.querySelector(`[data-key="${x.focusedKey()}"]`);L&&(rt(L),gl(w,L))}}}},p=h=>{let x=R(r.selectionManager);h.currentTarget.contains(h.relatedTarget)||x.setFocused(!1)},f=h=>{n()===h.target&&h.preventDefault()},m=()=>{let h=R(r.autoFocus);if(!h)return;let x=R(r.selectionManager),y=R(r.keyboardDelegate),C;h==="first"&&(C=y.getFirstKey?.()),h==="last"&&(C=y.getLastKey?.());let w=x.selectedKeys();w.size&&(C=w.values().next().value),x.setFocused(!0),x.setFocusedKey(C);let L=t();L&&C==null&&!R(r.shouldUseVirtualFocus)&&rt(L)};return ha(()=>{r.deferAutoFocus?setTimeout(m,0):m()}),Q(Zt([n,()=>R(r.isVirtualized),()=>R(r.selectionManager).focusedKey()],h=>{let[x,y,C]=h;if(y)C&&r.scrollToKey?.(C);else if(C&&x){let w=x.querySelector(`[data-key="${C}"]`);w&&gl(x,w)}})),{tabIndex:k(()=>{if(!R(r.shouldUseVirtualFocus))return R(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:f,onFocusIn:c,onFocusOut:p}}function kc(e,t){let a=()=>R(e.selectionManager),o=()=>R(e.key),r=()=>R(e.shouldUseVirtualFocus),n=y=>{a().selectionMode()!=="none"&&(a().selectionMode()==="single"?a().isSelected(o())&&!a().disallowEmptySelection()?a().toggleSelection(o()):a().replaceSelection(o()):y?.shiftKey?a().extendSelection(o()):a().selectionBehavior()==="toggle"||No(y)||"pointerType"in y&&y.pointerType==="touch"?a().toggleSelection(o()):a().replaceSelection(o()))},s=()=>a().isSelected(o()),i=()=>R(e.disabled)||a().isDisabled(o()),l=()=>!i()&&a().canSelectItem(o()),u=null,d=y=>{l()&&(u=y.pointerType,y.pointerType==="mouse"&&y.button===0&&!R(e.shouldSelectOnPressUp)&&n(y))},c=y=>{l()&&y.pointerType==="mouse"&&y.button===0&&R(e.shouldSelectOnPressUp)&&R(e.allowsDifferentPressOrigin)&&n(y)},p=y=>{l()&&(R(e.shouldSelectOnPressUp)&&!R(e.allowsDifferentPressOrigin)||u!=="mouse")&&n(y)},f=y=>{!l()||!["Enter"," "].includes(y.key)||(Ic(y)?a().toggleSelection(o()):n(y))},m=y=>{i()&&y.preventDefault()},g=y=>{let C=t();r()||i()||!C||y.target===C&&a().setFocusedKey(o())},h=k(()=>{if(!(r()||i()))return o()===a().focusedKey()?0:-1}),x=k(()=>R(e.virtualized)?void 0:o());return Q(Zt([t,o,r,()=>a().focusedKey(),()=>a().isFocused()],([y,C,w,L,E])=>{y&&C===L&&E&&!w&&document.activeElement!==y&&(e.focus?e.focus():rt(y))})),{isSelected:s,isDisabled:i,allowsSelection:l,tabIndex:h,dataKey:x,onPointerDown:d,onPointerUp:c,onClick:p,onKeyDown:f,onMouseDown:m,onFocus:g}}function Ix(e){let t=vx(e),o=ux({dataSource:()=>R(e.dataSource),getKey:()=>R(e.getKey),getTextValue:()=>R(e.getTextValue),getDisabled:()=>R(e.getDisabled),getSectionChildren:()=>R(e.getSectionChildren),factory:n=>e.filter?new kd(e.filter(n)):new kd(n)},[()=>e.filter]),r=new Sx(o,t);return Dn(()=>{let n=t.focusedKey();n!=null&&!o().getItem(n)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>r}}function Hr(e){return Ca.findIndex(t=>t.node===e)}function Mx(e){return Ca[Hr(e)]}function Ax(e){return Ca[Ca.length-1].node===e}function Ac(){return Ca.filter(e=>e.isPointerBlocking)}function Rx(){return[...Ac()].slice(-1)[0]}function Ml(){return Ac().length>0}function Rc(e){let t=Hr(Rx()?.node);return Hr(e)<t}function Tx(e){Ca.push(e)}function Dx(e){let t=Hr(e);t<0||Ca.splice(t,1)}function Ex(){for(let{node:e}of Ca)e.style.pointerEvents=Rc(e)?"none":"auto"}function Fx(e){if(Ml()&&!xl){let t=Yt(e);Mc=document.body.style.pointerEvents,t.body.style.pointerEvents="none",xl=!0}}function Ox(e){if(Ml())return;let t=Yt(e);t.body.style.pointerEvents=Mc,t.body.style.length===0&&t.body.removeAttribute("style"),xl=!1}function qx(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?$x.indexOf(e.type)!==-1:!1}function Al(e){let t,a=ge({type:"button"},e),[o,r]=ye(a,["ref","type","disabled"]),n=ns(()=>t,()=>"button"),s=k(()=>{let u=n();return u==null?!1:qx({tagName:u,type:o.type})}),i=k(()=>n()==="input"),l=k(()=>n()==="a"&&t?.getAttribute("href")!=null);return v(De,ae({as:"button",ref(u){let d=ut(c=>t=c,o.ref);typeof d=="function"&&d(u)},get type(){return s()||i()?o.type:void 0},get role(){return!s()&&!l()?"button":void 0},get tabIndex(){return!s()&&!l()&&!o.disabled?0:void 0},get disabled(){return s()||i()?o.disabled:void 0},get"aria-disabled"(){return!s()&&!i()&&o.disabled?!0:void 0},get"data-disabled"(){return o.disabled?"":void 0}},r))}function yl(e,t,a){return Ct(e,Jt(t,a))}function yo(e,t){return typeof e=="function"?e(t):e}function Ga(e){return e.split("-")[0]}function Ho(e){return e.split("-")[1]}function Tc(e){return e==="x"?"y":"x"}function Rl(e){return e==="y"?"height":"width"}function ho(e){return["top","bottom"].includes(Ga(e))?"y":"x"}function Tl(e){return Tc(ho(e))}function _x(e,t,a){a===void 0&&(a=!1);let o=Ho(e),r=Tl(e),n=Rl(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=Xn(s)),[s,Xn(s)]}function Vx(e){let t=Xn(e);return[vl(e),t,vl(t)]}function vl(e){return e.replace(/start|end/g,t=>Hx[t])}function Gx(e,t,a){let o=["left","right"],r=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return a?t?r:o:t?o:r;case"left":case"right":return t?n:s;default:return[]}}function Kx(e,t,a,o){let r=Ho(e),n=Gx(Ga(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(vl)))),n}function Xn(e){return e.replace(/left|right|bottom|top/g,t=>Ux[t])}function Wx(e){return{top:0,right:0,bottom:0,left:0,...e}}function Dc(e){return typeof e!="number"?Wx(e):{top:e,right:e,bottom:e,left:e}}function Zn(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function Pd(e,t,a){let{reference:o,floating:r}=e,n=ho(t),s=Tl(t),i=Rl(s),l=Ga(t),u=n==="y",d=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,p=o[i]/2-r[i]/2,f;switch(l){case"top":f={x:d,y:o.y-r.height};break;case"bottom":f={x:d,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:c};break;case"left":f={x:o.x-r.width,y:c};break;default:f={x:o.x,y:o.y}}switch(Ho(t)){case"start":f[s]-=p*(a&&u?-1:1);break;case"end":f[s]+=p*(a&&u?-1:1);break}return f}async function _r(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:n,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:p=!1,padding:f=0}=yo(t,e),m=Dc(f),h=i[p?c==="floating"?"reference":"floating":c],x=Zn(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(h)))==null||a?h:h.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:l})),y=c==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,C=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),w=await(n.isElement==null?void 0:n.isElement(C))?await(n.getScale==null?void 0:n.getScale(C))||{x:1,y:1}:{x:1,y:1},L=Zn(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:C,strategy:l}):y);return{top:(x.top-L.top+m.top)/w.y,bottom:(L.bottom-x.bottom+m.bottom)/w.y,left:(x.left-L.left+m.left)/w.x,right:(L.right-x.right+m.right)/w.x}}function Md(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ad(e){return zx.some(t=>e[t]>=0)}async function Jx(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Ga(a),i=Ho(a),l=ho(a)==="y",u=["left","top"].includes(s)?-1:1,d=n&&l?-1:1,c=yo(t,e),{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return i&&typeof m=="number"&&(f=i==="end"?m*-1:m),l?{x:f*d,y:p*u}:{x:p*u,y:f*d}}function _o(e){return Ec(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ba(e){var t;return(t=(Ec(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ec(e){return e instanceof Node||e instanceof bt(e).Node}function zt(e){return e instanceof Element||e instanceof bt(e).Element}function ea(e){return e instanceof HTMLElement||e instanceof bt(e).HTMLElement}function Rd(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function Zr(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=Ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&!["inline","contents"].includes(r)}function a1(e){return["table","td","th"].includes(_o(e))}function ls(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Dl(e){let t=El(),a=zt(e)?Ut(e):e;return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(a.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(a.contain||"").includes(o))}function o1(e){let t=Ka(e);for(;ea(t)&&!Uo(t);){if(Dl(t))return t;if(ls(t))return null;t=Ka(t)}return null}function El(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Uo(e){return["html","body","#document"].includes(_o(e))}function Ut(e){return bt(e).getComputedStyle(e)}function is(e){return zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ka(e){if(_o(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Rd(e)&&e.host||ba(e);return Rd(t)?t.host:t}function Fc(e){let t=Ka(e);return Uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:ea(t)&&Zr(t)?t:Fc(t)}function Vr(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=Fc(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=bt(r);return n?t.concat(s,s.visualViewport||[],Zr(r)?r:[],s.frameElement&&a?Vr(s.frameElement):[]):t.concat(r,Vr(r,[],a))}function Oc(e){let t=Ut(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=ea(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=jn(a)!==n||jn(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function Fl(e){return zt(e)?e:e.contextElement}function zo(e){let t=Fl(e);if(!ea(t))return Va(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=Oc(t),s=(n?jn(a.width):a.width)/o,i=(n?jn(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}function Bc(e){let t=bt(e);return!El()||!t.visualViewport?r1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function n1(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==bt(e)?!1:t}function xo(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=Fl(e),s=Va(1);t&&(o?zt(o)&&(s=zo(o)):s=zo(e));let i=n1(n,a,o)?Bc(n):Va(0),l=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,d=r.width/s.x,c=r.height/s.y;if(n){let p=bt(n),f=o&&zt(o)?bt(o):o,m=p,g=m.frameElement;for(;g&&o&&f!==m;){let h=zo(g),x=g.getBoundingClientRect(),y=Ut(g),C=x.left+(g.clientLeft+parseFloat(y.paddingLeft))*h.x,w=x.top+(g.clientTop+parseFloat(y.paddingTop))*h.y;l*=h.x,u*=h.y,d*=h.x,c*=h.y,l+=C,u+=w,m=bt(g),g=m.frameElement}}return Zn({width:d,height:c,x:l,y:u})}function s1(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=ba(o),i=t?ls(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=Va(1),d=Va(0),c=ea(o);if((c||!c&&!n)&&((_o(o)!=="body"||Zr(s))&&(l=is(o)),ea(o))){let p=xo(o);u=zo(o),d.x=p.x+o.clientLeft,d.y=p.y+o.clientTop}return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+d.x,y:a.y*u.y-l.scrollTop*u.y+d.y}}function l1(e){return Array.from(e.getClientRects())}function $c(e){return xo(ba(e)).left+is(e).scrollLeft}function i1(e){let t=ba(e),a=is(e),o=e.ownerDocument.body,r=Ct(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=Ct(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-a.scrollLeft+$c(e),i=-a.scrollTop;return Ut(o).direction==="rtl"&&(s+=Ct(t.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:i}}function u1(e,t){let a=bt(e),o=ba(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){n=r.width,s=r.height;let u=El();(!u||u&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:i,y:l}}function d1(e,t){let a=xo(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=ea(e)?zo(e):Va(1),s=e.clientWidth*n.x,i=e.clientHeight*n.y,l=r*n.x,u=o*n.y;return{width:s,height:i,x:l,y:u}}function Td(e,t,a){let o;if(t==="viewport")o=u1(e,a);else if(t==="document")o=i1(ba(e));else if(zt(t))o=d1(t,a);else{let r=Bc(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Zn(o)}function qc(e,t){let a=Ka(e);return a===t||!zt(a)||Uo(a)?!1:Ut(a).position==="fixed"||qc(a,t)}function c1(e,t){let a=t.get(e);if(a)return a;let o=Vr(e,[],!1).filter(i=>zt(i)&&_o(i)!=="body"),r=null,n=Ut(e).position==="fixed",s=n?Ka(e):e;for(;zt(s)&&!Uo(s);){let i=Ut(s),l=Dl(s);!l&&i.position==="fixed"&&(r=null),(n?!l&&!r:!l&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Zr(s)&&!l&&qc(e,s))?o=o.filter(d=>d!==s):r=i,s=Ka(s)}return t.set(e,o),o}function f1(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?ls(t)?[]:c1(t,this._c):[].concat(a),o],i=s[0],l=s.reduce((u,d)=>{let c=Td(t,d,r);return u.top=Ct(c.top,u.top),u.right=Jt(c.right,u.right),u.bottom=Jt(c.bottom,u.bottom),u.left=Ct(c.left,u.left),u},Td(t,i,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function p1(e){let{width:t,height:a}=Oc(e);return{width:t,height:a}}function m1(e,t,a){let o=ea(t),r=ba(t),n=a==="fixed",s=xo(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=Va(0);if(o||!o&&!n)if((_o(t)!=="body"||Zr(r))&&(i=is(t)),o){let c=xo(t,!0,n,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else r&&(l.x=$c(r));let u=s.left+i.scrollLeft-l.x,d=s.top+i.scrollTop-l.y;return{x:u,y:d,width:s.width,height:s.height}}function il(e){return Ut(e).position==="static"}function Dd(e,t){return!ea(e)||Ut(e).position==="fixed"?null:t?t(e):e.offsetParent}function Nc(e,t){let a=bt(e);if(ls(e))return a;if(!ea(e)){let r=Ka(e);for(;r&&!Uo(r);){if(zt(r)&&!il(r))return r;r=Ka(r)}return a}let o=Dd(e,t);for(;o&&a1(o)&&il(o);)o=Dd(o,t);return o&&Uo(o)&&il(o)&&!Dl(o)?a:o||o1(e)||a}function h1(e){return Ut(e).direction==="rtl"}function x1(e,t){let a=null,o,r=ba(e);function n(){var i;clearTimeout(o),(i=a)==null||i.disconnect(),a=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),n();let{left:u,top:d,width:c,height:p}=e.getBoundingClientRect();if(i||t(),!c||!p)return;let f=Gn(d),m=Gn(r.clientWidth-(u+c)),g=Gn(r.clientHeight-(d+p)),h=Gn(u),y={rootMargin:-f+"px "+-m+"px "+-g+"px "+-h+"px",threshold:Ct(0,Jt(1,l))||1},C=!0;function w(L){let E=L[0].intersectionRatio;if(E!==l){if(!C)return s();E?s(!1,E):o=setTimeout(()=>{s(!1,1e-7)},1e3)}C=!1}try{a=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch{a=new IntersectionObserver(w,y)}a.observe(e)}return s(!0),n}function y1(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Fl(e),d=r||n?[...u?Vr(u):[],...Vr(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",a,{passive:!0}),n&&x.addEventListener("resize",a)});let c=u&&i?x1(u,a):null,p=-1,f=null;s&&(f=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=f)==null||C.observe(t)})),a()}),u&&!l&&f.observe(u),f.observe(t));let m,g=l?xo(e):null;l&&h();function h(){let x=xo(e);g&&(x.x!==g.x||x.y!==g.y||x.width!==g.width||x.height!==g.height)&&a(),g=x,m=requestAnimationFrame(h)}return a(),()=>{var x;d.forEach(y=>{r&&y.removeEventListener("scroll",a),n&&y.removeEventListener("resize",a)}),c?.(),(x=f)==null||x.disconnect(),f=null,l&&cancelAnimationFrame(m)}}function Bl(){let e=Ue(Ol);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function $l(e){let t=Bl(),a=ge({size:Cl},e),[o,r]=ye(a,["ref","style","size"]),n=()=>t.currentPlacement().split("-")[0],s=M1(t.contentRef),i=()=>s()?.getPropertyValue("background-color")||"none",l=()=>s()?.getPropertyValue(`border-${n()}-color`)||"none",u=()=>s()?.getPropertyValue(`border-${n()}-width`)||"0px",d=()=>Number.parseInt(u())*2*(Cl/o.size),c=()=>`rotate(${P1[n()]} ${Ed} ${Ed}) translate(0 2)`;return v(De,ae({as:"div",ref(p){let f=ut(t.setArrowRef,o.ref);typeof f=="function"&&f(p)},"aria-hidden":"true",get style(){return os({position:"absolute","font-size":`${o.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:i(),stroke:l(),"stroke-width":d()},o.style)}},r,{get children(){let p=k1(),f=p.firstChild;return W(()=>O(f,"transform",c())),p}}))}function M1(e){let[t,a]=N();return Q(()=>{let o=e();o&&a(P0(o).getComputedStyle(o))}),t}function A1(e){let t=Bl(),[a,o]=ye(e,["ref","style"]);return v(De,ae({as:"div",ref(r){let n=ut(t.setPositionerRef,a.ref);typeof n=="function"&&n(r)},"data-popper-positioner":"",get style(){return os({position:"absolute",top:0,left:0,"min-width":"max-content"},a.style)}},o))}function Fd(e){let{x:t=0,y:a=0,width:o=0,height:r=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,a,o,r);let n={x:t,y:a,width:o,height:r,top:a,right:t+o,bottom:a+r,left:t};return{...n,toJSON:()=>n}}function R1(e,t){return{contextElement:e,getBoundingClientRect:()=>{let o=t(e);return o?Fd(o):e?e.getBoundingClientRect():Fd()}}}function T1(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function E1(e,t){let[a,o]=e.split("-"),r=D1[a];return o?a==="left"||a==="right"?`${r} ${o==="start"?"top":"bottom"}`:o==="start"?`${r} ${t==="rtl"?"right":"left"}`:`${r} ${t==="rtl"?"left":"right"}`:`${r} center`}function F1(e){let t=ge({getAnchorRect:p=>p?.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),[a,o]=N(),[r,n]=N(),[s,i]=N(t.placement),l=()=>R1(t.anchorRef?.(),t.getAnchorRect),{direction:u}=Wa();async function d(){let p=l(),f=a(),m=r();if(!p||!f)return;let g=(m?.clientHeight||0)/2,h=typeof t.gutter=="number"?t.gutter+g:t.gutter??g;f.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),p.getBoundingClientRect();let x=[v1(({placement:E})=>{let D=!!E.split("-")[1];return{mainAxis:h,crossAxis:D?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let E=typeof t.flip=="string"?t.flip.split(" "):void 0;if(E!==void 0&&!E.every(T1))throw new Error("`flip` expects a spaced-delimited list of placements");x.push(b1({padding:t.overflowPadding,fallbackPlacements:E}))}(t.slide||t.overlap)&&x.push(C1({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),x.push(w1({padding:t.overflowPadding,apply({availableWidth:E,availableHeight:D,rects:T}){let S=Math.round(T.reference.width);E=Math.floor(E),D=Math.floor(D),f.style.setProperty("--kb-popper-anchor-width",`${S}px`),f.style.setProperty("--kb-popper-content-available-width",`${E}px`),f.style.setProperty("--kb-popper-content-available-height",`${D}px`),t.sameWidth&&(f.style.width=`${S}px`),t.fitViewport&&(f.style.maxWidth=`${E}px`,f.style.maxHeight=`${D}px`)}})),t.hideWhenDetached&&x.push(L1({padding:t.detachedPadding})),m&&x.push(S1({element:m,padding:t.arrowPadding}));let y=await I1(p,f,{placement:t.placement,strategy:"absolute",middleware:x,platform:{...zc,isRTL:()=>u()==="rtl"}});if(i(y.placement),t.onCurrentPlacementChange?.(y.placement),!f)return;f.style.setProperty("--kb-popper-content-transform-origin",E1(y.placement,u()));let C=Math.round(y.x),w=Math.round(y.y),L;if(t.hideWhenDetached&&(L=y.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(f.style,{top:"0",left:"0",transform:`translate3d(${C}px, ${w}px, 0)`,visibility:L}),m&&y.middlewareData.arrow){let{x:E,y:D}=y.middlewareData.arrow,T=y.placement.split("-")[0];Object.assign(m.style,{left:E!=null?`${E}px`:"",top:D!=null?`${D}px`:"",[T]:"100%"})}}Q(()=>{let p=l(),f=a();if(!p||!f)return;let m=y1(p,f,d,{elementResize:typeof ResizeObserver=="function"});Z(m)}),Q(()=>{let p=a(),f=t.contentRef?.();!p||!f||queueMicrotask(()=>{p.style.zIndex=getComputedStyle(f).zIndex})});let c={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:o,setArrowRef:n};return v(Ol.Provider,{value:c,get children(){return t.children}})}function O1(e){let t=a=>{a.key===Sl.Escape&&e.onEscapeKeyDown?.(a)};Q(()=>{if(at||R(e.isDisabled))return;let a=e.ownerDocument?.()??Yt();a.addEventListener("keydown",t),Z(()=>{a.removeEventListener("keydown",t)})})}function B1(e,t){let a,o=_0,r=()=>Yt(t()),n=c=>e.onPointerDownOutside?.(c),s=c=>e.onFocusOutside?.(c),i=c=>e.onInteractOutside?.(c),l=c=>{let p=c.target;return!(p instanceof HTMLElement)||p.closest(`[${Qn}]`)||!kt(r(),p)||kt(t(),p)?!1:!e.shouldExcludeElement?.(p)},u=c=>{function p(){let f=t(),m=c.target;if(!f||!m||!l(c))return;let g=je([n,i]);m.addEventListener(Od,g,{once:!0});let h=new CustomEvent(Od,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:c.button===2||D0(c)&&c.button===0}});m.dispatchEvent(h)}c.pointerType==="touch"?(r().removeEventListener("click",p),o=p,r().addEventListener("click",p,{once:!0})):p()},d=c=>{let p=t(),f=c.target;if(!p||!f||!l(c))return;let m=je([s,i]);f.addEventListener(Bd,m,{once:!0});let g=new CustomEvent(Bd,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:!1}});f.dispatchEvent(g)};Q(()=>{at||R(e.isDisabled)||(a=window.setTimeout(()=>{r().addEventListener("pointerdown",u,!0)},0),r().addEventListener("focusin",d,!0),Z(()=>{window.clearTimeout(a),r().removeEventListener("click",o),r().removeEventListener("pointerdown",u,!0),r().removeEventListener("focusin",d,!0)}))})}function $1(){return Ue(Hc)}function q1(e){let t,a=$1(),[o,r]=ye(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),n=new Set([]),s=c=>{n.add(c);let p=a?.registerNestedLayer(c);return()=>{n.delete(c),p?.()}};B1({shouldExcludeElement:c=>t?o.excludedElements?.some(p=>kt(p(),c))||[...n].some(p=>kt(p,c)):!1,onPointerDownOutside:c=>{!t||yt.isBelowPointerBlockingLayer(t)||!o.bypassTopMostLayerCheck&&!yt.isTopMostLayer(t)||(o.onPointerDownOutside?.(c),o.onInteractOutside?.(c),c.defaultPrevented||o.onDismiss?.())},onFocusOutside:c=>{o.onFocusOutside?.(c),o.onInteractOutside?.(c),c.defaultPrevented||o.onDismiss?.()}},()=>t),O1({ownerDocument:()=>Yt(t),onEscapeKeyDown:c=>{!t||!yt.isTopMostLayer(t)||(o.onEscapeKeyDown?.(c),!c.defaultPrevented&&o.onDismiss&&(c.preventDefault(),o.onDismiss()))}}),ha(()=>{if(!t)return;yt.addLayer({node:t,isPointerBlocking:o.disableOutsidePointerEvents,dismiss:o.onDismiss});let c=a?.registerNestedLayer(t);yt.assignPointerEventToLayers(),yt.disableBodyPointerEvents(t),Z(()=>{t&&(yt.removeLayer(t),c?.(),yt.assignPointerEventToLayers(),yt.restoreBodyPointerEvents(t))})}),Q(Zt([()=>t,()=>o.disableOutsidePointerEvents],([c,p])=>{if(!c)return;let f=yt.find(c);f&&f.isPointerBlocking!==p&&(f.isPointerBlocking=p,yt.assignPointerEventToLayers()),p&&yt.disableBodyPointerEvents(c),Z(()=>{yt.restoreBodyPointerEvents(c)})},{defer:!0}));let d={registerNestedLayer:s};return v(Hc.Provider,{value:d,get children(){return v(De,ae({as:"div",ref(c){let p=ut(f=>t=f,o.ref);typeof p=="function"&&p(c)}},r))}})}function _c(e={}){let[t,a]=xc({value:()=>R(e.open),defaultValue:()=>!!R(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),o=()=>{a(!0)},r=()=>{a(!1)};return{isOpen:t,setIsOpen:a,open:o,close:r,toggle:()=>{t()?r():o()}}}function Gc(){let e=Ue(Vc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function Jr(){let e=Ue(Kc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function Wc(e){let t=jr(),a=Gc(),o=`${t.generateId("item")}-${xt()}`,r=ge({id:o},e),[n,s]=ye(r,["value","disabled","onPointerDown"]),[i,l]=N(),[u,d]=N(),[c,p]=N(),[f,m]=N(),[g,h]=N(!1),x=k(()=>a.isSelectedValue(n.value)),y=k(()=>n.disabled||t.isDisabled()||!1),C=E=>{Te(E,n.onPointerDown),g()&&E.preventDefault()},w=k(()=>({...t.dataset(),"data-disabled":y()?"":void 0,"data-checked":x()?"":void 0})),L={value:()=>n.value,dataset:w,isSelected:x,isDisabled:y,inputId:i,labelId:u,descriptionId:c,inputRef:f,select:()=>a.setSelectedValue(n.value),generateId:Qr(()=>s.id),registerInput:Pt(l),registerLabel:Pt(d),registerDescription:Pt(p),setIsFocused:h,setInputRef:m};return v(Kc.Provider,{value:L,get children(){return v(De,ae({as:"div",role:"group",onPointerDown:C},w,s))}})}function Qc(e){let t=Jr(),a=ge({id:t.generateId("control")},e),[o,r]=ye(a,["onClick","onKeyDown"]);return v(De,ae({as:"div",onClick:i=>{Te(i,o.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:i=>{Te(i,o.onKeyDown),i.key===Sl.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),r))}function jc(e){let t=Jr(),a=ge({id:t.generateId("description")},e);return Q(()=>Z(t.registerDescription(a.id))),v(De,ae({as:"div"},()=>t.dataset(),a))}function Xc(e){let t=Jr(),a=ge({id:t.generateId("indicator")},e),[o,r]=ye(a,["ref","forceMount"]),[n,s]=N(),{present:i}=Pc({show:()=>o.forceMount||t.isSelected(),element:()=>n()??null});return v(j,{get when(){return i()},get children(){return v(De,ae({as:"div",ref(l){let u=ut(s,o.ref);typeof u=="function"&&u(l)}},()=>t.dataset(),r))}})}function Zc(e){let t=jr(),a=Gc(),o=Jr(),r=ge({id:o.generateId("input")},e),[n,s]=ye(r,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),i=()=>[n["aria-labelledby"],o.labelId(),n["aria-labelledby"]!=null&&s["aria-label"]!=null?s.id:void 0].filter(Boolean).join(" ")||void 0,l=()=>[n["aria-describedby"],o.descriptionId(),a.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[u,d]=N(!1),c=m=>{if(Te(m,n.onChange),m.stopPropagation(),!u()){a.setSelectedValue(o.value());let g=m.target;g.checked=o.isSelected()}d(!1)},p=m=>{Te(m,n.onFocus),o.setIsFocused(!0)},f=m=>{Te(m,n.onBlur),o.setIsFocused(!1)};return Q(Zt([()=>o.isSelected(),()=>o.value()],m=>{if(!m[0]&&m[1]===o.value())return;d(!0);let g=o.inputRef();g?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),g?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},{defer:!0})),Q(()=>Z(o.registerInput(s.id))),v(De,ae({as:"input",ref(m){let g=ut(o.setInputRef,n.ref);typeof g=="function"&&g(m)},type:"radio",get name(){return t.name()},get value(){return o.value()},get checked(){return o.isSelected()},get required(){return t.isRequired()},get disabled(){return o.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return os({...pc},n.style)},get"aria-labelledby"(){return i()},get"aria-describedby"(){return l()},onChange:c,onFocus:p,onBlur:f},()=>o.dataset(),s))}function Jc(e){let t=Jr(),a=ge({id:t.generateId("label")},e);return Q(()=>Z(t.registerLabel(a.id))),v(De,ae({as:"label",get for(){return t.inputId()}},()=>t.dataset(),a))}function Yc(e){return v(Q0,ae({as:"span"},e))}function ef(e){let t,a=`radiogroup-${xt()}`,o=ge({id:a,orientation:"vertical"},e),[r,n,s]=ye(o,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],K0),[i,l]=Xr({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:m=>r.onChange?.(m)}),{formControlContext:u}=W0(n);j0(()=>t,()=>l(r.defaultValue??""));let d=()=>u.getAriaLabelledBy(R(n.id),s["aria-label"],r["aria-labelledby"]),c=()=>u.getAriaDescribedBy(r["aria-describedby"]),p=m=>m===i(),f={ariaDescribedBy:c,isSelectedValue:p,setSelectedValue:m=>{if(!(u.isReadOnly()||u.isDisabled())&&(l(m),t))for(let g of t.querySelectorAll("[type='radio']")){let h=g;h.checked=p(h.value)}}};return v(mc.Provider,{value:u,get children(){return v(Vc.Provider,{value:f,get children(){return v(De,ae({as:"div",ref(m){let g=ut(h=>t=h,r.ref);typeof g=="function"&&g(m)},role:"radiogroup",get id(){return R(n.id)},get"aria-invalid"(){return u.validationState()==="invalid"||void 0},get"aria-required"(){return u.isRequired()||void 0},get"aria-disabled"(){return u.isDisabled()||void 0},get"aria-readonly"(){return u.isReadOnly()||void 0},get"aria-orientation"(){return r.orientation},get"aria-labelledby"(){return d()},get"aria-describedby"(){return c()}},()=>u.dataset(),s))}})}})}function U1(e,t,a){let o=hx({usage:"search",sensitivity:"base"}),r=k(()=>{let n=R(e.keyboardDelegate);return n||new z1(e.collection,t,o)});return Lx({selectionManager:()=>R(e.selectionManager),keyboardDelegate:r,autoFocus:()=>R(e.autoFocus),deferAutoFocus:()=>R(e.deferAutoFocus),shouldFocusWrap:()=>R(e.shouldFocusWrap),disallowEmptySelection:()=>R(e.disallowEmptySelection),selectOnFocus:()=>R(e.selectOnFocus),disallowTypeAhead:()=>R(e.disallowTypeAhead),shouldUseVirtualFocus:()=>R(e.shouldUseVirtualFocus),allowsTabNavigation:()=>R(e.allowsTabNavigation),isVirtualized:()=>R(e.isVirtualized),scrollToKey:n=>R(e.scrollToKey)?.(n),orientation:()=>R(e.orientation)},t)}function H1(e,t){let[a,o]=N(!1),r={pause(){o(!0)},resume(){o(!1)}},n=null,s=m=>e.onMountAutoFocus?.(m),i=m=>e.onUnmountAutoFocus?.(m),l=()=>Yt(t()),u=()=>{let m=l().createElement("span");return m.setAttribute("data-focus-trap",""),m.tabIndex=0,Object.assign(m.style,pc),m},d=()=>{let m=t();return m?cc(m,!0).filter(g=>!g.hasAttribute("data-focus-trap")):[]},c=()=>{let m=d();return m.length>0?m[0]:null},p=()=>{let m=d();return m.length>0?m[m.length-1]:null},f=()=>{let m=t();if(!m)return!1;let g=Nr(m);return!g||kt(m,g)?!1:fc(g)};Q(()=>{if(at)return;let m=t();if(!m)return;qd.add(r);let g=Nr(m);if(!kt(m,g)){let x=new CustomEvent(ul,$d);m.addEventListener(ul,s),m.dispatchEvent(x),x.defaultPrevented||setTimeout(()=>{rt(c()),Nr(m)===g&&rt(m)},0)}Z(()=>{m.removeEventListener(ul,s),setTimeout(()=>{let x=new CustomEvent(dl,$d);f()&&x.preventDefault(),m.addEventListener(dl,i),m.dispatchEvent(x),x.defaultPrevented||rt(g??l().body),m.removeEventListener(dl,i),qd.remove(r)},0)})}),Q(()=>{if(at)return;let m=t();if(!m||!R(e.trapFocus)||a())return;let g=x=>{let y=x.target;y?.closest(`[${Qn}]`)||(kt(m,y)?n=y:rt(n))},h=x=>{let C=x.relatedTarget??Nr(m);C?.closest(`[${Qn}]`)||kt(m,C)||rt(n)};l().addEventListener("focusin",g),l().addEventListener("focusout",h),Z(()=>{l().removeEventListener("focusin",g),l().removeEventListener("focusout",h)})}),Q(()=>{if(at)return;let m=t();if(!m||!R(e.trapFocus)||a())return;let g=u();m.insertAdjacentElement("afterbegin",g);let h=u();m.insertAdjacentElement("beforeend",h);function x(C){let w=c(),L=p();C.relatedTarget===w?rt(L):rt(w)}g.addEventListener("focusin",x),h.addEventListener("focusin",x);let y=new MutationObserver(C=>{for(let w of C)w.previousSibling===h&&(h.remove(),m.insertAdjacentElement("beforeend",h)),w.nextSibling===g&&(g.remove(),m.insertAdjacentElement("afterbegin",g))});y.observe(m,{childList:!0,subtree:!1}),Z(()=>{g.removeEventListener("focusin",x),h.removeEventListener("focusin",x),g.remove(),h.remove(),y.disconnect()})})}function V1(e){Q(()=>{R(e.isDisabled)||Z(G1(R(e.targets),R(e.root)))})}function G1(e,t=document.body){let a=new Set(e),o=new Set,r=l=>{for(let p of l.querySelectorAll(`[${_1}], [${Qn}]`))a.add(p);let u=p=>{if(a.has(p)||p.parentElement&&o.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let f of a)if(p.contains(f))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),c=u(l);if(c===NodeFilter.FILTER_ACCEPT&&n(l),c!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)n(p),p=d.nextNode()}},n=l=>{let u=$r.get(l)??0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),o.add(l),$r.set(l,u+1))};St.length&&St[St.length-1].disconnect(),r(t);let s=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...a,...o].some(d=>d.contains(u.target))){for(let d of u.removedNodes)d instanceof Element&&(a.delete(d),o.delete(d));for(let d of u.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?a.add(d):d instanceof Element&&r(d)}});s.observe(t,{childList:!0,subtree:!0});let i={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return St.push(i),()=>{s.disconnect();for(let l of o){let u=$r.get(l);if(u==null)return;u===1?(l.removeAttribute("aria-hidden"),$r.delete(l)):$r.set(l,u-1)}i===St[St.length-1]?(St.pop(),St.length&&St[St.length-1].observe()):St.splice(St.indexOf(i),1)}}function af(){return Ue(tf)}function wa(){let e=af();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function ql(){let e=Ue(of);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function ta(){let e=Ue(rf);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function Nl(e){let t,a=ta(),o=wa(),r=ge({id:a.generateId(`item-${xt()}`)},e),[n,s]=ye(r,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[i,l]=N(),[u,d]=N(),[c,p]=N(),f=()=>o.listState().selectionManager(),m=()=>s.id,g=()=>f().focusedKey()===m(),h=()=>{n.onSelect?.(),n.closeOnSelect&&setTimeout(()=>{o.close(!0)})};ix({getItem:()=>({ref:()=>t,type:"item",key:m(),textValue:n.textValue??c()?.textContent??t?.textContent??"",disabled:n.disabled??!1})});let x=kc({key:m,selectionManager:f,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),y=S=>{Te(S,n.onPointerMove),S.pointerType==="mouse"&&(n.disabled?o.onItemLeave(S):(o.onItemEnter(S),S.defaultPrevented||(rt(S.currentTarget),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(m()))))},C=S=>{Te(S,n.onPointerLeave),S.pointerType==="mouse"&&o.onItemLeave(S)},w=S=>{Te(S,n.onPointerUp),!n.disabled&&S.button===0&&h()},L=S=>{if(Te(S,n.onKeyDown),!S.repeat&&!n.disabled)switch(S.key){case"Enter":case" ":h();break}},E=k(()=>{if(n.indeterminate)return"mixed";if(n.checked!=null)return n.checked}),D=k(()=>({"data-indeterminate":n.indeterminate?"":void 0,"data-checked":n.checked&&!n.indeterminate?"":void 0,"data-disabled":n.disabled?"":void 0,"data-highlighted":g()?"":void 0})),T={isChecked:()=>n.checked,dataset:D,setLabelRef:p,generateId:Qr(()=>s.id),registerLabel:Pt(l),registerDescription:Pt(d)};return v(of.Provider,{value:T,get children(){return v(De,ae({as:"div",ref(S){let I=ut(_=>t=_,n.ref);typeof I=="function"&&I(S)},get tabIndex(){return x.tabIndex()},get"aria-checked"(){return E()},get"aria-disabled"(){return n.disabled},get"aria-labelledby"(){return i()},get"aria-describedby"(){return u()},get"data-key"(){return x.dataKey()},get onPointerDown(){return je([n.onPointerDown,x.onPointerDown])},get onPointerUp(){return je([w,x.onPointerUp])},get onClick(){return je([n.onClick,x.onClick])},get onKeyDown(){return je([L,x.onKeyDown])},get onMouseDown(){return je([n.onMouseDown,x.onMouseDown])},get onFocus(){return je([n.onFocus,x.onFocus])},onPointerMove:y,onPointerLeave:C},D,s))}})}function nf(e){let t=ge({closeOnSelect:!1},e),[a,o]=ye(t,["checked","defaultChecked","onChange","onSelect"]),r=Y0({isSelected:()=>a.checked,defaultIsSelected:()=>a.defaultChecked,onSelectedChange:s=>a.onChange?.(s),isDisabled:()=>o.disabled});return v(Nl,ae({role:"menuitemcheckbox",get checked(){return r.isSelected()},onSelect:()=>{a.onSelect?.(),r.toggle()}},o))}function us(){return Ue(ty)}function sf(e){let t=ta(),a=wa(),o=us(),{direction:r}=Wa(),n=ge({id:t.generateId("trigger")},e),[s,i]=ye(n,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]),l=()=>t.value();o!==void 0&&(l=()=>t.value()??s.id,o.lastValue()===void 0&&o.setLastValue(l));let u=ns(()=>a.triggerRef(),()=>"button"),d=k(()=>u()==="a"&&a.triggerRef()?.getAttribute("href")!=null);Q(Zt(()=>o?.value(),x=>{d()&&x===l()&&a.triggerRef()?.focus()}));let c=()=>{o!==void 0?a.isOpen()?o.value()===l()&&o.closeMenu():(o.autoFocusMenu()||o.setAutoFocusMenu(!0),a.open(!1)):a.toggle(!0)},p=x=>{Te(x,s.onPointerDown),x.currentTarget.dataset.pointerType=x.pointerType,!s.disabled&&x.pointerType!=="touch"&&x.button===0&&c()},f=x=>{Te(x,s.onClick),s.disabled||x.currentTarget.dataset.pointerType==="touch"&&c()},m=x=>{if(Te(x,s.onKeyDown),!s.disabled){if(d())switch(x.key){case"Enter":case" ":return}switch(x.key){case"Enter":case" ":case Vd.first(t.orientation()):x.stopPropagation(),x.preventDefault(),G0(x.currentTarget),a.open("first"),o?.setAutoFocusMenu(!0),o?.setValue(l);break;case Vd.last(t.orientation()):x.stopPropagation(),x.preventDefault(),a.open("last");break;case Gr.next(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.nextMenu();break;case Gr.previous(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.previousMenu();break}}},g=x=>{Te(x,s.onMouseOver),a.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&o!==void 0&&o.value()!==void 0&&o.setValue(l)},h=x=>{Te(x,s.onFocus),o!==void 0&&x.currentTarget.dataset.pointerType!=="touch"&&o.setValue(l)};return Q(()=>Z(a.registerTriggerId(s.id))),v(Al,ae({ref(x){let y=ut(a.setTriggerRef,s.ref);typeof y=="function"&&y(x)},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 a.isOpen()},get"aria-controls"(){return k(()=>!!a.isOpen())()?a.contentId():void 0},get"data-highlighted"(){return l()!==void 0&&o?.value()===l()?!0:void 0},get tabIndex(){return o!==void 0?o.value()===l()||o.lastValue()===l()?0:-1:void 0},onPointerDown:p,onMouseOver:g,onClick:f,onKeyDown:m,onFocus:h,role:o!==void 0?"menuitem":void 0},()=>a.dataset(),i))}function lf(){return Ue(ay)}function uf(e){let t,a=ta(),o=wa(),r=us(),n=lf(),{direction:s}=Wa(),i=ge({id:a.generateId(`content-${xt()}`)},e),[l,u]=ye(i,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),d=0,c=()=>o.parentMenuContext()==null&&r===void 0&&a.isModal(),p=U1({selectionManager:o.listState().selectionManager,collection:o.listState().collection,autoFocus:o.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!o.listState().selectionManager().isFocused(),orientation:()=>a.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);H1({trapFocus:()=>c()&&o.isOpen(),onMountAutoFocus:C=>{r===void 0&&l.onOpenAutoFocus?.(C)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let f=C=>{if(kt(C.currentTarget,C.target)&&(C.key==="Tab"&&o.isOpen()&&C.preventDefault(),r!==void 0&&C.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(C.key){case Gr.next(s(),a.orientation()):C.stopPropagation(),C.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.nextMenu();break;case Gr.previous(s(),a.orientation()):if(C.currentTarget.hasAttribute("data-closed"))break;C.stopPropagation(),C.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.previousMenu();break}},m=C=>{l.onEscapeKeyDown?.(C),r?.setAutoFocusMenu(!1),o.close(!0)},g=C=>{l.onFocusOutside?.(C),a.isModal()&&C.preventDefault()},h=C=>{Te(C,l.onPointerEnter),o.isOpen()&&(o.parentMenuContext()?.listState().selectionManager().setFocused(!1),o.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},x=C=>{if(Te(C,l.onPointerMove),C.pointerType!=="mouse")return;let w=C.target,L=d!==C.clientX;kt(C.currentTarget,w)&&L&&(o.setPointerDir(C.clientX>d?"right":"left"),d=C.clientX)};Q(()=>Z(o.registerContentId(l.id)));let y={ref:ut(C=>{o.setContentRef(C),t=C},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return p.tabIndex()},get"aria-labelledby"(){return o.triggerId()},onKeyDown:je([l.onKeyDown,p.onKeyDown,f]),onMouseDown:je([l.onMouseDown,p.onMouseDown]),onFocusIn:je([l.onFocusIn,p.onFocusIn]),onFocusOut:je([l.onFocusOut,p.onFocusOut]),onPointerEnter:h,onPointerMove:x,get"data-orientation"(){return a.orientation()}};return v(j,{get when(){return o.contentPresent()},get children(){return v(j,{get when(){return n===void 0||o.parentMenuContext()!=null},get fallback(){return v(De,ae({as:"div"},()=>o.dataset(),y,u))},get children(){return v(Uc.Positioner,{get children(){return v(q1,ae({get disableOutsidePointerEvents(){return k(()=>!!c())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return os({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},l.style)},onEscapeKeyDown:m,onFocusOutside:g,get onDismiss(){return o.close}},()=>o.dataset(),y,u))}})}})}})}function oy(e){let t,a=ta(),o=wa(),[r,n]=ye(e,["ref"]);return ey({element:()=>t??null,enabled:()=>o.contentPresent()&&a.preventScroll()}),v(uf,ae({ref(s){let i=ut(l=>{t=l},r.ref);typeof i=="function"&&i(s)}},n))}function ry(){let e=Ue(df);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function zl(e){let t=ta(),a=ge({id:t.generateId(`group-${xt()}`)},e),[o,r]=N(),n={generateId:Qr(()=>a.id),registerLabelId:Pt(r)};return v(df.Provider,{value:n,get children(){return v(De,ae({as:"div",role:"group",get"aria-labelledby"(){return o()}},a))}})}function cf(e){let t=ry(),a=ge({id:t.generateId("label")},e),[o,r]=ye(a,["id"]);return Q(()=>Z(t.registerLabelId(o.id))),v(De,ae({as:"span",get id(){return o.id},"aria-hidden":"true"},r))}function ff(e){let t=wa(),a=ge({children:"\u25BC"},e);return v(De,ae({as:"span","aria-hidden":"true"},()=>t.dataset(),a))}function pf(e){return v(Nl,ae({role:"menuitem",closeOnSelect:!0},e))}function mf(e){let t=ql(),a=ge({id:t.generateId("description")},e),[o,r]=ye(a,["id"]);return Q(()=>Z(t.registerDescription(o.id))),v(De,ae({as:"div",get id(){return o.id}},()=>t.dataset(),r))}function gf(e){let t=ql(),a=ge({id:t.generateId("indicator")},e),[o,r]=ye(a,["forceMount"]);return v(j,{get when(){return o.forceMount||t.isChecked()},get children(){return v(De,ae({as:"div"},()=>t.dataset(),r))}})}function hf(e){let t=ql(),a=ge({id:t.generateId("label")},e),[o,r]=ye(a,["ref","id"]);return Q(()=>Z(t.registerLabel(o.id))),v(De,ae({as:"div",ref(n){let s=ut(t.setLabelRef,o.ref);typeof s=="function"&&s(n)},get id(){return o.id}},()=>t.dataset(),r))}function xf(e){let t=wa();return v(j,{get when(){return t.contentPresent()},get children(){return v(al,e)}})}function ny(){let e=Ue(yf);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function vf(e){let a=ta().generateId(`radiogroup-${xt()}`),o=ge({id:a},e),[r,n]=ye(o,["value","defaultValue","onChange","disabled"]),[s,i]=Xr({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:u=>r.onChange?.(u)}),l={isDisabled:()=>r.disabled,isSelectedValue:u=>u===s(),setSelectedValue:i};return v(yf.Provider,{value:l,get children(){return v(zl,n)}})}function Cf(e){let t=ny(),a=ge({closeOnSelect:!1},e),[o,r]=ye(a,["value","onSelect"]);return v(Nl,ae({role:"menuitemradio",get checked(){return t.isSelectedValue(o.value)},onSelect:()=>{o.onSelect?.(),t.setSelectedValue(o.value)}},r))}function sy(e,t,a){let o=e.split("-")[0],r=a.getBoundingClientRect(),n=[],s=t.clientX,i=t.clientY;switch(o){case"top":n.push([s,i+5]),n.push([r.left,r.bottom]),n.push([r.left,r.top]),n.push([r.right,r.top]),n.push([r.right,r.bottom]);break;case"right":n.push([s-5,i]),n.push([r.left,r.top]),n.push([r.right,r.top]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]);break;case"bottom":n.push([s,i-5]),n.push([r.right,r.top]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]),n.push([r.left,r.top]);break;case"left":n.push([s+5,i]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]),n.push([r.left,r.top]),n.push([r.right,r.top]);break}return n}function ly(e,t){return t?V0([e.clientX,e.clientY],t):!1}function bf(e){let t=ta(),a=vc(),o=af(),r=us(),n=lf(),s=ge({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[i,l]=ye(s,["open","defaultOpen","onOpenChange"]),u=0,d=null,c="right",[p,f]=N(),[m,g]=N(),[h,x]=N(),[y,C]=N(),[w,L]=N(!0),[E,D]=N(l.placement),[T,S]=N([]),[I,_]=N([]),{DomCollectionProvider:F}=lx({items:I,onItemsChange:_}),re=_c({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:te=>i.onOpenChange?.(te)}),{present:fe}=Pc({show:()=>t.forceMount()||re.isOpen(),element:()=>y()??null}),J=Ix({selectionMode:"none",dataSource:I}),ne=te=>{L(te),re.open()},me=(te=!1)=>{re.close(),te&&o&&o.close(!0)},he=te=>{L(te),re.toggle()},ve=()=>{let te=y();te&&(rt(te),J.selectionManager().setFocused(!0),J.selectionManager().setFocusedKey(void 0))},Fe=()=>{n!=null?setTimeout(()=>ve()):ve()},Ae=te=>{S(et=>[...et,te]);let Ft=o?.registerNestedMenu(te);return()=>{S(et=>ml(et,te)),Ft?.()}},qe=te=>c===d?.side&&ly(te,d?.area),lt=te=>{qe(te)&&te.preventDefault()},$=te=>{qe(te)||Fe()},Oe=te=>{qe(te)&&te.preventDefault()};V1({isDisabled:()=>!(o==null&&re.isOpen()&&t.isModal()),targets:()=>[y(),...T()].filter(Boolean)}),Q(()=>{let te=y();if(!te||!o)return;let Ft=o.registerNestedMenu(te);Z(()=>{Ft()})}),Q(()=>{o===void 0&&r?.registerMenu(t.value(),[y(),...T()])}),Q(()=>{o!==void 0||r===void 0||(r.value()===t.value()?(h()?.focus(),r.autoFocusMenu()&&ne(!0)):me())}),Q(()=>{o!==void 0||r===void 0||re.isOpen()&&r.setValue(t.value())}),Z(()=>{o===void 0&&r?.unregisterMenu(t.value())});let Ea={dataset:k(()=>({"data-expanded":re.isOpen()?"":void 0,"data-closed":re.isOpen()?void 0:""})),isOpen:re.isOpen,contentPresent:fe,nestedMenus:T,currentPlacement:E,pointerGraceTimeoutId:()=>u,autoFocus:w,listState:()=>J,parentMenuContext:()=>o,triggerRef:h,contentRef:y,triggerId:p,contentId:m,setTriggerRef:x,setContentRef:C,open:ne,close:me,toggle:he,focusContent:Fe,onItemEnter:lt,onItemLeave:$,onTriggerLeave:Oe,setPointerDir:te=>c=te,setPointerGraceTimeoutId:te=>u=te,setPointerGraceIntent:te=>d=te,registerNestedMenu:Ae,registerItemToParentDomCollection:a?.registerItem,registerTriggerId:Pt(f),registerContentId:Pt(g)};return v(F,{get children(){return v(tf.Provider,{value:Ea,get children(){return v(j,{when:n===void 0,get fallback(){return l.children},get children(){return v(Uc,ae({anchorRef:h,contentRef:y,onCurrentPlacementChange:D},l))}})}})}})}function wf(e){let{direction:t}=Wa();return v(bf,ae({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function Lf(e){let t=wa(),a=ta(),[o,r]=ye(e,["onFocusOutside","onKeyDown"]),{direction:n}=Wa();return v(uf,ae({onOpenAutoFocus:d=>{d.preventDefault()},onCloseAutoFocus:d=>{d.preventDefault()},onFocusOutside:d=>{o.onFocusOutside?.(d);let c=d.target;kt(t.triggerRef(),c)||t.close()},onKeyDown:d=>{Te(d,o.onKeyDown);let c=kt(d.currentTarget,d.target),p=iy.close(n(),a.orientation()).includes(d.key),f=t.parentMenuContext()!=null;c&&p&&f&&(t.close(),rt(t.triggerRef()))}},r))}function Sf(e){let t,a=ta(),o=wa(),r=ge({id:a.generateId(`sub-trigger-${xt()}`)},e),[n,s]=ye(r,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),i=null,l=()=>{at||(i&&window.clearTimeout(i),i=null)},{direction:u}=Wa(),d=()=>n.id,c=()=>{let C=o.parentMenuContext();if(C==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return C.listState().selectionManager()},p=()=>o.listState().collection(),f=()=>c().focusedKey()===d(),m=kc({key:d,selectionManager:c,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),g=C=>{Te(C,n.onClick),!o.isOpen()&&!n.disabled&&o.open(!0)},h=C=>{if(Te(C,n.onPointerMove),C.pointerType!=="mouse")return;let w=o.parentMenuContext();if(w?.onItemEnter(C),!C.defaultPrevented){if(n.disabled){w?.onItemLeave(C);return}!o.isOpen()&&!i&&(o.parentMenuContext()?.setPointerGraceIntent(null),i=window.setTimeout(()=>{o.open(!1),l()},100)),w?.onItemEnter(C),C.defaultPrevented||(o.listState().selectionManager().isFocused()&&(o.listState().selectionManager().setFocused(!1),o.listState().selectionManager().setFocusedKey(void 0)),rt(C.currentTarget),w?.listState().selectionManager().setFocused(!0),w?.listState().selectionManager().setFocusedKey(d()))}},x=C=>{if(Te(C,n.onPointerLeave),C.pointerType!=="mouse")return;l();let w=o.parentMenuContext(),L=o.contentRef();if(L){w?.setPointerGraceIntent({area:sy(o.currentPlacement(),C,L),side:o.currentPlacement().split("-")[0]}),window.clearTimeout(w?.pointerGraceTimeoutId());let E=window.setTimeout(()=>{w?.setPointerGraceIntent(null)},300);w?.setPointerGraceTimeoutId(E)}else{if(w?.onTriggerLeave(C),C.defaultPrevented)return;w?.setPointerGraceIntent(null)}w?.onItemLeave(C)},y=C=>{Te(C,n.onKeyDown),!C.repeat&&(n.disabled||uy.open(u(),a.orientation()).includes(C.key)&&(C.stopPropagation(),C.preventDefault(),c().setFocused(!1),c().setFocusedKey(void 0),o.isOpen()||o.open("first"),o.focusContent(),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(p().getFirstKey())))};return Q(()=>{if(o.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let C=o.registerItemToParentDomCollection({ref:()=>t,type:"item",key:d(),textValue:n.textValue??t?.textContent??"",disabled:n.disabled??!1});Z(C)}),Q(Zt(()=>o.parentMenuContext()?.pointerGraceTimeoutId(),C=>{Z(()=>{window.clearTimeout(C),o.parentMenuContext()?.setPointerGraceIntent(null)})})),Q(()=>Z(o.registerTriggerId(n.id))),Z(()=>{l()}),v(De,ae({as:"div",ref(C){let w=ut(L=>{o.setTriggerRef(L),t=L},n.ref);typeof w=="function"&&w(C)},get id(){return n.id},role:"menuitem",get tabIndex(){return m.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return o.isOpen()},get"aria-controls"(){return k(()=>!!o.isOpen())()?o.contentId():void 0},get"aria-disabled"(){return n.disabled},get"data-key"(){return m.dataKey()},get"data-highlighted"(){return f()?"":void 0},get"data-disabled"(){return n.disabled?"":void 0},get onPointerDown(){return je([n.onPointerDown,m.onPointerDown])},get onPointerUp(){return je([n.onPointerUp,m.onPointerUp])},get onClick(){return je([g,m.onClick])},get onKeyDown(){return je([y,m.onKeyDown])},get onMouseDown(){return je([n.onMouseDown,m.onMouseDown])},get onFocus(){return je([n.onFocus,m.onFocus])},onPointerMove:h,onPointerLeave:x},()=>o.dataset(),s))}function dy(e){let t=us(),a=`menu-${xt()}`,o=ge({id:a,modal:!0},e),[r,n]=ye(o,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=_c({open:()=>r.open,defaultOpen:()=>r.defaultOpen,onOpenChange:l=>r.onOpenChange?.(l)}),i={isModal:()=>r.modal??!0,preventScroll:()=>r.preventScroll??i.isModal(),forceMount:()=>r.forceMount??!1,generateId:Qr(()=>r.id),value:()=>r.value,orientation:()=>r.orientation??t?.orientation()??"horizontal"};return v(rf.Provider,{value:i,get children(){return v(bf,ae({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},n))}})}function ds(e){let t,a=ge({orientation:"horizontal"},e),[o,r]=ye(a,["ref","orientation"]),n=ns(()=>t,()=>"hr");return v(De,ae({as:"hr",ref(s){let i=ut(l=>t=l,o.ref);typeof i=="function"&&i(s)},get role(){return n()!=="hr"?"separator":void 0},get"aria-orientation"(){return o.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return o.orientation}},r))}function If(e){let t=ta(),a=wa(),[o,r]=ye(e,["onCloseAutoFocus","onInteractOutside"]),n=!1;return v(oy,ae({onCloseAutoFocus:l=>{o.onCloseAutoFocus?.(l),n||rt(a.triggerRef()),n=!1,l.preventDefault()},onInteractOutside:l=>{o.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(n=!0)}},r))}function kf(e){let t=`dropdownmenu-${xt()}`,a=ge({id:t},e);return v(dy,a)}function Oy(){return my()}function Mf(){return gy()}function Ur(){return hy()}function Kd(){return xy()}function Wd(){return Ul()}function By(){return(()=>{var e=Ul();return e.style.setProperty("transform","rotate(90deg)"),e})()}function $y(){return(()=>{var e=Ul();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function qy(){return yy()}function Ny(){return vy()}function zy(){return Cy()}function Uy(){return by()}function Hy(){return wy()}function _y(){return Ly()}function Vy(){return Sy()}function Gy(){return Iy()}function Ky(){return ky()}function Wy(e){return(()=>{var t=Pf(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function Qy(){return Py()}function jy(){return My()}function Xy(e){return[v(j,{get when(){return e.checked},get children(){var t=Pf(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),v(j,{get when(){return!e.checked},get children(){var t=Ay(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function Zy(){return Ry()}function Jy(){return Ty()}function Yy(){return Dy()}function ev(){return Ey()}function Qd(){let e=xt();return(()=>{var t=Fy(),a=t.firstChild,o=a.nextSibling,r=o.nextSibling,n=r.firstChild,s=r.nextSibling,i=s.firstChild,l=s.nextSibling,u=l.nextSibling,d=u.firstChild,c=u.nextSibling,p=c.firstChild,f=c.nextSibling,m=f.nextSibling,g=m.firstChild,h=m.nextSibling,x=h.firstChild,y=h.nextSibling,C=y.nextSibling,w=C.firstChild,L=C.nextSibling,E=L.firstChild,D=L.nextSibling,T=D.nextSibling,S=T.firstChild,I=T.nextSibling,_=I.firstChild,F=I.nextSibling,re=F.nextSibling,fe=re.firstChild,J=re.nextSibling,ne=J.firstChild,me=J.nextSibling,he=me.nextSibling,ve=he.firstChild,Fe=he.nextSibling,Ae=Fe.firstChild,qe=Fe.nextSibling,lt=qe.firstChild,$=lt.nextSibling,Oe=$.nextSibling,Ce=Oe.nextSibling,Ea=Ce.nextSibling,te=qe.nextSibling,Ft=te.firstChild,et=te.nextSibling,Lo=et.firstChild,wt=et.nextSibling,Fa=wt.firstChild,ro=Fa.nextSibling,la=ro.nextSibling,Wt=la.firstChild,ia=Wt.nextSibling,z=ia.nextSibling,Se=z.nextSibling,it=Se.nextSibling,Pe=it.nextSibling,Le=Pe.nextSibling,Re=Le.nextSibling,We=Re.nextSibling,we=We.nextSibling,ua=we.nextSibling,da=ua.nextSibling,Ot=wt.nextSibling,no=Ot.firstChild,ca=Ot.nextSibling,so=ca.firstChild,fa=ca.nextSibling,Oa=fa.firstChild,xn=Oa.nextSibling,Zo=fa.nextSibling,yn=Zo.firstChild,So=Zo.nextSibling,vn=So.firstChild,Jo=So.nextSibling,Yo=Jo.firstChild,er=Yo.nextSibling,Io=er.nextSibling,Pi=Io.nextSibling,Mi=Pi.nextSibling,Ai=Mi.nextSibling,Ri=Ai.nextSibling,Ti=Ri.nextSibling,Di=Ti.nextSibling,Ei=Di.nextSibling,Fi=Ei.nextSibling,Oi=Fi.nextSibling,Bi=Oi.nextSibling,$i=Bi.nextSibling,qi=$i.nextSibling,Ni=qi.nextSibling,zi=Ni.nextSibling,qm=zi.nextSibling;return O(a,"id",`a-${e}`),O(o,"fill",`url(#a-${e})`),O(n,"id",`am-${e}`),O(s,"id",`b-${e}`),O(i,"filter",`url(#am-${e})`),O(l,"mask",`url(#b-${e})`),O(d,"id",`ah-${e}`),O(c,"id",`k-${e}`),O(p,"filter",`url(#ah-${e})`),O(f,"mask",`url(#k-${e})`),O(g,"id",`ae-${e}`),O(h,"id",`j-${e}`),O(x,"filter",`url(#ae-${e})`),O(y,"mask",`url(#j-${e})`),O(w,"id",`ai-${e}`),O(L,"id",`i-${e}`),O(E,"filter",`url(#ai-${e})`),O(D,"mask",`url(#i-${e})`),O(S,"id",`aj-${e}`),O(I,"id",`h-${e}`),O(_,"filter",`url(#aj-${e})`),O(F,"mask",`url(#h-${e})`),O(fe,"id",`ag-${e}`),O(J,"id",`g-${e}`),O(ne,"filter",`url(#ag-${e})`),O(me,"mask",`url(#g-${e})`),O(ve,"id",`af-${e}`),O(Fe,"id",`f-${e}`),O(Ae,"filter",`url(#af-${e})`),O(qe,"mask",`url(#f-${e})`),O(Ce,"id",`m-${e}`),O(Ea,"fill",`url(#m-${e})`),O(Ft,"id",`ak-${e}`),O(et,"id",`e-${e}`),O(Lo,"filter",`url(#ak-${e})`),O(wt,"mask",`url(#e-${e})`),O(Fa,"id",`n-${e}`),O(ro,"fill",`url(#n-${e})`),O(Wt,"id",`r-${e}`),O(ia,"fill",`url(#r-${e})`),O(z,"id",`s-${e}`),O(Se,"fill",`url(#s-${e})`),O(it,"id",`q-${e}`),O(Pe,"fill",`url(#q-${e})`),O(Le,"id",`p-${e}`),O(Re,"fill",`url(#p-${e})`),O(We,"id",`o-${e}`),O(we,"fill",`url(#o-${e})`),O(ua,"id",`l-${e}`),O(da,"fill",`url(#l-${e})`),O(no,"id",`al-${e}`),O(ca,"id",`d-${e}`),O(so,"filter",`url(#al-${e})`),O(fa,"mask",`url(#d-${e})`),O(Oa,"id",`u-${e}`),O(xn,"fill",`url(#u-${e})`),O(yn,"id",`ad-${e}`),O(So,"id",`c-${e}`),O(vn,"filter",`url(#ad-${e})`),O(Jo,"mask",`url(#c-${e})`),O(Yo,"id",`t-${e}`),O(er,"fill",`url(#t-${e})`),O(Io,"id",`v-${e}`),O(Pi,"stroke",`url(#v-${e})`),O(Mi,"id",`aa-${e}`),O(Ai,"stroke",`url(#aa-${e})`),O(Ri,"id",`w-${e}`),O(Ti,"stroke",`url(#w-${e})`),O(Di,"id",`ac-${e}`),O(Ei,"stroke",`url(#ac-${e})`),O(Fi,"id",`ab-${e}`),O(Oi,"stroke",`url(#ab-${e})`),O(Bi,"id",`y-${e}`),O($i,"stroke",`url(#y-${e})`),O(qi,"id",`x-${e}`),O(Ni,"stroke",`url(#x-${e})`),O(zi,"id",`z-${e}`),O(qm,"stroke",`url(#z-${e})`),t})()}function cv(e,t){let a=0,o=[];for(;a<e.length;)o.push(e.slice(a,a+t)),a=a+t;return o}function Jd(e){return Symbol.iterator in e}function Ha(e){let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a)),r=X().client,[n,s]=N((e.defaultExpanded||[]).includes(e.label)),i=()=>s(m=>!m),[l,u]=N([]),d=k(()=>Array.isArray(e.value)?e.value.map((m,g)=>({label:g.toString(),value:m})):e.value!==null&&typeof e.value=="object"&&Jd(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([m,g])=>({label:m,value:g})):Array.from(e.value,(m,g)=>({label:g.toString(),value:m})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([m,g])=>({label:m,value:g})):[]),c=k(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&Jd(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),p=k(()=>cv(d(),100)),f=e.dataPath??[];return(()=>{var m=qr();return P(m,v(j,{get when(){return p().length},get children(){return[(()=>{var g=lv(),h=g.firstChild,x=h.firstChild,y=x.nextSibling,C=y.nextSibling,w=C.nextSibling,L=w.firstChild;return h.$$click=()=>i(),P(h,v(Xd,{get expanded(){return n()}}),x),P(y,()=>e.label),P(w,()=>String(c()).toLowerCase()==="iterable"?"(Iterable) ":"",L),P(w,()=>d().length,L),P(w,()=>d().length>1?"items":"item",null),P(g,v(j,{get when(){return e.editable},get children(){var E=qr();return P(E,v(fv,{get value(){return e.value}}),null),P(E,v(j,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return v(Zd,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),P(E,v(j,{get when(){return c()==="array"&&e.activeQuery!==void 0},get children(){return v(pv,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),P(E,v(j,{get when(){return k(()=>!!e.onEdit)()&&!ol(e.value).meta},get children(){var D=sv();return D.$$click=()=>{e.onEdit?.()},P(D,v(Ky,{})),W(()=>B(D,o().actionButton)),D}}),null),W(()=>B(E,o().actions)),E}}),null),W(E=>{var D=o().expanderButtonContainer,T=o().expanderButton,S=o().info;return D!==E.e&&B(g,E.e=D),T!==E.t&&B(h,E.t=T),S!==E.a&&B(w,E.a=S),E},{e:void 0,t:void 0,a:void 0}),g})(),v(j,{get when(){return n()},get children(){return[v(j,{get when(){return p().length===1},get children(){var g=qr();return P(g,v(Wn,{get each(){return d()},by:h=>h.label,children:h=>v(Ha,{get defaultExpanded(){return e.defaultExpanded},get label(){return h().label},get value(){return h().value},get editable(){return e.editable},get dataPath(){return[...f,h().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return c()==="array"||c()==="Iterable"||c()==="object"}})})),W(()=>B(g,o().subEntry)),g}}),v(j,{get when(){return p().length>1},get children(){var g=qr();return P(g,v(Eu,{get each(){return p()},children:(h,x)=>(()=>{var y=dv(),C=y.firstChild,w=C.firstChild,L=w.firstChild,E=L.nextSibling,D=E.nextSibling,T=D.nextSibling;return T.nextSibling,w.$$click=()=>u(S=>S.includes(x)?S.filter(I=>I!==x):[...S,x]),P(w,v(Xd,{get expanded(){return l().includes(x)}}),L),P(w,x*100,E),P(w,x*100+100-1,T),P(C,v(j,{get when(){return l().includes(x)},get children(){var S=qr();return P(S,v(Wn,{get each(){return h()},by:I=>I.label,children:I=>v(Ha,{get defaultExpanded(){return e.defaultExpanded},get label(){return I().label},get value(){return I().value},get editable(){return e.editable},get dataPath(){return[...f,I().label]},get activeQuery(){return e.activeQuery}})})),W(()=>B(S,o().subEntry)),S}}),null),W(S=>{var I=o().entry,_=o().expanderButton;return I!==S.e&&B(C,S.e=I),_!==S.t&&B(w,S.t=_),S},{e:void 0,t:void 0}),y})()})),W(()=>B(g,o().subEntry)),g}})]}})]}}),null),P(m,v(j,{get when(){return p().length===0},get children(){var g=uv(),h=g.firstChild,x=h.firstChild;return P(h,()=>e.label,x),P(g,v(j,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number"||c()==="boolean")},get fallback(){return(()=>{var y=jd();return P(y,()=>Fr(e.value)),W(()=>B(y,o().value)),y})()},get children(){return[v(j,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number")},get children(){var y=iv();return y.addEventListener("change",C=>{let w=e.activeQuery.state.data,L=Na(w,f,c()==="number"?C.target.valueAsNumber:C.target.value);r.setQueryData(e.activeQuery.queryKey,L)}),W(C=>{var w=c()==="number"?"number":"text",L=U(o().value,o().editableInput);return w!==C.e&&O(y,"type",C.e=w),L!==C.t&&B(y,C.t=L),C},{e:void 0,t:void 0}),W(()=>y.value=e.value),y}}),v(j,{get when(){return c()==="boolean"},get children(){var y=jd();return P(y,v(mv,{get activeQuery(){return e.activeQuery},dataPath:f,get value(){return e.value}}),null),P(y,()=>Fr(e.value),null),W(()=>B(y,U(o().value,o().actions,o().editableInput))),y}})]}}),null),P(g,v(j,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return v(Zd,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),W(y=>{var C=o().row,w=o().label;return C!==y.e&&B(g,y.e=C),w!==y.t&&B(h,y.t=w),y},{e:void 0,t:void 0}),g}}),null),W(()=>B(m,o().entry)),m})()}var qh,Nh,sd,zh,Uh,R,cl,Vh,es,Wh,ld,Lt,Qh,go,wl,jh,fl,ts,Xh,tc,Zh,ac,Jh,id,Yh,Kr,oc,as,Ll,Wr,rc,e0,t0,ft,fd,i0,u0,d0,c0,pd,mo,xa,nc,f0,p0,md,gd,sl,L0,Sl,Vn,dc,B0,kl,$0,Br,Cd,pc,K0,mc,ex,ss,yc,dx,cx,hl,zr,gx,ll,ya,Sx,kd,ot,kx,Px,Pc,Qn,Mc,xl,Ca,yt,Bx,$x,Nx,zx,Jt,Ct,jn,Gn,Va,Ux,Hx,Qx,jx,Xx,Zx,Yx,e1,t1,r1,g1,zc,v1,C1,b1,w1,L1,S1,I1,Ol,k1,Cl,Ed,P1,D1,Uc,Od,Bd,Hc,It,Vc,Kc,N1,z1,ul,dl,$d,qd,_1,$r,St,Kn,K1,Nd,W1,Q1,j1,zd,Ud,X1,Z1,J1,Hd,_d,bl,Y1,ey,tf,of,rf,ty,Gr,Vd,ay,df,yf,iy,Gd,uy,cy,fy,He,py,M,my,gy,hy,xy,Ul,yy,vy,Cy,by,wy,Ly,Sy,Iy,ky,Pf,Py,My,Ay,Ry,Ty,Dy,Ey,Fy,tv,av,ov,rv,nv,sv,qr,lv,iv,jd,uv,dv,Xd,fv,pv,Zd,mv,Af,Vo,Go,gv,Yr,hv,xv,yv,vv,Cv,bv,wv,Lv,Sv,Iv,kv,Pv,Mv,Av,Rv,Tv,Dv,Ev,Fv,Yd,Ov,Rf,Bv,$v,qv,Nv,zv,Uv,Hv,_v,Vv,Gv,vt,cs,_a,Tf,Nt,Hl,$o,ec,Df,Kv,Ef,Wv,fs,Qv,jv,Xv,Zv,va,Jv,Yv,Jn,eC,Je,Yn,tC,qt,Ff,Mt,At,_l=tr(()=>{"use strict";b();Or();qh=!at,Nh=qh&&!!Ou,sd=()=>{},zh=e=>e!=null,Uh=e=>e.filter(zh);R=e=>typeof e=="function"&&!e.length?e():e,cl=e=>Array.isArray(e)?e:e?[e]:[];Vh=Nh?e=>En()?Z(e):e:Z;es=Kh,Wh=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),ld=e=>{if(!e)return"";let t="";for(let a in e){if(!e.hasOwnProperty(a))continue;let o=e[a];t+=o instanceof Date?`; ${a}=${o.toUTCString()}`:typeof o=="boolean"?`; ${a}`:`; ${a}=${o}`}return t},Lt=Wh({_cookies:[globalThis.document,"cookie"],getItem:e=>Lt._cookies[0][Lt._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,a)=>{let o=Lt.getItem(e);Lt._cookies[0][Lt._cookies[1]]=`${e}=${t}${ld(a)}`;let r=Object.assign(new Event("storage"),{key:e,oldValue:o,newValue:t,url:globalThis.document.URL,storageArea:Lt});window.dispatchEvent(r)},removeItem:e=>{Lt._cookies[0][Lt._cookies[1]]=`${e}=deleted${ld({expires:new Date(0)})}`},key:e=>{let t=null,a=0;return Lt._cookies[0][Lt._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(o,r)=>(!t&&r&&a++===e&&(t=r),"")),t},get length(){let e=0;return Lt._cookies[0][Lt._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),Qh=1024,go=796,wl=700,jh="bottom-right",fl="bottom",ts="system",Xh=!1,tc=500,Zh=500,ac=500,Jh=Object.keys(Un)[0],id=1,Yh=Object.keys(Hn)[0],Kr=Qe({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});oc=Qe(void 0),as=e=>{let[t,a]=N(null),o=()=>{let s=t();s!=null&&(s.close(),a(null))},r=(s,i)=>{if(t()!=null)return;let l=window.open("","TSQD-Devtools-Panel",`width=${s},height=${i},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="",Bu(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),a(null)}),[...(X().shadowDOMTarget||document).styleSheets].forEach(u=>{try{let d=[...u.cssRules].map(m=>m.cssText).join(""),c=document.createElement("style"),p=u.ownerNode,f="";p&&"id"in p&&(f=p.id),f&&c.setAttribute("id",f),c.textContent=d,l.document.head.appendChild(c)}catch{let c=document.createElement("link");if(u.href==null)return;c.rel="stylesheet",c.type=u.type,c.media=u.media.toString(),c.href=u.href,l.document.head.appendChild(c)}}),Er(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),a(l)};Q(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&r(Number(window.innerWidth),Number(e.localStore.height||Zh))}),Q(()=>{let s=(X().shadowDOMTarget||document).querySelector("#_goober"),i=t();if(s&&i){let l=new MutationObserver(()=>{let u=(X().shadowDOMTarget||i.document).querySelector("#_goober");u&&(u.textContent=s.textContent)});l.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),Z(()=>{l.disconnect()})}});let n=k(()=>({pipWindow:t(),requestPipWindow:r,closePipWindow:o,disabled:e.disabled??!1}));return v(oc.Provider,{value:n,get children(){return e.children}})},Ll=()=>k(()=>{let t=Ue(oc);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),Wr=Qe(()=>"dark");rc={\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"},e0=Object.keys(rc).join("|"),t0=new RegExp(e0,"g");ft={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};fd={maxRanking:1/0,minRanking:-1/0};i0={data:""},u0=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||i0,d0=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,c0=/\/\*[^]*?\*\/| +/g,pd=/\n+/g,mo=(e,t)=>{let a="",o="",r="";for(let n in e){let s=e[n];n[0]=="@"?n[1]=="i"?a=n+" "+s+";":o+=n[1]=="f"?mo(s,n):n+"{"+mo(s,n[1]=="k"?"":t)+"}":typeof s=="object"?o+=mo(s,t?t.replace(/([^,])+/g,i=>n.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,i):i?i+" "+l:l)):n):s!=null&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=mo.p?mo.p(n,s):n+":"+s+";")}return a+(t&&r?t+"{"+r+"}":r)+o},xa={},nc=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+nc(e[a]);return t}return e},f0=(e,t,a,o,r)=>{let n=nc(e),s=xa[n]||(xa[n]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(n));if(!xa[s]){let l=n!==e?e:(u=>{let d,c,p=[{}];for(;d=d0.exec(u.replace(c0,""));)d[4]?p.shift():d[3]?(c=d[3].replace(pd," ").trim(),p.unshift(p[0][c]=p[0][c]||{})):p[0][d[1]]=d[2].replace(pd," ").trim();return p[0]})(e);xa[s]=mo(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&xa.g?xa.g:null;return a&&(xa.g=xa[s]),((l,u,d,c)=>{c?u.data=u.data.replace(c,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(xa[s],t,o,i),s},p0=(e,t,a)=>e.reduce((o,r,n)=>{let s=t[n];if(s&&s.call){let i=s(a),l=i&&i.props&&i.props.className||/^go/.test(i)&&i;s=l?"."+l:i&&typeof i=="object"?i.props?"":mo(i,""):i===!1?"":i}return o+r+(s??"")},"");se.bind({g:1});se.bind({k:1});md=at?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;gd=e=>{let t=h0(e);return m0(g0(()=>e.children).toArray,{appear:e.appear,onChange({added:a,removed:o,finishRemoved:r,list:n}){let s=t();for(let l of a)x0(s,e,l);let i=[];for(let l of n)l.isConnected&&(l instanceof HTMLElement||l instanceof SVGElement)&&i.push({el:l,rect:l.getBoundingClientRect()});queueMicrotask(()=>{let l=[];for(let{el:u,rect:d}of i)if(u.isConnected){let c=u.getBoundingClientRect(),p=d.left-c.left,f=d.top-c.top;(p||f)&&(u.style.transform=`translate(${p}px, ${f}px)`,u.style.transitionDuration="0s",l.push(u))}document.body.offsetHeight;for(let u of l){let d=function(c){(c.target===u||/transform$/.test(c.propertyName))&&(u.removeEventListener("transitionend",d),u.classList.remove(...s.move))};u.classList.add(...s.move),u.style.transform=u.style.transitionDuration="",u.addEventListener("transitionend",d)}});for(let l of o)y0(s,e,l,()=>r([l]))}})},sl=Symbol("fallback");L0=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;Sl=(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))(Sl||{});Vn=null;dc=["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'])"],B0=[...dc,'[tabindex]:not([tabindex="-1"]):not([disabled])'],kl=dc.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",$0=B0.join(':not([hidden]):not([tabindex="-1"]),');Br=new Map,Cd=new Set;typeof document<"u"&&(document.readyState!=="loading"?bd():document.addEventListener("DOMContentLoaded",bd));pc={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"};K0=["id","name","validationState","required","disabled","readOnly"];mc=Qe();ex=Object.defineProperty,ss=(e,t)=>{for(var a in t)ex(e,a,{get:t[a],enumerable:!0})},yc=Qe();dx=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),cx=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);hl=Lc(),zr=new Set;gx=Qe();ll=new Map;ya=class Sc extends Set{anchorKey;currentKey;constructor(t,a,o){super(t),t instanceof Sc?(this.anchorKey=a||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=a,this.currentKey=o)}};Sx=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 a=this.collection().getItem(t),o=a?.index!=null&&e?.index!=null&&a.index<e.index;(!e||o)&&(e=a)}return e?.key}lastSelectedKey(){let e;for(let t of this.state.selectedKeys()){let a=this.collection().getItem(t),o=a?.index!=null&&e?.index!=null&&a.index>e.index;(!e||o)&&(e=a)}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 a=this.state.selectedKeys(),o=a.anchorKey||t,r=new ya(a,o,t);for(let n of this.getKeyRange(o,a.currentKey||t))r.delete(n);for(let n of this.getKeyRange(t,o))this.canSelectItem(n)&&r.add(n);this.state.setSelectedKeys(r)}getKeyRange(e,t){let a=this.collection().getItem(e),o=this.collection().getItem(t);return a&&o?a.index!=null&&o.index!=null&&a.index<=o.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let a=[],o=e;for(;o!=null;){let r=this.collection().getItem(o);if(r&&r.type==="item"&&a.push(o),o===t)return a;o=this.collection().getKeyAfter(o)}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 a=new ya(this.state.selectedKeys());a.has(t)?a.delete(t):this.canSelectItem(t)&&(a.add(t),a.anchorKey=t,a.currentKey=t),!(this.disallowEmptySelection()&&a.size===0)&&this.state.setSelectedKeys(a)}replaceSelection(e){if(this.selectionMode()==="none")return;let t=this.getKey(e);if(t==null)return;let a=this.canSelectItem(t)?new ya([t],t,t):new ya;this.state.setSelectedKeys(a)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new ya;for(let a of e){let o=this.getKey(a);if(o!=null&&(t.add(o),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 ya)}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 a of e)if(!t.has(a))return!1;for(let a of t)if(!e.has(a))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(a=>{for(;a!=null;){if(this.canSelectItem(a)){let o=this.collection().getItem(a);if(!o)continue;o.type==="item"&&e.push(a)}a=this.collection().getKeyAfter(a)}})(this.collection().getFirstKey()),e}},kd=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(let o of e)this.keyMap.set(o.key,o);if(this.keyMap.size===0)return;let t,a=0;for(let[o,r]of this.keyMap)t?(t.nextKey=o,r.prevKey=t.key):(this.firstKey=o,r.prevKey=void 0),r.type==="item"&&(r.index=a++),t=r,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])}};ot=e=>typeof e=="function"?e():e,kx=e=>{let t=k(()=>{let s=ot(e.element);if(s)return getComputedStyle(s)}),a=()=>t()?.animationName??"none",[o,r]=N(ot(e.show)?"present":"hidden"),n="none";return Q(s=>{let i=ot(e.show);return Ie(()=>{if(s===i)return i;let l=n,u=a();i?r("present"):u==="none"||t()?.display==="none"?r("hidden"):r(s===!0&&l!==u?"hiding":"hidden")}),i}),Q(()=>{let s=ot(e.element);if(!s)return;let i=u=>{u.target===s&&(n=a())},l=u=>{let c=a().includes(u.animationName);u.target===s&&c&&o()==="hiding"&&r("hidden")};s.addEventListener("animationstart",i),s.addEventListener("animationcancel",l),s.addEventListener("animationend",l),Z(()=>{s.removeEventListener("animationstart",i),s.removeEventListener("animationcancel",l),s.removeEventListener("animationend",l)})}),{present:()=>o()==="present"||o()==="hiding",state:o}},Px=kx,Pc=Px,Qn="data-kb-top-layer",xl=!1,Ca=[];yt={layers:Ca,isTopMostLayer:Ax,hasPointerBlockingLayer:Ml,isBelowPointerBlockingLayer:Rc,addLayer:Tx,removeLayer:Dx,indexOf:Hr,find:Mx,assignPointerEventToLayers:Ex,disableBodyPointerEvents:Fx,restoreBodyPointerEvents:Ox},Bx={};ss(Bx,{Button:()=>Nx,Root:()=>Al});$x=["button","color","file","image","reset","submit"];Nx=Al,zx=["top","right","bottom","left"],Jt=Math.min,Ct=Math.max,jn=Math.round,Gn=Math.floor,Va=e=>({x:e,y:e}),Ux={left:"right",right:"left",bottom:"top",top:"bottom"},Hx={start:"end",end:"start"};Qx=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:s}=a,i=n.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:c}=Pd(u,o,l),p=o,f={},m=0;for(let g=0;g<i.length;g++){let{name:h,fn:x}=i[g],{x:y,y:C,data:w,reset:L}=await x({x:d,y:c,initialPlacement:o,placement:p,strategy:r,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});d=y??d,c=C??c,f={...f,[h]:{...f[h],...w}},L&&m<=50&&(m++,typeof L=="object"&&(L.placement&&(p=L.placement),L.rects&&(u=L.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):L.rects),{x:d,y:c}=Pd(u,p,l)),g=-1)}return{x:d,y:c,placement:p,strategy:r,middlewareData:f}};jx=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:n,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:d=0}=yo(e,t)||{};if(u==null)return{};let c=Dc(d),p={x:a,y:o},f=Tl(r),m=Rl(f),g=await s.getDimensions(u),h=f==="y",x=h?"top":"left",y=h?"bottom":"right",C=h?"clientHeight":"clientWidth",w=n.reference[m]+n.reference[f]-p[f]-n.floating[m],L=p[f]-n.reference[f],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),D=E?E[C]:0;(!D||!await(s.isElement==null?void 0:s.isElement(E)))&&(D=i.floating[C]||n.floating[m]);let T=w/2-L/2,S=D/2-g[m]/2-1,I=Jt(c[x],S),_=Jt(c[y],S),F=I,re=D-g[m]-_,fe=D/2-g[m]/2+T,J=yl(F,fe,re),ne=!l.arrow&&Ho(r)!=null&&fe!==J&&n.reference[m]/2-(fe<F?I:_)-g[m]/2<0,me=ne?fe<F?fe-F:fe-re:0;return{[f]:p[f]+me,data:{[f]:J,centerOffset:fe-J-me,...ne&&{alignmentOffset:me}},reset:ne}}}),Xx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:r,middlewareData:n,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=yo(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let x=Ga(r),y=ho(i),C=Ga(i)===i,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),L=p||(C||!g?[Xn(i)]:Vx(i)),E=m!=="none";!p&&E&&L.push(...Kx(i,g,m,w));let D=[i,...L],T=await _r(t,h),S=[],I=((o=n.flip)==null?void 0:o.overflows)||[];if(d&&S.push(T[x]),c){let fe=_x(r,s,w);S.push(T[fe[0]],T[fe[1]])}if(I=[...I,{placement:r,overflows:S}],!S.every(fe=>fe<=0)){var _,F;let fe=(((_=n.flip)==null?void 0:_.index)||0)+1,J=D[fe];if(J)return{data:{index:fe,overflows:I},reset:{placement:J}};let ne=(F=I.filter(me=>me.overflows[0]<=0).sort((me,he)=>me.overflows[1]-he.overflows[1])[0])==null?void 0:F.placement;if(!ne)switch(f){case"bestFit":{var re;let me=(re=I.filter(he=>{if(E){let ve=ho(he.placement);return ve===y||ve==="y"}return!0}).map(he=>[he.placement,he.overflows.filter(ve=>ve>0).reduce((ve,Fe)=>ve+Fe,0)]).sort((he,ve)=>he[1]-ve[1])[0])==null?void 0:re[0];me&&(ne=me);break}case"initialPlacement":ne=i;break}if(r!==ne)return{reset:{placement:ne}}}return{}}}};Zx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a}=t,{strategy:o="referenceHidden",...r}=yo(e,t);switch(o){case"referenceHidden":{let n=await _r(t,{...r,elementContext:"reference"}),s=Md(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ad(s)}}}case"escaped":{let n=await _r(t,{...r,altBoundary:!0}),s=Md(n,a.floating);return{data:{escapedOffsets:s,escaped:Ad(s)}}}default:return{}}}}};Yx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:n,placement:s,middlewareData:i}=t,l=await Jx(t,e);return s===((a=i.offset)==null?void 0:a.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:n+l.y,data:{...l,placement:s}}}}},e1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:s=!1,limiter:i={fn:h=>{let{x,y}=h;return{x,y}}},...l}=yo(e,t),u={x:a,y:o},d=await _r(t,l),c=ho(Ga(r)),p=Tc(c),f=u[p],m=u[c];if(n){let h=p==="y"?"top":"left",x=p==="y"?"bottom":"right",y=f+d[h],C=f-d[x];f=yl(y,f,C)}if(s){let h=c==="y"?"top":"left",x=c==="y"?"bottom":"right",y=m+d[h],C=m-d[x];m=yl(y,m,C)}let g=i.fn({...t,[p]:f,[c]:m});return{...g,data:{x:g.x-a,y:g.y-o}}}}},t1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:o,platform:r,elements:n}=t,{apply:s=()=>{},...i}=yo(e,t),l=await _r(t,i),u=Ga(a),d=Ho(a),c=ho(a)==="y",{width:p,height:f}=o.floating,m,g;u==="top"||u==="bottom"?(m=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(g=u,m=d==="end"?"top":"bottom");let h=f-l.top-l.bottom,x=p-l.left-l.right,y=Jt(f-l[m],h),C=Jt(p-l[g],x),w=!t.middlewareData.shift,L=y,E=C;if(c?E=d||w?Jt(C,x):x:L=d||w?Jt(y,h):h,w&&!d){let T=Ct(l.left,0),S=Ct(l.right,0),I=Ct(l.top,0),_=Ct(l.bottom,0);c?E=p-2*(T!==0||S!==0?T+S:Ct(l.left,l.right)):L=f-2*(I!==0||_!==0?I+_:Ct(l.top,l.bottom))}await s({...t,availableWidth:E,availableHeight:L});let D=await r.getDimensions(n.floating);return p!==D.width||f!==D.height?{reset:{rects:!0}}:{}}}};r1=Va(0);g1=async function(e){let t=this.getOffsetParent||Nc,a=this.getDimensions,o=await a(e.floating);return{reference:m1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};zc={convertOffsetParentRelativeRectToViewportRelativeRect:s1,getDocumentElement:ba,getClippingRect:f1,getOffsetParent:Nc,getElementRects:g1,getClientRects:l1,getDimensions:p1,getScale:zo,isElement:zt,isRTL:h1};v1=Yx,C1=e1,b1=Xx,w1=t1,L1=Zx,S1=jx,I1=(e,t,a)=>{let o=new Map,r={platform:zc,...a},n={...r.platform,_c:o};return Qx(e,t,{...r,platform:n})},Ol=Qe();k1=K('<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">'),Cl=30,Ed=Cl/2,P1={top:180,right:-90,bottom:0,left:90};D1={top:"bottom",right:"left",bottom:"top",left:"right"};Uc=Object.assign(F1,{Arrow:$l,Context:Ol,usePopperContext:Bl,Positioner:A1});Od="interactOutside.pointerDownOutside",Bd="interactOutside.focusOutside";Hc=Qe();It={};ss(It,{Description:()=>gc,ErrorMessage:()=>hc,Item:()=>Wc,ItemControl:()=>Qc,ItemDescription:()=>jc,ItemIndicator:()=>Xc,ItemInput:()=>Zc,ItemLabel:()=>Jc,Label:()=>Yc,RadioGroup:()=>N1,Root:()=>ef});Vc=Qe();Kc=Qe();N1=Object.assign(ef,{Description:gc,ErrorMessage:hc,Item:Wc,ItemControl:Qc,ItemDescription:jc,ItemIndicator:Xc,ItemInput:Zc,ItemLabel:Jc,Label:Yc}),z1=class{collection;ref;collator;constructor(e,t,a){this.collection=e,this.ref=t,this.collator=a}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){let a=this.collection().getItem(t);if(a&&a.type==="item"&&!a.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){let a=this.collection().getItem(t);if(a&&a.type==="item"&&!a.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?.(),a=this.getItem(e);if(!t||!a)return;let o=Math.max(0,a.offsetTop+a.offsetHeight-t.offsetHeight),r=e;for(;r&&a&&a.offsetTop>o;)r=this.getKeyAbove(r),a=r!=null?this.getItem(r):null;return r}getKeyPageBelow(e){let t=this.ref?.(),a=this.getItem(e);if(!t||!a)return;let o=Math.min(t.scrollHeight,a.offsetTop-a.offsetHeight+t.offsetHeight),r=e;for(;r&&a&&a.offsetTop<o;)r=this.getKeyBelow(r),a=r!=null?this.getItem(r):null;return r}getKeyForSearch(e,t){let a=this.collator?.();if(!a)return;let o=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;o!=null;){let r=this.collection().getItem(o);if(r){let n=r.textValue.slice(0,e.length);if(r.textValue&&a.compare(n,e)===0)return o}o=this.getKeyBelow(o)}}};ul="focusScope.autoFocusOnMount",dl="focusScope.autoFocusOnUnmount",$d={bubbles:!1,cancelable:!0},qd={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=ml(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=ml(this.stack,e),this.active()?.resume()}};_1="data-live-announcer";$r=new WeakMap,St=[];Kn=new Map,K1=e=>{Q(()=>{let t=ot(e.style)??{},a=ot(e.properties)??[],o={};for(let n in t)o[n]=e.element.style[n];let r=Kn.get(e.key);r?r.activeCount++:Kn.set(e.key,{activeCount:1,originalStyles:o,properties:a.map(n=>n.key)}),Object.assign(e.element.style,e.style);for(let n of a)e.element.style.setProperty(n.key,n.value);Z(()=>{let n=Kn.get(e.key);if(n){if(n.activeCount!==1){n.activeCount--;return}Kn.delete(e.key);for(let[s,i]of Object.entries(n.originalStyles))e.element.style[s]=i;for(let s of n.properties)e.element.style.removeProperty(s);e.element.style.length===0&&e.element.removeAttribute("style"),e.cleanup?.()}})})},Nd=K1,W1=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},Q1=(e,t)=>{let a=getComputedStyle(e),o=t==="x"?a.overflowX:a.overflowY;return o==="auto"||o==="scroll"||e.tagName==="HTML"&&o==="visible"},j1=(e,t,a)=>{let o=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1,r=e,n=0,s=0,i=!1;do{let[l,u,d]=W1(r,t),c=d-l-o*u;(u!==0||c!==0)&&Q1(r,t)&&(n+=c,s+=u),r===(a??document.documentElement)?i=!0:r=r._$host??r.parentElement}while(r&&!i);return[n,s]},[zd,Ud]=N([]),X1=e=>zd().indexOf(e)===zd().length-1,Z1=e=>{let t=ae({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),a=xt(),o=[0,0],r=null,n=null;Q(()=>{ot(t.enabled)&&(Ud(u=>[...u,a]),Z(()=>{Ud(u=>u.filter(d=>d!==a))}))}),Q(()=>{if(!ot(t.enabled)||!ot(t.hideScrollbar))return;let{body:u}=document,d=window.innerWidth-u.offsetWidth;if(ot(t.preventScrollbarShift)){let c={overflow:"hidden"},p=[];d>0&&(ot(t.preventScrollbarShiftMode)==="padding"?c.paddingRight=`calc(${window.getComputedStyle(u).paddingRight} + ${d}px)`:c.marginRight=`calc(${window.getComputedStyle(u).marginRight} + ${d}px)`,p.push({key:"--scrollbar-width",value:`${d}px`}));let f=window.scrollY,m=window.scrollX;Nd({key:"prevent-scroll",element:u,style:c,properties:p,cleanup:()=>{ot(t.restoreScrollPosition)&&d>0&&window.scrollTo(m,f)}})}else Nd({key:"prevent-scroll",element:u,style:{overflow:"hidden"}})}),Q(()=>{!X1(a)||!ot(t.enabled)||(document.addEventListener("wheel",i,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),Z(()=>{document.removeEventListener("wheel",i),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",l)}))});let s=u=>{o=Hd(u),r=null,n=null},i=u=>{let d=u.target,c=ot(t.element),p=J1(u),f=Math.abs(p[0])>Math.abs(p[1])?"x":"y",m=f==="x"?p[0]:p[1],g=_d(d,f,m,c),h;c&&bl(c,d)?h=!g:h=!0,h&&u.cancelable&&u.preventDefault()},l=u=>{let d=ot(t.element),c=u.target,p;if(u.touches.length===2)p=!ot(t.allowPinchZoom);else{if(r==null||n===null){let f=Hd(u).map((g,h)=>o[h]-g),m=Math.abs(f[0])>Math.abs(f[1])?"x":"y";r=m,n=m==="x"?f[0]:f[1]}if(c.type==="range")p=!1;else{let f=_d(c,r,n,d);d&&bl(d,c)?p=!f:p=!0}}p&&u.cancelable&&u.preventDefault()}},J1=e=>[e.deltaX,e.deltaY],Hd=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],_d=(e,t,a,o)=>{let r=o!==null&&bl(o,e),[n,s]=j1(e,t,r?o:void 0);return!(a>0&&Math.abs(n)<=1||a<0&&Math.abs(s)<1)},bl=(e,t)=>{if(e.contains(t))return!0;let a=t;for(;a;){if(a===e)return!0;a=a._$host??a.parentElement}return!1},Y1=Z1,ey=Y1,tf=Qe();of=Qe();rf=Qe();ty=Qe();Gr={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Gr.next(e==="ltr"?"rtl":"ltr",t)},Vd={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};ay=Qe();df=Qe();yf=Qe();iy={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};Gd=["Enter"," "],uy={open:(e,t)=>e==="ltr"?[...Gd,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...Gd,t==="horizontal"?"ArrowLeft":"ArrowUp"]};cy={};ss(cy,{Root:()=>ds,Separator:()=>fy});fy=ds,He={};ss(He,{Arrow:()=>$l,CheckboxItem:()=>nf,Content:()=>If,DropdownMenu:()=>py,Group:()=>zl,GroupLabel:()=>cf,Icon:()=>ff,Item:()=>pf,ItemDescription:()=>mf,ItemIndicator:()=>gf,ItemLabel:()=>hf,Portal:()=>xf,RadioGroup:()=>vf,RadioItem:()=>Cf,Root:()=>kf,Separator:()=>ds,Sub:()=>wf,SubContent:()=>Lf,SubTrigger:()=>Sf,Trigger:()=>sf});py=Object.assign(kf,{Arrow:$l,CheckboxItem:nf,Content:If,Group:zl,GroupLabel:cf,Icon:ff,Item:pf,ItemDescription:mf,ItemIndicator:gf,ItemLabel:hf,Portal:xf,RadioGroup:vf,RadioItem:Cf,Separator:ds,Sub:wf,SubContent:Lf,SubTrigger:Sf,Trigger:sf}),M={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}},my=K('<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>'),gy=K('<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>'),hy=K('<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>'),xy=K('<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>'),Ul=K('<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>'),yy=K('<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>'),vy=K('<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>'),Cy=K('<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>'),by=K('<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">'),wy=K('<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">'),Ly=K('<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>'),Sy=K('<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>'),Iy=K('<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>'),ky=K('<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>'),Pf=K('<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>'),Py=K('<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>'),My=K('<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>'),Ay=K('<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>'),Ry=K('<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>'),Ty=K('<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>'),Dy=K('<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>'),Ey=K('<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>'),Fy=K('<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>');tv=K('<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>'),av=K('<button title="Copy object to clipboard">'),ov=K('<button title="Remove all items"aria-label="Remove all items">'),rv=K('<button title="Delete item"aria-label="Delete item">'),nv=K('<button title="Toggle value"aria-label="Toggle value">'),sv=K('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),qr=K("<div>"),lv=K("<div><button> <span></span> <span> "),iv=K("<input>"),jd=K("<span>"),uv=K("<div><span>:"),dv=K("<div><div><button> [<!>...<!>]");Xd=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a));return(()=>{var r=tv();return W(()=>B(r,U(o().expander,a`
|
|
1
|
+
"use strict";var Vm=Object.create;var bn=Object.defineProperty;var Gm=Object.getOwnPropertyDescriptor;var Km=Object.getOwnPropertyNames;var Wm=Object.getPrototypeOf,Qm=Object.prototype.hasOwnProperty;var tr=(e,t)=>()=>(e&&(t=e(e=0)),t);var wn=(e,t)=>{for(var a in t)bn(e,a,{get:t[a],enumerable:!0})},Cn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Km(t))!Qm.call(e,r)&&r!==a&&bn(e,r,{get:()=>t[r],enumerable:!(o=Gm(t,r))||o.enumerable});return e},ma=(e,t,a)=>(Cn(e,t,"default"),a&&Cn(a,t,"default")),ge=(e,t,a)=>(a=e!=null?Vm(Wm(e)):{},Cn(t||!e||!e.__esModule?bn(a,"default",{value:e,enumerable:!0}):a,e)),jm=e=>Cn(bn({},"__esModule",{value:!0}),e);var b=tr(()=>{});function cu(e){let t=String(e),a=t.length-1;return Y.context.id+(a?String.fromCharCode(96+a):"")+t}function uo(e){Y.context=e}function Ag(){return{...Y.context,id:Y.getNextContextId(),count:0}}function Zt(e,t){let a=we,o=le,r=e.length===0,n=t===void 0?o:t,s=r?ku:{owned:null,cleanups:null,context:n?n.context:null,owner:n},i=r?e:()=>e(()=>ke(()=>Ua(s)));le=s,we=null;try{return ct(i,!0)}finally{we=a,le=o}}function N(e,t){t=t?Object.assign({},Tn,t):Tn;let a={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},o=r=>(typeof r=="function"&&(q&&q.running&&q.sources.has(a)?r=r(a.tValue):r=r(a.value)),Du(a,r));return[Tu.bind(a),o]}function Dn(e,t,a){let o=$n(e,t,!0,ht);Oo&&q&&q.running?ze.push(o):Bo(o)}function W(e,t,a){let o=$n(e,t,!1,ht);Oo&&q&&q.running?ze.push(o):Bo(o)}function Q(e,t,a){Iu=qg;let o=$n(e,t,!1,ht),r=kr&&Ue(kr);r&&(o.suspense=r),(!a||!a.render)&&(o.user=!0),tt?tt.push(o):Bo(o)}function k(e,t,a){a=a?Object.assign({},Tn,a):Tn;let o=$n(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=a.equals||void 0,Oo&&q&&q.running?(o.tState=ht,ze.push(o)):Bo(o),Tu.bind(o)}function Dg(e){return e&&typeof e=="object"&&"then"in e}function Eg(e,t,a){let o,r,n;o=!0,r=e,n={};let s=null,i=Hs,l=null,u=!1,d=!1,c="initialValue"in n,p=typeof o=="function"&&k(o),f=new Set,[m,g]=(n.storage||N)(n.initialValue),[h,x]=N(void 0),[y,C]=N(void 0,{equals:!1}),[w,L]=N(c?"ready":"unresolved");Y.context&&(l=Y.getNextContextId(),n.ssrLoadFrom==="initial"?i=n.initialValue:Y.load&&Y.has(l)&&(i=Y.load(l)));function E(I,_,F,re){return s===I&&(s=null,re!==void 0&&(c=!0),(I===i||_===i)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(re,{value:_})),i=Hs,q&&I&&u?(q.promises.delete(I),u=!1,ct(()=>{q.running=!0,D(_,F)},!1)):D(_,F)),_}function D(I,_){ct(()=>{_===void 0&&g(()=>I),L(_!==void 0?"errored":c?"ready":"unresolved"),x(_);for(let F of f.keys())F.decrement();f.clear()},!1)}function T(){let I=kr&&Ue(kr),_=m(),F=h();if(F!==void 0&&!s)throw F;return we&&!we.user&&I&&Dn(()=>{y(),s&&(I.resolved&&q&&u?q.promises.add(s):f.has(I)||(I.increment(),f.add(I)))}),_}function S(I=!0){if(I!==!1&&d)return;d=!1;let _=p?p():o;if(u=q&&q.running,_==null||_===!1){E(s,ke(m));return}q&&s&&q.promises.delete(s);let F=i!==Hs?i:ke(()=>r(_,{value:m(),refetching:I}));return Dg(F)?(s=F,"value"in F?(F.status==="success"?E(s,F.value,void 0,_):E(s,void 0,Gs(F.value),_),F):(d=!0,queueMicrotask(()=>d=!1),ct(()=>{L(c?"refreshing":"pending"),C()},!1),F.then(re=>E(F,re,void 0,_),re=>E(F,void 0,Gs(re),_)))):(E(s,F,void 0,_),F)}return Object.defineProperties(T,{state:{get:()=>w()},error:{get:()=>h()},loading:{get(){let I=w();return I==="pending"||I==="refreshing"}},latest:{get(){if(!c)return T();let I=h();if(I&&!s)throw I;return m()}}}),p?Dn(()=>S(!1)):S(!1),[T,{refetch:S,mutate:g}]}function Pu(e){return ct(e,!1)}function ke(e){if(!Eo&&we===null)return e();let t=we;we=null;try{return Eo?Eo.untrack(e):e()}finally{we=t}}function Jt(e,t,a){let o=Array.isArray(e),r,n=a&&a.defer;return s=>{let i;if(o){i=Array(e.length);for(let u=0;u<e.length;u++)i[u]=e[u]()}else i=e();if(n)return n=!1,s;let l=ke(()=>t(i,r,s));return r=i,l}}function ha(e){Q(()=>ke(e))}function Z(e){return le===null||(le.cleanups===null?le.cleanups=[e]:le.cleanups.push(e)),e}function En(){return le}function Fg(e,t){let a=le,o=we;le=e,we=null;try{return ct(t,!0)}catch(r){qn(r)}finally{le=a,we=o}}function Mu(e){if(q&&q.running)return e(),q.done;let t=we,a=le;return Promise.resolve().then(()=>{we=t,le=a;let o;return(Oo||kr)&&(o=q||(q={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),o.done||(o.done=new Promise(r=>o.resolve=r)),o.running=!0),ct(e,!1),we=le=null,o?o.done:void 0})}function Ru(){return[Og,Mu]}function Qe(e,t){let a=Symbol("context");return{id:a,Provider:Ng(a),defaultValue:e}}function Ue(e){let t;return le&&le.context&&(t=le.context[e.id])!==void 0?t:e.defaultValue}function Au(e){let t=k(e),a=k(()=>Ks(t()));return a.toArray=()=>{let o=a();return Array.isArray(o)?o:o!=null?[o]:[]},a}function Tu(){let e=q&&q.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===ht)Bo(this);else{let t=ze;ze=null,ct(()=>Fn(this),!1),ze=t}if(we){let t=this.observers?this.observers.length:0;we.sources?(we.sources.push(this),we.sourceSlots.push(t)):(we.sources=[this],we.sourceSlots=[t]),this.observers?(this.observers.push(we),this.observerSlots.push(we.sources.length-1)):(this.observers=[we],this.observerSlots=[we.sources.length-1])}return e&&q.sources.has(this)?this.tValue:this.value}function Du(e,t,a){let o=q&&q.running&&q.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(o,t)){if(q){let r=q.running;(r||!a&&q.sources.has(e))&&(q.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&ct(()=>{for(let r=0;r<e.observers.length;r+=1){let n=e.observers[r],s=q&&q.running;s&&q.disposed.has(n)||((s?!n.tState:!n.state)&&(n.pure?ze.push(n):tt.push(n),n.observers&&Fu(n)),s?n.tState=ht:n.state=ht)}if(ze.length>1e6)throw ze=[],new Error},!1)}return t}function Bo(e){if(!e.fn)return;Ua(e);let t=Bn;mu(e,q&&q.running&&q.sources.has(e)?e.tValue:e.value,t),q&&!q.running&&q.sources.has(e)&&queueMicrotask(()=>{ct(()=>{q&&(q.running=!0),we=le=e,mu(e,e.tValue,t),we=le=null},!1)})}function mu(e,t,a){let o,r=le,n=we;we=le=e;try{o=e.fn(t)}catch(s){return e.pure&&(q&&q.running?(e.tState=ht,e.tOwned&&e.tOwned.forEach(Ua),e.tOwned=void 0):(e.state=ht,e.owned&&e.owned.forEach(Ua),e.owned=null)),e.updatedAt=a+1,qn(s)}finally{we=n,le=r}(!e.updatedAt||e.updatedAt<=a)&&(e.updatedAt!=null&&"observers"in e?Du(e,o,!0):q&&q.running&&e.pure?(q.sources.add(e),e.tValue=o):e.value=o,e.updatedAt=a)}function $n(e,t,a,o=ht,r){let n={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:le,context:le?le.context:null,pure:a};if(q&&q.running&&(n.state=0,n.tState=o),le===null||le!==ku&&(q&&q.running&&le.pure?le.tOwned?le.tOwned.push(n):le.tOwned=[n]:le.owned?le.owned.push(n):le.owned=[n]),Eo&&n.fn){let[s,i]=N(void 0,{equals:!1}),l=Eo.factory(n.fn,i);Z(()=>l.dispose());let u=()=>Mu(i).then(()=>d.dispose()),d=Eo.factory(n.fn,u);n.fn=c=>(s(),q&&q.running?d.track(c):l.track(c))}return n}function Pr(e){let t=q&&q.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===Ir)return Fn(e);if(e.suspense&&ke(e.suspense.inFallback))return e.suspense.effects.push(e);let a=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Bn);){if(t&&q.disposed.has(e))return;(t?e.tState:e.state)&&a.push(e)}for(let o=a.length-1;o>=0;o--){if(e=a[o],t){let r=e,n=a[o+1];for(;(r=r.owner)&&r!==n;)if(q.disposed.has(r))return}if((t?e.tState:e.state)===ht)Bo(e);else if((t?e.tState:e.state)===Ir){let r=ze;ze=null,ct(()=>Fn(e,a[0]),!1),ze=r}}}function ct(e,t){if(ze)return e();let a=!1;t||(ze=[]),tt?a=!0:tt=[],Bn++;try{let o=e();return Bg(a),o}catch(o){a||(tt=null),ze=null,qn(o)}}function Bg(e){if(ze&&(Oo&&q&&q.running?$g(ze):Eu(ze),ze=null),e)return;let t;if(q){if(!q.promises.size&&!q.queue.size){let o=q.sources,r=q.disposed;tt.push.apply(tt,q.effects),t=q.resolve;for(let n of tt)"tState"in n&&(n.state=n.tState),delete n.tState;q=null,ct(()=>{for(let n of r)Ua(n);for(let n of o){if(n.value=n.tValue,n.owned)for(let s=0,i=n.owned.length;s<i;s++)Ua(n.owned[s]);n.tOwned&&(n.owned=n.tOwned),delete n.tValue,delete n.tOwned,n.tState=0}pu(!1)},!1)}else if(q.running){q.running=!1,q.effects.push.apply(q.effects,tt),tt=null,pu(!0);return}}let a=tt;tt=null,a.length&&ct(()=>Iu(a),!1),t&&t()}function Eu(e){for(let t=0;t<e.length;t++)Pr(e[t])}function $g(e){for(let t=0;t<e.length;t++){let a=e[t],o=q.queue;o.has(a)||(o.add(a),Oo(()=>{o.delete(a),ct(()=>{q.running=!0,Pr(a)},!1),q&&(q.running=!1)}))}}function qg(e){let t,a=0;for(t=0;t<e.length;t++){let o=e[t];o.user?e[a++]=o:Pr(o)}if(Y.context){if(Y.count){Y.effects||(Y.effects=[]),Y.effects.push(...e.slice(0,a));return}uo()}for(Y.effects&&(Y.done||!Y.count)&&(e=[...Y.effects,...e],a+=Y.effects.length,delete Y.effects),t=0;t<a;t++)Pr(e[t])}function Fn(e,t){let a=q&&q.running;a?e.tState=0:e.state=0;for(let o=0;o<e.sources.length;o+=1){let r=e.sources[o];if(r.sources){let n=a?r.tState:r.state;n===ht?r!==t&&(!r.updatedAt||r.updatedAt<Bn)&&Pr(r):n===Ir&&Fn(r,t)}}}function Fu(e){let t=q&&q.running;for(let a=0;a<e.observers.length;a+=1){let o=e.observers[a];(t?!o.tState:!o.state)&&(t?o.tState=Ir:o.state=Ir,o.pure?ze.push(o):tt.push(o),o.observers&&Fu(o))}}function Ua(e){let t;if(e.sources)for(;e.sources.length;){let a=e.sources.pop(),o=e.sourceSlots.pop(),r=a.observers;if(r&&r.length){let n=r.pop(),s=a.observerSlots.pop();o<r.length&&(n.sourceSlots[s]=o,r[o]=n,a.observerSlots[o]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Ua(e.tOwned[t]);delete e.tOwned}if(q&&q.running&&e.pure)Ou(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)Ua(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}q&&q.running?e.tState=0:e.state=0}function Ou(e,t){if(t||(e.tState=0,q.disposed.add(e)),e.owned)for(let a=0;a<e.owned.length;a++)Ou(e.owned[a])}function Gs(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function gu(e,t,a){try{for(let o of t)o(e)}catch(o){qn(o,a&&a.owner||null)}}function qn(e,t=le){let a=fu&&t&&t.context&&t.context[fu],o=Gs(e);if(!a)throw o;tt?tt.push({fn(){gu(o,a,t)},state:ht}):gu(o,a,t)}function Ks(e){if(typeof e=="function"&&!e.length)return Ks(e());if(Array.isArray(e)){let t=[];for(let a=0;a<e.length;a++){let o=Ks(e[a]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return t}return e}function Ng(e,t){return function(o){let r;return W(()=>r=ke(()=>(le.context={...le.context,[e]:o.value},Au(()=>o.children))),void 0),r}}function On(e){for(let t=0;t<e.length;t++)e[t]()}function zg(e,t,a={}){let o=[],r=[],n=[],s=0,i=t.length>1?[]:null;return Z(()=>On(n)),()=>{let l=e()||[],u=l.length,d,c;return l[Dr],ke(()=>{let f,m,g,h,x,y,C,w,L;if(u===0)s!==0&&(On(n),n=[],o=[],r=[],s=0,i&&(i=[])),a.fallback&&(o=[Ws],r[0]=Zt(E=>(n[0]=E,a.fallback())),s=1);else if(s===0){for(r=new Array(u),c=0;c<u;c++)o[c]=l[c],r[c]=Zt(p);s=u}else{for(g=new Array(u),h=new Array(u),i&&(x=new Array(u)),y=0,C=Math.min(s,u);y<C&&o[y]===l[y];y++);for(C=s-1,w=u-1;C>=y&&w>=y&&o[C]===l[w];C--,w--)g[w]=r[C],h[w]=n[C],i&&(x[w]=i[C]);for(f=new Map,m=new Array(w+1),c=w;c>=y;c--)L=l[c],d=f.get(L),m[c]=d===void 0?-1:d,f.set(L,c);for(d=y;d<=C;d++)L=o[d],c=f.get(L),c!==void 0&&c!==-1?(g[c]=r[d],h[c]=n[d],i&&(x[c]=i[d]),c=m[c],f.set(L,c)):n[d]();for(c=y;c<u;c++)c in g?(r[c]=g[c],n[c]=h[c],i&&(i[c]=x[c],i[c](c))):r[c]=Zt(p);r=r.slice(0,s=u),o=l.slice(0)}return r});function p(f){if(n[c]=f,i){let[m,g]=N(c);return i[c]=g,t(l[c],m)}return t(l[c])}}}function Ug(e,t,a={}){let o=[],r=[],n=[],s=[],i=0,l;return Z(()=>On(n)),()=>{let u=e()||[],d=u.length;return u[Dr],ke(()=>{if(d===0)return i!==0&&(On(n),n=[],o=[],r=[],i=0,s=[]),a.fallback&&(o=[Ws],r[0]=Zt(p=>(n[0]=p,a.fallback())),i=1),r;for(o[0]===Ws&&(n[0](),n=[],o=[],r=[],i=0),l=0;l<d;l++)l<o.length&&o[l]!==u[l]?s[l](()=>u[l]):l>=o.length&&(r[l]=Zt(c));for(;l<o.length;l++)n[l]();return i=s.length=n.length=d,o=u.slice(0),r=r.slice(0,i)});function c(p){n[l]=p;let[f,m]=N(u[l]);return s[l]=m,t(f,l)}}}function v(e,t){if(Hg&&Y.context){let a=Y.context;uo(Ag());let o=ke(()=>e(t||{}));return uo(a),o}return ke(()=>e(t||{}))}function kn(){return!0}function _s(e){return(e=typeof e=="function"?e():e)?e:{}}function _g(){for(let e=0,t=this.length;e<t;++e){let a=this[e]();if(a!==void 0)return a}}function te(...e){let t=!1;for(let s=0;s<e.length;s++){let i=e[s];t=t||!!i&&An in i,e[s]=typeof i=="function"?(t=!0,k(i)):i}if(Su&&t)return new Proxy({get(s){for(let i=e.length-1;i>=0;i--){let l=_s(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in _s(e[i]))return!0;return!1},keys(){let s=[];for(let i=0;i<e.length;i++)s.push(...Object.keys(_s(e[i])));return[...new Set(s)]}},Qs);let a={},o=Object.create(null);for(let s=e.length-1;s>=0;s--){let i=e[s];if(!i)continue;let l=Object.getOwnPropertyNames(i);for(let u=l.length-1;u>=0;u--){let d=l[u];if(d==="__proto__"||d==="constructor")continue;let c=Object.getOwnPropertyDescriptor(i,d);if(!o[d])o[d]=c.get?{enumerable:!0,configurable:!0,get:_g.bind(a[d]=[c.get.bind(i)])}:c.value!==void 0?c:void 0;else{let p=a[d];p&&(c.get?p.push(c.get.bind(i)):c.value!==void 0&&p.push(()=>c.value))}}}let r={},n=Object.keys(o);for(let s=n.length-1;s>=0;s--){let i=n[s],l=o[i];l&&l.get?Object.defineProperty(r,i,l):r[i]=l?l.value:void 0}return r}function ye(e,...t){if(Su&&An in e){let r=new Set(t.length>1?t.flat():t[0]),n=t.map(s=>new Proxy({get(i){return s.includes(i)?e[i]:void 0},has(i){return s.includes(i)&&i in e},keys(){return s.filter(i=>i in e)}},Qs));return n.push(new Proxy({get(s){return r.has(s)?void 0:e[s]},has(s){return r.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!r.has(s))}},Qs)),n}let a={},o=t.map(()=>({}));for(let r of Object.getOwnPropertyNames(e)){let n=Object.getOwnPropertyDescriptor(e,r),s=!n.get&&!n.set&&n.enumerable&&n.writable&&n.configurable,i=!1,l=0;for(let u of t)u.includes(r)&&(i=!0,s?o[l][r]=n.value:Object.defineProperty(o[l],r,n)),++l;i||(s?a[r]=n.value:Object.defineProperty(a,r,n))}return[...o,a]}function el(e){let t,a,o=r=>{let n=Y.context;if(n){let[i,l]=N();Y.count||(Y.count=0),Y.count++,(a||(a=e())).then(u=>{!Y.done&&uo(n),Y.count--,l(()=>u.default),uo()}),t=i}else if(!t){let[i]=Eg(()=>(a||(a=e())).then(l=>l.default));t=i}let s;return k(()=>(s=t())?ke(()=>{if(!n||Y.done)return s(r);let i=Y.context;uo(n);let l=s(r);return uo(i),l}):"")};return o.preload=()=>a||((a=e()).then(r=>t=()=>r.default),a),o}function xt(){return Y.context?Y.getNextContextId():`cl-${Vg++}`}function $u(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(zg(()=>e.each,e.children,t||void 0))}function qu(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(Ug(()=>e.each,e.children,t||void 0))}function j(e){let t=e.keyed,a=k(()=>e.when,void 0,void 0),o=t?a:k(a,void 0,{equals:(r,n)=>!r==!n});return k(()=>{let r=o();if(r){let n=e.children;return typeof n=="function"&&n.length>0?ke(()=>n(t?r:()=>{if(!ke(o))throw Bu("Show");return a()})):n}return e.fallback},void 0,void 0)}function Nu(e){let t=Au(()=>e.children),a=k(()=>{let o=t(),r=Array.isArray(o)?o:[o],n=()=>{};for(let s=0;s<r.length;s++){let i=s,l=r[s],u=n,d=k(()=>u()?void 0:l.when,void 0,void 0),c=l.keyed?d:k(d,void 0,{equals:(p,f)=>!p==!f});n=()=>u()||(c()?[i,d,l]:void 0)}return n});return k(()=>{let o=a()();if(!o)return e.fallback;let[r,n,s]=o,i=s.children;return typeof i=="function"&&i.length>0?ke(()=>i(s.keyed?n():()=>{if(ke(a)()?.[0]!==r)throw Bu("Match");return n()})):i},void 0,void 0)}function Nn(e){return e}function Xg(e,t){let a=jg[e];return typeof a=="object"?a[t]?a.$:void 0:a}function eh(e,t,a){let o=a.length,r=t.length,n=o,s=0,i=0,l=t[r-1].nextSibling,u=null;for(;s<r||i<n;){if(t[s]===a[i]){s++,i++;continue}for(;t[r-1]===a[n-1];)r--,n--;if(r===s){let d=n<o?i?a[i-1].nextSibling:a[n-i]:l;for(;i<n;)e.insertBefore(a[i++],d)}else if(n===i)for(;s<r;)(!u||!u.has(t[s]))&&t[s].remove(),s++;else if(t[s]===a[n-1]&&a[i]===t[r-1]){let d=t[--r].nextSibling;e.insertBefore(a[i++],t[s++].nextSibling),e.insertBefore(a[--n],d),t[r]=a[n]}else{if(!u){u=new Map;let c=i;for(;c<n;)u.set(a[c],c++)}let d=u.get(t[s]);if(d!=null)if(i<d&&d<n){let c=s,p=1,f;for(;++c<r&&c<n&&!((f=u.get(t[c]))==null||f!==d+p);)p++;if(p>d-i){let m=t[s];for(;i<d;)e.insertBefore(a[i++],m)}else e.replaceChild(a[i++],t[s++])}else s++;else t[s++].remove()}}}function tl(e,t,a,o={}){let r;return Zt(n=>{r=n,t===document?e():P(t,e(),t.firstChild?null:void 0,a)},o.owner),()=>{r(),t.textContent=""}}function K(e,t,a,o){let r,n=()=>{let i=o?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return i.innerHTML=e,a?i.content.firstChild.firstChild:o?i.firstChild:i.content.firstChild},s=t?()=>ke(()=>document.importNode(r||(r=n()),!0)):()=>(r||(r=n())).cloneNode(!0);return s.cloneNode=s,s}function Er(e,t=window.document){let a=t[Lr]||(t[Lr]=new Set);for(let o=0,r=e.length;o<r;o++){let n=e[o];a.has(n)||(a.add(n),t.addEventListener(n,Hu))}}function Uu(e=window.document){if(e[Lr]){for(let t of e[Lr].keys())e.removeEventListener(t,Hu);delete e[Lr]}}function O(e,t,a){fo(e)||(a==null?e.removeAttribute(t):e.setAttribute(t,a))}function th(e,t,a,o){fo(e)||(o==null?e.removeAttributeNS(t,a):e.setAttributeNS(t,a,o))}function ah(e,t,a){fo(e)||(a?e.setAttribute(t,""):e.removeAttribute(t))}function B(e,t){fo(e)||(t==null?e.removeAttribute("class"):e.className=t)}function al(e,t,a,o){if(o)Array.isArray(a)?(e[`$$${t}`]=a[0],e[`$$${t}Data`]=a[1]):e[`$$${t}`]=a;else if(Array.isArray(a)){let r=a[0];e.addEventListener(t,a[0]=n=>r.call(e,a[1],n))}else e.addEventListener(t,a,typeof a!="function"&&a)}function oh(e,t,a={}){let o=Object.keys(t||{}),r=Object.keys(a),n,s;for(n=0,s=r.length;n<s;n++){let i=r[n];!i||i==="undefined"||t[i]||(hu(e,i,!1),delete a[i])}for(n=0,s=o.length;n<s;n++){let i=o[n],l=!!t[i];!i||i==="undefined"||a[i]===l||!l||(hu(e,i,!0),a[i]=l)}return a}function rh(e,t,a){if(!t)return a?O(e,"style"):t;let o=e.style;if(typeof t=="string")return o.cssText=t;typeof a=="string"&&(o.cssText=a=void 0),a||(a={}),t||(t={});let r,n;for(n in a)t[n]==null&&o.removeProperty(n),delete a[n];for(n in t)r=t[n],r!==a[n]&&(o.setProperty(n,r),a[n]=r);return a}function ol(e,t={},a,o){let r={};return o||W(()=>r.children=Mr(e,t.children,r.children)),W(()=>typeof t.ref=="function"&&co(t.ref,e)),W(()=>nh(e,t,a,!0,r,!0)),r}function co(e,t,a){return ke(()=>e(t,a))}function P(e,t,a,o){if(a!==void 0&&!o&&(o=[]),typeof t!="function")return Mr(e,t,o,a);W(r=>Mr(e,t(),r,a),o)}function nh(e,t,a,o,r={},n=!1){t||(t={});for(let s in r)if(!(s in t)){if(s==="children")continue;r[s]=xu(e,s,null,r[s],a,n,t)}for(let s in t){if(s==="children")continue;let i=t[s];r[s]=xu(e,s,i,r[s],a,n,t)}}function sh(e){let t,a;return!fo()||!(t=Y.registry.get(a=ih()))?e():(Y.completed&&Y.completed.add(t),Y.registry.delete(a),t)}function fo(e){return!!Y.context&&!Y.done&&(!e||e.isConnected)}function lh(e){return e.toLowerCase().replace(/-([a-z])/g,(t,a)=>a.toUpperCase())}function hu(e,t,a){let o=t.trim().split(/\s+/);for(let r=0,n=o.length;r<n;r++)e.classList.toggle(o[r],a)}function xu(e,t,a,o,r,n,s){let i,l,u,d,c;if(t==="style")return rh(e,a,o);if(t==="classList")return oh(e,a,o);if(a===o)return o;if(t==="ref")n||a(e);else if(t.slice(0,3)==="on:"){let p=t.slice(3);o&&e.removeEventListener(p,o,typeof o!="function"&&o),a&&e.addEventListener(p,a,typeof a!="function"&&a)}else if(t.slice(0,10)==="oncapture:"){let p=t.slice(10);o&&e.removeEventListener(p,o,!0),a&&e.addEventListener(p,a,!0)}else if(t.slice(0,2)==="on"){let p=t.slice(2).toLowerCase(),f=Zg.has(p);if(!f&&o){let m=Array.isArray(o)?o[0]:o;e.removeEventListener(p,m)}(f||a)&&(al(e,p,a,f),f&&Er([p]))}else if(t.slice(0,5)==="attr:")O(e,t.slice(5),a);else if(t.slice(0,5)==="bool:")ah(e,t.slice(5),a);else if((c=t.slice(0,5)==="prop:")||(u=Wg.has(t))||!r&&((d=Xg(t,e.tagName))||(l=Kg.has(t)))||(i=e.nodeName.includes("-")||"is"in s)){if(c)t=t.slice(5),l=!0;else if(fo(e))return a;t==="class"||t==="className"?B(e,a):i&&!l&&!u?e[lh(t)]=a:e[d||t]=a}else{let p=r&&t.indexOf(":")>-1&&Yg[t.split(":")[0]];p?th(e,p,t,a):O(e,Qg[t]||t,a)}return a}function Hu(e){if(Y.registry&&Y.events&&Y.events.find(([l,u])=>u===e))return;let t=e.target,a=`$$${e.type}`,o=e.target,r=e.currentTarget,n=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),s=()=>{let l=t[a];if(l&&!t.disabled){let u=t[`${a}Data`];if(u!==void 0?l.call(t,u,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&n(t.host),!0},i=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),Y.registry&&!Y.done&&(Y.done=_$HY.done=!0),e.composedPath){let l=e.composedPath();n(l[0]);for(let u=0;u<l.length-2&&(t=l[u],!!s());u++){if(t._$host){t=t._$host,i();break}if(t.parentNode===r)break}}else i();n(o)}function Mr(e,t,a,o,r){let n=fo(e);if(n){!a&&(a=[...e.childNodes]);let l=[];for(let u=0;u<a.length;u++){let d=a[u];d.nodeType===8&&d.data.slice(0,2)==="!$"?d.remove():l.push(d)}a=l}for(;typeof a=="function";)a=a();if(t===a)return a;let s=typeof t,i=o!==void 0;if(e=i&&a[0]&&a[0].parentNode||e,s==="string"||s==="number"){if(n||s==="number"&&(t=t.toString(),t===a))return a;if(i){let l=a[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),a=Ao(e,a,o,l)}else a!==""&&typeof a=="string"?a=e.firstChild.data=t:a=e.textContent=t}else if(t==null||s==="boolean"){if(n)return a;a=Ao(e,a,o)}else{if(s==="function")return W(()=>{let l=t();for(;typeof l=="function";)l=l();a=Mr(e,l,a,o)}),()=>a;if(Array.isArray(t)){let l=[],u=a&&Array.isArray(a);if(js(l,t,a,r))return W(()=>a=Mr(e,l,a,o,!0)),()=>a;if(n){if(!l.length)return a;if(o===void 0)return a=[...e.childNodes];let d=l[0];if(d.parentNode!==e)return a;let c=[d];for(;(d=d.nextSibling)!==o;)c.push(d);return a=c}if(l.length===0){if(a=Ao(e,a,o),i)return a}else u?a.length===0?yu(e,l,o):eh(e,a,l):(a&&Ao(e),yu(e,l));a=l}else if(t.nodeType){if(n&&t.parentNode)return a=i?[t]:t;if(Array.isArray(a)){if(i)return a=Ao(e,a,o,t);Ao(e,a,null,t)}else a==null||a===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);a=t}}return a}function js(e,t,a,o){let r=!1;for(let n=0,s=t.length;n<s;n++){let i=t[n],l=a&&a[e.length],u;if(!(i==null||i===!0||i===!1))if((u=typeof i)=="object"&&i.nodeType)e.push(i);else if(Array.isArray(i))r=js(e,i,l)||r;else if(u==="function")if(o){for(;typeof i=="function";)i=i();r=js(e,Array.isArray(i)?i:[i],Array.isArray(l)?l:[l])||r}else e.push(i),r=!0;else{let d=String(i);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d))}}return r}function yu(e,t,a=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],a)}function Ao(e,t,a,o){if(a===void 0)return e.textContent="";let r=o||document.createTextNode("");if(t.length){let n=!1;for(let s=t.length-1;s>=0;s--){let i=t[s];if(r!==i){let l=i.parentNode===e;!n&&!s?l?e.replaceChild(r,i):e.insertBefore(r,a):l&&i.remove()}else n=!0}}else e.insertBefore(r,a);return[r]}function ih(){return Y.getNextContextId()}function _u(e,t=!1){return t?document.createElementNS(uh,e):document.createElement(e)}function rl(e){let{useShadow:t}=e,a=document.createTextNode(""),o=()=>e.mount||document.body,r=En(),n,s=!!Y.context;return Q(()=>{s&&(En().user=s=!1),n||(n=Fg(r,()=>k(()=>e.children)));let i=o();if(i instanceof HTMLHeadElement){let[l,u]=N(!1),d=()=>u(!0);Zt(c=>P(i,()=>l()?c():n(),null)),Z(d)}else{let l=_u(e.isSVG?"g":"div",e.isSVG),u=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return a.parentNode},configurable:!0}),P(u,n),i.appendChild(l),e.ref&&e.ref(l),Z(()=>i.removeChild(l))}},void 0,{render:!s}),a}function dh(e,t){let a=k(e);return k(()=>{let o=a();switch(typeof o){case"function":return ke(()=>o(t));case"string":let r=Jg.has(o),n=Y.context?sh():_u(o,r);return ol(n,t,r),n}})}function Vu(e){let[,t]=ye(e,["component"]);return dh(()=>e.component,t)}function ph(e){if("values"in Object)return Object.values(e);let t=[];for(let a in e)e.hasOwnProperty(a)&&t.push(e[a]);return t}function mh(e,t){let a=ph(e);if("find"in a)return a.find(t);let o=a;for(let r=0;r<o.length;r++){let n=o[r];if(t(n))return n}}function Fo(e,t){Object.entries(e).forEach(([a,o])=>t(o,a))}function Rn(e,t){return e.indexOf(t)!==-1}function vu(e,t){for(let a=0;a<e.length;a++){let o=e[a];if(t(o))return o}}function Xt(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function zn(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function Ju(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function ad(e){if(Rn(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Rn(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Rn(e,"constructor"))throw new Error("constructor is not allowed as a property")}function Js(e,t,a=[]){if(!e)return;if(!Ha(e)){Fo(e,(n,s)=>Js(n,t,[...a,...Sr(s)]));return}let[o,r]=e;r&&Fo(r,(n,s)=>{Js(n,t,[...a,...Sr(s)])}),t(o,a)}function Eh(e,t,a){return Js(t,(o,r)=>{e=Zs(e,r,n=>Th(n,o,a))}),e}function Fh(e,t){function a(o,r){let n=Dh(e,Sr(r));o.map(Sr).forEach(s=>{e=Zs(e,s,()=>n)})}if(Ha(t)){let[o,r]=t;o.forEach(n=>{e=Zs(e,Sr(n),()=>e)}),r&&Fo(r,a)}else Fo(t,a);return e}function Bh(e,t,a){let o=a.get(e);o?o.push(t):a.set(e,[t])}function $h(e,t){let a={},o;return e.forEach(r=>{if(r.length<=1)return;t||(r=r.map(i=>i.map(String)).sort((i,l)=>i.length-l.length));let[n,...s]=r;n.length===0?o=s.map(Vs):a[Vs(n)]=s.map(Vs)}),o?Xs(a)?[o]:[o,a]:Xs(a)?void 0:a}function rd(e){return Object.prototype.toString.call(e).slice(8,-1)}function wu(e){return rd(e)==="Array"}function qh(e){if(rd(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Nh(e,t,a,o,r){let n={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";n==="enumerable"&&(e[t]=a),r&&n==="nonenumerable"&&Object.defineProperty(e,t,{value:a,enumerable:!1,writable:!0,configurable:!0})}function Ys(e,t={}){if(wu(e))return e.map(r=>Ys(r,t));if(!qh(e))return e;let a=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...a,...o].reduce((r,n)=>{if(wu(t.props)&&!t.props.includes(n))return r;let s=e[n],i=Ys(s,t);return Nh(r,n,i,e,t.nonenumerable),r},{})}function po(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function sd(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function ld({queryState:e,observerCount:t,isStale:a}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":a?"yellow":"green":"gray"}function mo({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function id(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var Y,Lu,Tg,An,Su,Dr,Tn,fu,Iu,ht,Ir,ku,Hs,le,q,Oo,Eo,we,ze,tt,Bn,Og,pu,kr,Ws,Hg,Qs,Vg,Bu,zu,Gg,Kg,Wg,Qg,jg,Zg,Jg,Yg,Lr,at,uh,ch,Gu,fh,gh,hh,Ku,xh,Rr,Xs,Ha,yh,vh,Ch,bh,Ar,Tr,Wu,wh,Lh,Cu,Sh,Ih,kh,Ph,Mh,Qu,Vs,Sr,ju,Xu,Rh,Zu,Yu,ed,Ah,bu,td,Th,To,Dh,Zs,Oh,od,pe,nl,nd,Fr,Pn,zh,ud,Uh,Un,Mn,dd,Hh,Hn,sl,_n,za,Do,ll,Or=tr(()=>{"use strict";b();Y={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return cu(this.context.count)},getNextContextId(){return cu(this.context.count++)}};Lu=!1,Tg=(e,t)=>e===t,An=Symbol("solid-proxy"),Su=typeof Proxy=="function",Dr=Symbol("solid-track"),Tn={equals:Tg},fu=null,Iu=Eu,ht=1,Ir=2,ku={owned:null,cleanups:null,context:null,owner:null},Hs={},le=null,q=null,Oo=null,Eo=null,we=null,ze=null,tt=null,Bn=0;[Og,pu]=N(!1);Ws=Symbol("fallback");Hg=!1;Qs={get(e,t,a){return t===An?a:e.get(t)},has(e,t){return t===An?!0:e.has(t)},set:kn,deleteProperty:kn,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:kn,deleteProperty:kn}},ownKeys(e){return e.keys()}};Vg=0;Bu=e=>`Stale read from <${e}>.`;zu=void 0,Gg=["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"],Kg=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Gg]),Wg=new Set(["innerHTML","textContent","innerText","children"]),Qg=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),jg=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}});Zg=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Jg=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"]),Yg={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};Lr="_$DX_DELEGATE";at=!1,uh="http://www.w3.org/2000/svg";ch=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()}},Gu=class{constructor(e){this.generateIdentifier=e,this.kv=new ch}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)}},fh=class extends Gu{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)}};gh=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return mh(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},hh=e=>Object.prototype.toString.call(e).slice(8,-1),Ku=e=>typeof e>"u",xh=e=>e===null,Rr=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Xs=e=>Rr(e)&&Object.keys(e).length===0,Ha=e=>Array.isArray(e),yh=e=>typeof e=="string",vh=e=>typeof e=="number"&&!isNaN(e),Ch=e=>typeof e=="boolean",bh=e=>e instanceof RegExp,Ar=e=>e instanceof Map,Tr=e=>e instanceof Set,Wu=e=>hh(e)==="Symbol",wh=e=>e instanceof Date&&!isNaN(e.valueOf()),Lh=e=>e instanceof Error,Cu=e=>typeof e=="number"&&isNaN(e),Sh=e=>Ch(e)||xh(e)||Ku(e)||vh(e)||yh(e)||Wu(e),Ih=e=>typeof e=="bigint",kh=e=>e===1/0||e===-1/0,Ph=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Mh=e=>e instanceof URL,Qu=e=>e.replace(/\./g,"\\."),Vs=e=>e.map(String).map(Qu).join("."),Sr=e=>{let t=[],a="";for(let r=0;r<e.length;r++){let n=e.charAt(r);if(n==="\\"&&e.charAt(r+1)==="."){a+=".",r++;continue}if(n==="."){t.push(a),a="";continue}a+=n}let o=a;return t.push(o),t};ju=[Xt(Ku,"undefined",()=>null,()=>{}),Xt(Ih,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),Xt(wh,"Date",e=>e.toISOString(),e=>new Date(e)),Xt(Lh,"Error",(e,t)=>{let a={name:e.name,message:e.message};return t.allowedErrorProps.forEach(o=>{a[o]=e[o]}),a},(e,t)=>{let a=new Error(e.message);return a.name=e.name,a.stack=e.stack,t.allowedErrorProps.forEach(o=>{a[o]=e[o]}),a}),Xt(bh,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),Xt(Tr,"set",e=>[...e.values()],e=>new Set(e)),Xt(Ar,"map",e=>[...e.entries()],e=>new Map(e)),Xt(e=>Cu(e)||kh(e),"number",e=>Cu(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Xt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Xt(Mh,"URL",e=>e.toString(),e=>new URL(e))];Xu=zn((e,t)=>Wu(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,a)=>{let o=a.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),Rh=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Zu=zn(Ph,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let a=Rh[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});Yu=zn(Ju,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let a=t.classRegistry.getAllowedProps(e.constructor);if(!a)return{...e};let o={};return a.forEach(r=>{o[r]=e[r]}),o},(e,t,a)=>{let o=a.classRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),e)}),ed=zn((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,a)=>{let o=a.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),Ah=[Yu,Xu,ed,Zu],bu=(e,t)=>{let a=vu(Ah,r=>r.isApplicable(e,t));if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};let o=vu(ju,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},td={};ju.forEach(e=>{td[e.annotation]=e});Th=(e,t,a)=>{if(Ha(t))switch(t[0]){case"symbol":return Xu.untransform(e,t,a);case"class":return Yu.untransform(e,t,a);case"custom":return ed.untransform(e,t,a);case"typed-array":return Zu.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{let o=td[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,a)}},To=(e,t)=>{let a=e.keys();for(;t>0;)a.next(),t--;return a.next().value};Dh=(e,t)=>{ad(t);for(let a=0;a<t.length;a++){let o=t[a];if(Tr(e))e=To(e,+o);else if(Ar(e)){let r=+o,n=+t[++a]==0?"key":"value",s=To(e,r);switch(n){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[o]}return e},Zs=(e,t,a)=>{if(ad(t),t.length===0)return a(e);let o=e;for(let n=0;n<t.length-1;n++){let s=t[n];if(Ha(o)){let i=+s;o=o[i]}else if(Rr(o))o=o[s];else if(Tr(o)){let i=+s;o=To(o,i)}else if(Ar(o)){if(n===t.length-2)break;let l=+s,u=+t[++n]==0?"key":"value",d=To(o,l);switch(u){case"key":o=d;break;case"value":o=o.get(d);break}}}let r=t[t.length-1];if(Ha(o)?o[+r]=a(o[+r]):Rr(o)&&(o[r]=a(o[r])),Tr(o)){let n=To(o,+r),s=a(n);n!==s&&(o.delete(n),o.add(s))}if(Ar(o)){let n=+t[t.length-2],s=To(o,n);switch(+r==0?"key":"value"){case"key":{let l=a(s);o.set(l,o.get(s)),l!==s&&o.delete(s);break}case"value":{o.set(s,a(o.get(s)));break}}}return e};Oh=(e,t)=>Rr(e)||Ha(e)||Ar(e)||Tr(e)||Ju(e,t);od=(e,t,a,o,r=[],n=[],s=new Map)=>{let i=Sh(e);if(!i){Bh(e,r,t);let f=s.get(e);if(f)return o?{transformedValue:null}:f}if(!Oh(e,a)){let f=bu(e,a),m=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:e};return i||s.set(e,m),m}if(Rn(n,e))return{transformedValue:null};let l=bu(e,a),u=l?.value??e,d=Ha(u)?[]:{},c={};Fo(u,(f,m)=>{if(m==="__proto__"||m==="constructor"||m==="prototype")throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);let g=od(f,t,a,o,[...r,m],[...n,e],s);d[m]=g.transformedValue,Ha(g.annotations)?c[m]=g.annotations:Rr(g.annotations)&&Fo(g.annotations,(h,x)=>{c[Qu(m)+"."+x]=h})});let p=Xs(c)?{transformedValue:d,annotations:l?[l.type]:void 0}:{transformedValue:d,annotations:l?[l.type,c]:c};return i||s.set(e,p),p};pe=class{constructor({dedupe:e=!1}={}){this.classRegistry=new fh,this.symbolRegistry=new Gu(t=>t.description??""),this.customTransformerRegistry=new gh,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,a=od(e,t,this,this.dedupe),o={json:a.transformedValue};a.annotations&&(o.meta={...o.meta,values:a.annotations});let r=$h(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){let{json:t,meta:a}=e,o=Ys(t);return a?.values&&(o=Eh(o,a.values,this)),a?.referentialEqualities&&(o=Fh(o,a.referentialEqualities)),o}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)}};pe.defaultInstance=new pe;pe.serialize=pe.defaultInstance.serialize.bind(pe.defaultInstance);pe.deserialize=pe.defaultInstance.deserialize.bind(pe.defaultInstance);pe.stringify=pe.defaultInstance.stringify.bind(pe.defaultInstance);pe.parse=pe.defaultInstance.parse.bind(pe.defaultInstance);pe.registerClass=pe.defaultInstance.registerClass.bind(pe.defaultInstance);pe.registerSymbol=pe.defaultInstance.registerSymbol.bind(pe.defaultInstance);pe.registerCustom=pe.defaultInstance.registerCustom.bind(pe.defaultInstance);pe.allowErrorProps=pe.defaultInstance.allowErrorProps.bind(pe.defaultInstance);nl=pe.serialize;pe.deserialize;nd=pe.stringify;pe.parse;pe.registerClass;pe.registerCustom;pe.registerSymbol;pe.allowErrorProps;Fr=(e,t=!1)=>{let{json:a}=nl(e);return JSON.stringify(a,null,t?2:void 0)},Pn=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,zh=(e,t)=>e.queryHash.localeCompare(t.queryHash),ud=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Uh=(e,t)=>Pn(e)===Pn(t)?ud(e,t):Pn(e)>Pn(t)?1:-1,Un={status:Uh,"query hash":zh,"last updated":ud},Mn=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,dd=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Hh=(e,t)=>Mn(e)===Mn(t)?dd(e,t):Mn(e)>Mn(t)?1:-1,Hn={status:Hh,"last updated":dd},sl=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),_n=()=>{let[e,t]=N("dark");return ha(()=>{let a=window.matchMedia("(prefers-color-scheme: dark)");t(a.matches?"dark":"light");let o=r=>{t(r.matches?"dark":"light")};a.addEventListener("change",o),Z(()=>a.removeEventListener("change",o))}),e},za=(e,t,a)=>{if(t.length===0)return a;if(e instanceof Map){let o=new Map(e);if(t.length===1)return o.set(t[0],a),o;let[r,...n]=t;return o.set(r,za(o.get(r),n,a)),o}if(e instanceof Set){let o=za(Array.from(e),t,a);return new Set(o)}if(Array.isArray(e)){let o=[...e];if(t.length===1)return o[t[0]]=a,o;let[r,...n]=t;return o[r]=za(o[r],n,a),o}if(e instanceof Object){let o={...e};if(t.length===1)return o[t[0]]=a,o;let[r,...n]=t;return o[r]=za(o[r],n,a),o}return e},Do=(e,t)=>{if(e instanceof Map){let a=new Map(e);if(t.length===1)return a.delete(t[0]),a;let[o,...r]=t;return a.set(o,Do(a.get(o),r)),a}if(e instanceof Set){let a=Do(Array.from(e),t);return new Set(a)}if(Array.isArray(e)){let a=[...e];if(t.length===1)return a.filter((n,s)=>s.toString()!==t[0]);let[o,...r]=t;return a[o]=Do(a[o],r),a}if(e instanceof Object){let a={...e};if(t.length===1)return delete a[t[0]],a;let[o,...r]=t;return a[o]=Do(a[o],r),a}return e},ll=(e,t)=>{if(!e||document.querySelector("#_goober")||t?.querySelector("#_goober"))return;let o=document.createElement("style"),r=document.createTextNode("");o.appendChild(r),o.id="_goober",o.setAttribute("nonce",e),t?t.appendChild(o):document.head.appendChild(o)}});function Wh(e){return(...t)=>{for(let a of e)a&&a(...t)}}function Qh(e,...t){return typeof e=="function"?e(...t):e}function Xh(e,t,a,o){let r=e.length,n=t.length,s=0;if(!n){for(;s<r;s++)a(e[s]);return}if(!r){for(;s<n;s++)o(t[s]);return}for(;s<n&&t[s]===e[s];s++);let i,l;t=t.slice(s),e=e.slice(s);for(i of t)e.includes(i)||o(i);for(l of e)t.includes(l)||a(l)}function Zh(e){let[t,a]=N(),o=e?.throw?(p,f)=>{throw a(p instanceof Error?p:new Error(f)),p}:(p,f)=>{a(p instanceof Error?p:new Error(f))},r=e?.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),n=e?.prefix?`${e.prefix}.`:"",s=new Map,i=new Proxy({},{get(p,f){let m=s.get(f);m||(m=N(void 0,{equals:!1}),s.set(f,m)),m[0]();let g=r.reduce((h,x)=>{if(h!==null||!x)return h;try{return x.getItem(`${n}${f}`)}catch(y){return o(y,`Error reading ${n}${f} from ${x.name}`),null}},null);return g!==null&&e?.deserializer?e.deserializer(g,f,e.options):g}}),l=(p,f,m)=>{let g=e?.serializer?e.serializer(f,p,m??e.options):f,h=`${n}${p}`;r.forEach(y=>{try{y.getItem(h)!==g&&y.setItem(h,g)}catch(C){o(C,`Error setting ${n}${p} to ${g} in ${y.name}`)}});let x=s.get(p);x&&x[1]()},u=p=>r.forEach(f=>{try{f.removeItem(`${n}${p}`)}catch(m){o(m,`Error removing ${n}${p} from ${f.name}`)}}),d=()=>r.forEach(p=>{try{p.clear()}catch(f){o(f,`Error clearing ${p.name}`)}}),c=()=>{let p={},f=(m,g)=>{if(!p.hasOwnProperty(m)){let h=g&&e?.deserializer?e.deserializer(g,m,e.options):g;h&&(p[m]=h)}};return r.forEach(m=>{if(typeof m.getAll=="function"){let g;try{g=m.getAll()}catch(h){o(h,`Error getting all values from in ${m.name}`)}for(let h of g)f(h,g[h])}else{let g=0,h;try{for(;h=m.key(g++);)p.hasOwnProperty(h)||f(h,m.getItem(h))}catch(x){o(x,`Error getting all values from ${m.name}`)}}}),p};return e?.sync!==!1&&ha(()=>{let p=f=>{let m=!1;r.forEach(g=>{try{g!==f.storageArea&&f.key&&f.newValue!==g.getItem(f.key)&&(f.newValue?g.setItem(f.key,f.newValue):g.removeItem(f.key),m=!0)}catch(h){o(h,`Error synching api ${g.name} from storage event (${f.key}=${f.newValue})`)}}),m&&f.key&&s.get(f.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",p),Z(()=>globalThis.removeEventListener("storage",p))):(r.forEach(f=>f.addEventListener?.("storage",p)),Z(()=>r.forEach(f=>f.removeEventListener?.("storage",p))))}),[i,l,{clear:d,error:t,remove:u,toJSON:c}]}function X(){return Ue(Kr)}function Xe(){return Ue(Wr)}function l0(e){return e.replace(s0,t=>uc[t])}function md(e,t,a){var o;if(a=a||{},a.threshold=(o=a.threshold)!=null?o:ft.MATCHES,!a.accessors){let s=gd(e,t,a);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:a.threshold,passed:s>=a.threshold}}let r=c0(e,a.accessors),n={rankedValue:e,rank:ft.NO_MATCH,accessorIndex:-1,accessorThreshold:a.threshold,passed:!1};for(let s=0;s<r.length;s++){let i=r[s],l=gd(i.itemValue,t,a),{minRanking:u,maxRanking:d,threshold:c=a.threshold}=i.attributes;l<u&&l>=ft.MATCHES?l=u:l>d&&(l=d),l=Math.min(l,d),l>=c&&l>n.rank&&(n.rank=l,n.passed=!0,n.accessorIndex=s,n.accessorThreshold=c,n.rankedValue=i.itemValue)}return n}function gd(e,t,a){return e=hd(e,a),t=hd(t,a),t.length>e.length?ft.NO_MATCH:e===t?ft.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?ft.EQUAL:e.startsWith(t)?ft.STARTS_WITH:e.includes(` ${t}`)?ft.WORD_STARTS_WITH:e.includes(t)?ft.CONTAINS:t.length===1?ft.NO_MATCH:i0(e).includes(t)?ft.ACRONYM:u0(e,t))}function i0(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(n=>{t+=n.substr(0,1)})}),t}function u0(e,t){let a=0,o=0;function r(l,u,d){for(let c=d,p=u.length;c<p;c++)if(u[c]===l)return a+=1,c+1;return-1}function n(l){let u=1/l,d=a/t.length;return ft.MATCHES+d*u}let s=r(t[0],e,0);if(s<0)return ft.NO_MATCH;o=s;for(let l=1,u=t.length;l<u;l++){let d=t[l];if(o=r(d,e,o),!(o>-1))return ft.NO_MATCH}let i=o-s;return n(i)}function hd(e,t){let{keepDiacritics:a}=t;return e=`${e}`,a||(e=l0(e)),e}function d0(e,t){let a=t;typeof t=="object"&&(a=t.accessor);let o=a(e);return o==null?[]:Array.isArray(o)?o:[String(o)]}function c0(e,t){let a=[];for(let o=0,r=t.length;o<r;o++){let n=t[o],s=f0(n),i=d0(e,n);for(let l=0,u=i.length;l<u;l++)a.push({itemValue:i[l],attributes:s})}return a}function f0(e){return typeof e=="function"?xd:{...xd,...e}}function se(e){let t=this||{},a=e.call?e(t.p):e;return x0(a.unshift?a.raw?y0(a,[].slice.call(arguments,1),t.p):a.reduce((o,r)=>Object.assign(o,r&&r.call?r(t.p):r),{}):a,m0(t.target),t.g,t.o,t.k)}function cc(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=cc(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function H(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=cc(e))&&(o&&(o+=" "),o+=t);return o}function v0(e,t){let a=ke(e);if(at){let c=a.slice();return()=>c}let{onChange:o}=t,r=new Set(t.appear?void 0:a),n=new WeakSet,[s,i]=N([],{equals:!1}),[l]=Ru(),u=c=>{i(p=>(p.push.apply(p,c),p));for(let p of c)n.delete(p)},d=(c,p,f)=>c.splice(f,0,p);return k(c=>{let p=s(),f=e();if(f[Dr],ke(l))return l(),c;if(p.length){let m=c.filter(g=>!p.includes(g));return p.length=0,o({list:m,added:[],removed:[],unchanged:m,finishRemoved:u}),m}return ke(()=>{let m=new Set(f),g=f.slice(),h=[],x=[],y=[];for(let w of f)(r.has(w)?y:h).push(w);let C=!h.length;for(let w=0;w<c.length;w++){let L=c[w];m.has(L)||(n.has(L)||(x.push(L),n.add(L)),d(g,L,w)),C&&L!==g[w]&&(C=!1)}return!x.length&&C?c:(o({list:g,added:h,removed:x,unchanged:y,finishRemoved:u}),r=m,g)})},t.appear?[]:a.slice())}function ut(...e){return Wh(e)}function gl(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return gl(e(),t);if(Array.isArray(e)){let a=[];for(let o of e){let r=gl(o,t);r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}return a.length?a:null}return null}function C0(e,t=vd,a=vd){let o=k(e),r=k(()=>gl(o(),at?a:t));return r.toArray=()=>{let n=r();return Array.isArray(n)?n:n?[n]:[]},r}function b0(e){return k(()=>{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 fc(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function w0(e,t,a,o){let{onBeforeEnter:r,onEnter:n,onAfterEnter:s}=t;r?.(a),a.classList.add(...e.enter),a.classList.add(...e.enterActive),queueMicrotask(()=>{if(!a.parentNode)return o?.();n?.(a,()=>i())}),fc(()=>{a.classList.remove(...e.enter),a.classList.add(...e.enterTo),(!n||n.length<2)&&(a.addEventListener("transitionend",i),a.addEventListener("animationend",i))});function i(l){(!l||l.target===a)&&(a.removeEventListener("transitionend",i),a.removeEventListener("animationend",i),a.classList.remove(...e.enterActive),a.classList.remove(...e.enterTo),s?.(a))}}function L0(e,t,a,o){let{onBeforeExit:r,onExit:n,onAfterExit:s}=t;if(!a.parentNode)return o?.();r?.(a),a.classList.add(...e.exit),a.classList.add(...e.exitActive),n?.(a,()=>i()),fc(()=>{a.classList.remove(...e.exit),a.classList.add(...e.exitTo),(!n||n.length<2)&&(a.addEventListener("transitionend",i),a.addEventListener("animationend",i))});function i(l){(!l||l.target===a)&&(o?.(),a.removeEventListener("transitionend",i),a.removeEventListener("animationend",i),a.classList.remove(...e.exitActive),a.classList.remove(...e.exitTo),s?.(a))}}function bd(e){for(let t of e)t.dispose()}function S0(e,t,a,o={}){if(at){let s=e(),i=[];if(s&&s.length)for(let l=0,u=s.length;l<u;l++)i.push(a(()=>s[l],()=>l));else o.fallback&&(i=[o.fallback()]);return()=>i}let r=new Map;return Z(()=>bd(r.values())),()=>{let s=e()||[];return s[Dr],ke(()=>{if(!s.length)return bd(r.values()),r.clear(),o.fallback?[Zt(c=>(r.set(il,{dispose:c}),o.fallback()))]:[];let i=new Array(s.length),l=r.get(il);if(!r.size||l){l?.dispose(),r.delete(il);for(let d=0;d<s.length;d++){let c=s[d],p=t(c,d);n(i,c,d,p)}return i}let u=new Set(r.keys());for(let d=0;d<s.length;d++){let c=s[d],p=t(c,d);u.delete(p);let f=r.get(p);f?(i[d]=f.mapped,f.setIndex?.(d),f.setItem(()=>c)):n(i,c,d,p)}for(let d of u)r.get(d)?.dispose(),r.delete(d);return i})};function n(s,i,l,u){Zt(d=>{let[c,p]=N(i),f={setItem:p,dispose:d};if(a.length>1){let[m,g]=N(l);f.setIndex=g,f.mapped=a(c,m)}else f.mapped=a(c);r.set(u,f),s[l]=f.mapped})}}function Wn(e){let{by:t}=e;return k(S0(()=>e.each,typeof t=="function"?t:a=>a[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function I0(e,t,a,o){return e.addEventListener(t,a,o),jh(e.removeEventListener.bind(e,t,a,o))}function k0(e,t,a,o){if(at)return;let r=()=>{pl(A(e)).forEach(n=>{n&&pl(A(t)).forEach(s=>I0(n,s,a,o))})};typeof e=="function"?Q(r):W(r)}function P0(e,t){if(at)return{observe:cd,unobserve:cd};let a=new ResizeObserver(e);return Z(a.disconnect.bind(a)),{observe:o=>a.observe(o,t),unobserve:a.unobserve.bind(a)}}function pc(e,t,a){if(at)return;let o=new WeakMap,{observe:r,unobserve:n}=P0(s=>{for(let i of s){let{contentRect:l,target:u}=i,d=Math.round(l.width),c=Math.round(l.height),p=o.get(u);(!p||p.width!==d||p.height!==c)&&(t(l,u,i),o.set(u,{width:d,height:c}))}},a);Q(s=>{let i=Kh(pl(A(e)));return Xh(i,s,r,n),i},[])}function wd(e){let t={},a;for(;a=M0.exec(e);)t[a[1]]=a[2];return t}function os(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=wd(e)}else typeof t=="string"&&(t=wd(t));return{...e,...t}}function R0(e,t,a=-1){return a in e?[...e.slice(0,a),t,...e.slice(a)]:[...e,t]}function hl(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function A0(e){return typeof e=="number"}function qo(e){return Object.prototype.toString.call(e)==="[object String]"}function T0(e){return typeof e=="function"}function Qr(e){return t=>`${e()}-${t}`}function kt(e,t){return e?e===t||e.contains(t):!1}function Nr(e,t=!1){let{activeElement:a}=ea(e);if(!a?.nodeName)return null;if(mc(a)&&a.contentDocument)return Nr(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=ea(a).getElementById(o);if(r)return r}}return a}function D0(e){return ea(e).defaultView||window}function ea(e){return e?e.ownerDocument||e:document}function mc(e){return e.tagName==="IFRAME"}function Pl(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function rs(){return Pl(/^Mac/i)}function E0(){return Pl(/^iPhone/i)}function F0(){return Pl(/^iPad/i)||rs()&&navigator.maxTouchPoints>1}function O0(){return E0()||F0()}function B0(){return rs()||O0()}function Te(e,t){return t&&(T0(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function je(e){return t=>{for(let a of e)Te(t,a)}}function $0(e){return rs()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function rt(e){if(e)if(q0())e.focus({preventScroll:!0});else{let t=N0(e);e.focus(),z0(t)}}function q0(){if(Vn==null){Vn=!1;try{document.createElement("div").focus({get preventScroll(){return Vn=!0,!0}})}catch{}}return Vn}function N0(e){let t=e.parentNode,a=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&a.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&a.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),a}function z0(e){for(let{element:t,scrollTop:a,scrollLeft:o}of e)t.scrollTop=a,t.scrollLeft=o}function hc(e,t){let o=Array.from(e.querySelectorAll(Ml)).filter(Ld);return t&&Ld(e)&&o.unshift(e),o.forEach((r,n)=>{if(mc(r)&&r.contentDocument){let s=r.contentDocument.body,i=hc(s,!1);o.splice(n,1,...i)}}),o}function Ld(e){return xc(e)&&!_0(e)}function xc(e){return e.matches(Ml)&&Rl(e)}function _0(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Rl(e,t){return e.nodeName!=="#comment"&&V0(e)&&G0(e,t)&&(!e.parentElement||Rl(e.parentElement,e))}function V0(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:a}=e.style,o=t!=="none"&&a!=="hidden"&&a!=="collapse";if(o){if(!e.ownerDocument.defaultView)return o;let{getComputedStyle:r}=e.ownerDocument.defaultView,{display:n,visibility:s}=r(e);o=n!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function G0(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function K0(e,t,a){let o=t?.tabbable?H0:Ml,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(n){return t?.from?.contains(n)?NodeFilter.FILTER_REJECT:n.matches(o)&&Rl(n)&&(!t?.accept||t.accept(n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function Sd(e){for(;e&&!W0(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function W0(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Q0(){}function j0(e,t){let[a,o]=e,r=!1,n=t.length;for(let s=n,i=0,l=s-1;i<s;l=i++){let[u,d]=t[i],[c,p]=t[l],[,f]=t[l===0?s-1:l-1]||[0,0],m=(d-p)*(a-u)-(u-c)*(o-d);if(p<d){if(o>=p&&o<d){if(m===0)return!0;m>0&&(o===p?o>f&&(r=!r):r=!r)}}else if(d<p){if(o>d&&o<=p){if(m===0)return!0;m<0&&(o===p?o<f&&(r=!r):r=!r)}}else if(o==d&&(a>=c&&a<=u||a>=u&&a<=c))return!0}return r}function he(e,t){return te(e,t)}function kd(){if(typeof window>"u")return;let e=a=>{if(!a.target)return;let o=Br.get(a.target);o||(o=new Set,Br.set(a.target,o),a.target.addEventListener("transitioncancel",t)),o.add(a.propertyName)},t=a=>{if(!a.target)return;let o=Br.get(a.target);if(o&&(o.delete(a.propertyName),o.size===0&&(a.target.removeEventListener("transitioncancel",t),Br.delete(a.target)),Br.size===0)){for(let r of Id)r();Id.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function xl(e,t){let a=Pd(e,t,"left"),o=Pd(e,t,"top"),r=t.offsetWidth,n=t.offsetHeight,s=e.scrollLeft,i=e.scrollTop,l=s+e.offsetWidth,u=i+e.offsetHeight;a<=s?s=a:a+r>l&&(s+=a+r-l),o<=i?i=o:o+n>u&&(i+=o+n-u),e.scrollLeft=s,e.scrollTop=i}function Pd(e,t,a){let o=a==="left"?"offsetLeft":"offsetTop",r=0;for(;t.offsetParent&&(r+=t[o],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[o];break}t=t.offsetParent}return r}function X0(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let r=Sd(e);for(;e&&r&&e!==a&&r!==a;)xl(r,e),e=r,r=Sd(e)}else{let{left:r,top:n}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:s,top:i}=e.getBoundingClientRect();(Math.abs(r-s)>1||Math.abs(n-i)>1)&&e.scrollIntoView?.({block:"nearest"})}}}function Pt(e){return t=>(e(t),()=>e(void 0))}function ns(e,t){let[a,o]=N(Md(t?.()));return Q(()=>{o(e()?.tagName.toLowerCase()||Md(t?.()))}),a}function Md(e){return qo(e)?e:void 0}function De(e){let[t,a]=ye(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return v(Vu,te(a,{get component(){return t.as}}))}function J0(e){let t=`form-control-${xt()}`,a=he({id:t},e),[o,r]=N(),[n,s]=N(),[i,l]=N(),[u,d]=N(),c=(g,h,x)=>{let y=x!=null||o()!=null;return[x,o(),y&&h!=null?g:void 0].filter(Boolean).join(" ")||void 0},p=g=>[i(),u(),g].filter(Boolean).join(" ")||void 0,f=k(()=>({"data-valid":A(a.validationState)==="valid"?"":void 0,"data-invalid":A(a.validationState)==="invalid"?"":void 0,"data-required":A(a.required)?"":void 0,"data-disabled":A(a.disabled)?"":void 0,"data-readonly":A(a.readOnly)?"":void 0}));return{formControlContext:{name:()=>A(a.name)??A(a.id),dataset:f,validationState:()=>A(a.validationState),isRequired:()=>A(a.required),isDisabled:()=>A(a.disabled),isReadOnly:()=>A(a.readOnly),labelId:o,fieldId:n,descriptionId:i,errorMessageId:u,getAriaLabelledBy:c,getAriaDescribedBy:p,generateId:Qr(()=>A(a.id)),registerLabel:Pt(r),registerField:Pt(s),registerDescription:Pt(l),registerErrorMessage:Pt(d)}}}function jr(){let e=Ue(vc);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function Cc(e){let t=jr(),a=he({id:t.generateId("description")},e);return Q(()=>Z(t.registerDescription(a.id))),v(De,te({as:"div"},()=>t.dataset(),a))}function bc(e){let t=jr(),a=he({id:t.generateId("error-message")},e),[o,r]=ye(a,["forceMount"]),n=()=>t.validationState()==="invalid";return Q(()=>{n()&&Z(t.registerErrorMessage(r.id))}),v(j,{get when(){return o.forceMount||n()},get children(){return v(De,te({as:"div"},()=>t.dataset(),r))}})}function Y0(e){let t,a=jr(),o=he({id:a.generateId("label")},e),[r,n]=ye(o,["ref"]),s=ns(()=>t,()=>"label");return Q(()=>Z(a.registerLabel(n.id))),v(De,te({as:"label",ref(i){let l=ut(u=>t=u,r.ref);typeof l=="function"&&l(i)},get for(){return k(()=>s()==="label")()?a.fieldId():void 0}},()=>a.dataset(),n))}function ex(e,t){Q(Jt(e,a=>{if(a==null)return;let o=tx(a);o!=null&&(o.addEventListener("reset",t,{passive:!0}),Z(()=>{o.removeEventListener("reset",t)}))}))}function tx(e){return ax(e)?e.form:e.closest("form")}function ax(e){return e.matches("textarea, input, select, button")}function Xr(e){let[t,a]=N(e.defaultValue?.()),o=k(()=>e.value?.()!==void 0),r=k(()=>o()?e.value?.():t());return[r,s=>{ke(()=>{let i=Qh(s,r());return Object.is(i,r())||(o()||a(i),e.onChange?.(i)),i})}]}function wc(e){let[t,a]=Xr(e);return[()=>t()??!1,a]}function ox(e){let[t,a]=Xr(e);return[()=>t()??[],a]}function rx(e={}){let[t,a]=wc({value:()=>A(e.isSelected),defaultValue:()=>!!A(e.defaultIsSelected),onChange:n=>e.onSelectedChange?.(n)});return{isSelected:t,setIsSelected:n=>{!A(e.isReadOnly)&&!A(e.isDisabled)&&a(n)},toggle:()=>{!A(e.isReadOnly)&&!A(e.isDisabled)&&a(!t())}}}function Sc(){return Ue(Lc)}function sx(){let e=Sc();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function Ic(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function lx(e,t){let a=t.ref();if(!a)return-1;let o=e.length;if(!o)return-1;for(;o--;){let r=e[o]?.ref();if(r&&Ic(r,a))return o+1}return 0}function ix(e){let t=e.map((o,r)=>[r,o]),a=!1;return t.sort(([o,r],[n,s])=>{let i=r.ref(),l=s.ref();return i===l||!i||!l?0:Ic(i,l)?(o>n&&(a=!0),-1):(o<n&&(a=!0),1)}),a?t.map(([o,r])=>r):e}function kc(e,t){let a=ix(e);e!==a&&t(a)}function ux(e){let t=e[0],a=e[e.length-1]?.ref(),o=t?.ref()?.parentElement;for(;o;){if(a&&o.contains(a))return o;o=o.parentElement}return ea(o).body}function dx(e,t){Q(()=>{let a=setTimeout(()=>{kc(e(),t)});Z(()=>clearTimeout(a))})}function cx(e,t){if(typeof IntersectionObserver!="function"){dx(e,t);return}let a=[];Q(()=>{let o=()=>{let s=!!a.length;a=e(),s&&kc(e(),t)},r=ux(e()),n=new IntersectionObserver(o,{root:r});for(let s of e()){let i=s.ref();i&&n.observe(i)}Z(()=>n.disconnect())})}function fx(e={}){let[t,a]=ox({value:()=>A(e.items),onChange:n=>e.onItemsChange?.(n)});cx(t,a);let o=n=>(a(s=>{let i=lx(s,n);return R0(s,n,i)}),()=>{a(s=>{let i=s.filter(l=>l.ref()!==n.ref());return s.length===i.length?s:i})});return{DomCollectionProvider:n=>v(Lc.Provider,{value:{registerItem:o},get children(){return n.children}})}}function px(e){let t=sx(),a=he({shouldRegisterItem:!0},e);Q(()=>{if(!a.shouldRegisterItem)return;let o=t.registerItem(a.getItem());Z(o)})}function Pc(e){let t=e.startIndex??0,a=e.startLevel??0,o=[],r=l=>{if(l==null)return"";let u=e.getKey??"key",d=qo(u)?l[u]:u(l);return d!=null?String(d):""},n=l=>{if(l==null)return"";let u=e.getTextValue??"textValue",d=qo(u)?l[u]:u(l);return d!=null?String(d):""},s=l=>{if(l==null)return!1;let u=e.getDisabled??"disabled";return(qo(u)?l[u]:u(l))??!1},i=l=>{if(l!=null)return qo(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(qo(l)||A0(l)){o.push({type:"item",rawValue:l,key:String(l),textValue:String(l),disabled:s(l),level:a,index:t}),t++;continue}if(i(l)!=null){o.push({type:"section",rawValue:l,key:"",textValue:"",disabled:!1,level:a,index:t}),t++;let u=i(l)??[];if(u.length>0){let d=Pc({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:a+1});o.push(...d),t+=d.length}}else o.push({type:"item",rawValue:l,key:r(l),textValue:n(l),disabled:s(l),level:a,index:t}),t++}return o}function mx(e,t=[]){return k(()=>{let a=Pc({dataSource:A(e.dataSource),getKey:A(e.getKey),getTextValue:A(e.getTextValue),getDisabled:A(e.getDisabled),getSectionChildren:A(e.getSectionChildren)});for(let o=0;o<t.length;o++)t[o]();return e.factory(a)})}function xx(e){if(Intl.Locale){let a=new Intl.Locale(e).maximize().script??"";return gx.has(a)}let t=e.split("-")[0];return hx.has(t)}function yx(e){return xx(e)?"rtl":"ltr"}function Mc(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:yx(e)}}function Rd(){yl=Mc();for(let e of zr)e(yl)}function vx(){let e={locale:"en-US",direction:"ltr"},[t,a]=N(yl),o=k(()=>at?e:t());return ha(()=>{zr.size===0&&window.addEventListener("languagechange",Rd),zr.add(a),Z(()=>{zr.delete(a),zr.size===0&&window.removeEventListener("languagechange",Rd)})}),{locale:()=>o().locale,direction:()=>o().direction}}function Qa(){let e=vx();return Ue(Cx)||e}function bx(e){let{locale:t}=Qa(),a=k(()=>t()+(e?Object.entries(e).sort((o,r)=>o[0]<r[0]?-1:1).join():""));return k(()=>{let o=a(),r;return ul.has(o)&&(r=ul.get(o)),r||(r=new Intl.Collator(t(),e),ul.set(o,r)),r})}function wx(e){let[t,a]=Xr(e);return[()=>t()??new ya,a]}function Ac(e){return B0()?e.altKey:e.ctrlKey}function No(e){return rs()?e.metaKey:e.ctrlKey}function Ad(e){return new ya(e)}function Lx(e,t){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function Sx(e){let t=he({selectionMode:"none",selectionBehavior:"toggle"},e),[a,o]=N(!1),[r,n]=N(),s=k(()=>{let g=A(t.selectedKeys);return g!=null?Ad(g):g}),i=k(()=>{let g=A(t.defaultSelectedKeys);return g!=null?Ad(g):new ya}),[l,u]=wx({value:s,defaultValue:i,onChange:g=>t.onSelectionChange?.(g)}),[d,c]=N(A(t.selectionBehavior)),p=()=>A(t.selectionMode),f=()=>A(t.disallowEmptySelection)??!1,m=g=>{(A(t.allowDuplicateSelectionEvents)||!Lx(g,l()))&&u(g)};return Q(()=>{let g=l();A(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof g=="object"&&g.size===0&&c("replace")}),Q(()=>{c(A(t.selectionBehavior)??"toggle")}),{selectionMode:p,disallowEmptySelection:f,selectionBehavior:d,setSelectionBehavior:c,isFocused:a,setFocused:o,focusedKey:r,setFocusedKey:n,selectedKeys:l,setSelectedKeys:m}}function Ix(e){let[t,a]=N(""),[o,r]=N(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(A(e.isDisabled))return;let i=A(e.keyboardDelegate),l=A(e.selectionManager);if(!i.getKeyForSearch)return;let u=kx(s.key);if(!u||s.ctrlKey||s.metaKey)return;u===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let d=a(p=>p+u),c=i.getKeyForSearch(d,l.focusedKey())??i.getKeyForSearch(d);c==null&&Px(d)&&(d=d[0],c=i.getKeyForSearch(d,l.focusedKey())??i.getKeyForSearch(d)),c!=null&&(l.setFocusedKey(c),e.onTypeSelect?.(c)),clearTimeout(o()),r(window.setTimeout(()=>a(""),500))}}}}function kx(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Px(e){return e.split("").every(t=>t===e[0])}function Mx(e,t,a){let r=te({selectOnFocus:()=>A(e.selectionManager).selectionBehavior()==="replace"},e),n=()=>t(),{direction:s}=Qa(),i={top:0,left:0};k0(()=>A(r.isVirtualized)?void 0:n(),"scroll",()=>{let h=n();h&&(i={top:h.scrollTop,left:h.scrollLeft})});let{typeSelectHandlers:l}=Ix({isDisabled:()=>A(r.disallowTypeAhead),keyboardDelegate:()=>A(r.keyboardDelegate),selectionManager:()=>A(r.selectionManager)}),u=()=>A(r.orientation)??"vertical",d=h=>{Te(h,l.onKeyDown),h.altKey&&h.key==="Tab"&&h.preventDefault();let x=t();if(!x?.contains(h.target))return;let y=A(r.selectionManager),C=A(r.selectOnFocus),w=T=>{T!=null&&(y.setFocusedKey(T),h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(T):C&&!Ac(h)&&y.replaceSelection(T))},L=A(r.keyboardDelegate),E=A(r.shouldFocusWrap),D=y.focusedKey();switch(h.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(L.getKeyBelow){h.preventDefault();let T;D!=null?T=L.getKeyBelow(D):T=L.getFirstKey?.(),T==null&&E&&(T=L.getFirstKey?.(D)),w(T)}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(L.getKeyAbove){h.preventDefault();let T;D!=null?T=L.getKeyAbove(D):T=L.getLastKey?.(),T==null&&E&&(T=L.getLastKey?.(D)),w(T)}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(L.getKeyLeftOf){h.preventDefault();let T=s()==="rtl",S;D!=null?S=L.getKeyLeftOf(D):S=T?L.getFirstKey?.():L.getLastKey?.(),w(S)}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(L.getKeyRightOf){h.preventDefault();let T=s()==="rtl",S;D!=null?S=L.getKeyRightOf(D):S=T?L.getLastKey?.():L.getFirstKey?.(),w(S)}break}case"Home":if(L.getFirstKey){h.preventDefault();let T=L.getFirstKey(D,No(h));T!=null&&(y.setFocusedKey(T),No(h)&&h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(T):C&&y.replaceSelection(T))}break;case"End":if(L.getLastKey){h.preventDefault();let T=L.getLastKey(D,No(h));T!=null&&(y.setFocusedKey(T),No(h)&&h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(T):C&&y.replaceSelection(T))}break;case"PageDown":if(L.getKeyPageBelow&&D!=null){h.preventDefault();let T=L.getKeyPageBelow(D);w(T)}break;case"PageUp":if(L.getKeyPageAbove&&D!=null){h.preventDefault();let T=L.getKeyPageAbove(D);w(T)}break;case"a":No(h)&&y.selectionMode()==="multiple"&&A(r.disallowSelectAll)!==!0&&(h.preventDefault(),y.selectAll());break;case"Escape":h.defaultPrevented||(h.preventDefault(),A(r.disallowEmptySelection)||y.clearSelection());break;case"Tab":if(!A(r.allowsTabNavigation)){if(h.shiftKey)x.focus();else{let T=K0(x,{tabbable:!0}),S,I;do I=T.lastChild(),I&&(S=I);while(I);S&&!S.contains(document.activeElement)&&rt(S)}break}}},c=h=>{let x=A(r.selectionManager),y=A(r.keyboardDelegate),C=A(r.selectOnFocus);if(x.isFocused()){h.currentTarget.contains(h.target)||x.setFocused(!1);return}if(h.currentTarget.contains(h.target)){if(x.setFocused(!0),x.focusedKey()==null){let w=E=>{E!=null&&(x.setFocusedKey(E),C&&x.replaceSelection(E))},L=h.relatedTarget;L&&h.currentTarget.compareDocumentPosition(L)&Node.DOCUMENT_POSITION_FOLLOWING?w(x.lastSelectedKey()??y.getLastKey?.()):w(x.firstSelectedKey()??y.getFirstKey?.())}else if(!A(r.isVirtualized)){let w=n();if(w){w.scrollTop=i.top,w.scrollLeft=i.left;let L=w.querySelector(`[data-key="${x.focusedKey()}"]`);L&&(rt(L),xl(w,L))}}}},p=h=>{let x=A(r.selectionManager);h.currentTarget.contains(h.relatedTarget)||x.setFocused(!1)},f=h=>{n()===h.target&&h.preventDefault()},m=()=>{let h=A(r.autoFocus);if(!h)return;let x=A(r.selectionManager),y=A(r.keyboardDelegate),C;h==="first"&&(C=y.getFirstKey?.()),h==="last"&&(C=y.getLastKey?.());let w=x.selectedKeys();w.size&&(C=w.values().next().value),x.setFocused(!0),x.setFocusedKey(C);let L=t();L&&C==null&&!A(r.shouldUseVirtualFocus)&&rt(L)};return ha(()=>{r.deferAutoFocus?setTimeout(m,0):m()}),Q(Jt([n,()=>A(r.isVirtualized),()=>A(r.selectionManager).focusedKey()],h=>{let[x,y,C]=h;if(y)C&&r.scrollToKey?.(C);else if(C&&x){let w=x.querySelector(`[data-key="${C}"]`);w&&xl(x,w)}})),{tabIndex:k(()=>{if(!A(r.shouldUseVirtualFocus))return A(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:f,onFocusIn:c,onFocusOut:p}}function Tc(e,t){let a=()=>A(e.selectionManager),o=()=>A(e.key),r=()=>A(e.shouldUseVirtualFocus),n=y=>{a().selectionMode()!=="none"&&(a().selectionMode()==="single"?a().isSelected(o())&&!a().disallowEmptySelection()?a().toggleSelection(o()):a().replaceSelection(o()):y?.shiftKey?a().extendSelection(o()):a().selectionBehavior()==="toggle"||No(y)||"pointerType"in y&&y.pointerType==="touch"?a().toggleSelection(o()):a().replaceSelection(o()))},s=()=>a().isSelected(o()),i=()=>A(e.disabled)||a().isDisabled(o()),l=()=>!i()&&a().canSelectItem(o()),u=null,d=y=>{l()&&(u=y.pointerType,y.pointerType==="mouse"&&y.button===0&&!A(e.shouldSelectOnPressUp)&&n(y))},c=y=>{l()&&y.pointerType==="mouse"&&y.button===0&&A(e.shouldSelectOnPressUp)&&A(e.allowsDifferentPressOrigin)&&n(y)},p=y=>{l()&&(A(e.shouldSelectOnPressUp)&&!A(e.allowsDifferentPressOrigin)||u!=="mouse")&&n(y)},f=y=>{!l()||!["Enter"," "].includes(y.key)||(Ac(y)?a().toggleSelection(o()):n(y))},m=y=>{i()&&y.preventDefault()},g=y=>{let C=t();r()||i()||!C||y.target===C&&a().setFocusedKey(o())},h=k(()=>{if(!(r()||i()))return o()===a().focusedKey()?0:-1}),x=k(()=>A(e.virtualized)?void 0:o());return Q(Jt([t,o,r,()=>a().focusedKey(),()=>a().isFocused()],([y,C,w,L,E])=>{y&&C===L&&E&&!w&&document.activeElement!==y&&(e.focus?e.focus():rt(y))})),{isSelected:s,isDisabled:i,allowsSelection:l,tabIndex:h,dataKey:x,onPointerDown:d,onPointerUp:c,onClick:p,onKeyDown:f,onMouseDown:m,onFocus:g}}function Ax(e){let t=Sx(e),o=mx({dataSource:()=>A(e.dataSource),getKey:()=>A(e.getKey),getTextValue:()=>A(e.getTextValue),getDisabled:()=>A(e.getDisabled),getSectionChildren:()=>A(e.getSectionChildren),factory:n=>e.filter?new Td(e.filter(n)):new Td(n)},[()=>e.filter]),r=new Rx(o,t);return Dn(()=>{let n=t.focusedKey();n!=null&&!o().getItem(n)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>r}}function Hr(e){return Ca.findIndex(t=>t.node===e)}function Ex(e){return Ca[Hr(e)]}function Fx(e){return Ca[Ca.length-1].node===e}function Fc(){return Ca.filter(e=>e.isPointerBlocking)}function Ox(){return[...Fc()].slice(-1)[0]}function Al(){return Fc().length>0}function Oc(e){let t=Hr(Ox()?.node);return Hr(e)<t}function Bx(e){Ca.push(e)}function $x(e){let t=Hr(e);t<0||Ca.splice(t,1)}function qx(){for(let{node:e}of Ca)e.style.pointerEvents=Oc(e)?"none":"auto"}function Nx(e){if(Al()&&!vl){let t=ea(e);Ec=document.body.style.pointerEvents,t.body.style.pointerEvents="none",vl=!0}}function zx(e){if(Al())return;let t=ea(e);t.body.style.pointerEvents=Ec,t.body.style.length===0&&t.body.removeAttribute("style"),vl=!1}function _x(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?Hx.indexOf(e.type)!==-1:!1}function Tl(e){let t,a=he({type:"button"},e),[o,r]=ye(a,["ref","type","disabled"]),n=ns(()=>t,()=>"button"),s=k(()=>{let u=n();return u==null?!1:_x({tagName:u,type:o.type})}),i=k(()=>n()==="input"),l=k(()=>n()==="a"&&t?.getAttribute("href")!=null);return v(De,te({as:"button",ref(u){let d=ut(c=>t=c,o.ref);typeof d=="function"&&d(u)},get type(){return s()||i()?o.type:void 0},get role(){return!s()&&!l()?"button":void 0},get tabIndex(){return!s()&&!l()&&!o.disabled?0:void 0},get disabled(){return s()||i()?o.disabled:void 0},get"aria-disabled"(){return!s()&&!i()&&o.disabled?!0:void 0},get"data-disabled"(){return o.disabled?"":void 0}},r))}function Cl(e,t,a){return Ct(e,Yt(t,a))}function vo(e,t){return typeof e=="function"?e(t):e}function Ka(e){return e.split("-")[0]}function Ho(e){return e.split("-")[1]}function Bc(e){return e==="x"?"y":"x"}function Dl(e){return e==="y"?"height":"width"}function xo(e){return["top","bottom"].includes(Ka(e))?"y":"x"}function El(e){return Bc(xo(e))}function Qx(e,t,a){a===void 0&&(a=!1);let o=Ho(e),r=El(e),n=Dl(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=Xn(s)),[s,Xn(s)]}function jx(e){let t=Xn(e);return[bl(e),t,bl(t)]}function bl(e){return e.replace(/start|end/g,t=>Wx[t])}function Xx(e,t,a){let o=["left","right"],r=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return a?t?r:o:t?o:r;case"left":case"right":return t?n:s;default:return[]}}function Zx(e,t,a,o){let r=Ho(e),n=Xx(Ka(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(bl)))),n}function Xn(e){return e.replace(/left|right|bottom|top/g,t=>Kx[t])}function Jx(e){return{top:0,right:0,bottom:0,left:0,...e}}function $c(e){return typeof e!="number"?Jx(e):{top:e,right:e,bottom:e,left:e}}function Zn(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function Dd(e,t,a){let{reference:o,floating:r}=e,n=xo(t),s=El(t),i=Dl(s),l=Ka(t),u=n==="y",d=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,p=o[i]/2-r[i]/2,f;switch(l){case"top":f={x:d,y:o.y-r.height};break;case"bottom":f={x:d,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:c};break;case"left":f={x:o.x-r.width,y:c};break;default:f={x:o.x,y:o.y}}switch(Ho(t)){case"start":f[s]-=p*(a&&u?-1:1);break;case"end":f[s]+=p*(a&&u?-1:1);break}return f}async function _r(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:n,rects:s,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:p=!1,padding:f=0}=vo(t,e),m=$c(f),h=i[p?c==="floating"?"reference":"floating":c],x=Zn(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(h)))==null||a?h:h.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:l})),y=c==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,C=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),w=await(n.isElement==null?void 0:n.isElement(C))?await(n.getScale==null?void 0:n.getScale(C))||{x:1,y:1}:{x:1,y:1},L=Zn(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:C,strategy:l}):y);return{top:(x.top-L.top+m.top)/w.y,bottom:(L.bottom-x.bottom+m.bottom)/w.y,left:(x.left-L.left+m.left)/w.x,right:(L.right-x.right+m.right)/w.x}}function Ed(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Fd(e){return Gx.some(t=>e[t]>=0)}async function o1(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Ka(a),i=Ho(a),l=xo(a)==="y",u=["left","top"].includes(s)?-1:1,d=n&&l?-1:1,c=vo(t,e),{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return i&&typeof m=="number"&&(f=i==="end"?m*-1:m),l?{x:f*d,y:p*u}:{x:p*u,y:f*d}}function _o(e){return qc(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ba(e){var t;return(t=(qc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qc(e){return e instanceof Node||e instanceof bt(e).Node}function zt(e){return e instanceof Element||e instanceof bt(e).Element}function ta(e){return e instanceof HTMLElement||e instanceof bt(e).HTMLElement}function Od(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function Zr(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=Ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&!["inline","contents"].includes(r)}function l1(e){return["table","td","th"].includes(_o(e))}function ls(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Fl(e){let t=Ol(),a=zt(e)?Ut(e):e;return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(a.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(a.contain||"").includes(o))}function i1(e){let t=Wa(e);for(;ta(t)&&!Uo(t);){if(Fl(t))return t;if(ls(t))return null;t=Wa(t)}return null}function Ol(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Uo(e){return["html","body","#document"].includes(_o(e))}function Ut(e){return bt(e).getComputedStyle(e)}function is(e){return zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wa(e){if(_o(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Od(e)&&e.host||ba(e);return Od(t)?t.host:t}function Nc(e){let t=Wa(e);return Uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:ta(t)&&Zr(t)?t:Nc(t)}function Vr(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=Nc(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=bt(r);return n?t.concat(s,s.visualViewport||[],Zr(r)?r:[],s.frameElement&&a?Vr(s.frameElement):[]):t.concat(r,Vr(r,[],a))}function zc(e){let t=Ut(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=ta(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=jn(a)!==n||jn(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function Bl(e){return zt(e)?e:e.contextElement}function zo(e){let t=Bl(e);if(!ta(t))return Ga(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=zc(t),s=(n?jn(a.width):a.width)/o,i=(n?jn(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}function Uc(e){let t=bt(e);return!Ol()||!t.visualViewport?u1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function d1(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==bt(e)?!1:t}function yo(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=Bl(e),s=Ga(1);t&&(o?zt(o)&&(s=zo(o)):s=zo(e));let i=d1(n,a,o)?Uc(n):Ga(0),l=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,d=r.width/s.x,c=r.height/s.y;if(n){let p=bt(n),f=o&&zt(o)?bt(o):o,m=p,g=m.frameElement;for(;g&&o&&f!==m;){let h=zo(g),x=g.getBoundingClientRect(),y=Ut(g),C=x.left+(g.clientLeft+parseFloat(y.paddingLeft))*h.x,w=x.top+(g.clientTop+parseFloat(y.paddingTop))*h.y;l*=h.x,u*=h.y,d*=h.x,c*=h.y,l+=C,u+=w,m=bt(g),g=m.frameElement}}return Zn({width:d,height:c,x:l,y:u})}function c1(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=ba(o),i=t?ls(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=Ga(1),d=Ga(0),c=ta(o);if((c||!c&&!n)&&((_o(o)!=="body"||Zr(s))&&(l=is(o)),ta(o))){let p=yo(o);u=zo(o),d.x=p.x+o.clientLeft,d.y=p.y+o.clientTop}return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-l.scrollLeft*u.x+d.x,y:a.y*u.y-l.scrollTop*u.y+d.y}}function f1(e){return Array.from(e.getClientRects())}function Hc(e){return yo(ba(e)).left+is(e).scrollLeft}function p1(e){let t=ba(e),a=is(e),o=e.ownerDocument.body,r=Ct(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=Ct(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-a.scrollLeft+Hc(e),i=-a.scrollTop;return Ut(o).direction==="rtl"&&(s+=Ct(t.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:i}}function m1(e,t){let a=bt(e),o=ba(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){n=r.width,s=r.height;let u=Ol();(!u||u&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:i,y:l}}function g1(e,t){let a=yo(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=ta(e)?zo(e):Ga(1),s=e.clientWidth*n.x,i=e.clientHeight*n.y,l=r*n.x,u=o*n.y;return{width:s,height:i,x:l,y:u}}function Bd(e,t,a){let o;if(t==="viewport")o=m1(e,a);else if(t==="document")o=p1(ba(e));else if(zt(t))o=g1(t,a);else{let r=Uc(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Zn(o)}function _c(e,t){let a=Wa(e);return a===t||!zt(a)||Uo(a)?!1:Ut(a).position==="fixed"||_c(a,t)}function h1(e,t){let a=t.get(e);if(a)return a;let o=Vr(e,[],!1).filter(i=>zt(i)&&_o(i)!=="body"),r=null,n=Ut(e).position==="fixed",s=n?Wa(e):e;for(;zt(s)&&!Uo(s);){let i=Ut(s),l=Fl(s);!l&&i.position==="fixed"&&(r=null),(n?!l&&!r:!l&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Zr(s)&&!l&&_c(e,s))?o=o.filter(d=>d!==s):r=i,s=Wa(s)}return t.set(e,o),o}function x1(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?ls(t)?[]:h1(t,this._c):[].concat(a),o],i=s[0],l=s.reduce((u,d)=>{let c=Bd(t,d,r);return u.top=Ct(c.top,u.top),u.right=Yt(c.right,u.right),u.bottom=Yt(c.bottom,u.bottom),u.left=Ct(c.left,u.left),u},Bd(t,i,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function y1(e){let{width:t,height:a}=zc(e);return{width:t,height:a}}function v1(e,t,a){let o=ta(t),r=ba(t),n=a==="fixed",s=yo(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=Ga(0);if(o||!o&&!n)if((_o(t)!=="body"||Zr(r))&&(i=is(t)),o){let c=yo(t,!0,n,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else r&&(l.x=Hc(r));let u=s.left+i.scrollLeft-l.x,d=s.top+i.scrollTop-l.y;return{x:u,y:d,width:s.width,height:s.height}}function dl(e){return Ut(e).position==="static"}function $d(e,t){return!ta(e)||Ut(e).position==="fixed"?null:t?t(e):e.offsetParent}function Vc(e,t){let a=bt(e);if(ls(e))return a;if(!ta(e)){let r=Wa(e);for(;r&&!Uo(r);){if(zt(r)&&!dl(r))return r;r=Wa(r)}return a}let o=$d(e,t);for(;o&&l1(o)&&dl(o);)o=$d(o,t);return o&&Uo(o)&&dl(o)&&!Fl(o)?a:o||i1(e)||a}function b1(e){return Ut(e).direction==="rtl"}function w1(e,t){let a=null,o,r=ba(e);function n(){var i;clearTimeout(o),(i=a)==null||i.disconnect(),a=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),n();let{left:u,top:d,width:c,height:p}=e.getBoundingClientRect();if(i||t(),!c||!p)return;let f=Gn(d),m=Gn(r.clientWidth-(u+c)),g=Gn(r.clientHeight-(d+p)),h=Gn(u),y={rootMargin:-f+"px "+-m+"px "+-g+"px "+-h+"px",threshold:Ct(0,Yt(1,l))||1},C=!0;function w(L){let E=L[0].intersectionRatio;if(E!==l){if(!C)return s();E?s(!1,E):o=setTimeout(()=>{s(!1,1e-7)},1e3)}C=!1}try{a=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch{a=new IntersectionObserver(w,y)}a.observe(e)}return s(!0),n}function L1(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Bl(e),d=r||n?[...u?Vr(u):[],...Vr(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",a,{passive:!0}),n&&x.addEventListener("resize",a)});let c=u&&i?w1(u,a):null,p=-1,f=null;s&&(f=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=f)==null||C.observe(t)})),a()}),u&&!l&&f.observe(u),f.observe(t));let m,g=l?yo(e):null;l&&h();function h(){let x=yo(e);g&&(x.x!==g.x||x.y!==g.y||x.width!==g.width||x.height!==g.height)&&a(),g=x,m=requestAnimationFrame(h)}return a(),()=>{var x;d.forEach(y=>{r&&y.removeEventListener("scroll",a),n&&y.removeEventListener("resize",a)}),c?.(),(x=f)==null||x.disconnect(),f=null,l&&cancelAnimationFrame(m)}}function ql(){let e=Ue($l);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function Nl(e){let t=ql(),a=he({size:wl},e),[o,r]=ye(a,["ref","style","size"]),n=()=>t.currentPlacement().split("-")[0],s=E1(t.contentRef),i=()=>s()?.getPropertyValue("background-color")||"none",l=()=>s()?.getPropertyValue(`border-${n()}-color`)||"none",u=()=>s()?.getPropertyValue(`border-${n()}-width`)||"0px",d=()=>Number.parseInt(u())*2*(wl/o.size),c=()=>`rotate(${D1[n()]} ${qd} ${qd}) translate(0 2)`;return v(De,te({as:"div",ref(p){let f=ut(t.setArrowRef,o.ref);typeof f=="function"&&f(p)},"aria-hidden":"true",get style(){return os({position:"absolute","font-size":`${o.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:i(),stroke:l(),"stroke-width":d()},o.style)}},r,{get children(){let p=T1(),f=p.firstChild;return W(()=>O(f,"transform",c())),p}}))}function E1(e){let[t,a]=N();return Q(()=>{let o=e();o&&a(D0(o).getComputedStyle(o))}),t}function F1(e){let t=ql(),[a,o]=ye(e,["ref","style"]);return v(De,te({as:"div",ref(r){let n=ut(t.setPositionerRef,a.ref);typeof n=="function"&&n(r)},"data-popper-positioner":"",get style(){return os({position:"absolute",top:0,left:0,"min-width":"max-content"},a.style)}},o))}function Nd(e){let{x:t=0,y:a=0,width:o=0,height:r=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,a,o,r);let n={x:t,y:a,width:o,height:r,top:a,right:t+o,bottom:a+r,left:t};return{...n,toJSON:()=>n}}function O1(e,t){return{contextElement:e,getBoundingClientRect:()=>{let o=t(e);return o?Nd(o):e?e.getBoundingClientRect():Nd()}}}function B1(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function q1(e,t){let[a,o]=e.split("-"),r=$1[a];return o?a==="left"||a==="right"?`${r} ${o==="start"?"top":"bottom"}`:o==="start"?`${r} ${t==="rtl"?"right":"left"}`:`${r} ${t==="rtl"?"left":"right"}`:`${r} center`}function N1(e){let t=he({getAnchorRect:p=>p?.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),[a,o]=N(),[r,n]=N(),[s,i]=N(t.placement),l=()=>O1(t.anchorRef?.(),t.getAnchorRect),{direction:u}=Qa();async function d(){let p=l(),f=a(),m=r();if(!p||!f)return;let g=(m?.clientHeight||0)/2,h=typeof t.gutter=="number"?t.gutter+g:t.gutter??g;f.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),p.getBoundingClientRect();let x=[S1(({placement:E})=>{let D=!!E.split("-")[1];return{mainAxis:h,crossAxis:D?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let E=typeof t.flip=="string"?t.flip.split(" "):void 0;if(E!==void 0&&!E.every(B1))throw new Error("`flip` expects a spaced-delimited list of placements");x.push(k1({padding:t.overflowPadding,fallbackPlacements:E}))}(t.slide||t.overlap)&&x.push(I1({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),x.push(P1({padding:t.overflowPadding,apply({availableWidth:E,availableHeight:D,rects:T}){let S=Math.round(T.reference.width);E=Math.floor(E),D=Math.floor(D),f.style.setProperty("--kb-popper-anchor-width",`${S}px`),f.style.setProperty("--kb-popper-content-available-width",`${E}px`),f.style.setProperty("--kb-popper-content-available-height",`${D}px`),t.sameWidth&&(f.style.width=`${S}px`),t.fitViewport&&(f.style.maxWidth=`${E}px`,f.style.maxHeight=`${D}px`)}})),t.hideWhenDetached&&x.push(M1({padding:t.detachedPadding})),m&&x.push(R1({element:m,padding:t.arrowPadding}));let y=await A1(p,f,{placement:t.placement,strategy:"absolute",middleware:x,platform:{...Gc,isRTL:()=>u()==="rtl"}});if(i(y.placement),t.onCurrentPlacementChange?.(y.placement),!f)return;f.style.setProperty("--kb-popper-content-transform-origin",q1(y.placement,u()));let C=Math.round(y.x),w=Math.round(y.y),L;if(t.hideWhenDetached&&(L=y.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(f.style,{top:"0",left:"0",transform:`translate3d(${C}px, ${w}px, 0)`,visibility:L}),m&&y.middlewareData.arrow){let{x:E,y:D}=y.middlewareData.arrow,T=y.placement.split("-")[0];Object.assign(m.style,{left:E!=null?`${E}px`:"",top:D!=null?`${D}px`:"",[T]:"100%"})}}Q(()=>{let p=l(),f=a();if(!p||!f)return;let m=L1(p,f,d,{elementResize:typeof ResizeObserver=="function"});Z(m)}),Q(()=>{let p=a(),f=t.contentRef?.();!p||!f||queueMicrotask(()=>{p.style.zIndex=getComputedStyle(f).zIndex})});let c={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:o,setArrowRef:n};return v($l.Provider,{value:c,get children(){return t.children}})}function z1(e){let t=a=>{a.key===kl.Escape&&e.onEscapeKeyDown?.(a)};Q(()=>{if(at||A(e.isDisabled))return;let a=e.ownerDocument?.()??ea();a.addEventListener("keydown",t),Z(()=>{a.removeEventListener("keydown",t)})})}function U1(e,t){let a,o=Q0,r=()=>ea(t()),n=c=>e.onPointerDownOutside?.(c),s=c=>e.onFocusOutside?.(c),i=c=>e.onInteractOutside?.(c),l=c=>{let p=c.target;return!(p instanceof HTMLElement)||p.closest(`[${Qn}]`)||!kt(r(),p)||kt(t(),p)?!1:!e.shouldExcludeElement?.(p)},u=c=>{function p(){let f=t(),m=c.target;if(!f||!m||!l(c))return;let g=je([n,i]);m.addEventListener(zd,g,{once:!0});let h=new CustomEvent(zd,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:c.button===2||$0(c)&&c.button===0}});m.dispatchEvent(h)}c.pointerType==="touch"?(r().removeEventListener("click",p),o=p,r().addEventListener("click",p,{once:!0})):p()},d=c=>{let p=t(),f=c.target;if(!p||!f||!l(c))return;let m=je([s,i]);f.addEventListener(Ud,m,{once:!0});let g=new CustomEvent(Ud,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:!1}});f.dispatchEvent(g)};Q(()=>{at||A(e.isDisabled)||(a=window.setTimeout(()=>{r().addEventListener("pointerdown",u,!0)},0),r().addEventListener("focusin",d,!0),Z(()=>{window.clearTimeout(a),r().removeEventListener("click",o),r().removeEventListener("pointerdown",u,!0),r().removeEventListener("focusin",d,!0)}))})}function H1(){return Ue(Wc)}function _1(e){let t,a=H1(),[o,r]=ye(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),n=new Set([]),s=c=>{n.add(c);let p=a?.registerNestedLayer(c);return()=>{n.delete(c),p?.()}};U1({shouldExcludeElement:c=>t?o.excludedElements?.some(p=>kt(p(),c))||[...n].some(p=>kt(p,c)):!1,onPointerDownOutside:c=>{!t||yt.isBelowPointerBlockingLayer(t)||!o.bypassTopMostLayerCheck&&!yt.isTopMostLayer(t)||(o.onPointerDownOutside?.(c),o.onInteractOutside?.(c),c.defaultPrevented||o.onDismiss?.())},onFocusOutside:c=>{o.onFocusOutside?.(c),o.onInteractOutside?.(c),c.defaultPrevented||o.onDismiss?.()}},()=>t),z1({ownerDocument:()=>ea(t),onEscapeKeyDown:c=>{!t||!yt.isTopMostLayer(t)||(o.onEscapeKeyDown?.(c),!c.defaultPrevented&&o.onDismiss&&(c.preventDefault(),o.onDismiss()))}}),ha(()=>{if(!t)return;yt.addLayer({node:t,isPointerBlocking:o.disableOutsidePointerEvents,dismiss:o.onDismiss});let c=a?.registerNestedLayer(t);yt.assignPointerEventToLayers(),yt.disableBodyPointerEvents(t),Z(()=>{t&&(yt.removeLayer(t),c?.(),yt.assignPointerEventToLayers(),yt.restoreBodyPointerEvents(t))})}),Q(Jt([()=>t,()=>o.disableOutsidePointerEvents],([c,p])=>{if(!c)return;let f=yt.find(c);f&&f.isPointerBlocking!==p&&(f.isPointerBlocking=p,yt.assignPointerEventToLayers()),p&&yt.disableBodyPointerEvents(c),Z(()=>{yt.restoreBodyPointerEvents(c)})},{defer:!0}));let d={registerNestedLayer:s};return v(Wc.Provider,{value:d,get children(){return v(De,te({as:"div",ref(c){let p=ut(f=>t=f,o.ref);typeof p=="function"&&p(c)}},r))}})}function Qc(e={}){let[t,a]=wc({value:()=>A(e.open),defaultValue:()=>!!A(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),o=()=>{a(!0)},r=()=>{a(!1)};return{isOpen:t,setIsOpen:a,open:o,close:r,toggle:()=>{t()?r():o()}}}function Xc(){let e=Ue(jc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function Jr(){let e=Ue(Zc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function Jc(e){let t=jr(),a=Xc(),o=`${t.generateId("item")}-${xt()}`,r=he({id:o},e),[n,s]=ye(r,["value","disabled","onPointerDown"]),[i,l]=N(),[u,d]=N(),[c,p]=N(),[f,m]=N(),[g,h]=N(!1),x=k(()=>a.isSelectedValue(n.value)),y=k(()=>n.disabled||t.isDisabled()||!1),C=E=>{Te(E,n.onPointerDown),g()&&E.preventDefault()},w=k(()=>({...t.dataset(),"data-disabled":y()?"":void 0,"data-checked":x()?"":void 0})),L={value:()=>n.value,dataset:w,isSelected:x,isDisabled:y,inputId:i,labelId:u,descriptionId:c,inputRef:f,select:()=>a.setSelectedValue(n.value),generateId:Qr(()=>s.id),registerInput:Pt(l),registerLabel:Pt(d),registerDescription:Pt(p),setIsFocused:h,setInputRef:m};return v(Zc.Provider,{value:L,get children(){return v(De,te({as:"div",role:"group",onPointerDown:C},w,s))}})}function Yc(e){let t=Jr(),a=he({id:t.generateId("control")},e),[o,r]=ye(a,["onClick","onKeyDown"]);return v(De,te({as:"div",onClick:i=>{Te(i,o.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:i=>{Te(i,o.onKeyDown),i.key===kl.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),r))}function ef(e){let t=Jr(),a=he({id:t.generateId("description")},e);return Q(()=>Z(t.registerDescription(a.id))),v(De,te({as:"div"},()=>t.dataset(),a))}function tf(e){let t=Jr(),a=he({id:t.generateId("indicator")},e),[o,r]=ye(a,["ref","forceMount"]),[n,s]=N(),{present:i}=Dc({show:()=>o.forceMount||t.isSelected(),element:()=>n()??null});return v(j,{get when(){return i()},get children(){return v(De,te({as:"div",ref(l){let u=ut(s,o.ref);typeof u=="function"&&u(l)}},()=>t.dataset(),r))}})}function af(e){let t=jr(),a=Xc(),o=Jr(),r=he({id:o.generateId("input")},e),[n,s]=ye(r,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),i=()=>[n["aria-labelledby"],o.labelId(),n["aria-labelledby"]!=null&&s["aria-label"]!=null?s.id:void 0].filter(Boolean).join(" ")||void 0,l=()=>[n["aria-describedby"],o.descriptionId(),a.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[u,d]=N(!1),c=m=>{if(Te(m,n.onChange),m.stopPropagation(),!u()){a.setSelectedValue(o.value());let g=m.target;g.checked=o.isSelected()}d(!1)},p=m=>{Te(m,n.onFocus),o.setIsFocused(!0)},f=m=>{Te(m,n.onBlur),o.setIsFocused(!1)};return Q(Jt([()=>o.isSelected(),()=>o.value()],m=>{if(!m[0]&&m[1]===o.value())return;d(!0);let g=o.inputRef();g?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),g?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},{defer:!0})),Q(()=>Z(o.registerInput(s.id))),v(De,te({as:"input",ref(m){let g=ut(o.setInputRef,n.ref);typeof g=="function"&&g(m)},type:"radio",get name(){return t.name()},get value(){return o.value()},get checked(){return o.isSelected()},get required(){return t.isRequired()},get disabled(){return o.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return os({...yc},n.style)},get"aria-labelledby"(){return i()},get"aria-describedby"(){return l()},onChange:c,onFocus:p,onBlur:f},()=>o.dataset(),s))}function of(e){let t=Jr(),a=he({id:t.generateId("label")},e);return Q(()=>Z(t.registerLabel(a.id))),v(De,te({as:"label",get for(){return t.inputId()}},()=>t.dataset(),a))}function rf(e){return v(Y0,te({as:"span"},e))}function nf(e){let t,a=`radiogroup-${xt()}`,o=he({id:a,orientation:"vertical"},e),[r,n,s]=ye(o,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],Z0),[i,l]=Xr({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:m=>r.onChange?.(m)}),{formControlContext:u}=J0(n);ex(()=>t,()=>l(r.defaultValue??""));let d=()=>u.getAriaLabelledBy(A(n.id),s["aria-label"],r["aria-labelledby"]),c=()=>u.getAriaDescribedBy(r["aria-describedby"]),p=m=>m===i(),f={ariaDescribedBy:c,isSelectedValue:p,setSelectedValue:m=>{if(!(u.isReadOnly()||u.isDisabled())&&(l(m),t))for(let g of t.querySelectorAll("[type='radio']")){let h=g;h.checked=p(h.value)}}};return v(vc.Provider,{value:u,get children(){return v(jc.Provider,{value:f,get children(){return v(De,te({as:"div",ref(m){let g=ut(h=>t=h,r.ref);typeof g=="function"&&g(m)},role:"radiogroup",get id(){return A(n.id)},get"aria-invalid"(){return u.validationState()==="invalid"||void 0},get"aria-required"(){return u.isRequired()||void 0},get"aria-disabled"(){return u.isDisabled()||void 0},get"aria-readonly"(){return u.isReadOnly()||void 0},get"aria-orientation"(){return r.orientation},get"aria-labelledby"(){return d()},get"aria-describedby"(){return c()}},()=>u.dataset(),s))}})}})}function K1(e,t,a){let o=bx({usage:"search",sensitivity:"base"}),r=k(()=>{let n=A(e.keyboardDelegate);return n||new G1(e.collection,t,o)});return Mx({selectionManager:()=>A(e.selectionManager),keyboardDelegate:r,autoFocus:()=>A(e.autoFocus),deferAutoFocus:()=>A(e.deferAutoFocus),shouldFocusWrap:()=>A(e.shouldFocusWrap),disallowEmptySelection:()=>A(e.disallowEmptySelection),selectOnFocus:()=>A(e.selectOnFocus),disallowTypeAhead:()=>A(e.disallowTypeAhead),shouldUseVirtualFocus:()=>A(e.shouldUseVirtualFocus),allowsTabNavigation:()=>A(e.allowsTabNavigation),isVirtualized:()=>A(e.isVirtualized),scrollToKey:n=>A(e.scrollToKey)?.(n),orientation:()=>A(e.orientation)},t)}function W1(e,t){let[a,o]=N(!1),r={pause(){o(!0)},resume(){o(!1)}},n=null,s=m=>e.onMountAutoFocus?.(m),i=m=>e.onUnmountAutoFocus?.(m),l=()=>ea(t()),u=()=>{let m=l().createElement("span");return m.setAttribute("data-focus-trap",""),m.tabIndex=0,Object.assign(m.style,yc),m},d=()=>{let m=t();return m?hc(m,!0).filter(g=>!g.hasAttribute("data-focus-trap")):[]},c=()=>{let m=d();return m.length>0?m[0]:null},p=()=>{let m=d();return m.length>0?m[m.length-1]:null},f=()=>{let m=t();if(!m)return!1;let g=Nr(m);return!g||kt(m,g)?!1:xc(g)};Q(()=>{if(at)return;let m=t();if(!m)return;_d.add(r);let g=Nr(m);if(!kt(m,g)){let x=new CustomEvent(cl,Hd);m.addEventListener(cl,s),m.dispatchEvent(x),x.defaultPrevented||setTimeout(()=>{rt(c()),Nr(m)===g&&rt(m)},0)}Z(()=>{m.removeEventListener(cl,s),setTimeout(()=>{let x=new CustomEvent(fl,Hd);f()&&x.preventDefault(),m.addEventListener(fl,i),m.dispatchEvent(x),x.defaultPrevented||rt(g??l().body),m.removeEventListener(fl,i),_d.remove(r)},0)})}),Q(()=>{if(at)return;let m=t();if(!m||!A(e.trapFocus)||a())return;let g=x=>{let y=x.target;y?.closest(`[${Qn}]`)||(kt(m,y)?n=y:rt(n))},h=x=>{let C=x.relatedTarget??Nr(m);C?.closest(`[${Qn}]`)||kt(m,C)||rt(n)};l().addEventListener("focusin",g),l().addEventListener("focusout",h),Z(()=>{l().removeEventListener("focusin",g),l().removeEventListener("focusout",h)})}),Q(()=>{if(at)return;let m=t();if(!m||!A(e.trapFocus)||a())return;let g=u();m.insertAdjacentElement("afterbegin",g);let h=u();m.insertAdjacentElement("beforeend",h);function x(C){let w=c(),L=p();C.relatedTarget===w?rt(L):rt(w)}g.addEventListener("focusin",x),h.addEventListener("focusin",x);let y=new MutationObserver(C=>{for(let w of C)w.previousSibling===h&&(h.remove(),m.insertAdjacentElement("beforeend",h)),w.nextSibling===g&&(g.remove(),m.insertAdjacentElement("afterbegin",g))});y.observe(m,{childList:!0,subtree:!1}),Z(()=>{g.removeEventListener("focusin",x),h.removeEventListener("focusin",x),g.remove(),h.remove(),y.disconnect()})})}function j1(e){Q(()=>{A(e.isDisabled)||Z(X1(A(e.targets),A(e.root)))})}function X1(e,t=document.body){let a=new Set(e),o=new Set,r=l=>{for(let p of l.querySelectorAll(`[${Q1}], [${Qn}]`))a.add(p);let u=p=>{if(a.has(p)||p.parentElement&&o.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let f of a)if(p.contains(f))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),c=u(l);if(c===NodeFilter.FILTER_ACCEPT&&n(l),c!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)n(p),p=d.nextNode()}},n=l=>{let u=$r.get(l)??0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),o.add(l),$r.set(l,u+1))};St.length&&St[St.length-1].disconnect(),r(t);let s=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...a,...o].some(d=>d.contains(u.target))){for(let d of u.removedNodes)d instanceof Element&&(a.delete(d),o.delete(d));for(let d of u.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?a.add(d):d instanceof Element&&r(d)}});s.observe(t,{childList:!0,subtree:!0});let i={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return St.push(i),()=>{s.disconnect();for(let l of o){let u=$r.get(l);if(u==null)return;u===1?(l.removeAttribute("aria-hidden"),$r.delete(l)):$r.set(l,u-1)}i===St[St.length-1]?(St.pop(),St.length&&St[St.length-1].observe()):St.splice(St.indexOf(i),1)}}function lf(){return Ue(sf)}function wa(){let e=lf();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function zl(){let e=Ue(uf);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function aa(){let e=Ue(df);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function Ul(e){let t,a=aa(),o=wa(),r=he({id:a.generateId(`item-${xt()}`)},e),[n,s]=ye(r,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[i,l]=N(),[u,d]=N(),[c,p]=N(),f=()=>o.listState().selectionManager(),m=()=>s.id,g=()=>f().focusedKey()===m(),h=()=>{n.onSelect?.(),n.closeOnSelect&&setTimeout(()=>{o.close(!0)})};px({getItem:()=>({ref:()=>t,type:"item",key:m(),textValue:n.textValue??c()?.textContent??t?.textContent??"",disabled:n.disabled??!1})});let x=Tc({key:m,selectionManager:f,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),y=S=>{Te(S,n.onPointerMove),S.pointerType==="mouse"&&(n.disabled?o.onItemLeave(S):(o.onItemEnter(S),S.defaultPrevented||(rt(S.currentTarget),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(m()))))},C=S=>{Te(S,n.onPointerLeave),S.pointerType==="mouse"&&o.onItemLeave(S)},w=S=>{Te(S,n.onPointerUp),!n.disabled&&S.button===0&&h()},L=S=>{if(Te(S,n.onKeyDown),!S.repeat&&!n.disabled)switch(S.key){case"Enter":case" ":h();break}},E=k(()=>{if(n.indeterminate)return"mixed";if(n.checked!=null)return n.checked}),D=k(()=>({"data-indeterminate":n.indeterminate?"":void 0,"data-checked":n.checked&&!n.indeterminate?"":void 0,"data-disabled":n.disabled?"":void 0,"data-highlighted":g()?"":void 0})),T={isChecked:()=>n.checked,dataset:D,setLabelRef:p,generateId:Qr(()=>s.id),registerLabel:Pt(l),registerDescription:Pt(d)};return v(uf.Provider,{value:T,get children(){return v(De,te({as:"div",ref(S){let I=ut(_=>t=_,n.ref);typeof I=="function"&&I(S)},get tabIndex(){return x.tabIndex()},get"aria-checked"(){return E()},get"aria-disabled"(){return n.disabled},get"aria-labelledby"(){return i()},get"aria-describedby"(){return u()},get"data-key"(){return x.dataKey()},get onPointerDown(){return je([n.onPointerDown,x.onPointerDown])},get onPointerUp(){return je([w,x.onPointerUp])},get onClick(){return je([n.onClick,x.onClick])},get onKeyDown(){return je([L,x.onKeyDown])},get onMouseDown(){return je([n.onMouseDown,x.onMouseDown])},get onFocus(){return je([n.onFocus,x.onFocus])},onPointerMove:y,onPointerLeave:C},D,s))}})}function cf(e){let t=he({closeOnSelect:!1},e),[a,o]=ye(t,["checked","defaultChecked","onChange","onSelect"]),r=rx({isSelected:()=>a.checked,defaultIsSelected:()=>a.defaultChecked,onSelectedChange:s=>a.onChange?.(s),isDisabled:()=>o.disabled});return v(Ul,te({role:"menuitemcheckbox",get checked(){return r.isSelected()},onSelect:()=>{a.onSelect?.(),r.toggle()}},o))}function us(){return Ue(sy)}function ff(e){let t=aa(),a=wa(),o=us(),{direction:r}=Qa(),n=he({id:t.generateId("trigger")},e),[s,i]=ye(n,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]),l=()=>t.value();o!==void 0&&(l=()=>t.value()??s.id,o.lastValue()===void 0&&o.setLastValue(l));let u=ns(()=>a.triggerRef(),()=>"button"),d=k(()=>u()==="a"&&a.triggerRef()?.getAttribute("href")!=null);Q(Jt(()=>o?.value(),x=>{d()&&x===l()&&a.triggerRef()?.focus()}));let c=()=>{o!==void 0?a.isOpen()?o.value()===l()&&o.closeMenu():(o.autoFocusMenu()||o.setAutoFocusMenu(!0),a.open(!1)):a.toggle(!0)},p=x=>{Te(x,s.onPointerDown),x.currentTarget.dataset.pointerType=x.pointerType,!s.disabled&&x.pointerType!=="touch"&&x.button===0&&c()},f=x=>{Te(x,s.onClick),s.disabled||x.currentTarget.dataset.pointerType==="touch"&&c()},m=x=>{if(Te(x,s.onKeyDown),!s.disabled){if(d())switch(x.key){case"Enter":case" ":return}switch(x.key){case"Enter":case" ":case jd.first(t.orientation()):x.stopPropagation(),x.preventDefault(),X0(x.currentTarget),a.open("first"),o?.setAutoFocusMenu(!0),o?.setValue(l);break;case jd.last(t.orientation()):x.stopPropagation(),x.preventDefault(),a.open("last");break;case Gr.next(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.nextMenu();break;case Gr.previous(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.previousMenu();break}}},g=x=>{Te(x,s.onMouseOver),a.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&o!==void 0&&o.value()!==void 0&&o.setValue(l)},h=x=>{Te(x,s.onFocus),o!==void 0&&x.currentTarget.dataset.pointerType!=="touch"&&o.setValue(l)};return Q(()=>Z(a.registerTriggerId(s.id))),v(Tl,te({ref(x){let y=ut(a.setTriggerRef,s.ref);typeof y=="function"&&y(x)},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 a.isOpen()},get"aria-controls"(){return k(()=>!!a.isOpen())()?a.contentId():void 0},get"data-highlighted"(){return l()!==void 0&&o?.value()===l()?!0:void 0},get tabIndex(){return o!==void 0?o.value()===l()||o.lastValue()===l()?0:-1:void 0},onPointerDown:p,onMouseOver:g,onClick:f,onKeyDown:m,onFocus:h,role:o!==void 0?"menuitem":void 0},()=>a.dataset(),i))}function pf(){return Ue(ly)}function mf(e){let t,a=aa(),o=wa(),r=us(),n=pf(),{direction:s}=Qa(),i=he({id:a.generateId(`content-${xt()}`)},e),[l,u]=ye(i,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),d=0,c=()=>o.parentMenuContext()==null&&r===void 0&&a.isModal(),p=K1({selectionManager:o.listState().selectionManager,collection:o.listState().collection,autoFocus:o.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!o.listState().selectionManager().isFocused(),orientation:()=>a.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);W1({trapFocus:()=>c()&&o.isOpen(),onMountAutoFocus:C=>{r===void 0&&l.onOpenAutoFocus?.(C)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let f=C=>{if(kt(C.currentTarget,C.target)&&(C.key==="Tab"&&o.isOpen()&&C.preventDefault(),r!==void 0&&C.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(C.key){case Gr.next(s(),a.orientation()):C.stopPropagation(),C.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.nextMenu();break;case Gr.previous(s(),a.orientation()):if(C.currentTarget.hasAttribute("data-closed"))break;C.stopPropagation(),C.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.previousMenu();break}},m=C=>{l.onEscapeKeyDown?.(C),r?.setAutoFocusMenu(!1),o.close(!0)},g=C=>{l.onFocusOutside?.(C),a.isModal()&&C.preventDefault()},h=C=>{Te(C,l.onPointerEnter),o.isOpen()&&(o.parentMenuContext()?.listState().selectionManager().setFocused(!1),o.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},x=C=>{if(Te(C,l.onPointerMove),C.pointerType!=="mouse")return;let w=C.target,L=d!==C.clientX;kt(C.currentTarget,w)&&L&&(o.setPointerDir(C.clientX>d?"right":"left"),d=C.clientX)};Q(()=>Z(o.registerContentId(l.id)));let y={ref:ut(C=>{o.setContentRef(C),t=C},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return p.tabIndex()},get"aria-labelledby"(){return o.triggerId()},onKeyDown:je([l.onKeyDown,p.onKeyDown,f]),onMouseDown:je([l.onMouseDown,p.onMouseDown]),onFocusIn:je([l.onFocusIn,p.onFocusIn]),onFocusOut:je([l.onFocusOut,p.onFocusOut]),onPointerEnter:h,onPointerMove:x,get"data-orientation"(){return a.orientation()}};return v(j,{get when(){return o.contentPresent()},get children(){return v(j,{get when(){return n===void 0||o.parentMenuContext()!=null},get fallback(){return v(De,te({as:"div"},()=>o.dataset(),y,u))},get children(){return v(Kc.Positioner,{get children(){return v(_1,te({get disableOutsidePointerEvents(){return k(()=>!!c())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return os({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},l.style)},onEscapeKeyDown:m,onFocusOutside:g,get onDismiss(){return o.close}},()=>o.dataset(),y,u))}})}})}})}function iy(e){let t,a=aa(),o=wa(),[r,n]=ye(e,["ref"]);return ny({element:()=>t??null,enabled:()=>o.contentPresent()&&a.preventScroll()}),v(mf,te({ref(s){let i=ut(l=>{t=l},r.ref);typeof i=="function"&&i(s)}},n))}function uy(){let e=Ue(gf);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function Hl(e){let t=aa(),a=he({id:t.generateId(`group-${xt()}`)},e),[o,r]=N(),n={generateId:Qr(()=>a.id),registerLabelId:Pt(r)};return v(gf.Provider,{value:n,get children(){return v(De,te({as:"div",role:"group",get"aria-labelledby"(){return o()}},a))}})}function hf(e){let t=uy(),a=he({id:t.generateId("label")},e),[o,r]=ye(a,["id"]);return Q(()=>Z(t.registerLabelId(o.id))),v(De,te({as:"span",get id(){return o.id},"aria-hidden":"true"},r))}function xf(e){let t=wa(),a=he({children:"\u25BC"},e);return v(De,te({as:"span","aria-hidden":"true"},()=>t.dataset(),a))}function yf(e){return v(Ul,te({role:"menuitem",closeOnSelect:!0},e))}function vf(e){let t=zl(),a=he({id:t.generateId("description")},e),[o,r]=ye(a,["id"]);return Q(()=>Z(t.registerDescription(o.id))),v(De,te({as:"div",get id(){return o.id}},()=>t.dataset(),r))}function Cf(e){let t=zl(),a=he({id:t.generateId("indicator")},e),[o,r]=ye(a,["forceMount"]);return v(j,{get when(){return o.forceMount||t.isChecked()},get children(){return v(De,te({as:"div"},()=>t.dataset(),r))}})}function bf(e){let t=zl(),a=he({id:t.generateId("label")},e),[o,r]=ye(a,["ref","id"]);return Q(()=>Z(t.registerLabel(o.id))),v(De,te({as:"div",ref(n){let s=ut(t.setLabelRef,o.ref);typeof s=="function"&&s(n)},get id(){return o.id}},()=>t.dataset(),r))}function wf(e){let t=wa();return v(j,{get when(){return t.contentPresent()},get children(){return v(rl,e)}})}function dy(){let e=Ue(Lf);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Sf(e){let a=aa().generateId(`radiogroup-${xt()}`),o=he({id:a},e),[r,n]=ye(o,["value","defaultValue","onChange","disabled"]),[s,i]=Xr({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:u=>r.onChange?.(u)}),l={isDisabled:()=>r.disabled,isSelectedValue:u=>u===s(),setSelectedValue:i};return v(Lf.Provider,{value:l,get children(){return v(Hl,n)}})}function If(e){let t=dy(),a=he({closeOnSelect:!1},e),[o,r]=ye(a,["value","onSelect"]);return v(Ul,te({role:"menuitemradio",get checked(){return t.isSelectedValue(o.value)},onSelect:()=>{o.onSelect?.(),t.setSelectedValue(o.value)}},r))}function cy(e,t,a){let o=e.split("-")[0],r=a.getBoundingClientRect(),n=[],s=t.clientX,i=t.clientY;switch(o){case"top":n.push([s,i+5]),n.push([r.left,r.bottom]),n.push([r.left,r.top]),n.push([r.right,r.top]),n.push([r.right,r.bottom]);break;case"right":n.push([s-5,i]),n.push([r.left,r.top]),n.push([r.right,r.top]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]);break;case"bottom":n.push([s,i-5]),n.push([r.right,r.top]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]),n.push([r.left,r.top]);break;case"left":n.push([s+5,i]),n.push([r.right,r.bottom]),n.push([r.left,r.bottom]),n.push([r.left,r.top]),n.push([r.right,r.top]);break}return n}function fy(e,t){return t?j0([e.clientX,e.clientY],t):!1}function kf(e){let t=aa(),a=Sc(),o=lf(),r=us(),n=pf(),s=he({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[i,l]=ye(s,["open","defaultOpen","onOpenChange"]),u=0,d=null,c="right",[p,f]=N(),[m,g]=N(),[h,x]=N(),[y,C]=N(),[w,L]=N(!0),[E,D]=N(l.placement),[T,S]=N([]),[I,_]=N([]),{DomCollectionProvider:F}=fx({items:I,onItemsChange:_}),re=Qc({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:ee=>i.onOpenChange?.(ee)}),{present:fe}=Dc({show:()=>t.forceMount()||re.isOpen(),element:()=>y()??null}),J=Ax({selectionMode:"none",dataSource:I}),ne=ee=>{L(ee),re.open()},me=(ee=!1)=>{re.close(),ee&&o&&o.close(!0)},xe=ee=>{L(ee),re.toggle()},Ce=()=>{let ee=y();ee&&(rt(ee),J.selectionManager().setFocused(!0),J.selectionManager().setFocusedKey(void 0))},Oe=()=>{n!=null?setTimeout(()=>Ce()):Ce()},Re=ee=>{S(et=>[...et,ee]);let Ft=o?.registerNestedMenu(ee);return()=>{S(et=>hl(et,ee)),Ft?.()}},qe=ee=>c===d?.side&&fy(ee,d?.area),lt=ee=>{qe(ee)&&ee.preventDefault()},$=ee=>{qe(ee)||Oe()},Be=ee=>{qe(ee)&&ee.preventDefault()};j1({isDisabled:()=>!(o==null&&re.isOpen()&&t.isModal()),targets:()=>[y(),...T()].filter(Boolean)}),Q(()=>{let ee=y();if(!ee||!o)return;let Ft=o.registerNestedMenu(ee);Z(()=>{Ft()})}),Q(()=>{o===void 0&&r?.registerMenu(t.value(),[y(),...T()])}),Q(()=>{o!==void 0||r===void 0||(r.value()===t.value()?(h()?.focus(),r.autoFocusMenu()&&ne(!0)):me())}),Q(()=>{o!==void 0||r===void 0||re.isOpen()&&r.setValue(t.value())}),Z(()=>{o===void 0&&r?.unregisterMenu(t.value())});let Ea={dataset:k(()=>({"data-expanded":re.isOpen()?"":void 0,"data-closed":re.isOpen()?void 0:""})),isOpen:re.isOpen,contentPresent:fe,nestedMenus:T,currentPlacement:E,pointerGraceTimeoutId:()=>u,autoFocus:w,listState:()=>J,parentMenuContext:()=>o,triggerRef:h,contentRef:y,triggerId:p,contentId:m,setTriggerRef:x,setContentRef:C,open:ne,close:me,toggle:xe,focusContent:Oe,onItemEnter:lt,onItemLeave:$,onTriggerLeave:Be,setPointerDir:ee=>c=ee,setPointerGraceTimeoutId:ee=>u=ee,setPointerGraceIntent:ee=>d=ee,registerNestedMenu:Re,registerItemToParentDomCollection:a?.registerItem,registerTriggerId:Pt(f),registerContentId:Pt(g)};return v(F,{get children(){return v(sf.Provider,{value:Ea,get children(){return v(j,{when:n===void 0,get fallback(){return l.children},get children(){return v(Kc,te({anchorRef:h,contentRef:y,onCurrentPlacementChange:D},l))}})}})}})}function Pf(e){let{direction:t}=Qa();return v(kf,te({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function Mf(e){let t=wa(),a=aa(),[o,r]=ye(e,["onFocusOutside","onKeyDown"]),{direction:n}=Qa();return v(mf,te({onOpenAutoFocus:d=>{d.preventDefault()},onCloseAutoFocus:d=>{d.preventDefault()},onFocusOutside:d=>{o.onFocusOutside?.(d);let c=d.target;kt(t.triggerRef(),c)||t.close()},onKeyDown:d=>{Te(d,o.onKeyDown);let c=kt(d.currentTarget,d.target),p=py.close(n(),a.orientation()).includes(d.key),f=t.parentMenuContext()!=null;c&&p&&f&&(t.close(),rt(t.triggerRef()))}},r))}function Rf(e){let t,a=aa(),o=wa(),r=he({id:a.generateId(`sub-trigger-${xt()}`)},e),[n,s]=ye(r,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),i=null,l=()=>{at||(i&&window.clearTimeout(i),i=null)},{direction:u}=Qa(),d=()=>n.id,c=()=>{let C=o.parentMenuContext();if(C==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return C.listState().selectionManager()},p=()=>o.listState().collection(),f=()=>c().focusedKey()===d(),m=Tc({key:d,selectionManager:c,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),g=C=>{Te(C,n.onClick),!o.isOpen()&&!n.disabled&&o.open(!0)},h=C=>{if(Te(C,n.onPointerMove),C.pointerType!=="mouse")return;let w=o.parentMenuContext();if(w?.onItemEnter(C),!C.defaultPrevented){if(n.disabled){w?.onItemLeave(C);return}!o.isOpen()&&!i&&(o.parentMenuContext()?.setPointerGraceIntent(null),i=window.setTimeout(()=>{o.open(!1),l()},100)),w?.onItemEnter(C),C.defaultPrevented||(o.listState().selectionManager().isFocused()&&(o.listState().selectionManager().setFocused(!1),o.listState().selectionManager().setFocusedKey(void 0)),rt(C.currentTarget),w?.listState().selectionManager().setFocused(!0),w?.listState().selectionManager().setFocusedKey(d()))}},x=C=>{if(Te(C,n.onPointerLeave),C.pointerType!=="mouse")return;l();let w=o.parentMenuContext(),L=o.contentRef();if(L){w?.setPointerGraceIntent({area:cy(o.currentPlacement(),C,L),side:o.currentPlacement().split("-")[0]}),window.clearTimeout(w?.pointerGraceTimeoutId());let E=window.setTimeout(()=>{w?.setPointerGraceIntent(null)},300);w?.setPointerGraceTimeoutId(E)}else{if(w?.onTriggerLeave(C),C.defaultPrevented)return;w?.setPointerGraceIntent(null)}w?.onItemLeave(C)},y=C=>{Te(C,n.onKeyDown),!C.repeat&&(n.disabled||my.open(u(),a.orientation()).includes(C.key)&&(C.stopPropagation(),C.preventDefault(),c().setFocused(!1),c().setFocusedKey(void 0),o.isOpen()||o.open("first"),o.focusContent(),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(p().getFirstKey())))};return Q(()=>{if(o.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let C=o.registerItemToParentDomCollection({ref:()=>t,type:"item",key:d(),textValue:n.textValue??t?.textContent??"",disabled:n.disabled??!1});Z(C)}),Q(Jt(()=>o.parentMenuContext()?.pointerGraceTimeoutId(),C=>{Z(()=>{window.clearTimeout(C),o.parentMenuContext()?.setPointerGraceIntent(null)})})),Q(()=>Z(o.registerTriggerId(n.id))),Z(()=>{l()}),v(De,te({as:"div",ref(C){let w=ut(L=>{o.setTriggerRef(L),t=L},n.ref);typeof w=="function"&&w(C)},get id(){return n.id},role:"menuitem",get tabIndex(){return m.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return o.isOpen()},get"aria-controls"(){return k(()=>!!o.isOpen())()?o.contentId():void 0},get"aria-disabled"(){return n.disabled},get"data-key"(){return m.dataKey()},get"data-highlighted"(){return f()?"":void 0},get"data-disabled"(){return n.disabled?"":void 0},get onPointerDown(){return je([n.onPointerDown,m.onPointerDown])},get onPointerUp(){return je([n.onPointerUp,m.onPointerUp])},get onClick(){return je([g,m.onClick])},get onKeyDown(){return je([y,m.onKeyDown])},get onMouseDown(){return je([n.onMouseDown,m.onMouseDown])},get onFocus(){return je([n.onFocus,m.onFocus])},onPointerMove:h,onPointerLeave:x},()=>o.dataset(),s))}function gy(e){let t=us(),a=`menu-${xt()}`,o=he({id:a,modal:!0},e),[r,n]=ye(o,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=Qc({open:()=>r.open,defaultOpen:()=>r.defaultOpen,onOpenChange:l=>r.onOpenChange?.(l)}),i={isModal:()=>r.modal??!0,preventScroll:()=>r.preventScroll??i.isModal(),forceMount:()=>r.forceMount??!1,generateId:Qr(()=>r.id),value:()=>r.value,orientation:()=>r.orientation??t?.orientation()??"horizontal"};return v(df.Provider,{value:i,get children(){return v(kf,te({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},n))}})}function ds(e){let t,a=he({orientation:"horizontal"},e),[o,r]=ye(a,["ref","orientation"]),n=ns(()=>t,()=>"hr");return v(De,te({as:"hr",ref(s){let i=ut(l=>t=l,o.ref);typeof i=="function"&&i(s)},get role(){return n()!=="hr"?"separator":void 0},get"aria-orientation"(){return o.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return o.orientation}},r))}function Af(e){let t=aa(),a=wa(),[o,r]=ye(e,["onCloseAutoFocus","onInteractOutside"]),n=!1;return v(iy,te({onCloseAutoFocus:l=>{o.onCloseAutoFocus?.(l),n||rt(a.triggerRef()),n=!1,l.preventDefault()},onInteractOutside:l=>{o.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(n=!0)}},r))}function Tf(e){let t=`dropdownmenu-${xt()}`,a=he({id:t},e);return v(gy,a)}function zy(){return vy()}function Ef(){return Cy()}function Ur(){return by()}function Zd(){return wy()}function Jd(){return _l()}function Uy(){return(()=>{var e=_l();return e.style.setProperty("transform","rotate(90deg)"),e})()}function Hy(){return(()=>{var e=_l();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function _y(){return Ly()}function Vy(){return Sy()}function Gy(){return Iy()}function Ky(){return ky()}function Wy(){return Py()}function Qy(){return My()}function jy(){return Ry()}function Xy(){return Ay()}function Zy(){return Ty()}function Jy(e){return(()=>{var t=Df(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function Yy(){return Dy()}function ev(){return Ey()}function tv(e){return[v(j,{get when(){return e.checked},get children(){var t=Df(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),v(j,{get when(){return!e.checked},get children(){var t=Fy(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function av(){return Oy()}function ov(){return By()}function rv(){return $y()}function nv(){return qy()}function Yd(){let e=xt();return(()=>{var t=Ny(),a=t.firstChild,o=a.nextSibling,r=o.nextSibling,n=r.firstChild,s=r.nextSibling,i=s.firstChild,l=s.nextSibling,u=l.nextSibling,d=u.firstChild,c=u.nextSibling,p=c.firstChild,f=c.nextSibling,m=f.nextSibling,g=m.firstChild,h=m.nextSibling,x=h.firstChild,y=h.nextSibling,C=y.nextSibling,w=C.firstChild,L=C.nextSibling,E=L.firstChild,D=L.nextSibling,T=D.nextSibling,S=T.firstChild,I=T.nextSibling,_=I.firstChild,F=I.nextSibling,re=F.nextSibling,fe=re.firstChild,J=re.nextSibling,ne=J.firstChild,me=J.nextSibling,xe=me.nextSibling,Ce=xe.firstChild,Oe=xe.nextSibling,Re=Oe.firstChild,qe=Oe.nextSibling,lt=qe.firstChild,$=lt.nextSibling,Be=$.nextSibling,be=Be.nextSibling,Ea=be.nextSibling,ee=qe.nextSibling,Ft=ee.firstChild,et=ee.nextSibling,So=et.firstChild,wt=et.nextSibling,Fa=wt.firstChild,no=Fa.nextSibling,ia=no.nextSibling,Wt=ia.firstChild,ua=Wt.nextSibling,z=ua.nextSibling,Ie=z.nextSibling,it=Ie.nextSibling,Pe=it.nextSibling,Se=Pe.nextSibling,Ae=Se.nextSibling,We=Ae.nextSibling,Le=We.nextSibling,da=Le.nextSibling,ca=da.nextSibling,Ot=wt.nextSibling,so=Ot.firstChild,fa=Ot.nextSibling,lo=fa.firstChild,pa=fa.nextSibling,Oa=pa.firstChild,xn=Oa.nextSibling,Zo=pa.nextSibling,yn=Zo.firstChild,Io=Zo.nextSibling,vn=Io.firstChild,Jo=Io.nextSibling,Yo=Jo.firstChild,er=Yo.nextSibling,ko=er.nextSibling,Ri=ko.nextSibling,Ai=Ri.nextSibling,Ti=Ai.nextSibling,Di=Ti.nextSibling,Ei=Di.nextSibling,Fi=Ei.nextSibling,Oi=Fi.nextSibling,Bi=Oi.nextSibling,$i=Bi.nextSibling,qi=$i.nextSibling,Ni=qi.nextSibling,zi=Ni.nextSibling,Ui=zi.nextSibling,Hi=Ui.nextSibling,_m=Hi.nextSibling;return O(a,"id",`a-${e}`),O(o,"fill",`url(#a-${e})`),O(n,"id",`am-${e}`),O(s,"id",`b-${e}`),O(i,"filter",`url(#am-${e})`),O(l,"mask",`url(#b-${e})`),O(d,"id",`ah-${e}`),O(c,"id",`k-${e}`),O(p,"filter",`url(#ah-${e})`),O(f,"mask",`url(#k-${e})`),O(g,"id",`ae-${e}`),O(h,"id",`j-${e}`),O(x,"filter",`url(#ae-${e})`),O(y,"mask",`url(#j-${e})`),O(w,"id",`ai-${e}`),O(L,"id",`i-${e}`),O(E,"filter",`url(#ai-${e})`),O(D,"mask",`url(#i-${e})`),O(S,"id",`aj-${e}`),O(I,"id",`h-${e}`),O(_,"filter",`url(#aj-${e})`),O(F,"mask",`url(#h-${e})`),O(fe,"id",`ag-${e}`),O(J,"id",`g-${e}`),O(ne,"filter",`url(#ag-${e})`),O(me,"mask",`url(#g-${e})`),O(Ce,"id",`af-${e}`),O(Oe,"id",`f-${e}`),O(Re,"filter",`url(#af-${e})`),O(qe,"mask",`url(#f-${e})`),O(be,"id",`m-${e}`),O(Ea,"fill",`url(#m-${e})`),O(Ft,"id",`ak-${e}`),O(et,"id",`e-${e}`),O(So,"filter",`url(#ak-${e})`),O(wt,"mask",`url(#e-${e})`),O(Fa,"id",`n-${e}`),O(no,"fill",`url(#n-${e})`),O(Wt,"id",`r-${e}`),O(ua,"fill",`url(#r-${e})`),O(z,"id",`s-${e}`),O(Ie,"fill",`url(#s-${e})`),O(it,"id",`q-${e}`),O(Pe,"fill",`url(#q-${e})`),O(Se,"id",`p-${e}`),O(Ae,"fill",`url(#p-${e})`),O(We,"id",`o-${e}`),O(Le,"fill",`url(#o-${e})`),O(da,"id",`l-${e}`),O(ca,"fill",`url(#l-${e})`),O(so,"id",`al-${e}`),O(fa,"id",`d-${e}`),O(lo,"filter",`url(#al-${e})`),O(pa,"mask",`url(#d-${e})`),O(Oa,"id",`u-${e}`),O(xn,"fill",`url(#u-${e})`),O(yn,"id",`ad-${e}`),O(Io,"id",`c-${e}`),O(vn,"filter",`url(#ad-${e})`),O(Jo,"mask",`url(#c-${e})`),O(Yo,"id",`t-${e}`),O(er,"fill",`url(#t-${e})`),O(ko,"id",`v-${e}`),O(Ri,"stroke",`url(#v-${e})`),O(Ai,"id",`aa-${e}`),O(Ti,"stroke",`url(#aa-${e})`),O(Di,"id",`w-${e}`),O(Ei,"stroke",`url(#w-${e})`),O(Fi,"id",`ac-${e}`),O(Oi,"stroke",`url(#ac-${e})`),O(Bi,"id",`ab-${e}`),O($i,"stroke",`url(#ab-${e})`),O(qi,"id",`y-${e}`),O(Ni,"stroke",`url(#y-${e})`),O(zi,"id",`x-${e}`),O(Ui,"stroke",`url(#x-${e})`),O(Hi,"id",`z-${e}`),O(_m,"stroke",`url(#z-${e})`),t})()}function hv(e,t){let a=0,o=[];for(;a<e.length;)o.push(e.slice(a,a+t)),a=a+t;return o}function oc(e){return Symbol.iterator in e}function _a(e){let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a)),r=X().client,[n,s]=N((e.defaultExpanded||[]).includes(e.label)),i=()=>s(m=>!m),[l,u]=N([]),d=k(()=>Array.isArray(e.value)?e.value.map((m,g)=>({label:g.toString(),value:m})):e.value!==null&&typeof e.value=="object"&&oc(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([m,g])=>({label:m,value:g})):Array.from(e.value,(m,g)=>({label:g.toString(),value:m})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([m,g])=>({label:m,value:g})):[]),c=k(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&oc(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),p=k(()=>hv(d(),100)),f=e.dataPath??[];return(()=>{var m=qr();return P(m,v(j,{get when(){return p().length},get children(){return[(()=>{var g=fv(),h=g.firstChild,x=h.firstChild,y=x.nextSibling,C=y.nextSibling,w=C.nextSibling,L=w.firstChild;return h.$$click=()=>i(),P(h,v(tc,{get expanded(){return n()}}),x),P(y,()=>e.label),P(w,()=>String(c()).toLowerCase()==="iterable"?"(Iterable) ":"",L),P(w,()=>d().length,L),P(w,()=>d().length>1?"items":"item",null),P(g,v(j,{get when(){return e.editable},get children(){var E=qr();return P(E,v(xv,{get value(){return e.value}}),null),P(E,v(j,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return v(ac,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),P(E,v(j,{get when(){return c()==="array"&&e.activeQuery!==void 0},get children(){return v(yv,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),P(E,v(j,{get when(){return k(()=>!!e.onEdit)()&&!nl(e.value).meta},get children(){var D=cv();return D.$$click=()=>{e.onEdit?.()},P(D,v(Zy,{})),W(()=>B(D,o().actionButton)),D}}),null),W(()=>B(E,o().actions)),E}}),null),W(E=>{var D=o().expanderButtonContainer,T=o().expanderButton,S=o().info;return D!==E.e&&B(g,E.e=D),T!==E.t&&B(h,E.t=T),S!==E.a&&B(w,E.a=S),E},{e:void 0,t:void 0,a:void 0}),g})(),v(j,{get when(){return n()},get children(){return[v(j,{get when(){return p().length===1},get children(){var g=qr();return P(g,v(Wn,{get each(){return d()},by:h=>h.label,children:h=>v(_a,{get defaultExpanded(){return e.defaultExpanded},get label(){return h().label},get value(){return h().value},get editable(){return e.editable},get dataPath(){return[...f,h().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return c()==="array"||c()==="Iterable"||c()==="object"}})})),W(()=>B(g,o().subEntry)),g}}),v(j,{get when(){return p().length>1},get children(){var g=qr();return P(g,v(qu,{get each(){return p()},children:(h,x)=>(()=>{var y=gv(),C=y.firstChild,w=C.firstChild,L=w.firstChild,E=L.nextSibling,D=E.nextSibling,T=D.nextSibling;return T.nextSibling,w.$$click=()=>u(S=>S.includes(x)?S.filter(I=>I!==x):[...S,x]),P(w,v(tc,{get expanded(){return l().includes(x)}}),L),P(w,x*100,E),P(w,x*100+100-1,T),P(C,v(j,{get when(){return l().includes(x)},get children(){var S=qr();return P(S,v(Wn,{get each(){return h()},by:I=>I.label,children:I=>v(_a,{get defaultExpanded(){return e.defaultExpanded},get label(){return I().label},get value(){return I().value},get editable(){return e.editable},get dataPath(){return[...f,I().label]},get activeQuery(){return e.activeQuery}})})),W(()=>B(S,o().subEntry)),S}}),null),W(S=>{var I=o().entry,_=o().expanderButton;return I!==S.e&&B(C,S.e=I),_!==S.t&&B(w,S.t=_),S},{e:void 0,t:void 0}),y})()})),W(()=>B(g,o().subEntry)),g}})]}})]}}),null),P(m,v(j,{get when(){return p().length===0},get children(){var g=mv(),h=g.firstChild,x=h.firstChild;return P(h,()=>e.label,x),P(g,v(j,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number"||c()==="boolean")},get fallback(){return(()=>{var y=ec();return P(y,()=>Fr(e.value)),W(()=>B(y,o().value)),y})()},get children(){return[v(j,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number")},get children(){var y=pv();return y.addEventListener("change",C=>{let w=e.activeQuery.state.data,L=za(w,f,c()==="number"?C.target.valueAsNumber:C.target.value);r.setQueryData(e.activeQuery.queryKey,L)}),W(C=>{var w=c()==="number"?"number":"text",L=H(o().value,o().editableInput);return w!==C.e&&O(y,"type",C.e=w),L!==C.t&&B(y,C.t=L),C},{e:void 0,t:void 0}),W(()=>y.value=e.value),y}}),v(j,{get when(){return c()==="boolean"},get children(){var y=ec();return P(y,v(vv,{get activeQuery(){return e.activeQuery},dataPath:f,get value(){return e.value}}),null),P(y,()=>Fr(e.value),null),W(()=>B(y,H(o().value,o().actions,o().editableInput))),y}})]}}),null),P(g,v(j,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return v(ac,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),W(y=>{var C=o().row,w=o().label;return C!==y.e&&B(g,y.e=C),w!==y.t&&B(h,y.t=w),y},{e:void 0,t:void 0}),g}}),null),W(()=>B(m,o().entry)),m})()}var _h,Vh,cd,Gh,Kh,A,pl,jh,es,Jh,fd,Lt,Yh,ho,Sl,e0,ml,ts,t0,sc,a0,lc,o0,pd,r0,Kr,ic,as,Il,Wr,uc,n0,s0,ft,xd,p0,m0,g0,h0,yd,go,xa,dc,x0,y0,vd,Cd,il,M0,kl,Vn,gc,U0,Ml,H0,Br,Id,yc,Z0,vc,nx,ss,Lc,gx,hx,yl,zr,Cx,ul,ya,Rx,Td,ot,Tx,Dx,Dc,Qn,Ec,vl,Ca,yt,Ux,Hx,Vx,Gx,Yt,Ct,jn,Gn,Ga,Kx,Wx,Yx,e1,t1,a1,r1,n1,s1,u1,C1,Gc,S1,I1,k1,P1,M1,R1,A1,$l,T1,wl,qd,D1,$1,Kc,zd,Ud,Wc,It,jc,Zc,V1,G1,cl,fl,Hd,_d,Q1,$r,St,Kn,Z1,Vd,J1,Y1,ey,Gd,Kd,ty,ay,oy,Wd,Qd,Ll,ry,ny,sf,uf,df,sy,Gr,jd,ly,gf,Lf,py,Xd,my,hy,xy,He,yy,M,vy,Cy,by,wy,_l,Ly,Sy,Iy,ky,Py,My,Ry,Ay,Ty,Df,Dy,Ey,Fy,Oy,By,$y,qy,Ny,sv,lv,iv,uv,dv,cv,qr,fv,pv,ec,mv,gv,tc,xv,yv,ac,vv,Ff,Vo,Go,Cv,Yr,bv,wv,Lv,Sv,Iv,kv,Pv,Mv,Rv,Av,Tv,Dv,Ev,Fv,Ov,Bv,$v,qv,Nv,rc,zv,Of,Uv,Hv,_v,Vv,Gv,Kv,Wv,Qv,jv,Xv,vt,cs,Va,Bf,Nt,Vl,$o,nc,$f,Zv,qf,Jv,fs,Yv,eC,tC,aC,va,oC,rC,Jn,nC,Je,Yn,sC,qt,Nf,Mt,Rt,Gl=tr(()=>{"use strict";b();Or();_h=!at,Vh=_h&&!!zu,cd=()=>{},Gh=e=>e!=null,Kh=e=>e.filter(Gh);A=e=>typeof e=="function"&&!e.length?e():e,pl=e=>Array.isArray(e)?e:e?[e]:[];jh=Vh?e=>En()?Z(e):e:Z;es=Zh,Jh=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),fd=e=>{if(!e)return"";let t="";for(let a in e){if(!e.hasOwnProperty(a))continue;let o=e[a];t+=o instanceof Date?`; ${a}=${o.toUTCString()}`:typeof o=="boolean"?`; ${a}`:`; ${a}=${o}`}return t},Lt=Jh({_cookies:[globalThis.document,"cookie"],getItem:e=>Lt._cookies[0][Lt._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,a)=>{let o=Lt.getItem(e);Lt._cookies[0][Lt._cookies[1]]=`${e}=${t}${fd(a)}`;let r=Object.assign(new Event("storage"),{key:e,oldValue:o,newValue:t,url:globalThis.document.URL,storageArea:Lt});window.dispatchEvent(r)},removeItem:e=>{Lt._cookies[0][Lt._cookies[1]]=`${e}=deleted${fd({expires:new Date(0)})}`},key:e=>{let t=null,a=0;return Lt._cookies[0][Lt._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(o,r)=>(!t&&r&&a++===e&&(t=r),"")),t},get length(){let e=0;return Lt._cookies[0][Lt._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),Yh=1024,ho=796,Sl=700,e0="bottom-right",ml="bottom",ts="system",t0=!1,sc=500,a0=500,lc=500,o0=Object.keys(Un)[0],pd=1,r0=Object.keys(Hn)[0],Kr=Qe({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});ic=Qe(void 0),as=e=>{let[t,a]=N(null),o=()=>{let s=t();s!=null&&(s.close(),a(null))},r=(s,i)=>{if(t()!=null)return;let l=window.open("","TSQD-Devtools-Panel",`width=${s},height=${i},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="",Uu(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),a(null)}),[...(X().shadowDOMTarget||document).styleSheets].forEach(u=>{try{let d=[...u.cssRules].map(m=>m.cssText).join(""),c=document.createElement("style"),p=u.ownerNode,f="";p&&"id"in p&&(f=p.id),f&&c.setAttribute("id",f),c.textContent=d,l.document.head.appendChild(c)}catch{let c=document.createElement("link");if(u.href==null)return;c.rel="stylesheet",c.type=u.type,c.media=u.media.toString(),c.href=u.href,l.document.head.appendChild(c)}}),Er(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),a(l)};Q(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&r(Number(window.innerWidth),Number(e.localStore.height||a0))}),Q(()=>{let s=(X().shadowDOMTarget||document).querySelector("#_goober"),i=t();if(s&&i){let l=new MutationObserver(()=>{let u=(X().shadowDOMTarget||i.document).querySelector("#_goober");u&&(u.textContent=s.textContent)});l.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),Z(()=>{l.disconnect()})}});let n=k(()=>({pipWindow:t(),requestPipWindow:r,closePipWindow:o,disabled:e.disabled??!1}));return v(ic.Provider,{value:n,get children(){return e.children}})},Il=()=>k(()=>{let t=Ue(ic);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),Wr=Qe(()=>"dark");uc={\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"},n0=Object.keys(uc).join("|"),s0=new RegExp(n0,"g");ft={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};xd={maxRanking:1/0,minRanking:-1/0};p0={data:""},m0=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||p0,g0=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,h0=/\/\*[^]*?\*\/| +/g,yd=/\n+/g,go=(e,t)=>{let a="",o="",r="";for(let n in e){let s=e[n];n[0]=="@"?n[1]=="i"?a=n+" "+s+";":o+=n[1]=="f"?go(s,n):n+"{"+go(s,n[1]=="k"?"":t)+"}":typeof s=="object"?o+=go(s,t?t.replace(/([^,])+/g,i=>n.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,i):i?i+" "+l:l)):n):s!=null&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=go.p?go.p(n,s):n+":"+s+";")}return a+(t&&r?t+"{"+r+"}":r)+o},xa={},dc=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+dc(e[a]);return t}return e},x0=(e,t,a,o,r)=>{let n=dc(e),s=xa[n]||(xa[n]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(n));if(!xa[s]){let l=n!==e?e:(u=>{let d,c,p=[{}];for(;d=g0.exec(u.replace(h0,""));)d[4]?p.shift():d[3]?(c=d[3].replace(yd," ").trim(),p.unshift(p[0][c]=p[0][c]||{})):p[0][d[1]]=d[2].replace(yd," ").trim();return p[0]})(e);xa[s]=go(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&xa.g?xa.g:null;return a&&(xa.g=xa[s]),((l,u,d,c)=>{c?u.data=u.data.replace(c,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(xa[s],t,o,i),s},y0=(e,t,a)=>e.reduce((o,r,n)=>{let s=t[n];if(s&&s.call){let i=s(a),l=i&&i.props&&i.props.className||/^go/.test(i)&&i;s=l?"."+l:i&&typeof i=="object"?i.props?"":go(i,""):i===!1?"":i}return o+r+(s??"")},"");se.bind({g:1});se.bind({k:1});vd=at?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;Cd=e=>{let t=b0(e);return v0(C0(()=>e.children).toArray,{appear:e.appear,onChange({added:a,removed:o,finishRemoved:r,list:n}){let s=t();for(let l of a)w0(s,e,l);let i=[];for(let l of n)l.isConnected&&(l instanceof HTMLElement||l instanceof SVGElement)&&i.push({el:l,rect:l.getBoundingClientRect()});queueMicrotask(()=>{let l=[];for(let{el:u,rect:d}of i)if(u.isConnected){let c=u.getBoundingClientRect(),p=d.left-c.left,f=d.top-c.top;(p||f)&&(u.style.transform=`translate(${p}px, ${f}px)`,u.style.transitionDuration="0s",l.push(u))}document.body.offsetHeight;for(let u of l){let d=function(c){(c.target===u||/transform$/.test(c.propertyName))&&(u.removeEventListener("transitionend",d),u.classList.remove(...s.move))};u.classList.add(...s.move),u.style.transform=u.style.transitionDuration="",u.addEventListener("transitionend",d)}});for(let l of o)L0(s,e,l,()=>r([l]))}})},il=Symbol("fallback");M0=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;kl=(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))(kl||{});Vn=null;gc=["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'])"],U0=[...gc,'[tabindex]:not([tabindex="-1"]):not([disabled])'],Ml=gc.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",H0=U0.join(':not([hidden]):not([tabindex="-1"]),');Br=new Map,Id=new Set;typeof document<"u"&&(document.readyState!=="loading"?kd():document.addEventListener("DOMContentLoaded",kd));yc={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"};Z0=["id","name","validationState","required","disabled","readOnly"];vc=Qe();nx=Object.defineProperty,ss=(e,t)=>{for(var a in t)nx(e,a,{get:t[a],enumerable:!0})},Lc=Qe();gx=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),hx=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);yl=Mc(),zr=new Set;Cx=Qe();ul=new Map;ya=class Rc extends Set{anchorKey;currentKey;constructor(t,a,o){super(t),t instanceof Rc?(this.anchorKey=a||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=a,this.currentKey=o)}};Rx=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 a=this.collection().getItem(t),o=a?.index!=null&&e?.index!=null&&a.index<e.index;(!e||o)&&(e=a)}return e?.key}lastSelectedKey(){let e;for(let t of this.state.selectedKeys()){let a=this.collection().getItem(t),o=a?.index!=null&&e?.index!=null&&a.index>e.index;(!e||o)&&(e=a)}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 a=this.state.selectedKeys(),o=a.anchorKey||t,r=new ya(a,o,t);for(let n of this.getKeyRange(o,a.currentKey||t))r.delete(n);for(let n of this.getKeyRange(t,o))this.canSelectItem(n)&&r.add(n);this.state.setSelectedKeys(r)}getKeyRange(e,t){let a=this.collection().getItem(e),o=this.collection().getItem(t);return a&&o?a.index!=null&&o.index!=null&&a.index<=o.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let a=[],o=e;for(;o!=null;){let r=this.collection().getItem(o);if(r&&r.type==="item"&&a.push(o),o===t)return a;o=this.collection().getKeyAfter(o)}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 a=new ya(this.state.selectedKeys());a.has(t)?a.delete(t):this.canSelectItem(t)&&(a.add(t),a.anchorKey=t,a.currentKey=t),!(this.disallowEmptySelection()&&a.size===0)&&this.state.setSelectedKeys(a)}replaceSelection(e){if(this.selectionMode()==="none")return;let t=this.getKey(e);if(t==null)return;let a=this.canSelectItem(t)?new ya([t],t,t):new ya;this.state.setSelectedKeys(a)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new ya;for(let a of e){let o=this.getKey(a);if(o!=null&&(t.add(o),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 ya)}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 a of e)if(!t.has(a))return!1;for(let a of t)if(!e.has(a))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(a=>{for(;a!=null;){if(this.canSelectItem(a)){let o=this.collection().getItem(a);if(!o)continue;o.type==="item"&&e.push(a)}a=this.collection().getKeyAfter(a)}})(this.collection().getFirstKey()),e}},Td=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(let o of e)this.keyMap.set(o.key,o);if(this.keyMap.size===0)return;let t,a=0;for(let[o,r]of this.keyMap)t?(t.nextKey=o,r.prevKey=t.key):(this.firstKey=o,r.prevKey=void 0),r.type==="item"&&(r.index=a++),t=r,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])}};ot=e=>typeof e=="function"?e():e,Tx=e=>{let t=k(()=>{let s=ot(e.element);if(s)return getComputedStyle(s)}),a=()=>t()?.animationName??"none",[o,r]=N(ot(e.show)?"present":"hidden"),n="none";return Q(s=>{let i=ot(e.show);return ke(()=>{if(s===i)return i;let l=n,u=a();i?r("present"):u==="none"||t()?.display==="none"?r("hidden"):r(s===!0&&l!==u?"hiding":"hidden")}),i}),Q(()=>{let s=ot(e.element);if(!s)return;let i=u=>{u.target===s&&(n=a())},l=u=>{let c=a().includes(u.animationName);u.target===s&&c&&o()==="hiding"&&r("hidden")};s.addEventListener("animationstart",i),s.addEventListener("animationcancel",l),s.addEventListener("animationend",l),Z(()=>{s.removeEventListener("animationstart",i),s.removeEventListener("animationcancel",l),s.removeEventListener("animationend",l)})}),{present:()=>o()==="present"||o()==="hiding",state:o}},Dx=Tx,Dc=Dx,Qn="data-kb-top-layer",vl=!1,Ca=[];yt={layers:Ca,isTopMostLayer:Fx,hasPointerBlockingLayer:Al,isBelowPointerBlockingLayer:Oc,addLayer:Bx,removeLayer:$x,indexOf:Hr,find:Ex,assignPointerEventToLayers:qx,disableBodyPointerEvents:Nx,restoreBodyPointerEvents:zx},Ux={};ss(Ux,{Button:()=>Vx,Root:()=>Tl});Hx=["button","color","file","image","reset","submit"];Vx=Tl,Gx=["top","right","bottom","left"],Yt=Math.min,Ct=Math.max,jn=Math.round,Gn=Math.floor,Ga=e=>({x:e,y:e}),Kx={left:"right",right:"left",bottom:"top",top:"bottom"},Wx={start:"end",end:"start"};Yx=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:s}=a,i=n.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:c}=Dd(u,o,l),p=o,f={},m=0;for(let g=0;g<i.length;g++){let{name:h,fn:x}=i[g],{x:y,y:C,data:w,reset:L}=await x({x:d,y:c,initialPlacement:o,placement:p,strategy:r,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});d=y??d,c=C??c,f={...f,[h]:{...f[h],...w}},L&&m<=50&&(m++,typeof L=="object"&&(L.placement&&(p=L.placement),L.rects&&(u=L.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):L.rects),{x:d,y:c}=Dd(u,p,l)),g=-1)}return{x:d,y:c,placement:p,strategy:r,middlewareData:f}};e1=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:n,platform:s,elements:i,middlewareData:l}=t,{element:u,padding:d=0}=vo(e,t)||{};if(u==null)return{};let c=$c(d),p={x:a,y:o},f=El(r),m=Dl(f),g=await s.getDimensions(u),h=f==="y",x=h?"top":"left",y=h?"bottom":"right",C=h?"clientHeight":"clientWidth",w=n.reference[m]+n.reference[f]-p[f]-n.floating[m],L=p[f]-n.reference[f],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),D=E?E[C]:0;(!D||!await(s.isElement==null?void 0:s.isElement(E)))&&(D=i.floating[C]||n.floating[m]);let T=w/2-L/2,S=D/2-g[m]/2-1,I=Yt(c[x],S),_=Yt(c[y],S),F=I,re=D-g[m]-_,fe=D/2-g[m]/2+T,J=Cl(F,fe,re),ne=!l.arrow&&Ho(r)!=null&&fe!==J&&n.reference[m]/2-(fe<F?I:_)-g[m]/2<0,me=ne?fe<F?fe-F:fe-re:0;return{[f]:p[f]+me,data:{[f]:J,centerOffset:fe-J-me,...ne&&{alignmentOffset:me}},reset:ne}}}),t1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:r,middlewareData:n,rects:s,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=vo(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let x=Ka(r),y=xo(i),C=Ka(i)===i,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),L=p||(C||!g?[Xn(i)]:jx(i)),E=m!=="none";!p&&E&&L.push(...Zx(i,g,m,w));let D=[i,...L],T=await _r(t,h),S=[],I=((o=n.flip)==null?void 0:o.overflows)||[];if(d&&S.push(T[x]),c){let fe=Qx(r,s,w);S.push(T[fe[0]],T[fe[1]])}if(I=[...I,{placement:r,overflows:S}],!S.every(fe=>fe<=0)){var _,F;let fe=(((_=n.flip)==null?void 0:_.index)||0)+1,J=D[fe];if(J)return{data:{index:fe,overflows:I},reset:{placement:J}};let ne=(F=I.filter(me=>me.overflows[0]<=0).sort((me,xe)=>me.overflows[1]-xe.overflows[1])[0])==null?void 0:F.placement;if(!ne)switch(f){case"bestFit":{var re;let me=(re=I.filter(xe=>{if(E){let Ce=xo(xe.placement);return Ce===y||Ce==="y"}return!0}).map(xe=>[xe.placement,xe.overflows.filter(Ce=>Ce>0).reduce((Ce,Oe)=>Ce+Oe,0)]).sort((xe,Ce)=>xe[1]-Ce[1])[0])==null?void 0:re[0];me&&(ne=me);break}case"initialPlacement":ne=i;break}if(r!==ne)return{reset:{placement:ne}}}return{}}}};a1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a}=t,{strategy:o="referenceHidden",...r}=vo(e,t);switch(o){case"referenceHidden":{let n=await _r(t,{...r,elementContext:"reference"}),s=Ed(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Fd(s)}}}case"escaped":{let n=await _r(t,{...r,altBoundary:!0}),s=Ed(n,a.floating);return{data:{escapedOffsets:s,escaped:Fd(s)}}}default:return{}}}}};r1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:n,placement:s,middlewareData:i}=t,l=await o1(t,e);return s===((a=i.offset)==null?void 0:a.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:n+l.y,data:{...l,placement:s}}}}},n1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:s=!1,limiter:i={fn:h=>{let{x,y}=h;return{x,y}}},...l}=vo(e,t),u={x:a,y:o},d=await _r(t,l),c=xo(Ka(r)),p=Bc(c),f=u[p],m=u[c];if(n){let h=p==="y"?"top":"left",x=p==="y"?"bottom":"right",y=f+d[h],C=f-d[x];f=Cl(y,f,C)}if(s){let h=c==="y"?"top":"left",x=c==="y"?"bottom":"right",y=m+d[h],C=m-d[x];m=Cl(y,m,C)}let g=i.fn({...t,[p]:f,[c]:m});return{...g,data:{x:g.x-a,y:g.y-o}}}}},s1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:o,platform:r,elements:n}=t,{apply:s=()=>{},...i}=vo(e,t),l=await _r(t,i),u=Ka(a),d=Ho(a),c=xo(a)==="y",{width:p,height:f}=o.floating,m,g;u==="top"||u==="bottom"?(m=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(g=u,m=d==="end"?"top":"bottom");let h=f-l.top-l.bottom,x=p-l.left-l.right,y=Yt(f-l[m],h),C=Yt(p-l[g],x),w=!t.middlewareData.shift,L=y,E=C;if(c?E=d||w?Yt(C,x):x:L=d||w?Yt(y,h):h,w&&!d){let T=Ct(l.left,0),S=Ct(l.right,0),I=Ct(l.top,0),_=Ct(l.bottom,0);c?E=p-2*(T!==0||S!==0?T+S:Ct(l.left,l.right)):L=f-2*(I!==0||_!==0?I+_:Ct(l.top,l.bottom))}await s({...t,availableWidth:E,availableHeight:L});let D=await r.getDimensions(n.floating);return p!==D.width||f!==D.height?{reset:{rects:!0}}:{}}}};u1=Ga(0);C1=async function(e){let t=this.getOffsetParent||Vc,a=this.getDimensions,o=await a(e.floating);return{reference:v1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};Gc={convertOffsetParentRelativeRectToViewportRelativeRect:c1,getDocumentElement:ba,getClippingRect:x1,getOffsetParent:Vc,getElementRects:C1,getClientRects:f1,getDimensions:y1,getScale:zo,isElement:zt,isRTL:b1};S1=r1,I1=n1,k1=t1,P1=s1,M1=a1,R1=e1,A1=(e,t,a)=>{let o=new Map,r={platform:Gc,...a},n={...r.platform,_c:o};return Yx(e,t,{...r,platform:n})},$l=Qe();T1=K('<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">'),wl=30,qd=wl/2,D1={top:180,right:-90,bottom:0,left:90};$1={top:"bottom",right:"left",bottom:"top",left:"right"};Kc=Object.assign(N1,{Arrow:Nl,Context:$l,usePopperContext:ql,Positioner:F1});zd="interactOutside.pointerDownOutside",Ud="interactOutside.focusOutside";Wc=Qe();It={};ss(It,{Description:()=>Cc,ErrorMessage:()=>bc,Item:()=>Jc,ItemControl:()=>Yc,ItemDescription:()=>ef,ItemIndicator:()=>tf,ItemInput:()=>af,ItemLabel:()=>of,Label:()=>rf,RadioGroup:()=>V1,Root:()=>nf});jc=Qe();Zc=Qe();V1=Object.assign(nf,{Description:Cc,ErrorMessage:bc,Item:Jc,ItemControl:Yc,ItemDescription:ef,ItemIndicator:tf,ItemInput:af,ItemLabel:of,Label:rf}),G1=class{collection;ref;collator;constructor(e,t,a){this.collection=e,this.ref=t,this.collator=a}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){let a=this.collection().getItem(t);if(a&&a.type==="item"&&!a.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){let a=this.collection().getItem(t);if(a&&a.type==="item"&&!a.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?.(),a=this.getItem(e);if(!t||!a)return;let o=Math.max(0,a.offsetTop+a.offsetHeight-t.offsetHeight),r=e;for(;r&&a&&a.offsetTop>o;)r=this.getKeyAbove(r),a=r!=null?this.getItem(r):null;return r}getKeyPageBelow(e){let t=this.ref?.(),a=this.getItem(e);if(!t||!a)return;let o=Math.min(t.scrollHeight,a.offsetTop-a.offsetHeight+t.offsetHeight),r=e;for(;r&&a&&a.offsetTop<o;)r=this.getKeyBelow(r),a=r!=null?this.getItem(r):null;return r}getKeyForSearch(e,t){let a=this.collator?.();if(!a)return;let o=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;o!=null;){let r=this.collection().getItem(o);if(r){let n=r.textValue.slice(0,e.length);if(r.textValue&&a.compare(n,e)===0)return o}o=this.getKeyBelow(o)}}};cl="focusScope.autoFocusOnMount",fl="focusScope.autoFocusOnUnmount",Hd={bubbles:!1,cancelable:!0},_d={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=hl(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=hl(this.stack,e),this.active()?.resume()}};Q1="data-live-announcer";$r=new WeakMap,St=[];Kn=new Map,Z1=e=>{Q(()=>{let t=ot(e.style)??{},a=ot(e.properties)??[],o={};for(let n in t)o[n]=e.element.style[n];let r=Kn.get(e.key);r?r.activeCount++:Kn.set(e.key,{activeCount:1,originalStyles:o,properties:a.map(n=>n.key)}),Object.assign(e.element.style,e.style);for(let n of a)e.element.style.setProperty(n.key,n.value);Z(()=>{let n=Kn.get(e.key);if(n){if(n.activeCount!==1){n.activeCount--;return}Kn.delete(e.key);for(let[s,i]of Object.entries(n.originalStyles))e.element.style[s]=i;for(let s of n.properties)e.element.style.removeProperty(s);e.element.style.length===0&&e.element.removeAttribute("style"),e.cleanup?.()}})})},Vd=Z1,J1=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},Y1=(e,t)=>{let a=getComputedStyle(e),o=t==="x"?a.overflowX:a.overflowY;return o==="auto"||o==="scroll"||e.tagName==="HTML"&&o==="visible"},ey=(e,t,a)=>{let o=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1,r=e,n=0,s=0,i=!1;do{let[l,u,d]=J1(r,t),c=d-l-o*u;(u!==0||c!==0)&&Y1(r,t)&&(n+=c,s+=u),r===(a??document.documentElement)?i=!0:r=r._$host??r.parentElement}while(r&&!i);return[n,s]},[Gd,Kd]=N([]),ty=e=>Gd().indexOf(e)===Gd().length-1,ay=e=>{let t=te({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),a=xt(),o=[0,0],r=null,n=null;Q(()=>{ot(t.enabled)&&(Kd(u=>[...u,a]),Z(()=>{Kd(u=>u.filter(d=>d!==a))}))}),Q(()=>{if(!ot(t.enabled)||!ot(t.hideScrollbar))return;let{body:u}=document,d=window.innerWidth-u.offsetWidth;if(ot(t.preventScrollbarShift)){let c={overflow:"hidden"},p=[];d>0&&(ot(t.preventScrollbarShiftMode)==="padding"?c.paddingRight=`calc(${window.getComputedStyle(u).paddingRight} + ${d}px)`:c.marginRight=`calc(${window.getComputedStyle(u).marginRight} + ${d}px)`,p.push({key:"--scrollbar-width",value:`${d}px`}));let f=window.scrollY,m=window.scrollX;Vd({key:"prevent-scroll",element:u,style:c,properties:p,cleanup:()=>{ot(t.restoreScrollPosition)&&d>0&&window.scrollTo(m,f)}})}else Vd({key:"prevent-scroll",element:u,style:{overflow:"hidden"}})}),Q(()=>{!ty(a)||!ot(t.enabled)||(document.addEventListener("wheel",i,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),Z(()=>{document.removeEventListener("wheel",i),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",l)}))});let s=u=>{o=Wd(u),r=null,n=null},i=u=>{let d=u.target,c=ot(t.element),p=oy(u),f=Math.abs(p[0])>Math.abs(p[1])?"x":"y",m=f==="x"?p[0]:p[1],g=Qd(d,f,m,c),h;c&&Ll(c,d)?h=!g:h=!0,h&&u.cancelable&&u.preventDefault()},l=u=>{let d=ot(t.element),c=u.target,p;if(u.touches.length===2)p=!ot(t.allowPinchZoom);else{if(r==null||n===null){let f=Wd(u).map((g,h)=>o[h]-g),m=Math.abs(f[0])>Math.abs(f[1])?"x":"y";r=m,n=m==="x"?f[0]:f[1]}if(c.type==="range")p=!1;else{let f=Qd(c,r,n,d);d&&Ll(d,c)?p=!f:p=!0}}p&&u.cancelable&&u.preventDefault()}},oy=e=>[e.deltaX,e.deltaY],Wd=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],Qd=(e,t,a,o)=>{let r=o!==null&&Ll(o,e),[n,s]=ey(e,t,r?o:void 0);return!(a>0&&Math.abs(n)<=1||a<0&&Math.abs(s)<1)},Ll=(e,t)=>{if(e.contains(t))return!0;let a=t;for(;a;){if(a===e)return!0;a=a._$host??a.parentElement}return!1},ry=ay,ny=ry,sf=Qe();uf=Qe();df=Qe();sy=Qe();Gr={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Gr.next(e==="ltr"?"rtl":"ltr",t)},jd={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};ly=Qe();gf=Qe();Lf=Qe();py={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};Xd=["Enter"," "],my={open:(e,t)=>e==="ltr"?[...Xd,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...Xd,t==="horizontal"?"ArrowLeft":"ArrowUp"]};hy={};ss(hy,{Root:()=>ds,Separator:()=>xy});xy=ds,He={};ss(He,{Arrow:()=>Nl,CheckboxItem:()=>cf,Content:()=>Af,DropdownMenu:()=>yy,Group:()=>Hl,GroupLabel:()=>hf,Icon:()=>xf,Item:()=>yf,ItemDescription:()=>vf,ItemIndicator:()=>Cf,ItemLabel:()=>bf,Portal:()=>wf,RadioGroup:()=>Sf,RadioItem:()=>If,Root:()=>Tf,Separator:()=>ds,Sub:()=>Pf,SubContent:()=>Mf,SubTrigger:()=>Rf,Trigger:()=>ff});yy=Object.assign(Tf,{Arrow:Nl,CheckboxItem:cf,Content:Af,Group:Hl,GroupLabel:hf,Icon:xf,Item:yf,ItemDescription:vf,ItemIndicator:Cf,ItemLabel:bf,Portal:wf,RadioGroup:Sf,RadioItem:If,Separator:ds,Sub:Pf,SubContent:Mf,SubTrigger:Rf,Trigger:ff}),M={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}},vy=K('<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>'),Cy=K('<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>'),by=K('<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>'),wy=K('<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>'),_l=K('<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>'),Ly=K('<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>'),Sy=K('<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>'),Iy=K('<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>'),ky=K('<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">'),Py=K('<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">'),My=K('<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>'),Ry=K('<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>'),Ay=K('<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>'),Ty=K('<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>'),Df=K('<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>'),Dy=K('<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>'),Ey=K('<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>'),Fy=K('<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>'),Oy=K('<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>'),By=K('<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>'),$y=K('<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>'),qy=K('<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>'),Ny=K('<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>');sv=K('<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>'),lv=K('<button title="Copy object to clipboard">'),iv=K('<button title="Remove all items"aria-label="Remove all items">'),uv=K('<button title="Delete item"aria-label="Delete item">'),dv=K('<button title="Toggle value"aria-label="Toggle value">'),cv=K('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),qr=K("<div>"),fv=K("<div><button> <span></span> <span> "),pv=K("<input>"),ec=K("<span>"),mv=K("<div><span>:"),gv=K("<div><div><button> [<!>...<!>]");tc=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a));return(()=>{var r=sv();return W(()=>B(r,H(o().expander,a`
|
|
2
2
|
transform: rotate(${e.expanded?90:0}deg);
|
|
3
3
|
`,e.expanded&&a`
|
|
4
4
|
& svg {
|
|
5
5
|
top: -1px;
|
|
6
6
|
}
|
|
7
|
-
`))),r})()},
|
|
7
|
+
`))),r})()},xv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a)),[r,n]=N("NoCopy");return(()=>{var s=lv();return al(s,"click",r()==="NoCopy"?()=>{navigator.clipboard.writeText(nd(e.value)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},i=>{n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,!0),P(s,v(Nu,{get children(){return[v(Nn,{get when(){return r()==="NoCopy"},get children(){return v(Xy,{})}}),v(Nn,{get when(){return r()==="SuccessCopy"},get children(){return v(Jy,{get theme(){return t()}})}}),v(Nn,{get when(){return r()==="ErrorCopy"},get children(){return v(Yy,{})}})]}})),W(i=>{var l=o().actionButton,u=`${r()==="NoCopy"?"Copy object to clipboard":r()==="SuccessCopy"?"Object copied to clipboard":"Error copying object to clipboard"}`;return l!==i.e&&B(s,i.e=l),u!==i.t&&O(s,"aria-label",i.t=u),i},{e:void 0,t:void 0}),s})()},yv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a)),r=X().client;return(()=>{var n=iv();return n.$$click=()=>{let s=e.activeQuery.state.data,i=za(s,e.dataPath,[]);r.setQueryData(e.activeQuery.queryKey,i)},P(n,v(ev,{})),W(()=>B(n,o().actionButton)),n})()},ac=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a)),r=X().client;return(()=>{var n=uv();return n.$$click=()=>{let s=e.activeQuery.state.data,i=Do(s,e.dataPath);r.setQueryData(e.activeQuery.queryKey,i)},P(n,v(Ef,{})),W(()=>B(n,H(o().actionButton))),n})()},vv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a)),r=X().client;return(()=>{var n=dv();return n.$$click=()=>{let s=e.activeQuery.state.data,i=za(s,e.dataPath,!e.value);r.setQueryData(e.activeQuery.queryKey,i)},P(n,v(tv,{get theme(){return t()},get checked(){return e.value}})),W(()=>B(n,H(o().actionButton,a`
|
|
8
8
|
width: ${M.size[3.5]};
|
|
9
9
|
height: ${M.size[3.5]};
|
|
10
|
-
`))),n})()};
|
|
10
|
+
`))),n})()};Ff=(e,t)=>{let{colors:a,font:o,size:r,border:n}=M,s=(i,l)=>e==="light"?i:l;return{entry:t`
|
|
11
11
|
& * {
|
|
12
12
|
font-size: ${o.size.xs};
|
|
13
13
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
outline: 2px solid ${a.blue[800]};
|
|
119
119
|
outline-offset: 2px;
|
|
120
120
|
}
|
|
121
|
-
`}},Vo=e=>
|
|
121
|
+
`}},Vo=e=>Ff("light",e),Go=e=>Ff("dark",e);Er(["click"]);Cv=K('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),Yr=K("<div>"),bv=K('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'),wv=K("<select name=tsqd-queries-filter-sort>"),Lv=K("<select name=tsqd-mutations-filter-sort>"),Sv=K("<span>Asc"),Iv=K("<span>Desc"),kv=K('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),Pv=K("<div>Settings"),Mv=K("<span>Position"),Rv=K("<span>Top"),Av=K("<span>Bottom"),Tv=K("<span>Left"),Dv=K("<span>Right"),Ev=K("<span>Theme"),Fv=K("<span>Light"),Ov=K("<span>Dark"),Bv=K("<span>System"),$v=K("<div><div class=tsqd-queries-container>"),qv=K("<div><div class=tsqd-mutations-container>"),Nv=K('<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>'),rc=K("<option>Sort by "),zv=K("<div class=tsqd-query-disabled-indicator>disabled"),Of=K("<button><div></div><code class=tsqd-query-hash>"),Uv=K("<div role=tooltip id=tsqd-status-tooltip>"),Hv=K("<span>"),_v=K("<button><span></span><span>"),Vv=K("<button><span></span> Error"),Gv=K('<div><span></span>Trigger Error<select><option value=""disabled selected>'),Kv=K('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),Wv=K("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),Qv=K('<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">'),jv=K("<option>"),Xv=K('<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">'),[vt,cs]=N(null),[Va,Bf]=N(null),[Nt,Vl]=N(0),[$o,nc]=N(!1),$f=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Rt(a):Mt(a)),r=Il(),n=k(()=>X().buttonPosition||e0),s=k(()=>e.localStore.open==="true"?!0:e.localStore.open==="false"?!1:X().initialIsOpen||t0),i=k(()=>e.localStore.position||X().position||ml),l;Q(()=>{let d=l.parentElement,c=e.localStore.height||sc,p=e.localStore.width||lc,f=i();d.style.setProperty("--tsqd-panel-height",`${f==="top"?"-":""}${c}px`),d.style.setProperty("--tsqd-panel-width",`${f==="left"?"-":""}${p}px`)}),ha(()=>{let d=()=>{let c=l.parentElement,p=getComputedStyle(c).fontSize;c.style.setProperty("--tsqd-font-size",p)};d(),window.addEventListener("focus",d),Z(()=>{window.removeEventListener("focus",d)})});let u=k(()=>e.localStore.pip_open??"false");return[v(j,{get when(){return k(()=>!!r().pipWindow)()&&u()=="true"},get children(){return v(rl,{get mount(){return r().pipWindow?.document.body},get children(){return v(Zv,{get children(){return v(fs,e)}})}})}}),(()=>{var d=Yr(),c=l;return typeof c=="function"?co(c,d):l=d,P(d,v(Cd,{name:"tsqd-panel-transition",get children(){return v(j,{get when(){return k(()=>!!(s()&&!r().pipWindow))()&&u()=="false"},get children(){return v(Jv,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),P(d,v(Cd,{name:"tsqd-button-transition",get children(){return v(j,{get when(){return!s()},get children(){var p=Cv(),f=p.firstChild,m=f.nextSibling;return P(f,v(Yd,{})),m.$$click=()=>e.setLocalStore("open","true"),P(m,v(Yd,{})),W(()=>B(p,H(o().devtoolsBtn,o()[`devtoolsBtn-position-${n()}`],"tsqd-open-btn-container"))),p}})}}),null),W(()=>B(d,H(a`
|
|
122
122
|
& .tsqd-panel-transition-exit-active,
|
|
123
123
|
& .tsqd-panel-transition-enter-active {
|
|
124
124
|
transition:
|
|
@@ -144,62 +144,62 @@
|
|
|
144
144
|
transform: ${n()==="relative"?"none;":n()==="top-left"?"translateX(-72px);":n()==="top-right"?"translateX(72px);":"translateY(72px);"};
|
|
145
145
|
opacity: 0;
|
|
146
146
|
}
|
|
147
|
-
`,"tsqd-transitions-container"))),d})()]},
|
|
147
|
+
`,"tsqd-transitions-container"))),d})()]},Zv=e=>{let t=Il(),a=Xe(),o=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,r=k(()=>a()==="dark"?Rt(o):Mt(o)),n=()=>{let{colors:s}=M,i=(l,u)=>a()==="dark"?u:l;return Nt()<ho?o`
|
|
148
148
|
flex-direction: column;
|
|
149
149
|
background-color: ${i(s.gray[300],s.gray[600])};
|
|
150
150
|
`:o`
|
|
151
151
|
flex-direction: row;
|
|
152
152
|
background-color: ${i(s.gray[200],s.darkGray[900])};
|
|
153
|
-
`};return Q(()=>{let s=t().pipWindow,i=()=>{s&&
|
|
153
|
+
`};return Q(()=>{let s=t().pipWindow,i=()=>{s&&Vl(s.innerWidth)};s&&(s.addEventListener("resize",i),i()),Z(()=>{s&&s.removeEventListener("resize",i)})}),(()=>{var s=Yr();return s.style.setProperty("--tsqd-font-size","16px"),s.style.setProperty("max-height","100vh"),s.style.setProperty("height","100vh"),s.style.setProperty("width","100vw"),P(s,()=>e.children),W(()=>B(s,H(r().panel,n(),{[o`
|
|
154
154
|
min-width: min-content;
|
|
155
|
-
`]:Nt()<
|
|
155
|
+
`]:Nt()<Sl},"tsqd-main-panel"))),s})()},qf=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Rt(a):Mt(a)),r;ha(()=>{pc(r,({width:s},i)=>{i===r&&Vl(s)})});let n=()=>{let{colors:s}=M,i=(l,u)=>t()==="dark"?u:l;return Nt()<ho?a`
|
|
156
156
|
flex-direction: column;
|
|
157
157
|
background-color: ${i(s.gray[300],s.gray[600])};
|
|
158
158
|
`:a`
|
|
159
159
|
flex-direction: row;
|
|
160
160
|
background-color: ${i(s.gray[200],s.darkGray[900])};
|
|
161
|
-
`};return(()=>{var s=Yr(),i=r;return typeof i=="function"?
|
|
161
|
+
`};return(()=>{var s=Yr(),i=r;return typeof i=="function"?co(i,s):r=s,s.style.setProperty("--tsqd-font-size","16px"),P(s,()=>e.children),W(()=>B(s,H(o().parentPanel,n(),{[a`
|
|
162
162
|
min-width: min-content;
|
|
163
|
-
`]:Nt()<
|
|
163
|
+
`]:Nt()<Sl},"tsqd-main-panel"))),s})()},Jv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Rt(a):Mt(a)),[r,n]=N(!1),s=k(()=>e.localStore.position||X().position||ml),i=d=>{let c=d.currentTarget.parentElement;if(!c)return;n(!0);let{height:p,width:f}=c.getBoundingClientRect(),m=d.clientX,g=d.clientY,h=0,x=sl(3.5),y=sl(12),C=L=>{if(L.preventDefault(),s()==="left"||s()==="right"){let E=s()==="right"?m-L.clientX:L.clientX-m;h=Math.round(f+E),h<y&&(h=y),e.setLocalStore("width",String(Math.round(h)));let D=c.getBoundingClientRect().width;Number(e.localStore.width)<D&&e.setLocalStore("width",String(D))}else{let E=s()==="bottom"?g-L.clientY:L.clientY-g;h=Math.round(p+E),h<x&&(h=x,cs(null)),e.setLocalStore("height",String(Math.round(h)))}},w=()=>{r()&&n(!1),document.removeEventListener("mousemove",C,!1),document.removeEventListener("mouseUp",w,!1)};document.addEventListener("mousemove",C,!1),document.addEventListener("mouseup",w,!1)},l;ha(()=>{pc(l,({width:d},c)=>{c===l&&Vl(d)})}),Q(()=>{let d=l.parentElement?.parentElement?.parentElement;if(!d)return;let c=e.localStore.position||ml,p=sd("padding",c),f=e.localStore.position==="left"||e.localStore.position==="right",m=(({padding:g,paddingTop:h,paddingBottom:x,paddingLeft:y,paddingRight:C})=>({padding:g,paddingTop:h,paddingBottom:x,paddingLeft:y,paddingRight:C}))(d.style);d.style[p]=`${f?e.localStore.width:e.localStore.height}px`,Z(()=>{Object.entries(m).forEach(([g,h])=>{d.style[g]=h})})});let u=()=>{let{colors:d}=M,c=(p,f)=>t()==="dark"?f:p;return Nt()<ho?a`
|
|
164
164
|
flex-direction: column;
|
|
165
165
|
background-color: ${c(d.gray[300],d.gray[600])};
|
|
166
166
|
`:a`
|
|
167
167
|
flex-direction: row;
|
|
168
168
|
background-color: ${c(d.gray[200],d.darkGray[900])};
|
|
169
|
-
`};return(()=>{var d=
|
|
169
|
+
`};return(()=>{var d=bv(),c=d.firstChild,p=c.nextSibling,f=l;return typeof f=="function"?co(f,d):l=d,c.$$mousedown=i,p.$$click=()=>e.setLocalStore("open","false"),P(p,v(Ur,{})),P(d,v(fs,e),null),W(m=>{var g=H(o().panel,o()[`panel-position-${s()}`],u(),{[a`
|
|
170
170
|
min-width: min-content;
|
|
171
|
-
`]:Nt()<
|
|
171
|
+
`]:Nt()<Sl&&(s()==="right"||s()==="left")},"tsqd-main-panel"),h=s()==="bottom"||s()==="top"?`${e.localStore.height||sc}px`:"auto",x=s()==="right"||s()==="left"?`${e.localStore.width||lc}px`:"auto",y=H(o().dragHandle,o()[`dragHandle-position-${s()}`],"tsqd-drag-handle"),C=H(o().closeBtn,o()[`closeBtn-position-${s()}`],"tsqd-minimize-btn");return g!==m.e&&B(d,m.e=g),h!==m.t&&((m.t=h)!=null?d.style.setProperty("height",h):d.style.removeProperty("height")),x!==m.a&&((m.a=x)!=null?d.style.setProperty("width",x):d.style.removeProperty("width")),y!==m.o&&B(c,m.o=y),C!==m.i&&B(p,m.i=C),m},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),d})()},fs=e=>{nC(),sC();let t,a=Xe(),o=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,r=k(()=>a()==="dark"?Rt(o):Mt(o)),n=Il(),[s,i]=N("queries"),l=k(()=>e.localStore.sort||o0),u=k(()=>Number(e.localStore.sortOrder)||pd),d=k(()=>e.localStore.mutationSort||r0),c=k(()=>Number(e.localStore.mutationSortOrder)||pd),p=k(()=>Un[l()]),f=k(()=>Hn[d()]),m=k(()=>X().onlineManager),g=k(()=>X().client.getQueryCache()),h=k(()=>X().client.getMutationCache()),x=Je(D=>D().getAll().length,!1),y=k(Jt(()=>[x(),e.localStore.filter,l(),u()],()=>{let D=g().getAll(),T=e.localStore.filter?D.filter(I=>md(I.queryHash,e.localStore.filter||"").passed):[...D];return p()?T.sort((I,_)=>p()(I,_)*u()):T})),C=qt(D=>D().getAll().length,!1),w=k(Jt(()=>[C(),e.localStore.mutationFilter,d(),c()],()=>{let D=h().getAll(),T=e.localStore.mutationFilter?D.filter(I=>{let _=`${I.options.mutationKey?JSON.stringify(I.options.mutationKey)+" - ":""}${new Date(I.state.submittedAt).toLocaleString()}`;return md(_,e.localStore.mutationFilter||"").passed}):[...D];return f()?T.sort((I,_)=>f()(I,_)*c()):T})),L=D=>{e.setLocalStore("position",D)},E=D=>{let S=getComputedStyle(t).getPropertyValue("--tsqd-font-size");D.style.setProperty("--tsqd-font-size",S)};return[(()=>{var D=Nv(),T=D.firstChild,S=T.firstChild,I=S.firstChild,_=I.firstChild,F=_.nextSibling,re=F.firstChild,fe=T.nextSibling,J=fe.firstChild,ne=J.firstChild,me=ne.firstChild,xe=ne.nextSibling,Ce=xe.nextSibling,Oe=J.nextSibling,Re=Oe.firstChild,qe=Re.nextSibling,lt=t;return typeof lt=="function"?co(lt,D):t=D,I.$$click=()=>{if(!n().pipWindow&&!e.showPanelViewOnly){e.setLocalStore("open","false");return}e.onClose&&e.onClose()},P(F,()=>X().queryFlavor,re),P(F,()=>X().version,null),P(S,v(It.Root,{get class(){return H(r().viewToggle)},get value(){return s()},onChange:$=>{i($),cs(null),Bf(null)},get children(){return[v(It.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return[v(It.ItemInput,{}),v(It.ItemControl,{get children(){return v(It.ItemIndicator,{})}}),v(It.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),v(It.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return[v(It.ItemInput,{}),v(It.ItemControl,{get children(){return v(It.ItemIndicator,{})}}),v(It.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),P(T,v(j,{get when(){return s()==="queries"},get children(){return v(tC,{})}}),null),P(T,v(j,{get when(){return s()==="mutations"},get children(){return v(aC,{})}}),null),P(ne,v(zy,{}),me),me.$$input=$=>{s()==="queries"?e.setLocalStore("filter",$.currentTarget.value):e.setLocalStore("mutationFilter",$.currentTarget.value)},P(xe,v(j,{get when(){return s()==="queries"},get children(){var $=wv();return $.addEventListener("change",Be=>{e.setLocalStore("sort",Be.currentTarget.value)}),P($,()=>Object.keys(Un).map(Be=>(()=>{var be=rc();return be.firstChild,be.value=Be,P(be,Be,null),be})())),W(()=>$.value=l()),$}}),null),P(xe,v(j,{get when(){return s()==="mutations"},get children(){var $=Lv();return $.addEventListener("change",Be=>{e.setLocalStore("mutationSort",Be.currentTarget.value)}),P($,()=>Object.keys(Hn).map(Be=>(()=>{var be=rc();return be.firstChild,be.value=Be,P(be,Be,null),be})())),W(()=>$.value=d()),$}}),null),P(xe,v(Ur,{}),null),Ce.$$click=()=>{s()==="queries"?e.setLocalStore("sortOrder",String(u()*-1)):e.setLocalStore("mutationSortOrder",String(c()*-1))},P(Ce,v(j,{get when(){return(s()==="queries"?u():c())===1},get children(){return[Sv(),v(Zd,{})]}}),null),P(Ce,v(j,{get when(){return(s()==="queries"?u():c())===-1},get children(){return[Iv(),v(Jd,{})]}}),null),Re.$$click=()=>{s()==="queries"?g().clear():h().clear()},P(Re,v(Ef,{})),qe.$$click=()=>{$o()?(m().setOnline(!0),nc(!1)):(m().setOnline(!1),nc(!0))},P(qe,(()=>{var $=k(()=>!!$o());return()=>$()?v(Wy,{}):v(Ky,{})})()),P(Oe,v(j,{get when(){return k(()=>!n().pipWindow)()&&!n().disabled},get children(){var $=kv();return $.$$click=()=>{n().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500))},P($,v(jy,{})),W(()=>B($,H(r().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),$}}),null),P(Oe,v(He.Root,{gutter:4,get children(){return[v(He.Trigger,{get class(){return H(r().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},get children(){return v(Qy,{})}}),v(He.Portal,{ref:$=>E($),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return v(He.Content,{get class(){return H(r().settingsMenu,"tsqd-settings-menu")},get children(){return[(()=>{var $=Pv();return W(()=>B($,H(r().settingsMenuHeader,"tsqd-settings-menu-header"))),$})(),v(j,{get when(){return!e.showPanelViewOnly},get children(){return v(He.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[v(He.SubTrigger,{get class(){return H(r().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[Mv(),v(Ur,{})]}}),v(He.Portal,{ref:$=>E($),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return v(He.SubContent,{get class(){return H(r().settingsMenu,"tsqd-settings-submenu")},get children(){return[v(He.Item,{onSelect:()=>{L("top")},as:"button",get class(){return H(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Rv(),v(Zd,{})]}}),v(He.Item,{onSelect:()=>{L("bottom")},as:"button",get class(){return H(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[Av(),v(Jd,{})]}}),v(He.Item,{onSelect:()=>{L("left")},as:"button",get class(){return H(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Tv(),v(Uy,{})]}}),v(He.Item,{onSelect:()=>{L("right")},as:"button",get class(){return H(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return[Dv(),v(Hy,{})]}})]}})}})]}})}}),v(He.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[v(He.SubTrigger,{get class(){return H(r().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[Ev(),v(Ur,{})]}}),v(He.Portal,{ref:$=>E($),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return v(He.SubContent,{get class(){return H(r().settingsMenu,"tsqd-settings-submenu")},get children(){return[v(He.Item,{onSelect:()=>{e.setLocalStore("theme_preference","light")},as:"button",get class(){return H(r().settingsSubButton,e.localStore.theme_preference==="light"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Fv(),v(_y,{})]}}),v(He.Item,{onSelect:()=>{e.setLocalStore("theme_preference","dark")},as:"button",get class(){return H(r().settingsSubButton,e.localStore.theme_preference==="dark"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[Ov(),v(Vy,{})]}}),v(He.Item,{onSelect:()=>{e.setLocalStore("theme_preference","system")},as:"button",get class(){return H(r().settingsSubButton,e.localStore.theme_preference==="system"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Bv(),v(Gy,{})]}})]}})}})]}})]}})}})]}}),null),P(D,v(j,{get when(){return s()==="queries"},get children(){var $=$v(),Be=$.firstChild;return P(Be,v(Wn,{by:be=>be.queryHash,get each(){return y()},children:be=>v(Yv,{get query(){return be()}})})),W(()=>B($,H(r().overflowQueryContainer,"tsqd-queries-overflow-container"))),$}}),null),P(D,v(j,{get when(){return s()==="mutations"},get children(){var $=qv(),Be=$.firstChild;return P(Be,v(Wn,{by:be=>be.mutationId,get each(){return w()},children:be=>v(eC,{get mutation(){return be()}})})),W(()=>B($,H(r().overflowQueryContainer,"tsqd-mutations-overflow-container"))),$}}),null),W($=>{var Be=H(r().queriesContainer,Nt()<ho&&(vt()||Va())&&o`
|
|
172
172
|
height: 50%;
|
|
173
173
|
max-height: 50%;
|
|
174
|
-
`,Nt()<
|
|
174
|
+
`,Nt()<ho&&!(vt()||Va())&&o`
|
|
175
175
|
height: 100%;
|
|
176
176
|
max-height: 100%;
|
|
177
|
-
`,"tsqd-queries-container"),
|
|
177
|
+
`,"tsqd-queries-container"),be=H(r().row,"tsqd-header"),Ea=r().logoAndToggleContainer,ee=H(r().logo,"tsqd-text-logo-container"),Ft=H(r().tanstackLogo,"tsqd-text-logo-tanstack"),et=H(r().queryFlavorLogo,"tsqd-text-logo-query-flavor"),So=H(r().row,"tsqd-filters-actions-container"),wt=H(r().filtersContainer,"tsqd-filters-container"),Fa=H(r().filterInput,"tsqd-query-filter-textfield-container"),no=H("tsqd-query-filter-textfield"),ia=H(r().filterSelect,"tsqd-query-filter-sort-container"),Wt=`Sort order ${(s()==="queries"?u():c())===-1?"descending":"ascending"}`,ua=(s()==="queries"?u():c())===-1,z=H(r().actionsContainer,"tsqd-actions-container"),Ie=H(r().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),it=`Clear ${s()} cache`,Pe=H(r().actionsBtn,$o()&&r().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),Se=`${$o()?"Unset offline mocking behavior":"Mock offline behavior"}`,Ae=$o(),We=`${$o()?"Unset offline mocking behavior":"Mock offline behavior"}`;return Be!==$.e&&B(D,$.e=Be),be!==$.t&&B(T,$.t=be),Ea!==$.a&&B(S,$.a=Ea),ee!==$.o&&B(I,$.o=ee),Ft!==$.i&&B(_,$.i=Ft),et!==$.n&&B(F,$.n=et),So!==$.s&&B(fe,$.s=So),wt!==$.h&&B(J,$.h=wt),Fa!==$.r&&B(ne,$.r=Fa),no!==$.d&&B(me,$.d=no),ia!==$.l&&B(xe,$.l=ia),Wt!==$.u&&O(Ce,"aria-label",$.u=Wt),ua!==$.c&&O(Ce,"aria-pressed",$.c=ua),z!==$.w&&B(Oe,$.w=z),Ie!==$.m&&B(Re,$.m=Ie),it!==$.f&&O(Re,"title",$.f=it),Pe!==$.y&&B(qe,$.y=Pe),Se!==$.g&&O(qe,"aria-label",$.g=Se),Ae!==$.p&&O(qe,"aria-pressed",$.p=Ae),We!==$.b&&O(qe,"title",$.b=We),$},{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}),W(()=>me.value=s()==="queries"?e.localStore.filter||"":e.localStore.mutationFilter||""),D})(),v(j,{get when(){return k(()=>s()==="queries")()&&vt()},get children(){return v(oC,{})}}),v(j,{get when(){return k(()=>s()==="mutations")()&&Va()},get children(){return v(rC,{})}})]},Yv=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Rt(a):Mt(a)),{colors:r,alpha:n}=M,s=(f,m)=>t()==="dark"?m:f,i=Je(f=>f().find({queryKey:e.query.queryKey})?.state,!0,f=>f.query.queryHash===e.query.queryHash),l=Je(f=>f().find({queryKey:e.query.queryKey})?.isDisabled()??!1,!0,f=>f.query.queryHash===e.query.queryHash),u=Je(f=>f().find({queryKey:e.query.queryKey})?.isStale()??!1,!0,f=>f.query.queryHash===e.query.queryHash),d=Je(f=>f().find({queryKey:e.query.queryKey})?.getObserversCount()??0,!0,f=>f.query.queryHash===e.query.queryHash),c=k(()=>ld({queryState:i(),observerCount:d(),isStale:u()})),p=()=>c()==="gray"?a`
|
|
178
178
|
background-color: ${s(r[c()][200],r[c()][700])};
|
|
179
179
|
color: ${s(r[c()][700],r[c()][300])};
|
|
180
180
|
`:a`
|
|
181
181
|
background-color: ${s(r[c()][200]+n[80],r[c()][900])};
|
|
182
182
|
color: ${s(r[c()][800],r[c()][300])};
|
|
183
|
-
`;return v(j,{get when(){return i()},get children(){var f=
|
|
183
|
+
`;return v(j,{get when(){return i()},get children(){var f=Of(),m=f.firstChild,g=m.nextSibling;return f.$$click=()=>cs(e.query.queryHash===vt()?null:e.query.queryHash),P(m,d),P(g,()=>e.query.queryHash),P(f,v(j,{get when(){return l()},get children(){return zv()}}),null),W(h=>{var x=H(o().queryRow,vt()===e.query.queryHash&&o().selectedQueryRow,"tsqd-query-row"),y=`Query key ${e.query.queryHash}`,C=H(p(),"tsqd-query-observer-count");return x!==h.e&&B(f,h.e=x),y!==h.t&&O(f,"aria-label",h.t=y),C!==h.a&&B(m,h.a=C),h},{e:void 0,t:void 0,a:void 0}),f}})},eC=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Rt(a):Mt(a)),{colors:r,alpha:n}=M,s=(p,f)=>t()==="dark"?f:p,i=qt(p=>p().getAll().find(g=>g.mutationId===e.mutation.mutationId)?.state),l=qt(p=>{let m=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return m?m.state.isPaused:!1}),u=qt(p=>{let m=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return m?m.state.status:"idle"}),d=k(()=>mo({isPaused:l(),status:u()})),c=()=>d()==="gray"?a`
|
|
184
184
|
background-color: ${s(r[d()][200],r[d()][700])};
|
|
185
185
|
color: ${s(r[d()][700],r[d()][300])};
|
|
186
186
|
`:a`
|
|
187
187
|
background-color: ${s(r[d()][200]+n[80],r[d()][900])};
|
|
188
188
|
color: ${s(r[d()][800],r[d()][300])};
|
|
189
|
-
`;return v(j,{get when(){return i()},get children(){var p=
|
|
189
|
+
`;return v(j,{get when(){return i()},get children(){var p=Of(),f=p.firstChild,m=f.nextSibling;return p.$$click=()=>{Bf(e.mutation.mutationId===Va()?null:e.mutation.mutationId)},P(f,v(j,{get when(){return d()==="purple"},get children(){return v(nv,{})}}),null),P(f,v(j,{get when(){return d()==="green"},get children(){return v(av,{})}}),null),P(f,v(j,{get when(){return d()==="red"},get children(){return v(rv,{})}}),null),P(f,v(j,{get when(){return d()==="yellow"},get children(){return v(ov,{})}}),null),P(m,v(j,{get when(){return e.mutation.options.mutationKey},get children(){return[k(()=>JSON.stringify(e.mutation.options.mutationKey))," -"," "]}}),null),P(m,()=>new Date(e.mutation.state.submittedAt).toLocaleString(),null),W(g=>{var h=H(o().queryRow,Va()===e.mutation.mutationId&&o().selectedQueryRow,"tsqd-query-row"),x=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,y=H(c(),"tsqd-query-observer-count");return h!==g.e&&B(p,g.e=h),x!==g.t&&O(p,"aria-label",g.t=x),y!==g.a&&B(f,g.a=y),g},{e:void 0,t:void 0,a:void 0}),p}})},tC=()=>{let e=Je(l=>l().getAll().filter(u=>po(u)==="stale").length),t=Je(l=>l().getAll().filter(u=>po(u)==="fresh").length),a=Je(l=>l().getAll().filter(u=>po(u)==="fetching").length),o=Je(l=>l().getAll().filter(u=>po(u)==="paused").length),r=Je(l=>l().getAll().filter(u=>po(u)==="inactive").length),n=Xe(),s=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,i=k(()=>n()==="dark"?Rt(s):Mt(s));return(()=>{var l=Yr();return P(l,v(va,{label:"Fresh",color:"green",get count(){return t()}}),null),P(l,v(va,{label:"Fetching",color:"blue",get count(){return a()}}),null),P(l,v(va,{label:"Paused",color:"purple",get count(){return o()}}),null),P(l,v(va,{label:"Stale",color:"yellow",get count(){return e()}}),null),P(l,v(va,{label:"Inactive",color:"gray",get count(){return r()}}),null),W(()=>B(l,H(i().queryStatusContainer,"tsqd-query-status-container"))),l})()},aC=()=>{let e=qt(i=>i().getAll().filter(l=>mo({isPaused:l.state.isPaused,status:l.state.status})==="green").length),t=qt(i=>i().getAll().filter(l=>mo({isPaused:l.state.isPaused,status:l.state.status})==="yellow").length),a=qt(i=>i().getAll().filter(l=>mo({isPaused:l.state.isPaused,status:l.state.status})==="purple").length),o=qt(i=>i().getAll().filter(l=>mo({isPaused:l.state.isPaused,status:l.state.status})==="red").length),r=Xe(),n=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,s=k(()=>r()==="dark"?Rt(n):Mt(n));return(()=>{var i=Yr();return P(i,v(va,{label:"Paused",color:"purple",get count(){return a()}}),null),P(i,v(va,{label:"Pending",color:"yellow",get count(){return t()}}),null),P(i,v(va,{label:"Success",color:"green",get count(){return e()}}),null),P(i,v(va,{label:"Error",color:"red",get count(){return o()}}),null),W(()=>B(i,H(s().queryStatusContainer,"tsqd-query-status-container"))),i})()},va=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Rt(a):Mt(a)),{colors:r,alpha:n}=M,s=(f,m)=>t()==="dark"?m:f,i,[l,u]=N(!1),[d,c]=N(!1),p=k(()=>!(vt()&&Nt()<Yh&&Nt()>ho||Nt()<ho));return(()=>{var f=_v(),m=f.firstChild,g=m.nextSibling,h=i;return typeof h=="function"?co(h,f):i=f,f.addEventListener("mouseleave",()=>{u(!1),c(!1)}),f.addEventListener("mouseenter",()=>u(!0)),f.addEventListener("blur",()=>c(!1)),f.addEventListener("focus",()=>c(!0)),ol(f,te({get disabled(){return p()},get class(){return H(o().queryStatusTag,!p()&&a`
|
|
190
190
|
cursor: pointer;
|
|
191
191
|
&:hover {
|
|
192
192
|
background: ${s(r.gray[200],r.darkGray[400])}${n[80]};
|
|
193
193
|
}
|
|
194
|
-
`,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>l()||d()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),P(f,v(j,{get when(){return k(()=>!p())()&&(l()||d())},get children(){var x=
|
|
194
|
+
`,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>l()||d()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),P(f,v(j,{get when(){return k(()=>!p())()&&(l()||d())},get children(){var x=Uv();return P(x,()=>e.label),W(()=>B(x,H(o().statusTooltip,"tsqd-query-status-tooltip"))),x}}),m),P(f,v(j,{get when(){return p()},get children(){var x=Hv();return P(x,()=>e.label),W(()=>B(x,H(o().queryStatusTagLabel,"tsqd-query-status-tag-label"))),x}}),g),P(g,()=>e.count),W(x=>{var y=H(a`
|
|
195
195
|
width: ${M.size[1.5]};
|
|
196
196
|
height: ${M.size[1.5]};
|
|
197
197
|
border-radius: ${M.border.radius.full};
|
|
198
198
|
background-color: ${M.colors[e.color][500]};
|
|
199
|
-
`,"tsqd-query-status-tag-dot"),C=
|
|
199
|
+
`,"tsqd-query-status-tag-dot"),C=H(o().queryStatusCount,e.count>0&&e.color!=="gray"&&a`
|
|
200
200
|
background-color: ${s(r[e.color][100],r[e.color][900])};
|
|
201
201
|
color: ${s(r[e.color][700],r[e.color][300])};
|
|
202
|
-
`,"tsqd-query-status-tag-count");return y!==x.e&&B(m,x.e=y),C!==x.t&&B(g,x.t=C),x},{e:void 0,t:void 0}),f})()},
|
|
202
|
+
`,"tsqd-query-status-tag-count");return y!==x.e&&B(m,x.e=y),C!==x.t&&B(g,x.t=C),x},{e:void 0,t:void 0}),f})()},oC=()=>{let e=Xe(),t=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,a=k(()=>e()==="dark"?Rt(t):Mt(t)),{colors:o}=M,r=(S,I)=>e()==="dark"?I:S,n=X().client,[s,i]=N(!1),[l,u]=N("view"),[d,c]=N(!1),p=k(()=>X().errorTypes||[]),f=Je(S=>S().getAll().find(I=>I.queryHash===vt()),!1),m=Je(S=>S().getAll().find(I=>I.queryHash===vt()),!1),g=Je(S=>S().getAll().find(I=>I.queryHash===vt())?.state,!1),h=Je(S=>S().getAll().find(I=>I.queryHash===vt())?.state.data,!1),x=Je(S=>{let I=S().getAll().find(_=>_.queryHash===vt());return I?po(I):"inactive"}),y=Je(S=>{let I=S().getAll().find(_=>_.queryHash===vt());return I?I.state.status:"pending"}),C=Je(S=>S().getAll().find(I=>I.queryHash===vt())?.getObserversCount()??0),w=k(()=>id(x())),L=()=>{f()?.fetch()?.catch(()=>{})},E=S=>{let I=S?.initializer(f())??new Error("Unknown error from devtools"),_=f().options;f().setState({status:"error",error:I,fetchMeta:{...f().state.fetchMeta,__previousQueryOptions:_}})},D=()=>{let S=f(),I=S.state,_=S.state.fetchMeta?S.state.fetchMeta.__previousQueryOptions:null;S.cancel({silent:!0}),S.setState({...I,fetchStatus:"idle",fetchMeta:null}),_&&S.fetch(_)};Q(()=>{x()!=="fetching"&&i(!1)});let T=()=>w()==="gray"?t`
|
|
203
203
|
background-color: ${r(o[w()][200],o[w()][700])};
|
|
204
204
|
color: ${r(o[w()][700],o[w()][300])};
|
|
205
205
|
border-color: ${r(o[w()][400],o[w()][600])};
|
|
@@ -207,37 +207,37 @@
|
|
|
207
207
|
background-color: ${r(o[w()][100],o[w()][900])};
|
|
208
208
|
color: ${r(o[w()][700],o[w()][300])};
|
|
209
209
|
border-color: ${r(o[w()][400],o[w()][600])};
|
|
210
|
-
`;return v(j,{get when(){return k(()=>!!f())()&&g()},get children(){var S=
|
|
210
|
+
`;return v(j,{get when(){return k(()=>!!f())()&&g()},get children(){var S=Qv(),I=S.firstChild,_=I.nextSibling,F=_.firstChild,re=F.firstChild,fe=re.firstChild,J=re.nextSibling,ne=F.nextSibling,me=ne.firstChild,xe=me.nextSibling,Ce=ne.nextSibling,Oe=Ce.firstChild,Re=Oe.nextSibling,qe=_.nextSibling,lt=qe.nextSibling,$=lt.firstChild,Be=$.firstChild,be=$.nextSibling,Ea=be.firstChild,ee=be.nextSibling,Ft=ee.firstChild,et=ee.nextSibling,So=et.firstChild,wt=et.nextSibling,Fa=wt.firstChild,no=Fa.nextSibling,ia=lt.nextSibling;ia.firstChild;var Wt=ia.nextSibling,ua=Wt.nextSibling;return P(fe,()=>Fr(f().queryKey,!0)),P(J,x),P(xe,C),P(Re,()=>new Date(g().dataUpdatedAt).toLocaleTimeString()),$.$$click=L,be.$$click=()=>n.invalidateQueries(f()),ee.$$click=()=>n.resetQueries(f()),et.$$click=()=>{n.removeQueries(f()),cs(null)},wt.$$click=()=>{if(f()?.state.data===void 0)i(!0),D();else{let z=f();if(!z)return;let Ie=z.options;z.fetch({...Ie,queryFn:()=>new Promise(()=>{}),gcTime:-1}),z.setState({data:void 0,status:"pending",fetchMeta:{...z.state.fetchMeta,__previousQueryOptions:Ie}})}},P(wt,()=>y()==="pending"?"Restore":"Trigger",no),P(lt,v(j,{get when(){return p().length===0||y()==="error"},get children(){var z=Vv(),Ie=z.firstChild,it=Ie.nextSibling;return z.$$click=()=>{f().state.error?n.resetQueries(f()):E()},P(z,()=>y()==="error"?"Restore":"Trigger",it),W(Pe=>{var Se=H(t`
|
|
211
211
|
color: ${r(o.red[500],o.red[400])};
|
|
212
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),
|
|
212
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),Ae=y()==="pending",We=t`
|
|
213
213
|
background-color: ${r(o.red[500],o.red[400])};
|
|
214
|
-
`;return
|
|
214
|
+
`;return Se!==Pe.e&&B(z,Pe.e=Se),Ae!==Pe.t&&(z.disabled=Pe.t=Ae),We!==Pe.a&&B(Ie,Pe.a=We),Pe},{e:void 0,t:void 0,a:void 0}),z}}),null),P(lt,v(j,{get when(){return!(p().length===0||y()==="error")},get children(){var z=Gv(),Ie=z.firstChild,it=Ie.nextSibling,Pe=it.nextSibling;return Pe.firstChild,Pe.addEventListener("change",Se=>{let Ae=p().find(We=>We.name===Se.currentTarget.value);E(Ae)}),P(Pe,v($u,{get each(){return p()},children:Se=>(()=>{var Ae=jv();return P(Ae,()=>Se.name),W(()=>Ae.value=Se.name),Ae})()}),null),P(z,v(Ur,{}),null),W(Se=>{var Ae=H(a().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),We=t`
|
|
215
215
|
background-color: ${M.colors.red[400]};
|
|
216
|
-
`,
|
|
216
|
+
`,Le=y()==="pending";return Ae!==Se.e&&B(z,Se.e=Ae),We!==Se.t&&B(Ie,Se.t=We),Le!==Se.a&&(Pe.disabled=Se.a=Le),Se},{e:void 0,t:void 0,a:void 0}),z}}),null),P(ia,()=>l()==="view"?"Explorer":"Editor",null),P(S,v(j,{get when(){return l()==="view"},get children(){var z=Kv();return P(z,v(_a,{label:"Data",defaultExpanded:["Data"],get value(){return h()},editable:!0,onEdit:()=>u("edit"),get activeQuery(){return f()}})),W(Ie=>(Ie=M.size[2])!=null?z.style.setProperty("padding",Ie):z.style.removeProperty("padding")),z}}),Wt),P(S,v(j,{get when(){return l()==="edit"},get children(){var z=Wv(),Ie=z.firstChild,it=Ie.nextSibling,Pe=it.firstChild,Se=Pe.nextSibling,Ae=Se.firstChild,We=Ae.nextSibling;return z.addEventListener("submit",Le=>{Le.preventDefault();let ca=new FormData(Le.currentTarget).get("data");try{let Ot=JSON.parse(ca);f().setState({...f().state,data:Ot}),u("view")}catch{c(!0)}}),Ie.addEventListener("focus",()=>c(!1)),P(Pe,()=>d()?"Invalid Value":""),Ae.$$click=()=>u("view"),W(Le=>{var da=H(a().devtoolsEditForm,"tsqd-query-details-data-editor"),ca=a().devtoolsEditTextarea,Ot=d(),so=a().devtoolsEditFormActions,fa=a().devtoolsEditFormError,lo=a().devtoolsEditFormActionContainer,pa=H(a().devtoolsEditFormAction,t`
|
|
217
217
|
color: ${r(o.gray[600],o.gray[300])};
|
|
218
|
-
`),Oa=
|
|
218
|
+
`),Oa=H(a().devtoolsEditFormAction,t`
|
|
219
219
|
color: ${r(o.blue[600],o.blue[400])};
|
|
220
|
-
`);return
|
|
220
|
+
`);return da!==Le.e&&B(z,Le.e=da),ca!==Le.t&&B(Ie,Le.t=ca),Ot!==Le.a&&O(Ie,"data-error",Le.a=Ot),so!==Le.o&&B(it,Le.o=so),fa!==Le.i&&B(Pe,Le.i=fa),lo!==Le.n&&B(Se,Le.n=lo),pa!==Le.s&&B(Ae,Le.s=pa),Oa!==Le.h&&B(We,Le.h=Oa),Le},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),W(()=>Ie.value=JSON.stringify(h(),null,2)),z}}),Wt),P(ua,v(_a,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return m()}})),W(z=>{var Ie=H(a().detailsContainer,"tsqd-query-details-container"),it=H(a().detailsHeader,"tsqd-query-details-header"),Pe=H(a().detailsBody,"tsqd-query-details-summary-container"),Se=H(a().queryDetailsStatus,T()),Ae=H(a().detailsHeader,"tsqd-query-details-header"),We=H(a().actionsBody,"tsqd-query-details-actions-container"),Le=H(t`
|
|
221
221
|
color: ${r(o.blue[600],o.blue[400])};
|
|
222
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),
|
|
222
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),da=x()==="fetching",ca=t`
|
|
223
223
|
background-color: ${r(o.blue[600],o.blue[400])};
|
|
224
|
-
`,Ot=
|
|
224
|
+
`,Ot=H(t`
|
|
225
225
|
color: ${r(o.yellow[600],o.yellow[400])};
|
|
226
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),
|
|
226
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),so=y()==="pending",fa=t`
|
|
227
227
|
background-color: ${r(o.yellow[600],o.yellow[400])};
|
|
228
|
-
`,
|
|
228
|
+
`,lo=H(t`
|
|
229
229
|
color: ${r(o.gray[600],o.gray[300])};
|
|
230
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),
|
|
230
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),pa=y()==="pending",Oa=t`
|
|
231
231
|
background-color: ${r(o.gray[600],o.gray[400])};
|
|
232
|
-
`,xn=
|
|
232
|
+
`,xn=H(t`
|
|
233
233
|
color: ${r(o.pink[500],o.pink[400])};
|
|
234
234
|
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),Zo=x()==="fetching",yn=t`
|
|
235
235
|
background-color: ${r(o.pink[500],o.pink[400])};
|
|
236
|
-
`,
|
|
236
|
+
`,Io=H(t`
|
|
237
237
|
color: ${r(o.cyan[500],o.cyan[400])};
|
|
238
238
|
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),vn=s(),Jo=t`
|
|
239
239
|
background-color: ${r(o.cyan[500],o.cyan[400])};
|
|
240
|
-
`,Yo=
|
|
240
|
+
`,Yo=H(a().detailsHeader,"tsqd-query-details-header"),er=H(a().detailsHeader,"tsqd-query-details-header"),ko=M.size[2];return Ie!==z.e&&B(S,z.e=Ie),it!==z.t&&B(I,z.t=it),Pe!==z.a&&B(_,z.a=Pe),Se!==z.o&&B(J,z.o=Se),Ae!==z.i&&B(qe,z.i=Ae),We!==z.n&&B(lt,z.n=We),Le!==z.s&&B($,z.s=Le),da!==z.h&&($.disabled=z.h=da),ca!==z.r&&B(Be,z.r=ca),Ot!==z.d&&B(be,z.d=Ot),so!==z.l&&(be.disabled=z.l=so),fa!==z.u&&B(Ea,z.u=fa),lo!==z.c&&B(ee,z.c=lo),pa!==z.w&&(ee.disabled=z.w=pa),Oa!==z.m&&B(Ft,z.m=Oa),xn!==z.f&&B(et,z.f=xn),Zo!==z.y&&(et.disabled=z.y=Zo),yn!==z.g&&B(So,z.g=yn),Io!==z.p&&B(wt,z.p=Io),vn!==z.b&&(wt.disabled=z.b=vn),Jo!==z.T&&B(Fa,z.T=Jo),Yo!==z.A&&B(ia,z.A=Yo),er!==z.O&&B(Wt,z.O=er),ko!==z.I&&((z.I=ko)!=null?ua.style.setProperty("padding",ko):ua.style.removeProperty("padding")),z},{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}),S}})},rC=()=>{let e=Xe(),t=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,a=k(()=>e()==="dark"?Rt(t):Mt(t)),{colors:o}=M,r=(d,c)=>e()==="dark"?c:d,n=qt(d=>{let p=d().getAll().find(f=>f.mutationId===Va());return p?p.state.isPaused:!1}),s=qt(d=>{let p=d().getAll().find(f=>f.mutationId===Va());return p?p.state.status:"idle"}),i=k(()=>mo({isPaused:n(),status:s()})),l=qt(d=>d().getAll().find(c=>c.mutationId===Va()),!1),u=()=>i()==="gray"?t`
|
|
241
241
|
background-color: ${r(o[i()][200],o[i()][700])};
|
|
242
242
|
color: ${r(o[i()][700],o[i()][300])};
|
|
243
243
|
border-color: ${r(o[i()][400],o[i()][600])};
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
background-color: ${r(o[i()][100],o[i()][900])};
|
|
246
246
|
color: ${r(o[i()][700],o[i()][300])};
|
|
247
247
|
border-color: ${r(o[i()][400],o[i()][600])};
|
|
248
|
-
`;return v(j,{get when(){return l()},get children(){var d=
|
|
248
|
+
`;return v(j,{get when(){return l()},get children(){var d=Xv(),c=d.firstChild,p=c.nextSibling,f=p.firstChild,m=f.firstChild,g=m.firstChild,h=m.nextSibling,x=f.nextSibling,y=x.firstChild,C=y.nextSibling,w=p.nextSibling,L=w.nextSibling,E=L.nextSibling,D=E.nextSibling,T=D.nextSibling,S=T.nextSibling,I=S.nextSibling,_=I.nextSibling;return P(g,v(j,{get when(){return l().options.mutationKey},fallback:"No mutationKey found",get children(){return Fr(l().options.mutationKey,!0)}})),P(h,v(j,{get when(){return i()==="purple"},children:"pending"}),null),P(h,v(j,{get when(){return i()!=="purple"},get children(){return s()}}),null),P(C,()=>new Date(l().state.submittedAt).toLocaleTimeString()),P(L,v(_a,{label:"Variables",defaultExpanded:["Variables"],get value(){return l().state.variables}})),P(D,v(_a,{label:"Context",defaultExpanded:["Context"],get value(){return l().state.context}})),P(S,v(_a,{label:"Data",defaultExpanded:["Data"],get value(){return l().state.data}})),P(_,v(_a,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return l()}})),W(F=>{var re=H(a().detailsContainer,"tsqd-query-details-container"),fe=H(a().detailsHeader,"tsqd-query-details-header"),J=H(a().detailsBody,"tsqd-query-details-summary-container"),ne=H(a().queryDetailsStatus,u()),me=H(a().detailsHeader,"tsqd-query-details-header"),xe=M.size[2],Ce=H(a().detailsHeader,"tsqd-query-details-header"),Oe=M.size[2],Re=H(a().detailsHeader,"tsqd-query-details-header"),qe=M.size[2],lt=H(a().detailsHeader,"tsqd-query-details-header"),$=M.size[2];return re!==F.e&&B(d,F.e=re),fe!==F.t&&B(c,F.t=fe),J!==F.a&&B(p,F.a=J),ne!==F.o&&B(h,F.o=ne),me!==F.i&&B(w,F.i=me),xe!==F.n&&((F.n=xe)!=null?L.style.setProperty("padding",xe):L.style.removeProperty("padding")),Ce!==F.s&&B(E,F.s=Ce),Oe!==F.h&&((F.h=Oe)!=null?D.style.setProperty("padding",Oe):D.style.removeProperty("padding")),Re!==F.r&&B(T,F.r=Re),qe!==F.d&&((F.d=qe)!=null?S.style.setProperty("padding",qe):S.style.removeProperty("padding")),lt!==F.l&&B(I,F.l=lt),$!==F.u&&((F.u=$)!=null?_.style.setProperty("padding",$):_.style.removeProperty("padding")),F},{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}})},Jn=new Map,nC=()=>{let e=k(()=>X().client.getQueryCache()),t=e().subscribe(a=>{Pu(()=>{for(let[o,r]of Jn.entries())r.shouldUpdate(a)&&r.setter(o(e))})});return Z(()=>{Jn.clear(),t()}),t},Je=(e,t=!0,a=()=>!0)=>{let o=k(()=>X().client.getQueryCache()),[r,n]=N(e(o),t?void 0:{equals:!1});return Q(()=>{n(e(o))}),Jn.set(e,{setter:n,shouldUpdate:a}),Z(()=>{Jn.delete(e)}),r},Yn=new Map,sC=()=>{let e=k(()=>X().client.getMutationCache()),t=e().subscribe(()=>{for(let[a,o]of Yn.entries())queueMicrotask(()=>{o(a(e))})});return Z(()=>{Yn.clear(),t()}),t},qt=(e,t=!0)=>{let a=k(()=>X().client.getMutationCache()),[o,r]=N(e(a),t?void 0:{equals:!1});return Q(()=>{r(e(a))}),Yn.set(e,r),Z(()=>{Yn.delete(e)}),o},Nf=(e,t)=>{let{colors:a,font:o,size:r,alpha:n,shadow:s,border:i}=M,l=(u,d)=>e==="light"?u:d;return{devtoolsBtn:t`
|
|
249
249
|
z-index: 100000;
|
|
250
250
|
position: fixed;
|
|
251
251
|
padding: 4px;
|
|
@@ -1197,9 +1197,9 @@
|
|
|
1197
1197
|
opacity: 0.6;
|
|
1198
1198
|
cursor: not-allowed;
|
|
1199
1199
|
}
|
|
1200
|
-
`}},Mt=e=>Ff("light",e),At=e=>Ff("dark",e);Er(["click","mousedown","input"]);});var Of={};wn(Of,{default:()=>oC});var aC,oC,Bf=tr(()=>{"use strict";b();_l();Or();aC=e=>{let[t,a]=es({prefix:"TanstackQueryDevtools"}),o=_n(),r=k(()=>{let n=t.theme_preference||ts;return n!=="system"?n:o()});return v(Kr.Provider,{value:e,get children(){return v(as,{localStore:t,setLocalStore:a,get children(){return v(Wr.Provider,{value:r,get children(){return v(Df,{localStore:t,setLocalStore:a})}})}})}})},oC=aC});var $f={};wn($f,{default:()=>nC});var rC,nC,qf=tr(()=>{"use strict";b();_l();Or();rC=e=>{let[t,a]=es({prefix:"TanstackQueryDevtools"}),o=_n(),r=k(()=>{let n=t.theme_preference||ts;return n!=="system"?n:o()});return v(Kr.Provider,{value:e,get children(){return v(as,{disabled:!0,localStore:t,setLocalStore:a,get children(){return v(Wr.Provider,{value:r,get children(){return v(Ef,{get children(){return v(fs,{localStore:t,setLocalStore:a,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},nC=rC});var JC={};wn(JC,{Studio:()=>$m});module.exports=Vm(JC);b();b();b();var Zi=require("clsx");b();var Ns="-",Gm=e=>{let t=Wm(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{let i=s.split(Ns);return i[0]===""&&i.length!==1&&i.shift(),Gi(i,t)||Km(s)},getConflictingClassGroupIds:(s,i)=>{let l=a[s]||[];return i&&o[s]?[...l,...o[s]]:l}}},Gi=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Gi(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let n=e.join(Ns);return t.validators.find(({validator:s})=>s(n))?.classGroupId},Ui=/^\[(.+)\]$/,Km=e=>{if(Ui.test(e)){let t=Ui.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Wm=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return jm(Object.entries(e.classGroups),a).forEach(([n,s])=>{qs(s,o,n,t)}),o},qs=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let n=r===""?t:Hi(t,r);n.classGroupId=a;return}if(typeof r=="function"){if(Qm(r)){qs(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([n,s])=>{qs(s,Hi(t,n),a,o)})})},Hi=(e,t)=>{let a=e;return t.split(Ns).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Qm=e=>e.isThemeGetter,jm=(e,t)=>t?e.map(([a,o])=>{let r=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[a,r]}):e,Xm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(n,s)=>{a.set(n,s),t++,t>e&&(t=0,o=a,a=new Map)};return{get(n){let s=a.get(n);if(s!==void 0)return s;if((s=o.get(n))!==void 0)return r(n,s),s},set(n,s){a.has(n)?a.set(n,s):r(n,s)}}},Ki="!",Zm=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],n=t.length,s=i=>{let l=[],u=0,d=0,c;for(let h=0;h<i.length;h++){let x=i[h];if(u===0){if(x===r&&(o||i.slice(h,h+n)===t)){l.push(i.slice(d,h)),d=h+n;continue}if(x==="/"){c=h;continue}}x==="["?u++:x==="]"&&u--}let p=l.length===0?i:i.substring(d),f=p.startsWith(Ki),m=f?p.substring(1):p,g=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:g}};return a?i=>a({className:i,parseClassName:s}):s},Jm=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},Ym=e=>({cache:Xm(e.cacheSize),parseClassName:Zm(e),...Gm(e)}),eg=/\s+/,tg=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,n=[],s=e.trim().split(eg),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:d,hasImportantModifier:c,baseClassName:p,maybePostfixModifierPosition:f}=a(u),m=!!f,g=o(m?p.substring(0,f):p);if(!g){if(!m){i=u+(i.length>0?" "+i:i);continue}if(g=o(p),!g){i=u+(i.length>0?" "+i:i);continue}m=!1}let h=Jm(d).join(":"),x=c?h+Ki:h,y=x+g;if(n.includes(y))continue;n.push(y);let C=r(g,m);for(let w=0;w<C.length;++w){let L=C[w];n.push(x+L)}i=u+(i.length>0?" "+i:i)}return i};function ag(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Wi(t))&&(o&&(o+=" "),o+=a);return o}var Wi=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Wi(e[o]))&&(a&&(a+=" "),a+=t);return a};function _i(e,...t){let a,o,r,n=s;function s(l){let u=t.reduce((d,c)=>c(d),e());return a=Ym(u),o=a.cache.get,r=a.cache.set,n=i,i(l)}function i(l){let u=o(l);if(u)return u;let d=tg(l,a);return r(l,d),d}return function(){return n(ag.apply(null,arguments))}}var Me=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Qi=/^\[(?:([a-z-]+):)?(.+)\]$/i,og=/^\d+\/\d+$/,rg=new Set(["px","full","screen"]),ng=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,lg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ig=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ug=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ma=e=>ko(e)||rg.has(e)||og.test(e),Ba=e=>Po(e,"length",xg),ko=e=>!!e&&!Number.isNaN(Number(e)),$s=e=>Po(e,"number",ko),ar=e=>!!e&&Number.isInteger(Number(e)),dg=e=>e.endsWith("%")&&ko(e.slice(0,-1)),oe=e=>Qi.test(e),$a=e=>ng.test(e),cg=new Set(["length","size","percentage"]),fg=e=>Po(e,cg,ji),pg=e=>Po(e,"position",ji),mg=new Set(["image","url"]),gg=e=>Po(e,mg,vg),hg=e=>Po(e,"",yg),or=()=>!0,Po=(e,t,a)=>{let o=Qi.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},xg=e=>sg.test(e)&&!lg.test(e),ji=()=>!1,yg=e=>ig.test(e),vg=e=>ug.test(e);var Vi=()=>{let e=Me("colors"),t=Me("spacing"),a=Me("blur"),o=Me("brightness"),r=Me("borderColor"),n=Me("borderRadius"),s=Me("borderSpacing"),i=Me("borderWidth"),l=Me("contrast"),u=Me("grayscale"),d=Me("hueRotate"),c=Me("invert"),p=Me("gap"),f=Me("gradientColorStops"),m=Me("gradientColorStopPositions"),g=Me("inset"),h=Me("margin"),x=Me("opacity"),y=Me("padding"),C=Me("saturate"),w=Me("scale"),L=Me("sepia"),E=Me("skew"),D=Me("space"),T=Me("translate"),S=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",oe,t],F=()=>[oe,t],re=()=>["",ma,Ba],fe=()=>["auto",ko,oe],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ne=()=>["solid","dashed","dotted","double","none"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>["start","end","center","between","around","evenly","stretch"],ve=()=>["","0",oe],Fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Ae=()=>[ko,oe];return{cacheSize:500,separator:":",theme:{colors:[or],spacing:[ma,Ba],blur:["none","",$a,oe],brightness:Ae(),borderColor:[e],borderRadius:["none","","full",$a,oe],borderSpacing:F(),borderWidth:re(),contrast:Ae(),grayscale:ve(),hueRotate:Ae(),invert:ve(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[dg,Ba],inset:_(),margin:_(),opacity:Ae(),padding:F(),saturate:Ae(),scale:Ae(),sepia:ve(),skew:Ae(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",oe]}],container:["container"],columns:[{columns:[$a]}],"break-after":[{"break-after":Fe()}],"break-before":[{"break-before":Fe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),oe]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ar,oe]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",oe]}],grow:[{grow:ve()}],shrink:[{shrink:ve()}],order:[{order:["first","last","none",ar,oe]}],"grid-cols":[{"grid-cols":[or]}],"col-start-end":[{col:["auto",{span:["full",ar,oe]},oe]}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":[or]}],"row-start-end":[{row:["auto",{span:[ar,oe]},oe]}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",oe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",oe]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...he()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...he(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...he(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",oe,t]}],"min-w":[{"min-w":[oe,t,"min","max","fit"]}],"max-w":[{"max-w":[oe,t,"none","full","min","max","fit","prose",{screen:[$a]},$a]}],h:[{h:[oe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[oe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$a,Ba]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$s]}],"font-family":[{font:[or]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",oe]}],"line-clamp":[{"line-clamp":["none",ko,$s]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ma,oe]}],"list-image":[{"list-image":["none",oe]}],"list-style-type":[{list:["none","disc","decimal",oe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ma,Ba]}],"underline-offset":[{"underline-offset":["auto",ma,oe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),pg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},gg]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...ne(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:ne()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...ne()]}],"outline-offset":[{"outline-offset":[ma,oe]}],"outline-w":[{outline:[ma,Ba]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[ma,Ba]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$a,hg]}],"shadow-color":[{shadow:[or]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":me()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",$a,oe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[C]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",oe]}],duration:[{duration:Ae()}],ease:[{ease:["linear","in","out","in-out",oe]}],delay:[{delay:Ae()}],animate:[{animate:["none","spin","ping","pulse","bounce",oe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ar,oe]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",oe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",oe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",oe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ma,Ba,$s]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Cg=(e,{cacheSize:t,prefix:a,separator:o,experimentalParseClassName:r,extend:n={},override:s={}})=>{rr(e,"cacheSize",t),rr(e,"prefix",a),rr(e,"separator",o),rr(e,"experimentalParseClassName",r);for(let i in s)bg(e[i],s[i]);for(let i in n)wg(e[i],n[i]);return e},rr=(e,t,a)=>{a!==void 0&&(e[t]=a)},bg=(e,t)=>{if(t)for(let a in t)rr(e,a,t[a])},wg=(e,t)=>{if(t)for(let a in t){let o=t[a];o!==void 0&&(e[a]=(e[a]||[]).concat(o))}},Xi=(e,...t)=>typeof e=="function"?_i(Vi,e,...t):_i(()=>Cg(Vi(),e),...t);var Lg=Xi({prefix:"ps-"});function V(...e){return Lg((0,Zi.clsx)(e))}b();var Pm=require("@tanstack/react-query");b();b();var Sn=require("react");b();var Ji=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ln=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();b();var nr=require("react");b();var Yi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var eu=(0,nr.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:s,...i},l)=>(0,nr.createElement)("svg",{ref:l,...Yi,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:Ln("lucide",r),...i},[...s.map(([u,d])=>(0,nr.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var ee=(e,t)=>{let a=(0,Sn.forwardRef)(({className:o,...r},n)=>(0,Sn.createElement)(eu,{ref:n,iconNode:t,className:Ln(`lucide-${Ji(e)}`,o),...r}));return a.displayName=`${e}`,a};b();var qa=ee("ArrowDownWideNarrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);b();var sr=ee("ArrowUpWideNarrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]);b();var Bt=ee("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);b();var Qt=ee("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);b();var lr=ee("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);b();var $t=ee("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);b();var ir=ee("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);b();var ur=ee("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);b();var dr=ee("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);b();var ga=ee("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);b();var lo=ee("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);b();var cr=ee("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);b();var fr=ee("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);b();var Mo=ee("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);b();var pr=ee("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);b();var mr=ee("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);b();var gr=ee("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);b();var hr=ee("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);b();var xr=ee("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);b();var yr=ee("PinOff",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);b();var vr=ee("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);b();var Ao=ee("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);b();var Cr=ee("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var hn=require("react"),Mm=require("sonner");b();var tu=require("@radix-ui/react-slot"),au=require("class-variance-authority"),ou=xe(require("react"),1);var ru=require("react/jsx-runtime"),Sg=(0,au.cva)("ps-inline-flex ps-items-center ps-justify-center ps-gap-2 ps-whitespace-nowrap ps-rounded-md ps-text-sm ps-font-medium ps-transition-colors focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-pointer-events-none disabled:ps-opacity-50 [&_svg]:ps-pointer-events-none [&_svg]:ps-size-4 [&_svg]:ps-shrink-0",{variants:{variant:{default:"ps-bg-primary ps-text-primary-foreground ps-shadow hover:ps-bg-primary/90",destructive:"ps-bg-destructive ps-text-destructive-foreground ps-shadow-sm hover:ps-bg-destructive/90",outline:"ps-border ps-border-input ps-bg-background ps-shadow-sm hover:ps-bg-accent hover:ps-text-accent-foreground",secondary:"ps-bg-secondary ps-text-secondary-foreground ps-shadow-sm hover:ps-bg-secondary/80",ghost:"hover:ps-bg-accent hover:ps-text-accent-foreground",link:"ps-text-primary ps-underline-offset-4 hover:ps-underline"},size:{default:"ps-h-9 ps-px-4 ps-py-2",sm:"ps-h-8 ps-rounded-md ps-px-3 ps-text-xs",lg:"ps-h-10 ps-rounded-md ps-px-8",icon:"ps-h-9 ps-w-9"}},defaultVariants:{variant:"default",size:"default"}}),Be=ou.forwardRef(({className:e,variant:t,size:a,asChild:o=!1,...r},n)=>(0,ru.jsx)(o?tu.Slot:"button",{className:V(Sg({variant:t,size:a,className:e})),ref:n,...r}));Be.displayName="Button";b();var br=xe(require("@radix-ui/react-checkbox"),1);var nu=xe(require("react"),1);var In=require("react/jsx-runtime"),wr=nu.forwardRef(({className:e,...t},a)=>(0,In.jsx)(br.Root,{ref:a,className:V("ps-peer ps-h-4 ps-w-4 ps-shrink-0 ps-rounded-sm ps-border ps-border-primary ps-shadow focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50 data-[state=checked]:ps-bg-primary data-[state=checked]:ps-text-primary-foreground",e),...t,children:(0,In.jsx)(br.Indicator,{className:V("ps-flex ps-items-center ps-justify-center ps-text-current"),children:(0,In.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}));wr.displayName=br.Root.displayName;b();var xs=require("@tanstack/react-query");b();var gs=require("@tanstack/react-query");b();b();var Ht=xe(require("react"),1),ps=require("@tanstack/react-query");b();Or();var Nf=class{#t;#u;#d;#c;#e=!1;#f;#a;#o;#r;#n;#s;#l;#i;constructor(e){let{client:t,queryFlavor:a,version:o,onlineManager:r,buttonPosition:n,position:s,initialIsOpen:i,errorTypes:l,styleNonce:u,shadowDOMTarget:d}=e;this.#t=N(t),this.#d=a,this.#c=o,this.#u=r,this.#f=u,this.#a=d,this.#o=N(n),this.#r=N(s),this.#n=N(i),this.#s=N(l)}setButtonPosition(e){this.#o[1](e)}setPosition(e){this.#r[1](e)}setInitialIsOpen(e){this.#n[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=Ys(()=>{let a=this,[o]=this.#o,[r]=this.#r,[n]=this.#n,[s]=this.#s,[i]=this.#t,l;return this.#l?l=this.#l:(l=Js(()=>Promise.resolve().then(()=>(Bf(),Of))),this.#l=l),nl(this.#f,this.#a),v(l,ae({get queryFlavor(){return a.#d},get version(){return a.#c},get onlineManager(){return a.#u},get shadowDOMTarget(){return a.#a}},{get client(){return i()},get buttonPosition(){return o()},get position(){return r()},get initialIsOpen(){return n()},get errorTypes(){return s()}}))},e);this.#e=!0,this.#i=t}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#i?.(),this.#e=!1}},zf=class{#t;#u;#d;#c;#e=!1;#f;#a;#o;#r;#n;#s;#l;#i;#p;constructor(e){let{client:t,queryFlavor:a,version:o,onlineManager:r,buttonPosition:n,position:s,initialIsOpen:i,errorTypes:l,styleNonce:u,shadowDOMTarget:d,onClose:c}=e;this.#t=N(t),this.#d=a,this.#c=o,this.#u=r,this.#f=u,this.#a=d,this.#o=N(n),this.#r=N(s),this.#n=N(i),this.#s=N(l),this.#l=N(c)}setButtonPosition(e){this.#o[1](e)}setPosition(e){this.#r[1](e)}setInitialIsOpen(e){this.#n[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=Ys(()=>{let a=this,[o]=this.#o,[r]=this.#r,[n]=this.#n,[s]=this.#s,[i]=this.#t,[l]=this.#l,u;return this.#i?u=this.#i:(u=Js(()=>Promise.resolve().then(()=>(qf(),$f))),this.#i=u),nl(this.#f,this.#a),v(u,ae({get queryFlavor(){return a.#d},get version(){return a.#c},get onlineManager(){return a.#u},get shadowDOMTarget(){return a.#a}},{get client(){return i()},get buttonPosition(){return o()},get position(){return r()},get initialIsOpen(){return n()},get errorTypes(){return s()},get onClose(){return l()}}))},e);this.#e=!0,this.#p=t}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#p?.(),this.#e=!1}};var Uf=require("react/jsx-runtime");function Hf(e){let t=(0,ps.useQueryClient)(e.client),a=Ht.useRef(null),{buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}=e,[u]=Ht.useState(new Nf({client:t,queryFlavor:"React Query",version:"5",onlineManager:ps.onlineManager,buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}));return Ht.useEffect(()=>{u.setClient(t)},[t,u]),Ht.useEffect(()=>{o&&u.setButtonPosition(o)},[o,u]),Ht.useEffect(()=>{r&&u.setPosition(r)},[r,u]),Ht.useEffect(()=>{u.setInitialIsOpen(n||!1)},[n,u]),Ht.useEffect(()=>{u.setErrorTypes(s||[])},[s,u]),Ht.useEffect(()=>(a.current&&u.mount(a.current),()=>{u.unmount()}),[u]),(0,Uf.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:a})}b();var La=xe(require("react"),1),ms=require("@tanstack/react-query");var _f=require("react/jsx-runtime");function Vf(e){let t=(0,ms.useQueryClient)(e.client),a=La.useRef(null),{errorTypes:o,styleNonce:r,shadowDOMTarget:n}=e,[s]=La.useState(new zf({client:t,queryFlavor:"React Query",version:"5",onlineManager:ms.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:o,styleNonce:r,shadowDOMTarget:n,onClose:e.onClose}));return La.useEffect(()=>{s.setClient(t)},[t,s]),La.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),La.useEffect(()=>{s.setErrorTypes(o||[])},[o,s]),La.useEffect(()=>(a.current&&s.mount(a.current),()=>{s.unmount()}),[s]),(0,_f.jsx)("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:a})}var Gf=process.env.NODE_ENV!=="development"?function(){return null}:Hf,zL=process.env.NODE_ENV!=="development"?function(){return null}:Vf;var jf=require("nuqs/adapters/react"),Sa=require("react"),Xf=require("sonner");b();var Kf=require("sonner"),Qf=require("react/jsx-runtime"),Wf=({...e})=>(0,Qf.jsx)(Kf.Toaster,{className:"ps-toaster ps-group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e});var vo=require("react/jsx-runtime"),iC=new gs.QueryClient,Zf=(0,Sa.createContext)(void 0);function Jf(e){let{children:t,...a}=e,[o,r]=(0,Sa.useState)(null),[n,s]=(0,Sa.useState)(!1),i=e.onError;i??=d=>Xf.toast.error(d.message);let l=(0,Sa.useMemo)(()=>e.onTelemetryEvent??(()=>{}),[e.onTelemetryEvent]),u=()=>s(d=>!d);return(0,vo.jsxs)(gs.QueryClientProvider,{client:iC,children:[(0,vo.jsx)(Gf,{}),(0,vo.jsx)(Wf,{}),(0,vo.jsx)(jf.NuqsAdapter,{children:(0,vo.jsx)(Zf.Provider,{value:{...a,activeTable:o,isFullscreen:n,setActiveTable:r,onError:i,emitTelemetryEvent:l,toggleFullscreen:u},children:t})})]})}function Ze(){let e=(0,Sa.useContext)(Zf);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}b();b();b();function Co(e,t){return Object.entries(Object.values(t).reduce((a,o)=>{let{isInPrimaryKey:r,name:n}=o;return r&&(a[n]=e[n]??null),a},{}))}function uC(e,t){let a={filter:Co(e,t.columns),table:`${t.schema}.${t.name}`};return JSON.stringify(a)}function Yf(e,t){return{...e,__ps_rowid:uC(e,t)}}function hs(e,t){let{row:a,rows:o}=e;return a!==void 0?{...e,row:Yf(a,t)}:o!==void 0?{...e,rows:o.map(r=>Yf(r,t))}:e}function ep(){let{activeTable:e,adapter:t}=Ze(),a=(0,xs.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,xs.useMutation)({mutationKey:["schema",o,"table",r,"insert"],async mutationFn(n){let[s,i]=await t.insert({rows:n,table:e},{});if(s)throw s;return hs(i,e)},onSuccess(n){a.setQueriesData({exact:!1,queryKey:["schema",o,"table",r,"query"]},s=>s==null?s:{...s,rows:[...n.rows,...s.rows]})},retry:!1})}b();var tp=require("@tanstack/react-query");function ap(e){let{pageIndex:t,pageSize:a,sortOrder:o}=e,{activeTable:r,adapter:n}=Ze();return(0,tp.useQuery)({enabled:!!r,gcTime:0,placeholderData(s,i){let[,l,,u]=i?.queryKey||[];if(!(l!==r?.schema||u!==r?.name))return s},async queryFn({signal:s}){let[i,l]=await n.query({pageIndex:t,pageSize:a,sortOrder:o,table:r},{abortSignal:s});if(i)throw i;return hs(l,r)},queryKey:["schema",r?.schema||null,"table",r?.name||null,"query","sortOrder",o.map(s=>`${s.column}:${s.direction}`).join(",")||"natural","pageIndex",t,"pageSize",a],staleTime:1/0})}b();var ys=require("@tanstack/react-query");function op(){let{activeTable:e,adapter:t,onError:a}=Ze(),o=(0,ys.useQueryClient)(),r=["schema",e?.schema??null,"table",e?.name??null];return(0,ys.useMutation)({mutationFn:async n=>{let[s,i]=await t.update(n.details,n.options);if(s)throw s;return i},mutationKey:[...r,"update"],onError(n,s){let{changes:i,row:l}=s.details;a(n),Vl({getFinderFn(){let u={...l,...i},d=Co(u,e.columns);return c=>d.every(([p,f])=>c[p]===f)},queryClient:o,table:e,updaterFn:function(d){return{...d,...Object.keys(i).reduce((c,p)=>({...c,[p]:l[p]}),{})}}})},onMutate(n){let{details:s}=n;Vl({getFinderFn(){let{row:i}=s,l=Co(i,e.columns);return u=>l.every(([d,c])=>u[d]===c)},queryClient:o,table:e,updaterFn:function(l){return{...l,...s.changes}}})},onSuccess(n,s){Vl({getFinderFn(){let{changes:i,row:l}=s.details,u={...l,...i},d=Co(u,e.columns);return c=>d.every(([p,f])=>c[p]===f)},queryClient:o,table:e,updaterFn:function(l){let{__ps_updated_at__:u}=l,{row:d}=n;return u!=null&&d.__ps_updated_at__<=u?l:{...l,...d}}})},retry:!1})}function Vl(e){let{getFinderFn:t,queryClient:a,table:o,updaterFn:r}=e,n;a.setQueriesData({exact:!1,queryKey:["schema",o.schema,"table",o.name,"query"]},s=>{let{rows:i=[]}=s||{};if(i.length===0)return s;let l=i.findIndex(n??=t());if(l===-1)return s;let u=r(i[l]);return{...s,rows:[...i.slice(0,l),u,...i.slice(l+1)]}})}b();var rp=require("@tanstack/react-query");function vs(){return(0,rp.useIsMutating)({predicate({options:{mutationKey:e}}){return e?.[4]==="insert"}})}b();var np=require("react");var Ye={};wn(Ye,{keyMap:()=>Gl,urlKeys:()=>dC,useQueryState:()=>Ko,useQueryStates:()=>en});b();var Cs=require("nuqs");pa(Ye,require("nuqs"));function Gl(e){return e}function dC(e){return e}var CS=Symbol("BRAND_SYMBOL");function Ko(e,t){return(0,Cs.useQueryState)(e,t)}function en(e,t){return(0,Cs.useQueryStates)(e,t)}var cC=25,fC={pageIndex:Ye.parseAsIndex.withDefault(0),pageSize:Ye.parseAsInteger.withDefault(cC)};function bs(){let[{pageIndex:e,pageSize:t},a]=en(fC),o=(0,np.useCallback)(r=>{a(typeof r=="function"?n=>{let s=r(n);return{pageIndex:s.pageIndex,pageSize:s.pageSize}}:{pageIndex:r.pageIndex,pageSize:r.pageSize})},[a]);return{paginationState:{pageIndex:e,pageSize:t},setPaginationState:o}}b();var Ls=require("react");b();var ws=require("@tanstack/react-query");function sp(){let{activeTable:e,adapter:t}=Ze(),a=(0,ws.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,ws.useMutation)({mutationKey:["schema",o,"table",r,"delete"],async mutationFn(n){let[s,i]=await t.delete({rows:n,table:e},{});if(s)throw s;return i},async onSuccess(){await a.invalidateQueries({exact:!1,queryKey:["schema",o,"table",r,"query"]})},retry:!1})}function lp(e){let{activeTable:t,onError:a}=Ze(),{paginationState:o}=bs(),[r,n]=(0,Ls.useState)({}),s=Object.keys(r).length!==0,{mutate:i}=sp();(0,Ls.useEffect)(()=>n({}),[t,o.pageIndex]);function l(){let u=e?.rows.filter(d=>r[d.__ps_rowid]);i(u??[],{onSuccess(){n({})},onError:a})}return{deleteSelection:l,setRowSelectionState:n,rowSelectionState:r,isSelecting:s}}b();var Ss=require("react");function ip(){let[e,t]=Ko("sort",{defaultValue:""}),a=s=>{if(!s)return[];try{return s.split(",").map(i=>{let[l,u]=i.split(":");return!l||!u||!["asc","desc"].includes(u)?null:{column:l,direction:u}}).filter(Boolean)}catch(i){return console.error("Failed to parse sorting parameter:",i),[]}},[o,r]=(0,Ss.useState)(()=>a(e));return(0,Ss.useEffect)(()=>{let s=a(e);r(s)},[e]),{sortingState:o,setSortingState:s=>{let i=typeof s=="function"?s(o):s;r(i);let l=i.length>0?i.map(u=>`${u.column}:${u.direction}`).join(","):null;t(l)}}}b();var Mp=require("remeda");b();var pp=require("react");b();b();var Ia=xe(require("react"),1);var aa=require("react/jsx-runtime"),Kl=Ia.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("div",{className:"ps-relative ps-w-full ps-overflow-auto ps-flex ps-items-start ps-h-full",children:(0,aa.jsx)("table",{ref:a,className:V("ps-w-full ps-caption-bottom ps-text-sm",e),...t})}));Kl.displayName="Table";var Wl=Ia.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("thead",{ref:a,className:V(e),...t}));Wl.displayName="TableHeader";var Ql=Ia.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("tbody",{ref:a,className:V("[&_tr:last-child]:ps-border-0",e),...t}));Ql.displayName="TableBody";var pC=Ia.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("tfoot",{ref:a,className:V("ps-border-t ps-bg-muted/50 ps-font-medium [&>tr]:last:ps-border-b-0",e),...t}));pC.displayName="TableFooter";var bo=Ia.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("tr",{ref:a,className:V("ps-border-b ps-transition-colors hover:ps-bg-muted/50 data-[state=selected]:ps-bg-muted",e),...t}));bo.displayName="TableRow";var jl=Ia.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("th",{ref:a,className:V("ps-h-10 ps-px-2 ps-text-left ps-align-middle ps-font-medium ps-text-muted-foreground",e),...t}));jl.displayName="TableHead";var tn=Ia.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("td",{ref:a,className:V("ps-align-middle",e),...t}));tn.displayName="TableCell";var mC=Ia.forwardRef(({className:e,...t},a)=>(0,aa.jsx)("caption",{ref:a,className:V("ps-mt-4 ps-text-sm ps-text-muted-foreground",e),...t}));mC.displayName="TableCaption";b();var cp=require("react");b();var ue=xe(require("@radix-ui/react-context-menu"),1);var ka=xe(require("react"),1);var Ge=require("react/jsx-runtime"),up=ue.Root,dp=ue.Trigger;var gC=ka.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ge.jsxs)(ue.SubTrigger,{ref:r,className:V("ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[state=open]:ps-bg-accent data-[state=open]:ps-text-accent-foreground",t&&"ps-pl-8",e),...o,children:[a,(0,Ge.jsx)($t,{className:"ps-ml-auto ps-h-4 ps-w-4"})]}));gC.displayName=ue.SubTrigger.displayName;var hC=ka.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.SubContent,{ref:a,className:V("ps-z-50 ps-min-w-[8rem] ps-overflow-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-lg data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-context-menu-content-transform-origin]",e),...t}));hC.displayName=ue.SubContent.displayName;var Xl=ka.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.Portal,{children:(0,Ge.jsx)(ue.Content,{ref:a,className:V("ps-z-50 ps-max-h-[--radix-context-menu-content-available-height] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-md data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-context-menu-content-transform-origin]",e),...t})}));Xl.displayName=ue.Content.displayName;var Zl=ka.forwardRef(({className:e,inset:t,...a},o)=>(0,Ge.jsx)(ue.Item,{ref:o,className:V("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",t&&"ps-pl-8",e),...a}));Zl.displayName=ue.Item.displayName;var xC=ka.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ge.jsxs)(ue.CheckboxItem,{ref:r,className:V("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),checked:a,...o,children:[(0,Ge.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Ge.jsx)(ue.ItemIndicator,{children:(0,Ge.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}),t]}));xC.displayName=ue.CheckboxItem.displayName;var yC=ka.forwardRef(({className:e,children:t,...a},o)=>(0,Ge.jsxs)(ue.RadioItem,{ref:o,className:V("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...a,children:[(0,Ge.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Ge.jsx)(ue.ItemIndicator,{children:(0,Ge.jsx)(lo,{className:"ps-h-4 ps-w-4 ps-fill-current"})})}),t]}));yC.displayName=ue.RadioItem.displayName;var vC=ka.forwardRef(({className:e,inset:t,...a},o)=>(0,Ge.jsx)(ue.Label,{ref:o,className:V("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold ps-text-foreground",t&&"ps-pl-8",e),...a}));vC.displayName=ue.Label.displayName;var CC=ka.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.Separator,{ref:a,className:V("ps--mx-1 ps-my-1 ps-h-px ps-bg-border",e),...t}));CC.displayName=ue.Separator.displayName;var bC=({className:e,...t})=>(0,Ge.jsx)("span",{className:V("ps-ml-auto ps-text-xs ps-tracking-widest ps-text-muted-foreground",e),...t});bC.displayName="ContextMenuShortcut";var wo=require("react/jsx-runtime");function fp(e){let{children:t}=e;return(0,wo.jsxs)(up,{children:[(0,wo.jsx)(dp,{className:"ps-block ps-w-full ps-px-[var(--studio-cell-spacing)] ps-leading-[var(--studio-cell-height)] ps-h-[var(--studio-cell-height)] ps-text-xs ps-font-mono ps-whitespace-nowrap ps-overflow-hidden ps-text-ellipsis",children:t}),(0,wo.jsx)(Xl,{children:(0,wo.jsxs)(Zl,{onClick:()=>{let a=Jl(t);navigator.clipboard.writeText(a).catch(o=>{console.error("Failed to copy to clipboard:",o)})},className:"ps-flex ps-items-center ps-gap-2",children:[(0,wo.jsx)(cr,{size:12}),"Copy"]})})]})}function Jl(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(e==null)return"";if((0,cp.isValidElement)(e)){let t=e.props;return e.type&&typeof e.type=="function"&&e.type.name==="RevealText"?t.text||"":e.type&&typeof e.type=="function"&&e.type.name==="NullValue"?"NULL":t.children?Jl(t.children):""}return Array.isArray(e)?e.map(Jl).join(""):""}var Yl=require("react/jsx-runtime");function _e(e){let{children:t,className:a,ref:o,style:r,...n}=e;return(0,Yl.jsx)(tn,{...n,className:V("ps-p-0 ps-border-r ps-border-b ps-border-table-border ps-bg-table-head","ps-cursor-pointer",a),ref:o,style:r,children:(0,Yl.jsx)(fp,{children:t})})}var ei=require("react/jsx-runtime"),ti=(0,pp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,ei.jsx)(_e,{...r,...a,ref:t,children:(0,ei.jsx)("div",{"data-cell-type":"boolean",children:String(!!o)})})});ti.displayName="BooleanCell";b();var mp=require("react");var gp=require("react/jsx-runtime"),ai=(0,mp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,gp.jsx)(_e,{...r,...a,ref:t,children:String(o)})});ai.displayName="DateCell";b();var hp=require("react");var xp=require("react/jsx-runtime"),an=(0,hp.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,xp.jsx)(_e,{...o,...a,ref:t})});an.displayName="EmptyCell";b();var yp=require("react");var vp=require("react/jsx-runtime"),oi=(0,yp.forwardRef)((e,t)=>{let{containerProps:a,value:o,options:r,...n}=e;return(0,vp.jsx)(_e,{...n,...a,ref:t,children:String(o)})});oi.displayName="EnumCell";b();var Cp=require("react");var bp=require("react/jsx-runtime"),Is=(0,Cp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,bp.jsx)(_e,{...r,...a,ref:t,children:JSON.stringify(o,null,2)})});Is.displayName="JSONCell";b();var wp=require("react");var ri=require("react/jsx-runtime"),ni=(0,wp.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,ri.jsx)(_e,{...o,...a,ref:t,children:(0,ri.jsx)("code",{className:"ps-text-gray-500",children:"NULL"})})});ni.displayName="NullCell";b();var Lp=require("react");var si=require("react/jsx-runtime"),li=(0,Lp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,si.jsx)(_e,{...r,...a,ref:t,children:(0,si.jsx)("div",{"data-cell-type":"numeric",children:o===null?"NULL":String(o)})})});li.displayName="NumericCell";b();var Sp=require("react");var Ip=require("react/jsx-runtime"),ks=(0,Sp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Ip.jsx)(_e,{...r,...a,ref:t,children:String(o)})});ks.displayName="RawCell";b();var kp=require("react");var Pp=require("react/jsx-runtime"),ii=(0,kp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Pp.jsx)(_e,{...r,...a,ref:t,children:String(o)})});ii.displayName="TimeCell";var Rt=require("react/jsx-runtime");function Ps({cell:e,column:t,props:a}){let o=e.getValue();if(o===void 0)return(0,Rt.jsx)(an,{});if(o===null)return(0,Rt.jsx)(ni,{});let{group:r,options:n,isArray:s}=t.datatype;if(r==="json"||s)return(0,Rt.jsx)(Is,{containerProps:a,value:o});if(r==="string")return(0,Rt.jsx)(ks,{containerProps:a,value:o});if(r==="enum")return(0,Rt.jsx)(oi,{containerProps:a,value:o,options:n});if(r==="boolean")return(0,Rt.jsx)(ti,{containerProps:a,value:o});if(r==="datetime")return(0,Rt.jsx)(ai,{containerProps:a,value:o});if(r==="time")return(0,Rt.jsx)(ii,{containerProps:a,value:o});if(r==="numeric")return(0,Rt.jsx)(li,{containerProps:a,value:o});if(r==="raw")return(0,Mp.isObjectType)(o)?(0,Rt.jsx)(Is,{containerProps:a,value:o}):(0,Rt.jsx)(ks,{containerProps:a,value:o});throw new Error(`Datatype group "${r}" was not handled in '/cell/get-cell.tsx'`)}b();var Ap=require("react");var ui=require("react/jsx-runtime"),di=(0,Ap.forwardRef)((e,t)=>{let{row:a,readonly:o,...r}=e;return(0,ui.jsx)(_e,{ref:t,...r,children:(0,ui.jsx)(wr,{checked:a.getIsSelected(),disabled:!a.getCanSelect()||o,onCheckedChange:a.getToggleSelectedHandler()})})});di.displayName="SelectRowCell";b();b();var Pa=xe(require("@radix-ui/react-popover"),1),nt=xe(require("react"),1);var Wo=require("react/jsx-runtime"),Rp=nt.createContext(null),ci=({children:e,...t})=>{let[a,o]=nt.useState(!1);return(0,Wo.jsx)(Rp.Provider,{value:{open:a,setOpen:o},children:(0,Wo.jsx)(Pa.Root,{open:a,onOpenChange:o,...t,children:e})})};ci.displayName="PopoverCell";var fi=nt.forwardRef(({children:e,onDoubleClick:t,className:a,...o},r)=>{let n=nt.useRef(null);return(0,Wo.jsx)(Pa.Trigger,{ref:s=>{typeof r=="function"?r(s):r&&(r.current=s),n.current=s},className:V("w-full h-full cursor-pointer",a),...o,children:e})});fi.displayName="PopoverCellTrigger";var pi=nt.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Wo.jsx)(Pa.Portal,{children:(0,Wo.jsx)(Pa.Content,{ref:r,align:t,sideOffset:a,className:V("ps-flex ps-flex-col ps-gap-2 ps-z-50 ps-rounded-md ps-border ps-bg-popover ps-text-popover-foreground ps-shadow-md ps-outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),onEscapeKeyDown:n=>n.preventDefault(),...o})}));pi.displayName=Pa.Content.displayName;function pt(e){let t=nt.useContext(Rp),a=nt.useCallback(()=>{e.readonly&&t?.setOpen(!1),e.onSave&&e.onSave(),t&&t.setOpen(!1)},[e.onSave,t]),o=nt.useCallback(()=>{e.readonly&&t?.setOpen(!1),e.onCancel&&e.onCancel(),t&&t.setOpen(!1)},[e.onCancel,t]);return nt.useEffect(()=>{let r=n=>{(n.key==="Enter"||n.key==="Return")&&!n.shiftKey?a():n.key==="Escape"&&o()};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[a,o]),{handleSave:a,handleCancel:o}}var on=require("react/jsx-runtime");function Ms(e){let{cellComponent:t,inputComponent:a}=e;return(0,on.jsxs)(ci,{children:[(0,on.jsx)(fi,{asChild:!0,children:t}),(0,on.jsx)(pi,{align:"start",alignOffset:-1,className:"ps-min-w-cell ps-rounded-none ps-bg-muted ps-p-0 ps-z-30 ps-gap-0 ps-border-blue-500 ps-min-w-[calc(var(--radix-popover-trigger-width) + 1px)]",sideOffset:-40,children:a})]})}b();var dt=require("@dnd-kit/core"),oa=require("@dnd-kit/sortable"),qp=require("@dnd-kit/utilities");var gi=require("react"),As=require("uuid");b();var Tp=require("class-variance-authority");var Ep=require("react/jsx-runtime"),mi=(0,Tp.cva)("ps-inline-flex ps-items-center ps-rounded-md ps-border ps-px-2.5 ps-py-0.5 ps-text-xs ps-font-semibold ps-transition-colors focus:ps-outline-none focus:ps-ring-2 focus:ps-ring-ring focus:ps-ring-offset-2",{variants:{variant:{default:"ps-border-transparent ps-bg-primary ps-text-primary-foreground ps-shadow hover:ps-bg-primary/80",secondary:"ps-border-transparent ps-bg-secondary ps-text-secondary-foreground hover:ps-bg-secondary/80",destructive:"ps-border-transparent ps-bg-destructive ps-text-destructive-foreground ps-shadow hover:ps-bg-destructive/80",outline:"ps-text-foreground"}},defaultVariants:{variant:"default"}});function Dp({className:e,variant:t,...a}){return(0,Ep.jsx)("div",{className:V(mi({variant:t}),e),...a})}b();var Fp=xe(require("react"),1);var Op=require("react/jsx-runtime"),_t=Fp.forwardRef(({className:e,type:t,...a},o)=>(0,Op.jsx)("input",{type:t,className:V("ps-flex ps-h-9 ps-w-full ps-rounded-md ps-border ps-border-input ps-bg-transparent ps-px-3 ps-py-1 ps-shadow-sm ps-transition-colors file:ps-border-0 file:ps-bg-transparent file:ps-text-sm file:ps-font-medium file:ps-text-foreground placeholder:ps-text-muted-foreground focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50",e),ref:o,...a}));_t.displayName="Input";b();var de=xe(require("@radix-ui/react-select"),1);var Qa=xe(require("react"),1);var Ne=require("react/jsx-runtime"),rn=de.Root;var nn=de.Value,Qo=Qa.forwardRef(({className:e,children:t,...a},o)=>(0,Ne.jsxs)(de.Trigger,{ref:o,className:V("ps-flex ps-h-9 ps-w-full ps-items-center ps-justify-between ps-whitespace-nowrap ps-rounded-md ps-border ps-border-input ps-bg-transparent ps-px-3 ps-py-2 ps-text-sm ps-shadow-sm ps-ring-offset-background data-[placeholder]:ps-text-muted-foreground focus:ps-outline-none focus:ps-ring-1 focus:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50 [&>span]:ps-line-clamp-1",e),...a,children:[t,(0,Ne.jsx)(de.Icon,{asChild:!0,children:(0,Ne.jsx)(Qt,{className:"ps-h-4 ps-w-4 ps-opacity-50"})})]}));Qo.displayName=de.Trigger.displayName;var Bp=Qa.forwardRef(({className:e,...t},a)=>(0,Ne.jsx)(de.ScrollUpButton,{ref:a,className:V("ps-flex ps-cursor-default ps-items-center ps-justify-center ps-py-1",e),...t,children:(0,Ne.jsx)(ir,{className:"ps-h-4 ps-w-4"})}));Bp.displayName=de.ScrollUpButton.displayName;var $p=Qa.forwardRef(({className:e,...t},a)=>(0,Ne.jsx)(de.ScrollDownButton,{ref:a,className:V("ps-flex ps-cursor-default ps-items-center ps-justify-center ps-py-1",e),...t,children:(0,Ne.jsx)(Qt,{className:"ps-h-4 ps-w-4"})}));$p.displayName=de.ScrollDownButton.displayName;var jo=Qa.forwardRef(({className:e,children:t,position:a="popper",...o},r)=>(0,Ne.jsx)(de.Portal,{children:(0,Ne.jsxs)(de.Content,{ref:r,className:V("ps-relative ps-z-50 ps-max-h-[--radix-select-content-available-height] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-text-popover-foreground ps-shadow-md data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-select-content-transform-origin]",a==="popper"&&"data-[side=bottom]:ps-translate-y-1 data-[side=left]:ps--translate-x-1 data-[side=right]:ps-translate-x-1 data-[side=top]:ps--translate-y-1",e),position:a,...o,children:[(0,Ne.jsx)(Bp,{}),(0,Ne.jsx)(de.Viewport,{className:V("ps-p-1",a==="popper"&&"ps-h-[var(--radix-select-trigger-height)] ps-w-full ps-min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,Ne.jsx)($p,{})]})}));jo.displayName=de.Content.displayName;var wC=Qa.forwardRef(({className:e,...t},a)=>(0,Ne.jsx)(de.Label,{ref:a,className:V("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",e),...t}));wC.displayName=de.Label.displayName;var $e=Qa.forwardRef(({className:e,children:t,...a},o)=>(0,Ne.jsxs)(de.Item,{ref:o,className:V("ps-relative ps-flex ps-w-full ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-2 ps-pr-8 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...a,children:[(0,Ne.jsx)("span",{className:"ps-absolute ps-right-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Ne.jsx)(de.ItemIndicator,{children:(0,Ne.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}),(0,Ne.jsx)(de.ItemText,{children:t})]}));$e.displayName=de.Item.displayName;var LC=Qa.forwardRef(({className:e,...t},a)=>(0,Ne.jsx)(de.Separator,{ref:a,className:V("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));LC.displayName=de.Separator.displayName;var H=require("react/jsx-runtime"),Np=["id","name","email","created_at","updated_at","status","role","department"],SC=({filter:e,onUpdate:t,onDelete:a,parentId:o,isLast:r})=>{let{attributes:n,listeners:s,setNodeRef:i,transform:l,transition:u,isDragging:d}=(0,oa.useSortable)({id:e.id,data:{type:e.kind,parentId:o}}),c={transform:qp.CSS.Transform.toString(l),transition:u,opacity:d?.5:1};return(0,H.jsx)("div",{ref:i,style:c,className:"ps-mt-2",children:e.kind==="ColumnFilter"?(0,H.jsx)(zp,{filter:e,onUpdate:t,onDelete:a,dragHandleProps:{...n,...s},isLast:r}):(0,H.jsx)(hi,{group:e,onUpdate:t,onDelete:a,dragHandleProps:{...n,...s},isLast:r})})},zp=({filter:e,onUpdate:t,onDelete:a,dragHandleProps:o,isLast:r})=>{let n=u=>{t({...e,column:u})},s=u=>{t({...e,operator:u})},i=u=>{t({...e,value:u.target.value})},l=u=>{t({...e,after:u})};return(0,H.jsx)("div",{className:"ps-border-l-4 ps-border-l-blue-500 ps-mb-2",children:(0,H.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,H.jsx)("div",{...o,className:"ps-cursor-grab",children:(0,H.jsx)(Mo,{className:"ps-text-gray-400",size:16})}),(0,H.jsxs)(rn,{value:e.column,onValueChange:n,children:[(0,H.jsx)(Qo,{className:"ps-w-[180px] ps-h-8 ps-text-xs",children:(0,H.jsx)(nn,{placeholder:"Select column"})}),(0,H.jsx)(jo,{children:Np.map(u=>(0,H.jsx)($e,{value:u,children:u},u))})]}),(0,H.jsxs)(rn,{value:e.operator,onValueChange:u=>s(u),children:[(0,H.jsx)(Qo,{className:"ps-w-[100px] ps-h-8 ps-text-xs",children:(0,H.jsx)(nn,{placeholder:"Operator"})}),(0,H.jsxs)(jo,{children:[(0,H.jsx)($e,{value:"=",children:"="}),(0,H.jsx)($e,{value:"!=",children:"!="}),(0,H.jsx)($e,{value:">",children:">"}),(0,H.jsx)($e,{value:">=",children:">="}),(0,H.jsx)($e,{value:"<",children:"<"}),(0,H.jsx)($e,{value:"<=",children:"<="}),(0,H.jsx)($e,{value:"in",children:"in"}),(0,H.jsx)($e,{value:"not in",children:"not in"}),(0,H.jsx)($e,{value:"is",children:"is"}),(0,H.jsx)($e,{value:"is not",children:"is not"}),(0,H.jsx)($e,{value:"like",children:"like"}),(0,H.jsx)($e,{value:"not like",children:"not like"}),(0,H.jsx)($e,{value:"ilike",children:"ilike"}),(0,H.jsx)($e,{value:"not ilike",children:"not ilike"}),(0,H.jsx)($e,{value:"match",children:"match"})]})]}),(0,H.jsx)(_t,{value:e.value||"",onChange:i,placeholder:"value",className:"ps-flex-1 ps-h-8 ps-text-xs"}),(0,H.jsx)("div",{className:"ps-flex ps-items-center ps-mt-2 ps-ml-6",children:(0,H.jsxs)(rn,{value:e.after,onValueChange:u=>l(u),children:[(0,H.jsx)(Qo,{className:"ps-w-[80px]",children:(0,H.jsx)(nn,{})}),(0,H.jsxs)(jo,{children:[(0,H.jsx)($e,{value:"and",children:"AND"}),(0,H.jsx)($e,{value:"or",children:"OR"})]})]})}),(0,H.jsx)(Be,{variant:"ghost",size:"icon",onClick:a,className:"ps-text-red-500 ps-hover:text-red-700 ps-hover:bg-red-100 ps-h-8 ps-text-xs",children:(0,H.jsx)(Ao,{size:16})})]})})},hi=({group:e,onUpdate:t,onDelete:a,dragHandleProps:o,isRoot:r=!1,isLast:n=!1})=>{let[s,i]=(0,gi.useState)(!0),[l,u]=(0,gi.useState)(null),d=e.filters||[],c=(0,dt.useSensors)((0,dt.useSensor)(dt.PointerSensor,{activationConstraint:{distance:8}}),(0,dt.useSensor)(dt.KeyboardSensor,{coordinateGetter:oa.sortableKeyboardCoordinates})),p=()=>{let C={kind:"ColumnFilter",column:Np[0],operator:"=",value:"",id:(0,As.v4)(),after:"and"};t({...e,filters:[...d,C]})},f=()=>{let C={kind:"ColumnFilters",filters:[],id:(0,As.v4)(),after:"and"};t({...e,filters:[...d,C]})},m=(C,w)=>{let L=[...d];L[C]=w,t({...e,filters:L})},g=C=>{let w=[...d];w.splice(C,1),t({...e,filters:w})},h=C=>{u(C.active.id)},x=C=>{let{active:w,over:L}=C;if(L&&w.id!==L.id){let E=d.findIndex(S=>S.id===w.id),D=d.findIndex(S=>S.id===L.id),T=(0,oa.arrayMove)(d,E,D);t({...e,filters:T})}u(null)},y=()=>s?(0,H.jsxs)("div",{className:r?"":"ps-ml-6",children:[(0,H.jsxs)(dt.DndContext,{sensors:c,collisionDetection:dt.closestCenter,onDragStart:h,onDragEnd:x,children:[(0,H.jsx)(oa.SortableContext,{items:d.map(C=>C.id),strategy:oa.verticalListSortingStrategy,children:d.map((C,w)=>(0,H.jsx)(SC,{filter:C,onUpdate:L=>m(w,L),onDelete:()=>g(w),parentId:e.id,isLast:w===d.length-1},C.id))}),(0,H.jsx)(dt.DragOverlay,{children:l?(0,H.jsx)("div",{className:"ps-opacity-80",children:(()=>{let C=d.find(w=>w.id===l);return C?C.kind==="ColumnFilter"?(0,H.jsx)(zp,{filter:C,onUpdate:()=>{},onDelete:()=>{},isLast:!0}):(0,H.jsx)(hi,{group:C,onUpdate:()=>{},onDelete:()=>{},isLast:!0}):null})()}):null})]}),(0,H.jsxs)("div",{className:"ps-flex ps-gap-2 ps-mt-2",children:[(0,H.jsxs)(Be,{variant:"outline",size:"sm",onClick:p,className:"ps-flex ps-items-center ps-gap-1",children:[(0,H.jsx)(ga,{size:14}),"Add Condition"]}),(0,H.jsxs)(Be,{variant:"outline",size:"sm",onClick:f,className:"ps-flex ps-items-center ps-gap-1",children:[(0,H.jsx)(ga,{size:14}),"Add Group"]}),!r&&(0,H.jsx)("div",{className:"ps-flex ps-items-center ps-mt-2 ps-ml-6",children:(0,H.jsxs)(rn,{value:e.after,onValueChange:C=>t({...e,after:C}),children:[(0,H.jsx)(Qo,{className:"ps-w-[80px]",children:(0,H.jsx)(nn,{})}),(0,H.jsxs)(jo,{children:[(0,H.jsx)($e,{value:"and",children:"AND"}),(0,H.jsx)($e,{value:"or",children:"OR"})]})]})})]})]}):null;return(0,H.jsxs)("div",{className:"ps-mb-2 ps-bg-background/60",children:[(0,H.jsx)("div",{className:"ps-pb-0",children:(0,H.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between",children:[(0,H.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[!r&&(0,H.jsx)("div",{...o,className:"ps-cursor-grab",children:(0,H.jsx)(Mo,{className:"ps-text-gray-400",size:16})}),(0,H.jsx)(Be,{variant:"ghost",size:"sm",className:"ps-p-0 ps-h-6 ps-w-6",onClick:()=>i(!s),children:s?(0,H.jsx)(Qt,{size:16}):(0,H.jsx)($t,{size:16})}),(0,H.jsxs)(Dp,{variant:"outline",className:"ps-ml-2",children:[d.length," ",d.length===1?"condition":"conditions"]})]}),!r&&(0,H.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2",children:(0,H.jsx)(Be,{variant:"ghost",size:"icon",onClick:a,className:"ps-text-red-500 ps-hover:text-red-700 ps-hover:bg-red-100",children:(0,H.jsx)(Ao,{size:16})})})]})}),(0,H.jsx)("div",{className:r?"":"ps-border-l-4 ps-border-l-gray-500",children:y()})]})};function Up({filter:e,setFilter:t}){return(0,H.jsx)(hi,{group:{...e,id:e.id||(0,As.v4)()},onUpdate:t,onDelete:()=>{},isRoot:!0})}b();var Za=require("@dnd-kit/core"),Ja=require("@dnd-kit/sortable"),tm=require("@dnd-kit/utilities"),Ds=require("@tanstack/react-table");b();var Ma=xe(require("react"),1),G=xe(require("react"),1);function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)({}).hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},ja.apply(null,arguments)}var IC=e=>{try{let t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}};function kC(e,t){let[a,o]=G.default.useState();G.default.useEffect(()=>{let n=IC(e);o(typeof n>"u"||n===null?typeof t=="function"?t():t:n)},[t,e]);let r=G.default.useCallback(n=>{o(s=>{let i=n;typeof n=="function"&&(i=n(s));try{localStorage.setItem(e,JSON.stringify(i))}catch{}return i})},[e]);return[a,r]}var ra={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},Vp=G.default.createContext(ra);function Gp(e){let{theme:t,...a}=e;return G.default.createElement(Vp.Provider,ja({value:t},a))}function PC(){return G.default.useContext(Vp)}function MC(e){let[t,a]=G.default.useState(()=>{if(typeof window<"u")return window.matchMedia&&window.matchMedia(e).matches});return G.default.useEffect(()=>{if(typeof window<"u"){if(!window.matchMedia)return;let o=window.matchMedia(e),r=n=>{let{matches:s}=n;return a(s)};return o.addListener(r),()=>{o.removeListener(r)}}},[t,e,a]),t}var AC=typeof window>"u";function Vt(e,t,a){return a===void 0&&(a={}),G.default.forwardRef((o,r)=>{let{style:n,...s}=o,i=PC(),l=Object.entries(a).reduce((u,d)=>{let[c,p]=d;return MC(c)?{...u,...typeof p=="function"?p(s,i):p}:u},{});return G.default.createElement(e,{...s,style:{...typeof t=="function"?t(s,i):t,...n,...l},ref:r})})}function RC(){let e=G.default.useRef(!1),t=G.default.useCallback(()=>e.current,[]);return G.default[AC?"useEffect":"useLayoutEffect"](()=>(e.current=!0,()=>{e.current=!1}),[]),t}var TC=Vt("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}});Vt("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:`2px solid ${t.gray}`})});var DC=Vt("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"}));Vt("code",{fontSize:".9em"});Vt("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}));Vt("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>")`,backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});var Hp=Vt("div",{fontFamily:"Menlo, monospace",fontSize:"0.7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Rs=Vt("span",{cursor:"pointer",color:"white"}),EC=Vt("span",(e,t)=>({color:t.danger})),xi=Vt("div",{marginLeft:".1rem",paddingLeft:"1rem",borderLeft:"2px solid rgba(0,0,0,.15)"}),FC=Vt("span",{color:"grey",fontSize:".7rem"}),_p=e=>{let{expanded:t,style:a={},...o}=e;return G.default.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:`rotate(${t?90:0}deg) ${a.transform||""}`,...a}},"\u25B6")},OC=e=>{let{handleEntry:t,label:a,value:o,subEntries:r,subEntryPages:n,type:s,expanded:i,toggle:l,pageSize:u,renderer:d}=e,[c,p]=G.default.useState(void 0),[f,m]=G.default.useState([]),g=()=>{p(o())};return G.default.createElement(Hp,{key:a},n!=null&&n.length?G.default.createElement(G.default.Fragment,null,G.default.createElement(Rs,{onClick:()=>l()},G.default.createElement(_p,{expanded:i})," ",a," ",G.default.createElement(FC,null,String(s).toLowerCase()==="iterable"?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),i?n.length===1?G.default.createElement(xi,null,r.map(h=>t(h))):G.default.createElement(xi,null,n.map((h,x)=>G.default.createElement("div",{key:x},G.default.createElement(Hp,null,G.default.createElement(Rs,{onClick:()=>m(y=>y.includes(x)?y.filter(C=>C!==x):[...y,x])},G.default.createElement(_p,{expanded:i})," [",x*u," ..."," ",x*u+u-1,"]"),f.includes(x)?G.default.createElement(xi,null,h.map(y=>t(y))):null)))):null):s==="function"?G.default.createElement(G.default.Fragment,null,G.default.createElement(na,{renderer:d,label:G.default.createElement("button",{onClick:g},G.default.createElement(Rs,null,a)," \u{1F504}"," "),value:c,defaultExpanded:{}})):G.default.createElement(G.default.Fragment,null,G.default.createElement(Rs,null,a,":")," ",G.default.createElement(EC,null,JSON.stringify(o,Object.getOwnPropertyNames(Object(o))))))};function na(e){let{value:t,defaultExpanded:a,renderer:o=OC,pageSize:r=100,depth:n=0,...s}=e,[i,l]=G.default.useState(a),u=g=>{l(h=>typeof g<"u"?g:!h)},d=[],c=typeof t,p,f=[],m=g=>{let h=d.concat(g.label),x=a===!0?{[g.label]:!0}:a?.[g.label];return{...g,subPath:g,path:h,depth:n+1,defaultExpanded:x}};if(Array.isArray(t)?(c="array",p=t.map((g,h)=>m({label:h,value:g}))):t!==null&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"?(c="Iterable",p=Array.from(t,(g,h)=>m({label:h,value:g}))):typeof t=="function"?c="function":typeof t=="object"&&t!==null&&(c="object",p=Object.entries(t).map(g=>{let[h,x]=g;return m({label:h,value:x})})),p){let g=0;for(;g<p.length;)f.push(p.slice(g,g+r)),g=g+r}return o({handleEntry:g=>G.default.createElement(na,ja({key:g.label,renderer:o},s,g)),type:c,subEntries:p,subEntryPages:f,depth:n,value:t,path:d,expanded:i,toggle:u,pageSize:r,...s})}function Kp(e){return Ma.createElement("svg",ja({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),Ma.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Ma.createElement("g",{id:"og-white",transform:"translate(-28.000000, -21.000000)"},Ma.createElement("g",{id:"Group-2",transform:"translate(28.000000, 31.000000)"},Ma.createElement("g",{id:"Group",transform:"translate(0.000000, 10.000000)"},Ma.createElement("path",{d:"M39.7239712,51.3436237 C36.631224,36.362877 35.9675112,24.8727722 37.9666331,16.5293551 C39.1555965,11.5671678 41.3293088,7.51908462 44.6346064,4.59846305 C48.1241394,1.51504777 52.5360327,0.00201216606 57.493257,0.00201216606 C65.6712013,0.00201216606 74.2682602,3.72732143 83.4557246,10.8044264 C87.2031203,13.6910458 91.0924366,17.170411 95.1316515,21.2444746 C95.4531404,20.8310265 95.8165416,20.4410453 96.2214301,20.0806152 C107.64098,9.91497158 117.255245,3.59892716 125.478408,1.16365068 C130.367899,-0.284364005 134.958526,-0.422317978 139.138936,0.983031021 C143.551631,2.46646844 147.06766,5.53294888 149.548314,9.82810912 C153.642288,16.9166735 154.721918,26.2310983 153.195595,37.7320243 C152.573451,42.4199112 151.50985,47.5263831 150.007094,53.0593153 C150.574045,53.1277086 151.142416,53.2532808 151.705041,53.4395297 C166.193932,58.2358678 176.453582,63.3937462 182.665021,69.2882839 C186.360669,72.7953831 188.773972,76.6998434 189.646365,81.0218204 C190.567176,85.5836746 189.669313,90.1593316 187.191548,94.4512967 C183.105211,101.529614 175.591643,107.11221 164.887587,111.534031 C160.589552,113.309539 155.726579,114.917559 150.293259,116.363748 C150.541176,116.92292 150.733521,117.516759 150.862138,118.139758 C153.954886,133.120505 154.618598,144.61061 152.619477,152.954027 C151.430513,157.916214 149.256801,161.964297 145.951503,164.884919 C142.46197,167.968334 138.050077,169.48137 133.092853,169.48137 C124.914908,169.48137 116.31785,165.756061 107.130385,158.678956 C103.343104,155.761613 99.4108655,152.238839 95.3254337,148.108619 C94.9050753,148.765474 94.3889681,149.376011 93.7785699,149.919385 C82.3590198,160.085028 72.744755,166.401073 64.5215915,168.836349 C59.6321009,170.284364 55.0414736,170.422318 50.8610636,169.016969 C46.4483686,167.533532 42.9323404,164.467051 40.4516862,160.171891 C36.3577116,153.083327 35.2780823,143.768902 36.8044053,132.267976 C37.449038,127.410634 38.56762,122.103898 40.1575891,116.339009 C39.5361041,116.276104 38.9120754,116.144816 38.2949591,115.940529 C23.8060684,111.144191 13.5464184,105.986312 7.33497892,100.091775 C3.63933121,96.5846754 1.22602752,92.6802151 0.353635235,88.3582381 C-0.567176333,83.7963839 0.330686581,79.2207269 2.80845236,74.9287618 C6.89478863,67.8504443 14.4083565,62.2678481 25.1124133,57.8460273 C29.5385143,56.0176154 34.5637208,54.366822 40.1939394,52.8874674 C39.9933393,52.3969171 39.8349374,51.8811235 39.7239712,51.3436237 Z",id:"Path",fill:"#002C4B",fillRule:"nonzero",transform:"translate(95.000000, 85.000000) scale(-1, 1) translate(-95.000000, -85.000000) "}),Ma.createElement("path",{d:"M91.735,110 L91.735,116 L80.6322051,116 C78.8411286,116 77.1868614,115.041975 76.2954489,113.488483 L74.294,110 L91.735,110 Z M116.181,110 L114.180256,113.488483 C113.288844,115.041975 111.634576,116 109.8435,116 L98.735,116 L98.735,110 L116.181,110 Z M91.735,96 L91.735,103 L70.277,103 L66.26,96 L91.735,96 Z M124.215,96 L120.198,103 L98.735,103 L98.735,96 L124.215,96 Z M91.735,82 L91.735,89 L62.244,89 L61.6632438,87.9884826 C60.7789187,86.4473417 60.7789187,84.5526583 61.6632438,83.0115174 L62.243,82 L91.735,82 Z M128.232,82 L128.812461,83.0115174 C129.696786,84.5526583 129.696786,86.4473417 128.812461,87.9884826 L128.231,89 L98.735,89 L98.735,82 L128.232,82 Z M91.735,68 L91.735,75 L66.26,75 L70.277,68 L91.735,68 Z M120.198,68 L124.215,75 L98.735,75 L98.735,68 L120.198,68 Z M91.735,55 L91.735,61 L74.293,61 L76.2954489,57.5115174 C77.1868614,55.958025 78.8411286,55 80.6322051,55 L91.735,55 Z M109.8435,55 C111.634576,55 113.288844,55.958025 114.180256,57.5115174 L116.182,61 L98.735,61 L98.735,55 L109.8435,55 Z",id:"Polygon-2",fill:"#FFD94C"}),Ma.createElement("path",{d:"M54.8601729,98.3577578 C56.1715224,97.6082856 57.8360246,98.0746014 58.5779424,99.3993034 L58.5779424,99.3993034 L59.0525843,100.24352 C62.8563392,106.982993 66.8190116,113.380176 70.9406016,119.435068 C75.8078808,126.585427 81.28184,133.82411 87.3624792,141.151115 C88.3168778,142.30114 88.1849437,144.011176 87.065686,144.997937 L87.065686,144.997937 L86.4542085,145.534625 C66.3465389,163.103314 53.2778188,166.612552 47.2480482,156.062341 C41.3500652,145.742717 43.4844915,126.982888 53.6513274,99.7828526 C53.876818,99.1795821 54.3045861,98.675291 54.8601729,98.3577578 Z M140.534177,119.041504 C141.986131,118.785177 143.375496,119.742138 143.65963,121.194242 L143.65963,121.194242 L143.812815,121.986376 C148.782365,147.995459 145.283348,161 133.315764,161 C121.609745,161 106.708724,149.909007 88.6127018,127.727022 C88.2113495,127.235047 87.9945723,126.617371 88,125.981509 C88.013158,124.480686 89.2357854,123.274651 90.730918,123.287756 L90.730918,123.287756 L91.6846544,123.294531 C99.3056979,123.335994 106.714387,123.071591 113.910723,122.501323 C122.409039,121.82788 131.283523,120.674607 140.534177,119.041504 Z M147.408726,63.8119663 C147.932139,62.4026903 149.508386,61.6634537 150.954581,62.149012 L150.954581,62.149012 L151.742552,62.4154854 C177.583763,71.217922 187.402356,80.8916805 181.198332,91.4367609 C175.129904,101.751366 157.484347,109.260339 128.26166,113.963678 C127.613529,114.067994 126.948643,113.945969 126.382735,113.618843 C125.047025,112.846729 124.602046,111.158214 125.388848,109.847438 L125.388848,109.847438 L125.889328,109.0105 C129.877183,102.31633 133.481358,95.6542621 136.701854,89.0242957 C140.50501,81.1948179 144.073967,72.7907081 147.408726,63.8119663 Z M61.7383398,56.0363218 C62.3864708,55.9320063 63.0513565,56.0540315 63.6172646,56.3811573 C64.9529754,57.153271 65.3979538,58.8417862 64.6111517,60.1525615 L64.6111517,60.1525615 L64.1106718,60.9895001 C60.1228168,67.6836699 56.5186416,74.3457379 53.2981462,80.9757043 C49.49499,88.8051821 45.9260328,97.2092919 42.5912744,106.188034 C42.0678608,107.59731 40.4916142,108.336546 39.045419,107.850988 L39.045419,107.850988 L38.2574475,107.584515 C12.4162372,98.782078 2.59764398,89.1083195 8.80166786,78.5632391 C14.8700957,68.2486335 32.515653,60.7396611 61.7383398,56.0363218 Z M103.545792,24.4653746 C123.653461,6.89668641 136.722181,3.38744778 142.751952,13.9376587 C148.649935,24.2572826 146.515508,43.0171122 136.348673,70.2171474 C136.123182,70.8204179 135.695414,71.324709 135.139827,71.6422422 C133.828478,72.3917144 132.163975,71.9253986 131.422058,70.6006966 L131.422058,70.6006966 L130.947416,69.7564798 C127.143661,63.0170065 123.180988,56.6198239 119.059398,50.564932 C114.192119,43.4145727 108.71816,36.1758903 102.637521,28.8488847 C101.683122,27.6988602 101.815056,25.9888243 102.934314,25.0020629 L102.934314,25.0020629 Z M57.6842361,8 C69.3902551,8 84.2912758,19.0909926 102.387298,41.2729777 C102.788651,41.7649527 103.005428,42.3826288 103,43.0184911 C102.986842,44.5193144 101.764215,45.7253489 100.269082,45.7122445 L100.269082,45.7122445 L99.3153456,45.7054689 C91.6943021,45.6640063 84.2856126,45.9284091 77.0892772,46.4986773 C68.5909612,47.17212 59.7164767,48.325393 50.4658235,49.9584962 C49.0138691,50.2148231 47.6245044,49.2578618 47.3403697,47.805758 L47.3403697,47.805758 L47.1871846,47.0136235 C42.2176347,21.0045412 45.7166519,8 57.6842361,8 Z",id:"Combined-Shape",fill:"#FF4154"}))))))}function Wp(e){let{initialIsOpen:t,table:a,panelProps:o={},toggleButtonProps:r={},containerElement:n="footer"}=e,s=G.default.useRef(null),i=G.default.useRef(null),[l,u]=kC("reactTableDevtoolsOpen",t),d=RC(),{style:c={},...p}=o,{style:f={},onClick:m,...g}=r;return d()?G.default.createElement(n,{ref:s,className:"ReactTableDevtools"},G.default.createElement(Gp,{theme:ra},l?G.default.createElement(BC,ja({ref:i},p,{table:a,isOpen:l,setIsOpen:u,style:{maxHeight:"80vh",width:"100%",...c}})):G.default.createElement("button",ja({type:"button"},g,{"aria-label":"Open React Table Devtools",onClick:h=>{u(!0),m&&m(h)},style:{background:"none",border:0,padding:0,margin:".5rem",display:"inline-flex",fontSize:"1.5em",cursor:"pointer",width:"fit-content",...f}}),G.default.createElement(Kp,{"aria-hidden":!0})))):null}var BC=G.default.forwardRef(function(t,a){let{table:o,isOpen:r=!0,setIsOpen:n,...s}=t;return G.default.createElement(Gp,{theme:ra},G.default.createElement(TC,ja({ref:a,className:"ReactTableDevtoolsPanel"},s),G.default.createElement("style",{dangerouslySetInnerHTML:{__html:`
|
|
1200
|
+
`}},Mt=e=>Nf("light",e),Rt=e=>Nf("dark",e);Er(["click","mousedown","input"]);});var zf={};wn(zf,{default:()=>iC});var lC,iC,Uf=tr(()=>{"use strict";b();Gl();Or();lC=e=>{let[t,a]=es({prefix:"TanstackQueryDevtools"}),o=_n(),r=k(()=>{let n=t.theme_preference||ts;return n!=="system"?n:o()});return v(Kr.Provider,{value:e,get children(){return v(as,{localStore:t,setLocalStore:a,get children(){return v(Wr.Provider,{value:r,get children(){return v($f,{localStore:t,setLocalStore:a})}})}})}})},iC=lC});var Hf={};wn(Hf,{default:()=>dC});var uC,dC,_f=tr(()=>{"use strict";b();Gl();Or();uC=e=>{let[t,a]=es({prefix:"TanstackQueryDevtools"}),o=_n(),r=k(()=>{let n=t.theme_preference||ts;return n!=="system"?n:o()});return v(Kr.Provider,{value:e,get children(){return v(as,{disabled:!0,localStore:t,setLocalStore:a,get children(){return v(Wr.Provider,{value:r,get children(){return v(qf,{get children(){return v(fs,{localStore:t,setLocalStore:a,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},dC=uC});var ob={};wn(ob,{Studio:()=>Hm});module.exports=jm(ob);b();b();b();var Yi=require("clsx");b();var Ns="-",Xm=e=>{let t=Jm(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{let i=s.split(Ns);return i[0]===""&&i.length!==1&&i.shift(),Wi(i,t)||Zm(s)},getConflictingClassGroupIds:(s,i)=>{let l=a[s]||[];return i&&o[s]?[...l,...o[s]]:l}}},Wi=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Wi(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let n=e.join(Ns);return t.validators.find(({validator:s})=>s(n))?.classGroupId},_i=/^\[(.+)\]$/,Zm=e=>{if(_i.test(e)){let t=_i.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Jm=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return eg(Object.entries(e.classGroups),a).forEach(([n,s])=>{qs(s,o,n,t)}),o},qs=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let n=r===""?t:Vi(t,r);n.classGroupId=a;return}if(typeof r=="function"){if(Ym(r)){qs(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([n,s])=>{qs(s,Vi(t,n),a,o)})})},Vi=(e,t)=>{let a=e;return t.split(Ns).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Ym=e=>e.isThemeGetter,eg=(e,t)=>t?e.map(([a,o])=>{let r=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[t+s,i])):n);return[a,r]}):e,tg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(n,s)=>{a.set(n,s),t++,t>e&&(t=0,o=a,a=new Map)};return{get(n){let s=a.get(n);if(s!==void 0)return s;if((s=o.get(n))!==void 0)return r(n,s),s},set(n,s){a.has(n)?a.set(n,s):r(n,s)}}},Qi="!",ag=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],n=t.length,s=i=>{let l=[],u=0,d=0,c;for(let h=0;h<i.length;h++){let x=i[h];if(u===0){if(x===r&&(o||i.slice(h,h+n)===t)){l.push(i.slice(d,h)),d=h+n;continue}if(x==="/"){c=h;continue}}x==="["?u++:x==="]"&&u--}let p=l.length===0?i:i.substring(d),f=p.startsWith(Qi),m=f?p.substring(1):p,g=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:g}};return a?i=>a({className:i,parseClassName:s}):s},og=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},rg=e=>({cache:tg(e.cacheSize),parseClassName:ag(e),...Xm(e)}),ng=/\s+/,sg=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,n=[],s=e.trim().split(ng),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:d,hasImportantModifier:c,baseClassName:p,maybePostfixModifierPosition:f}=a(u),m=!!f,g=o(m?p.substring(0,f):p);if(!g){if(!m){i=u+(i.length>0?" "+i:i);continue}if(g=o(p),!g){i=u+(i.length>0?" "+i:i);continue}m=!1}let h=og(d).join(":"),x=c?h+Qi:h,y=x+g;if(n.includes(y))continue;n.push(y);let C=r(g,m);for(let w=0;w<C.length;++w){let L=C[w];n.push(x+L)}i=u+(i.length>0?" "+i:i)}return i};function lg(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=ji(t))&&(o&&(o+=" "),o+=a);return o}var ji=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=ji(e[o]))&&(a&&(a+=" "),a+=t);return a};function Gi(e,...t){let a,o,r,n=s;function s(l){let u=t.reduce((d,c)=>c(d),e());return a=rg(u),o=a.cache.get,r=a.cache.set,n=i,i(l)}function i(l){let u=o(l);if(u)return u;let d=sg(l,a);return r(l,d),d}return function(){return n(lg.apply(null,arguments))}}var Me=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Xi=/^\[(?:([a-z-]+):)?(.+)\]$/i,ig=/^\d+\/\d+$/,ug=new Set(["px","full","screen"]),dg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ga=e=>Po(e)||ug.has(e)||ig.test(e),Ba=e=>Mo(e,"length",wg),Po=e=>!!e&&!Number.isNaN(Number(e)),$s=e=>Mo(e,"number",Po),ar=e=>!!e&&Number.isInteger(Number(e)),gg=e=>e.endsWith("%")&&Po(e.slice(0,-1)),oe=e=>Xi.test(e),$a=e=>dg.test(e),hg=new Set(["length","size","percentage"]),xg=e=>Mo(e,hg,Zi),yg=e=>Mo(e,"position",Zi),vg=new Set(["image","url"]),Cg=e=>Mo(e,vg,Sg),bg=e=>Mo(e,"",Lg),or=()=>!0,Mo=(e,t,a)=>{let o=Xi.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},wg=e=>cg.test(e)&&!fg.test(e),Zi=()=>!1,Lg=e=>pg.test(e),Sg=e=>mg.test(e);var Ki=()=>{let e=Me("colors"),t=Me("spacing"),a=Me("blur"),o=Me("brightness"),r=Me("borderColor"),n=Me("borderRadius"),s=Me("borderSpacing"),i=Me("borderWidth"),l=Me("contrast"),u=Me("grayscale"),d=Me("hueRotate"),c=Me("invert"),p=Me("gap"),f=Me("gradientColorStops"),m=Me("gradientColorStopPositions"),g=Me("inset"),h=Me("margin"),x=Me("opacity"),y=Me("padding"),C=Me("saturate"),w=Me("scale"),L=Me("sepia"),E=Me("skew"),D=Me("space"),T=Me("translate"),S=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",oe,t],F=()=>[oe,t],re=()=>["",ga,Ba],fe=()=>["auto",Po,oe],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ne=()=>["solid","dashed","dotted","double","none"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>["start","end","center","between","around","evenly","stretch"],Ce=()=>["","0",oe],Oe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Re=()=>[Po,oe];return{cacheSize:500,separator:":",theme:{colors:[or],spacing:[ga,Ba],blur:["none","",$a,oe],brightness:Re(),borderColor:[e],borderRadius:["none","","full",$a,oe],borderSpacing:F(),borderWidth:re(),contrast:Re(),grayscale:Ce(),hueRotate:Re(),invert:Ce(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[gg,Ba],inset:_(),margin:_(),opacity:Re(),padding:F(),saturate:Re(),scale:Re(),sepia:Ce(),skew:Re(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",oe]}],container:["container"],columns:[{columns:[$a]}],"break-after":[{"break-after":Oe()}],"break-before":[{"break-before":Oe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),oe]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ar,oe]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",oe]}],grow:[{grow:Ce()}],shrink:[{shrink:Ce()}],order:[{order:["first","last","none",ar,oe]}],"grid-cols":[{"grid-cols":[or]}],"col-start-end":[{col:["auto",{span:["full",ar,oe]},oe]}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":[or]}],"row-start-end":[{row:["auto",{span:[ar,oe]},oe]}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",oe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",oe]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...xe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...xe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...xe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",oe,t]}],"min-w":[{"min-w":[oe,t,"min","max","fit"]}],"max-w":[{"max-w":[oe,t,"none","full","min","max","fit","prose",{screen:[$a]},$a]}],h:[{h:[oe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[oe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$a,Ba]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$s]}],"font-family":[{font:[or]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",oe]}],"line-clamp":[{"line-clamp":["none",Po,$s]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ga,oe]}],"list-image":[{"list-image":["none",oe]}],"list-style-type":[{list:["none","disc","decimal",oe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ga,Ba]}],"underline-offset":[{"underline-offset":["auto",ga,oe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),yg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Cg]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...ne(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:ne()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...ne()]}],"outline-offset":[{"outline-offset":[ga,oe]}],"outline-w":[{outline:[ga,Ba]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[ga,Ba]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$a,bg]}],"shadow-color":[{shadow:[or]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":me()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",$a,oe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[C]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",oe]}],duration:[{duration:Re()}],ease:[{ease:["linear","in","out","in-out",oe]}],delay:[{delay:Re()}],animate:[{animate:["none","spin","ping","pulse","bounce",oe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ar,oe]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",oe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",oe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",oe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ga,Ba,$s]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Ig=(e,{cacheSize:t,prefix:a,separator:o,experimentalParseClassName:r,extend:n={},override:s={}})=>{rr(e,"cacheSize",t),rr(e,"prefix",a),rr(e,"separator",o),rr(e,"experimentalParseClassName",r);for(let i in s)kg(e[i],s[i]);for(let i in n)Pg(e[i],n[i]);return e},rr=(e,t,a)=>{a!==void 0&&(e[t]=a)},kg=(e,t)=>{if(t)for(let a in t)rr(e,a,t[a])},Pg=(e,t)=>{if(t)for(let a in t){let o=t[a];o!==void 0&&(e[a]=(e[a]||[]).concat(o))}},Ji=(e,...t)=>typeof e=="function"?Gi(Ki,e,...t):Gi(()=>Ig(Ki(),e),...t);var Mg=Ji({prefix:"ps-"});function U(...e){return Mg((0,Yi.clsx)(e))}b();var Dm=require("@tanstack/react-query");b();b();var Sn=require("react");b();var eu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ln=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();b();var nr=require("react");b();var tu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var au=(0,nr.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:s,...i},l)=>(0,nr.createElement)("svg",{ref:l,...tu,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:Ln("lucide",r),...i},[...s.map(([u,d])=>(0,nr.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var ae=(e,t)=>{let a=(0,Sn.forwardRef)(({className:o,...r},n)=>(0,Sn.createElement)(au,{ref:n,iconNode:t,className:Ln(`lucide-${eu(e)}`,o),...r}));return a.displayName=`${e}`,a};b();var qa=ae("ArrowDownWideNarrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);b();var sr=ae("ArrowUpWideNarrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]);b();var Bt=ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);b();var Qt=ae("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);b();var lr=ae("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);b();var $t=ae("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);b();var ir=ae("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);b();var ur=ae("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);b();var dr=ae("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);b();var io=ae("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);b();var cr=ae("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);b();var fr=ae("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);b();var pr=ae("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);b();var Ro=ae("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);b();var mr=ae("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);b();var gr=ae("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);b();var hr=ae("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);b();var xr=ae("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);b();var yr=ae("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);b();var vr=ae("PinOff",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);b();var Cr=ae("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);b();var Na=ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var hn=require("react"),Em=require("sonner");b();var ou=require("@radix-ui/react-slot"),ru=require("class-variance-authority"),nu=ge(require("react"),1);var su=require("react/jsx-runtime"),Rg=(0,ru.cva)("ps-inline-flex ps-items-center ps-justify-center ps-gap-2 ps-whitespace-nowrap ps-rounded-md ps-text-sm ps-font-medium ps-transition-colors focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-pointer-events-none disabled:ps-opacity-50 [&_svg]:ps-pointer-events-none [&_svg]:ps-size-4 [&_svg]:ps-shrink-0",{variants:{variant:{default:"ps-bg-primary ps-text-primary-foreground ps-shadow hover:ps-bg-primary/90",destructive:"ps-bg-destructive ps-text-destructive-foreground ps-shadow-sm hover:ps-bg-destructive/90",outline:"ps-border ps-border-input ps-bg-background ps-shadow-sm hover:ps-bg-accent hover:ps-text-accent-foreground",secondary:"ps-bg-secondary ps-text-secondary-foreground ps-shadow-sm hover:ps-bg-secondary/80",ghost:"hover:ps-bg-accent hover:ps-text-accent-foreground",link:"ps-text-primary ps-underline-offset-4 hover:ps-underline"},size:{default:"ps-h-9 ps-px-4 ps-py-2",xs:"ps-h-6 ps-rounded-md ps-px-2 ps-text-xs",sm:"ps-h-8 ps-rounded-md ps-px-3 ps-text-xs",lg:"ps-h-10 ps-rounded-md ps-px-8",icon:"ps-h-9 ps-w-9"}},defaultVariants:{variant:"default",size:"default"}}),Fe=nu.forwardRef(({className:e,variant:t,size:a,asChild:o=!1,...r},n)=>(0,su.jsx)(o?ou.Slot:"button",{className:U(Rg({variant:t,size:a,className:e})),ref:n,...r}));Fe.displayName="Button";b();var br=ge(require("@radix-ui/react-checkbox"),1);var lu=ge(require("react"),1);var In=require("react/jsx-runtime"),wr=lu.forwardRef(({className:e,...t},a)=>(0,In.jsx)(br.Root,{ref:a,className:U("ps-peer ps-h-4 ps-w-4 ps-shrink-0 ps-rounded-sm ps-border ps-border-primary ps-shadow focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50 data-[state=checked]:ps-bg-primary data-[state=checked]:ps-text-primary-foreground",e),...t,children:(0,In.jsx)(br.Indicator,{className:U("ps-flex ps-items-center ps-justify-center ps-text-current"),children:(0,In.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}));wr.displayName=br.Root.displayName;b();var jt=ge(require("@radix-ui/react-popover"),1),iu=ge(require("react"),1);var zs=require("react/jsx-runtime"),uu=jt.Root,du=jt.Trigger;var Us=iu.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,zs.jsx)(jt.Portal,{children:(0,zs.jsx)(jt.Content,{ref:r,align:t,sideOffset:a,className:U("ps-z-50 ps-w-72 ps-rounded-md ps-border ps-bg-popover ps-p-4 ps-text-popover-foreground ps-shadow-md ps-outline-none data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-popover-content-transform-origin]",e),...o})}));Us.displayName=jt.Content.displayName;b();var xs=require("@tanstack/react-query");b();var gs=require("@tanstack/react-query");b();b();var Ht=ge(require("react"),1),ps=require("@tanstack/react-query");b();Or();var Vf=class{#t;#u;#d;#c;#e=!1;#f;#a;#o;#r;#n;#s;#l;#i;constructor(e){let{client:t,queryFlavor:a,version:o,onlineManager:r,buttonPosition:n,position:s,initialIsOpen:i,errorTypes:l,styleNonce:u,shadowDOMTarget:d}=e;this.#t=N(t),this.#d=a,this.#c=o,this.#u=r,this.#f=u,this.#a=d,this.#o=N(n),this.#r=N(s),this.#n=N(i),this.#s=N(l)}setButtonPosition(e){this.#o[1](e)}setPosition(e){this.#r[1](e)}setInitialIsOpen(e){this.#n[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=tl(()=>{let a=this,[o]=this.#o,[r]=this.#r,[n]=this.#n,[s]=this.#s,[i]=this.#t,l;return this.#l?l=this.#l:(l=el(()=>Promise.resolve().then(()=>(Uf(),zf))),this.#l=l),ll(this.#f,this.#a),v(l,te({get queryFlavor(){return a.#d},get version(){return a.#c},get onlineManager(){return a.#u},get shadowDOMTarget(){return a.#a}},{get client(){return i()},get buttonPosition(){return o()},get position(){return r()},get initialIsOpen(){return n()},get errorTypes(){return s()}}))},e);this.#e=!0,this.#i=t}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#i?.(),this.#e=!1}},Gf=class{#t;#u;#d;#c;#e=!1;#f;#a;#o;#r;#n;#s;#l;#i;#p;constructor(e){let{client:t,queryFlavor:a,version:o,onlineManager:r,buttonPosition:n,position:s,initialIsOpen:i,errorTypes:l,styleNonce:u,shadowDOMTarget:d,onClose:c}=e;this.#t=N(t),this.#d=a,this.#c=o,this.#u=r,this.#f=u,this.#a=d,this.#o=N(n),this.#r=N(s),this.#n=N(i),this.#s=N(l),this.#l=N(c)}setButtonPosition(e){this.#o[1](e)}setPosition(e){this.#r[1](e)}setInitialIsOpen(e){this.#n[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=tl(()=>{let a=this,[o]=this.#o,[r]=this.#r,[n]=this.#n,[s]=this.#s,[i]=this.#t,[l]=this.#l,u;return this.#i?u=this.#i:(u=el(()=>Promise.resolve().then(()=>(_f(),Hf))),this.#i=u),ll(this.#f,this.#a),v(u,te({get queryFlavor(){return a.#d},get version(){return a.#c},get onlineManager(){return a.#u},get shadowDOMTarget(){return a.#a}},{get client(){return i()},get buttonPosition(){return o()},get position(){return r()},get initialIsOpen(){return n()},get errorTypes(){return s()},get onClose(){return l()}}))},e);this.#e=!0,this.#p=t}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#p?.(),this.#e=!1}};var Kf=require("react/jsx-runtime");function Wf(e){let t=(0,ps.useQueryClient)(e.client),a=Ht.useRef(null),{buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}=e,[u]=Ht.useState(new Vf({client:t,queryFlavor:"React Query",version:"5",onlineManager:ps.onlineManager,buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}));return Ht.useEffect(()=>{u.setClient(t)},[t,u]),Ht.useEffect(()=>{o&&u.setButtonPosition(o)},[o,u]),Ht.useEffect(()=>{r&&u.setPosition(r)},[r,u]),Ht.useEffect(()=>{u.setInitialIsOpen(n||!1)},[n,u]),Ht.useEffect(()=>{u.setErrorTypes(s||[])},[s,u]),Ht.useEffect(()=>(a.current&&u.mount(a.current),()=>{u.unmount()}),[u]),(0,Kf.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:a})}b();var La=ge(require("react"),1),ms=require("@tanstack/react-query");var Qf=require("react/jsx-runtime");function jf(e){let t=(0,ms.useQueryClient)(e.client),a=La.useRef(null),{errorTypes:o,styleNonce:r,shadowDOMTarget:n}=e,[s]=La.useState(new Gf({client:t,queryFlavor:"React Query",version:"5",onlineManager:ms.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:o,styleNonce:r,shadowDOMTarget:n,onClose:e.onClose}));return La.useEffect(()=>{s.setClient(t)},[t,s]),La.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),La.useEffect(()=>{s.setErrorTypes(o||[])},[o,s]),La.useEffect(()=>(a.current&&s.mount(a.current),()=>{s.unmount()}),[s]),(0,Qf.jsx)("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:a})}var Xf=process.env.NODE_ENV!=="development"?function(){return null}:Wf,VL=process.env.NODE_ENV!=="development"?function(){return null}:jf;var ep=require("nuqs/adapters/react"),Sa=require("react"),tp=require("sonner");b();var Zf=require("sonner"),Yf=require("react/jsx-runtime"),Jf=({...e})=>(0,Yf.jsx)(Zf.Toaster,{className:"ps-toaster ps-group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e});var Co=require("react/jsx-runtime"),pC=new gs.QueryClient,ap=(0,Sa.createContext)(void 0);function op(e){let{children:t,...a}=e,[o,r]=(0,Sa.useState)(null),[n,s]=(0,Sa.useState)(!1),i=e.onError;i??=d=>tp.toast.error(d.message);let l=(0,Sa.useMemo)(()=>e.onTelemetryEvent??(()=>{}),[e.onTelemetryEvent]),u=()=>s(d=>!d);return(0,Co.jsxs)(gs.QueryClientProvider,{client:pC,children:[(0,Co.jsx)(Xf,{}),(0,Co.jsx)(Jf,{}),(0,Co.jsx)(ep.NuqsAdapter,{children:(0,Co.jsx)(ap.Provider,{value:{...a,activeTable:o,isFullscreen:n,setActiveTable:r,onError:i,emitTelemetryEvent:l,toggleFullscreen:u},children:t})})]})}function Ze(){let e=(0,Sa.useContext)(ap);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}b();b();b();function bo(e,t){return Object.entries(Object.values(t).reduce((a,o)=>{let{isInPrimaryKey:r,name:n}=o;return r&&(a[n]=e[n]??null),a},{}))}function mC(e,t){let a={filter:bo(e,t.columns),table:`${t.schema}.${t.name}`};return JSON.stringify(a)}function rp(e,t){return{...e,__ps_rowid:mC(e,t)}}function hs(e,t){let{row:a,rows:o}=e;return a!==void 0?{...e,row:rp(a,t)}:o!==void 0?{...e,rows:o.map(r=>rp(r,t))}:e}function np(){let{activeTable:e,adapter:t}=Ze(),a=(0,xs.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,xs.useMutation)({mutationKey:["schema",o,"table",r,"insert"],async mutationFn(n){let[s,i]=await t.insert({rows:n,table:e},{});if(s)throw s;return hs(i,e)},onSuccess(n){a.setQueriesData({exact:!1,queryKey:["schema",o,"table",r,"query"]},s=>s==null?s:{...s,rows:[...n.rows,...s.rows]})},retry:!1})}b();var sp=require("@tanstack/react-query");function lp(e){let{pageIndex:t,pageSize:a,sortOrder:o}=e,{activeTable:r,adapter:n}=Ze();return(0,sp.useQuery)({enabled:!!r,gcTime:0,placeholderData(s,i){let[,l,,u]=i?.queryKey||[];if(!(l!==r?.schema||u!==r?.name))return s},async queryFn({signal:s}){let[i,l]=await n.query({pageIndex:t,pageSize:a,sortOrder:o,table:r},{abortSignal:s});if(i)throw i;return hs(l,r)},queryKey:["schema",r?.schema||null,"table",r?.name||null,"query","sortOrder",o.map(s=>`${s.column}:${s.direction}`).join(",")||"natural","pageIndex",t,"pageSize",a],staleTime:1/0})}b();var ys=require("@tanstack/react-query");function ip(){let{activeTable:e,adapter:t,onError:a}=Ze(),o=(0,ys.useQueryClient)(),r=["schema",e?.schema??null,"table",e?.name??null];return(0,ys.useMutation)({mutationFn:async n=>{let[s,i]=await t.update(n.details,n.options);if(s)throw s;return i},mutationKey:[...r,"update"],onError(n,s){let{changes:i,row:l}=s.details;a(n),Kl({getFinderFn(){let u={...l,...i},d=bo(u,e.columns);return c=>d.every(([p,f])=>c[p]===f)},queryClient:o,table:e,updaterFn:function(d){return{...d,...Object.keys(i).reduce((c,p)=>({...c,[p]:l[p]}),{})}}})},onMutate(n){let{details:s}=n;Kl({getFinderFn(){let{row:i}=s,l=bo(i,e.columns);return u=>l.every(([d,c])=>u[d]===c)},queryClient:o,table:e,updaterFn:function(l){return{...l,...s.changes}}})},onSuccess(n,s){Kl({getFinderFn(){let{changes:i,row:l}=s.details,u={...l,...i},d=bo(u,e.columns);return c=>d.every(([p,f])=>c[p]===f)},queryClient:o,table:e,updaterFn:function(l){let{__ps_updated_at__:u}=l,{row:d}=n;return u!=null&&d.__ps_updated_at__<=u?l:{...l,...d}}})},retry:!1})}function Kl(e){let{getFinderFn:t,queryClient:a,table:o,updaterFn:r}=e,n;a.setQueriesData({exact:!1,queryKey:["schema",o.schema,"table",o.name,"query"]},s=>{let{rows:i=[]}=s||{};if(i.length===0)return s;let l=i.findIndex(n??=t());if(l===-1)return s;let u=r(i[l]);return{...s,rows:[...i.slice(0,l),u,...i.slice(l+1)]}})}b();var up=require("@tanstack/react-query");function vs(){return(0,up.useIsMutating)({predicate({options:{mutationKey:e}}){return e?.[4]==="insert"}})}b();var dp=require("react");var Ye={};wn(Ye,{keyMap:()=>Wl,urlKeys:()=>gC,useQueryState:()=>Ko,useQueryStates:()=>en});b();var Cs=require("nuqs");ma(Ye,require("nuqs"));function Wl(e){return e}function gC(e){return e}var SS=Symbol("BRAND_SYMBOL");function Ko(e,t){return(0,Cs.useQueryState)(e,t)}function en(e,t){return(0,Cs.useQueryStates)(e,t)}var hC=25,xC={pageIndex:Ye.parseAsIndex.withDefault(0),pageSize:Ye.parseAsInteger.withDefault(hC)};function bs(){let[{pageIndex:e,pageSize:t},a]=en(xC),o=(0,dp.useCallback)(r=>{a(typeof r=="function"?n=>{let s=r(n);return{pageIndex:s.pageIndex,pageSize:s.pageSize}}:{pageIndex:r.pageIndex,pageSize:r.pageSize})},[a]);return{paginationState:{pageIndex:e,pageSize:t},setPaginationState:o}}b();var Ls=require("react");b();var ws=require("@tanstack/react-query");function cp(){let{activeTable:e,adapter:t}=Ze(),a=(0,ws.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,ws.useMutation)({mutationKey:["schema",o,"table",r,"delete"],async mutationFn(n){let[s,i]=await t.delete({rows:n,table:e},{});if(s)throw s;return i},async onSuccess(){await a.invalidateQueries({exact:!1,queryKey:["schema",o,"table",r,"query"]})},retry:!1})}function fp(e){let{activeTable:t,onError:a}=Ze(),{paginationState:o}=bs(),[r,n]=(0,Ls.useState)({}),s=Object.keys(r).length!==0,{mutate:i}=cp();(0,Ls.useEffect)(()=>n({}),[t,o.pageIndex]);function l(){let u=e?.rows.filter(d=>r[d.__ps_rowid]);i(u??[],{onSuccess(){n({})},onError:a})}return{deleteSelection:l,setRowSelectionState:n,rowSelectionState:r,isSelecting:s}}b();var Ss=require("react");function pp(){let[e,t]=Ko("sort",{defaultValue:""}),a=s=>{if(!s)return[];try{return s.split(",").map(i=>{let[l,u]=i.split(":");return!l||!u||!["asc","desc"].includes(u)?null:{column:l,direction:u}}).filter(Boolean)}catch(i){return console.error("Failed to parse sorting parameter:",i),[]}},[o,r]=(0,Ss.useState)(()=>a(e));return(0,Ss.useEffect)(()=>{let s=a(e);r(s)},[e]),{sortingState:o,setSortingState:s=>{let i=typeof s=="function"?s(o):s;r(i);let l=i.length>0?i.map(u=>`${u.column}:${u.direction}`).join(","):null;t(l)}}}b();var Ep=require("remeda");b();var yp=require("react");b();b();var Ia=ge(require("react"),1);var oa=require("react/jsx-runtime"),Ql=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{className:"ps-relative ps-w-full ps-overflow-auto ps-flex ps-items-start ps-h-full",children:(0,oa.jsx)("table",{ref:a,className:U("ps-w-full ps-caption-bottom ps-text-sm",e),...t})}));Ql.displayName="Table";var jl=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("thead",{ref:a,className:U(e),...t}));jl.displayName="TableHeader";var Xl=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("tbody",{ref:a,className:U("[&_tr:last-child]:ps-border-0",e),...t}));Xl.displayName="TableBody";var yC=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("tfoot",{ref:a,className:U("ps-border-t ps-bg-muted/50 ps-font-medium [&>tr]:last:ps-border-b-0",e),...t}));yC.displayName="TableFooter";var wo=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("tr",{ref:a,className:U("ps-border-b ps-transition-colors hover:ps-bg-muted/50 data-[state=selected]:ps-bg-muted",e),...t}));wo.displayName="TableRow";var Zl=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("th",{ref:a,className:U("ps-h-10 ps-px-2 ps-text-left ps-align-middle ps-font-medium ps-text-muted-foreground",e),...t}));Zl.displayName="TableHead";var tn=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("td",{ref:a,className:U("ps-align-middle",e),...t}));tn.displayName="TableCell";var vC=Ia.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("caption",{ref:a,className:U("ps-mt-4 ps-text-sm ps-text-muted-foreground",e),...t}));vC.displayName="TableCaption";b();var hp=require("react");b();var ue=ge(require("@radix-ui/react-context-menu"),1);var ka=ge(require("react"),1);var Ge=require("react/jsx-runtime"),mp=ue.Root,gp=ue.Trigger;var CC=ka.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ge.jsxs)(ue.SubTrigger,{ref:r,className:U("ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[state=open]:ps-bg-accent data-[state=open]:ps-text-accent-foreground",t&&"ps-pl-8",e),...o,children:[a,(0,Ge.jsx)($t,{className:"ps-ml-auto ps-h-4 ps-w-4"})]}));CC.displayName=ue.SubTrigger.displayName;var bC=ka.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.SubContent,{ref:a,className:U("ps-z-50 ps-min-w-[8rem] ps-overflow-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-lg data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-context-menu-content-transform-origin]",e),...t}));bC.displayName=ue.SubContent.displayName;var Jl=ka.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.Portal,{children:(0,Ge.jsx)(ue.Content,{ref:a,className:U("ps-z-50 ps-max-h-[--radix-context-menu-content-available-height] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-md data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-context-menu-content-transform-origin]",e),...t})}));Jl.displayName=ue.Content.displayName;var Yl=ka.forwardRef(({className:e,inset:t,...a},o)=>(0,Ge.jsx)(ue.Item,{ref:o,className:U("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",t&&"ps-pl-8",e),...a}));Yl.displayName=ue.Item.displayName;var wC=ka.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ge.jsxs)(ue.CheckboxItem,{ref:r,className:U("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),checked:a,...o,children:[(0,Ge.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Ge.jsx)(ue.ItemIndicator,{children:(0,Ge.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}),t]}));wC.displayName=ue.CheckboxItem.displayName;var LC=ka.forwardRef(({className:e,children:t,...a},o)=>(0,Ge.jsxs)(ue.RadioItem,{ref:o,className:U("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...a,children:[(0,Ge.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Ge.jsx)(ue.ItemIndicator,{children:(0,Ge.jsx)(io,{className:"ps-h-4 ps-w-4 ps-fill-current"})})}),t]}));LC.displayName=ue.RadioItem.displayName;var SC=ka.forwardRef(({className:e,inset:t,...a},o)=>(0,Ge.jsx)(ue.Label,{ref:o,className:U("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold ps-text-foreground",t&&"ps-pl-8",e),...a}));SC.displayName=ue.Label.displayName;var IC=ka.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.Separator,{ref:a,className:U("ps--mx-1 ps-my-1 ps-h-px ps-bg-border",e),...t}));IC.displayName=ue.Separator.displayName;var kC=({className:e,...t})=>(0,Ge.jsx)("span",{className:U("ps-ml-auto ps-text-xs ps-tracking-widest ps-text-muted-foreground",e),...t});kC.displayName="ContextMenuShortcut";var Lo=require("react/jsx-runtime");function xp(e){let{children:t}=e;return(0,Lo.jsxs)(mp,{children:[(0,Lo.jsx)(gp,{className:"ps-block ps-w-full ps-px-[var(--studio-cell-spacing)] ps-leading-[var(--studio-cell-height)] ps-h-[var(--studio-cell-height)] ps-text-xs ps-font-mono ps-whitespace-nowrap ps-overflow-hidden ps-text-ellipsis",children:t}),(0,Lo.jsx)(Jl,{children:(0,Lo.jsxs)(Yl,{onClick:()=>{let a=ei(t);navigator.clipboard.writeText(a).catch(o=>{console.error("Failed to copy to clipboard:",o)})},className:"ps-flex ps-items-center ps-gap-2",children:[(0,Lo.jsx)(cr,{size:12}),"Copy"]})})]})}function ei(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(e==null)return"";if((0,hp.isValidElement)(e)){let t=e.props;return e.type&&typeof e.type=="function"&&e.type.name==="RevealText"?t.text||"":e.type&&typeof e.type=="function"&&e.type.name==="NullValue"?"NULL":t.children?ei(t.children):""}return Array.isArray(e)?e.map(ei).join(""):""}var ti=require("react/jsx-runtime");function _e(e){let{children:t,className:a,ref:o,style:r,...n}=e;return(0,ti.jsx)(tn,{...n,className:U("ps-p-0 ps-border-r ps-border-b ps-border-table-border ps-bg-table-head","ps-cursor-pointer",a),ref:o,style:r,children:(0,ti.jsx)(xp,{children:t})})}var ai=require("react/jsx-runtime"),oi=(0,yp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,ai.jsx)(_e,{...r,...a,ref:t,children:(0,ai.jsx)("div",{"data-cell-type":"boolean",children:String(!!o)})})});oi.displayName="BooleanCell";b();var vp=require("react");var Cp=require("react/jsx-runtime"),ri=(0,vp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Cp.jsx)(_e,{...r,...a,ref:t,children:String(o)})});ri.displayName="DateCell";b();var bp=require("react");var wp=require("react/jsx-runtime"),an=(0,bp.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,wp.jsx)(_e,{...o,...a,ref:t})});an.displayName="EmptyCell";b();var Lp=require("react");var Sp=require("react/jsx-runtime"),ni=(0,Lp.forwardRef)((e,t)=>{let{containerProps:a,value:o,options:r,...n}=e;return(0,Sp.jsx)(_e,{...n,...a,ref:t,children:String(o)})});ni.displayName="EnumCell";b();var Ip=require("react");var kp=require("react/jsx-runtime"),Is=(0,Ip.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,kp.jsx)(_e,{...r,...a,ref:t,children:JSON.stringify(o,null,2)})});Is.displayName="JSONCell";b();var Pp=require("react");var si=require("react/jsx-runtime"),li=(0,Pp.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,si.jsx)(_e,{...o,...a,ref:t,children:(0,si.jsx)("code",{className:"ps-text-gray-500",children:"NULL"})})});li.displayName="NullCell";b();var Mp=require("react");var ii=require("react/jsx-runtime"),ui=(0,Mp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,ii.jsx)(_e,{...r,...a,ref:t,children:(0,ii.jsx)("div",{"data-cell-type":"numeric",children:o===null?"NULL":String(o)})})});ui.displayName="NumericCell";b();var Rp=require("react");var Ap=require("react/jsx-runtime"),ks=(0,Rp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Ap.jsx)(_e,{...r,...a,ref:t,children:String(o)})});ks.displayName="RawCell";b();var Tp=require("react");var Dp=require("react/jsx-runtime"),di=(0,Tp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Dp.jsx)(_e,{...r,...a,ref:t,children:String(o)})});di.displayName="TimeCell";var At=require("react/jsx-runtime");function Ps({cell:e,column:t,props:a}){let o=e.getValue();if(o===void 0)return(0,At.jsx)(an,{});if(o===null)return(0,At.jsx)(li,{});let{group:r,options:n,isArray:s}=t.datatype;if(r==="json"||s)return(0,At.jsx)(Is,{containerProps:a,value:o});if(r==="string")return(0,At.jsx)(ks,{containerProps:a,value:o});if(r==="enum")return(0,At.jsx)(ni,{containerProps:a,value:o,options:n});if(r==="boolean")return(0,At.jsx)(oi,{containerProps:a,value:o});if(r==="datetime")return(0,At.jsx)(ri,{containerProps:a,value:o});if(r==="time")return(0,At.jsx)(di,{containerProps:a,value:o});if(r==="numeric")return(0,At.jsx)(ui,{containerProps:a,value:o});if(r==="raw")return(0,Ep.isObjectType)(o)?(0,At.jsx)(Is,{containerProps:a,value:o}):(0,At.jsx)(ks,{containerProps:a,value:o});throw new Error(`Datatype group "${r}" was not handled in '/cell/get-cell.tsx'`)}b();var Fp=require("react");var ci=require("react/jsx-runtime"),fi=(0,Fp.forwardRef)((e,t)=>{let{row:a,readonly:o,...r}=e;return(0,ci.jsx)(_e,{ref:t,...r,children:(0,ci.jsx)(wr,{checked:a.getIsSelected(),disabled:!a.getCanSelect()||o,onCheckedChange:a.getToggleSelectedHandler()})})});fi.displayName="SelectRowCell";b();b();var Pa=ge(require("@radix-ui/react-popover"),1),nt=ge(require("react"),1);var Wo=require("react/jsx-runtime"),Op=nt.createContext(null),pi=({children:e,...t})=>{let[a,o]=nt.useState(!1);return(0,Wo.jsx)(Op.Provider,{value:{open:a,setOpen:o},children:(0,Wo.jsx)(Pa.Root,{open:a,onOpenChange:o,...t,children:e})})};pi.displayName="PopoverCell";var mi=nt.forwardRef(({children:e,onDoubleClick:t,className:a,...o},r)=>{let n=nt.useRef(null);return(0,Wo.jsx)(Pa.Trigger,{ref:s=>{typeof r=="function"?r(s):r&&(r.current=s),n.current=s},className:U("w-full h-full cursor-pointer",a),...o,children:e})});mi.displayName="PopoverCellTrigger";var gi=nt.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Wo.jsx)(Pa.Portal,{children:(0,Wo.jsx)(Pa.Content,{ref:r,align:t,sideOffset:a,className:U("ps-flex ps-flex-col ps-gap-2 ps-z-50 ps-rounded-md ps-border ps-bg-popover ps-text-popover-foreground ps-shadow-md ps-outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),onEscapeKeyDown:n=>n.preventDefault(),...o})}));gi.displayName=Pa.Content.displayName;function pt(e){let t=nt.useContext(Op),a=nt.useCallback(()=>{e.readonly&&t?.setOpen(!1),e.onSave&&e.onSave(),t&&t.setOpen(!1)},[e.onSave,t]),o=nt.useCallback(()=>{e.readonly&&t?.setOpen(!1),e.onCancel&&e.onCancel(),t&&t.setOpen(!1)},[e.onCancel,t]);return nt.useEffect(()=>{let r=n=>{(n.key==="Enter"||n.key==="Return")&&!n.shiftKey?a():n.key==="Escape"&&o()};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[a,o]),{handleSave:a,handleCancel:o}}var on=require("react/jsx-runtime");function Ms(e){let{cellComponent:t,inputComponent:a}=e;return(0,on.jsxs)(pi,{children:[(0,on.jsx)(mi,{asChild:!0,children:t}),(0,on.jsx)(gi,{align:"start",alignOffset:-1,className:"ps-min-w-cell ps-rounded-none ps-bg-muted ps-p-0 ps-z-30 ps-gap-0 ps-border-blue-500 ps-min-w-[calc(var(--radix-popover-trigger-width) + 1px)]",sideOffset:-40,children:a})]})}b();var dt=require("@dnd-kit/core"),ra=require("@dnd-kit/sortable"),_p=require("@dnd-kit/utilities");var xi=require("react"),Rs=require("uuid");b();var Bp=require("class-variance-authority");var qp=require("react/jsx-runtime"),hi=(0,Bp.cva)("ps-inline-flex ps-items-center ps-rounded-md ps-border ps-px-2.5 ps-py-0.5 ps-text-xs ps-font-semibold ps-transition-colors focus:ps-outline-none focus:ps-ring-2 focus:ps-ring-ring focus:ps-ring-offset-2",{variants:{variant:{default:"ps-border-transparent ps-bg-primary ps-text-primary-foreground ps-shadow hover:ps-bg-primary/80",secondary:"ps-border-transparent ps-bg-secondary ps-text-secondary-foreground hover:ps-bg-secondary/80",destructive:"ps-border-transparent ps-bg-destructive ps-text-destructive-foreground ps-shadow hover:ps-bg-destructive/80",outline:"ps-text-foreground"}},defaultVariants:{variant:"default"}});function $p({className:e,variant:t,...a}){return(0,qp.jsx)("div",{className:U(hi({variant:t}),e),...a})}b();var Np=ge(require("react"),1);var zp=require("react/jsx-runtime"),_t=Np.forwardRef(({className:e,type:t,...a},o)=>(0,zp.jsx)("input",{type:t,className:U("ps-flex ps-h-9 ps-w-full ps-rounded-md ps-border ps-border-input ps-bg-transparent ps-px-3 ps-py-1 ps-shadow-sm ps-transition-colors file:ps-border-0 file:ps-bg-transparent file:ps-text-sm file:ps-font-medium file:ps-text-foreground placeholder:ps-text-muted-foreground focus-visible:ps-outline-none focus-visible:ps-ring-1 focus-visible:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50",e),ref:o,...a}));_t.displayName="Input";b();var de=ge(require("@radix-ui/react-select"),1);var ja=ge(require("react"),1);var Ne=require("react/jsx-runtime"),rn=de.Root;var nn=de.Value,Qo=ja.forwardRef(({className:e,children:t,...a},o)=>(0,Ne.jsxs)(de.Trigger,{ref:o,className:U("ps-flex ps-h-9 ps-w-full ps-items-center ps-justify-between ps-whitespace-nowrap ps-rounded-md ps-border ps-border-input ps-bg-transparent ps-px-3 ps-py-2 ps-text-sm ps-shadow-sm ps-ring-offset-background data-[placeholder]:ps-text-muted-foreground focus:ps-outline-none focus:ps-ring-1 focus:ps-ring-ring disabled:ps-cursor-not-allowed disabled:ps-opacity-50 [&>span]:ps-line-clamp-1",e),...a,children:[t,(0,Ne.jsx)(de.Icon,{asChild:!0,children:(0,Ne.jsx)(Qt,{className:"ps-h-4 ps-w-4 ps-opacity-50"})})]}));Qo.displayName=de.Trigger.displayName;var Up=ja.forwardRef(({className:e,...t},a)=>(0,Ne.jsx)(de.ScrollUpButton,{ref:a,className:U("ps-flex ps-cursor-default ps-items-center ps-justify-center ps-py-1",e),...t,children:(0,Ne.jsx)(ir,{className:"ps-h-4 ps-w-4"})}));Up.displayName=de.ScrollUpButton.displayName;var Hp=ja.forwardRef(({className:e,...t},a)=>(0,Ne.jsx)(de.ScrollDownButton,{ref:a,className:U("ps-flex ps-cursor-default ps-items-center ps-justify-center ps-py-1",e),...t,children:(0,Ne.jsx)(Qt,{className:"ps-h-4 ps-w-4"})}));Hp.displayName=de.ScrollDownButton.displayName;var jo=ja.forwardRef(({className:e,children:t,position:a="popper",...o},r)=>(0,Ne.jsx)(de.Portal,{children:(0,Ne.jsxs)(de.Content,{ref:r,className:U("ps-relative ps-z-50 ps-max-h-[--radix-select-content-available-height] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-text-popover-foreground ps-shadow-md data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-select-content-transform-origin]",a==="popper"&&"data-[side=bottom]:ps-translate-y-1 data-[side=left]:ps--translate-x-1 data-[side=right]:ps-translate-x-1 data-[side=top]:ps--translate-y-1",e),position:a,...o,children:[(0,Ne.jsx)(Up,{}),(0,Ne.jsx)(de.Viewport,{className:U("ps-p-1",a==="popper"&&"ps-h-[var(--radix-select-trigger-height)] ps-w-full ps-min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,Ne.jsx)(Hp,{})]})}));jo.displayName=de.Content.displayName;var PC=ja.forwardRef(({className:e,...t},a)=>(0,Ne.jsx)(de.Label,{ref:a,className:U("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",e),...t}));PC.displayName=de.Label.displayName;var $e=ja.forwardRef(({className:e,children:t,...a},o)=>(0,Ne.jsxs)(de.Item,{ref:o,className:U("ps-relative ps-flex ps-w-full ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-2 ps-pr-8 ps-text-sm ps-outline-none focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...a,children:[(0,Ne.jsx)("span",{className:"ps-absolute ps-right-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Ne.jsx)(de.ItemIndicator,{children:(0,Ne.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}),(0,Ne.jsx)(de.ItemText,{children:t})]}));$e.displayName=de.Item.displayName;var MC=ja.forwardRef(({className:e,...t},a)=>(0,Ne.jsx)(de.Separator,{ref:a,className:U("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));MC.displayName=de.Separator.displayName;var V=require("react/jsx-runtime"),Vp=["id","name","email","created_at","updated_at","status","role","department"],RC=({filter:e,onUpdate:t,onDelete:a,parentId:o,isLast:r})=>{let{attributes:n,listeners:s,setNodeRef:i,transform:l,transition:u,isDragging:d}=(0,ra.useSortable)({id:e.id,data:{type:e.kind,parentId:o}}),c={transform:_p.CSS.Transform.toString(l),transition:u,opacity:d?.5:1};return(0,V.jsx)("div",{ref:i,style:c,className:"ps-flex ps-flex-row ps-justify-between ps-gap-2",children:e.kind==="ColumnFilter"?(0,V.jsx)(Gp,{filter:e,onUpdate:t,onDelete:a,dragHandleProps:{...n,...s},isLast:r}):(0,V.jsx)(yi,{group:e,onUpdate:t,onDelete:a,dragHandleProps:{...n,...s},isLast:r})})},Gp=({filter:e,onUpdate:t,onDelete:a,dragHandleProps:o,isLast:r})=>{let n=u=>{t({...e,column:u})},s=u=>{t({...e,operator:u})},i=u=>{t({...e,value:u.target.value})},l=u=>{t({...e,after:u})};return(0,V.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-gap-2 ps-w-full",children:[(0,V.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,V.jsx)("div",{...o,className:"ps-cursor-grab",children:(0,V.jsx)(Ro,{className:"ps-text-muted-foreground",size:16})}),(0,V.jsxs)(rn,{value:e.column,onValueChange:n,children:[(0,V.jsx)(Qo,{className:"ps-w-28 ps-text-xs",children:(0,V.jsx)(nn,{placeholder:"Select column"})}),(0,V.jsx)(jo,{children:Vp.map(u=>(0,V.jsx)($e,{value:u,children:u},u))})]}),(0,V.jsxs)(rn,{value:e.operator,onValueChange:u=>s(u),children:[(0,V.jsx)(Qo,{className:"ps-w-20 ps-text-xs",children:(0,V.jsx)(nn,{placeholder:"Operator"})}),(0,V.jsxs)(jo,{children:[(0,V.jsx)($e,{value:"=",children:"="}),(0,V.jsx)($e,{value:"!=",children:"!="}),(0,V.jsx)($e,{value:">",children:">"}),(0,V.jsx)($e,{value:">=",children:">="}),(0,V.jsx)($e,{value:"<",children:"<"}),(0,V.jsx)($e,{value:"<=",children:"<="}),(0,V.jsx)($e,{value:"in",children:"in"}),(0,V.jsx)($e,{value:"not in",children:"not in"}),(0,V.jsx)($e,{value:"is",children:"is"}),(0,V.jsx)($e,{value:"is not",children:"is not"}),(0,V.jsx)($e,{value:"like",children:"like"}),(0,V.jsx)($e,{value:"not like",children:"not like"}),(0,V.jsx)($e,{value:"ilike",children:"ilike"}),(0,V.jsx)($e,{value:"not ilike",children:"not ilike"}),(0,V.jsx)($e,{value:"match",children:"match"})]})]}),(0,V.jsx)(_t,{value:e.value||"",onChange:i,placeholder:"value",className:"ps-w-24 ps-text-xs"}),(0,V.jsxs)(rn,{value:e.after,onValueChange:u=>l(u),children:[(0,V.jsx)(Qo,{className:"ps-w-20 ps-text-xs",children:(0,V.jsx)(nn,{})}),(0,V.jsxs)(jo,{children:[(0,V.jsx)($e,{value:"and",children:"AND"}),(0,V.jsx)($e,{value:"or",children:"OR"})]})]})]}),(0,V.jsx)(Fe,{variant:"ghost",size:"xs",onClick:a,children:(0,V.jsx)(Na,{size:14})})]})},yi=({group:e,onUpdate:t,onDelete:a,dragHandleProps:o,isRoot:r=!1,isLast:n=!1})=>{let[s,i]=(0,xi.useState)(!0),[l,u]=(0,xi.useState)(null),d=e.filters||[],c=(0,dt.useSensors)((0,dt.useSensor)(dt.PointerSensor,{activationConstraint:{distance:8}}),(0,dt.useSensor)(dt.KeyboardSensor,{coordinateGetter:ra.sortableKeyboardCoordinates})),p=()=>{let C={kind:"ColumnFilter",column:Vp[0],operator:"=",value:"",id:(0,Rs.v4)(),after:"and"};t({...e,filters:[...d,C]})},f=()=>{let C={kind:"ColumnFilters",filters:[],id:(0,Rs.v4)(),after:"and"};t({...e,filters:[...d,C]})},m=(C,w)=>{let L=[...d];L[C]=w,t({...e,filters:L})},g=C=>{let w=[...d];w.splice(C,1),t({...e,filters:w})},h=C=>{u(C.active.id)},x=C=>{let{active:w,over:L}=C;if(L&&w.id!==L.id){let E=d.findIndex(S=>S.id===w.id),D=d.findIndex(S=>S.id===L.id),T=(0,ra.arrayMove)(d,E,D);t({...e,filters:T})}u(null)},y=()=>s?(0,V.jsxs)("div",{className:U("ps-flex ps-flex-col ps-gap-2",r?"":"ps-ml-6"),children:[(0,V.jsxs)(dt.DndContext,{sensors:c,collisionDetection:dt.closestCenter,onDragStart:h,onDragEnd:x,children:[(0,V.jsx)(ra.SortableContext,{items:d.map(C=>C.id),strategy:ra.verticalListSortingStrategy,children:d.map((C,w)=>(0,V.jsx)(RC,{filter:C,onUpdate:L=>m(w,L),onDelete:()=>g(w),parentId:e.id,isLast:w===d.length-1},C.id))}),(0,V.jsx)(dt.DragOverlay,{children:(0,V.jsx)("div",{children:l?(0,V.jsx)("div",{className:"ps-opacity-80",children:(()=>{let C=d.find(w=>w.id===l);return C?C.kind==="ColumnFilter"?(0,V.jsx)(Gp,{filter:C,onUpdate:()=>{},onDelete:()=>{},isLast:!0}):(0,V.jsx)(yi,{group:C,onUpdate:()=>{},onDelete:()=>{},isLast:!0}):null})()}):null})})]}),(0,V.jsxs)("div",{className:"ps-flex ps-gap-2 ps-w-full ps-justify-between",children:[(0,V.jsx)(Fe,{variant:"outline",size:"sm",onClick:p,className:"ps-flex ps-items-center ps-gap-1",children:"Add Condition"}),(0,V.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,V.jsx)(Fe,{variant:"outline",size:"sm",onClick:f,className:"ps-flex ps-items-center ps-gap-1",children:"Add Group"}),!r&&(0,V.jsxs)(rn,{value:e.after,onValueChange:C=>t({...e,after:C}),children:[(0,V.jsx)(Qo,{className:"ps-h-8 ps-rounded-md ps-px-3 ps-text-xs",children:(0,V.jsx)(nn,{})}),(0,V.jsxs)(jo,{children:[(0,V.jsx)($e,{value:"and",children:"AND"}),(0,V.jsx)($e,{value:"or",children:"OR"})]})]})]})]})]}):null;return(0,V.jsxs)("div",{"data-filter-group-header":!0,className:"ps-flex ps-flex-col ps-gap-2 ps-w-full",children:[(0,V.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full",children:[(0,V.jsxs)("div",{className:"ps-flex ps-items-center ps-w-fullps-gap-2",children:[!r&&(0,V.jsx)("div",{...o,className:"ps-cursor-grab",children:(0,V.jsx)(Ro,{className:"ps-text-gray-400",size:16})}),(0,V.jsx)(Fe,{variant:"ghost",size:"sm",className:"ps-p-0 ps-h-6 ps-w-6",onClick:()=>i(!s),children:s?(0,V.jsx)(Qt,{size:16}):(0,V.jsx)($t,{size:16})}),(0,V.jsxs)($p,{variant:"outline",className:"ps-ml-2",children:[d.length," ",d.length===1?"condition":"conditions"]})]}),!r&&(0,V.jsx)(Fe,{variant:"ghost",size:"xs",onClick:a,children:(0,V.jsx)(Na,{size:14})})]}),(0,V.jsx)("div",{className:U(r?"":"ps-border-l-4 ps-border-l-gray-500"),children:y()})]})};function Kp({filter:e,setFilter:t}){return(0,V.jsx)(yi,{group:{...e,id:e.id||(0,Rs.v4)()},onUpdate:t,onDelete:()=>{},isRoot:!0})}b();var Ja=require("@dnd-kit/core"),Ya=require("@dnd-kit/sortable"),sm=require("@dnd-kit/utilities"),Ds=require("@tanstack/react-table");b();var Ma=ge(require("react"),1),G=ge(require("react"),1);function Xa(){return Xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)({}).hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},Xa.apply(null,arguments)}var AC=e=>{try{let t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}};function TC(e,t){let[a,o]=G.default.useState();G.default.useEffect(()=>{let n=AC(e);o(typeof n>"u"||n===null?typeof t=="function"?t():t:n)},[t,e]);let r=G.default.useCallback(n=>{o(s=>{let i=n;typeof n=="function"&&(i=n(s));try{localStorage.setItem(e,JSON.stringify(i))}catch{}return i})},[e]);return[a,r]}var na={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},jp=G.default.createContext(na);function Xp(e){let{theme:t,...a}=e;return G.default.createElement(jp.Provider,Xa({value:t},a))}function DC(){return G.default.useContext(jp)}function EC(e){let[t,a]=G.default.useState(()=>{if(typeof window<"u")return window.matchMedia&&window.matchMedia(e).matches});return G.default.useEffect(()=>{if(typeof window<"u"){if(!window.matchMedia)return;let o=window.matchMedia(e),r=n=>{let{matches:s}=n;return a(s)};return o.addListener(r),()=>{o.removeListener(r)}}},[t,e,a]),t}var FC=typeof window>"u";function Vt(e,t,a){return a===void 0&&(a={}),G.default.forwardRef((o,r)=>{let{style:n,...s}=o,i=DC(),l=Object.entries(a).reduce((u,d)=>{let[c,p]=d;return EC(c)?{...u,...typeof p=="function"?p(s,i):p}:u},{});return G.default.createElement(e,{...s,style:{...typeof t=="function"?t(s,i):t,...n,...l},ref:r})})}function OC(){let e=G.default.useRef(!1),t=G.default.useCallback(()=>e.current,[]);return G.default[FC?"useEffect":"useLayoutEffect"](()=>(e.current=!0,()=>{e.current=!1}),[]),t}var BC=Vt("div",(e,t)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:t.background,color:t.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}});Vt("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:`2px solid ${t.gray}`})});var $C=Vt("button",(e,t)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:t.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:e.disabled?".5":void 0,cursor:"pointer"}));Vt("code",{fontSize:".9em"});Vt("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}));Vt("select",(e,t)=>({display:"inline-block",fontSize:".9em",fontFamily:"sans-serif",fontWeight:"normal",lineHeight:"1.3",padding:".3em 1.5em .3em .5em",height:"auto",border:0,borderRadius:".2em",appearance:"none",WebkitAppearance:"none",backgroundColor:t.inputBackgroundColor,backgroundImage:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>")`,backgroundRepeat:"no-repeat",backgroundPosition:"right .55em center",backgroundSize:".65em auto, 100%",color:t.inputTextColor}),{"(max-width: 500px)":{display:"none"}});var Wp=Vt("div",{fontFamily:"Menlo, monospace",fontSize:"0.7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),As=Vt("span",{cursor:"pointer",color:"white"}),qC=Vt("span",(e,t)=>({color:t.danger})),vi=Vt("div",{marginLeft:".1rem",paddingLeft:"1rem",borderLeft:"2px solid rgba(0,0,0,.15)"}),NC=Vt("span",{color:"grey",fontSize:".7rem"}),Qp=e=>{let{expanded:t,style:a={},...o}=e;return G.default.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:`rotate(${t?90:0}deg) ${a.transform||""}`,...a}},"\u25B6")},zC=e=>{let{handleEntry:t,label:a,value:o,subEntries:r,subEntryPages:n,type:s,expanded:i,toggle:l,pageSize:u,renderer:d}=e,[c,p]=G.default.useState(void 0),[f,m]=G.default.useState([]),g=()=>{p(o())};return G.default.createElement(Wp,{key:a},n!=null&&n.length?G.default.createElement(G.default.Fragment,null,G.default.createElement(As,{onClick:()=>l()},G.default.createElement(Qp,{expanded:i})," ",a," ",G.default.createElement(NC,null,String(s).toLowerCase()==="iterable"?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),i?n.length===1?G.default.createElement(vi,null,r.map(h=>t(h))):G.default.createElement(vi,null,n.map((h,x)=>G.default.createElement("div",{key:x},G.default.createElement(Wp,null,G.default.createElement(As,{onClick:()=>m(y=>y.includes(x)?y.filter(C=>C!==x):[...y,x])},G.default.createElement(Qp,{expanded:i})," [",x*u," ..."," ",x*u+u-1,"]"),f.includes(x)?G.default.createElement(vi,null,h.map(y=>t(y))):null)))):null):s==="function"?G.default.createElement(G.default.Fragment,null,G.default.createElement(sa,{renderer:d,label:G.default.createElement("button",{onClick:g},G.default.createElement(As,null,a)," \u{1F504}"," "),value:c,defaultExpanded:{}})):G.default.createElement(G.default.Fragment,null,G.default.createElement(As,null,a,":")," ",G.default.createElement(qC,null,JSON.stringify(o,Object.getOwnPropertyNames(Object(o))))))};function sa(e){let{value:t,defaultExpanded:a,renderer:o=zC,pageSize:r=100,depth:n=0,...s}=e,[i,l]=G.default.useState(a),u=g=>{l(h=>typeof g<"u"?g:!h)},d=[],c=typeof t,p,f=[],m=g=>{let h=d.concat(g.label),x=a===!0?{[g.label]:!0}:a?.[g.label];return{...g,subPath:g,path:h,depth:n+1,defaultExpanded:x}};if(Array.isArray(t)?(c="array",p=t.map((g,h)=>m({label:h,value:g}))):t!==null&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"?(c="Iterable",p=Array.from(t,(g,h)=>m({label:h,value:g}))):typeof t=="function"?c="function":typeof t=="object"&&t!==null&&(c="object",p=Object.entries(t).map(g=>{let[h,x]=g;return m({label:h,value:x})})),p){let g=0;for(;g<p.length;)f.push(p.slice(g,g+r)),g=g+r}return o({handleEntry:g=>G.default.createElement(sa,Xa({key:g.label,renderer:o},s,g)),type:c,subEntries:p,subEntryPages:f,depth:n,value:t,path:d,expanded:i,toggle:u,pageSize:r,...s})}function Zp(e){return Ma.createElement("svg",Xa({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),Ma.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Ma.createElement("g",{id:"og-white",transform:"translate(-28.000000, -21.000000)"},Ma.createElement("g",{id:"Group-2",transform:"translate(28.000000, 31.000000)"},Ma.createElement("g",{id:"Group",transform:"translate(0.000000, 10.000000)"},Ma.createElement("path",{d:"M39.7239712,51.3436237 C36.631224,36.362877 35.9675112,24.8727722 37.9666331,16.5293551 C39.1555965,11.5671678 41.3293088,7.51908462 44.6346064,4.59846305 C48.1241394,1.51504777 52.5360327,0.00201216606 57.493257,0.00201216606 C65.6712013,0.00201216606 74.2682602,3.72732143 83.4557246,10.8044264 C87.2031203,13.6910458 91.0924366,17.170411 95.1316515,21.2444746 C95.4531404,20.8310265 95.8165416,20.4410453 96.2214301,20.0806152 C107.64098,9.91497158 117.255245,3.59892716 125.478408,1.16365068 C130.367899,-0.284364005 134.958526,-0.422317978 139.138936,0.983031021 C143.551631,2.46646844 147.06766,5.53294888 149.548314,9.82810912 C153.642288,16.9166735 154.721918,26.2310983 153.195595,37.7320243 C152.573451,42.4199112 151.50985,47.5263831 150.007094,53.0593153 C150.574045,53.1277086 151.142416,53.2532808 151.705041,53.4395297 C166.193932,58.2358678 176.453582,63.3937462 182.665021,69.2882839 C186.360669,72.7953831 188.773972,76.6998434 189.646365,81.0218204 C190.567176,85.5836746 189.669313,90.1593316 187.191548,94.4512967 C183.105211,101.529614 175.591643,107.11221 164.887587,111.534031 C160.589552,113.309539 155.726579,114.917559 150.293259,116.363748 C150.541176,116.92292 150.733521,117.516759 150.862138,118.139758 C153.954886,133.120505 154.618598,144.61061 152.619477,152.954027 C151.430513,157.916214 149.256801,161.964297 145.951503,164.884919 C142.46197,167.968334 138.050077,169.48137 133.092853,169.48137 C124.914908,169.48137 116.31785,165.756061 107.130385,158.678956 C103.343104,155.761613 99.4108655,152.238839 95.3254337,148.108619 C94.9050753,148.765474 94.3889681,149.376011 93.7785699,149.919385 C82.3590198,160.085028 72.744755,166.401073 64.5215915,168.836349 C59.6321009,170.284364 55.0414736,170.422318 50.8610636,169.016969 C46.4483686,167.533532 42.9323404,164.467051 40.4516862,160.171891 C36.3577116,153.083327 35.2780823,143.768902 36.8044053,132.267976 C37.449038,127.410634 38.56762,122.103898 40.1575891,116.339009 C39.5361041,116.276104 38.9120754,116.144816 38.2949591,115.940529 C23.8060684,111.144191 13.5464184,105.986312 7.33497892,100.091775 C3.63933121,96.5846754 1.22602752,92.6802151 0.353635235,88.3582381 C-0.567176333,83.7963839 0.330686581,79.2207269 2.80845236,74.9287618 C6.89478863,67.8504443 14.4083565,62.2678481 25.1124133,57.8460273 C29.5385143,56.0176154 34.5637208,54.366822 40.1939394,52.8874674 C39.9933393,52.3969171 39.8349374,51.8811235 39.7239712,51.3436237 Z",id:"Path",fill:"#002C4B",fillRule:"nonzero",transform:"translate(95.000000, 85.000000) scale(-1, 1) translate(-95.000000, -85.000000) "}),Ma.createElement("path",{d:"M91.735,110 L91.735,116 L80.6322051,116 C78.8411286,116 77.1868614,115.041975 76.2954489,113.488483 L74.294,110 L91.735,110 Z M116.181,110 L114.180256,113.488483 C113.288844,115.041975 111.634576,116 109.8435,116 L98.735,116 L98.735,110 L116.181,110 Z M91.735,96 L91.735,103 L70.277,103 L66.26,96 L91.735,96 Z M124.215,96 L120.198,103 L98.735,103 L98.735,96 L124.215,96 Z M91.735,82 L91.735,89 L62.244,89 L61.6632438,87.9884826 C60.7789187,86.4473417 60.7789187,84.5526583 61.6632438,83.0115174 L62.243,82 L91.735,82 Z M128.232,82 L128.812461,83.0115174 C129.696786,84.5526583 129.696786,86.4473417 128.812461,87.9884826 L128.231,89 L98.735,89 L98.735,82 L128.232,82 Z M91.735,68 L91.735,75 L66.26,75 L70.277,68 L91.735,68 Z M120.198,68 L124.215,75 L98.735,75 L98.735,68 L120.198,68 Z M91.735,55 L91.735,61 L74.293,61 L76.2954489,57.5115174 C77.1868614,55.958025 78.8411286,55 80.6322051,55 L91.735,55 Z M109.8435,55 C111.634576,55 113.288844,55.958025 114.180256,57.5115174 L116.182,61 L98.735,61 L98.735,55 L109.8435,55 Z",id:"Polygon-2",fill:"#FFD94C"}),Ma.createElement("path",{d:"M54.8601729,98.3577578 C56.1715224,97.6082856 57.8360246,98.0746014 58.5779424,99.3993034 L58.5779424,99.3993034 L59.0525843,100.24352 C62.8563392,106.982993 66.8190116,113.380176 70.9406016,119.435068 C75.8078808,126.585427 81.28184,133.82411 87.3624792,141.151115 C88.3168778,142.30114 88.1849437,144.011176 87.065686,144.997937 L87.065686,144.997937 L86.4542085,145.534625 C66.3465389,163.103314 53.2778188,166.612552 47.2480482,156.062341 C41.3500652,145.742717 43.4844915,126.982888 53.6513274,99.7828526 C53.876818,99.1795821 54.3045861,98.675291 54.8601729,98.3577578 Z M140.534177,119.041504 C141.986131,118.785177 143.375496,119.742138 143.65963,121.194242 L143.65963,121.194242 L143.812815,121.986376 C148.782365,147.995459 145.283348,161 133.315764,161 C121.609745,161 106.708724,149.909007 88.6127018,127.727022 C88.2113495,127.235047 87.9945723,126.617371 88,125.981509 C88.013158,124.480686 89.2357854,123.274651 90.730918,123.287756 L90.730918,123.287756 L91.6846544,123.294531 C99.3056979,123.335994 106.714387,123.071591 113.910723,122.501323 C122.409039,121.82788 131.283523,120.674607 140.534177,119.041504 Z M147.408726,63.8119663 C147.932139,62.4026903 149.508386,61.6634537 150.954581,62.149012 L150.954581,62.149012 L151.742552,62.4154854 C177.583763,71.217922 187.402356,80.8916805 181.198332,91.4367609 C175.129904,101.751366 157.484347,109.260339 128.26166,113.963678 C127.613529,114.067994 126.948643,113.945969 126.382735,113.618843 C125.047025,112.846729 124.602046,111.158214 125.388848,109.847438 L125.388848,109.847438 L125.889328,109.0105 C129.877183,102.31633 133.481358,95.6542621 136.701854,89.0242957 C140.50501,81.1948179 144.073967,72.7907081 147.408726,63.8119663 Z M61.7383398,56.0363218 C62.3864708,55.9320063 63.0513565,56.0540315 63.6172646,56.3811573 C64.9529754,57.153271 65.3979538,58.8417862 64.6111517,60.1525615 L64.6111517,60.1525615 L64.1106718,60.9895001 C60.1228168,67.6836699 56.5186416,74.3457379 53.2981462,80.9757043 C49.49499,88.8051821 45.9260328,97.2092919 42.5912744,106.188034 C42.0678608,107.59731 40.4916142,108.336546 39.045419,107.850988 L39.045419,107.850988 L38.2574475,107.584515 C12.4162372,98.782078 2.59764398,89.1083195 8.80166786,78.5632391 C14.8700957,68.2486335 32.515653,60.7396611 61.7383398,56.0363218 Z M103.545792,24.4653746 C123.653461,6.89668641 136.722181,3.38744778 142.751952,13.9376587 C148.649935,24.2572826 146.515508,43.0171122 136.348673,70.2171474 C136.123182,70.8204179 135.695414,71.324709 135.139827,71.6422422 C133.828478,72.3917144 132.163975,71.9253986 131.422058,70.6006966 L131.422058,70.6006966 L130.947416,69.7564798 C127.143661,63.0170065 123.180988,56.6198239 119.059398,50.564932 C114.192119,43.4145727 108.71816,36.1758903 102.637521,28.8488847 C101.683122,27.6988602 101.815056,25.9888243 102.934314,25.0020629 L102.934314,25.0020629 Z M57.6842361,8 C69.3902551,8 84.2912758,19.0909926 102.387298,41.2729777 C102.788651,41.7649527 103.005428,42.3826288 103,43.0184911 C102.986842,44.5193144 101.764215,45.7253489 100.269082,45.7122445 L100.269082,45.7122445 L99.3153456,45.7054689 C91.6943021,45.6640063 84.2856126,45.9284091 77.0892772,46.4986773 C68.5909612,47.17212 59.7164767,48.325393 50.4658235,49.9584962 C49.0138691,50.2148231 47.6245044,49.2578618 47.3403697,47.805758 L47.3403697,47.805758 L47.1871846,47.0136235 C42.2176347,21.0045412 45.7166519,8 57.6842361,8 Z",id:"Combined-Shape",fill:"#FF4154"}))))))}function Jp(e){let{initialIsOpen:t,table:a,panelProps:o={},toggleButtonProps:r={},containerElement:n="footer"}=e,s=G.default.useRef(null),i=G.default.useRef(null),[l,u]=TC("reactTableDevtoolsOpen",t),d=OC(),{style:c={},...p}=o,{style:f={},onClick:m,...g}=r;return d()?G.default.createElement(n,{ref:s,className:"ReactTableDevtools"},G.default.createElement(Xp,{theme:na},l?G.default.createElement(UC,Xa({ref:i},p,{table:a,isOpen:l,setIsOpen:u,style:{maxHeight:"80vh",width:"100%",...c}})):G.default.createElement("button",Xa({type:"button"},g,{"aria-label":"Open React Table Devtools",onClick:h=>{u(!0),m&&m(h)},style:{background:"none",border:0,padding:0,margin:".5rem",display:"inline-flex",fontSize:"1.5em",cursor:"pointer",width:"fit-content",...f}}),G.default.createElement(Zp,{"aria-hidden":!0})))):null}var UC=G.default.forwardRef(function(t,a){let{table:o,isOpen:r=!0,setIsOpen:n,...s}=t;return G.default.createElement(Xp,{theme:na},G.default.createElement(BC,Xa({ref:a,className:"ReactTableDevtoolsPanel"},s),G.default.createElement("style",{dangerouslySetInnerHTML:{__html:`
|
|
1201
1201
|
.ReactTableDevtoolsPanel * {
|
|
1202
|
-
scrollbar-color: ${
|
|
1202
|
+
scrollbar-color: ${na.backgroundAlt} ${na.gray};
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
.ReactTableDevtoolsPanel *::-webkit-scrollbar, .ReactTableDevtoolsPanel scrollbar {
|
|
@@ -1208,15 +1208,15 @@
|
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
.ReactTableDevtoolsPanel *::-webkit-scrollbar-track, .ReactTableDevtoolsPanel scrollbar-track {
|
|
1211
|
-
background: ${
|
|
1211
|
+
background: ${na.backgroundAlt};
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
1214
|
.ReactTableDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactTableDevtoolsPanel scrollbar-thumb {
|
|
1215
|
-
background: ${
|
|
1215
|
+
background: ${na.gray};
|
|
1216
1216
|
border-radius: .5em;
|
|
1217
|
-
border: 3px solid ${
|
|
1217
|
+
border: 3px solid ${na.backgroundAlt};
|
|
1218
1218
|
}
|
|
1219
|
-
`}}),G.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${ra.grayAlt}`,display:"flex",flexDirection:"column"}},G.default.createElement("div",{style:{padding:".5em",background:ra.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},G.default.createElement(Kp,{"aria-hidden":!0,style:{marginRight:".5em"},onClick:()=>n(!1)}),G.default.createElement("div",{style:{marginRight:"auto",fontSize:"clamp(.8rem, 2vw, 1.3rem)",fontWeight:"bold"}},"React Table"," ",G.default.createElement("span",{style:{fontWeight:100}},"Devtools")),G.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},r?G.default.createElement(DC,{type:"button","aria-label":"Close React Table Devtools",onClick:()=>{n(!1)}},"Close"):null)),G.default.createElement("div",{style:{display:"flex",flexWrap:"wrap",overflowY:"auto",flex:"1"}},G.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},G.default.createElement(na,{label:"Instance",value:o,defaultExpanded:!1}),G.default.createElement("div",{style:{height:".5rem"}}),G.default.createElement(na,{label:"State",value:o.getState(),defaultExpanded:!1}),G.default.createElement("div",{style:{height:".5rem"}}),G.default.createElement(na,{label:"Columns",value:o.getAllColumns(),defaultExpanded:!1})),G.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},G.default.createElement(na,{label:"Core Model",value:o.getCoreRowModel(),defaultExpanded:!1}),G.default.createElement(na,{label:"Filtered Model",value:o.getFilteredRowModel(),defaultExpanded:!1}),G.default.createElement(na,{label:"Sorted Model",value:o.getSortedRowModel(),defaultExpanded:!1}),G.default.createElement(na,{label:"Grouped Model",value:o.getGroupedRowModel(),defaultExpanded:!1}),G.default.createElement(na,{label:"Expanded Model",value:o.getExpandedRowModel(),defaultExpanded:!1}))))))});var Xa=require("react");b();var Xp=require("@tanstack/react-table");var sn=require("motion/react");b();var ce=xe(require("@radix-ui/react-dropdown-menu"),1);var Aa=xe(require("react"),1);var Ke=require("react/jsx-runtime"),Qp=ce.Root,jp=ce.Trigger;var $C=Aa.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ke.jsxs)(ce.SubTrigger,{ref:r,className:V("ps-flex ps-cursor-default ps-select-none ps-items-center ps-gap-2 ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent data-[state=open]:ps-bg-accent [&_svg]:ps-pointer-events-none [&_svg]:ps-size-4 [&_svg]:ps-shrink-0",t&&"ps-pl-8",e),...o,children:[a,(0,Ke.jsx)($t,{className:"ps-ml-auto"})]}));$C.displayName=ce.SubTrigger.displayName;var qC=Aa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ce.SubContent,{ref:a,className:V("ps-z-50 ps-min-w-[8rem] ps-overflow-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-lg data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));qC.displayName=ce.SubContent.displayName;var yi=Aa.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ke.jsx)(ce.Portal,{children:(0,Ke.jsx)(ce.Content,{ref:o,sideOffset:t,className:V("ps-z-50 ps-max-h-[var(--radix-dropdown-menu-content-available-height)] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-md","data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-dropdown-menu-content-transform-origin]",e),...a})}));yi.displayName=ce.Content.displayName;var Ts=Aa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(ce.Item,{ref:o,className:V("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-gap-2 ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50 [&>svg]:ps-size-4 [&>svg]:ps-shrink-0",t&&"ps-pl-8",e),...a}));Ts.displayName=ce.Item.displayName;var NC=Aa.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ke.jsxs)(ce.CheckboxItem,{ref:r,className:V("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),checked:a,...o,children:[(0,Ke.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Ke.jsx)(ce.ItemIndicator,{children:(0,Ke.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}),t]}));NC.displayName=ce.CheckboxItem.displayName;var zC=Aa.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(ce.RadioItem,{ref:o,className:V("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...a,children:[(0,Ke.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Ke.jsx)(ce.ItemIndicator,{children:(0,Ke.jsx)(lo,{className:"ps-h-2 ps-w-2 ps-fill-current"})})}),t]}));zC.displayName=ce.RadioItem.displayName;var UC=Aa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(ce.Label,{ref:o,className:V("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",t&&"ps-pl-8",e),...a}));UC.displayName=ce.Label.displayName;var HC=Aa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ce.Separator,{ref:a,className:V("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));HC.displayName=ce.Separator.displayName;var _C=({className:e,...t})=>(0,Ke.jsx)("span",{className:V("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...t});_C.displayName="DropdownMenuShortcut";var ie=require("react/jsx-runtime");function Zp(e){let{header:t,className:a}=e;return(0,ie.jsxs)("div",{className:V("ps-flex ps-items-center ps-justify-between",a),children:[(0,ie.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full",children:[(0,ie.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2 ps-overflow-hidden ps-text-ellipsis ps-font-mono ps-text-xs",children:t.isPlaceholder?null:(0,ie.jsx)("span",{className:"ps-flex ps-min-w-0",children:(0,ie.jsx)("span",{className:"ps-min-w-0 ps-overflow-hidden ps-text-ellipsis ps-text-foreground/90",children:(0,Xp.flexRender)(t.column.columnDef.header,t.getContext())})})}),(0,ie.jsxs)("span",{className:"ps-relative ps-flex ps-shrink-0 ps-gap-1",children:[(0,ie.jsx)("span",{className:"ps-flex ps-items-center ps-ml-1",children:(0,ie.jsx)(sn.AnimatePresence,{mode:"wait",children:t.column.getIsSorted()==="desc"?(0,ie.jsx)(sn.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.2},children:(0,ie.jsx)(hr,{size:14,className:"ps-text-muted-foreground"})},"desc"):t.column.getIsSorted()==="asc"?(0,ie.jsx)(sn.motion.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2},children:(0,ie.jsx)(xr,{size:14,className:"ps-text-muted-foreground"})},"asc"):null})}),t.column.getCanPin()&&t.column.id!=="select"&&(0,ie.jsxs)(Qp,{children:[(0,ie.jsx)(jp,{asChild:!0,children:(0,ie.jsx)(Be,{variant:"ghost",size:"sm",className:"ps-px-0 ps-h-6 ps-w-6",children:(0,ie.jsx)(Qt,{size:12})})}),(0,ie.jsxs)(yi,{children:[t.column.getCanSort()&&(0,ie.jsx)(Ts,{onClick:()=>t.column.toggleSorting(),children:(0,ie.jsx)("span",{className:"ps-flex ps-items-center ps-gap-2",children:t.column.getNextSortingOrder()==="desc"?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(qa,{size:16}),"Sort descending"]}):t.column.getNextSortingOrder()==="asc"?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(sr,{size:16}),"Sort ascending"]}):(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(Cr,{size:16}),"Cancel sorting"]})})}),(0,ie.jsx)(Ts,{onClick:()=>t.column.pin(t.column.getIsPinned()?!1:"left"),children:t.column.getIsPinned()?(0,ie.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ie.jsx)(yr,{size:16}),"Unpin column"]}):(0,ie.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ie.jsx)(vr,{size:16}),"Pin column"]})})]})]})]})]}),t.column.getCanResize()&&(0,ie.jsx)("button",{type:"button",tabIndex:0,onMouseDown:o=>{o.stopPropagation(),t.getResizeHandler()(o)},onTouchStart:o=>{o.stopPropagation(),t.getResizeHandler()(o)},onClick:o=>o.stopPropagation(),onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),o.stopPropagation(),t.getResizeHandler()(o))},className:V("ps-absolute ps-right-0 ps-top-0 ps-h-full ps-w-px ps-cursor-col-resize ps-border ps-border-transparent hover:ps-border-table-border"),"aria-label":"Resize column"})]})}b();var vi=require("react/jsx-runtime");function Jp({className:e}){return(0,vi.jsx)("div",{"data-loading-bar":!0,className:V("ps-h-[2px] ps-w-full ps-overflow-hidden ps-bg-gray-200 ps-z-50",e),children:(0,vi.jsx)("div",{className:"ps-animate-indeterminate-bar ps-h-full ps-w-1/3 ps-rounded-r-full ps-bg-purple-600"})})}b();var Ve=require("react/jsx-runtime");function Yp(e){let{table:t,variant:a="basic"}=e,{pageIndex:o}=t.getState().pagination,r=t.getPageCount();return(0,Ve.jsx)("div",{className:"ps-rounded-b-lg ps-overflow-clip ps-sticky ps-bottom-0 ps-left-0 ps-border-t-0 w-full ps-z-20 ps-p-0",children:(0,Ve.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-space-x-2 ps-py-2 ps-px-2 ps-border-t ps-border-table-border ps-backdrop-blur-sm ps-bg-table-head/90",children:a==="basic"?(0,Ve.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Ve.jsx)(Be,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:"Previous"}),(0,Ve.jsx)(Be,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:"Next"})]}):(0,Ve.jsx)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:(0,Ve.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Ve.jsx)(Be,{variant:"outline",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:(0,Ve.jsx)(ur,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsx)(Be,{variant:"outline",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:(0,Ve.jsx)(lr,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-1 ps-text-xs ps-font-medium",children:["Page",(0,Ve.jsx)(_t,{type:"number",min:1,max:r,value:o+1,className:"ps-w-16",onChange:n=>{let s=n.target.value?Number(n.target.value)-1:0;t.setPageIndex(s)}}),(0,Ve.jsxs)("span",{className:"ps-shrink-0 ps-w-max",children:["of ",r]})]}),(0,Ve.jsx)(Be,{variant:"outline",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:(0,Ve.jsx)($t,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsx)(Be,{variant:"outline",onClick:()=>t.setPageIndex(r-1),disabled:!t.getCanNextPage(),children:(0,Ve.jsx)(dr,{className:"ps-w-4 ps-h-4"})})]})})})})}b();function ln(e,t){let a=e.getIsPinned(),o=a==="left"&&e.getIsFirstColumn("left"),r=a==="right"&&e.getIsFirstColumn("right"),n=o||r;return{className:V("ps-group ps-border-r ps-border-b ps-border-table-border","ps-overflow-hidden ps-whitespace-nowrap ps-text-ellipsis",n&&t==="header"&&"ps-sticky ps-z-10",n&&t==="cell"&&"ps-sticky ps-z-9",n&&"ps-shadow-[-1px_0_0_0_hsl(var(--border))]"),style:{width:e.columnDef.size,left:o?`${e.getStart("left")}px`:void 0,right:r?`${e.getAfter("right")}px`:void 0}}}var Ee=require("react/jsx-runtime"),VC=e=>{let{children:t,className:a,header:o,style:r}=e,n="disableDragging"in o.column.columnDef,{attributes:s,listeners:i,transform:l,transition:u,setNodeRef:d,isDragging:c}=(0,Ja.useSortable)({id:o.id}),p={...r,cursor:"grab",touchAction:"none",transform:tm.CSS.Transform.toString(l),transition:u},f=V(a,"ps-select-none ps-touch-none ps-sticky ps-top-0 ps-bg-table-head"),m=V(f,c&&"!ps-z-50 ps-border-2 ps-border-violet-500");return(0,Ee.jsx)(jl,{ref:d,...s,...i,style:n?r:p,className:n?f:m,children:(0,Ee.jsx)("div",{className:"ps-w-full",children:t})})};function am(e){let{columnDefs:t,getBeforeRows:a,isLoading:o,isProcessing:r,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:i,pageCount:l,paginationState:u,rows:d,rowSelectionState:c,sortingState:p}=e,[f,m]=(0,Xa.useState)([]),[g,h]=(0,Xa.useState)({left:["__ps_select"],right:[]}),[x,y]=(0,Xa.useState)({}),C=(0,Xa.useMemo)(()=>em(p),[p]),w=o||r;(0,Xa.useEffect)(()=>m(t.map(({accessorKey:S})=>S)),[]);function L({active:S,over:I}){I&&S.id!==I.id&&m(_=>{let F=_.indexOf(S.id),re=_.indexOf(I.id);return(0,Ja.arrayMove)(_,F,re)})}let E=(0,Za.useSensor)(Za.MouseSensor,{activationConstraint:{distance:10}}),D=(0,Za.useSensors)(E),T=(0,Ds.useReactTable)({columnResizeMode:"onChange",columns:t,data:d,defaultColumn:{size:200,minSize:50,maxSize:500},enableColumnPinning:!0,enableColumnResizing:!0,enableRowSelection:!0,enableSorting:!!(i&&p),getCoreRowModel:(0,Ds.getCoreRowModel)(),getRowId:({__ps_rowid:S})=>S,manualPagination:!0,manualSorting:!0,onColumnOrderChange:m,onColumnPinningChange:h,onColumnSizingChange:y,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:S=>i?.(I=>(typeof S=="function"&&(S=S(em(I))),GC(S))),pageCount:l,state:{columnOrder:f,columnPinning:g,columnSizing:x,pagination:u,rowSelection:c,sorting:C}});return(0,Ee.jsxs)(Ee.Fragment,{children:[process.env.NODE_ENV==="production"?null:(0,Ee.jsx)(Wp,{table:T}),(0,Ee.jsxs)("div",{"data-studio":"content",className:"ps-flex-1 ps-w-0 ps-h-0 ps-min-w-full ps-flex ps-flex-col ps-relative ps-bg-slate-100",children:[(0,Ee.jsx)("div",{children:w&&(0,Ee.jsx)(Jp,{className:"ps-absolute -ps-top-[1px] ps-left-0 ps-right-0"})}),(0,Ee.jsx)(Za.DndContext,{sensors:D,onDragEnd:L,children:(0,Ee.jsxs)(Kl,{className:"ps-table-fixed ps-border-separate ps-border-spacing-0 ps-box-border ps-w-auto",children:[(0,Ee.jsx)(Wl,{children:T.getHeaderGroups().map(S=>(0,Ee.jsx)(bo,{children:(0,Ee.jsx)(Ja.SortableContext,{items:S.headers.filter(I=>!("disableDragging"in I.column.columnDef)).map(I=>I.id),strategy:Ja.horizontalListSortingStrategy,children:S.headers.map(I=>(0,Ee.jsx)(VC,{header:I,table:T,...ln(I.column,"header"),children:(0,Ee.jsx)(Zp,{header:I})},I.id))})},S.id))}),(0,Ee.jsxs)(Ql,{children:[a?.(T),T.getRowModel().rows?.length?T.getRowModel().rows.map(S=>(0,Ee.jsx)(bo,{className:V("ps-bg-table-row ps-odd:bg-table-row-odd ps-group [&:last-of-type_td]:ps-border-b-0"),children:S.getVisibleCells().map((I,_)=>{if(typeof I.column.columnDef.cell=="function"){let F=I.column.columnDef.cell(I.getContext());return(0,Ee.jsx)(F,{...ln(I.column,"cell")},_)}return null})},S.id)):(0,Ee.jsx)(bo,{children:(0,Ee.jsx)(tn,{colSpan:t.length,className:"ps-h-24 ps-text-center",children:o?"Loading...":"No results."})})]})]})}),!l||l<2?null:(0,Ee.jsx)(Yp,{table:T,variant:"numeric"})]})]})}function em(e){return e?.map(t=>({id:t.column,desc:t.direction==="desc"}))||[]}function GC(e){return e.map(t=>({column:t.id,direction:t.desc?"desc":"asc"}))}b();b();var Gt=xe(require("@radix-ui/react-tooltip"),1),om=xe(require("react"),1);var Ci=require("react/jsx-runtime"),rm=Gt.Provider,nm=Gt.Root,sm=Gt.Trigger,bi=om.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ci.jsx)(Gt.Portal,{children:(0,Ci.jsx)(Gt.Content,{ref:o,sideOffset:t,className:V("ps-z-50 ps-overflow-hidden ps-rounded-md ps-bg-primary ps-px-3 ps-py-1.5 ps-text-xs ps-text-primary-foreground ps-animate-in ps-fade-in-0 ps-zoom-in-95 data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=closed]:ps-zoom-out-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-tooltip-content-transform-origin]",e),...a})}));bi.displayName=Gt.Content.displayName;var Tt=require("react/jsx-runtime");function lm({column:e}){return e.isInPrimaryKey?(0,Tt.jsxs)("span",{className:"ps-flex ps-flex-row ps-font-medium ps-items-center ps-gap-1",children:[(0,Tt.jsx)(rm,{delayDuration:300,children:(0,Tt.jsxs)(nm,{children:[(0,Tt.jsx)(sm,{asChild:!0,children:(0,Tt.jsx)(pr,{size:12})}),(0,Tt.jsx)(bi,{children:(0,Tt.jsx)("p",{children:"Primary Key"})})]})}),e.name]}):(0,Tt.jsxs)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",children:[(0,Tt.jsx)("span",{className:"ps-font-medium ps-truncate",children:e.name}),(0,Tt.jsx)("span",{className:"ps-overflow-hidden ps-text-ellipsis ps-text-muted-foreground/70 ps-lowercase ps-truncate",children:e.datatype.name})]})}b();var Lm=require("remeda");b();var Si=require("motion/react"),fn=xe(require("react"),1);b();var wi=xe(require("@radix-ui/react-label"),1),im=require("class-variance-authority"),um=xe(require("react"),1);var dm=require("react/jsx-runtime"),KC=(0,im.cva)("ps-text-sm ps-font-medium ps-leading-none peer-disabled:ps-cursor-not-allowed peer-disabled:ps-opacity-70"),un=um.forwardRef(({className:e,...t},a)=>(0,dm.jsx)(wi.Root,{ref:a,className:V(KC(),e),...t}));un.displayName=wi.Root.displayName;b();var dn=xe(require("@radix-ui/react-switch"),1),cm=xe(require("react"),1);var Li=require("react/jsx-runtime"),cn=cm.forwardRef(({className:e,...t},a)=>(0,Li.jsx)(dn.Root,{className:V("ps-peer ps-inline-flex ps-h-5 ps-w-9 ps-shrink-0 ps-cursor-pointer ps-items-center ps-rounded-full ps-border-2 ps-border-transparent ps-shadow-sm ps-transition-colors focus-visible:ps-outline-none focus-visible:ps-ring-2 focus-visible:ps-ring-ring focus-visible:ps-ring-offset-2 focus-visible:ps-ring-offset-background disabled:ps-cursor-not-allowed disabled:ps-opacity-50 data-[state=checked]:ps-bg-primary data-[state=unchecked]:ps-bg-input",e),...t,ref:a,children:(0,Li.jsx)(dn.Thumb,{className:V("ps-pointer-events-none ps-block ps-h-4 ps-w-4 ps-rounded-full ps-bg-background ps-shadow-lg ps-ring-0 ps-transition-transform data-[state=checked]:ps-translate-x-4 data-[state=unchecked]:ps-translate-x-0")})}));cn.displayName=dn.Root.displayName;b();var st=require("react/jsx-runtime"),mt=({onSave:e,onCancel:t,onClose:a,onNullChange:o,isNull:r=!1,readonly:n})=>(0,st.jsx)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-border-t ps-border-table-border ps-text-xs ps-",children:!n&&(0,st.jsxs)(st.Fragment,{children:[(0,st.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-mr-auto",children:[(0,st.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{e&&e(),a&&a()},children:[(0,st.jsx)("kbd",{className:"ps-inline-flex ps-justify-center ps-items-center ps-h-6 ps-w-6 ps-rounded-md ps-bg-muted ps-text-muted-foreground",children:(0,st.jsx)(fr,{size:12,strokeWidth:2})})," ","Save changes"]}),(0,st.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{t&&t(),a&&a()},children:[(0,st.jsx)("kbd",{className:"ps-inline-flex ps-justify-center ps-items-center ps-h-6 ps-w-6 ps-rounded-md ps-bg-muted ps-text-muted-foreground ps-text-[8px] ps-leading-none ps-font-semibold",children:"Esc"})," ","Cancel changes"]})]}),o&&(0,st.jsx)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2",children:(0,st.jsxs)("label",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",htmlFor:"set-nullable",children:[(0,st.jsx)(cn,{id:"set-nullable",checked:r,onCheckedChange:u=>{o&&o(u)}}),(0,st.jsx)("span",{children:"Set to NULL"})]})})]})});var Kt=require("react/jsx-runtime");function fm(e){let{value:t,onSubmit:a,column:o,readonly:r}=e,n=o.nullable===!0,[s,i]=(0,fn.useState)(t===null?!1:t),[l,u]=(0,fn.useState)(t===null),d=t===null?!1:t,c=x=>{i(x)},p=x=>{u(x)},f=fn.default.useCallback(()=>{let x=l?null:s;return x!==t?(a(x),!0):!1},[s,t,a,l]),m=()=>{i(d),u(t===null)},{handleSave:g,handleCancel:h}=pt({onSave:f,onCancel:m,readonly:r});return(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsxs)("div",{className:"ps-flex ps-flex-row ps-items-center ps-h-[var(--studio-cell-height)] ps-gap-4 ps-py-0 ps-px-2",children:[(0,Kt.jsx)(un,{htmlFor:"boolean-input",className:"ps-sr-only",children:"Boolean"}),(0,Kt.jsx)(Si.motion.div,{className:"ps-flex ps-items-center",initial:{opacity:0},animate:{opacity:1},transition:{duration:.24},children:(0,Kt.jsx)(cn,{id:"boolean-input",checked:s,onCheckedChange:c,disabled:l||r})}),(0,Kt.jsx)(Si.motion.div,{"data-value":!0,className:"ps-inline-flex ps-items-center ps-text-xs ps-text-muted-foreground ps-font-mono",initial:{x:-40,opacity:1},animate:{x:0,opacity:1},transition:{duration:.12,delay:0},children:l?"NULL":String(s)})]}),(0,Kt.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:l,readonly:r})]})}b();var Ii=xe(require("dayjs"),1),mm=xe(require("dayjs/plugin/localizedFormat"),1),Es=require("react");b();var pm=require("react");function Xo(e){let{initialValue:t}=e,[a,o]=(0,pm.useState)(t??"");return{handleOnChange:n=>{o(n.target.value)},value:a}}var Dt=require("react/jsx-runtime");Ii.default.extend(mm.default);function gm(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Xo({initialValue:r}),i=(0,Es.useMemo)(()=>{try{let f=(0,Ii.default)(s);return f.isValid()?s.includes(":")?f.format("LL LTS"):f.format("LL"):s}catch{return s}},[s]);function l(f){f.preventDefault(),s!==r&&t(s)}let u=(0,Es.useCallback)(()=>s!==r?(t(s),!0):!1,[s,r,t]),d=()=>{},{handleSave:c,handleCancel:p}=pt({onSave:u,onCancel:d,readonly:o});return(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsxs)("form",{onSubmit:l,children:[(0,Dt.jsx)(_t,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:n,type:"text",value:s}),(0,Dt.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Dt.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-border-t ps-border-table-border",children:[(0,Dt.jsx)("div",{className:"ps-text-xs ps-text-muted-foreground",children:"Formatted value"}),(0,Dt.jsx)("div",{className:"ps-text-xs ps-font-mono ps-text-foreground",children:i})]}),(0,Dt.jsx)(mt,{onSave:c,onCancel:p,readonly:o})]})}b();var pn=require("react");var Ra=require("react/jsx-runtime");function hm(e){let{onSubmit:t,column:a,value:o,options:r=[],readonly:n}=e,s=a.nullable===!0,i=String(o),[l,u]=(0,pn.useState)(i),[d,c]=(0,pn.useState)(o===null),p=y=>{u(y)},f=y=>{c(y)},m=(0,pn.useCallback)(()=>d?o!==null?(t(null),!0):!1:l!==i?(t(l),!0):!1,[l,i,t,d,o]),g=()=>{u(i),c(o===null)},{handleSave:h,handleCancel:x}=pt({onSave:m,onCancel:g,readonly:n});return(0,Ra.jsxs)(Ra.Fragment,{children:[(0,Ra.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2 ps-font-mono ps-h-[var(--studio-cell-height)] ps-px-2 ps-py-0 ps-w-full ps-text-xs ps-text-muted-foreground",children:l}),(0,Ra.jsx)("div",{className:"ps-flex ps-flex-row ps-flex-wrap ps-gap-2 ps-p-2 ps-min-w-[var(--radix-popover-trigger-width)] ps-max-w-min ps-border-t ps-border-table-border ps-overflow-y-scroll ps-max-h-32",children:r.map(y=>(0,Ra.jsx)("button",{onClick:()=>p(y),className:mi({variant:y===l?"default":"outline"}),disabled:d||n,children:y},y))}),(0,Ra.jsx)(mt,{onSave:h,onCancel:x,onNullChange:s?f:void 0,isNull:d,readonly:n})]})}b();var mn=xe(require("react"),1);var Ya=require("react/jsx-runtime");function xm(e){let{value:t,onSubmit:a,column:o,readonly:r}=e,n=o.nullable===!0,s=t===null?"":JSON.stringify(t,null,2),[i,l]=(0,mn.useState)(s),[u,d]=(0,mn.useState)(t===null),c=x=>{l(x.target.value)},p=x=>{d(x)},f=mn.default.useCallback(()=>{if(u)return t!==null?(a(null),!0):!1;let x=i===""?null:JSON.parse(i);return x!==t?(a(x),!0):!1},[i,t,a,u]),m=()=>{l(s),d(t===null)},{handleSave:g,handleCancel:h}=pt({onSave:f,onCancel:m,readonly:r});return(0,Ya.jsxs)(Ya.Fragment,{children:[(0,Ya.jsx)("div",{className:"ps-flex ps-flex-row ps-items-center ps-gap-4 ps-py-0",children:(0,Ya.jsx)("textarea",{rows:5,value:i,onChange:c,disabled:u||r,className:"ps-cell-input-base ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize ps-px-[var(--studio-cell-spacing)]",lang:"en_EN"})}),(0,Ya.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:u,readonly:r})]})}b();var gn=xe(require("react"),1);var Ta=require("react/jsx-runtime");function ym(e){let{value:t,onSubmit:a,column:o,readonly:r}=e,n=o.nullable===!0,[s,i]=(0,gn.useState)(t===null?"":String(t)),[l,u]=(0,gn.useState)(t===null),d=t===null?"":String(t),c=x=>{i(x.target.value)},p=x=>{u(x)},f=gn.default.useCallback(()=>{if(l)return t!==null?(a(null),!0):!1;let x=s===""?null:Number(s);return s!==t?(a(x),!0):!1},[s,t,a,l]),m=()=>{i(d),u(t===null)},{handleSave:g,handleCancel:h}=pt({onSave:f,onCancel:m,readonly:r});return(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsxs)("div",{className:"ps-flex ps-flex-row ps-items-center ps-h-[var(--studio-cell-height)] ps-gap-4 ps-py-0",children:[(0,Ta.jsx)(un,{htmlFor:"numeric-input",className:"ps-sr-only",children:"Numeric"}),(0,Ta.jsx)("input",{type:"text",inputMode:"numeric",pattern:"\\d*",value:s,onChange:c,disabled:l||r,className:"ps-cell-input-leading ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",step:"any",lang:"en_EN"})]}),(0,Ta.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:l,readonly:r})]})}b();var vm=xe(require("react"),1);var Da=require("react/jsx-runtime");function Cm(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Xo({initialValue:r});function i(p){p.preventDefault(),s!==r&&t(s)}let l=vm.default.useCallback(()=>s!==r?(t(s),!0):!1,[s,r,t]),u=()=>{},{handleSave:d,handleCancel:c}=pt({onSave:l,onCancel:u,readonly:o});return(0,Da.jsxs)(Da.Fragment,{children:[(0,Da.jsxs)("form",{onSubmit:i,children:[(0,Da.jsx)(_t,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:n,type:"text",value:s,disabled:o}),(0,Da.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Da.jsx)(mt,{onSave:d,onCancel:c,readonly:o})]})}b();var ki=xe(require("dayjs"),1),bm=xe(require("dayjs/plugin/localizedFormat"),1),Fs=require("react");var Et=require("react/jsx-runtime");ki.default.extend(bm.default);function wm(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Xo({initialValue:r}),i=(0,Fs.useMemo)(()=>{try{if(!s.includes(":"))return s;let f=/[+-]\d{2}(:\d{2})?$/.test(s),m=(0,ki.default)(`2000-01-01 ${s}`);if(m.isValid())return m.format("h:mm A")+(f?` (${m.format("Z")})`:"");let g=/(\d{1,2}):(\d{2}):(\d{2})(?:\.\d+)?([+-]\d{2}(?::\d{2})?)?/,h=s.match(g);if(h){let x=parseInt(h[1]||"12",10),y=h[2]||"00",C=h[4]||"",w=x>=12?"PM":"AM";return`${x%12===0?12:x%12}:${y} ${w}${C?` (${C})`:""}`}return s}catch{return s}},[s]);function l(f){f.preventDefault(),s!==r&&t(s)}let u=(0,Fs.useCallback)(()=>s!==r?(t(s),!0):!1,[s,r,t]),d=()=>{},{handleSave:c,handleCancel:p}=pt({onSave:u,onCancel:d,readonly:o});return(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsxs)("form",{onSubmit:l,children:[(0,Et.jsx)(_t,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:n,type:"text",value:s}),(0,Et.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Et.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-border-t ps-border-table-border",children:[(0,Et.jsx)("div",{className:"ps-text-xs ps-text-muted-foreground",children:"Formatted value"}),(0,Et.jsx)("div",{className:"ps-text-xs ps-font-mono ps-text-foreground",children:i})]}),(0,Et.jsx)(mt,{onSave:c,onCancel:p,readonly:o})]})}var eo=require("react/jsx-runtime");function Os(e){let{cell:t,column:a,onSubmit:o}=e,{group:r,options:n,isArray:s}=a.datatype,i=a.isComputed||e.readonly,l=t.getValue(),u=l===void 0?"":l;return r==="datetime"?(0,eo.jsx)(gm,{onSubmit:o,value:u,column:a,readonly:i}):r==="time"?(0,eo.jsx)(wm,{onSubmit:o,value:u,column:a,readonly:i}):r==="json"||s?(0,eo.jsx)(xm,{onSubmit:o,value:u,column:a,readonly:i}):r==="boolean"?(0,eo.jsx)(fm,{onSubmit:o,value:u,column:a,readonly:i}):r==="enum"?(0,eo.jsx)(hm,{onSubmit:o,value:u,options:n,column:a,readonly:i}):r==="numeric"?(0,eo.jsx)(ym,{onSubmit:o,value:u,column:a,readonly:i}):(0,eo.jsx)(Cm,{onSubmit:o,value:(0,Lm.isObjectType)(u)?JSON.stringify(u):u,readonly:i})}b();var Sm=require("@tanstack/react-table"),Im=require("remeda");var to=require("react/jsx-runtime");function km(e){let{table:t,stagedRows:a,setStagedRows:o}=e,r=!!vs();function n(l,u){o(d=>{let c=[...d];return c[l]={...c[l],...u},c})}let s=Object.values(t.options.columns).map(l=>l.id==="__ps_select"?{...l,cell(){return()=>(0,to.jsx)(an,{})}}:{...l,cell({cell:u}){return d=>(0,to.jsx)(Ms,{cellComponent:Ps({cell:u,column:l.meta,props:d}),inputComponent:Os({cell:u,column:l.meta,onSubmit(c){n(d.rowIndex,{[l.id]:c})},readonly:r})})}}),i=(0,Sm.useReactTable)({...t.options,columns:s,enableSorting:!1,onPaginationChange:void 0,onSortingChange:void 0,data:a,state:(0,Im.omit)(t.options.state,["pagination","sorting"])});return(0,to.jsx)(to.Fragment,{children:i.getRowModel().rows.map((l,u)=>(0,to.jsx)(bo,{children:l.getVisibleCells().map((d,c)=>{if(typeof d.column.columnDef.cell=="function"){let p=d.column.columnDef.cell(d.getContext());return(0,to.jsx)(p,{...ln(d.column,"cell"),rowIndex:u},c)}return null})},u))})}var ke=require("react/jsx-runtime");function Am(e){let t=!!(0,Pm.useIsMutating)(),{activeTable:a,onError:o,isFullscreen:r,toggleFullscreen:n}=Ze(),{sortingState:s,setSortingState:i}=ip(),{paginationState:l,setPaginationState:u}=bs(),[d,c]=(0,hn.useState)([]),{data:p,isFetching:f}=ap({...l,sortOrder:s}),{deleteSelection:m,isSelecting:g,rowSelectionState:h,setRowSelectionState:x}=lp(p),[y,C]=(0,hn.useState)({kind:"ColumnFilters",and:[]}),w=!Object.values(a?.columns??{}).some(J=>J.isInPrimaryKey),L=vs(),E=ep(),D=op();if((0,hn.useEffect)(()=>c([]),[a]),!a)return null;function T(){E.mutate(d,{onError:o,onSuccess(){Mm.toast.success("Rows inserted successfully"),c([])}})}function S(){c(J=>[...J,{}])}function I(){c([])}function _(J,ne,me){D.mutate({details:{changes:{[ne.name]:J},row:me,table:a},options:{}})}let F=Object.values(a?.columns??{}).map(J=>({id:J.name,accessorKey:J.name,meta:J,header(){return lm({column:J})},cell({cell:ne}){return me=>(0,ke.jsx)(Ms,{cellComponent:Ps({cell:ne,column:J,props:me}),inputComponent:Os({cell:ne,column:J,readonly:w,onSubmit(he){return _(he,J,ne.row.original)}})})}})),re=[{id:"__ps_select",accessorKey:"__ps_select",enablePinning:!1,enableResizing:!1,enableSorting:!1,disableDragging:!0,size:0,header({table:J}){return(0,ke.jsx)(wr,{checked:J.getIsAllRowsSelected(),onCheckedChange:ne=>J.toggleAllRowsSelected(!!ne),disabled:w})},cell({row:J}){return ne=>(0,ke.jsx)(di,{row:J,readonly:w,...ne})}}],fe=[...F,...re].sort(QC);return(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)("div",{className:"ps-bg-studio-header-background ps-flex ps-w-full ps-p-2 ps-py-3 ps-border-b ps-bg-card ps-rounded-t-lg",children:(0,ke.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-gap-2",children:(0,ke.jsxs)("div",{className:"ps-flex ps-flex-grow ps-justify-between ps-items-center",children:[(0,ke.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ke.jsx)(Be,{variant:"outline",size:"sm",onClick:S,disabled:L>0,children:"Insert row"}),d.length>0&&(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)(Be,{variant:"secondary",size:"sm",onClick:T,children:"Save"}),(0,ke.jsx)(Be,{variant:"ghost",size:"sm",onClick:I,children:"Cancel"})]}),g&&(0,ke.jsx)(ke.Fragment,{children:(0,ke.jsx)(Be,{variant:"secondary",size:"sm",onClick:m,children:"Delete"})})]}),(0,ke.jsx)(Be,{variant:"outline",size:"icon",onClick:n,children:r?(0,ke.jsx)(gr,{}):(0,ke.jsx)(mr,{})})]})})}),(0,ke.jsx)(Up,{filter:y,setFilter:C}),(0,ke.jsx)(am,{columnDefs:fe,getBeforeRows:J=>(0,ke.jsx)(km,{table:J,stagedRows:d,setStagedRows:c}),isLoading:f,isProcessing:t,onPaginationChange:u,onRowSelectionChange:x,onSortingChange:i,pageCount:WC(p?.filteredRowCount??1/0,l.pageSize),paginationState:l,rows:p?.rows??[],rowSelectionState:h,sortingState:s})]})}function WC(e,t){if(e===1/0)return;let a=Number((BigInt(e)+BigInt(t)-BigInt(1))/BigInt(t));return Number.isSafeInteger(a)?a:Number.MAX_SAFE_INTEGER}function QC(e,t){let a=e.meta,o=t.meta;return e.id==="__ps_select"||t.id==="__ps_select"?1:a===void 0||o===void 0?0:a.isInPrimaryKey&&!o.isInPrimaryKey?-1:!a.isInPrimaryKey&&o.isInPrimaryKey?1:a.name.localeCompare(o.name)}b();var Bm=require("@radix-ui/react-slot");b();var Tm=require("react/jsx-runtime");function Rm({className:e,...t}){return(0,Tm.jsx)("div",{className:V("ps-animate-pulse ps-rounded-md ps-bg-primary/10",e),...t})}b();var ao=require("react"),Fm=require("uuid");b();var Dm=require("@tanstack/react-query");var Bs=-1;function Em(){let{adapter:e}=Ze();return(0,Dm.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}},timezone:"UTC",filterOperators:[]},initialDataUpdatedAt:Bs,queryFn:async({signal:t})=>{let[a,o]=await e.introspect({abortSignal:t});if(a)throw a;return o},queryKey:["introspection"],staleTime:t=>t.state.dataUpdatedAt===Bs?0:1/0})}function Om(){let{activeTable:e,setActiveTable:t,adapter:a,emitTelemetryEvent:o}=Ze(),{data:r,dataUpdatedAt:n}=Em(),s=n===Bs,i=(0,ao.useMemo)(()=>Object.values(r.schemas[a.defaultSchema||"db"]?.tables||{}),[r.schemas,a.defaultSchema]),l=(0,ao.useMemo)(()=>Object.values(r.schemas).reduce((g,h)=>g+Object.keys(h.tables).length,0),[r.schemas]),[u]=i,[d,c]=en({table:{defaultValue:null,parse:g=>g,serialize:g=>g??""},schema:{defaultValue:"",parse:g=>g,serialize:g=>g??""}}),[,p]=Ko("pageIndex",{parse:g=>g,serialize:g=>g??""}),[,f]=Ko("sort",{parse:g=>g,serialize:g=>g??""});(0,ao.useEffect)(()=>{if(!s){if(d?.table&&i.length>0){let g=i.find(h=>h.name===d.table);if(g){t(g);return}}i.length>0&&!e&&(t(u||null),u&&c({table:u.name,schema:u.schema}))}},[s,d,i,u,e,t,c]);let m=(0,ao.useCallback)(g=>{e!==g&&(t(g),c({table:g.name,schema:g.schema}),p(null),f(null))},[e,t,c,p,f]);return(0,ao.useEffect)(()=>{n!==-1&&o({event:"studio_launched",payload:{event_id:(0,Fm.v4)(),timestamp:new Date().toISOString(),table_count:l}})},[i,o,n,l]),{tables:i,activeTable:e,isLoading:s,handleTableChange:m}}var gt=require("react/jsx-runtime");function oo(){let{tables:e,activeTable:t,isLoading:a,handleTableChange:o}=Om();return(0,gt.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0 ps-overflow-y-auto ps-max-h-full ps-min-h-0 ps-rounded-lg ps-border ps-bg-card ps-text-card-foreground ps-shadow-xs",children:(0,gt.jsx)(oo.Block,{label:"Tables",children:e.length>0?e.map(r=>(0,gt.jsx)(oo.Item,{isActive:t===r,onClick:()=>{o(r)},className:"ps-py-1 ps-font-mono ps-text-xs ps-text-foreground/60 hover:ps-text-foreground ps-transition-all ps-cursor-pointer data-[active=true]:ps-bg-primary/5 data-[active=true]:ps-foreground data-[active=true]:ps-text-foreground",children:r.name},`${r.schema}-${r.name}`)):a?Array(4).fill(null).map((r,n)=>(0,gt.jsx)(oo.Item,{wrapChildrenInSpan:!1,children:(0,gt.jsx)(Rm,{className:"ps-h-3 ps-w-full"})},n)):(0,gt.jsx)(oo.Item,{children:"No tables found"})})})}var jC=({className:e,label:t,children:a,...o})=>(0,gt.jsxs)("div",{className:e,...o,children:[(0,gt.jsx)("div",{className:"ps-pt-4 ps-pb-2 ps-px-4 ps-sticky ps-top-0 ps-bg-card",children:(0,gt.jsx)("h2",{className:"ps-text-sm ps-font-medium",children:t})}),(0,gt.jsx)("nav",{"aria-label":t,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:a})]}),XC=({className:e,asChild:t=!1,isActive:a,size:o,children:r,wrapChildrenInSpan:n=!0,...s})=>(0,gt.jsx)(t?Bm.Slot:"button",{"data-sidebar":"menu-button","data-size":o,"data-active":a,className:V("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),...s,children:n?(0,gt.jsx)("span",{className:"ps-truncate",children:r}):r});oo.Block=jC;oo.Item=XC;var sa=require("react/jsx-runtime");function $m(e){let{adapter:t,onError:a,onTelemetryEvent:o}=e;return t?(0,sa.jsx)(Jf,{adapter:t,onError:a,onTelemetryEvent:o,children:(0,sa.jsx)(ZC,{})}):(console.error("No adapter provided to Studio component"),(0,sa.jsx)("div",{children:"Error: No adapter provided"}))}function ZC(){let{isFullscreen:e}=Ze(),t=V("ps-flex ps-flex-col ps-w-full ps-min-h-0 ps-max-h-full",e&&"ps-fixed ps-inset-0 ps-z-[9999] ps-bg-background ps-p-2");return(0,sa.jsx)("div",{className:t,children:(0,sa.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-bg-background ps-relative ps-max-h-full ps-min-h-full",children:[(0,sa.jsx)(oo,{}),(0,sa.jsx)("div",{className:"ps-flex ps-w-full ps-flex-col ps-bg-slate-100 ps-border ps-rounded-lg ps-self-start ps-h-full ps-min-h-full ps-max-h-full ps-overflow-clip",children:(0,sa.jsx)(Am,{})})]})})}0&&(module.exports={Studio});
|
|
1219
|
+
`}}),G.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${na.grayAlt}`,display:"flex",flexDirection:"column"}},G.default.createElement("div",{style:{padding:".5em",background:na.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},G.default.createElement(Zp,{"aria-hidden":!0,style:{marginRight:".5em"},onClick:()=>n(!1)}),G.default.createElement("div",{style:{marginRight:"auto",fontSize:"clamp(.8rem, 2vw, 1.3rem)",fontWeight:"bold"}},"React Table"," ",G.default.createElement("span",{style:{fontWeight:100}},"Devtools")),G.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},r?G.default.createElement($C,{type:"button","aria-label":"Close React Table Devtools",onClick:()=>{n(!1)}},"Close"):null)),G.default.createElement("div",{style:{display:"flex",flexWrap:"wrap",overflowY:"auto",flex:"1"}},G.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},G.default.createElement(sa,{label:"Instance",value:o,defaultExpanded:!1}),G.default.createElement("div",{style:{height:".5rem"}}),G.default.createElement(sa,{label:"State",value:o.getState(),defaultExpanded:!1}),G.default.createElement("div",{style:{height:".5rem"}}),G.default.createElement(sa,{label:"Columns",value:o.getAllColumns(),defaultExpanded:!1})),G.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},G.default.createElement(sa,{label:"Core Model",value:o.getCoreRowModel(),defaultExpanded:!1}),G.default.createElement(sa,{label:"Filtered Model",value:o.getFilteredRowModel(),defaultExpanded:!1}),G.default.createElement(sa,{label:"Sorted Model",value:o.getSortedRowModel(),defaultExpanded:!1}),G.default.createElement(sa,{label:"Grouped Model",value:o.getGroupedRowModel(),defaultExpanded:!1}),G.default.createElement(sa,{label:"Expanded Model",value:o.getExpandedRowModel(),defaultExpanded:!1}))))))});var Za=require("react");b();var tm=require("@tanstack/react-table");var sn=require("motion/react");b();var ce=ge(require("@radix-ui/react-dropdown-menu"),1);var Ra=ge(require("react"),1);var Ke=require("react/jsx-runtime"),Yp=ce.Root,em=ce.Trigger;var HC=Ra.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ke.jsxs)(ce.SubTrigger,{ref:r,className:U("ps-flex ps-cursor-default ps-select-none ps-items-center ps-gap-2 ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none focus:ps-bg-accent data-[state=open]:ps-bg-accent [&_svg]:ps-pointer-events-none [&_svg]:ps-size-4 [&_svg]:ps-shrink-0",t&&"ps-pl-8",e),...o,children:[a,(0,Ke.jsx)($t,{className:"ps-ml-auto"})]}));HC.displayName=ce.SubTrigger.displayName;var _C=Ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ce.SubContent,{ref:a,className:U("ps-z-50 ps-min-w-[8rem] ps-overflow-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-lg data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));_C.displayName=ce.SubContent.displayName;var Ci=Ra.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ke.jsx)(ce.Portal,{children:(0,Ke.jsx)(ce.Content,{ref:o,sideOffset:t,className:U("ps-z-50 ps-max-h-[var(--radix-dropdown-menu-content-available-height)] ps-min-w-[8rem] ps-overflow-y-auto ps-overflow-x-hidden ps-rounded-md ps-border ps-bg-popover ps-p-1 ps-text-popover-foreground ps-shadow-md","data-[state=open]:ps-animate-in data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=open]:ps-fade-in-0 data-[state=closed]:ps-zoom-out-95 data-[state=open]:ps-zoom-in-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-dropdown-menu-content-transform-origin]",e),...a})}));Ci.displayName=ce.Content.displayName;var Ts=Ra.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(ce.Item,{ref:o,className:U("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-gap-2 ps-rounded-sm ps-px-2 ps-py-1.5 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50 [&>svg]:ps-size-4 [&>svg]:ps-shrink-0",t&&"ps-pl-8",e),...a}));Ts.displayName=ce.Item.displayName;var VC=Ra.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ke.jsxs)(ce.CheckboxItem,{ref:r,className:U("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),checked:a,...o,children:[(0,Ke.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Ke.jsx)(ce.ItemIndicator,{children:(0,Ke.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}),t]}));VC.displayName=ce.CheckboxItem.displayName;var GC=Ra.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(ce.RadioItem,{ref:o,className:U("ps-relative ps-flex ps-cursor-default ps-select-none ps-items-center ps-rounded-sm ps-py-1.5 ps-pl-8 ps-pr-2 ps-text-sm ps-outline-none ps-transition-colors focus:ps-bg-accent focus:ps-text-accent-foreground data-[disabled]:ps-pointer-events-none data-[disabled]:ps-opacity-50",e),...a,children:[(0,Ke.jsx)("span",{className:"ps-absolute ps-left-2 ps-flex ps-h-3.5 ps-w-3.5 ps-items-center ps-justify-center",children:(0,Ke.jsx)(ce.ItemIndicator,{children:(0,Ke.jsx)(io,{className:"ps-h-2 ps-w-2 ps-fill-current"})})}),t]}));GC.displayName=ce.RadioItem.displayName;var KC=Ra.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(ce.Label,{ref:o,className:U("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",t&&"ps-pl-8",e),...a}));KC.displayName=ce.Label.displayName;var WC=Ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ce.Separator,{ref:a,className:U("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));WC.displayName=ce.Separator.displayName;var QC=({className:e,...t})=>(0,Ke.jsx)("span",{className:U("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...t});QC.displayName="DropdownMenuShortcut";var ie=require("react/jsx-runtime");function am(e){let{header:t,className:a}=e;return(0,ie.jsxs)("div",{className:U("ps-flex ps-items-center ps-justify-between",a),children:[(0,ie.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full",children:[(0,ie.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2 ps-overflow-hidden ps-text-ellipsis ps-font-mono ps-text-xs",children:t.isPlaceholder?null:(0,ie.jsx)("span",{className:"ps-flex ps-min-w-0",children:(0,ie.jsx)("span",{className:"ps-min-w-0 ps-overflow-hidden ps-text-ellipsis ps-text-foreground/90",children:(0,tm.flexRender)(t.column.columnDef.header,t.getContext())})})}),(0,ie.jsxs)("span",{className:"ps-relative ps-flex ps-shrink-0 ps-gap-1",children:[(0,ie.jsx)("span",{className:"ps-flex ps-items-center ps-ml-1",children:(0,ie.jsx)(sn.AnimatePresence,{mode:"wait",children:t.column.getIsSorted()==="desc"?(0,ie.jsx)(sn.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.2},children:(0,ie.jsx)(xr,{size:14,className:"ps-text-muted-foreground"})},"desc"):t.column.getIsSorted()==="asc"?(0,ie.jsx)(sn.motion.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2},children:(0,ie.jsx)(yr,{size:14,className:"ps-text-muted-foreground"})},"asc"):null})}),t.column.getCanPin()&&t.column.id!=="select"&&(0,ie.jsxs)(Yp,{children:[(0,ie.jsx)(em,{asChild:!0,children:(0,ie.jsx)(Fe,{variant:"ghost",size:"sm",className:"ps-px-0 ps-h-6 ps-w-6",children:(0,ie.jsx)(Qt,{size:12})})}),(0,ie.jsxs)(Ci,{children:[t.column.getCanSort()&&(0,ie.jsx)(Ts,{onClick:()=>t.column.toggleSorting(),children:(0,ie.jsx)("span",{className:"ps-flex ps-items-center ps-gap-2",children:t.column.getNextSortingOrder()==="desc"?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(qa,{size:16}),"Sort descending"]}):t.column.getNextSortingOrder()==="asc"?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(sr,{size:16}),"Sort ascending"]}):(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(Na,{size:16}),"Cancel sorting"]})})}),(0,ie.jsx)(Ts,{onClick:()=>t.column.pin(t.column.getIsPinned()?!1:"left"),children:t.column.getIsPinned()?(0,ie.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ie.jsx)(vr,{size:16}),"Unpin column"]}):(0,ie.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ie.jsx)(Cr,{size:16}),"Pin column"]})})]})]})]})]}),t.column.getCanResize()&&(0,ie.jsx)("button",{type:"button",tabIndex:0,onMouseDown:o=>{o.stopPropagation(),t.getResizeHandler()(o)},onTouchStart:o=>{o.stopPropagation(),t.getResizeHandler()(o)},onClick:o=>o.stopPropagation(),onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),o.stopPropagation(),t.getResizeHandler()(o))},className:U("ps-absolute ps-right-0 ps-top-0 ps-h-full ps-w-px ps-cursor-col-resize ps-border ps-border-transparent hover:ps-border-table-border"),"aria-label":"Resize column"})]})}b();var bi=require("react/jsx-runtime");function om({className:e}){return(0,bi.jsx)("div",{"data-loading-bar":!0,className:U("ps-h-[2px] ps-w-full ps-overflow-hidden ps-bg-gray-200 ps-z-50",e),children:(0,bi.jsx)("div",{className:"ps-animate-indeterminate-bar ps-h-full ps-w-1/3 ps-rounded-r-full ps-bg-purple-600"})})}b();var Ve=require("react/jsx-runtime");function rm(e){let{table:t,variant:a="basic"}=e,{pageIndex:o}=t.getState().pagination,r=t.getPageCount();return(0,Ve.jsx)("div",{className:"ps-rounded-b-lg ps-overflow-clip ps-sticky ps-bottom-0 ps-left-0 ps-border-t-0 w-full ps-z-20 ps-p-0",children:(0,Ve.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-space-x-2 ps-py-2 ps-px-2 ps-border-t ps-border-table-border ps-backdrop-blur-sm ps-bg-table-head/90",children:a==="basic"?(0,Ve.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Ve.jsx)(Fe,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:"Previous"}),(0,Ve.jsx)(Fe,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:"Next"})]}):(0,Ve.jsx)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:(0,Ve.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Ve.jsx)(Fe,{variant:"outline",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:(0,Ve.jsx)(ur,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsx)(Fe,{variant:"outline",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:(0,Ve.jsx)(lr,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-1 ps-text-xs ps-font-medium",children:["Page",(0,Ve.jsx)(_t,{type:"number",min:1,max:r,value:o+1,className:"ps-w-16",onChange:n=>{let s=n.target.value?Number(n.target.value)-1:0;t.setPageIndex(s)}}),(0,Ve.jsxs)("span",{className:"ps-shrink-0 ps-w-max",children:["of ",r]})]}),(0,Ve.jsx)(Fe,{variant:"outline",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:(0,Ve.jsx)($t,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsx)(Fe,{variant:"outline",onClick:()=>t.setPageIndex(r-1),disabled:!t.getCanNextPage(),children:(0,Ve.jsx)(dr,{className:"ps-w-4 ps-h-4"})})]})})})})}b();function ln(e,t){let a=e.getIsPinned(),o=a==="left"&&e.getIsFirstColumn("left"),r=a==="right"&&e.getIsFirstColumn("right"),n=o||r;return{className:U("ps-group ps-border-r ps-border-b ps-border-table-border","ps-overflow-hidden ps-whitespace-nowrap ps-text-ellipsis",n&&t==="header"&&"ps-sticky ps-z-10",n&&t==="cell"&&"ps-sticky ps-z-9",n&&"ps-shadow-[-1px_0_0_0_hsl(var(--border))]"),style:{width:e.columnDef.size,left:o?`${e.getStart("left")}px`:void 0,right:r?`${e.getAfter("right")}px`:void 0}}}var Ee=require("react/jsx-runtime"),jC=e=>{let{children:t,className:a,header:o,style:r}=e,n="disableDragging"in o.column.columnDef,{attributes:s,listeners:i,transform:l,transition:u,setNodeRef:d,isDragging:c}=(0,Ya.useSortable)({id:o.id}),p={...r,cursor:"grab",touchAction:"none",transform:sm.CSS.Transform.toString(l),transition:u},f=U(a,"ps-select-none ps-touch-none ps-sticky ps-top-0 ps-bg-table-head"),m=U(f,c&&"!ps-z-50 ps-border-2 ps-border-violet-500");return(0,Ee.jsx)(Zl,{ref:d,...s,...i,style:n?r:p,className:n?f:m,children:(0,Ee.jsx)("div",{className:"ps-w-full",children:t})})};function lm(e){let{columnDefs:t,getBeforeRows:a,isLoading:o,isProcessing:r,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:i,pageCount:l,paginationState:u,rows:d,rowSelectionState:c,sortingState:p}=e,[f,m]=(0,Za.useState)([]),[g,h]=(0,Za.useState)({left:["__ps_select"],right:[]}),[x,y]=(0,Za.useState)({}),C=(0,Za.useMemo)(()=>nm(p),[p]),w=o||r;(0,Za.useEffect)(()=>m(t.map(({accessorKey:S})=>S)),[]);function L({active:S,over:I}){I&&S.id!==I.id&&m(_=>{let F=_.indexOf(S.id),re=_.indexOf(I.id);return(0,Ya.arrayMove)(_,F,re)})}let E=(0,Ja.useSensor)(Ja.MouseSensor,{activationConstraint:{distance:10}}),D=(0,Ja.useSensors)(E),T=(0,Ds.useReactTable)({columnResizeMode:"onChange",columns:t,data:d,defaultColumn:{size:200,minSize:50,maxSize:500},enableColumnPinning:!0,enableColumnResizing:!0,enableRowSelection:!0,enableSorting:!!(i&&p),getCoreRowModel:(0,Ds.getCoreRowModel)(),getRowId:({__ps_rowid:S})=>S,manualPagination:!0,manualSorting:!0,onColumnOrderChange:m,onColumnPinningChange:h,onColumnSizingChange:y,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:S=>i?.(I=>(typeof S=="function"&&(S=S(nm(I))),XC(S))),pageCount:l,state:{columnOrder:f,columnPinning:g,columnSizing:x,pagination:u,rowSelection:c,sorting:C}});return(0,Ee.jsxs)(Ee.Fragment,{children:[process.env.NODE_ENV==="production"?null:(0,Ee.jsx)(Jp,{table:T}),(0,Ee.jsxs)("div",{"data-studio":"content",className:"ps-flex-1 ps-w-0 ps-h-0 ps-min-w-full ps-flex ps-flex-col ps-relative ps-bg-slate-100",children:[(0,Ee.jsx)("div",{children:w&&(0,Ee.jsx)(om,{className:"ps-absolute -ps-top-[1px] ps-left-0 ps-right-0"})}),(0,Ee.jsx)(Ja.DndContext,{sensors:D,onDragEnd:L,children:(0,Ee.jsxs)(Ql,{className:"ps-table-fixed ps-border-separate ps-border-spacing-0 ps-box-border ps-w-auto",children:[(0,Ee.jsx)(jl,{children:T.getHeaderGroups().map(S=>(0,Ee.jsx)(wo,{children:(0,Ee.jsx)(Ya.SortableContext,{items:S.headers.filter(I=>!("disableDragging"in I.column.columnDef)).map(I=>I.id),strategy:Ya.horizontalListSortingStrategy,children:S.headers.map(I=>(0,Ee.jsx)(jC,{header:I,table:T,...ln(I.column,"header"),children:(0,Ee.jsx)(am,{header:I})},I.id))})},S.id))}),(0,Ee.jsxs)(Xl,{children:[a?.(T),T.getRowModel().rows?.length?T.getRowModel().rows.map(S=>(0,Ee.jsx)(wo,{className:U("ps-bg-table-row ps-odd:bg-table-row-odd ps-group [&:last-of-type_td]:ps-border-b-0"),children:S.getVisibleCells().map((I,_)=>{if(typeof I.column.columnDef.cell=="function"){let F=I.column.columnDef.cell(I.getContext());return(0,Ee.jsx)(F,{...ln(I.column,"cell")},_)}return null})},S.id)):(0,Ee.jsx)(wo,{children:(0,Ee.jsx)(tn,{colSpan:t.length,className:"ps-h-24 ps-text-center",children:o?"Loading...":"No results."})})]})]})}),!l||l<2?null:(0,Ee.jsx)(rm,{table:T,variant:"numeric"})]})]})}function nm(e){return e?.map(t=>({id:t.column,desc:t.direction==="desc"}))||[]}function XC(e){return e.map(t=>({column:t.id,direction:t.desc?"desc":"asc"}))}b();b();var Gt=ge(require("@radix-ui/react-tooltip"),1),im=ge(require("react"),1);var wi=require("react/jsx-runtime"),um=Gt.Provider,dm=Gt.Root,cm=Gt.Trigger,Li=im.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,wi.jsx)(Gt.Portal,{children:(0,wi.jsx)(Gt.Content,{ref:o,sideOffset:t,className:U("ps-z-50 ps-overflow-hidden ps-rounded-md ps-bg-primary ps-px-3 ps-py-1.5 ps-text-xs ps-text-primary-foreground ps-animate-in ps-fade-in-0 ps-zoom-in-95 data-[state=closed]:ps-animate-out data-[state=closed]:ps-fade-out-0 data-[state=closed]:ps-zoom-out-95 data-[side=bottom]:ps-slide-in-from-top-2 data-[side=left]:ps-slide-in-from-right-2 data-[side=right]:ps-slide-in-from-left-2 data-[side=top]:ps-slide-in-from-bottom-2 ps-origin-[--radix-tooltip-content-transform-origin]",e),...a})}));Li.displayName=Gt.Content.displayName;var Tt=require("react/jsx-runtime");function fm({column:e}){return e.isInPrimaryKey?(0,Tt.jsxs)("span",{className:"ps-flex ps-flex-row ps-font-medium ps-items-center ps-gap-1",children:[(0,Tt.jsx)(um,{delayDuration:300,children:(0,Tt.jsxs)(dm,{children:[(0,Tt.jsx)(cm,{asChild:!0,children:(0,Tt.jsx)(mr,{size:12})}),(0,Tt.jsx)(Li,{children:(0,Tt.jsx)("p",{children:"Primary Key"})})]})}),e.name]}):(0,Tt.jsxs)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",children:[(0,Tt.jsx)("span",{className:"ps-font-medium ps-truncate",children:e.name}),(0,Tt.jsx)("span",{className:"ps-overflow-hidden ps-text-ellipsis ps-text-muted-foreground/70 ps-lowercase ps-truncate",children:e.datatype.name})]})}b();var Mm=require("remeda");b();var ki=require("motion/react"),fn=ge(require("react"),1);b();var Si=ge(require("@radix-ui/react-label"),1),pm=require("class-variance-authority"),mm=ge(require("react"),1);var gm=require("react/jsx-runtime"),ZC=(0,pm.cva)("ps-text-sm ps-font-medium ps-leading-none peer-disabled:ps-cursor-not-allowed peer-disabled:ps-opacity-70"),un=mm.forwardRef(({className:e,...t},a)=>(0,gm.jsx)(Si.Root,{ref:a,className:U(ZC(),e),...t}));un.displayName=Si.Root.displayName;b();var dn=ge(require("@radix-ui/react-switch"),1),hm=ge(require("react"),1);var Ii=require("react/jsx-runtime"),cn=hm.forwardRef(({className:e,...t},a)=>(0,Ii.jsx)(dn.Root,{className:U("ps-peer ps-inline-flex ps-h-5 ps-w-9 ps-shrink-0 ps-cursor-pointer ps-items-center ps-rounded-full ps-border-2 ps-border-transparent ps-shadow-sm ps-transition-colors focus-visible:ps-outline-none focus-visible:ps-ring-2 focus-visible:ps-ring-ring focus-visible:ps-ring-offset-2 focus-visible:ps-ring-offset-background disabled:ps-cursor-not-allowed disabled:ps-opacity-50 data-[state=checked]:ps-bg-primary data-[state=unchecked]:ps-bg-input",e),...t,ref:a,children:(0,Ii.jsx)(dn.Thumb,{className:U("ps-pointer-events-none ps-block ps-h-4 ps-w-4 ps-rounded-full ps-bg-background ps-shadow-lg ps-ring-0 ps-transition-transform data-[state=checked]:ps-translate-x-4 data-[state=unchecked]:ps-translate-x-0")})}));cn.displayName=dn.Root.displayName;b();var st=require("react/jsx-runtime"),mt=({onSave:e,onCancel:t,onClose:a,onNullChange:o,isNull:r=!1,readonly:n})=>(0,st.jsx)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-border-t ps-border-table-border ps-text-xs ps-",children:!n&&(0,st.jsxs)(st.Fragment,{children:[(0,st.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-mr-auto",children:[(0,st.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{e&&e(),a&&a()},children:[(0,st.jsx)("kbd",{className:"ps-inline-flex ps-justify-center ps-items-center ps-h-6 ps-w-6 ps-rounded-md ps-bg-muted ps-text-muted-foreground",children:(0,st.jsx)(fr,{size:12,strokeWidth:2})})," ","Save changes"]}),(0,st.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{t&&t(),a&&a()},children:[(0,st.jsx)("kbd",{className:"ps-inline-flex ps-justify-center ps-items-center ps-h-6 ps-w-6 ps-rounded-md ps-bg-muted ps-text-muted-foreground ps-text-[8px] ps-leading-none ps-font-semibold",children:"Esc"})," ","Cancel changes"]})]}),o&&(0,st.jsx)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2",children:(0,st.jsxs)("label",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",htmlFor:"set-nullable",children:[(0,st.jsx)(cn,{id:"set-nullable",checked:r,onCheckedChange:u=>{o&&o(u)}}),(0,st.jsx)("span",{children:"Set to NULL"})]})})]})});var Kt=require("react/jsx-runtime");function xm(e){let{value:t,onSubmit:a,column:o,readonly:r}=e,n=o.nullable===!0,[s,i]=(0,fn.useState)(t===null?!1:t),[l,u]=(0,fn.useState)(t===null),d=t===null?!1:t,c=x=>{i(x)},p=x=>{u(x)},f=fn.default.useCallback(()=>{let x=l?null:s;return x!==t?(a(x),!0):!1},[s,t,a,l]),m=()=>{i(d),u(t===null)},{handleSave:g,handleCancel:h}=pt({onSave:f,onCancel:m,readonly:r});return(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsxs)("div",{className:"ps-flex ps-flex-row ps-items-center ps-h-[var(--studio-cell-height)] ps-gap-4 ps-py-0 ps-px-2",children:[(0,Kt.jsx)(un,{htmlFor:"boolean-input",className:"ps-sr-only",children:"Boolean"}),(0,Kt.jsx)(ki.motion.div,{className:"ps-flex ps-items-center",initial:{opacity:0},animate:{opacity:1},transition:{duration:.24},children:(0,Kt.jsx)(cn,{id:"boolean-input",checked:s,onCheckedChange:c,disabled:l||r})}),(0,Kt.jsx)(ki.motion.div,{"data-value":!0,className:"ps-inline-flex ps-items-center ps-text-xs ps-text-muted-foreground ps-font-mono",initial:{x:-40,opacity:1},animate:{x:0,opacity:1},transition:{duration:.12,delay:0},children:l?"NULL":String(s)})]}),(0,Kt.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:l,readonly:r})]})}b();var Pi=ge(require("dayjs"),1),vm=ge(require("dayjs/plugin/localizedFormat"),1),Es=require("react");b();var ym=require("react");function Xo(e){let{initialValue:t}=e,[a,o]=(0,ym.useState)(t??"");return{handleOnChange:n=>{o(n.target.value)},value:a}}var Dt=require("react/jsx-runtime");Pi.default.extend(vm.default);function Cm(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Xo({initialValue:r}),i=(0,Es.useMemo)(()=>{try{let f=(0,Pi.default)(s);return f.isValid()?s.includes(":")?f.format("LL LTS"):f.format("LL"):s}catch{return s}},[s]);function l(f){f.preventDefault(),s!==r&&t(s)}let u=(0,Es.useCallback)(()=>s!==r?(t(s),!0):!1,[s,r,t]),d=()=>{},{handleSave:c,handleCancel:p}=pt({onSave:u,onCancel:d,readonly:o});return(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsxs)("form",{onSubmit:l,children:[(0,Dt.jsx)(_t,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:n,type:"text",value:s}),(0,Dt.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Dt.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-border-t ps-border-table-border",children:[(0,Dt.jsx)("div",{className:"ps-text-xs ps-text-muted-foreground",children:"Formatted value"}),(0,Dt.jsx)("div",{className:"ps-text-xs ps-font-mono ps-text-foreground",children:i})]}),(0,Dt.jsx)(mt,{onSave:c,onCancel:p,readonly:o})]})}b();var pn=require("react");var Aa=require("react/jsx-runtime");function bm(e){let{onSubmit:t,column:a,value:o,options:r=[],readonly:n}=e,s=a.nullable===!0,i=String(o),[l,u]=(0,pn.useState)(i),[d,c]=(0,pn.useState)(o===null),p=y=>{u(y)},f=y=>{c(y)},m=(0,pn.useCallback)(()=>d?o!==null?(t(null),!0):!1:l!==i?(t(l),!0):!1,[l,i,t,d,o]),g=()=>{u(i),c(o===null)},{handleSave:h,handleCancel:x}=pt({onSave:m,onCancel:g,readonly:n});return(0,Aa.jsxs)(Aa.Fragment,{children:[(0,Aa.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2 ps-font-mono ps-h-[var(--studio-cell-height)] ps-px-2 ps-py-0 ps-w-full ps-text-xs ps-text-muted-foreground",children:l}),(0,Aa.jsx)("div",{className:"ps-flex ps-flex-row ps-flex-wrap ps-gap-2 ps-p-2 ps-min-w-[var(--radix-popover-trigger-width)] ps-max-w-min ps-border-t ps-border-table-border ps-overflow-y-scroll ps-max-h-32",children:r.map(y=>(0,Aa.jsx)("button",{onClick:()=>p(y),className:hi({variant:y===l?"default":"outline"}),disabled:d||n,children:y},y))}),(0,Aa.jsx)(mt,{onSave:h,onCancel:x,onNullChange:s?f:void 0,isNull:d,readonly:n})]})}b();var mn=ge(require("react"),1);var eo=require("react/jsx-runtime");function wm(e){let{value:t,onSubmit:a,column:o,readonly:r}=e,n=o.nullable===!0,s=t===null?"":JSON.stringify(t,null,2),[i,l]=(0,mn.useState)(s),[u,d]=(0,mn.useState)(t===null),c=x=>{l(x.target.value)},p=x=>{d(x)},f=mn.default.useCallback(()=>{if(u)return t!==null?(a(null),!0):!1;let x=i===""?null:JSON.parse(i);return x!==t?(a(x),!0):!1},[i,t,a,u]),m=()=>{l(s),d(t===null)},{handleSave:g,handleCancel:h}=pt({onSave:f,onCancel:m,readonly:r});return(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("div",{className:"ps-flex ps-flex-row ps-items-center ps-gap-4 ps-py-0",children:(0,eo.jsx)("textarea",{rows:5,value:i,onChange:c,disabled:u||r,className:"ps-cell-input-base ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize ps-px-[var(--studio-cell-spacing)]",lang:"en_EN"})}),(0,eo.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:u,readonly:r})]})}b();var gn=ge(require("react"),1);var Ta=require("react/jsx-runtime");function Lm(e){let{value:t,onSubmit:a,column:o,readonly:r}=e,n=o.nullable===!0,[s,i]=(0,gn.useState)(t===null?"":String(t)),[l,u]=(0,gn.useState)(t===null),d=t===null?"":String(t),c=x=>{i(x.target.value)},p=x=>{u(x)},f=gn.default.useCallback(()=>{if(l)return t!==null?(a(null),!0):!1;let x=s===""?null:Number(s);return s!==t?(a(x),!0):!1},[s,t,a,l]),m=()=>{i(d),u(t===null)},{handleSave:g,handleCancel:h}=pt({onSave:f,onCancel:m,readonly:r});return(0,Ta.jsxs)(Ta.Fragment,{children:[(0,Ta.jsxs)("div",{className:"ps-flex ps-flex-row ps-items-center ps-h-[var(--studio-cell-height)] ps-gap-4 ps-py-0",children:[(0,Ta.jsx)(un,{htmlFor:"numeric-input",className:"ps-sr-only",children:"Numeric"}),(0,Ta.jsx)("input",{type:"text",inputMode:"numeric",pattern:"\\d*",value:s,onChange:c,disabled:l||r,className:"ps-cell-input-leading ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",step:"any",lang:"en_EN"})]}),(0,Ta.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:l,readonly:r})]})}b();var Sm=ge(require("react"),1);var Da=require("react/jsx-runtime");function Im(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Xo({initialValue:r});function i(p){p.preventDefault(),s!==r&&t(s)}let l=Sm.default.useCallback(()=>s!==r?(t(s),!0):!1,[s,r,t]),u=()=>{},{handleSave:d,handleCancel:c}=pt({onSave:l,onCancel:u,readonly:o});return(0,Da.jsxs)(Da.Fragment,{children:[(0,Da.jsxs)("form",{onSubmit:i,children:[(0,Da.jsx)(_t,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:n,type:"text",value:s,disabled:o}),(0,Da.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Da.jsx)(mt,{onSave:d,onCancel:c,readonly:o})]})}b();var Mi=ge(require("dayjs"),1),km=ge(require("dayjs/plugin/localizedFormat"),1),Fs=require("react");var Et=require("react/jsx-runtime");Mi.default.extend(km.default);function Pm(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Xo({initialValue:r}),i=(0,Fs.useMemo)(()=>{try{if(!s.includes(":"))return s;let f=/[+-]\d{2}(:\d{2})?$/.test(s),m=(0,Mi.default)(`2000-01-01 ${s}`);if(m.isValid())return m.format("h:mm A")+(f?` (${m.format("Z")})`:"");let g=/(\d{1,2}):(\d{2}):(\d{2})(?:\.\d+)?([+-]\d{2}(?::\d{2})?)?/,h=s.match(g);if(h){let x=parseInt(h[1]||"12",10),y=h[2]||"00",C=h[4]||"",w=x>=12?"PM":"AM";return`${x%12===0?12:x%12}:${y} ${w}${C?` (${C})`:""}`}return s}catch{return s}},[s]);function l(f){f.preventDefault(),s!==r&&t(s)}let u=(0,Fs.useCallback)(()=>s!==r?(t(s),!0):!1,[s,r,t]),d=()=>{},{handleSave:c,handleCancel:p}=pt({onSave:u,onCancel:d,readonly:o});return(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsxs)("form",{onSubmit:l,children:[(0,Et.jsx)(_t,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:n,type:"text",value:s}),(0,Et.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Et.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-border-t ps-border-table-border",children:[(0,Et.jsx)("div",{className:"ps-text-xs ps-text-muted-foreground",children:"Formatted value"}),(0,Et.jsx)("div",{className:"ps-text-xs ps-font-mono ps-text-foreground",children:i})]}),(0,Et.jsx)(mt,{onSave:c,onCancel:p,readonly:o})]})}var to=require("react/jsx-runtime");function Os(e){let{cell:t,column:a,onSubmit:o}=e,{group:r,options:n,isArray:s}=a.datatype,i=a.isComputed||e.readonly,l=t.getValue(),u=l===void 0?"":l;return r==="datetime"?(0,to.jsx)(Cm,{onSubmit:o,value:u,column:a,readonly:i}):r==="time"?(0,to.jsx)(Pm,{onSubmit:o,value:u,column:a,readonly:i}):r==="json"||s?(0,to.jsx)(wm,{onSubmit:o,value:u,column:a,readonly:i}):r==="boolean"?(0,to.jsx)(xm,{onSubmit:o,value:u,column:a,readonly:i}):r==="enum"?(0,to.jsx)(bm,{onSubmit:o,value:u,options:n,column:a,readonly:i}):r==="numeric"?(0,to.jsx)(Lm,{onSubmit:o,value:u,column:a,readonly:i}):(0,to.jsx)(Im,{onSubmit:o,value:(0,Mm.isObjectType)(u)?JSON.stringify(u):u,readonly:i})}b();var Rm=require("@tanstack/react-table"),Am=require("remeda");var ao=require("react/jsx-runtime");function Tm(e){let{table:t,stagedRows:a,setStagedRows:o}=e,r=!!vs();function n(l,u){o(d=>{let c=[...d];return c[l]={...c[l],...u},c})}let s=Object.values(t.options.columns).map(l=>l.id==="__ps_select"?{...l,cell(){return()=>(0,ao.jsx)(an,{})}}:{...l,cell({cell:u}){return d=>(0,ao.jsx)(Ms,{cellComponent:Ps({cell:u,column:l.meta,props:d}),inputComponent:Os({cell:u,column:l.meta,onSubmit(c){n(d.rowIndex,{[l.id]:c})},readonly:r})})}}),i=(0,Rm.useReactTable)({...t.options,columns:s,enableSorting:!1,onPaginationChange:void 0,onSortingChange:void 0,data:a,state:(0,Am.omit)(t.options.state,["pagination","sorting"])});return(0,ao.jsx)(ao.Fragment,{children:i.getRowModel().rows.map((l,u)=>(0,ao.jsx)(wo,{children:l.getVisibleCells().map((d,c)=>{if(typeof d.column.columnDef.cell=="function"){let p=d.column.columnDef.cell(d.getContext());return(0,ao.jsx)(p,{...ln(d.column,"cell"),rowIndex:u},c)}return null})},u))})}var ve=require("react/jsx-runtime");function Fm(e){let t=!!(0,Dm.useIsMutating)(),{activeTable:a,onError:o,isFullscreen:r,toggleFullscreen:n}=Ze(),{sortingState:s,setSortingState:i}=pp(),{paginationState:l,setPaginationState:u}=bs(),[d,c]=(0,hn.useState)([]),{data:p,isFetching:f}=lp({...l,sortOrder:s}),{deleteSelection:m,isSelecting:g,rowSelectionState:h,setRowSelectionState:x}=fp(p),[y,C]=(0,hn.useState)({kind:"ColumnFilters",and:[]}),w=!Object.values(a?.columns??{}).some(J=>J.isInPrimaryKey),L=vs(),E=np(),D=ip();if((0,hn.useEffect)(()=>c([]),[a]),!a)return null;function T(){E.mutate(d,{onError:o,onSuccess(){Em.toast.success("Rows inserted successfully"),c([])}})}function S(){c(J=>[...J,{}])}function I(){c([])}function _(J,ne,me){D.mutate({details:{changes:{[ne.name]:J},row:me,table:a},options:{}})}let F=Object.values(a?.columns??{}).map(J=>({id:J.name,accessorKey:J.name,meta:J,header(){return fm({column:J})},cell({cell:ne}){return me=>(0,ve.jsx)(Ms,{cellComponent:Ps({cell:ne,column:J,props:me}),inputComponent:Os({cell:ne,column:J,readonly:w,onSubmit(xe){return _(xe,J,ne.row.original)}})})}})),re=[{id:"__ps_select",accessorKey:"__ps_select",enablePinning:!1,enableResizing:!1,enableSorting:!1,disableDragging:!0,size:0,header({table:J}){return(0,ve.jsx)(wr,{checked:J.getIsAllRowsSelected(),onCheckedChange:ne=>J.toggleAllRowsSelected(!!ne),disabled:w})},cell({row:J}){return ne=>(0,ve.jsx)(fi,{row:J,readonly:w,...ne})}}],fe=[...F,...re].sort(YC);return(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)("div",{className:"ps-bg-studio-header-background ps-flex ps-w-full ps-p-2 ps-py-3 ps-border-b ps-bg-card ps-rounded-t-lg",children:(0,ve.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-gap-2",children:(0,ve.jsxs)("div",{className:"ps-flex ps-flex-grow ps-justify-between ps-items-center",children:[(0,ve.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ve.jsxs)(uu,{children:[(0,ve.jsx)(du,{asChild:!0,children:(0,ve.jsx)(Fe,{variant:"outline",size:"sm",children:(0,ve.jsx)(pr,{})})}),(0,ve.jsx)(Us,{align:"start",side:"bottom",className:"ps-w-min",children:(0,ve.jsx)(Kp,{filter:y,setFilter:C})})]}),(0,ve.jsx)(Fe,{variant:"outline",size:"sm",onClick:S,disabled:L>0,children:"Insert row"}),d.length>0&&(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)(Fe,{variant:"secondary",size:"sm",onClick:T,children:"Save"}),(0,ve.jsx)(Fe,{variant:"ghost",size:"sm",onClick:I,children:"Cancel"})]}),g&&(0,ve.jsx)(ve.Fragment,{children:(0,ve.jsx)(Fe,{variant:"secondary",size:"sm",onClick:m,children:"Delete"})})]}),(0,ve.jsx)(Fe,{variant:"outline",size:"icon",onClick:n,children:r?(0,ve.jsx)(hr,{}):(0,ve.jsx)(gr,{})})]})})}),(0,ve.jsx)(lm,{columnDefs:fe,getBeforeRows:J=>(0,ve.jsx)(Tm,{table:J,stagedRows:d,setStagedRows:c}),isLoading:f,isProcessing:t,onPaginationChange:u,onRowSelectionChange:x,onSortingChange:i,pageCount:JC(p?.filteredRowCount??1/0,l.pageSize),paginationState:l,rows:p?.rows??[],rowSelectionState:h,sortingState:s})]})}function JC(e,t){if(e===1/0)return;let a=Number((BigInt(e)+BigInt(t)-BigInt(1))/BigInt(t));return Number.isSafeInteger(a)?a:Number.MAX_SAFE_INTEGER}function YC(e,t){let a=e.meta,o=t.meta;return e.id==="__ps_select"||t.id==="__ps_select"?1:a===void 0||o===void 0?0:a.isInPrimaryKey&&!o.isInPrimaryKey?-1:!a.isInPrimaryKey&&o.isInPrimaryKey?1:a.name.localeCompare(o.name)}b();var Um=require("@radix-ui/react-slot");b();var Bm=require("react/jsx-runtime");function Om({className:e,...t}){return(0,Bm.jsx)("div",{className:U("ps-animate-pulse ps-rounded-md ps-bg-primary/10",e),...t})}b();var oo=require("react"),Nm=require("uuid");b();var $m=require("@tanstack/react-query");var Bs=-1;function qm(){let{adapter:e}=Ze();return(0,$m.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}},timezone:"UTC",filterOperators:[]},initialDataUpdatedAt:Bs,queryFn:async({signal:t})=>{let[a,o]=await e.introspect({abortSignal:t});if(a)throw a;return o},queryKey:["introspection"],staleTime:t=>t.state.dataUpdatedAt===Bs?0:1/0})}function zm(){let{activeTable:e,setActiveTable:t,adapter:a,emitTelemetryEvent:o}=Ze(),{data:r,dataUpdatedAt:n}=qm(),s=n===Bs,i=(0,oo.useMemo)(()=>Object.values(r.schemas[a.defaultSchema||"db"]?.tables||{}),[r.schemas,a.defaultSchema]),l=(0,oo.useMemo)(()=>Object.values(r.schemas).reduce((g,h)=>g+Object.keys(h.tables).length,0),[r.schemas]),[u]=i,[d,c]=en({table:{defaultValue:null,parse:g=>g,serialize:g=>g??""},schema:{defaultValue:"",parse:g=>g,serialize:g=>g??""}}),[,p]=Ko("pageIndex",{parse:g=>g,serialize:g=>g??""}),[,f]=Ko("sort",{parse:g=>g,serialize:g=>g??""});(0,oo.useEffect)(()=>{if(!s){if(d?.table&&i.length>0){let g=i.find(h=>h.name===d.table);if(g){t(g);return}}i.length>0&&!e&&(t(u||null),u&&c({table:u.name,schema:u.schema}))}},[s,d,i,u,e,t,c]);let m=(0,oo.useCallback)(g=>{e!==g&&(t(g),c({table:g.name,schema:g.schema}),p(null),f(null))},[e,t,c,p,f]);return(0,oo.useEffect)(()=>{n!==-1&&o({event:"studio_launched",payload:{event_id:(0,Nm.v4)(),timestamp:new Date().toISOString(),table_count:l}})},[i,o,n,l]),{tables:i,activeTable:e,isLoading:s,handleTableChange:m}}var gt=require("react/jsx-runtime");function ro(){let{tables:e,activeTable:t,isLoading:a,handleTableChange:o}=zm();return(0,gt.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0 ps-overflow-y-auto ps-max-h-full ps-min-h-0 ps-rounded-lg ps-border ps-bg-card ps-text-card-foreground ps-shadow-xs",children:(0,gt.jsx)(ro.Block,{label:"Tables",children:e.length>0?e.map(r=>(0,gt.jsx)(ro.Item,{isActive:t===r,onClick:()=>{o(r)},className:"ps-py-1 ps-font-mono ps-text-xs ps-text-foreground/60 hover:ps-text-foreground ps-transition-all ps-cursor-pointer data-[active=true]:ps-bg-primary/5 data-[active=true]:ps-foreground data-[active=true]:ps-text-foreground",children:r.name},`${r.schema}-${r.name}`)):a?Array(4).fill(null).map((r,n)=>(0,gt.jsx)(ro.Item,{wrapChildrenInSpan:!1,children:(0,gt.jsx)(Om,{className:"ps-h-3 ps-w-full"})},n)):(0,gt.jsx)(ro.Item,{children:"No tables found"})})})}var eb=({className:e,label:t,children:a,...o})=>(0,gt.jsxs)("div",{className:e,...o,children:[(0,gt.jsx)("div",{className:"ps-pt-4 ps-pb-2 ps-px-4 ps-sticky ps-top-0 ps-bg-card",children:(0,gt.jsx)("h2",{className:"ps-text-sm ps-font-medium",children:t})}),(0,gt.jsx)("nav",{"aria-label":t,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:a})]}),tb=({className:e,asChild:t=!1,isActive:a,size:o,children:r,wrapChildrenInSpan:n=!0,...s})=>(0,gt.jsx)(t?Um.Slot:"button",{"data-sidebar":"menu-button","data-size":o,"data-active":a,className:U("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),...s,children:n?(0,gt.jsx)("span",{className:"ps-truncate",children:r}):r});ro.Block=eb;ro.Item=tb;var la=require("react/jsx-runtime");function Hm(e){let{adapter:t,onError:a,onTelemetryEvent:o}=e;return t?(0,la.jsx)(op,{adapter:t,onError:a,onTelemetryEvent:o,children:(0,la.jsx)(ab,{})}):(console.error("No adapter provided to Studio component"),(0,la.jsx)("div",{children:"Error: No adapter provided"}))}function ab(){let{isFullscreen:e}=Ze(),t=U("ps-flex ps-flex-col ps-w-full ps-min-h-0 ps-max-h-full",e&&"ps-fixed ps-inset-0 ps-z-[9999] ps-bg-background ps-p-2");return(0,la.jsx)("div",{className:t,children:(0,la.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-bg-background ps-relative ps-max-h-full ps-min-h-full",children:[(0,la.jsx)(ro,{}),(0,la.jsx)("div",{className:"ps-flex ps-w-full ps-flex-col ps-bg-slate-100 ps-border ps-rounded-lg ps-self-start ps-h-full ps-min-h-full ps-max-h-full ps-overflow-clip",children:(0,la.jsx)(Fm,{})})]})})}0&&(module.exports={Studio});
|
|
1220
1220
|
/*! Bundled license information:
|
|
1221
1221
|
|
|
1222
1222
|
@tanstack/query-devtools/build/chunk/WXAWMS3D.js:
|
|
@@ -1453,7 +1453,7 @@ lucide-react/dist/esm/icons/chevrons-right.js:
|
|
|
1453
1453
|
* See the LICENSE file in the root directory of this source tree.
|
|
1454
1454
|
*)
|
|
1455
1455
|
|
|
1456
|
-
lucide-react/dist/esm/icons/circle
|
|
1456
|
+
lucide-react/dist/esm/icons/circle.js:
|
|
1457
1457
|
(**
|
|
1458
1458
|
* @license lucide-react v0.466.0 - ISC
|
|
1459
1459
|
*
|
|
@@ -1461,7 +1461,7 @@ lucide-react/dist/esm/icons/circle-plus.js:
|
|
|
1461
1461
|
* See the LICENSE file in the root directory of this source tree.
|
|
1462
1462
|
*)
|
|
1463
1463
|
|
|
1464
|
-
lucide-react/dist/esm/icons/
|
|
1464
|
+
lucide-react/dist/esm/icons/copy.js:
|
|
1465
1465
|
(**
|
|
1466
1466
|
* @license lucide-react v0.466.0 - ISC
|
|
1467
1467
|
*
|
|
@@ -1469,7 +1469,7 @@ lucide-react/dist/esm/icons/circle.js:
|
|
|
1469
1469
|
* See the LICENSE file in the root directory of this source tree.
|
|
1470
1470
|
*)
|
|
1471
1471
|
|
|
1472
|
-
lucide-react/dist/esm/icons/
|
|
1472
|
+
lucide-react/dist/esm/icons/corner-down-left.js:
|
|
1473
1473
|
(**
|
|
1474
1474
|
* @license lucide-react v0.466.0 - ISC
|
|
1475
1475
|
*
|
|
@@ -1477,7 +1477,7 @@ lucide-react/dist/esm/icons/copy.js:
|
|
|
1477
1477
|
* See the LICENSE file in the root directory of this source tree.
|
|
1478
1478
|
*)
|
|
1479
1479
|
|
|
1480
|
-
lucide-react/dist/esm/icons/
|
|
1480
|
+
lucide-react/dist/esm/icons/filter.js:
|
|
1481
1481
|
(**
|
|
1482
1482
|
* @license lucide-react v0.466.0 - ISC
|
|
1483
1483
|
*
|
|
@@ -1549,14 +1549,6 @@ lucide-react/dist/esm/icons/pin.js:
|
|
|
1549
1549
|
* See the LICENSE file in the root directory of this source tree.
|
|
1550
1550
|
*)
|
|
1551
1551
|
|
|
1552
|
-
lucide-react/dist/esm/icons/trash-2.js:
|
|
1553
|
-
(**
|
|
1554
|
-
* @license lucide-react v0.466.0 - ISC
|
|
1555
|
-
*
|
|
1556
|
-
* This source code is licensed under the ISC license.
|
|
1557
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
1558
|
-
*)
|
|
1559
|
-
|
|
1560
1552
|
lucide-react/dist/esm/icons/x.js:
|
|
1561
1553
|
(**
|
|
1562
1554
|
* @license lucide-react v0.466.0 - ISC
|