@prisma/studio-core 0.0.0-dev.202505080306 → 0.0.0-dev.202505080449
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 +34 -26
- package/dist/ui/index.css +3 -3
- package/dist/ui/index.js +10 -2
- package/package.json +1 -1
package/dist/ui/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";var qm=Object.create;var Cn=Object.defineProperty;var Nm=Object.getOwnPropertyDescriptor;var zm=Object.getOwnPropertyNames;var Um=Object.getPrototypeOf,Hm=Object.prototype.hasOwnProperty;var Yo=(e,t)=>()=>(e&&(t=e(e=0)),t);var bn=(e,t)=>{for(var a in t)Cn(e,a,{get:t[a],enumerable:!0})},vn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of zm(t))!Hm.call(e,r)&&r!==a&&Cn(e,r,{get:()=>t[r],enumerable:!(o=Nm(t,r))||o.enumerable});return e},ca=(e,t,a)=>(vn(e,t,"default"),a&&vn(a,t,"default")),xe=(e,t,a)=>(a=e!=null?qm(Um(e)):{},vn(t||!e||!e.__esModule?Cn(a,"default",{value:e,enumerable:!0}):a,e)),_m=e=>vn(Cn({},"__esModule",{value:!0}),e);var b=Yo(()=>{});function nu(e){let t=String(e),a=t.length-1;return ee.context.id+(a?String.fromCharCode(96+a):"")+t}function io(e){ee.context=e}function Sg(){return{...ee.context,id:ee.getNextContextId(),count:0}}function Qt(e,t){let a=be,o=le,r=e.length===0,n=t===void 0?o:t,s=r?Cu:{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({},An,t):An;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)),ku(a,r));return[Iu.bind(a),o]}function Tn(e,t,a){let o=Bn(e,t,!0,ht);Oo&&q&&q.running?Ne.push(o):Bo(o)}function W(e,t,a){let o=Bn(e,t,!1,ht);Oo&&q&&q.running?Ne.push(o):Bo(o)}function Q(e,t,a){vu=Dg;let o=Bn(e,t,!1,ht),r=Ir&&ze(Ir);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({},An,a):An;let o=Bn(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=a.equals||void 0,Oo&&q&&q.running?(o.tState=ht,Ne.push(o)):Bo(o),Iu.bind(o)}function kg(e){return e&&typeof e=="object"&&"then"in e}function Pg(e,t,a){let o,r,n;o=!0,r=e,n={};let s=null,i=Us,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");ee.context&&(l=ee.getNextContextId(),n.ssrLoadFrom==="initial"?i=n.initialValue:ee.load&&ee.has(l)&&(i=ee.load(l)));function E(I,H,F,re){return s===I&&(s=null,re!==void 0&&(c=!0),(I===i||H===i)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(re,{value:H})),i=Us,q&&I&&u?(q.promises.delete(I),u=!1,ct(()=>{q.running=!0,D(H,F)},!1)):D(H,F)),H}function D(I,H){ct(()=>{H===void 0&&g(()=>I),L(H!==void 0?"errored":c?"ready":"unresolved"),x(H);for(let F of f.keys())F.decrement();f.clear()},!1)}function A(){let I=Ir&&ze(Ir),H=m(),F=h();if(F!==void 0&&!s)throw F;return be&&!be.user&&I&&Tn(()=>{y(),s&&(I.resolved&&q&&u?q.promises.add(s):f.has(I)||(I.increment(),f.add(I)))}),H}function S(I=!0){if(I!==!1&&d)return;d=!1;let H=p?p():o;if(u=q&&q.running,H==null||H===!1){E(s,Ie(m));return}q&&s&&q.promises.delete(s);let F=i!==Us?i:Ie(()=>r(H,{value:m(),refetching:I}));return kg(F)?(s=F,"value"in F?(F.status==="success"?E(s,F.value,void 0,H):E(s,void 0,Vs(F.value),H),F):(d=!0,queueMicrotask(()=>d=!1),ct(()=>{L(c?"refreshing":"pending"),C()},!1),F.then(re=>E(F,re,void 0,H),re=>E(F,void 0,Vs(re),H)))):(E(s,F,void 0,H),F)}return Object.defineProperties(A,{state:{get:()=>w()},error:{get:()=>h()},loading:{get(){let I=w();return I==="pending"||I==="refreshing"}},latest:{get(){if(!c)return A();let I=h();if(I&&!s)throw I;return m()}}}),p?Tn(()=>S(!1)):S(!1),[A,{refetch:S,mutate:g}]}function bu(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 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=Ie(()=>t(i,r,s));return r=i,l}}function ma(e){Q(()=>Ie(e))}function Z(e){return le===null||(le.cleanups===null?le.cleanups=[e]:le.cleanups.push(e)),e}function Dn(){return le}function Mg(e,t){let a=le,o=be;le=e,be=null;try{return ct(t,!0)}catch(r){$n(r)}finally{le=a,be=o}}function wu(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||Ir)&&(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 Lu(){return[Rg,wu]}function Qe(e,t){let a=Symbol("context");return{id:a,Provider:Eg(a),defaultValue:e}}function ze(e){let t;return le&&le.context&&(t=le.context[e.id])!==void 0?t:e.defaultValue}function Su(e){let t=k(e),a=k(()=>Gs(t()));return a.toArray=()=>{let o=a();return Array.isArray(o)?o:o!=null?[o]:[]},a}function Iu(){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=Ne;Ne=null,ct(()=>En(this),!1),Ne=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 ku(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?Ne.push(n):tt.push(n),n.observers&&Mu(n)),s?n.tState=ht:n.state=ht)}if(Ne.length>1e6)throw Ne=[],new Error},!1)}return t}function Bo(e){if(!e.fn)return;za(e);let t=On;iu(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,iu(e,e.tValue,t),be=le=null},!1)})}function iu(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,$n(s)}finally{be=n,le=r}(!e.updatedAt||e.updatedAt<=a)&&(e.updatedAt!=null&&"observers"in e?ku(e,o,!0):q&&q.running&&e.pure?(q.sources.add(e),e.tValue=o):e.value=o,e.updatedAt=a)}function Bn(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!==Cu&&(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=()=>wu(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 kr(e){let t=q&&q.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===Sr)return En(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<On);){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)===Sr){let r=Ne;Ne=null,ct(()=>En(e,a[0]),!1),Ne=r}}}function ct(e,t){if(Ne)return e();let a=!1;t||(Ne=[]),tt?a=!0:tt=[],On++;try{let o=e();return Ag(a),o}catch(o){a||(tt=null),Ne=null,$n(o)}}function Ag(e){if(Ne&&(Oo&&q&&q.running?Tg(Ne):Pu(Ne),Ne=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}lu(!1)},!1)}else if(q.running){q.running=!1,q.effects.push.apply(q.effects,tt),tt=null,lu(!0);return}}let a=tt;tt=null,a.length&&ct(()=>vu(a),!1),t&&t()}function Pu(e){for(let t=0;t<e.length;t++)kr(e[t])}function Tg(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,kr(a)},!1),q&&(q.running=!1)}))}}function Dg(e){let t,a=0;for(t=0;t<e.length;t++){let o=e[t];o.user?e[a++]=o:kr(o)}if(ee.context){if(ee.count){ee.effects||(ee.effects=[]),ee.effects.push(...e.slice(0,a));return}io()}for(ee.effects&&(ee.done||!ee.count)&&(e=[...ee.effects,...e],a+=ee.effects.length,delete ee.effects),t=0;t<a;t++)kr(e[t])}function En(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<On)&&kr(r):n===Sr&&En(r,t)}}}function Mu(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=Sr:o.state=Sr,o.pure?Ne.push(o):tt.push(o),o.observers&&Mu(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 Vs(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function uu(e,t,a){try{for(let o of t)o(e)}catch(o){$n(o,a&&a.owner||null)}}function $n(e,t=le){let a=su&&t&&t.context&&t.context[su],o=Vs(e);if(!a)throw o;tt?tt.push({fn(){uu(o,a,t)},state:ht}):uu(o,a,t)}function Gs(e){if(typeof e=="function"&&!e.length)return Gs(e());if(Array.isArray(e)){let t=[];for(let a=0;a<e.length;a++){let o=Gs(e[a]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return t}return e}function Eg(e,t){return function(o){let r;return W(()=>r=Ie(()=>(le.context={...le.context,[e]:o.value},Su(()=>o.children))),void 0),r}}function Fn(e){for(let t=0;t<e.length;t++)e[t]()}function Fg(e,t,a={}){let o=[],r=[],n=[],s=0,i=t.length>1?[]:null;return Z(()=>Fn(n)),()=>{let l=e()||[],u=l.length,d,c;return l[Tr],Ie(()=>{let f,m,g,h,x,y,C,w,L;if(u===0)s!==0&&(Fn(n),n=[],o=[],r=[],s=0,i&&(i=[])),a.fallback&&(o=[Ks],r[0]=Qt(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]=Qt(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]=Qt(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 Og(e,t,a={}){let o=[],r=[],n=[],s=[],i=0,l;return Z(()=>Fn(n)),()=>{let u=e()||[],d=u.length;return u[Tr],Ie(()=>{if(d===0)return i!==0&&(Fn(n),n=[],o=[],r=[],i=0,s=[]),a.fallback&&(o=[Ks],r[0]=Qt(p=>(n[0]=p,a.fallback())),i=1),r;for(o[0]===Ks&&(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]=Qt(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(Bg&&ee.context){let a=ee.context;io(Sg());let o=Ie(()=>e(t||{}));return io(a),o}return Ie(()=>e(t||{}))}function In(){return!0}function Hs(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 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(yu&&t)return new Proxy({get(s){for(let i=e.length-1;i>=0;i--){let l=Hs(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in Hs(e[i]))return!0;return!1},keys(){let s=[];for(let i=0;i<e.length;i++)s.push(...Object.keys(Hs(e[i])));return[...new Set(s)]}},Ws);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(yu&&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)}},Ws));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))}},Ws)),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 Ys(e){let t,a,o=r=>{let n=ee.context;if(n){let[i,l]=N();ee.count||(ee.count=0),ee.count++,(a||(a=e())).then(u=>{!ee.done&&io(n),ee.count--,l(()=>u.default),io()}),t=i}else if(!t){let[i]=Pg(()=>(a||(a=e())).then(l=>l.default));t=i}let s;return k(()=>(s=t())?Ie(()=>{if(!n||ee.done)return s(r);let i=ee.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 ee.context?ee.getNextContextId():`cl-${qg++}`}function Tu(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(Fg(()=>e.each,e.children,t||void 0))}function Du(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(Og(()=>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 Au("Show");return a()})):n}return e.fallback},void 0,void 0)}function Eu(e){let t=Su(()=>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 Au("Match");return n()})):i},void 0,void 0)}function qn(e){return e}function Vg(e,t){let a=_g[e];return typeof a=="object"?a[t]?a.$:void 0:a}function Qg(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 el(e,t,a,o={}){let r;return Qt(n=>{r=n,t===document?e():P(t,e(),t.firstChild?null:void 0,a)},o.owner),()=>{r(),t.textContent=""}}function G(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 Dr(e,t=window.document){let a=t[wr]||(t[wr]=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,Bu))}}function Ou(e=window.document){if(e[wr]){for(let t of e[wr].keys())e.removeEventListener(t,Bu);delete e[wr]}}function O(e,t,a){co(e)||(a==null?e.removeAttribute(t):e.setAttribute(t,a))}function jg(e,t,a,o){co(e)||(o==null?e.removeAttributeNS(t,a):e.setAttributeNS(t,a,o))}function Xg(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 tl(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 Zg(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]||(du(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||(du(e,i,!0),a[i]=l)}return a}function Jg(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 al(e,t={},a,o){let r={};return o||W(()=>r.children=Pr(e,t.children,r.children)),W(()=>typeof t.ref=="function"&&uo(t.ref,e)),W(()=>Yg(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 Pr(e,t,o,a);W(r=>Pr(e,t(),r,a),o)}function Yg(e,t,a,o,r={},n=!1){t||(t={});for(let s in r)if(!(s in t)){if(s==="children")continue;r[s]=cu(e,s,null,r[s],a,n,t)}for(let s in t){if(s==="children")continue;let i=t[s];r[s]=cu(e,s,i,r[s],a,n,t)}}function eh(e){let t,a;return!co()||!(t=ee.registry.get(a=ah()))?e():(ee.completed&&ee.completed.add(t),ee.registry.delete(a),t)}function co(e){return!!ee.context&&!ee.done&&(!e||e.isConnected)}function th(e){return e.toLowerCase().replace(/-([a-z])/g,(t,a)=>a.toUpperCase())}function du(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 cu(e,t,a,o,r,n,s){let i,l,u,d,c;if(t==="style")return Jg(e,a,o);if(t==="classList")return Zg(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=Gg.has(p);if(!f&&o){let m=Array.isArray(o)?o[0]:o;e.removeEventListener(p,m)}(f||a)&&(tl(e,p,a,f),f&&Dr([p]))}else if(t.slice(0,5)==="attr:")O(e,t.slice(5),a);else if(t.slice(0,5)==="bool:")Xg(e,t.slice(5),a);else if((c=t.slice(0,5)==="prop:")||(u=Ug.has(t))||!r&&((d=Vg(t,e.tagName))||(l=zg.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[th(t)]=a:e[d||t]=a}else{let p=r&&t.indexOf(":")>-1&&Wg[t.split(":")[0]];p?jg(e,p,t,a):O(e,Hg[t]||t,a)}return a}function Bu(e){if(ee.registry&&ee.events&&ee.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}}),ee.registry&&!ee.done&&(ee.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 Pr(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=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=Pr(e,l,a,o)}),()=>a;if(Array.isArray(t)){let l=[],u=a&&Array.isArray(a);if(Qs(l,t,a,r))return W(()=>a=Pr(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?fu(e,l,o):Qg(e,a,l):(a&&Ao(e),fu(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 Qs(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=Qs(e,i,l)||r;else if(u==="function")if(o){for(;typeof i=="function";)i=i();r=Qs(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 fu(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 ah(){return ee.getNextContextId()}function $u(e,t=!1){return t?document.createElementNS(oh,e):document.createElement(e)}function ol(e){let{useShadow:t}=e,a=document.createTextNode(""),o=()=>e.mount||document.body,r=Dn(),n,s=!!ee.context;return Q(()=>{s&&(Dn().user=s=!1),n||(n=Mg(r,()=>k(()=>e.children)));let i=o();if(i instanceof HTMLHeadElement){let[l,u]=N(!1),d=()=>u(!0);Qt(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 rh(e,t){let a=k(e);return k(()=>{let o=a();switch(typeof o){case"function":return Ie(()=>o(t));case"string":let r=Kg.has(o),n=ee.context?eh():$u(o,r);return al(n,t,r),n}})}function qu(e){let[,t]=ye(e,["component"]);return rh(()=>e.component,t)}function lh(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 ih(e,t){let a=lh(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 Mn(e,t){return e.indexOf(t)!==-1}function pu(e,t){for(let a=0;a<e.length;a++){let o=e[a];if(t(o))return o}}function Wt(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function Nn(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function Ku(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function Xu(e){if(Mn(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Mn(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Mn(e,"constructor"))throw new Error("constructor is not allowed as a property")}function Zs(e,t,a=[]){if(!e)return;if(!Ua(e)){Fo(e,(n,s)=>Zs(n,t,[...a,...Lr(s)]));return}let[o,r]=e;r&&Fo(r,(n,s)=>{Zs(n,t,[...a,...Lr(s)])}),t(o,a)}function Ph(e,t,a){return Zs(t,(o,r)=>{e=Xs(e,r,n=>Ih(n,o,a))}),e}function Mh(e,t){function a(o,r){let n=kh(e,Lr(r));o.map(Lr).forEach(s=>{e=Xs(e,s,()=>n)})}if(Ua(t)){let[o,r]=t;o.forEach(n=>{e=Xs(e,Lr(n),()=>e)}),r&&Fo(r,a)}else Fo(t,a);return e}function Ah(e,t,a){let o=a.get(e);o?o.push(t):a.set(e,[t])}function Th(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(_s):a[_s(n)]=s.map(_s)}),o?js(a)?[o]:[o,a]:js(a)?void 0:a}function Ju(e){return Object.prototype.toString.call(e).slice(8,-1)}function hu(e){return Ju(e)==="Array"}function Dh(e){if(Ju(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Eh(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 Js(e,t={}){if(hu(e))return e.map(r=>Js(r,t));if(!Dh(e))return e;let a=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...a,...o].reduce((r,n)=>{if(hu(t.props)&&!t.props.includes(n))return r;let s=e[n],i=Js(s,t);return Eh(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 ed(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function td({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 ad(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var ee,xu,Ig,Rn,yu,Tr,An,su,vu,ht,Sr,Cu,Us,le,q,Oo,Eo,be,Ne,tt,On,Rg,lu,Ir,Ks,Bg,Ws,qg,Au,Fu,Ng,zg,Ug,Hg,_g,Gg,Kg,Wg,wr,at,oh,nh,Nu,sh,uh,dh,zu,ch,Mr,js,Ua,fh,ph,mh,gh,Rr,Ar,Uu,hh,xh,mu,yh,vh,Ch,bh,wh,Hu,_s,Lr,_u,Vu,Lh,Gu,Wu,Qu,Sh,gu,ju,Ih,To,kh,Xs,Rh,Zu,pe,rl,Yu,Er,kn,Fh,od,Oh,zn,Pn,rd,Bh,Un,nl,Hn,Na,Do,sl,Fr=Yo(()=>{"use strict";b();ee={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return nu(this.context.count)},getNextContextId(){return nu(this.context.count++)}};xu=!1,Ig=(e,t)=>e===t,Rn=Symbol("solid-proxy"),yu=typeof Proxy=="function",Tr=Symbol("solid-track"),An={equals:Ig},su=null,vu=Pu,ht=1,Sr=2,Cu={owned:null,cleanups:null,context:null,owner:null},Us={},le=null,q=null,Oo=null,Eo=null,be=null,Ne=null,tt=null,On=0;[Rg,lu]=N(!1);Ks=Symbol("fallback");Bg=!1;Ws={get(e,t,a){return t===Rn?a:e.get(t)},has(e,t){return t===Rn?!0:e.has(t)},set:In,deleteProperty:In,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:In,deleteProperty:In}},ownKeys(e){return e.keys()}};qg=0;Au=e=>`Stale read from <${e}>.`;Fu=void 0,Ng=["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"],zg=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Ng]),Ug=new Set(["innerHTML","textContent","innerText","children"]),Hg=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),_g=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}});Gg=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Kg=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"]),Wg={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};wr="_$DX_DELEGATE";at=!1,oh="http://www.w3.org/2000/svg";nh=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()}},Nu=class{constructor(e){this.generateIdentifier=e,this.kv=new nh}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)}},sh=class extends Nu{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)}};uh=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return ih(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},dh=e=>Object.prototype.toString.call(e).slice(8,-1),zu=e=>typeof e>"u",ch=e=>e===null,Mr=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,js=e=>Mr(e)&&Object.keys(e).length===0,Ua=e=>Array.isArray(e),fh=e=>typeof e=="string",ph=e=>typeof e=="number"&&!isNaN(e),mh=e=>typeof e=="boolean",gh=e=>e instanceof RegExp,Rr=e=>e instanceof Map,Ar=e=>e instanceof Set,Uu=e=>dh(e)==="Symbol",hh=e=>e instanceof Date&&!isNaN(e.valueOf()),xh=e=>e instanceof Error,mu=e=>typeof e=="number"&&isNaN(e),yh=e=>mh(e)||ch(e)||zu(e)||ph(e)||fh(e)||Uu(e),vh=e=>typeof e=="bigint",Ch=e=>e===1/0||e===-1/0,bh=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),wh=e=>e instanceof URL,Hu=e=>e.replace(/\./g,"\\."),_s=e=>e.map(String).map(Hu).join("."),Lr=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};_u=[Wt(zu,"undefined",()=>null,()=>{}),Wt(vh,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),Wt(hh,"Date",e=>e.toISOString(),e=>new Date(e)),Wt(xh,"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}),Wt(gh,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),Wt(Ar,"set",e=>[...e.values()],e=>new Set(e)),Wt(Rr,"map",e=>[...e.entries()],e=>new Map(e)),Wt(e=>mu(e)||Ch(e),"number",e=>mu(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Wt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Wt(wh,"URL",e=>e.toString(),e=>new URL(e))];Vu=Nn((e,t)=>Uu(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}),Lh=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Gu=Nn(bh,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let a=Lh[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});Wu=Nn(Ku,(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)}),Qu=Nn((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)}),Sh=[Wu,Vu,Qu,Gu],gu=(e,t)=>{let a=pu(Sh,r=>r.isApplicable(e,t));if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};let o=pu(_u,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},ju={};_u.forEach(e=>{ju[e.annotation]=e});Ih=(e,t,a)=>{if(Ua(t))switch(t[0]){case"symbol":return Vu.untransform(e,t,a);case"class":return Wu.untransform(e,t,a);case"custom":return Qu.untransform(e,t,a);case"typed-array":return Gu.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{let o=ju[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};kh=(e,t)=>{Xu(t);for(let a=0;a<t.length;a++){let o=t[a];if(Ar(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},Xs=(e,t,a)=>{if(Xu(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(Mr(o))o=o[s];else if(Ar(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]):Mr(o)&&(o[r]=a(o[r])),Ar(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)=>Mr(e)||Ua(e)||Rr(e)||Ar(e)||Ku(e,t);Zu=(e,t,a,o,r=[],n=[],s=new Map)=>{let i=yh(e);if(!i){Ah(e,r,t);let f=s.get(e);if(f)return o?{transformedValue:null}:f}if(!Rh(e,a)){let f=gu(e,a),m=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:e};return i||s.set(e,m),m}if(Mn(n,e))return{transformedValue:null};let l=gu(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=Zu(f,t,a,o,[...r,m],[...n,e],s);d[m]=g.transformedValue,Ua(g.annotations)?c[m]=g.annotations:Mr(g.annotations)&&Fo(g.annotations,(h,x)=>{c[Hu(m)+"."+x]=h})});let p=js(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 sh,this.symbolRegistry=new Nu(t=>t.description??""),this.customTransformerRegistry=new uh,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,a=Zu(e,t,this,this.dedupe),o={json:a.transformedValue};a.annotations&&(o.meta={...o.meta,values:a.annotations});let r=Th(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){let{json:t,meta:a}=e,o=Js(t);return a?.values&&(o=Ph(o,a.values,this)),a?.referentialEqualities&&(o=Mh(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);rl=pe.serialize;pe.deserialize;Yu=pe.stringify;pe.parse;pe.registerClass;pe.registerCustom;pe.registerSymbol;pe.allowErrorProps;Er=(e,t=!1)=>{let{json:a}=rl(e);return JSON.stringify(a,null,t?2:void 0)},kn=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,Fh=(e,t)=>e.queryHash.localeCompare(t.queryHash),od=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Oh=(e,t)=>kn(e)===kn(t)?od(e,t):kn(e)>kn(t)?1:-1,zn={status:Oh,"query hash":Fh,"last updated":od},Pn=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,rd=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Bh=(e,t)=>Pn(e)===Pn(t)?rd(e,t):Pn(e)>Pn(t)?1:-1,Un={status:Bh,"last updated":rd},nl=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),Hn=()=>{let[e,t]=N("dark");return ma(()=>{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},sl=(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 Uh(e){return(...t)=>{for(let a of e)a&&a(...t)}}function Hh(e,...t){return typeof e=="function"?e(...t):e}function Vh(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 Gh(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&&ma(()=>{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 ze(Gr)}function Xe(){return ze(Kr)}function t0(e){return e.replace(e0,t=>oc[t])}function id(e,t,a){var o;if(a=a||{},a.threshold=(o=a.threshold)!=null?o:ft.MATCHES,!a.accessors){let s=ud(e,t,a);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:a.threshold,passed:s>=a.threshold}}let r=n0(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=ud(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 ud(e,t,a){return e=dd(e,a),t=dd(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:a0(e).includes(t)?ft.ACRONYM:o0(e,t))}function a0(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(n=>{t+=n.substr(0,1)})}),t}function o0(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 dd(e,t){let{keepDiacritics:a}=t;return e=`${e}`,a||(e=t0(e)),e}function r0(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 n0(e,t){let a=[];for(let o=0,r=t.length;o<r;o++){let n=t[o],s=s0(n),i=r0(e,n);for(let l=0,u=i.length;l<u;l++)a.push({itemValue:i[l],attributes:s})}return a}function s0(e){return typeof e=="function"?cd:{...cd,...e}}function se(e){let t=this||{},a=e.call?e(t.p):e;return c0(a.unshift?a.raw?f0(a,[].slice.call(arguments,1),t.p):a.reduce((o,r)=>Object.assign(o,r&&r.call?r(t.p):r),{}):a,i0(t.target),t.g,t.o,t.k)}function nc(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=nc(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=nc(e))&&(o&&(o+=" "),o+=t);return o}function p0(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]=Lu(),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[Tr],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 Uh(e)}function ml(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return ml(e(),t);if(Array.isArray(e)){let a=[];for(let o of e){let r=ml(o,t);r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}return a.length?a:null}return null}function m0(e,t=pd,a=pd){let o=k(e),r=k(()=>ml(o(),at?a:t));return r.toArray=()=>{let n=r();return Array.isArray(n)?n:n?[n]:[]},r}function g0(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 sc(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function h0(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())}),sc(()=>{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 x0(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()),sc(()=>{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 gd(e){for(let t of e)t.dispose()}function y0(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(()=>gd(r.values())),()=>{let s=e()||[];return s[Tr],Ie(()=>{if(!s.length)return gd(r.values()),r.clear(),o.fallback?[Qt(c=>(r.set(ll,{dispose:c}),o.fallback()))]:[];let i=new Array(s.length),l=r.get(ll);if(!r.size||l){l?.dispose(),r.delete(ll);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){Qt(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 Kn(e){let{by:t}=e;return k(y0(()=>e.each,typeof t=="function"?t:a=>a[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function v0(e,t,a,o){return e.addEventListener(t,a,o),_h(e.removeEventListener.bind(e,t,a,o))}function C0(e,t,a,o){if(at)return;let r=()=>{fl(T(e)).forEach(n=>{n&&fl(T(t)).forEach(s=>v0(n,s,a,o))})};typeof e=="function"?Q(r):W(r)}function b0(e,t){if(at)return{observe:nd,unobserve:nd};let a=new ResizeObserver(e);return Z(a.disconnect.bind(a)),{observe:o=>a.observe(o,t),unobserve:a.unobserve.bind(a)}}function lc(e,t,a){if(at)return;let o=new WeakMap,{observe:r,unobserve:n}=b0(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=zh(fl(T(e)));return Vh(i,s,r,n),i},[])}function hd(e){let t={},a;for(;a=w0.exec(e);)t[a[1]]=a[2];return t}function as(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=hd(e)}else typeof t=="string"&&(t=hd(t));return{...e,...t}}function L0(e,t,a=-1){return a in e?[...e.slice(0,a),t,...e.slice(a)]:[...e,t]}function gl(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function S0(e){return typeof e=="number"}function qo(e){return Object.prototype.toString.call(e)==="[object String]"}function I0(e){return typeof e=="function"}function Wr(e){return t=>`${e()}-${t}`}function kt(e,t){return e?e===t||e.contains(t):!1}function qr(e,t=!1){let{activeElement:a}=Zt(e);if(!a?.nodeName)return null;if(ic(a)&&a.contentDocument)return qr(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=Zt(a).getElementById(o);if(r)return r}}return a}function k0(e){return Zt(e).defaultView||window}function Zt(e){return e?e.ownerDocument||e:document}function ic(e){return e.tagName==="IFRAME"}function kl(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function os(){return kl(/^Mac/i)}function P0(){return kl(/^iPhone/i)}function M0(){return kl(/^iPad/i)||os()&&navigator.maxTouchPoints>1}function R0(){return P0()||M0()}function A0(){return os()||R0()}function Te(e,t){return t&&(I0(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function je(e){return t=>{for(let a of e)Te(t,a)}}function T0(e){return os()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function rt(e){if(e)if(D0())e.focus({preventScroll:!0});else{let t=E0(e);e.focus(),F0(t)}}function D0(){if(_n==null){_n=!1;try{document.createElement("div").focus({get preventScroll(){return _n=!0,!0}})}catch{}}return _n}function E0(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 F0(e){for(let{element:t,scrollTop:a,scrollLeft:o}of e)t.scrollTop=a,t.scrollLeft=o}function dc(e,t){let o=Array.from(e.querySelectorAll(Pl)).filter(xd);return t&&xd(e)&&o.unshift(e),o.forEach((r,n)=>{if(ic(r)&&r.contentDocument){let s=r.contentDocument.body,i=dc(s,!1);o.splice(n,1,...i)}}),o}function xd(e){return cc(e)&&!$0(e)}function cc(e){return e.matches(Pl)&&Ml(e)}function $0(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Ml(e,t){return e.nodeName!=="#comment"&&q0(e)&&N0(e,t)&&(!e.parentElement||Ml(e.parentElement,e))}function q0(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 N0(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function z0(e,t,a){let o=t?.tabbable?B0:Pl,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(n){return t?.from?.contains(n)?NodeFilter.FILTER_REJECT:n.matches(o)&&Ml(n)&&(!t?.accept||t.accept(n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function yd(e){for(;e&&!U0(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function U0(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function H0(){}function _0(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 Cd(){if(typeof window>"u")return;let e=a=>{if(!a.target)return;let o=Or.get(a.target);o||(o=new Set,Or.set(a.target,o),a.target.addEventListener("transitioncancel",t)),o.add(a.propertyName)},t=a=>{if(!a.target)return;let o=Or.get(a.target);if(o&&(o.delete(a.propertyName),o.size===0&&(a.target.removeEventListener("transitioncancel",t),Or.delete(a.target)),Or.size===0)){for(let r of vd)r();vd.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function hl(e,t){let a=bd(e,t,"left"),o=bd(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 bd(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 V0(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let r=yd(e);for(;e&&r&&e!==a&&r!==a;)hl(r,e),e=r,r=yd(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 rs(e,t){let[a,o]=N(wd(t?.()));return Q(()=>{o(e()?.tagName.toLowerCase()||wd(t?.()))}),a}function wd(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(qu,ae(a,{get component(){return t.as}}))}function K0(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":T(a.validationState)==="valid"?"":void 0,"data-invalid":T(a.validationState)==="invalid"?"":void 0,"data-required":T(a.required)?"":void 0,"data-disabled":T(a.disabled)?"":void 0,"data-readonly":T(a.readOnly)?"":void 0}));return{formControlContext:{name:()=>T(a.name)??T(a.id),dataset:f,validationState:()=>T(a.validationState),isRequired:()=>T(a.required),isDisabled:()=>T(a.disabled),isReadOnly:()=>T(a.readOnly),labelId:o,fieldId:n,descriptionId:i,errorMessageId:u,getAriaLabelledBy:c,getAriaDescribedBy:p,generateId:Wr(()=>T(a.id)),registerLabel:Pt(r),registerField:Pt(s),registerDescription:Pt(l),registerErrorMessage:Pt(d)}}}function Qr(){let e=ze(pc);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function mc(e){let t=Qr(),a=ge({id:t.generateId("description")},e);return Q(()=>Z(t.registerDescription(a.id))),v(De,ae({as:"div"},()=>t.dataset(),a))}function gc(e){let t=Qr(),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 W0(e){let t,a=Qr(),o=ge({id:a.generateId("label")},e),[r,n]=ye(o,["ref"]),s=rs(()=>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 Q0(e,t){Q(jt(e,a=>{if(a==null)return;let o=j0(a);o!=null&&(o.addEventListener("reset",t,{passive:!0}),Z(()=>{o.removeEventListener("reset",t)}))}))}function j0(e){return X0(e)?e.form:e.closest("form")}function X0(e){return e.matches("textarea, input, select, button")}function jr(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=Hh(s,r());return Object.is(i,r())||(o()||a(i),e.onChange?.(i)),i})}]}function hc(e){let[t,a]=jr(e);return[()=>t()??!1,a]}function Z0(e){let[t,a]=jr(e);return[()=>t()??[],a]}function J0(e={}){let[t,a]=hc({value:()=>T(e.isSelected),defaultValue:()=>!!T(e.defaultIsSelected),onChange:n=>e.onSelectedChange?.(n)});return{isSelected:t,setIsSelected:n=>{!T(e.isReadOnly)&&!T(e.isDisabled)&&a(n)},toggle:()=>{!T(e.isReadOnly)&&!T(e.isDisabled)&&a(!t())}}}function yc(){return ze(xc)}function ex(){let e=yc();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function vc(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function tx(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&&vc(r,a))return o+1}return 0}function ax(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:vc(i,l)?(o>n&&(a=!0),-1):(o<n&&(a=!0),1)}),a?t.map(([o,r])=>r):e}function Cc(e,t){let a=ax(e);e!==a&&t(a)}function ox(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 Zt(o).body}function rx(e,t){Q(()=>{let a=setTimeout(()=>{Cc(e(),t)});Z(()=>clearTimeout(a))})}function nx(e,t){if(typeof IntersectionObserver!="function"){rx(e,t);return}let a=[];Q(()=>{let o=()=>{let s=!!a.length;a=e(),s&&Cc(e(),t)},r=ox(e()),n=new IntersectionObserver(o,{root:r});for(let s of e()){let i=s.ref();i&&n.observe(i)}Z(()=>n.disconnect())})}function sx(e={}){let[t,a]=Z0({value:()=>T(e.items),onChange:n=>e.onItemsChange?.(n)});nx(t,a);let o=n=>(a(s=>{let i=tx(s,n);return L0(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(xc.Provider,{value:{registerItem:o},get children(){return n.children}})}}function lx(e){let t=ex(),a=ge({shouldRegisterItem:!0},e);Q(()=>{if(!a.shouldRegisterItem)return;let o=t.registerItem(a.getItem());Z(o)})}function bc(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)||S0(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=bc({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 ix(e,t=[]){return k(()=>{let a=bc({dataSource:T(e.dataSource),getKey:T(e.getKey),getTextValue:T(e.getTextValue),getDisabled:T(e.getDisabled),getSectionChildren:T(e.getSectionChildren)});for(let o=0;o<t.length;o++)t[o]();return e.factory(a)})}function cx(e){if(Intl.Locale){let a=new Intl.Locale(e).maximize().script??"";return ux.has(a)}let t=e.split("-")[0];return dx.has(t)}function fx(e){return cx(e)?"rtl":"ltr"}function wc(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:fx(e)}}function Ld(){xl=wc();for(let e of Nr)e(xl)}function px(){let e={locale:"en-US",direction:"ltr"},[t,a]=N(xl),o=k(()=>at?e:t());return ma(()=>{Nr.size===0&&window.addEventListener("languagechange",Ld),Nr.add(a),Z(()=>{Nr.delete(a),Nr.size===0&&window.removeEventListener("languagechange",Ld)})}),{locale:()=>o().locale,direction:()=>o().direction}}function Wa(){let e=px();return ze(mx)||e}function gx(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 il.has(o)&&(r=il.get(o)),r||(r=new Intl.Collator(t(),e),il.set(o,r)),r})}function hx(e){let[t,a]=jr(e);return[()=>t()??new ha,a]}function Sc(e){return A0()?e.altKey:e.ctrlKey}function No(e){return os()?e.metaKey:e.ctrlKey}function Sd(e){return new ha(e)}function xx(e,t){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function yx(e){let t=ge({selectionMode:"none",selectionBehavior:"toggle"},e),[a,o]=N(!1),[r,n]=N(),s=k(()=>{let g=T(t.selectedKeys);return g!=null?Sd(g):g}),i=k(()=>{let g=T(t.defaultSelectedKeys);return g!=null?Sd(g):new ha}),[l,u]=hx({value:s,defaultValue:i,onChange:g=>t.onSelectionChange?.(g)}),[d,c]=N(T(t.selectionBehavior)),p=()=>T(t.selectionMode),f=()=>T(t.disallowEmptySelection)??!1,m=g=>{(T(t.allowDuplicateSelectionEvents)||!xx(g,l()))&&u(g)};return Q(()=>{let g=l();T(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof g=="object"&&g.size===0&&c("replace")}),Q(()=>{c(T(t.selectionBehavior)??"toggle")}),{selectionMode:p,disallowEmptySelection:f,selectionBehavior:d,setSelectionBehavior:c,isFocused:a,setFocused:o,focusedKey:r,setFocusedKey:n,selectedKeys:l,setSelectedKeys:m}}function vx(e){let[t,a]=N(""),[o,r]=N(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(T(e.isDisabled))return;let i=T(e.keyboardDelegate),l=T(e.selectionManager);if(!i.getKeyForSearch)return;let u=Cx(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&&bx(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 Cx(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function bx(e){return e.split("").every(t=>t===e[0])}function wx(e,t,a){let r=ae({selectOnFocus:()=>T(e.selectionManager).selectionBehavior()==="replace"},e),n=()=>t(),{direction:s}=Wa(),i={top:0,left:0};C0(()=>T(r.isVirtualized)?void 0:n(),"scroll",()=>{let h=n();h&&(i={top:h.scrollTop,left:h.scrollLeft})});let{typeSelectHandlers:l}=vx({isDisabled:()=>T(r.disallowTypeAhead),keyboardDelegate:()=>T(r.keyboardDelegate),selectionManager:()=>T(r.selectionManager)}),u=()=>T(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=T(r.selectionManager),C=T(r.selectOnFocus),w=A=>{A!=null&&(y.setFocusedKey(A),h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(A):C&&!Sc(h)&&y.replaceSelection(A))},L=T(r.keyboardDelegate),E=T(r.shouldFocusWrap),D=y.focusedKey();switch(h.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(L.getKeyBelow){h.preventDefault();let A;D!=null?A=L.getKeyBelow(D):A=L.getFirstKey?.(),A==null&&E&&(A=L.getFirstKey?.(D)),w(A)}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(L.getKeyAbove){h.preventDefault();let A;D!=null?A=L.getKeyAbove(D):A=L.getLastKey?.(),A==null&&E&&(A=L.getLastKey?.(D)),w(A)}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(L.getKeyLeftOf){h.preventDefault();let A=s()==="rtl",S;D!=null?S=L.getKeyLeftOf(D):S=A?L.getFirstKey?.():L.getLastKey?.(),w(S)}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(L.getKeyRightOf){h.preventDefault();let A=s()==="rtl",S;D!=null?S=L.getKeyRightOf(D):S=A?L.getLastKey?.():L.getFirstKey?.(),w(S)}break}case"Home":if(L.getFirstKey){h.preventDefault();let A=L.getFirstKey(D,No(h));A!=null&&(y.setFocusedKey(A),No(h)&&h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(A):C&&y.replaceSelection(A))}break;case"End":if(L.getLastKey){h.preventDefault();let A=L.getLastKey(D,No(h));A!=null&&(y.setFocusedKey(A),No(h)&&h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(A):C&&y.replaceSelection(A))}break;case"PageDown":if(L.getKeyPageBelow&&D!=null){h.preventDefault();let A=L.getKeyPageBelow(D);w(A)}break;case"PageUp":if(L.getKeyPageAbove&&D!=null){h.preventDefault();let A=L.getKeyPageAbove(D);w(A)}break;case"a":No(h)&&y.selectionMode()==="multiple"&&T(r.disallowSelectAll)!==!0&&(h.preventDefault(),y.selectAll());break;case"Escape":h.defaultPrevented||(h.preventDefault(),T(r.disallowEmptySelection)||y.clearSelection());break;case"Tab":if(!T(r.allowsTabNavigation)){if(h.shiftKey)x.focus();else{let A=z0(x,{tabbable:!0}),S,I;do I=A.lastChild(),I&&(S=I);while(I);S&&!S.contains(document.activeElement)&&rt(S)}break}}},c=h=>{let x=T(r.selectionManager),y=T(r.keyboardDelegate),C=T(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(!T(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),hl(w,L))}}}},p=h=>{let x=T(r.selectionManager);h.currentTarget.contains(h.relatedTarget)||x.setFocused(!1)},f=h=>{n()===h.target&&h.preventDefault()},m=()=>{let h=T(r.autoFocus);if(!h)return;let x=T(r.selectionManager),y=T(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&&!T(r.shouldUseVirtualFocus)&&rt(L)};return ma(()=>{r.deferAutoFocus?setTimeout(m,0):m()}),Q(jt([n,()=>T(r.isVirtualized),()=>T(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&&hl(x,w)}})),{tabIndex:k(()=>{if(!T(r.shouldUseVirtualFocus))return T(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:f,onFocusIn:c,onFocusOut:p}}function Ic(e,t){let a=()=>T(e.selectionManager),o=()=>T(e.key),r=()=>T(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=()=>T(e.disabled)||a().isDisabled(o()),l=()=>!i()&&a().canSelectItem(o()),u=null,d=y=>{l()&&(u=y.pointerType,y.pointerType==="mouse"&&y.button===0&&!T(e.shouldSelectOnPressUp)&&n(y))},c=y=>{l()&&y.pointerType==="mouse"&&y.button===0&&T(e.shouldSelectOnPressUp)&&T(e.allowsDifferentPressOrigin)&&n(y)},p=y=>{l()&&(T(e.shouldSelectOnPressUp)&&!T(e.allowsDifferentPressOrigin)||u!=="mouse")&&n(y)},f=y=>{!l()||!["Enter"," "].includes(y.key)||(Sc(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(()=>T(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 Sx(e){let t=yx(e),o=ix({dataSource:()=>T(e.dataSource),getKey:()=>T(e.getKey),getTextValue:()=>T(e.getTextValue),getDisabled:()=>T(e.getDisabled),getSectionChildren:()=>T(e.getSectionChildren),factory:n=>e.filter?new Id(e.filter(n)):new Id(n)},[()=>e.filter]),r=new Lx(o,t);return Tn(()=>{let n=t.focusedKey();n!=null&&!o().getItem(n)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>r}}function Ur(e){return ya.findIndex(t=>t.node===e)}function Px(e){return ya[Ur(e)]}function Mx(e){return ya[ya.length-1].node===e}function Mc(){return ya.filter(e=>e.isPointerBlocking)}function Rx(){return[...Mc()].slice(-1)[0]}function Rl(){return Mc().length>0}function Rc(e){let t=Ur(Rx()?.node);return Ur(e)<t}function Ax(e){ya.push(e)}function Tx(e){let t=Ur(e);t<0||ya.splice(t,1)}function Dx(){for(let{node:e}of ya)e.style.pointerEvents=Rc(e)?"none":"auto"}function Ex(e){if(Rl()&&!yl){let t=Zt(e);Pc=document.body.style.pointerEvents,t.body.style.pointerEvents="none",yl=!0}}function Fx(e){if(Rl())return;let t=Zt(e);t.body.style.pointerEvents=Pc,t.body.style.length===0&&t.body.removeAttribute("style"),yl=!1}function $x(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?Bx.indexOf(e.type)!==-1:!1}function Al(e){let t,a=ge({type:"button"},e),[o,r]=ye(a,["ref","type","disabled"]),n=rs(()=>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,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 vl(e,t,a){return Ct(e,Xt(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 Ac(e){return e==="x"?"y":"x"}function Tl(e){return e==="y"?"height":"width"}function ho(e){return["top","bottom"].includes(Ga(e))?"y":"x"}function Dl(e){return Ac(ho(e))}function Hx(e,t,a){a===void 0&&(a=!1);let o=Ho(e),r=Dl(e),n=Tl(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=jn(s)),[s,jn(s)]}function _x(e){let t=jn(e);return[Cl(e),t,Cl(t)]}function Cl(e){return e.replace(/start|end/g,t=>Ux[t])}function Vx(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 Gx(e,t,a,o){let r=Ho(e),n=Vx(Ga(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(Cl)))),n}function jn(e){return e.replace(/left|right|bottom|top/g,t=>zx[t])}function Kx(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tc(e){return typeof e!="number"?Kx(e):{top:e,right:e,bottom:e,left:e}}function Xn(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 kd(e,t,a){let{reference:o,floating:r}=e,n=ho(t),s=Dl(t),i=Tl(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 Hr(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=Tc(f),h=i[p?c==="floating"?"reference":"floating":c],x=Xn(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=Xn(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 Pd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Md(e){return Nx.some(t=>e[t]>=0)}async function Zx(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 Dc(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function va(e){var t;return(t=(Dc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dc(e){return e instanceof Node||e instanceof bt(e).Node}function Nt(e){return e instanceof Element||e instanceof bt(e).Element}function Jt(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 Xr(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&!["inline","contents"].includes(r)}function t1(e){return["table","td","th"].includes(_o(e))}function ss(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function El(e){let t=Fl(),a=Nt(e)?zt(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 a1(e){let t=Ka(e);for(;Jt(t)&&!Uo(t);){if(El(t))return t;if(ss(t))return null;t=Ka(t)}return null}function Fl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Uo(e){return["html","body","#document"].includes(_o(e))}function zt(e){return bt(e).getComputedStyle(e)}function ls(e){return Nt(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||va(e);return Rd(t)?t.host:t}function Ec(e){let t=Ka(e);return Uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jt(t)&&Xr(t)?t:Ec(t)}function _r(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=Ec(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=bt(r);return n?t.concat(s,s.visualViewport||[],Xr(r)?r:[],s.frameElement&&a?_r(s.frameElement):[]):t.concat(r,_r(r,[],a))}function Fc(e){let t=zt(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=Jt(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=Qn(a)!==n||Qn(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function Ol(e){return Nt(e)?e:e.contextElement}function zo(e){let t=Ol(e);if(!Jt(t))return Va(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=Fc(t),s=(n?Qn(a.width):a.width)/o,i=(n?Qn(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}function Oc(e){let t=bt(e);return!Fl()||!t.visualViewport?o1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function r1(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=Ol(e),s=Va(1);t&&(o?Nt(o)&&(s=zo(o)):s=zo(e));let i=r1(n,a,o)?Oc(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&&Nt(o)?bt(o):o,m=p,g=m.frameElement;for(;g&&o&&f!==m;){let h=zo(g),x=g.getBoundingClientRect(),y=zt(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 Xn({width:d,height:c,x:l,y:u})}function n1(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=va(o),i=t?ss(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=Va(1),d=Va(0),c=Jt(o);if((c||!c&&!n)&&((_o(o)!=="body"||Xr(s))&&(l=ls(o)),Jt(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 s1(e){return Array.from(e.getClientRects())}function Bc(e){return xo(va(e)).left+ls(e).scrollLeft}function l1(e){let t=va(e),a=ls(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+Bc(e),i=-a.scrollTop;return zt(o).direction==="rtl"&&(s+=Ct(t.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:i}}function i1(e,t){let a=bt(e),o=va(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){n=r.width,s=r.height;let u=Fl();(!u||u&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:i,y:l}}function u1(e,t){let a=xo(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=Jt(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 Ad(e,t,a){let o;if(t==="viewport")o=i1(e,a);else if(t==="document")o=l1(va(e));else if(Nt(t))o=u1(t,a);else{let r=Oc(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Xn(o)}function $c(e,t){let a=Ka(e);return a===t||!Nt(a)||Uo(a)?!1:zt(a).position==="fixed"||$c(a,t)}function d1(e,t){let a=t.get(e);if(a)return a;let o=_r(e,[],!1).filter(i=>Nt(i)&&_o(i)!=="body"),r=null,n=zt(e).position==="fixed",s=n?Ka(e):e;for(;Nt(s)&&!Uo(s);){let i=zt(s),l=El(s);!l&&i.position==="fixed"&&(r=null),(n?!l&&!r:!l&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Xr(s)&&!l&&$c(e,s))?o=o.filter(d=>d!==s):r=i,s=Ka(s)}return t.set(e,o),o}function c1(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?ss(t)?[]:d1(t,this._c):[].concat(a),o],i=s[0],l=s.reduce((u,d)=>{let c=Ad(t,d,r);return u.top=Ct(c.top,u.top),u.right=Xt(c.right,u.right),u.bottom=Xt(c.bottom,u.bottom),u.left=Ct(c.left,u.left),u},Ad(t,i,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function f1(e){let{width:t,height:a}=Fc(e);return{width:t,height:a}}function p1(e,t,a){let o=Jt(t),r=va(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"||Xr(r))&&(i=ls(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=Bc(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 ul(e){return zt(e).position==="static"}function Td(e,t){return!Jt(e)||zt(e).position==="fixed"?null:t?t(e):e.offsetParent}function qc(e,t){let a=bt(e);if(ss(e))return a;if(!Jt(e)){let r=Ka(e);for(;r&&!Uo(r);){if(Nt(r)&&!ul(r))return r;r=Ka(r)}return a}let o=Td(e,t);for(;o&&t1(o)&&ul(o);)o=Td(o,t);return o&&Uo(o)&&ul(o)&&!El(o)?a:o||a1(e)||a}function g1(e){return zt(e).direction==="rtl"}function h1(e,t){let a=null,o,r=va(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=Vn(d),m=Vn(r.clientWidth-(u+c)),g=Vn(r.clientHeight-(d+p)),h=Vn(u),y={rootMargin:-f+"px "+-m+"px "+-g+"px "+-h+"px",threshold:Ct(0,Xt(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 x1(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=Ol(e),d=r||n?[...u?_r(u):[],..._r(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",a,{passive:!0}),n&&x.addEventListener("resize",a)});let c=u&&i?h1(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 $l(){let e=ze(Bl);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function ql(e){let t=$l(),a=ge({size:bl},e),[o,r]=ye(a,["ref","style","size"]),n=()=>t.currentPlacement().split("-")[0],s=P1(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*(bl/o.size),c=()=>`rotate(${k1[n()]} ${Dd} ${Dd}) 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 as({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=I1(),f=p.firstChild;return W(()=>O(f,"transform",c())),p}}))}function P1(e){let[t,a]=N();return Q(()=>{let o=e();o&&a(k0(o).getComputedStyle(o))}),t}function M1(e){let t=$l(),[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 as({position:"absolute",top:0,left:0,"min-width":"max-content"},a.style)}},o))}function Ed(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?Ed(o):e?e.getBoundingClientRect():Ed()}}}function A1(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function D1(e,t){let[a,o]=e.split("-"),r=T1[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 E1(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=[y1(({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(A1))throw new Error("`flip` expects a spaced-delimited list of placements");x.push(C1({padding:t.overflowPadding,fallbackPlacements:E}))}(t.slide||t.overlap)&&x.push(v1({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),x.push(b1({padding:t.overflowPadding,apply({availableWidth:E,availableHeight:D,rects:A}){let S=Math.round(A.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(w1({padding:t.detachedPadding})),m&&x.push(L1({element:m,padding:t.arrowPadding}));let y=await S1(p,f,{placement:t.placement,strategy:"absolute",middleware:x,platform:{...Nc,isRTL:()=>u()==="rtl"}});if(i(y.placement),t.onCurrentPlacementChange?.(y.placement),!f)return;f.style.setProperty("--kb-popper-content-transform-origin",D1(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,A=y.placement.split("-")[0];Object.assign(m.style,{left:E!=null?`${E}px`:"",top:D!=null?`${D}px`:"",[A]:"100%"})}}Q(()=>{let p=l(),f=a();if(!p||!f)return;let m=x1(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(Bl.Provider,{value:c,get children(){return t.children}})}function F1(e){let t=a=>{a.key===Il.Escape&&e.onEscapeKeyDown?.(a)};Q(()=>{if(at||T(e.isDisabled))return;let a=e.ownerDocument?.()??Zt();a.addEventListener("keydown",t),Z(()=>{a.removeEventListener("keydown",t)})})}function O1(e,t){let a,o=H0,r=()=>Zt(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(`[${Wn}]`)||!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(Fd,g,{once:!0});let h=new CustomEvent(Fd,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:c.button===2||T0(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(Od,m,{once:!0});let g=new CustomEvent(Od,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:!1}});f.dispatchEvent(g)};Q(()=>{at||T(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 B1(){return ze(Uc)}function $1(e){let t,a=B1(),[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?.()}};O1({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),F1({ownerDocument:()=>Zt(t),onEscapeKeyDown:c=>{!t||!yt.isTopMostLayer(t)||(o.onEscapeKeyDown?.(c),!c.defaultPrevented&&o.onDismiss&&(c.preventDefault(),o.onDismiss()))}}),ma(()=>{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(Uc.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 Hc(e={}){let[t,a]=hc({value:()=>T(e.open),defaultValue:()=>!!T(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 Vc(){let e=ze(_c);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function Zr(){let e=ze(Gc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function Kc(e){let t=Qr(),a=Vc(),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:Wr(()=>s.id),registerInput:Pt(l),registerLabel:Pt(d),registerDescription:Pt(p),setIsFocused:h,setInputRef:m};return v(Gc.Provider,{value:L,get children(){return v(De,ae({as:"div",role:"group",onPointerDown:C},w,s))}})}function Wc(e){let t=Zr(),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===Il.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),r))}function Qc(e){let t=Zr(),a=ge({id:t.generateId("description")},e);return Q(()=>Z(t.registerDescription(a.id))),v(De,ae({as:"div"},()=>t.dataset(),a))}function jc(e){let t=Zr(),a=ge({id:t.generateId("indicator")},e),[o,r]=ye(a,["ref","forceMount"]),[n,s]=N(),{present:i}=kc({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 Xc(e){let t=Qr(),a=Vc(),o=Zr(),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(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,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 as({...fc},n.style)},get"aria-labelledby"(){return i()},get"aria-describedby"(){return l()},onChange:c,onFocus:p,onBlur:f},()=>o.dataset(),s))}function Zc(e){let t=Zr(),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 Jc(e){return v(W0,ae({as:"span"},e))}function Yc(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"],G0),[i,l]=jr({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:m=>r.onChange?.(m)}),{formControlContext:u}=K0(n);Q0(()=>t,()=>l(r.defaultValue??""));let d=()=>u.getAriaLabelledBy(T(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(pc.Provider,{value:u,get children(){return v(_c.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 T(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 z1(e,t,a){let o=gx({usage:"search",sensitivity:"base"}),r=k(()=>{let n=T(e.keyboardDelegate);return n||new N1(e.collection,t,o)});return wx({selectionManager:()=>T(e.selectionManager),keyboardDelegate:r,autoFocus:()=>T(e.autoFocus),deferAutoFocus:()=>T(e.deferAutoFocus),shouldFocusWrap:()=>T(e.shouldFocusWrap),disallowEmptySelection:()=>T(e.disallowEmptySelection),selectOnFocus:()=>T(e.selectOnFocus),disallowTypeAhead:()=>T(e.disallowTypeAhead),shouldUseVirtualFocus:()=>T(e.shouldUseVirtualFocus),allowsTabNavigation:()=>T(e.allowsTabNavigation),isVirtualized:()=>T(e.isVirtualized),scrollToKey:n=>T(e.scrollToKey)?.(n),orientation:()=>T(e.orientation)},t)}function U1(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=()=>Zt(t()),u=()=>{let m=l().createElement("span");return m.setAttribute("data-focus-trap",""),m.tabIndex=0,Object.assign(m.style,fc),m},d=()=>{let m=t();return m?dc(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=qr(m);return!g||kt(m,g)?!1:cc(g)};Q(()=>{if(at)return;let m=t();if(!m)return;$d.add(r);let g=qr(m);if(!kt(m,g)){let x=new CustomEvent(dl,Bd);m.addEventListener(dl,s),m.dispatchEvent(x),x.defaultPrevented||setTimeout(()=>{rt(c()),qr(m)===g&&rt(m)},0)}Z(()=>{m.removeEventListener(dl,s),setTimeout(()=>{let x=new CustomEvent(cl,Bd);f()&&x.preventDefault(),m.addEventListener(cl,i),m.dispatchEvent(x),x.defaultPrevented||rt(g??l().body),m.removeEventListener(cl,i),$d.remove(r)},0)})}),Q(()=>{if(at)return;let m=t();if(!m||!T(e.trapFocus)||a())return;let g=x=>{let y=x.target;y?.closest(`[${Wn}]`)||(kt(m,y)?n=y:rt(n))},h=x=>{let C=x.relatedTarget??qr(m);C?.closest(`[${Wn}]`)||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||!T(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 _1(e){Q(()=>{T(e.isDisabled)||Z(V1(T(e.targets),T(e.root)))})}function V1(e,t=document.body){let a=new Set(e),o=new Set,r=l=>{for(let p of l.querySelectorAll(`[${H1}], [${Wn}]`))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=Br.get(l)??0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),o.add(l),Br.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=Br.get(l);if(u==null)return;u===1?(l.removeAttribute("aria-hidden"),Br.delete(l)):Br.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 tf(){return ze(ef)}function Ca(){let e=tf();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function Nl(){let e=ze(af);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function Yt(){let e=ze(of);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function zl(e){let t,a=Yt(),o=Ca(),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)})};lx({getItem:()=>({ref:()=>t,type:"item",key:m(),textValue:n.textValue??c()?.textContent??t?.textContent??"",disabled:n.disabled??!1})});let x=Ic({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})),A={isChecked:()=>n.checked,dataset:D,setLabelRef:p,generateId:Wr(()=>s.id),registerLabel:Pt(l),registerDescription:Pt(d)};return v(af.Provider,{value:A,get children(){return v(De,ae({as:"div",ref(S){let I=ut(H=>t=H,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 rf(e){let t=ge({closeOnSelect:!1},e),[a,o]=ye(t,["checked","defaultChecked","onChange","onSelect"]),r=J0({isSelected:()=>a.checked,defaultIsSelected:()=>a.defaultChecked,onSelectedChange:s=>a.onChange?.(s),isDisabled:()=>o.disabled});return v(zl,ae({role:"menuitemcheckbox",get checked(){return r.isSelected()},onSelect:()=>{a.onSelect?.(),r.toggle()}},o))}function is(){return ze(ey)}function nf(e){let t=Yt(),a=Ca(),o=is(),{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=rs(()=>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 _d.first(t.orientation()):x.stopPropagation(),x.preventDefault(),V0(x.currentTarget),a.open("first"),o?.setAutoFocusMenu(!0),o?.setValue(l);break;case _d.last(t.orientation()):x.stopPropagation(),x.preventDefault(),a.open("last");break;case Vr.next(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.nextMenu();break;case Vr.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 sf(){return ze(ty)}function lf(e){let t,a=Yt(),o=Ca(),r=is(),n=sf(),{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=z1({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);U1({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 Vr.next(s(),a.orientation()):C.stopPropagation(),C.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.nextMenu();break;case Vr.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(zc.Positioner,{get children(){return v($1,ae({get disableOutsidePointerEvents(){return k(()=>!!c())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return as({"--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 ay(e){let t,a=Yt(),o=Ca(),[r,n]=ye(e,["ref"]);return Y1({element:()=>t??null,enabled:()=>o.contentPresent()&&a.preventScroll()}),v(lf,ae({ref(s){let i=ut(l=>{t=l},r.ref);typeof i=="function"&&i(s)}},n))}function oy(){let e=ze(uf);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function Ul(e){let t=Yt(),a=ge({id:t.generateId(`group-${xt()}`)},e),[o,r]=N(),n={generateId:Wr(()=>a.id),registerLabelId:Pt(r)};return v(uf.Provider,{value:n,get children(){return v(De,ae({as:"div",role:"group",get"aria-labelledby"(){return o()}},a))}})}function df(e){let t=oy(),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 cf(e){let t=Ca(),a=ge({children:"\u25BC"},e);return v(De,ae({as:"span","aria-hidden":"true"},()=>t.dataset(),a))}function ff(e){return v(zl,ae({role:"menuitem",closeOnSelect:!0},e))}function pf(e){let t=Nl(),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 mf(e){let t=Nl(),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 gf(e){let t=Nl(),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 hf(e){let t=Ca();return v(j,{get when(){return t.contentPresent()},get children(){return v(ol,e)}})}function ry(){let e=ze(xf);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function yf(e){let a=Yt().generateId(`radiogroup-${xt()}`),o=ge({id:a},e),[r,n]=ye(o,["value","defaultValue","onChange","disabled"]),[s,i]=jr({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:u=>r.onChange?.(u)}),l={isDisabled:()=>r.disabled,isSelectedValue:u=>u===s(),setSelectedValue:i};return v(xf.Provider,{value:l,get children(){return v(Ul,n)}})}function vf(e){let t=ry(),a=ge({closeOnSelect:!1},e),[o,r]=ye(a,["value","onSelect"]);return v(zl,ae({role:"menuitemradio",get checked(){return t.isSelectedValue(o.value)},onSelect:()=>{o.onSelect?.(),t.setSelectedValue(o.value)}},r))}function ny(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 sy(e,t){return t?_0([e.clientX,e.clientY],t):!1}function Cf(e){let t=Yt(),a=yc(),o=tf(),r=is(),n=sf(),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),[A,S]=N([]),[I,H]=N([]),{DomCollectionProvider:F}=sx({items:I,onItemsChange:H}),re=Hc({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:te=>i.onOpenChange?.(te)}),{present:fe}=kc({show:()=>t.forceMount()||re.isOpen(),element:()=>y()??null}),J=Sx({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()},Re=te=>{S(et=>[...et,te]);let Ft=o?.registerNestedMenu(te);return()=>{S(et=>gl(et,te)),Ft?.()}},Be=te=>c===d?.side&&sy(te,d?.area),lt=te=>{Be(te)&&te.preventDefault()},$=te=>{Be(te)||Fe()},Oe=te=>{Be(te)&&te.preventDefault()};_1({isDisabled:()=>!(o==null&&re.isOpen()&&t.isModal()),targets:()=>[y(),...A()].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(),...A()])}),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 Ta={dataset:k(()=>({"data-expanded":re.isOpen()?"":void 0,"data-closed":re.isOpen()?void 0:""})),isOpen:re.isOpen,contentPresent:fe,nestedMenus:A,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:Re,registerItemToParentDomCollection:a?.registerItem,registerTriggerId:Pt(f),registerContentId:Pt(g)};return v(F,{get children(){return v(ef.Provider,{value:Ta,get children(){return v(j,{when:n===void 0,get fallback(){return l.children},get children(){return v(zc,ae({anchorRef:h,contentRef:y,onCurrentPlacementChange:D},l))}})}})}})}function bf(e){let{direction:t}=Wa();return v(Cf,ae({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function wf(e){let t=Ca(),a=Yt(),[o,r]=ye(e,["onFocusOutside","onKeyDown"]),{direction:n}=Wa();return v(lf,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=ly.close(n(),a.orientation()).includes(d.key),f=t.parentMenuContext()!=null;c&&p&&f&&(t.close(),rt(t.triggerRef()))}},r))}function Lf(e){let t,a=Yt(),o=Ca(),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=Ic({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:ny(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||iy.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,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 uy(e){let t=is(),a=`menu-${xt()}`,o=ge({id:a,modal:!0},e),[r,n]=ye(o,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=Hc({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:Wr(()=>r.id),value:()=>r.value,orientation:()=>r.orientation??t?.orientation()??"horizontal"};return v(of.Provider,{value:i,get children(){return v(Cf,ae({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},n))}})}function us(e){let t,a=ge({orientation:"horizontal"},e),[o,r]=ye(a,["ref","orientation"]),n=rs(()=>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 Sf(e){let t=Yt(),a=Ca(),[o,r]=ye(e,["onCloseAutoFocus","onInteractOutside"]),n=!1;return v(ay,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 If(e){let t=`dropdownmenu-${xt()}`,a=ge({id:t},e);return v(uy,a)}function Fy(){return py()}function Pf(){return my()}function zr(){return gy()}function Gd(){return hy()}function Kd(){return Hl()}function Oy(){return(()=>{var e=Hl();return e.style.setProperty("transform","rotate(90deg)"),e})()}function By(){return(()=>{var e=Hl();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function $y(){return xy()}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(e){return(()=>{var t=kf(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function Wy(){return ky()}function Qy(){return Py()}function jy(e){return[v(j,{get when(){return e.checked},get children(){var t=kf(),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=My(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function Xy(){return Ry()}function Zy(){return Ay()}function Jy(){return Ty()}function Yy(){return Dy()}function Wd(){let e=xt();return(()=>{var t=Ey(),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,A=D.nextSibling,S=A.firstChild,I=A.nextSibling,H=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,Re=Fe.firstChild,Be=Fe.nextSibling,lt=Be.firstChild,$=lt.nextSibling,Oe=$.nextSibling,Ce=Oe.nextSibling,Ta=Ce.nextSibling,te=Be.nextSibling,Ft=te.firstChild,et=te.nextSibling,Lo=et.firstChild,wt=et.nextSibling,Da=wt.firstChild,ro=Da.nextSibling,na=ro.nextSibling,Kt=na.firstChild,sa=Kt.nextSibling,z=sa.nextSibling,Se=z.nextSibling,it=Se.nextSibling,Pe=it.nextSibling,Le=Pe.nextSibling,Ae=Le.nextSibling,We=Ae.nextSibling,we=We.nextSibling,la=we.nextSibling,ia=la.nextSibling,Ot=wt.nextSibling,no=Ot.firstChild,ua=Ot.nextSibling,so=ua.firstChild,da=ua.nextSibling,Ea=da.firstChild,hn=Ea.nextSibling,jo=da.nextSibling,xn=jo.firstChild,So=jo.nextSibling,yn=So.firstChild,Xo=So.nextSibling,Zo=Xo.firstChild,Jo=Zo.nextSibling,Io=Jo.nextSibling,ki=Io.nextSibling,Pi=ki.nextSibling,Mi=Pi.nextSibling,Ri=Mi.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,$m=Ni.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(H,"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(Re,"filter",`url(#af-${e})`),O(Be,"mask",`url(#f-${e})`),O(Ce,"id",`m-${e}`),O(Ta,"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(Da,"id",`n-${e}`),O(ro,"fill",`url(#n-${e})`),O(Kt,"id",`r-${e}`),O(sa,"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(Ae,"fill",`url(#p-${e})`),O(We,"id",`o-${e}`),O(we,"fill",`url(#o-${e})`),O(la,"id",`l-${e}`),O(ia,"fill",`url(#l-${e})`),O(no,"id",`al-${e}`),O(ua,"id",`d-${e}`),O(so,"filter",`url(#al-${e})`),O(da,"mask",`url(#d-${e})`),O(Ea,"id",`u-${e}`),O(hn,"fill",`url(#u-${e})`),O(xn,"id",`ad-${e}`),O(So,"id",`c-${e}`),O(yn,"filter",`url(#ad-${e})`),O(Xo,"mask",`url(#c-${e})`),O(Zo,"id",`t-${e}`),O(Jo,"fill",`url(#t-${e})`),O(Io,"id",`v-${e}`),O(ki,"stroke",`url(#v-${e})`),O(Pi,"id",`aa-${e}`),O(Mi,"stroke",`url(#aa-${e})`),O(Ri,"id",`w-${e}`),O(Ai,"stroke",`url(#w-${e})`),O(Ti,"id",`ac-${e}`),O(Di,"stroke",`url(#ac-${e})`),O(Ei,"id",`ab-${e}`),O(Fi,"stroke",`url(#ab-${e})`),O(Oi,"id",`y-${e}`),O(Bi,"stroke",`url(#y-${e})`),O($i,"id",`x-${e}`),O(qi,"stroke",`url(#x-${e})`),O(Ni,"id",`z-${e}`),O($m,"stroke",`url(#z-${e})`),t})()}function dv(e,t){let a=0,o=[];for(;a<e.length;)o.push(e.slice(a,a+t)),a=a+t;return o}function Zd(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"&&Zd(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"&&Zd(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),p=k(()=>dv(d(),100)),f=e.dataPath??[];return(()=>{var m=$r();return P(m,v(j,{get when(){return p().length},get children(){return[(()=>{var g=sv(),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(jd,{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=$r();return P(E,v(cv,{get value(){return e.value}}),null),P(E,v(j,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return v(Xd,{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(fv,{get activeQuery(){return e.activeQuery},dataPath:f})}}),null),P(E,v(j,{get when(){return k(()=>!!e.onEdit)()&&!rl(e.value).meta},get children(){var D=nv();return D.$$click=()=>{e.onEdit?.()},P(D,v(Gy,{})),W(()=>B(D,o().actionButton)),D}}),null),W(()=>B(E,o().actions)),E}}),null),W(E=>{var D=o().expanderButtonContainer,A=o().expanderButton,S=o().info;return D!==E.e&&B(g,E.e=D),A!==E.t&&B(h,E.t=A),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=$r();return P(g,v(Kn,{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=$r();return P(g,v(Du,{get each(){return p()},children:(h,x)=>(()=>{var y=uv(),C=y.firstChild,w=C.firstChild,L=w.firstChild,E=L.nextSibling,D=E.nextSibling,A=D.nextSibling;return A.nextSibling,w.$$click=()=>u(S=>S.includes(x)?S.filter(I=>I!==x):[...S,x]),P(w,v(jd,{get expanded(){return l().includes(x)}}),L),P(w,x*100,E),P(w,x*100+100-1,A),P(C,v(j,{get when(){return l().includes(x)},get children(){var S=$r();return P(S,v(Kn,{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,H=o().expanderButton;return I!==S.e&&B(C,S.e=I),H!==S.t&&B(w,S.t=H),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=iv(),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=Qd();return P(y,()=>Er(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=lv();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=Qd();return P(y,v(pv,{get activeQuery(){return e.activeQuery},dataPath:f,get value(){return e.value}}),null),P(y,()=>Er(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(Xd,{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,qh,nd,Nh,zh,T,fl,_h,Yn,Kh,sd,Lt,Wh,go,Ll,Qh,pl,es,jh,ec,Xh,tc,Zh,ld,Jh,Gr,ac,ts,Sl,Kr,oc,Yh,e0,ft,cd,l0,i0,u0,d0,fd,mo,ga,rc,c0,f0,pd,md,ll,w0,Il,_n,uc,O0,Pl,B0,Or,vd,fc,G0,pc,Y0,ns,xc,ux,dx,xl,Nr,mx,il,ha,Lx,Id,ot,Ix,kx,kc,Wn,Pc,yl,ya,yt,Ox,Bx,qx,Nx,Xt,Ct,Qn,Vn,Va,zx,Ux,Wx,Qx,jx,Xx,Jx,Yx,e1,o1,m1,Nc,y1,v1,C1,b1,w1,L1,S1,Bl,I1,bl,Dd,k1,T1,zc,Fd,Od,Uc,It,_c,Gc,q1,N1,dl,cl,Bd,$d,H1,Br,St,Gn,G1,qd,K1,W1,Q1,Nd,zd,j1,X1,Z1,Ud,Hd,wl,J1,Y1,ef,af,of,ey,Vr,_d,ty,uf,xf,ly,Vd,iy,dy,cy,Ue,fy,M,py,my,gy,hy,Hl,xy,yy,vy,Cy,by,wy,Ly,Sy,Iy,kf,ky,Py,My,Ry,Ay,Ty,Dy,Ey,ev,tv,av,ov,rv,nv,$r,sv,lv,Qd,iv,uv,jd,cv,fv,Xd,pv,Mf,Vo,Go,mv,Jr,gv,hv,xv,yv,vv,Cv,bv,wv,Lv,Sv,Iv,kv,Pv,Mv,Rv,Av,Tv,Dv,Ev,Jd,Fv,Rf,Ov,Bv,$v,qv,Nv,zv,Uv,Hv,_v,Vv,vt,ds,_a,Af,qt,_l,$o,Yd,Tf,Gv,Df,Kv,cs,Wv,Qv,jv,Xv,xa,Zv,Jv,Zn,Yv,Je,Jn,eC,$t,Ef,Mt,Rt,Vl=Yo(()=>{"use strict";b();Fr();$h=!at,qh=$h&&!!Fu,nd=()=>{},Nh=e=>e!=null,zh=e=>e.filter(Nh);T=e=>typeof e=="function"&&!e.length?e():e,fl=e=>Array.isArray(e)?e:e?[e]:[];_h=qh?e=>Dn()?Z(e):e:Z;Yn=Gh,Kh=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),sd=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=Kh({_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}${sd(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${sd({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}}),Wh=1024,go=796,Ll=700,Qh="bottom-right",pl="bottom",es="system",jh=!1,ec=500,Xh=500,tc=500,Zh=Object.keys(zn)[0],ld=1,Jh=Object.keys(Un)[0],Gr=Qe({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});ac=Qe(void 0),ts=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="",Ou(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)}}),Dr(["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||Xh))}),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(ac.Provider,{value:n,get children(){return e.children}})},Sl=()=>k(()=>{let t=ze(ac);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),Kr=Qe(()=>"dark");oc={\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"},Yh=Object.keys(oc).join("|"),e0=new RegExp(Yh,"g");ft={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};cd={maxRanking:1/0,minRanking:-1/0};l0={data:""},i0=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||l0,u0=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,d0=/\/\*[^]*?\*\/| +/g,fd=/\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},ga={},rc=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+rc(e[a]);return t}return e},c0=(e,t,a,o,r)=>{let n=rc(e),s=ga[n]||(ga[n]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(n));if(!ga[s]){let l=n!==e?e:(u=>{let d,c,p=[{}];for(;d=u0.exec(u.replace(d0,""));)d[4]?p.shift():d[3]?(c=d[3].replace(fd," ").trim(),p.unshift(p[0][c]=p[0][c]||{})):p[0][d[1]]=d[2].replace(fd," ").trim();return p[0]})(e);ga[s]=mo(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&ga.g?ga.g:null;return a&&(ga.g=ga[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)})(ga[s],t,o,i),s},f0=(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});pd=at?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;md=e=>{let t=g0(e);return p0(m0(()=>e.children).toArray,{appear:e.appear,onChange({added:a,removed:o,finishRemoved:r,list:n}){let s=t();for(let l of a)h0(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)x0(s,e,l,()=>r([l]))}})},ll=Symbol("fallback");w0=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;Il=(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))(Il||{});_n=null;uc=["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'])"],O0=[...uc,'[tabindex]:not([tabindex="-1"]):not([disabled])'],Pl=uc.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",B0=O0.join(':not([hidden]):not([tabindex="-1"]),');Or=new Map,vd=new Set;typeof document<"u"&&(document.readyState!=="loading"?Cd():document.addEventListener("DOMContentLoaded",Cd));fc={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"};G0=["id","name","validationState","required","disabled","readOnly"];pc=Qe();Y0=Object.defineProperty,ns=(e,t)=>{for(var a in t)Y0(e,a,{get:t[a],enumerable:!0})},xc=Qe();ux=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),dx=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);xl=wc(),Nr=new Set;mx=Qe();il=new Map;ha=class Lc extends Set{anchorKey;currentKey;constructor(t,a,o){super(t),t instanceof Lc?(this.anchorKey=a||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=a,this.currentKey=o)}};Lx=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 ha(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 ha(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 ha([t],t,t):new ha;this.state.setSelectedKeys(a)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new ha;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 ha)}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}},Id=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,Ix=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}},kx=Ix,kc=kx,Wn="data-kb-top-layer",yl=!1,ya=[];yt={layers:ya,isTopMostLayer:Mx,hasPointerBlockingLayer:Rl,isBelowPointerBlockingLayer:Rc,addLayer:Ax,removeLayer:Tx,indexOf:Ur,find:Px,assignPointerEventToLayers:Dx,disableBodyPointerEvents:Ex,restoreBodyPointerEvents:Fx},Ox={};ns(Ox,{Button:()=>qx,Root:()=>Al});Bx=["button","color","file","image","reset","submit"];qx=Al,Nx=["top","right","bottom","left"],Xt=Math.min,Ct=Math.max,Qn=Math.round,Vn=Math.floor,Va=e=>({x:e,y:e}),zx={left:"right",right:"left",bottom:"top",top:"bottom"},Ux={start:"end",end:"start"};Wx=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}=kd(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}=kd(u,p,l)),g=-1)}return{x:d,y:c,placement:p,strategy:r,middlewareData:f}};Qx=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=Tc(d),p={x:a,y:o},f=Dl(r),m=Tl(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 A=w/2-L/2,S=D/2-g[m]/2-1,I=Xt(c[x],S),H=Xt(c[y],S),F=I,re=D-g[m]-H,fe=D/2-g[m]/2+A,J=vl(F,fe,re),ne=!l.arrow&&Ho(r)!=null&&fe!==J&&n.reference[m]/2-(fe<F?I:H)-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}}}),jx=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?[jn(i)]:_x(i)),E=m!=="none";!p&&E&&L.push(...Gx(i,g,m,w));let D=[i,...L],A=await Hr(t,h),S=[],I=((o=n.flip)==null?void 0:o.overflows)||[];if(d&&S.push(A[x]),c){let fe=Hx(r,s,w);S.push(A[fe[0]],A[fe[1]])}if(I=[...I,{placement:r,overflows:S}],!S.every(fe=>fe<=0)){var H,F;let fe=(((H=n.flip)==null?void 0:H.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{}}}};Xx=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 Hr(t,{...r,elementContext:"reference"}),s=Pd(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Md(s)}}}case"escaped":{let n=await Hr(t,{...r,altBoundary:!0}),s=Pd(n,a.floating);return{data:{escapedOffsets:s,escaped:Md(s)}}}default:return{}}}}};Jx=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 Zx(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}}}}},Yx=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 Hr(t,l),c=ho(Ga(r)),p=Ac(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=vl(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=vl(y,m,C)}let g=i.fn({...t,[p]:f,[c]:m});return{...g,data:{x:g.x-a,y:g.y-o}}}}},e1=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 Hr(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=Xt(f-l[m],h),C=Xt(p-l[g],x),w=!t.middlewareData.shift,L=y,E=C;if(c?E=d||w?Xt(C,x):x:L=d||w?Xt(y,h):h,w&&!d){let A=Ct(l.left,0),S=Ct(l.right,0),I=Ct(l.top,0),H=Ct(l.bottom,0);c?E=p-2*(A!==0||S!==0?A+S:Ct(l.left,l.right)):L=f-2*(I!==0||H!==0?I+H: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}}:{}}}};o1=Va(0);m1=async function(e){let t=this.getOffsetParent||qc,a=this.getDimensions,o=await a(e.floating);return{reference:p1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};Nc={convertOffsetParentRelativeRectToViewportRelativeRect:n1,getDocumentElement:va,getClippingRect:c1,getOffsetParent:qc,getElementRects:m1,getClientRects:s1,getDimensions:f1,getScale:zo,isElement:Nt,isRTL:g1};y1=Jx,v1=Yx,C1=jx,b1=e1,w1=Xx,L1=Qx,S1=(e,t,a)=>{let o=new Map,r={platform:Nc,...a},n={...r.platform,_c:o};return Wx(e,t,{...r,platform:n})},Bl=Qe();I1=G('<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">'),bl=30,Dd=bl/2,k1={top:180,right:-90,bottom:0,left:90};T1={top:"bottom",right:"left",bottom:"top",left:"right"};zc=Object.assign(E1,{Arrow:ql,Context:Bl,usePopperContext:$l,Positioner:M1});Fd="interactOutside.pointerDownOutside",Od="interactOutside.focusOutside";Uc=Qe();It={};ns(It,{Description:()=>mc,ErrorMessage:()=>gc,Item:()=>Kc,ItemControl:()=>Wc,ItemDescription:()=>Qc,ItemIndicator:()=>jc,ItemInput:()=>Xc,ItemLabel:()=>Zc,Label:()=>Jc,RadioGroup:()=>q1,Root:()=>Yc});_c=Qe();Gc=Qe();q1=Object.assign(Yc,{Description:mc,ErrorMessage:gc,Item:Kc,ItemControl:Wc,ItemDescription:Qc,ItemIndicator:jc,ItemInput:Xc,ItemLabel:Zc,Label:Jc}),N1=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)}}};dl="focusScope.autoFocusOnMount",cl="focusScope.autoFocusOnUnmount",Bd={bubbles:!1,cancelable:!0},$d={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=gl(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=gl(this.stack,e),this.active()?.resume()}};H1="data-live-announcer";Br=new WeakMap,St=[];Gn=new Map,G1=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=Gn.get(e.key);r?r.activeCount++:Gn.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=Gn.get(e.key);if(n){if(n.activeCount!==1){n.activeCount--;return}Gn.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?.()}})})},qd=G1,K1=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},W1=(e,t)=>{let a=getComputedStyle(e),o=t==="x"?a.overflowX:a.overflowY;return o==="auto"||o==="scroll"||e.tagName==="HTML"&&o==="visible"},Q1=(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]=K1(r,t),c=d-l-o*u;(u!==0||c!==0)&&W1(r,t)&&(n+=c,s+=u),r===(a??document.documentElement)?i=!0:r=r._$host??r.parentElement}while(r&&!i);return[n,s]},[Nd,zd]=N([]),j1=e=>Nd().indexOf(e)===Nd().length-1,X1=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)&&(zd(u=>[...u,a]),Z(()=>{zd(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;qd({key:"prevent-scroll",element:u,style:c,properties:p,cleanup:()=>{ot(t.restoreScrollPosition)&&d>0&&window.scrollTo(m,f)}})}else qd({key:"prevent-scroll",element:u,style:{overflow:"hidden"}})}),Q(()=>{!j1(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=Ud(u),r=null,n=null},i=u=>{let d=u.target,c=ot(t.element),p=Z1(u),f=Math.abs(p[0])>Math.abs(p[1])?"x":"y",m=f==="x"?p[0]:p[1],g=Hd(d,f,m,c),h;c&&wl(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=Ud(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=Hd(c,r,n,d);d&&wl(d,c)?p=!f:p=!0}}p&&u.cancelable&&u.preventDefault()}},Z1=e=>[e.deltaX,e.deltaY],Ud=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],Hd=(e,t,a,o)=>{let r=o!==null&&wl(o,e),[n,s]=Q1(e,t,r?o:void 0);return!(a>0&&Math.abs(n)<=1||a<0&&Math.abs(s)<1)},wl=(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},J1=X1,Y1=J1,ef=Qe();af=Qe();of=Qe();ey=Qe();Vr={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Vr.next(e==="ltr"?"rtl":"ltr",t)},_d={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};ty=Qe();uf=Qe();xf=Qe();ly={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};Vd=["Enter"," "],iy={open:(e,t)=>e==="ltr"?[...Vd,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...Vd,t==="horizontal"?"ArrowLeft":"ArrowUp"]};dy={};ns(dy,{Root:()=>us,Separator:()=>cy});cy=us,Ue={};ns(Ue,{Arrow:()=>ql,CheckboxItem:()=>rf,Content:()=>Sf,DropdownMenu:()=>fy,Group:()=>Ul,GroupLabel:()=>df,Icon:()=>cf,Item:()=>ff,ItemDescription:()=>pf,ItemIndicator:()=>mf,ItemLabel:()=>gf,Portal:()=>hf,RadioGroup:()=>yf,RadioItem:()=>vf,Root:()=>If,Separator:()=>us,Sub:()=>bf,SubContent:()=>wf,SubTrigger:()=>Lf,Trigger:()=>nf});fy=Object.assign(If,{Arrow:ql,CheckboxItem:rf,Content:Sf,Group:Ul,GroupLabel:df,Icon:cf,Item:ff,ItemDescription:pf,ItemIndicator:mf,ItemLabel:gf,Portal:hf,RadioGroup:yf,RadioItem:vf,Separator:us,Sub:bf,SubContent:wf,SubTrigger:Lf,Trigger:nf}),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}},py=G('<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>'),my=G('<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>'),gy=G('<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>'),hy=G('<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>'),Hl=G('<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>'),xy=G('<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>'),yy=G('<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>'),vy=G('<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>'),Cy=G('<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">'),by=G('<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">'),wy=G('<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>'),Ly=G('<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>'),Sy=G('<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>'),Iy=G('<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>'),kf=G('<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>'),ky=G('<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>'),Py=G('<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>'),My=G('<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=G('<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>'),Ay=G('<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>'),Ty=G('<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>'),Dy=G('<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>'),Ey=G('<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>');ev=G('<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>'),tv=G('<button title="Copy object to clipboard">'),av=G('<button title="Remove all items"aria-label="Remove all items">'),ov=G('<button title="Delete item"aria-label="Delete item">'),rv=G('<button title="Toggle value"aria-label="Toggle value">'),nv=G('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),$r=G("<div>"),sv=G("<div><button> <span></span> <span> "),lv=G("<input>"),Qd=G("<span>"),iv=G("<div><span>:"),uv=G("<div><div><button> [<!>...<!>]");jd=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Go(a):Vo(a));return(()=>{var r=ev();return W(()=>B(r,U(o().expander,a`
|
|
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 Yo=(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},ca=(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=Yo(()=>{});function su(e){let t=String(e),a=t.length-1;return ee.context.id+(a?String.fromCharCode(96+a):"")+t}function io(e){ee.context=e}function Ig(){return{...ee.context,id:ee.getNextContextId(),count:0}}function Qt(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?Ne.push(o):Bo(o)}function W(e,t,a){let o=$n(e,t,!1,ht);Oo&&q&&q.running?Ne.push(o):Bo(o)}function Q(e,t,a){Cu=Eg;let o=$n(e,t,!1,ht),r=kr&&ze(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,Ne.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=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");ee.context&&(l=ee.getNextContextId(),n.ssrLoadFrom==="initial"?i=n.initialValue:ee.load&&ee.has(l)&&(i=ee.load(l)));function E(I,H,F,re){return s===I&&(s=null,re!==void 0&&(c=!0),(I===i||H===i)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(re,{value:H})),i=Hs,q&&I&&u?(q.promises.delete(I),u=!1,ct(()=>{q.running=!0,D(H,F)},!1)):D(H,F)),H}function D(I,H){ct(()=>{H===void 0&&g(()=>I),L(H!==void 0?"errored":c?"ready":"unresolved"),x(H);for(let F of f.keys())F.decrement();f.clear()},!1)}function A(){let I=kr&&ze(kr),H=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)))}),H}function S(I=!0){if(I!==!1&&d)return;d=!1;let H=p?p():o;if(u=q&&q.running,H==null||H===!1){E(s,Ie(m));return}q&&s&&q.promises.delete(s);let F=i!==Hs?i:Ie(()=>r(H,{value:m(),refetching:I}));return Pg(F)?(s=F,"value"in F?(F.status==="success"?E(s,F.value,void 0,H):E(s,void 0,Gs(F.value),H),F):(d=!0,queueMicrotask(()=>d=!1),ct(()=>{L(c?"refreshing":"pending"),C()},!1),F.then(re=>E(F,re,void 0,H),re=>E(F,void 0,Gs(re),H)))):(E(s,F,void 0,H),F)}return Object.defineProperties(A,{state:{get:()=>w()},error:{get:()=>h()},loading:{get(){let I=w();return I==="pending"||I==="refreshing"}},latest:{get(){if(!c)return A();let I=h();if(I&&!s)throw I;return m()}}}),p?Dn(()=>S(!1)):S(!1),[A,{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 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=Ie(()=>t(i,r,s));return r=i,l}}function ma(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 Rg(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[Ag,Lu]}function Qe(e,t){let a=Symbol("context");return{id:a,Provider:Fg(a),defaultValue:e}}function ze(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(()=>Ks(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=Ne;Ne=null,ct(()=>Fn(this),!1),Ne=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?Ne.push(n):tt.push(n),n.observers&&Ru(n)),s?n.tState=ht:n.state=ht)}if(Ne.length>1e6)throw Ne=[],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=Ne;Ne=null,ct(()=>Fn(e,a[0]),!1),Ne=r}}}function ct(e,t){if(Ne)return e();let a=!1;t||(Ne=[]),tt?a=!0:tt=[],Bn++;try{let o=e();return Tg(a),o}catch(o){a||(tt=null),Ne=null,qn(o)}}function Tg(e){if(Ne&&(Oo&&q&&q.running?Dg(Ne):Mu(Ne),Ne=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(ee.context){if(ee.count){ee.effects||(ee.effects=[]),ee.effects.push(...e.slice(0,a));return}io()}for(ee.effects&&(ee.done||!ee.count)&&(e=[...ee.effects,...e],a+=ee.effects.length,delete ee.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 Ru(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?Ne.push(o):tt.push(o),o.observers&&Ru(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)Au(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 Au(e,t){if(t||(e.tState=0,q.disposed.add(e)),e.owned)for(let a=0;a<e.owned.length;a++)Au(e.owned[a])}function Gs(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=Gs(e);if(!a)throw o;tt?tt.push({fn(){du(o,a,t)},state:ht}):du(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 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=[Ws],r[0]=Qt(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]=Qt(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]=Qt(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=[Ws],r[0]=Qt(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]=Qt(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&&ee.context){let a=ee.context;io(Ig());let o=Ie(()=>e(t||{}));return io(a),o}return Ie(()=>e(t||{}))}function kn(){return!0}function _s(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&&An 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=_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: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&&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=ee.context;if(n){let[i,l]=N();ee.count||(ee.count=0),ee.count++,(a||(a=e())).then(u=>{!ee.done&&io(n),ee.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||ee.done)return s(r);let i=ee.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 ee.context?ee.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 tl(e,t,a,o={}){let r;return Qt(n=>{r=n,t===document?e():P(t,e(),t.firstChild?null:void 0,a)},o.owner),()=>{r(),t.textContent=""}}function G(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 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 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 ol(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=ee.registry.get(a=oh()))?e():(ee.completed&&ee.completed.add(t),ee.registry.delete(a),t)}function co(e){return!!ee.context&&!ee.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)&&(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:")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(ee.registry&&ee.events&&ee.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}}),ee.registry&&!ee.done&&(ee.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=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?pu(e,l,o):jg(e,a,l):(a&&Ao(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=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 pu(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 oh(){return ee.getNextContextId()}function qu(e,t=!1){return t?document.createElementNS(rh,e):document.createElement(e)}function rl(e){let{useShadow:t}=e,a=document.createTextNode(""),o=()=>e.mount||document.body,r=En(),n,s=!!ee.context;return Q(()=>{s&&(En().user=s=!1),n||(n=Rg(r,()=>k(()=>e.children)));let i=o();if(i instanceof HTMLHeadElement){let[l,u]=N(!1),d=()=>u(!0);Qt(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=ee.context?th():qu(o,r);return ol(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 Rn(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 Wt(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(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(!Ua(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 Mh(e,t,a){return Js(t,(o,r)=>{e=Zs(e,r,n=>kh(n,o,a))}),e}function Rh(e,t){function a(o,r){let n=Ph(e,Sr(r));o.map(Sr).forEach(s=>{e=Zs(e,s,()=>n)})}if(Ua(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 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(Vs):a[Vs(n)]=s.map(Vs)}),o?Xs(a)?[o]:[o,a]:Xs(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 Ys(e,t={}){if(xu(e))return e.map(r=>Ys(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=Ys(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 ee,yu,kg,An,vu,Dr,Tn,lu,Cu,ht,Ir,bu,Hs,le,q,Oo,Eo,be,Ne,tt,Bn,Ag,iu,kr,Ws,$g,Qs,Ng,Tu,Ou,zg,Ug,Hg,_g,Vg,Kg,Wg,Qg,Lr,at,rh,sh,zu,lh,dh,ch,Uu,fh,Rr,Xs,Ua,ph,mh,gh,hh,Ar,Tr,Hu,xh,yh,gu,vh,Ch,bh,wh,Lh,_u,Vs,Sr,Vu,Gu,Sh,Ku,Qu,ju,Ih,hu,Xu,kh,To,Ph,Zs,Ah,Ju,pe,nl,ed,Fr,Pn,Oh,rd,Bh,Un,Mn,nd,$h,Hn,sl,_n,Na,Do,ll,Or=Yo(()=>{"use strict";b();ee={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,An=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},Hs={},le=null,q=null,Oo=null,Eo=null,be=null,Ne=null,tt=null,Bn=0;[Ag,iu]=N(!1);Ws=Symbol("fallback");$g=!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()}};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,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,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,Ar=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,"\\."),Vs=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=[Wt(Uu,"undefined",()=>null,()=>{}),Wt(Ch,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),Wt(xh,"Date",e=>e.toISOString(),e=>new Date(e)),Wt(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}),Wt(hh,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),Wt(Tr,"set",e=>[...e.values()],e=>new Set(e)),Wt(Ar,"map",e=>[...e.entries()],e=>new Map(e)),Wt(e=>gu(e)||bh(e),"number",e=>gu(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Wt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Wt(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(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(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(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(Ua(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};Ah=(e,t)=>Rr(e)||Ua(e)||Ar(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(!Ah(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(Rn(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:Rr(g.annotations)&&Fo(g.annotations,(h,x)=>{c[_u(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 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=Ys(t);return a?.values&&(o=Mh(o,a.values,this)),a?.referentialEqualities&&(o=Rh(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;ed=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,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},sl=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),_n=()=>{let[e,t]=N("dark");return ma(()=>{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},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 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&&ma(()=>{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 ze(Kr)}function Xe(){return ze(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 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 g0(e,t=md,a=md){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 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?[Qt(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){Qt(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=()=>{pl(T(e)).forEach(n=>{n&&pl(T(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(pl(T(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 hl(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}=Zt(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=Zt(a).getElementById(o);if(r)return r}}return a}function P0(e){return Zt(e).defaultView||window}function Zt(e){return e?e.ownerDocument||e:document}function uc(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 M0(){return Pl(/^iPhone/i)}function R0(){return Pl(/^iPad/i)||rs()&&navigator.maxTouchPoints>1}function A0(){return M0()||R0()}function T0(){return rs()||A0()}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(Ml)).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(Ml)&&Rl(e)}function q0(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Rl(e,t){return e.nodeName!=="#comment"&&N0(e)&&z0(e,t)&&(!e.parentElement||Rl(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: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 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 xl(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;)xl(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":T(a.validationState)==="valid"?"":void 0,"data-invalid":T(a.validationState)==="invalid"?"":void 0,"data-required":T(a.required)?"":void 0,"data-disabled":T(a.disabled)?"":void 0,"data-readonly":T(a.readOnly)?"":void 0}));return{formControlContext:{name:()=>T(a.name)??T(a.id),dataset:f,validationState:()=>T(a.validationState),isRequired:()=>T(a.required),isDisabled:()=>T(a.disabled),isReadOnly:()=>T(a.readOnly),labelId:o,fieldId:n,descriptionId:i,errorMessageId:u,getAriaLabelledBy:c,getAriaDescribedBy:p,generateId:Qr(()=>T(a.id)),registerLabel:Pt(r),registerField:Pt(s),registerDescription:Pt(l),registerErrorMessage:Pt(d)}}}function jr(){let e=ze(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(jt(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:()=>T(e.isSelected),defaultValue:()=>!!T(e.defaultIsSelected),onChange:n=>e.onSelectedChange?.(n)});return{isSelected:t,setIsSelected:n=>{!T(e.isReadOnly)&&!T(e.isDisabled)&&a(n)},toggle:()=>{!T(e.isReadOnly)&&!T(e.isDisabled)&&a(!t())}}}function vc(){return ze(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 Zt(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:()=>T(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:T(e.dataSource),getKey:T(e.getKey),getTextValue:T(e.getTextValue),getDisabled:T(e.getDisabled),getSectionChildren:T(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(){yl=Lc();for(let e of zr)e(yl)}function mx(){let e={locale:"en-US",direction:"ltr"},[t,a]=N(yl),o=k(()=>at?e:t());return ma(()=>{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 ze(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 ul.has(o)&&(r=ul.get(o)),r||(r=new Intl.Collator(t(),e),ul.set(o,r)),r})}function xx(e){let[t,a]=Xr(e);return[()=>t()??new ha,a]}function Ic(e){return T0()?e.altKey:e.ctrlKey}function No(e){return rs()?e.metaKey:e.ctrlKey}function Id(e){return new ha(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=T(t.selectedKeys);return g!=null?Id(g):g}),i=k(()=>{let g=T(t.defaultSelectedKeys);return g!=null?Id(g):new ha}),[l,u]=xx({value:s,defaultValue:i,onChange:g=>t.onSelectionChange?.(g)}),[d,c]=N(T(t.selectionBehavior)),p=()=>T(t.selectionMode),f=()=>T(t.disallowEmptySelection)??!1,m=g=>{(T(t.allowDuplicateSelectionEvents)||!yx(g,l()))&&u(g)};return Q(()=>{let g=l();T(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof g=="object"&&g.size===0&&c("replace")}),Q(()=>{c(T(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(T(e.isDisabled))return;let i=T(e.keyboardDelegate),l=T(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:()=>T(e.selectionManager).selectionBehavior()==="replace"},e),n=()=>t(),{direction:s}=Wa(),i={top:0,left:0};b0(()=>T(r.isVirtualized)?void 0:n(),"scroll",()=>{let h=n();h&&(i={top:h.scrollTop,left:h.scrollLeft})});let{typeSelectHandlers:l}=Cx({isDisabled:()=>T(r.disallowTypeAhead),keyboardDelegate:()=>T(r.keyboardDelegate),selectionManager:()=>T(r.selectionManager)}),u=()=>T(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=T(r.selectionManager),C=T(r.selectOnFocus),w=A=>{A!=null&&(y.setFocusedKey(A),h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(A):C&&!Ic(h)&&y.replaceSelection(A))},L=T(r.keyboardDelegate),E=T(r.shouldFocusWrap),D=y.focusedKey();switch(h.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(L.getKeyBelow){h.preventDefault();let A;D!=null?A=L.getKeyBelow(D):A=L.getFirstKey?.(),A==null&&E&&(A=L.getFirstKey?.(D)),w(A)}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(L.getKeyAbove){h.preventDefault();let A;D!=null?A=L.getKeyAbove(D):A=L.getLastKey?.(),A==null&&E&&(A=L.getLastKey?.(D)),w(A)}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(L.getKeyLeftOf){h.preventDefault();let A=s()==="rtl",S;D!=null?S=L.getKeyLeftOf(D):S=A?L.getFirstKey?.():L.getLastKey?.(),w(S)}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(L.getKeyRightOf){h.preventDefault();let A=s()==="rtl",S;D!=null?S=L.getKeyRightOf(D):S=A?L.getLastKey?.():L.getFirstKey?.(),w(S)}break}case"Home":if(L.getFirstKey){h.preventDefault();let A=L.getFirstKey(D,No(h));A!=null&&(y.setFocusedKey(A),No(h)&&h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(A):C&&y.replaceSelection(A))}break;case"End":if(L.getLastKey){h.preventDefault();let A=L.getLastKey(D,No(h));A!=null&&(y.setFocusedKey(A),No(h)&&h.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(A):C&&y.replaceSelection(A))}break;case"PageDown":if(L.getKeyPageBelow&&D!=null){h.preventDefault();let A=L.getKeyPageBelow(D);w(A)}break;case"PageUp":if(L.getKeyPageAbove&&D!=null){h.preventDefault();let A=L.getKeyPageAbove(D);w(A)}break;case"a":No(h)&&y.selectionMode()==="multiple"&&T(r.disallowSelectAll)!==!0&&(h.preventDefault(),y.selectAll());break;case"Escape":h.defaultPrevented||(h.preventDefault(),T(r.disallowEmptySelection)||y.clearSelection());break;case"Tab":if(!T(r.allowsTabNavigation)){if(h.shiftKey)x.focus();else{let A=U0(x,{tabbable:!0}),S,I;do I=A.lastChild(),I&&(S=I);while(I);S&&!S.contains(document.activeElement)&&rt(S)}break}}},c=h=>{let x=T(r.selectionManager),y=T(r.keyboardDelegate),C=T(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(!T(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=T(r.selectionManager);h.currentTarget.contains(h.relatedTarget)||x.setFocused(!1)},f=h=>{n()===h.target&&h.preventDefault()},m=()=>{let h=T(r.autoFocus);if(!h)return;let x=T(r.selectionManager),y=T(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&&!T(r.shouldUseVirtualFocus)&&rt(L)};return ma(()=>{r.deferAutoFocus?setTimeout(m,0):m()}),Q(jt([n,()=>T(r.isVirtualized),()=>T(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(!T(r.shouldUseVirtualFocus))return T(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:f,onFocusIn:c,onFocusOut:p}}function kc(e,t){let a=()=>T(e.selectionManager),o=()=>T(e.key),r=()=>T(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=()=>T(e.disabled)||a().isDisabled(o()),l=()=>!i()&&a().canSelectItem(o()),u=null,d=y=>{l()&&(u=y.pointerType,y.pointerType==="mouse"&&y.button===0&&!T(e.shouldSelectOnPressUp)&&n(y))},c=y=>{l()&&y.pointerType==="mouse"&&y.button===0&&T(e.shouldSelectOnPressUp)&&T(e.allowsDifferentPressOrigin)&&n(y)},p=y=>{l()&&(T(e.shouldSelectOnPressUp)&&!T(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(()=>T(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 Ix(e){let t=vx(e),o=ux({dataSource:()=>T(e.dataSource),getKey:()=>T(e.getKey),getTextValue:()=>T(e.getTextValue),getDisabled:()=>T(e.getDisabled),getSectionChildren:()=>T(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 ya.findIndex(t=>t.node===e)}function Mx(e){return ya[Hr(e)]}function Rx(e){return ya[ya.length-1].node===e}function Rc(){return ya.filter(e=>e.isPointerBlocking)}function Ax(){return[...Rc()].slice(-1)[0]}function Al(){return Rc().length>0}function Ac(e){let t=Hr(Ax()?.node);return Hr(e)<t}function Tx(e){ya.push(e)}function Dx(e){let t=Hr(e);t<0||ya.splice(t,1)}function Ex(){for(let{node:e}of ya)e.style.pointerEvents=Ac(e)?"none":"auto"}function Fx(e){if(Al()&&!vl){let t=Zt(e);Mc=document.body.style.pointerEvents,t.body.style.pointerEvents="none",vl=!0}}function Ox(e){if(Al())return;let t=Zt(e);t.body.style.pointerEvents=Mc,t.body.style.length===0&&t.body.removeAttribute("style"),vl=!1}function qx(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?$x.indexOf(e.type)!==-1:!1}function Tl(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 Cl(e,t,a){return Ct(e,Xt(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 Dl(e){return e==="y"?"height":"width"}function ho(e){return["top","bottom"].includes(Ga(e))?"y":"x"}function El(e){return Tc(ho(e))}function _x(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 Vx(e){let t=Xn(e);return[bl(e),t,bl(t)]}function bl(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(bl)))),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=El(t),i=Dl(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 Rd(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 va(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 Nt(e){return e instanceof Element||e instanceof bt(e).Element}function Jt(e){return e instanceof HTMLElement||e instanceof bt(e).HTMLElement}function Ad(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}=zt(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 Fl(e){let t=Ol(),a=Nt(e)?zt(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(;Jt(t)&&!Uo(t);){if(Fl(t))return t;if(ls(t))return null;t=Ka(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 zt(e){return bt(e).getComputedStyle(e)}function is(e){return Nt(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||Ad(e)&&e.host||va(e);return Ad(t)?t.host:t}function Fc(e){let t=Ka(e);return Uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jt(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=zt(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=Jt(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 Nt(e)?e:e.contextElement}function zo(e){let t=Bl(e);if(!Jt(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!Ol()||!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=Bl(e),s=Va(1);t&&(o?Nt(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&&Nt(o)?bt(o):o,m=p,g=m.frameElement;for(;g&&o&&f!==m;){let h=zo(g),x=g.getBoundingClientRect(),y=zt(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=va(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=Jt(o);if((c||!c&&!n)&&((_o(o)!=="body"||Zr(s))&&(l=is(o)),Jt(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(va(e)).left+is(e).scrollLeft}function i1(e){let t=va(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 zt(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=va(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 d1(e,t){let a=xo(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=Jt(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(va(e));else if(Nt(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||!Nt(a)||Uo(a)?!1:zt(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=>Nt(i)&&_o(i)!=="body"),r=null,n=zt(e).position==="fixed",s=n?Ka(e):e;for(;Nt(s)&&!Uo(s);){let i=zt(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&&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=Xt(c.right,u.right),u.bottom=Xt(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=Jt(t),r=va(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 dl(e){return zt(e).position==="static"}function Dd(e,t){return!Jt(e)||zt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Nc(e,t){let a=bt(e);if(ls(e))return a;if(!Jt(e)){let r=Ka(e);for(;r&&!Uo(r);){if(Nt(r)&&!dl(r))return r;r=Ka(r)}return a}let o=Dd(e,t);for(;o&&a1(o)&&dl(o);)o=Dd(o,t);return o&&Uo(o)&&dl(o)&&!Fl(o)?a:o||o1(e)||a}function h1(e){return zt(e).direction==="rtl"}function x1(e,t){let a=null,o,r=va(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,Xt(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=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?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 ql(){let e=ze($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=ge({size:wl},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*(wl/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 R1(e){let t=ql(),[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 A1(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=()=>A1(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:A}){let S=Math.round(A.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,A=y.placement.split("-")[0];Object.assign(m.style,{left:E!=null?`${E}px`:"",top:D!=null?`${D}px`:"",[A]:"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($l.Provider,{value:c,get children(){return t.children}})}function O1(e){let t=a=>{a.key===kl.Escape&&e.onEscapeKeyDown?.(a)};Q(()=>{if(at||T(e.isDisabled))return;let a=e.ownerDocument?.()??Zt();a.addEventListener("keydown",t),Z(()=>{a.removeEventListener("keydown",t)})})}function B1(e,t){let a,o=_0,r=()=>Zt(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||T(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 ze(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:()=>Zt(t),onEscapeKeyDown:c=>{!t||!yt.isTopMostLayer(t)||(o.onEscapeKeyDown?.(c),!c.defaultPrevented&&o.onDismiss&&(c.preventDefault(),o.onDismiss()))}}),ma(()=>{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(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:()=>T(e.open),defaultValue:()=>!!T(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=ze(Vc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function Jr(){let e=ze(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===kl.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(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,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(T(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 T(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=T(e.keyboardDelegate);return n||new z1(e.collection,t,o)});return Lx({selectionManager:()=>T(e.selectionManager),keyboardDelegate:r,autoFocus:()=>T(e.autoFocus),deferAutoFocus:()=>T(e.deferAutoFocus),shouldFocusWrap:()=>T(e.shouldFocusWrap),disallowEmptySelection:()=>T(e.disallowEmptySelection),selectOnFocus:()=>T(e.selectOnFocus),disallowTypeAhead:()=>T(e.disallowTypeAhead),shouldUseVirtualFocus:()=>T(e.shouldUseVirtualFocus),allowsTabNavigation:()=>T(e.allowsTabNavigation),isVirtualized:()=>T(e.isVirtualized),scrollToKey:n=>T(e.scrollToKey)?.(n),orientation:()=>T(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=()=>Zt(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(cl,$d);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,$d);f()&&x.preventDefault(),m.addEventListener(fl,i),m.dispatchEvent(x),x.defaultPrevented||rt(g??l().body),m.removeEventListener(fl,i),qd.remove(r)},0)})}),Q(()=>{if(at)return;let m=t();if(!m||!T(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||!T(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(()=>{T(e.isDisabled)||Z(G1(T(e.targets),T(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 ze(tf)}function Ca(){let e=af();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function zl(){let e=ze(of);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function Yt(){let e=ze(rf);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function Ul(e){let t,a=Yt(),o=Ca(),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})),A={isChecked:()=>n.checked,dataset:D,setLabelRef:p,generateId:Qr(()=>s.id),registerLabel:Pt(l),registerDescription:Pt(d)};return v(of.Provider,{value:A,get children(){return v(De,ae({as:"div",ref(S){let I=ut(H=>t=H,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(Ul,ae({role:"menuitemcheckbox",get checked(){return r.isSelected()},onSelect:()=>{a.onSelect?.(),r.toggle()}},o))}function us(){return ze(ty)}function sf(e){let t=Yt(),a=Ca(),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(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 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(Tl,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 ze(ay)}function uf(e){let t,a=Yt(),o=Ca(),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=Yt(),o=Ca(),[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=ze(df);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function Hl(e){let t=Yt(),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=Ca(),a=ge({children:"\u25BC"},e);return v(De,ae({as:"span","aria-hidden":"true"},()=>t.dataset(),a))}function pf(e){return v(Ul,ae({role:"menuitem",closeOnSelect:!0},e))}function mf(e){let t=zl(),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=zl(),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=zl(),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=Ca();return v(j,{get when(){return t.contentPresent()},get children(){return v(rl,e)}})}function ny(){let e=ze(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=Yt().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(Hl,n)}})}function Cf(e){let t=ny(),a=ge({closeOnSelect:!1},e),[o,r]=ye(a,["value","onSelect"]);return v(Ul,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=Yt(),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),[A,S]=N([]),[I,H]=N([]),{DomCollectionProvider:F}=lx({items:I,onItemsChange:H}),re=_c({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:te=>i.onOpenChange?.(te)}),{present:fe}=Pc({show:()=>t.forceMount()||re.isOpen(),element:()=>y()??null}),Y=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),Y.selectionManager().setFocused(!0),Y.selectionManager().setFocusedKey(void 0))},Fe=()=>{n!=null?setTimeout(()=>ve()):ve()},Re=te=>{S(et=>[...et,te]);let Ft=o?.registerNestedMenu(te);return()=>{S(et=>hl(et,te)),Ft?.()}},Be=te=>c===d?.side&&ly(te,d?.area),lt=te=>{Be(te)&&te.preventDefault()},$=te=>{Be(te)||Fe()},Oe=te=>{Be(te)&&te.preventDefault()};V1({isDisabled:()=>!(o==null&&re.isOpen()&&t.isModal()),targets:()=>[y(),...A()].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(),...A()])}),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 Ta={dataset:k(()=>({"data-expanded":re.isOpen()?"":void 0,"data-closed":re.isOpen()?void 0:""})),isOpen:re.isOpen,contentPresent:fe,nestedMenus:A,currentPlacement:E,pointerGraceTimeoutId:()=>u,autoFocus:w,listState:()=>Y,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:Re,registerItemToParentDomCollection:a?.registerItem,registerTriggerId:Pt(f),registerContentId:Pt(g)};return v(F,{get children(){return v(tf.Provider,{value:Ta,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=Ca(),a=Yt(),[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=Yt(),o=Ca(),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(jt(()=>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=Yt(),a=Ca(),[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 _l()}function By(){return(()=>{var e=_l();return e.style.setProperty("transform","rotate(90deg)"),e})()}function $y(){return(()=>{var e=_l();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=Ry(),a=t.firstChild;return W(()=>O(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function Zy(){return Ay()}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,A=D.nextSibling,S=A.firstChild,I=A.nextSibling,H=I.firstChild,F=I.nextSibling,re=F.nextSibling,fe=re.firstChild,Y=re.nextSibling,ne=Y.firstChild,me=Y.nextSibling,he=me.nextSibling,ve=he.firstChild,Fe=he.nextSibling,Re=Fe.firstChild,Be=Fe.nextSibling,lt=Be.firstChild,$=lt.nextSibling,Oe=$.nextSibling,Ce=Oe.nextSibling,Ta=Ce.nextSibling,te=Be.nextSibling,Ft=te.firstChild,et=te.nextSibling,Lo=et.firstChild,wt=et.nextSibling,Da=wt.firstChild,ro=Da.nextSibling,na=ro.nextSibling,Kt=na.firstChild,sa=Kt.nextSibling,z=sa.nextSibling,Se=z.nextSibling,it=Se.nextSibling,Pe=it.nextSibling,Le=Pe.nextSibling,Ae=Le.nextSibling,We=Ae.nextSibling,we=We.nextSibling,la=we.nextSibling,ia=la.nextSibling,Ot=wt.nextSibling,no=Ot.firstChild,ua=Ot.nextSibling,so=ua.firstChild,da=ua.nextSibling,Ea=da.firstChild,xn=Ea.nextSibling,jo=da.nextSibling,yn=jo.firstChild,So=jo.nextSibling,vn=So.firstChild,Xo=So.nextSibling,Zo=Xo.firstChild,Jo=Zo.nextSibling,Io=Jo.nextSibling,Pi=Io.nextSibling,Mi=Pi.nextSibling,Ri=Mi.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,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(H,"filter",`url(#aj-${e})`),O(F,"mask",`url(#h-${e})`),O(fe,"id",`ag-${e}`),O(Y,"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(Re,"filter",`url(#af-${e})`),O(Be,"mask",`url(#f-${e})`),O(Ce,"id",`m-${e}`),O(Ta,"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(Da,"id",`n-${e}`),O(ro,"fill",`url(#n-${e})`),O(Kt,"id",`r-${e}`),O(sa,"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(Ae,"fill",`url(#p-${e})`),O(We,"id",`o-${e}`),O(we,"fill",`url(#o-${e})`),O(la,"id",`l-${e}`),O(ia,"fill",`url(#l-${e})`),O(no,"id",`al-${e}`),O(ua,"id",`d-${e}`),O(so,"filter",`url(#al-${e})`),O(da,"mask",`url(#d-${e})`),O(Ea,"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(Xo,"mask",`url(#c-${e})`),O(Zo,"id",`t-${e}`),O(Jo,"fill",`url(#t-${e})`),O(Io,"id",`v-${e}`),O(Pi,"stroke",`url(#v-${e})`),O(Mi,"id",`aa-${e}`),O(Ri,"stroke",`url(#aa-${e})`),O(Ai,"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)()&&!nl(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,A=o().expanderButton,S=o().info;return D!==E.e&&B(g,E.e=D),A!==E.t&&B(h,E.t=A),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,A=D.nextSibling;return A.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,A),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,H=o().expanderButton;return I!==S.e&&B(C,S.e=I),H!==S.t&&B(w,S.t=H),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,T,pl,Vh,es,Wh,ld,Lt,Qh,go,Sl,jh,ml,ts,Xh,tc,Zh,ac,Jh,id,Yh,Kr,oc,as,Il,Wr,rc,e0,t0,ft,fd,i0,u0,d0,c0,pd,mo,ga,nc,f0,p0,md,gd,il,L0,kl,Vn,dc,B0,Ml,$0,Br,Cd,pc,K0,mc,ex,ss,yc,dx,cx,yl,zr,gx,ul,ha,Sx,kd,ot,kx,Px,Pc,Qn,Mc,vl,ya,yt,Bx,$x,Nx,zx,Xt,Ct,jn,Gn,Va,Ux,Hx,Qx,jx,Xx,Zx,Yx,e1,t1,r1,g1,zc,v1,C1,b1,w1,L1,S1,I1,$l,k1,wl,Ed,P1,D1,Uc,Od,Bd,Hc,It,Vc,Kc,N1,z1,cl,fl,$d,qd,_1,$r,St,Kn,K1,Nd,W1,Q1,j1,zd,Ud,X1,Z1,J1,Hd,_d,Ll,Y1,ey,tf,of,rf,ty,Gr,Vd,ay,df,yf,iy,Gd,uy,cy,fy,Ue,py,M,my,gy,hy,xy,_l,yy,vy,Cy,by,wy,Ly,Sy,Iy,ky,Pf,Py,My,Ry,Ay,Ty,Dy,Ey,Fy,tv,av,ov,rv,nv,sv,qr,lv,iv,jd,uv,dv,Xd,fv,pv,Zd,mv,Rf,Vo,Go,gv,Yr,hv,xv,yv,vv,Cv,bv,wv,Lv,Sv,Iv,kv,Pv,Mv,Rv,Av,Tv,Dv,Ev,Fv,Yd,Ov,Af,Bv,$v,qv,Nv,zv,Uv,Hv,_v,Vv,Gv,vt,cs,_a,Tf,qt,Vl,$o,ec,Df,Kv,Ef,Wv,fs,Qv,jv,Xv,Zv,xa,Jv,Yv,Jn,eC,Je,Yn,tC,$t,Ff,Mt,Rt,Gl=Yo(()=>{"use strict";b();Or();qh=!at,Nh=qh&&!!Ou,sd=()=>{},zh=e=>e!=null,Uh=e=>e.filter(zh);T=e=>typeof e=="function"&&!e.length?e():e,pl=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,Sl=700,jh="bottom-right",ml="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}})},Il=()=>k(()=>{let t=ze(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},ga={},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=ga[n]||(ga[n]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(n));if(!ga[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);ga[s]=mo(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&ga.g?ga.g:null;return a&&(ga.g=ga[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)})(ga[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]))}})},il=Symbol("fallback");L0=/((?:--)?(?:\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;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])'],Ml=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"]);yl=Lc(),zr=new Set;gx=Qe();ul=new Map;ha=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 ha(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 ha(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 ha([t],t,t):new ha;this.state.setSelectedKeys(a)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new ha;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 ha)}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",vl=!1,ya=[];yt={layers:ya,isTopMostLayer:Rx,hasPointerBlockingLayer:Al,isBelowPointerBlockingLayer:Ac,addLayer:Tx,removeLayer:Dx,indexOf:Hr,find:Mx,assignPointerEventToLayers:Ex,disableBodyPointerEvents:Fx,restoreBodyPointerEvents:Ox},Bx={};ss(Bx,{Button:()=>Nx,Root:()=>Tl});$x=["button","color","file","image","reset","submit"];Nx=Tl,zx=["top","right","bottom","left"],Xt=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=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 A=w/2-L/2,S=D/2-g[m]/2-1,I=Xt(c[x],S),H=Xt(c[y],S),F=I,re=D-g[m]-H,fe=D/2-g[m]/2+A,Y=Cl(F,fe,re),ne=!l.arrow&&Ho(r)!=null&&fe!==Y&&n.reference[m]/2-(fe<F?I:H)-g[m]/2<0,me=ne?fe<F?fe-F:fe-re:0;return{[f]:p[f]+me,data:{[f]:Y,centerOffset:fe-Y-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],A=await _r(t,h),S=[],I=((o=n.flip)==null?void 0:o.overflows)||[];if(d&&S.push(A[x]),c){let fe=_x(r,s,w);S.push(A[fe[0]],A[fe[1]])}if(I=[...I,{placement:r,overflows:S}],!S.every(fe=>fe<=0)){var H,F;let fe=(((H=n.flip)==null?void 0:H.index)||0)+1,Y=D[fe];if(Y)return{data:{index:fe,overflows:I},reset:{placement:Y}};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:Rd(s)}}}case"escaped":{let n=await _r(t,{...r,altBoundary:!0}),s=Md(n,a.floating);return{data:{escapedOffsets:s,escaped:Rd(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=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}}}}},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=Xt(f-l[m],h),C=Xt(p-l[g],x),w=!t.middlewareData.shift,L=y,E=C;if(c?E=d||w?Xt(C,x):x:L=d||w?Xt(y,h):h,w&&!d){let A=Ct(l.left,0),S=Ct(l.right,0),I=Ct(l.top,0),H=Ct(l.bottom,0);c?E=p-2*(A!==0||S!==0?A+S:Ct(l.left,l.right)):L=f-2*(I!==0||H!==0?I+H: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:va,getClippingRect:f1,getOffsetParent:Nc,getElementRects:g1,getClientRects:l1,getDimensions:p1,getScale:zo,isElement:Nt,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})},$l=Qe();k1=G('<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,Ed=wl/2,P1={top:180,right:-90,bottom:0,left:90};D1={top:"bottom",right:"left",bottom:"top",left:"right"};Uc=Object.assign(F1,{Arrow:Nl,Context:$l,usePopperContext:ql,Positioner:R1});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)}}};cl="focusScope.autoFocusOnMount",fl="focusScope.autoFocusOnUnmount",$d={bubbles:!1,cancelable:!0},qd={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()}};_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&&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=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&&Ll(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&&Ll(o,e),[n,s]=j1(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},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,Ue={};ss(Ue,{Arrow:()=>Nl,CheckboxItem:()=>nf,Content:()=>If,DropdownMenu:()=>py,Group:()=>Hl,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:Nl,CheckboxItem:nf,Content:If,Group:Hl,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=G('<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=G('<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=G('<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=G('<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=G('<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=G('<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=G('<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=G('<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=G('<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=G('<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=G('<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=G('<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=G('<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=G('<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=G('<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=G('<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=G('<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>'),Ry=G('<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>'),Ay=G('<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=G('<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=G('<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=G('<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=G('<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=G('<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=G('<button title="Copy object to clipboard">'),ov=G('<button title="Remove all items"aria-label="Remove all items">'),rv=G('<button title="Delete item"aria-label="Delete item">'),nv=G('<button title="Toggle value"aria-label="Toggle value">'),sv=G('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),qr=G("<div>"),lv=G("<div><button> <span></span> <span> "),iv=G("<input>"),jd=G("<span>"),uv=G("<div><span>:"),dv=G("<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`
|
|
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})()},fv=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=av();return al(s,"click",r()==="NoCopy"?()=>{navigator.clipboard.writeText(ed(e.value)).then(()=>{n("SuccessCopy"),setTimeout(()=>{n("NoCopy")},1500)},i=>{n("ErrorCopy"),setTimeout(()=>{n("NoCopy")},1500)})}:void 0,!0),P(s,v(Fu,{get children(){return[v(Nn,{get when(){return r()==="NoCopy"},get children(){return v(Gy,{})}}),v(Nn,{get when(){return r()==="SuccessCopy"},get children(){return v(Wy,{get theme(){return t()}})}}),v(Nn,{get when(){return r()==="ErrorCopy"},get children(){return v(Qy,{})}})]}})),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})()},pv=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=ov();return n.$$click=()=>{let s=e.activeQuery.state.data,i=Na(s,e.dataPath,[]);r.setQueryData(e.activeQuery.queryKey,i)},P(n,v(jy,{})),W(()=>B(n,o().actionButton)),n})()},Zd=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=rv();return n.$$click=()=>{let s=e.activeQuery.state.data,i=Do(s,e.dataPath);r.setQueryData(e.activeQuery.queryKey,i)},P(n,v(Mf,{})),W(()=>B(n,U(o().actionButton))),n})()},mv=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=nv();return n.$$click=()=>{let s=e.activeQuery.state.data,i=Na(s,e.dataPath,!e.value);r.setQueryData(e.activeQuery.queryKey,i)},P(n,v(Xy,{get theme(){return t()},get checked(){return e.value}})),W(()=>B(n,U(o().actionButton,a`
|
|
8
8
|
width: ${M.size[3.5]};
|
|
9
9
|
height: ${M.size[3.5]};
|
|
10
|
-
`))),n})()};
|
|
10
|
+
`))),n})()};Rf=(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=>Rf("light",e),Go=e=>Rf("dark",e);Er(["click"]);gv=G('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),Yr=G("<div>"),hv=G('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'),xv=G("<select name=tsqd-queries-filter-sort>"),yv=G("<select name=tsqd-mutations-filter-sort>"),vv=G("<span>Asc"),Cv=G("<span>Desc"),bv=G('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),wv=G("<div>Settings"),Lv=G("<span>Position"),Sv=G("<span>Top"),Iv=G("<span>Bottom"),kv=G("<span>Left"),Pv=G("<span>Right"),Mv=G("<span>Theme"),Rv=G("<span>Light"),Av=G("<span>Dark"),Tv=G("<span>System"),Dv=G("<div><div class=tsqd-queries-container>"),Ev=G("<div><div class=tsqd-mutations-container>"),Fv=G('<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>'),Yd=G("<option>Sort by "),Ov=G("<div class=tsqd-query-disabled-indicator>disabled"),Af=G("<button><div></div><code class=tsqd-query-hash>"),Bv=G("<div role=tooltip id=tsqd-status-tooltip>"),$v=G("<span>"),qv=G("<button><span></span><span>"),Nv=G("<button><span></span> Error"),zv=G('<div><span></span>Trigger Error<select><option value=""disabled selected>'),Uv=G('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),Hv=G("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),_v=G('<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">'),Vv=G("<option>"),Gv=G('<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),[_a,Tf]=N(null),[qt,Vl]=N(0),[$o,ec]=N(!1),Df=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||jh),s=k(()=>e.localStore.open==="true"?!0:e.localStore.open==="false"?!1:X().initialIsOpen||Xh),i=k(()=>e.localStore.position||X().position||ml),l;Q(()=>{let d=l.parentElement,c=e.localStore.height||tc,p=e.localStore.width||ac,f=i();d.style.setProperty("--tsqd-panel-height",`${f==="top"?"-":""}${c}px`),d.style.setProperty("--tsqd-panel-width",`${f==="left"?"-":""}${p}px`)}),ma(()=>{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(Kv,{get children(){return v(fs,e)}})}})}}),(()=>{var d=Yr(),c=l;return typeof c=="function"?uo(c,d):l=d,P(d,v(gd,{name:"tsqd-panel-transition",get children(){return v(j,{get when(){return k(()=>!!(s()&&!r().pipWindow))()&&u()=="false"},get children(){return v(Wv,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),P(d,v(gd,{name:"tsqd-button-transition",get children(){return v(j,{get when(){return!s()},get children(){var p=gv(),f=p.firstChild,m=f.nextSibling;return P(f,v(Qd,{})),m.$$click=()=>e.setLocalStore("open","true"),P(m,v(Qd,{})),W(()=>B(p,U(o().devtoolsBtn,o()[`devtoolsBtn-position-${n()}`],"tsqd-open-btn-container"))),p}})}}),null),W(()=>B(d,U(a`
|
|
122
122
|
& .tsqd-panel-transition-exit-active,
|
|
123
123
|
& .tsqd-panel-transition-enter-active {
|
|
124
124
|
transition:
|
|
@@ -144,54 +144,54 @@
|
|
|
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})()]},Kv=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 qt()<go?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,U(r().panel,n(),{[o`
|
|
154
154
|
min-width: min-content;
|
|
155
|
-
`]:qt()<
|
|
155
|
+
`]:qt()<Sl},"tsqd-main-panel"))),s})()},Ef=e=>{let t=Xe(),a=X().shadowDOMTarget?se.bind({target:X().shadowDOMTarget}):se,o=k(()=>t()==="dark"?Rt(a):Mt(a)),r;ma(()=>{ic(r,({width:s},i)=>{i===r&&Vl(s)})});let n=()=>{let{colors:s}=M,i=(l,u)=>t()==="dark"?u:l;return qt()<go?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=
|
|
161
|
+
`};return(()=>{var s=Yr(),i=r;return typeof i=="function"?uo(i,s):r=s,s.style.setProperty("--tsqd-font-size","16px"),P(s,()=>e.children),W(()=>B(s,U(o().parentPanel,n(),{[a`
|
|
162
162
|
min-width: min-content;
|
|
163
|
-
`]:qt()<
|
|
163
|
+
`]:qt()<Sl},"tsqd-main-panel"))),s})()},Wv=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;ma(()=>{ic(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=td("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 qt()<go?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=hv(),c=d.firstChild,p=c.nextSibling,f=l;return typeof f=="function"?uo(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=U(o().panel,o()[`panel-position-${s()}`],u(),{[a`
|
|
170
170
|
min-width: min-content;
|
|
171
|
-
`]:qt()<
|
|
171
|
+
`]:qt()<Sl&&(s()==="right"||s()==="left")},"tsqd-main-panel"),h=s()==="bottom"||s()==="top"?`${e.localStore.height||tc}px`:"auto",x=s()==="right"||s()==="left"?`${e.localStore.width||ac}px`:"auto",y=U(o().dragHandle,o()[`dragHandle-position-${s()}`],"tsqd-drag-handle"),C=U(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=>{eC(),tC();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||Jh),u=k(()=>Number(e.localStore.sortOrder)||id),d=k(()=>e.localStore.mutationSort||Yh),c=k(()=>Number(e.localStore.mutationSortOrder)||id),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(),A=e.localStore.filter?D.filter(I=>ud(I.queryHash,e.localStore.filter||"").passed):[...D];return p()?A.sort((I,H)=>p()(I,H)*u()):A})),C=$t(D=>D().getAll().length,!1),w=k(jt(()=>[C(),e.localStore.mutationFilter,d(),c()],()=>{let D=h().getAll(),A=e.localStore.mutationFilter?D.filter(I=>{let H=`${I.options.mutationKey?JSON.stringify(I.options.mutationKey)+" - ":""}${new Date(I.state.submittedAt).toLocaleString()}`;return ud(H,e.localStore.mutationFilter||"").passed}):[...D];return f()?A.sort((I,H)=>f()(I,H)*c()):A})),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=Fv(),A=D.firstChild,S=A.firstChild,I=S.firstChild,H=I.firstChild,F=H.nextSibling,re=F.firstChild,fe=A.nextSibling,Y=fe.firstChild,ne=Y.firstChild,me=ne.firstChild,he=ne.nextSibling,ve=he.nextSibling,Fe=Y.nextSibling,Re=Fe.firstChild,Be=Re.nextSibling,lt=t;return typeof lt=="function"?uo(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 U(r().viewToggle)},get value(){return s()},onChange:$=>{i($),cs(null),Tf(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(A,v(j,{get when(){return s()==="queries"},get children(){return v(Xv,{})}}),null),P(A,v(j,{get when(){return s()==="mutations"},get children(){return v(Zv,{})}}),null),P(ne,v(Oy,{}),me),me.$$input=$=>{s()==="queries"?e.setLocalStore("filter",$.currentTarget.value):e.setLocalStore("mutationFilter",$.currentTarget.value)},P(he,v(j,{get when(){return s()==="queries"},get children(){var $=xv();return $.addEventListener("change",Oe=>{e.setLocalStore("sort",Oe.currentTarget.value)}),P($,()=>Object.keys(Un).map(Oe=>(()=>{var Ce=Yd();return Ce.firstChild,Ce.value=Oe,P(Ce,Oe,null),Ce})())),W(()=>$.value=l()),$}}),null),P(he,v(j,{get when(){return s()==="mutations"},get children(){var $=yv();return $.addEventListener("change",Oe=>{e.setLocalStore("mutationSort",Oe.currentTarget.value)}),P($,()=>Object.keys(Hn).map(Oe=>(()=>{var Ce=Yd();return Ce.firstChild,Ce.value=Oe,P(Ce,Oe,null),Ce})())),W(()=>$.value=d()),$}}),null),P(he,v(Ur,{}),null),ve.$$click=()=>{s()==="queries"?e.setLocalStore("sortOrder",String(u()*-1)):e.setLocalStore("mutationSortOrder",String(c()*-1))},P(ve,v(j,{get when(){return(s()==="queries"?u():c())===1},get children(){return[vv(),v(Kd,{})]}}),null),P(ve,v(j,{get when(){return(s()==="queries"?u():c())===-1},get children(){return[Cv(),v(Wd,{})]}}),null),Re.$$click=()=>{s()==="queries"?g().clear():h().clear()},P(Re,v(Mf,{})),Be.$$click=()=>{$o()?(m().setOnline(!0),ec(!1)):(m().setOnline(!1),ec(!0))},P(Be,(()=>{var $=k(()=>!!$o());return()=>$()?v(Hy,{}):v(Uy,{})})()),P(Fe,v(j,{get when(){return k(()=>!n().pipWindow)()&&!n().disabled},get children(){var $=bv();return $.$$click=()=>{n().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500))},P($,v(Vy,{})),W(()=>B($,U(r().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),$}}),null),P(Fe,v(Ue.Root,{gutter:4,get children(){return[v(Ue.Trigger,{get class(){return U(r().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},get children(){return v(_y,{})}}),v(Ue.Portal,{ref:$=>E($),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return v(Ue.Content,{get class(){return U(r().settingsMenu,"tsqd-settings-menu")},get children(){return[(()=>{var $=wv();return W(()=>B($,U(r().settingsMenuHeader,"tsqd-settings-menu-header"))),$})(),v(j,{get when(){return!e.showPanelViewOnly},get children(){return v(Ue.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[v(Ue.SubTrigger,{get class(){return U(r().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[Lv(),v(Ur,{})]}}),v(Ue.Portal,{ref:$=>E($),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return v(Ue.SubContent,{get class(){return U(r().settingsMenu,"tsqd-settings-submenu")},get children(){return[v(Ue.Item,{onSelect:()=>{L("top")},as:"button",get class(){return U(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Sv(),v(Kd,{})]}}),v(Ue.Item,{onSelect:()=>{L("bottom")},as:"button",get class(){return U(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[Iv(),v(Wd,{})]}}),v(Ue.Item,{onSelect:()=>{L("left")},as:"button",get class(){return U(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[kv(),v(By,{})]}}),v(Ue.Item,{onSelect:()=>{L("right")},as:"button",get class(){return U(r().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return[Pv(),v($y,{})]}})]}})}})]}})}}),v(Ue.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[v(Ue.SubTrigger,{get class(){return U(r().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[Mv(),v(Ur,{})]}}),v(Ue.Portal,{ref:$=>E($),get mount(){return k(()=>!!n().pipWindow)()?n().pipWindow.document.body:document.body},get children(){return v(Ue.SubContent,{get class(){return U(r().settingsMenu,"tsqd-settings-submenu")},get children(){return[v(Ue.Item,{onSelect:()=>{e.setLocalStore("theme_preference","light")},as:"button",get class(){return U(r().settingsSubButton,e.localStore.theme_preference==="light"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Rv(),v(qy,{})]}}),v(Ue.Item,{onSelect:()=>{e.setLocalStore("theme_preference","dark")},as:"button",get class(){return U(r().settingsSubButton,e.localStore.theme_preference==="dark"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[Av(),v(Ny,{})]}}),v(Ue.Item,{onSelect:()=>{e.setLocalStore("theme_preference","system")},as:"button",get class(){return U(r().settingsSubButton,e.localStore.theme_preference==="system"&&r().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Tv(),v(zy,{})]}})]}})}})]}})]}})}})]}}),null),P(D,v(j,{get when(){return s()==="queries"},get children(){var $=Dv(),Oe=$.firstChild;return P(Oe,v(Wn,{by:Ce=>Ce.queryHash,get each(){return y()},children:Ce=>v(Qv,{get query(){return Ce()}})})),W(()=>B($,U(r().overflowQueryContainer,"tsqd-queries-overflow-container"))),$}}),null),P(D,v(j,{get when(){return s()==="mutations"},get children(){var $=Ev(),Oe=$.firstChild;return P(Oe,v(Wn,{by:Ce=>Ce.mutationId,get each(){return w()},children:Ce=>v(jv,{get mutation(){return Ce()}})})),W(()=>B($,U(r().overflowQueryContainer,"tsqd-mutations-overflow-container"))),$}}),null),W($=>{var Oe=U(r().queriesContainer,qt()<go&&(vt()||_a())&&o`
|
|
172
172
|
height: 50%;
|
|
173
173
|
max-height: 50%;
|
|
174
174
|
`,qt()<go&&!(vt()||_a())&&o`
|
|
175
175
|
height: 100%;
|
|
176
176
|
max-height: 100%;
|
|
177
|
-
`,"tsqd-queries-container"),Ce=U(r().row,"tsqd-header"),Ta=r().logoAndToggleContainer,te=U(r().logo,"tsqd-text-logo-container"),Ft=U(r().tanstackLogo,"tsqd-text-logo-tanstack"),et=U(r().queryFlavorLogo,"tsqd-text-logo-query-flavor"),Lo=U(r().row,"tsqd-filters-actions-container"),wt=U(r().filtersContainer,"tsqd-filters-container"),Da=U(r().filterInput,"tsqd-query-filter-textfield-container"),ro=U("tsqd-query-filter-textfield"),na=U(r().filterSelect,"tsqd-query-filter-sort-container"),Kt=`Sort order ${(s()==="queries"?u():c())===-1?"descending":"ascending"}`,sa=(s()==="queries"?u():c())===-1,z=U(r().actionsContainer,"tsqd-actions-container"),Se=U(r().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),it=`Clear ${s()} cache`,Pe=U(r().actionsBtn,$o()&&r().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),Le=`${$o()?"Unset offline mocking behavior":"Mock offline behavior"}`,Ae=$o(),We=`${$o()?"Unset offline mocking behavior":"Mock offline behavior"}`;return Oe!==$.e&&B(D,$.e=Oe),Ce!==$.t&&B(A,$.t=Ce),Ta!==$.a&&B(S,$.a=Ta),te!==$.o&&B(I,$.o=te),Ft!==$.i&&B(H,$.i=Ft),et!==$.n&&B(F,$.n=et),Lo!==$.s&&B(fe,$.s=Lo),wt!==$.h&&B(
|
|
177
|
+
`,"tsqd-queries-container"),Ce=U(r().row,"tsqd-header"),Ta=r().logoAndToggleContainer,te=U(r().logo,"tsqd-text-logo-container"),Ft=U(r().tanstackLogo,"tsqd-text-logo-tanstack"),et=U(r().queryFlavorLogo,"tsqd-text-logo-query-flavor"),Lo=U(r().row,"tsqd-filters-actions-container"),wt=U(r().filtersContainer,"tsqd-filters-container"),Da=U(r().filterInput,"tsqd-query-filter-textfield-container"),ro=U("tsqd-query-filter-textfield"),na=U(r().filterSelect,"tsqd-query-filter-sort-container"),Kt=`Sort order ${(s()==="queries"?u():c())===-1?"descending":"ascending"}`,sa=(s()==="queries"?u():c())===-1,z=U(r().actionsContainer,"tsqd-actions-container"),Se=U(r().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),it=`Clear ${s()} cache`,Pe=U(r().actionsBtn,$o()&&r().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),Le=`${$o()?"Unset offline mocking behavior":"Mock offline behavior"}`,Ae=$o(),We=`${$o()?"Unset offline mocking behavior":"Mock offline behavior"}`;return Oe!==$.e&&B(D,$.e=Oe),Ce!==$.t&&B(A,$.t=Ce),Ta!==$.a&&B(S,$.a=Ta),te!==$.o&&B(I,$.o=te),Ft!==$.i&&B(H,$.i=Ft),et!==$.n&&B(F,$.n=et),Lo!==$.s&&B(fe,$.s=Lo),wt!==$.h&&B(Y,$.h=wt),Da!==$.r&&B(ne,$.r=Da),ro!==$.d&&B(me,$.d=ro),na!==$.l&&B(he,$.l=na),Kt!==$.u&&O(ve,"aria-label",$.u=Kt),sa!==$.c&&O(ve,"aria-pressed",$.c=sa),z!==$.w&&B(Fe,$.w=z),Se!==$.m&&B(Re,$.m=Se),it!==$.f&&O(Re,"title",$.f=it),Pe!==$.y&&B(Be,$.y=Pe),Le!==$.g&&O(Be,"aria-label",$.g=Le),Ae!==$.p&&O(Be,"aria-pressed",$.p=Ae),We!==$.b&&O(Be,"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(Jv,{})}}),v(j,{get when(){return k(()=>s()==="mutations")()&&_a()},get children(){return v(Yv,{})}})]},Qv=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(()=>ad({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=Af(),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 Ov()}}),null),W(h=>{var x=U(o().queryRow,vt()===e.query.queryHash&&o().selectedQueryRow,"tsqd-query-row"),y=`Query key ${e.query.queryHash}`,C=U(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}})},jv=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=$t(p=>p().getAll().find(g=>g.mutationId===e.mutation.mutationId)?.state),l=$t(p=>{let m=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return m?m.state.isPaused:!1}),u=$t(p=>{let m=p().getAll().find(g=>g.mutationId===e.mutation.mutationId);return m?m.state.status:"idle"}),d=k(()=>po({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=Af(),f=p.firstChild,m=f.nextSibling;return p.$$click=()=>{Tf(e.mutation.mutationId===_a()?null:e.mutation.mutationId)},P(f,v(j,{get when(){return d()==="purple"},get children(){return v(ev,{})}}),null),P(f,v(j,{get when(){return d()==="green"},get children(){return v(Zy,{})}}),null),P(f,v(j,{get when(){return d()==="red"},get children(){return v(Yy,{})}}),null),P(f,v(j,{get when(){return d()==="yellow"},get children(){return v(Jy,{})}}),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=U(o().queryRow,_a()===e.mutation.mutationId&&o().selectedQueryRow,"tsqd-query-row"),x=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,y=U(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}})},Xv=()=>{let e=Je(l=>l().getAll().filter(u=>fo(u)==="stale").length),t=Je(l=>l().getAll().filter(u=>fo(u)==="fresh").length),a=Je(l=>l().getAll().filter(u=>fo(u)==="fetching").length),o=Je(l=>l().getAll().filter(u=>fo(u)==="paused").length),r=Je(l=>l().getAll().filter(u=>fo(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(xa,{label:"Fresh",color:"green",get count(){return t()}}),null),P(l,v(xa,{label:"Fetching",color:"blue",get count(){return a()}}),null),P(l,v(xa,{label:"Paused",color:"purple",get count(){return o()}}),null),P(l,v(xa,{label:"Stale",color:"yellow",get count(){return e()}}),null),P(l,v(xa,{label:"Inactive",color:"gray",get count(){return r()}}),null),W(()=>B(l,U(i().queryStatusContainer,"tsqd-query-status-container"))),l})()},Zv=()=>{let e=$t(i=>i().getAll().filter(l=>po({isPaused:l.state.isPaused,status:l.state.status})==="green").length),t=$t(i=>i().getAll().filter(l=>po({isPaused:l.state.isPaused,status:l.state.status})==="yellow").length),a=$t(i=>i().getAll().filter(l=>po({isPaused:l.state.isPaused,status:l.state.status})==="purple").length),o=$t(i=>i().getAll().filter(l=>po({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(xa,{label:"Paused",color:"purple",get count(){return a()}}),null),P(i,v(xa,{label:"Pending",color:"yellow",get count(){return t()}}),null),P(i,v(xa,{label:"Success",color:"green",get count(){return e()}}),null),P(i,v(xa,{label:"Error",color:"red",get count(){return o()}}),null),W(()=>B(i,U(s().queryStatusContainer,"tsqd-query-status-container"))),i})()},xa=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()&&qt()<Qh&&qt()>go||qt()<go));return(()=>{var f=qv(),m=f.firstChild,g=m.nextSibling,h=i;return typeof h=="function"?uo(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,ae({get disabled(){return p()},get class(){return U(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=Bv();return P(x,()=>e.label),W(()=>B(x,U(o().statusTooltip,"tsqd-query-status-tooltip"))),x}}),m),P(f,v(j,{get when(){return p()},get children(){var x=$v();return P(x,()=>e.label),W(()=>B(x,U(o().queryStatusTagLabel,"tsqd-query-status-tag-label"))),x}}),g),P(g,()=>e.count),W(x=>{var y=U(a`
|
|
195
195
|
width: ${M.size[1.5]};
|
|
196
196
|
height: ${M.size[1.5]};
|
|
197
197
|
border-radius: ${M.border.radius.full};
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
`,"tsqd-query-status-tag-dot"),C=U(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})()},Jv=()=>{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(H=>H.queryHash===vt());return I?fo(I):"inactive"}),y=Je(S=>{let I=S().getAll().find(H=>H.queryHash===vt());return I?I.state.status:"pending"}),C=Je(S=>S().getAll().find(I=>I.queryHash===vt())?.getObserversCount()??0),w=k(()=>od(x())),L=()=>{f()?.fetch()?.catch(()=>{})},E=S=>{let I=S?.initializer(f())??new Error("Unknown error from devtools"),H=f().options;f().setState({status:"error",error:I,fetchMeta:{...f().state.fetchMeta,__previousQueryOptions:H}})},D=()=>{let S=f(),I=S.state,H=S.state.fetchMeta?S.state.fetchMeta.__previousQueryOptions:null;S.cancel({silent:!0}),S.setState({...I,fetchStatus:"idle",fetchMeta:null}),H&&S.fetch(H)};Q(()=>{x()!=="fetching"&&i(!1)});let A=()=>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,13 +207,13 @@
|
|
|
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=_v(),I=S.firstChild,H=I.nextSibling,F=H.firstChild,re=F.firstChild,fe=re.firstChild,Y=re.nextSibling,ne=F.nextSibling,me=ne.firstChild,he=me.nextSibling,ve=ne.nextSibling,Fe=ve.firstChild,Re=Fe.nextSibling,Be=H.nextSibling,lt=Be.nextSibling,$=lt.firstChild,Oe=$.firstChild,Ce=$.nextSibling,Ta=Ce.firstChild,te=Ce.nextSibling,Ft=te.firstChild,et=te.nextSibling,Lo=et.firstChild,wt=et.nextSibling,Da=wt.firstChild,ro=Da.nextSibling,na=lt.nextSibling;na.firstChild;var Kt=na.nextSibling,sa=Kt.nextSibling;return P(fe,()=>Fr(f().queryKey,!0)),P(Y,x),P(he,C),P(Re,()=>new Date(g().dataUpdatedAt).toLocaleTimeString()),$.$$click=L,Ce.$$click=()=>n.invalidateQueries(f()),te.$$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 Se=z.options;z.fetch({...Se,queryFn:()=>new Promise(()=>{}),gcTime:-1}),z.setState({data:void 0,status:"pending",fetchMeta:{...z.state.fetchMeta,__previousQueryOptions:Se}})}},P(wt,()=>y()==="pending"?"Restore":"Trigger",ro),P(lt,v(j,{get when(){return p().length===0||y()==="error"},get children(){var z=Nv(),Se=z.firstChild,it=Se.nextSibling;return z.$$click=()=>{f().state.error?n.resetQueries(f()):E()},P(z,()=>y()==="error"?"Restore":"Trigger",it),W(Pe=>{var Le=U(t`
|
|
211
211
|
color: ${r(o.red[500],o.red[400])};
|
|
212
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 Le!==Pe.e&&B(z,Pe.e=Le),Ae!==Pe.t&&(z.disabled=Pe.t=Ae),We!==Pe.a&&B(Se,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=
|
|
214
|
+
`;return Le!==Pe.e&&B(z,Pe.e=Le),Ae!==Pe.t&&(z.disabled=Pe.t=Ae),We!==Pe.a&&B(Se,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=zv(),Se=z.firstChild,it=Se.nextSibling,Pe=it.nextSibling;return Pe.firstChild,Pe.addEventListener("change",Le=>{let Ae=p().find(We=>We.name===Le.currentTarget.value);E(Ae)}),P(Pe,v(Du,{get each(){return p()},children:Le=>(()=>{var Ae=Vv();return P(Ae,()=>Le.name),W(()=>Ae.value=Le.name),Ae})()}),null),P(z,v(Ur,{}),null),W(Le=>{var Ae=U(a().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),We=t`
|
|
215
215
|
background-color: ${M.colors.red[400]};
|
|
216
|
-
`,we=y()==="pending";return Ae!==Le.e&&B(z,Le.e=Ae),We!==Le.t&&B(Se,Le.t=We),we!==Le.a&&(Pe.disabled=Le.a=we),Le},{e:void 0,t:void 0,a:void 0}),z}}),null),P(na,()=>l()==="view"?"Explorer":"Editor",null),P(S,v(j,{get when(){return l()==="view"},get children(){var z=
|
|
216
|
+
`,we=y()==="pending";return Ae!==Le.e&&B(z,Le.e=Ae),We!==Le.t&&B(Se,Le.t=We),we!==Le.a&&(Pe.disabled=Le.a=we),Le},{e:void 0,t:void 0,a:void 0}),z}}),null),P(na,()=>l()==="view"?"Explorer":"Editor",null),P(S,v(j,{get when(){return l()==="view"},get children(){var z=Uv();return P(z,v(Ha,{label:"Data",defaultExpanded:["Data"],get value(){return h()},editable:!0,onEdit:()=>u("edit"),get activeQuery(){return f()}})),W(Se=>(Se=M.size[2])!=null?z.style.setProperty("padding",Se):z.style.removeProperty("padding")),z}}),Kt),P(S,v(j,{get when(){return l()==="edit"},get children(){var z=Hv(),Se=z.firstChild,it=Se.nextSibling,Pe=it.firstChild,Le=Pe.nextSibling,Ae=Le.firstChild,We=Ae.nextSibling;return z.addEventListener("submit",we=>{we.preventDefault();let ia=new FormData(we.currentTarget).get("data");try{let Ot=JSON.parse(ia);f().setState({...f().state,data:Ot}),u("view")}catch{c(!0)}}),Se.addEventListener("focus",()=>c(!1)),P(Pe,()=>d()?"Invalid Value":""),Ae.$$click=()=>u("view"),W(we=>{var la=U(a().devtoolsEditForm,"tsqd-query-details-data-editor"),ia=a().devtoolsEditTextarea,Ot=d(),no=a().devtoolsEditFormActions,ua=a().devtoolsEditFormError,so=a().devtoolsEditFormActionContainer,da=U(a().devtoolsEditFormAction,t`
|
|
217
217
|
color: ${r(o.gray[600],o.gray[300])};
|
|
218
218
|
`),Ea=U(a().devtoolsEditFormAction,t`
|
|
219
219
|
color: ${r(o.blue[600],o.blue[400])};
|
|
@@ -229,15 +229,15 @@
|
|
|
229
229
|
color: ${r(o.gray[600],o.gray[300])};
|
|
230
230
|
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),da=y()==="pending",Ea=t`
|
|
231
231
|
background-color: ${r(o.gray[600],o.gray[400])};
|
|
232
|
-
`,
|
|
232
|
+
`,xn=U(t`
|
|
233
233
|
color: ${r(o.pink[500],o.pink[400])};
|
|
234
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),jo=x()==="fetching",
|
|
234
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),jo=x()==="fetching",yn=t`
|
|
235
235
|
background-color: ${r(o.pink[500],o.pink[400])};
|
|
236
236
|
`,So=U(t`
|
|
237
237
|
color: ${r(o.cyan[500],o.cyan[400])};
|
|
238
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),
|
|
238
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),vn=s(),Xo=t`
|
|
239
239
|
background-color: ${r(o.cyan[500],o.cyan[400])};
|
|
240
|
-
`,Zo=U(a().detailsHeader,"tsqd-query-details-header"),Jo=U(a().detailsHeader,"tsqd-query-details-header"),Io=M.size[2];return Se!==z.e&&B(S,z.e=Se),it!==z.t&&B(I,z.t=it),Pe!==z.a&&B(H,z.a=Pe),Le!==z.o&&B(
|
|
240
|
+
`,Zo=U(a().detailsHeader,"tsqd-query-details-header"),Jo=U(a().detailsHeader,"tsqd-query-details-header"),Io=M.size[2];return Se!==z.e&&B(S,z.e=Se),it!==z.t&&B(I,z.t=it),Pe!==z.a&&B(H,z.a=Pe),Le!==z.o&&B(Y,z.o=Le),Ae!==z.i&&B(Be,z.i=Ae),We!==z.n&&B(lt,z.n=We),we!==z.s&&B($,z.s=we),la!==z.h&&($.disabled=z.h=la),ia!==z.r&&B(Oe,z.r=ia),Ot!==z.d&&B(Ce,z.d=Ot),no!==z.l&&(Ce.disabled=z.l=no),ua!==z.u&&B(Ta,z.u=ua),so!==z.c&&B(te,z.c=so),da!==z.w&&(te.disabled=z.w=da),Ea!==z.m&&B(Ft,z.m=Ea),xn!==z.f&&B(et,z.f=xn),jo!==z.y&&(et.disabled=z.y=jo),yn!==z.g&&B(Lo,z.g=yn),So!==z.p&&B(wt,z.p=So),vn!==z.b&&(wt.disabled=z.b=vn),Xo!==z.T&&B(Da,z.T=Xo),Zo!==z.A&&B(na,z.A=Zo),Jo!==z.O&&B(Kt,z.O=Jo),Io!==z.I&&((z.I=Io)!=null?sa.style.setProperty("padding",Io):sa.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}})},Yv=()=>{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=$t(d=>{let p=d().getAll().find(f=>f.mutationId===_a());return p?p.state.isPaused:!1}),s=$t(d=>{let p=d().getAll().find(f=>f.mutationId===_a());return p?p.state.status:"idle"}),i=k(()=>po({isPaused:n(),status:s()})),l=$t(d=>d().getAll().find(c=>c.mutationId===_a()),!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=Gv(),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,A=D.nextSibling,S=A.nextSibling,I=S.nextSibling,H=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(Ha,{label:"Variables",defaultExpanded:["Variables"],get value(){return l().state.variables}})),P(D,v(Ha,{label:"Context",defaultExpanded:["Context"],get value(){return l().state.context}})),P(S,v(Ha,{label:"Data",defaultExpanded:["Data"],get value(){return l().state.data}})),P(H,v(Ha,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return l()}})),W(F=>{var re=U(a().detailsContainer,"tsqd-query-details-container"),fe=U(a().detailsHeader,"tsqd-query-details-header"),Y=U(a().detailsBody,"tsqd-query-details-summary-container"),ne=U(a().queryDetailsStatus,u()),me=U(a().detailsHeader,"tsqd-query-details-header"),he=M.size[2],ve=U(a().detailsHeader,"tsqd-query-details-header"),Fe=M.size[2],Re=U(a().detailsHeader,"tsqd-query-details-header"),Be=M.size[2],lt=U(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),Y!==F.a&&B(p,F.a=Y),ne!==F.o&&B(h,F.o=ne),me!==F.i&&B(w,F.i=me),he!==F.n&&((F.n=he)!=null?L.style.setProperty("padding",he):L.style.removeProperty("padding")),ve!==F.s&&B(E,F.s=ve),Fe!==F.h&&((F.h=Fe)!=null?D.style.setProperty("padding",Fe):D.style.removeProperty("padding")),Re!==F.r&&B(A,F.r=Re),Be!==F.d&&((F.d=Be)!=null?S.style.setProperty("padding",Be):S.style.removeProperty("padding")),lt!==F.l&&B(I,F.l=lt),$!==F.u&&((F.u=$)!=null?H.style.setProperty("padding",$):H.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,eC=()=>{let e=k(()=>X().client.getQueryCache()),t=e().subscribe(a=>{wu(()=>{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,tC=()=>{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},$t=(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},Ff=(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,7 +1197,7 @@
|
|
|
1197
1197
|
opacity: 0.6;
|
|
1198
1198
|
cursor: not-allowed;
|
|
1199
1199
|
}
|
|
1200
|
-
`}},Mt=e=>Ef("light",e),Rt=e=>Ef("dark",e);Dr(["click","mousedown","input"]);});var Ff={};bn(Ff,{default:()=>aC});var tC,aC,Of=Yo(()=>{"use strict";b();Vl();Fr();tC=e=>{let[t,a]=Yn({prefix:"TanstackQueryDevtools"}),o=Hn(),r=k(()=>{let n=t.theme_preference||es;return n!=="system"?n:o()});return v(Gr.Provider,{value:e,get children(){return v(ts,{localStore:t,setLocalStore:a,get children(){return v(Kr.Provider,{value:r,get children(){return v(Tf,{localStore:t,setLocalStore:a})}})}})}})},aC=tC});var Bf={};bn(Bf,{default:()=>rC});var oC,rC,$f=Yo(()=>{"use strict";b();Vl();Fr();oC=e=>{let[t,a]=Yn({prefix:"TanstackQueryDevtools"}),o=Hn(),r=k(()=>{let n=t.theme_preference||es;return n!=="system"?n:o()});return v(Gr.Provider,{value:e,get children(){return v(ts,{disabled:!0,localStore:t,setLocalStore:a,get children(){return v(Kr.Provider,{value:r,get children(){return v(Df,{get children(){return v(cs,{localStore:t,setLocalStore:a,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},rC=oC});var JC={};bn(JC,{Studio:()=>Bm});module.exports=_m(JC);b();b();b();var Xi=require("clsx");b();var zs="-",Vm=e=>{let t=Km(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{let i=s.split(zs);return i[0]===""&&i.length!==1&&i.shift(),Vi(i,t)||Gm(s)},getConflictingClassGroupIds:(s,i)=>{let l=a[s]||[];return i&&o[s]?[...l,...o[s]]:l}}},Vi=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Vi(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let n=e.join(zs);return t.validators.find(({validator:s})=>s(n))?.classGroupId},zi=/^\[(.+)\]$/,Gm=e=>{if(zi.test(e)){let t=zi.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Km=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Qm(Object.entries(e.classGroups),a).forEach(([n,s])=>{Ns(s,o,n,t)}),o},Ns=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let n=r===""?t:Ui(t,r);n.classGroupId=a;return}if(typeof r=="function"){if(Wm(r)){Ns(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([n,s])=>{Ns(s,Ui(t,n),a,o)})})},Ui=(e,t)=>{let a=e;return t.split(zs).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Wm=e=>e.isThemeGetter,Qm=(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,jm=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)}}},Gi="!",Xm=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(Gi),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},Zm=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},Jm=e=>({cache:jm(e.cacheSize),parseClassName:Xm(e),...Vm(e)}),Ym=/\s+/,eg=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,n=[],s=e.trim().split(Ym),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=Zm(d).join(":"),x=c?h+Gi: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 tg(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Ki(t))&&(o&&(o+=" "),o+=a);return o}var Ki=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Ki(e[o]))&&(a&&(a+=" "),a+=t);return a};function Hi(e,...t){let a,o,r,n=s;function s(l){let u=t.reduce((d,c)=>c(d),e());return a=Jm(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=eg(l,a);return r(l,d),d}return function(){return n(tg.apply(null,arguments))}}var Me=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Wi=/^\[(?:([a-z-]+):)?(.+)\]$/i,ag=/^\d+\/\d+$/,og=new Set(["px","full","screen"]),rg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ng=/\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$/,sg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,lg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ig=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fa=e=>ko(e)||og.has(e)||ag.test(e),Fa=e=>Po(e,"length",hg),ko=e=>!!e&&!Number.isNaN(Number(e)),qs=e=>Po(e,"number",ko),er=e=>!!e&&Number.isInteger(Number(e)),ug=e=>e.endsWith("%")&&ko(e.slice(0,-1)),oe=e=>Wi.test(e),Oa=e=>rg.test(e),dg=new Set(["length","size","percentage"]),cg=e=>Po(e,dg,Qi),fg=e=>Po(e,"position",Qi),pg=new Set(["image","url"]),mg=e=>Po(e,pg,yg),gg=e=>Po(e,"",xg),tr=()=>!0,Po=(e,t,a)=>{let o=Wi.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},hg=e=>ng.test(e)&&!sg.test(e),Qi=()=>!1,xg=e=>lg.test(e),yg=e=>ig.test(e);var _i=()=>{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"),A=Me("translate"),S=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",oe,t],F=()=>[oe,t],re=()=>["",fa,Fa],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"],Re=()=>[ko,oe];return{cacheSize:500,separator:":",theme:{colors:[tr],spacing:[fa,Fa],blur:["none","",Oa,oe],brightness:Re(),borderColor:[e],borderRadius:["none","","full",Oa,oe],borderSpacing:F(),borderWidth:re(),contrast:Re(),grayscale:ve(),hueRotate:Re(),invert:ve(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[ug,Fa],inset:H(),margin:H(),opacity:Re(),padding:F(),saturate:Re(),scale:Re(),sepia:ve(),skew:Re(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",oe]}],container:["container"],columns:[{columns:[Oa]}],"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",er,oe]}],basis:[{basis:H()}],"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",er,oe]}],"grid-cols":[{"grid-cols":[tr]}],"col-start-end":[{col:["auto",{span:["full",er,oe]},oe]}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":[tr]}],"row-start-end":[{row:["auto",{span:[er,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:[Oa]},Oa]}],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",Oa,Fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qs]}],"font-family":[{font:[tr]}],"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,qs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",fa,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",fa,Fa]}],"underline-offset":[{"underline-offset":["auto",fa,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(),fg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mg]}],"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":[fa,oe]}],"outline-w":[{outline:[fa,Fa]}],"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":[fa,Fa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Oa,gg]}],"shadow-color":[{shadow:[tr]}],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",Oa,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:[er,oe]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"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:[fa,Fa,qs]}],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"]}}},vg=(e,{cacheSize:t,prefix:a,separator:o,experimentalParseClassName:r,extend:n={},override:s={}})=>{ar(e,"cacheSize",t),ar(e,"prefix",a),ar(e,"separator",o),ar(e,"experimentalParseClassName",r);for(let i in s)Cg(e[i],s[i]);for(let i in n)bg(e[i],n[i]);return e},ar=(e,t,a)=>{a!==void 0&&(e[t]=a)},Cg=(e,t)=>{if(t)for(let a in t)ar(e,a,t[a])},bg=(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"?Hi(_i,e,...t):Hi(()=>vg(_i(),e),...t);var wg=ji({prefix:"ps-"});function _(...e){return wg((0,Xi.clsx)(e))}b();var km=require("@tanstack/react-query");b();b();var Ln=require("react");b();var Zi=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wn=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();b();var or=require("react");b();var Ji={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 Yi=(0,or.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:s,...i},l)=>(0,or.createElement)("svg",{ref:l,...Ji,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:wn("lucide",r),...i},[...s.map(([u,d])=>(0,or.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var Y=(e,t)=>{let a=(0,Ln.forwardRef)(({className:o,...r},n)=>(0,Ln.createElement)(Yi,{ref:n,iconNode:t,className:wn(`lucide-${Zi(e)}`,o),...r}));return a.displayName=`${e}`,a};b();var Ba=Y("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 rr=Y("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=Y("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);b();var $a=Y("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);b();var nr=Y("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);b();var pa=Y("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);b();var sr=Y("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);b();var lr=Y("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);b();var ir=Y("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);b();var lo=Y("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);b();var ur=Y("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 dr=Y("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 qa=Y("Grid2x2Plus",[["path",{d:"M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3",key:"11za1p"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 22v-6",key:"qhmiwi"}]]);b();var Mo=Y("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 cr=Y("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 fr=Y("ListFilterPlus",[["path",{d:"M10 18h4",key:"1ulq68"}],["path",{d:"M11 6H3",key:"1u26ik"}],["path",{d:"M15 6h6",key:"1jlkvy"}],["path",{d:"M18 9V3",key:"xwwp7m"}],["path",{d:"M7 12h8",key:"7a1bxv"}]]);b();var pr=Y("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 mr=Y("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 gr=Y("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);b();var hr=Y("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);b();var xr=Y("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 yr=Y("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 Ro=Y("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 vr=Y("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var gn=require("react"),Pm=require("sonner");b();var eu=require("@radix-ui/react-slot"),tu=require("class-variance-authority"),au=xe(require("react"),1);var ou=require("react/jsx-runtime"),Lg=(0,tu.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"}}),$e=au.forwardRef(({className:e,variant:t,size:a,asChild:o=!1,...r},n)=>(0,ou.jsx)(o?eu.Slot:"button",{className:_(Lg({variant:t,size:a,className:e})),ref:n,...r}));$e.displayName="Button";b();var Cr=xe(require("@radix-ui/react-checkbox"),1);var ru=xe(require("react"),1);var Sn=require("react/jsx-runtime"),br=ru.forwardRef(({className:e,...t},a)=>(0,Sn.jsx)(Cr.Root,{ref:a,className:_("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,Sn.jsx)(Cr.Indicator,{className:_("ps-flex ps-items-center ps-justify-center ps-text-current"),children:(0,Sn.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}));br.displayName=Cr.Root.displayName;b();var hs=require("@tanstack/react-query");b();var ms=require("@tanstack/react-query");b();b();var Ut=xe(require("react"),1),fs=require("@tanstack/react-query");b();Fr();var qf=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=el(()=>{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=Ys(()=>Promise.resolve().then(()=>(Of(),Ff))),this.#l=l),sl(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}},Nf=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=el(()=>{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=Ys(()=>Promise.resolve().then(()=>($f(),Bf))),this.#i=u),sl(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 zf=require("react/jsx-runtime");function Uf(e){let t=(0,fs.useQueryClient)(e.client),a=Ut.useRef(null),{buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}=e,[u]=Ut.useState(new qf({client:t,queryFlavor:"React Query",version:"5",onlineManager:fs.onlineManager,buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}));return Ut.useEffect(()=>{u.setClient(t)},[t,u]),Ut.useEffect(()=>{o&&u.setButtonPosition(o)},[o,u]),Ut.useEffect(()=>{r&&u.setPosition(r)},[r,u]),Ut.useEffect(()=>{u.setInitialIsOpen(n||!1)},[n,u]),Ut.useEffect(()=>{u.setErrorTypes(s||[])},[s,u]),Ut.useEffect(()=>(a.current&&u.mount(a.current),()=>{u.unmount()}),[u]),(0,zf.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:a})}b();var ba=xe(require("react"),1),ps=require("@tanstack/react-query");var Hf=require("react/jsx-runtime");function _f(e){let t=(0,ps.useQueryClient)(e.client),a=ba.useRef(null),{errorTypes:o,styleNonce:r,shadowDOMTarget:n}=e,[s]=ba.useState(new Nf({client:t,queryFlavor:"React Query",version:"5",onlineManager:ps.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:o,styleNonce:r,shadowDOMTarget:n,onClose:e.onClose}));return ba.useEffect(()=>{s.setClient(t)},[t,s]),ba.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),ba.useEffect(()=>{s.setErrorTypes(o||[])},[o,s]),ba.useEffect(()=>(a.current&&s.mount(a.current),()=>{s.unmount()}),[s]),(0,Hf.jsx)("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:a})}var Vf=process.env.NODE_ENV!=="development"?function(){return null}:Uf,VL=process.env.NODE_ENV!=="development"?function(){return null}:_f;var Qf=require("nuqs/adapters/react"),wa=require("react"),jf=require("sonner");b();var Gf=require("sonner"),Wf=require("react/jsx-runtime"),Kf=({...e})=>(0,Wf.jsx)(Gf.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"),lC=new ms.QueryClient,Xf=(0,wa.createContext)(void 0);function Zf(e){let{children:t,...a}=e,[o,r]=(0,wa.useState)(null),[n,s]=(0,wa.useState)(!1),i=e.onError;i??=d=>jf.toast.error(d.message);let l=(0,wa.useMemo)(()=>e.onTelemetryEvent??(()=>{}),[e.onTelemetryEvent]),u=()=>s(d=>!d);return(0,vo.jsxs)(ms.QueryClientProvider,{client:lC,children:[(0,vo.jsx)(Vf,{}),(0,vo.jsx)(Kf,{}),(0,vo.jsx)(Qf.NuqsAdapter,{children:(0,vo.jsx)(Xf.Provider,{value:{...a,activeTable:o,isFullscreen:n,setActiveTable:r,onError:i,emitTelemetryEvent:l,toggleFullscreen:u},children:t})})]})}function Ze(){let e=(0,wa.useContext)(Xf);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 iC(e,t){let a={filter:Co(e,t.columns),table:`${t.schema}.${t.name}`};return JSON.stringify(a)}function Jf(e,t){return{...e,__ps_rowid:iC(e,t)}}function gs(e,t){let{row:a,rows:o}=e;return a!==void 0?{...e,row:Jf(a,t)}:o!==void 0?{...e,rows:o.map(r=>Jf(r,t))}:e}function Yf(){let{activeTable:e,adapter:t}=Ze(),a=(0,hs.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,hs.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 gs(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 ep=require("@tanstack/react-query");function tp(e){let{pageIndex:t,pageSize:a,sortOrder:o}=e,{activeTable:r,adapter:n}=Ze();return(0,ep.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 gs(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 xs=require("@tanstack/react-query");function ap(){let{activeTable:e,adapter:t,onError:a}=Ze(),o=(0,xs.useQueryClient)(),r=["schema",e?.schema??null,"table",e?.name??null];return(0,xs.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),Gl({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;Gl({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){Gl({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 Gl(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 op=require("@tanstack/react-query");function ys(){return(0,op.useIsMutating)({predicate({options:{mutationKey:e}}){return e?.[4]==="insert"}})}b();var rp=require("react");var Ye={};bn(Ye,{keyMap:()=>Kl,urlKeys:()=>uC,useQueryState:()=>Ko,useQueryStates:()=>Yr});b();var vs=require("nuqs");ca(Ye,require("nuqs"));function Kl(e){return e}function uC(e){return e}var SS=Symbol("BRAND_SYMBOL");function Ko(e,t){return(0,vs.useQueryState)(e,t)}function Yr(e,t){return(0,vs.useQueryStates)(e,t)}var dC=25,cC={pageIndex:Ye.parseAsIndex.withDefault(0),pageSize:Ye.parseAsInteger.withDefault(dC)};function Cs(){let[{pageIndex:e,pageSize:t},a]=Yr(cC),o=(0,rp.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 ws=require("react");b();var bs=require("@tanstack/react-query");function np(){let{activeTable:e,adapter:t}=Ze(),a=(0,bs.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,bs.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 sp(e){let{activeTable:t,onError:a}=Ze(),{paginationState:o}=Cs(),[r,n]=(0,ws.useState)({}),s=Object.keys(r).length!==0,{mutate:i}=np();(0,ws.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 Ls=require("react");function lp(){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,Ls.useState)(()=>a(e));return(0,Ls.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 Pp=require("remeda");b();var fp=require("react");b();b();var La=xe(require("react"),1);var ea=require("react/jsx-runtime"),Wl=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("div",{className:"ps-relative ps-w-full ps-overflow-auto ps-flex ps-items-start ps-h-full",children:(0,ea.jsx)("table",{ref:a,className:_("ps-w-full ps-caption-bottom ps-text-sm",e),...t})}));Wl.displayName="Table";var Ql=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("thead",{ref:a,className:_(e),...t}));Ql.displayName="TableHeader";var jl=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("tbody",{ref:a,className:_("[&_tr:last-child]:ps-border-0",e),...t}));jl.displayName="TableBody";var fC=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("tfoot",{ref:a,className:_("ps-border-t ps-bg-muted/50 ps-font-medium [&>tr]:last:ps-border-b-0",e),...t}));fC.displayName="TableFooter";var bo=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("tr",{ref:a,className:_("ps-border-b ps-transition-colors hover:ps-bg-muted/50 data-[state=selected]:ps-bg-muted",e),...t}));bo.displayName="TableRow";var Xl=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("th",{ref:a,className:_("ps-h-10 ps-px-2 ps-text-left ps-align-middle ps-font-medium ps-text-muted-foreground",e),...t}));Xl.displayName="TableHead";var en=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("td",{ref:a,className:_("ps-align-middle",e),...t}));en.displayName="TableCell";var pC=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("caption",{ref:a,className:_("ps-mt-4 ps-text-sm ps-text-muted-foreground",e),...t}));pC.displayName="TableCaption";b();var dp=require("react");b();var ue=xe(require("@radix-ui/react-context-menu"),1);var Sa=xe(require("react"),1);var Ge=require("react/jsx-runtime"),ip=ue.Root,up=ue.Trigger;var mC=Sa.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ge.jsxs)(ue.SubTrigger,{ref:r,className:_("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)(pa,{className:"ps-ml-auto ps-h-4 ps-w-4"})]}));mC.displayName=ue.SubTrigger.displayName;var gC=Sa.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.SubContent,{ref:a,className:_("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}));gC.displayName=ue.SubContent.displayName;var Zl=Sa.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.Portal,{children:(0,Ge.jsx)(ue.Content,{ref:a,className:_("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})}));Zl.displayName=ue.Content.displayName;var Jl=Sa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ge.jsx)(ue.Item,{ref:o,className:_("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}));Jl.displayName=ue.Item.displayName;var hC=Sa.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ge.jsxs)(ue.CheckboxItem,{ref:r,className:_("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]}));hC.displayName=ue.CheckboxItem.displayName;var xC=Sa.forwardRef(({className:e,children:t,...a},o)=>(0,Ge.jsxs)(ue.RadioItem,{ref:o,className:_("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]}));xC.displayName=ue.RadioItem.displayName;var yC=Sa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ge.jsx)(ue.Label,{ref:o,className:_("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold ps-text-foreground",t&&"ps-pl-8",e),...a}));yC.displayName=ue.Label.displayName;var vC=Sa.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.Separator,{ref:a,className:_("ps--mx-1 ps-my-1 ps-h-px ps-bg-border",e),...t}));vC.displayName=ue.Separator.displayName;var CC=({className:e,...t})=>(0,Ge.jsx)("span",{className:_("ps-ml-auto ps-text-xs ps-tracking-widest ps-text-muted-foreground",e),...t});CC.displayName="ContextMenuShortcut";var wo=require("react/jsx-runtime");function cp(e){let{children:t}=e;return(0,wo.jsxs)(ip,{children:[(0,wo.jsx)(up,{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)(Zl,{children:(0,wo.jsxs)(Jl,{onClick:()=>{let a=Yl(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)(ur,{size:12}),"Copy"]})})]})}function Yl(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(e==null)return"";if((0,dp.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?Yl(t.children):""}return Array.isArray(e)?e.map(Yl).join(""):""}var ei=require("react/jsx-runtime");function He(e){let{children:t,className:a,ref:o,style:r,...n}=e;return(0,ei.jsx)(en,{...n,className:_("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,ei.jsx)(cp,{children:t})})}var ti=require("react/jsx-runtime"),ai=(0,fp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,ti.jsx)(He,{...r,...a,ref:t,children:(0,ti.jsx)("div",{"data-cell-type":"boolean",children:String(!!o)})})});ai.displayName="BooleanCell";b();var pp=require("react");var mp=require("react/jsx-runtime"),oi=(0,pp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,mp.jsx)(He,{...r,...a,ref:t,children:String(o)})});oi.displayName="DateCell";b();var gp=require("react");var hp=require("react/jsx-runtime"),tn=(0,gp.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,hp.jsx)(He,{...o,...a,ref:t})});tn.displayName="EmptyCell";b();var xp=require("react");var yp=require("react/jsx-runtime"),ri=(0,xp.forwardRef)((e,t)=>{let{containerProps:a,value:o,options:r,...n}=e;return(0,yp.jsx)(He,{...n,...a,ref:t,children:String(o)})});ri.displayName="EnumCell";b();var vp=require("react");var Cp=require("react/jsx-runtime"),Ss=(0,vp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Cp.jsx)(He,{...r,...a,ref:t,children:JSON.stringify(o,null,2)})});Ss.displayName="JSONCell";b();var bp=require("react");var ni=require("react/jsx-runtime"),si=(0,bp.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,ni.jsx)(He,{...o,...a,ref:t,children:(0,ni.jsx)("code",{className:"ps-text-gray-500",children:"NULL"})})});si.displayName="NullCell";b();var wp=require("react");var li=require("react/jsx-runtime"),ii=(0,wp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,li.jsx)(He,{...r,...a,ref:t,children:(0,li.jsx)("div",{"data-cell-type":"numeric",children:o===null?"NULL":String(o)})})});ii.displayName="NumericCell";b();var Lp=require("react");var Sp=require("react/jsx-runtime"),Is=(0,Lp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Sp.jsx)(He,{...r,...a,ref:t,children:String(o)})});Is.displayName="RawCell";b();var Ip=require("react");var kp=require("react/jsx-runtime"),ui=(0,Ip.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,kp.jsx)(He,{...r,...a,ref:t,children:String(o)})});ui.displayName="TimeCell";var At=require("react/jsx-runtime");function ks({cell:e,column:t,props:a}){let o=e.getValue();if(o===void 0)return(0,At.jsx)(tn,{});if(o===null)return(0,At.jsx)(si,{});let{group:r,options:n,isArray:s}=t.datatype;if(r==="json"||s)return(0,At.jsx)(Ss,{containerProps:a,value:o});if(r==="string")return(0,At.jsx)(Is,{containerProps:a,value:o});if(r==="enum")return(0,At.jsx)(ri,{containerProps:a,value:o,options:n});if(r==="boolean")return(0,At.jsx)(ai,{containerProps:a,value:o});if(r==="datetime")return(0,At.jsx)(oi,{containerProps:a,value:o});if(r==="time")return(0,At.jsx)(ui,{containerProps:a,value:o});if(r==="numeric")return(0,At.jsx)(ii,{containerProps:a,value:o});if(r==="raw")return(0,Pp.isObjectType)(o)?(0,At.jsx)(Ss,{containerProps:a,value:o}):(0,At.jsx)(Is,{containerProps:a,value:o});throw new Error(`Datatype group "${r}" was not handled in '/cell/get-cell.tsx'`)}b();var Mp=require("react");var di=require("react/jsx-runtime"),ci=(0,Mp.forwardRef)((e,t)=>{let{row:a,readonly:o,...r}=e;return(0,di.jsx)(He,{ref:t,...r,children:(0,di.jsx)(br,{checked:a.getIsSelected(),disabled:!a.getCanSelect()||o,onCheckedChange:a.getToggleSelectedHandler()})})});ci.displayName="SelectRowCell";b();b();var Ia=xe(require("@radix-ui/react-popover"),1),nt=xe(require("react"),1);var Wo=require("react/jsx-runtime"),Rp=nt.createContext(null),fi=({children:e,...t})=>{let[a,o]=nt.useState(!1);return(0,Wo.jsx)(Rp.Provider,{value:{open:a,setOpen:o},children:(0,Wo.jsx)(Ia.Root,{open:a,onOpenChange:o,...t,children:e})})};fi.displayName="PopoverCell";var pi=nt.forwardRef(({children:e,onDoubleClick:t,className:a,...o},r)=>{let n=nt.useRef(null);return(0,Wo.jsx)(Ia.Trigger,{ref:s=>{typeof r=="function"?r(s):r&&(r.current=s),n.current=s},className:_("w-full h-full cursor-pointer",a),...o,children:e})});pi.displayName="PopoverCellTrigger";var mi=nt.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Wo.jsx)(Ia.Portal,{children:(0,Wo.jsx)(Ia.Content,{ref:r,align:t,sideOffset:a,className:_("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})}));mi.displayName=Ia.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 an=require("react/jsx-runtime");function Ps(e){let{cellComponent:t,inputComponent:a}=e;return(0,an.jsxs)(fi,{children:[(0,an.jsx)(pi,{asChild:!0,children:t}),(0,an.jsx)(mi,{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"),ta=require("@dnd-kit/sortable"),Fp=require("@dnd-kit/utilities");var Op=require("react"),As=require("uuid");b();var Ap=xe(require("react"),1);var Tp=require("react/jsx-runtime"),Ht=Ap.forwardRef(({className:e,type:t,...a},o)=>(0,Tp.jsx)("input",{type:t,className:_("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}));Ht.displayName="Input";b();var de=xe(require("@radix-ui/react-select"),1);var Qa=xe(require("react"),1);var qe=require("react/jsx-runtime"),Ms=de.Root;var Rs=de.Value,on=Qa.forwardRef(({className:e,children:t,...a},o)=>(0,qe.jsxs)(de.Trigger,{ref:o,className:_("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,qe.jsx)(de.Icon,{asChild:!0,children:(0,qe.jsx)($a,{className:"ps-h-4 ps-w-4 ps-opacity-50"})})]}));on.displayName=de.Trigger.displayName;var Dp=Qa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(de.ScrollUpButton,{ref:a,className:_("ps-flex ps-cursor-default ps-items-center ps-justify-center ps-py-1",e),...t,children:(0,qe.jsx)(sr,{className:"ps-h-4 ps-w-4"})}));Dp.displayName=de.ScrollUpButton.displayName;var Ep=Qa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(de.ScrollDownButton,{ref:a,className:_("ps-flex ps-cursor-default ps-items-center ps-justify-center ps-py-1",e),...t,children:(0,qe.jsx)($a,{className:"ps-h-4 ps-w-4"})}));Ep.displayName=de.ScrollDownButton.displayName;var rn=Qa.forwardRef(({className:e,children:t,position:a="popper",...o},r)=>(0,qe.jsx)(de.Portal,{children:(0,qe.jsxs)(de.Content,{ref:r,className:_("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,qe.jsx)(Dp,{}),(0,qe.jsx)(de.Viewport,{className:_("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,qe.jsx)(Ep,{})]})}));rn.displayName=de.Content.displayName;var bC=Qa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(de.Label,{ref:a,className:_("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",e),...t}));bC.displayName=de.Label.displayName;var _e=Qa.forwardRef(({className:e,children:t,...a},o)=>(0,qe.jsxs)(de.Item,{ref:o,className:_("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,qe.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,qe.jsx)(de.ItemIndicator,{children:(0,qe.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}),(0,qe.jsx)(de.ItemText,{children:t})]}));_e.displayName=de.Item.displayName;var wC=Qa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(de.Separator,{ref:a,className:_("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));wC.displayName=de.Separator.displayName;var K=require("react/jsx-runtime"),Bp=["id","name","email","created_at","updated_at","status","role","department"],LC=({filter:e,onUpdate:t,onDelete:a,parentId:o})=>{let{attributes:r,listeners:n,setNodeRef:s,transform:i,transition:l,isDragging:u}=(0,ta.useSortable)({id:e.id,data:{type:e.kind,parentId:o}}),d={transform:Fp.CSS.Transform.toString(i),transition:l,opacity:u?.5:1};return(0,K.jsx)("div",{ref:s,style:d,className:"ps-mt-2",children:e.kind==="ColumnFilter"?(0,K.jsx)($p,{filter:e,onUpdate:t,onDelete:a,dragHandleProps:{...r,...n}}):(0,K.jsx)(gi,{group:e,onUpdate:t,onDelete:a,dragHandleProps:{...r,...n}})})},$p=({filter:e,onUpdate:t,onDelete:a,dragHandleProps:o})=>{let r=i=>{t({...e,column:i})},n=i=>{t({...e,operator:i})},s=i=>{t({...e,value:i.target.value})};return(0,K.jsx)("div",{className:"ps-mt-2",children:(0,K.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,K.jsx)("div",{...o,className:"ps-cursor-grab",children:(0,K.jsx)(Mo,{className:"ps-text-gray-400",size:16})}),(0,K.jsxs)(Ms,{value:e.column,onValueChange:r,children:[(0,K.jsx)(on,{className:"ps-w-[180px]",children:(0,K.jsx)(Rs,{placeholder:"Select column"})}),(0,K.jsx)(rn,{children:Bp.map(i=>(0,K.jsx)(_e,{value:i,children:i},i))})]}),(0,K.jsxs)(Ms,{value:e.operator,onValueChange:i=>n(i),children:[(0,K.jsx)(on,{className:"ps-w-[120px]",children:(0,K.jsx)(Rs,{placeholder:"Operator"})}),(0,K.jsxs)(rn,{children:[(0,K.jsx)(_e,{value:"=",children:"equals (=)"}),(0,K.jsx)(_e,{value:"!=",children:"not equals (!=)"}),(0,K.jsx)(_e,{value:">",children:"greater than (>)"}),(0,K.jsx)(_e,{value:">=",children:"greater than or equal (>=)"}),(0,K.jsx)(_e,{value:"<",children:"less than (<)"}),(0,K.jsx)(_e,{value:"<=",children:"less than or equal (<=)"}),(0,K.jsx)(_e,{value:"in",children:"in"}),(0,K.jsx)(_e,{value:"not in",children:"not in"}),(0,K.jsx)(_e,{value:"is",children:"is"}),(0,K.jsx)(_e,{value:"is not",children:"is not"}),(0,K.jsx)(_e,{value:"like",children:"like"}),(0,K.jsx)(_e,{value:"not like",children:"not like"}),(0,K.jsx)(_e,{value:"ilike",children:"ilike"}),(0,K.jsx)(_e,{value:"not ilike",children:"not ilike"}),(0,K.jsx)(_e,{value:"match",children:"match"})]})]}),(0,K.jsx)(Ht,{value:e.value||"",onChange:s,placeholder:"Value",className:"ps-flex-1"}),(0,K.jsx)($e,{variant:"ghost",size:"icon",onClick:a,className:"ps-text-red-500 ps-hover:text-red-700 ps-hover:bg-red-100",children:(0,K.jsx)(Ro,{size:16})})]})})},gi=({group:e,onUpdate:t,onDelete:a,dragHandleProps:o,isRoot:r=!1})=>{let[n,s]=(0,Op.useState)(null),i=e.and?"and":"or",l=e.and||e.or||[],u=(0,dt.useSensors)((0,dt.useSensor)(dt.PointerSensor,{activationConstraint:{distance:8}}),(0,dt.useSensor)(dt.KeyboardSensor,{coordinateGetter:ta.sortableKeyboardCoordinates})),d=y=>{t(y==="and"?{...e,and:l,or:void 0}:{...e,or:l,and:void 0})},c=()=>{let y={kind:"ColumnFilter",column:Bp[0],operator:"=",value:"",id:(0,As.v4)()};t(i==="and"?{...e,and:[...l,y]}:{...e,or:[...l,y]})},p=()=>{let y={kind:"ColumnFilters",and:[],id:(0,As.v4)()};t(i==="and"?{...e,and:[...l,y]}:{...e,or:[...l,y]})},f=(y,C)=>{let w=[...l];w[y]=C,t(i==="and"?{...e,and:w}:{...e,or:w})},m=y=>{let C=[...l];C.splice(y,1),t(i==="and"?{...e,and:C}:{...e,or:C})},g=y=>{s(y.active.id)},h=y=>{let{active:C,over:w}=y;if(w&&C.id!==w.id){let L=l.findIndex(A=>A.id===C.id),E=l.findIndex(A=>A.id===w.id),D=(0,ta.arrayMove)(l,L,E);t(i==="and"?{...e,and:D}:{...e,or:D})}s(null)},x=()=>(0,K.jsx)("div",{children:(0,K.jsx)("div",{children:(0,K.jsxs)(dt.DndContext,{sensors:u,collisionDetection:dt.closestCenter,onDragStart:g,onDragEnd:h,children:[(0,K.jsx)(ta.SortableContext,{items:l.map(y=>y.id),strategy:ta.verticalListSortingStrategy,children:l.map((y,C)=>(0,K.jsx)(LC,{filter:y,onUpdate:w=>f(C,w),onDelete:()=>m(C),parentId:e.id},y.id))}),(0,K.jsx)(dt.DragOverlay,{children:n?(0,K.jsx)("div",{className:"ps-opacity-80",children:(()=>{let y=l.find(C=>C.id===n);return y?y.kind==="ColumnFilter"?(0,K.jsx)($p,{filter:y,onUpdate:()=>{},onDelete:()=>{}}):(0,K.jsx)(gi,{group:y,onUpdate:()=>{},onDelete:()=>{}}):null})()}):null})]})})});return(0,K.jsxs)("div",{className:"ps-bg-background",children:[(0,K.jsx)("div",{className:"ps-pb-0",children:(0,K.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between",children:[(0,K.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[!r&&(0,K.jsx)("div",{...o,className:"ps-cursor-grab",children:(0,K.jsx)(Mo,{className:"ps-text-gray-400",size:16})}),(0,K.jsxs)(Ms,{value:i,onValueChange:d,children:[(0,K.jsx)(on,{className:"ps-w-[100px]",children:(0,K.jsx)(Rs,{})}),(0,K.jsxs)(rn,{children:[(0,K.jsx)(_e,{value:"and",children:"AND"}),(0,K.jsx)(_e,{value:"or",children:"OR"})]})]}),(0,K.jsxs)($e,{variant:"outline",onClick:c,className:"ps-flex ps-items-center ps-gap-1",children:[(0,K.jsx)(fr,{size:14}),"Filter"]}),(0,K.jsxs)($e,{variant:"outline",onClick:p,className:"ps-flex ps-items-center ps-gap-1",children:[(0,K.jsx)(qa,{size:14}),"Group"]})]}),!r&&(0,K.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2",children:(0,K.jsx)($e,{variant:"ghost",size:"icon",onClick:a,className:"ps-text-red-500 ps-hover:text-red-700 ps-hover:bg-red-100",children:(0,K.jsx)(Ro,{size:16})})})]})}),(0,K.jsx)("div",{className:`${r?"":"ps-ml-5"}`,children:x()})]})};function qp({filter:e,setFilter:t}){return(0,K.jsx)(gi,{group:{...e,id:(0,As.v4)()},onUpdate:t,onDelete:()=>{},isRoot:!0})}b();var Za=require("@dnd-kit/core"),Ja=require("@dnd-kit/sortable"),Jp=require("@dnd-kit/utilities"),Es=require("@tanstack/react-table");b();var ka=xe(require("react"),1),V=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 SC=e=>{try{let t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}};function IC(e,t){let[a,o]=V.default.useState();V.default.useEffect(()=>{let n=SC(e);o(typeof n>"u"||n===null?typeof t=="function"?t():t:n)},[t,e]);let r=V.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 aa={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},Up=V.default.createContext(aa);function Hp(e){let{theme:t,...a}=e;return V.default.createElement(Up.Provider,ja({value:t},a))}function kC(){return V.default.useContext(Up)}function PC(e){let[t,a]=V.default.useState(()=>{if(typeof window<"u")return window.matchMedia&&window.matchMedia(e).matches});return V.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 MC=typeof window>"u";function _t(e,t,a){return a===void 0&&(a={}),V.default.forwardRef((o,r)=>{let{style:n,...s}=o,i=kC(),l=Object.entries(a).reduce((u,d)=>{let[c,p]=d;return PC(c)?{...u,...typeof p=="function"?p(s,i):p}:u},{});return V.default.createElement(e,{...s,style:{...typeof t=="function"?t(s,i):t,...n,...l},ref:r})})}function RC(){let e=V.default.useRef(!1),t=V.default.useCallback(()=>e.current,[]);return V.default[MC?"useEffect":"useLayoutEffect"](()=>(e.current=!0,()=>{e.current=!1}),[]),t}var AC=_t("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"}});_t("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:`2px solid ${t.gray}`})});var TC=_t("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"}));_t("code",{fontSize:".9em"});_t("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}));_t("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 Np=_t("div",{fontFamily:"Menlo, monospace",fontSize:"0.7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Ts=_t("span",{cursor:"pointer",color:"white"}),DC=_t("span",(e,t)=>({color:t.danger})),hi=_t("div",{marginLeft:".1rem",paddingLeft:"1rem",borderLeft:"2px solid rgba(0,0,0,.15)"}),EC=_t("span",{color:"grey",fontSize:".7rem"}),zp=e=>{let{expanded:t,style:a={},...o}=e;return V.default.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:`rotate(${t?90:0}deg) ${a.transform||""}`,...a}},"\u25B6")},FC=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]=V.default.useState(void 0),[f,m]=V.default.useState([]),g=()=>{p(o())};return V.default.createElement(Np,{key:a},n!=null&&n.length?V.default.createElement(V.default.Fragment,null,V.default.createElement(Ts,{onClick:()=>l()},V.default.createElement(zp,{expanded:i})," ",a," ",V.default.createElement(EC,null,String(s).toLowerCase()==="iterable"?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),i?n.length===1?V.default.createElement(hi,null,r.map(h=>t(h))):V.default.createElement(hi,null,n.map((h,x)=>V.default.createElement("div",{key:x},V.default.createElement(Np,null,V.default.createElement(Ts,{onClick:()=>m(y=>y.includes(x)?y.filter(C=>C!==x):[...y,x])},V.default.createElement(zp,{expanded:i})," [",x*u," ..."," ",x*u+u-1,"]"),f.includes(x)?V.default.createElement(hi,null,h.map(y=>t(y))):null)))):null):s==="function"?V.default.createElement(V.default.Fragment,null,V.default.createElement(oa,{renderer:d,label:V.default.createElement("button",{onClick:g},V.default.createElement(Ts,null,a)," \u{1F504}"," "),value:c,defaultExpanded:{}})):V.default.createElement(V.default.Fragment,null,V.default.createElement(Ts,null,a,":")," ",V.default.createElement(DC,null,JSON.stringify(o,Object.getOwnPropertyNames(Object(o))))))};function oa(e){let{value:t,defaultExpanded:a,renderer:o=FC,pageSize:r=100,depth:n=0,...s}=e,[i,l]=V.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=>V.default.createElement(oa,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 _p(e){return ka.createElement("svg",ja({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),ka.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ka.createElement("g",{id:"og-white",transform:"translate(-28.000000, -21.000000)"},ka.createElement("g",{id:"Group-2",transform:"translate(28.000000, 31.000000)"},ka.createElement("g",{id:"Group",transform:"translate(0.000000, 10.000000)"},ka.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) "}),ka.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"}),ka.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 Vp(e){let{initialIsOpen:t,table:a,panelProps:o={},toggleButtonProps:r={},containerElement:n="footer"}=e,s=V.default.useRef(null),i=V.default.useRef(null),[l,u]=IC("reactTableDevtoolsOpen",t),d=RC(),{style:c={},...p}=o,{style:f={},onClick:m,...g}=r;return d()?V.default.createElement(n,{ref:s,className:"ReactTableDevtools"},V.default.createElement(Hp,{theme:aa},l?V.default.createElement(OC,ja({ref:i},p,{table:a,isOpen:l,setIsOpen:u,style:{maxHeight:"80vh",width:"100%",...c}})):V.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}}),V.default.createElement(_p,{"aria-hidden":!0})))):null}var OC=V.default.forwardRef(function(t,a){let{table:o,isOpen:r=!0,setIsOpen:n,...s}=t;return V.default.createElement(Hp,{theme:aa},V.default.createElement(AC,ja({ref:a,className:"ReactTableDevtoolsPanel"},s),V.default.createElement("style",{dangerouslySetInnerHTML:{__html:`
|
|
1200
|
+
`}},Mt=e=>Ff("light",e),Rt=e=>Ff("dark",e);Er(["click","mousedown","input"]);});var Of={};wn(Of,{default:()=>oC});var aC,oC,Bf=Yo(()=>{"use strict";b();Gl();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=Yo(()=>{"use strict";b();Gl();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 YC={};wn(YC,{Studio:()=>$m});module.exports=Vm(YC);b();b();b();var Zi=require("clsx");b();var Us="-",Gm=e=>{let t=Wm(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{let i=s.split(Us);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(Us);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])=>{zs(s,o,n,t)}),o},zs=(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)){zs(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([n,s])=>{zs(s,Hi(t,n),a,o)})})},Hi=(e,t)=>{let a=e;return t.split(Us).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)\(.+\)$/,fa=e=>ko(e)||rg.has(e)||og.test(e),Fa=e=>Po(e,"length",xg),ko=e=>!!e&&!Number.isNaN(Number(e)),Ns=e=>Po(e,"number",ko),er=e=>!!e&&Number.isInteger(Number(e)),dg=e=>e.endsWith("%")&&ko(e.slice(0,-1)),oe=e=>Qi.test(e),Oa=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),tr=()=>!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"),A=Me("translate"),S=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",oe,t],F=()=>[oe,t],re=()=>["",fa,Fa],fe=()=>["auto",ko,oe],Y=()=>["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"],Re=()=>[ko,oe];return{cacheSize:500,separator:":",theme:{colors:[tr],spacing:[fa,Fa],blur:["none","",Oa,oe],brightness:Re(),borderColor:[e],borderRadius:["none","","full",Oa,oe],borderSpacing:F(),borderWidth:re(),contrast:Re(),grayscale:ve(),hueRotate:Re(),invert:ve(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[dg,Fa],inset:H(),margin:H(),opacity:Re(),padding:F(),saturate:Re(),scale:Re(),sepia:ve(),skew:Re(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",oe]}],container:["container"],columns:[{columns:[Oa]}],"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:[...Y(),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",er,oe]}],basis:[{basis:H()}],"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",er,oe]}],"grid-cols":[{"grid-cols":[tr]}],"col-start-end":[{col:["auto",{span:["full",er,oe]},oe]}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":[tr]}],"row-start-end":[{row:["auto",{span:[er,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:[Oa]},Oa]}],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",Oa,Fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ns]}],"font-family":[{font:[tr]}],"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,Ns]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",fa,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",fa,Fa]}],"underline-offset":[{"underline-offset":["auto",fa,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:[...Y(),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":[fa,oe]}],"outline-w":[{outline:[fa,Fa]}],"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":[fa,Fa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Oa,hg]}],"shadow-color":[{shadow:[tr]}],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",Oa,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:[er,oe]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"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:[fa,Fa,Ns]}],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={}})=>{ar(e,"cacheSize",t),ar(e,"prefix",a),ar(e,"separator",o),ar(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},ar=(e,t,a)=>{a!==void 0&&(e[t]=a)},bg=(e,t)=>{if(t)for(let a in t)ar(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 _(...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 or=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,or.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:s,...i},l)=>(0,or.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,or.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var J=(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 Ba=J("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 rr=J("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=J("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);b();var $a=J("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);b();var nr=J("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);b();var pa=J("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);b();var sr=J("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);b();var lr=J("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);b();var ir=J("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);b();var lo=J("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);b();var ur=J("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 dr=J("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 qa=J("Grid2x2Plus",[["path",{d:"M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3",key:"11za1p"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 22v-6",key:"qhmiwi"}]]);b();var Mo=J("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 cr=J("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 fr=J("ListFilterPlus",[["path",{d:"M10 18h4",key:"1ulq68"}],["path",{d:"M11 6H3",key:"1u26ik"}],["path",{d:"M15 6h6",key:"1jlkvy"}],["path",{d:"M18 9V3",key:"xwwp7m"}],["path",{d:"M7 12h8",key:"7a1bxv"}]]);b();var pr=J("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 mr=J("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 gr=J("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);b();var hr=J("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);b();var xr=J("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 yr=J("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 vr=J("Shapes",[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]]);b();var Ro=J("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=J("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"}}),$e=ou.forwardRef(({className:e,variant:t,size:a,asChild:o=!1,...r},n)=>(0,ru.jsx)(o?tu.Slot:"button",{className:_(Sg({variant:t,size:a,className:e})),ref:n,...r}));$e.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:_("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:_("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 Ut=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=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(()=>(Bf(),Of))),this.#l=l),ll(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=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(()=>(qf(),$f))),this.#i=u),ll(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=Ut.useRef(null),{buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}=e,[u]=Ut.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 Ut.useEffect(()=>{u.setClient(t)},[t,u]),Ut.useEffect(()=>{o&&u.setButtonPosition(o)},[o,u]),Ut.useEffect(()=>{r&&u.setPosition(r)},[r,u]),Ut.useEffect(()=>{u.setInitialIsOpen(n||!1)},[n,u]),Ut.useEffect(()=>{u.setErrorTypes(s||[])},[s,u]),Ut.useEffect(()=>(a.current&&u.mount(a.current),()=>{u.unmount()}),[u]),(0,Uf.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:a})}b();var ba=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=ba.useRef(null),{errorTypes:o,styleNonce:r,shadowDOMTarget:n}=e,[s]=ba.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 ba.useEffect(()=>{s.setClient(t)},[t,s]),ba.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),ba.useEffect(()=>{s.setErrorTypes(o||[])},[o,s]),ba.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,jL=process.env.NODE_ENV!=="development"?function(){return null}:Vf;var jf=require("nuqs/adapters/react"),wa=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,wa.createContext)(void 0);function Jf(e){let{children:t,...a}=e,[o,r]=(0,wa.useState)(null),[n,s]=(0,wa.useState)(!1),i=e.onError;i??=d=>Xf.toast.error(d.message);let l=(0,wa.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,wa.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),Kl({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;Kl({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){Kl({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 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 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:()=>Wl,urlKeys:()=>dC,useQueryState:()=>Ko,useQueryStates:()=>en});b();var Cs=require("nuqs");ca(Ye,require("nuqs"));function Wl(e){return e}function dC(e){return e}var RS=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 La=xe(require("react"),1);var ea=require("react/jsx-runtime"),Ql=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("div",{className:"ps-relative ps-w-full ps-overflow-auto ps-flex ps-items-start ps-h-full",children:(0,ea.jsx)("table",{ref:a,className:_("ps-w-full ps-caption-bottom ps-text-sm",e),...t})}));Ql.displayName="Table";var jl=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("thead",{ref:a,className:_(e),...t}));jl.displayName="TableHeader";var Xl=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("tbody",{ref:a,className:_("[&_tr:last-child]:ps-border-0",e),...t}));Xl.displayName="TableBody";var pC=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("tfoot",{ref:a,className:_("ps-border-t ps-bg-muted/50 ps-font-medium [&>tr]:last:ps-border-b-0",e),...t}));pC.displayName="TableFooter";var bo=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("tr",{ref:a,className:_("ps-border-b ps-transition-colors hover:ps-bg-muted/50 data-[state=selected]:ps-bg-muted",e),...t}));bo.displayName="TableRow";var Zl=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("th",{ref:a,className:_("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=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("td",{ref:a,className:_("ps-align-middle",e),...t}));tn.displayName="TableCell";var mC=La.forwardRef(({className:e,...t},a)=>(0,ea.jsx)("caption",{ref:a,className:_("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 Sa=xe(require("react"),1);var Ge=require("react/jsx-runtime"),up=ue.Root,dp=ue.Trigger;var gC=Sa.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ge.jsxs)(ue.SubTrigger,{ref:r,className:_("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)(pa,{className:"ps-ml-auto ps-h-4 ps-w-4"})]}));gC.displayName=ue.SubTrigger.displayName;var hC=Sa.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.SubContent,{ref:a,className:_("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 Jl=Sa.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.Portal,{children:(0,Ge.jsx)(ue.Content,{ref:a,className:_("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=Sa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ge.jsx)(ue.Item,{ref:o,className:_("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 xC=Sa.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ge.jsxs)(ue.CheckboxItem,{ref:r,className:_("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=Sa.forwardRef(({className:e,children:t,...a},o)=>(0,Ge.jsxs)(ue.RadioItem,{ref:o,className:_("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=Sa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ge.jsx)(ue.Label,{ref:o,className:_("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=Sa.forwardRef(({className:e,...t},a)=>(0,Ge.jsx)(ue.Separator,{ref:a,className:_("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:_("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)(Jl,{children:(0,wo.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,wo.jsx)(ur,{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,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?ei(t.children):""}return Array.isArray(e)?e.map(ei).join(""):""}var ti=require("react/jsx-runtime");function He(e){let{children:t,className:a,ref:o,style:r,...n}=e;return(0,ti.jsx)(tn,{...n,className:_("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)(fp,{children:t})})}var ai=require("react/jsx-runtime"),oi=(0,pp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,ai.jsx)(He,{...r,...a,ref:t,children:(0,ai.jsx)("div",{"data-cell-type":"boolean",children:String(!!o)})})});oi.displayName="BooleanCell";b();var mp=require("react");var gp=require("react/jsx-runtime"),ri=(0,mp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,gp.jsx)(He,{...r,...a,ref:t,children:String(o)})});ri.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)(He,{...o,...a,ref:t})});an.displayName="EmptyCell";b();var yp=require("react");var vp=require("react/jsx-runtime"),ni=(0,yp.forwardRef)((e,t)=>{let{containerProps:a,value:o,options:r,...n}=e;return(0,vp.jsx)(He,{...n,...a,ref:t,children:String(o)})});ni.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)(He,{...r,...a,ref:t,children:JSON.stringify(o,null,2)})});Is.displayName="JSONCell";b();var wp=require("react");var si=require("react/jsx-runtime"),li=(0,wp.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,si.jsx)(He,{...o,...a,ref:t,children:(0,si.jsx)("code",{className:"ps-text-gray-500",children:"NULL"})})});li.displayName="NullCell";b();var Lp=require("react");var ii=require("react/jsx-runtime"),ui=(0,Lp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,ii.jsx)(He,{...r,...a,ref:t,children:(0,ii.jsx)("div",{"data-cell-type":"numeric",children:o===null?"NULL":String(o)})})});ui.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)(He,{...r,...a,ref:t,children:String(o)})});ks.displayName="RawCell";b();var kp=require("react");var Pp=require("react/jsx-runtime"),di=(0,kp.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Pp.jsx)(He,{...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,Mp.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 Rp=require("react");var ci=require("react/jsx-runtime"),fi=(0,Rp.forwardRef)((e,t)=>{let{row:a,readonly:o,...r}=e;return(0,ci.jsx)(He,{ref:t,...r,children:(0,ci.jsx)(wr,{checked:a.getIsSelected(),disabled:!a.getCanSelect()||o,onCheckedChange:a.getToggleSelectedHandler()})})});fi.displayName="SelectRowCell";b();b();var Ia=xe(require("@radix-ui/react-popover"),1),nt=xe(require("react"),1);var Wo=require("react/jsx-runtime"),Ap=nt.createContext(null),pi=({children:e,...t})=>{let[a,o]=nt.useState(!1);return(0,Wo.jsx)(Ap.Provider,{value:{open:a,setOpen:o},children:(0,Wo.jsx)(Ia.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)(Ia.Trigger,{ref:s=>{typeof r=="function"?r(s):r&&(r.current=s),n.current=s},className:_("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)(Ia.Portal,{children:(0,Wo.jsx)(Ia.Content,{ref:r,align:t,sideOffset:a,className:_("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=Ia.Content.displayName;function pt(e){let t=nt.useContext(Ap),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"),ta=require("@dnd-kit/sortable"),Op=require("@dnd-kit/utilities");var Bp=require("react"),Ts=require("uuid");b();var Tp=xe(require("react"),1);var Dp=require("react/jsx-runtime"),Ht=Tp.forwardRef(({className:e,type:t,...a},o)=>(0,Dp.jsx)("input",{type:t,className:_("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}));Ht.displayName="Input";b();var de=xe(require("@radix-ui/react-select"),1);var Qa=xe(require("react"),1);var qe=require("react/jsx-runtime"),Rs=de.Root;var As=de.Value,rn=Qa.forwardRef(({className:e,children:t,...a},o)=>(0,qe.jsxs)(de.Trigger,{ref:o,className:_("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,qe.jsx)(de.Icon,{asChild:!0,children:(0,qe.jsx)($a,{className:"ps-h-4 ps-w-4 ps-opacity-50"})})]}));rn.displayName=de.Trigger.displayName;var Ep=Qa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(de.ScrollUpButton,{ref:a,className:_("ps-flex ps-cursor-default ps-items-center ps-justify-center ps-py-1",e),...t,children:(0,qe.jsx)(sr,{className:"ps-h-4 ps-w-4"})}));Ep.displayName=de.ScrollUpButton.displayName;var Fp=Qa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(de.ScrollDownButton,{ref:a,className:_("ps-flex ps-cursor-default ps-items-center ps-justify-center ps-py-1",e),...t,children:(0,qe.jsx)($a,{className:"ps-h-4 ps-w-4"})}));Fp.displayName=de.ScrollDownButton.displayName;var nn=Qa.forwardRef(({className:e,children:t,position:a="popper",...o},r)=>(0,qe.jsx)(de.Portal,{children:(0,qe.jsxs)(de.Content,{ref:r,className:_("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,qe.jsx)(Ep,{}),(0,qe.jsx)(de.Viewport,{className:_("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,qe.jsx)(Fp,{})]})}));nn.displayName=de.Content.displayName;var wC=Qa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(de.Label,{ref:a,className:_("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,qe.jsxs)(de.Item,{ref:o,className:_("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,qe.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,qe.jsx)(de.ItemIndicator,{children:(0,qe.jsx)(Bt,{className:"ps-h-4 ps-w-4"})})}),(0,qe.jsx)(de.ItemText,{children:t})]}));_e.displayName=de.Item.displayName;var LC=Qa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(de.Separator,{ref:a,className:_("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));LC.displayName=de.Separator.displayName;var K=require("react/jsx-runtime"),$p=["id","name","email","created_at","updated_at","status","role","department"],SC=({filter:e,onUpdate:t,onDelete:a,parentId:o})=>{let{attributes:r,listeners:n,setNodeRef:s,transform:i,transition:l,isDragging:u}=(0,ta.useSortable)({id:e.id,data:{type:e.kind,parentId:o}}),d={transform:Op.CSS.Transform.toString(i),transition:l,opacity:u?.5:1};return(0,K.jsx)("div",{ref:s,style:d,className:"ps-mt-2",children:e.kind==="ColumnFilter"?(0,K.jsx)(qp,{filter:e,onUpdate:t,onDelete:a,dragHandleProps:{...r,...n}}):(0,K.jsx)(hi,{group:e,onUpdate:t,onDelete:a,dragHandleProps:{...r,...n}})})},qp=({filter:e,onUpdate:t,onDelete:a,dragHandleProps:o})=>{let r=i=>{t({...e,column:i})},n=i=>{t({...e,operator:i})},s=i=>{t({...e,value:i.target.value})};return(0,K.jsx)("div",{className:"ps-mt-2",children:(0,K.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,K.jsx)("div",{...o,className:"ps-cursor-grab",children:(0,K.jsx)(Mo,{className:"ps-text-gray-400",size:16})}),(0,K.jsxs)(Rs,{value:e.column,onValueChange:r,children:[(0,K.jsx)(rn,{className:"ps-w-[180px] ps-h-8 ps-text-xs",children:(0,K.jsx)(As,{placeholder:"Select column"})}),(0,K.jsx)(nn,{children:$p.map(i=>(0,K.jsx)(_e,{value:i,children:i},i))})]}),(0,K.jsxs)(Rs,{value:e.operator,onValueChange:i=>n(i),children:[(0,K.jsx)(rn,{className:"ps-w-[100px] ps-h-8 ps-text-xs",children:(0,K.jsx)(As,{placeholder:"Operator"})}),(0,K.jsxs)(nn,{children:[(0,K.jsx)(_e,{value:"=",children:"="}),(0,K.jsx)(_e,{value:"!=",children:"!="}),(0,K.jsx)(_e,{value:">",children:">"}),(0,K.jsx)(_e,{value:">=",children:">="}),(0,K.jsx)(_e,{value:"<",children:"<"}),(0,K.jsx)(_e,{value:"<=",children:"<="}),(0,K.jsx)(_e,{value:"in",children:"in"}),(0,K.jsx)(_e,{value:"not in",children:"not in"}),(0,K.jsx)(_e,{value:"is",children:"is"}),(0,K.jsx)(_e,{value:"is not",children:"is not"}),(0,K.jsx)(_e,{value:"like",children:"like"}),(0,K.jsx)(_e,{value:"not like",children:"not like"}),(0,K.jsx)(_e,{value:"ilike",children:"ilike"}),(0,K.jsx)(_e,{value:"not ilike",children:"not ilike"}),(0,K.jsx)(_e,{value:"match",children:"match"})]})]}),(0,K.jsx)(Ht,{value:e.value||"",onChange:s,placeholder:"value",className:"ps-flex-1 ps-h-8 ps-text-xs"}),(0,K.jsx)($e,{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,K.jsx)(Ro,{size:16})})]})})},hi=({group:e,onUpdate:t,onDelete:a,dragHandleProps:o,isRoot:r=!1})=>{let[n,s]=(0,Bp.useState)(null),i=e.and?"and":"or",l=e.and||e.or||[],u=(0,dt.useSensors)((0,dt.useSensor)(dt.PointerSensor,{activationConstraint:{distance:8}}),(0,dt.useSensor)(dt.KeyboardSensor,{coordinateGetter:ta.sortableKeyboardCoordinates})),d=y=>{t(y==="and"?{...e,and:l,or:void 0}:{...e,or:l,and:void 0})},c=()=>{let y={kind:"ColumnFilter",column:$p[0],operator:"=",value:"",id:(0,Ts.v4)()};t(i==="and"?{...e,and:[...l,y]}:{...e,or:[...l,y]})},p=()=>{let y={kind:"ColumnFilters",and:[],id:(0,Ts.v4)()};t(i==="and"?{...e,and:[...l,y]}:{...e,or:[...l,y]})},f=(y,C)=>{let w=[...l];w[y]=C,t(i==="and"?{...e,and:w}:{...e,or:w})},m=y=>{let C=[...l];C.splice(y,1),t(i==="and"?{...e,and:C}:{...e,or:C})},g=y=>{s(y.active.id)},h=y=>{let{active:C,over:w}=y;if(w&&C.id!==w.id){let L=l.findIndex(A=>A.id===C.id),E=l.findIndex(A=>A.id===w.id),D=(0,ta.arrayMove)(l,L,E);t(i==="and"?{...e,and:D}:{...e,or:D})}s(null)},x=()=>(0,K.jsx)("div",{children:(0,K.jsx)("div",{children:(0,K.jsxs)(dt.DndContext,{sensors:u,collisionDetection:dt.closestCenter,onDragStart:g,onDragEnd:h,children:[(0,K.jsx)(ta.SortableContext,{items:l.map(y=>y.id),strategy:ta.verticalListSortingStrategy,children:l.map((y,C)=>(0,K.jsx)(SC,{filter:y,onUpdate:w=>f(C,w),onDelete:()=>m(C),parentId:e.id},y.id))}),(0,K.jsx)(dt.DragOverlay,{children:n?(0,K.jsx)("div",{className:"ps-opacity-80",children:(()=>{let y=l.find(C=>C.id===n);return y?y.kind==="ColumnFilter"?(0,K.jsx)(qp,{filter:y,onUpdate:()=>{},onDelete:()=>{}}):(0,K.jsx)(hi,{group:y,onUpdate:()=>{},onDelete:()=>{}}):null})()}):null})]})})});return(0,K.jsxs)("div",{className:"ps-bg-background",children:[(0,K.jsx)("div",{className:"ps-pb-0",children:(0,K.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between",children:[(0,K.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[!r&&(0,K.jsx)("div",{...o,className:"ps-cursor-grab",children:(0,K.jsx)(Mo,{className:"ps-text-gray-400",size:16})}),(0,K.jsxs)(Rs,{value:i,onValueChange:d,children:[(0,K.jsxs)(rn,{className:"ps-w-[100px] ps-font-bold ps-italic ps-h-8",children:[(0,K.jsx)(vr,{size:14}),(0,K.jsx)(As,{})]}),(0,K.jsxs)(nn,{children:[(0,K.jsx)(_e,{value:"and",children:"AND"}),(0,K.jsx)(_e,{value:"or",children:"OR"})]})]}),(0,K.jsxs)($e,{variant:"outline",size:"sm",onClick:c,children:[(0,K.jsx)(fr,{size:14}),"Filter"]}),(0,K.jsxs)($e,{variant:"outline",size:"sm",onClick:p,children:[(0,K.jsx)(qa,{size:14}),"Group"]})]}),!r&&(0,K.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2",children:(0,K.jsx)($e,{variant:"ghost",size:"icon",onClick:a,className:"ps-text-red-500 ps-hover:text-red-700 ps-hover:bg-red-100",children:(0,K.jsx)(Ro,{size:16})})})]})}),(0,K.jsx)("div",{className:`${r?"":"ps-ml-5"}`,children:x()})]})};function Np({filter:e,setFilter:t}){return(0,K.jsx)(hi,{group:{...e,id:(0,Ts.v4)()},onUpdate:t,onDelete:()=>{},isRoot:!0})}b();var Za=require("@dnd-kit/core"),Ja=require("@dnd-kit/sortable"),Yp=require("@dnd-kit/utilities"),Fs=require("@tanstack/react-table");b();var ka=xe(require("react"),1),V=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]=V.default.useState();V.default.useEffect(()=>{let n=IC(e);o(typeof n>"u"||n===null?typeof t=="function"?t():t:n)},[t,e]);let r=V.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 aa={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},Hp=V.default.createContext(aa);function _p(e){let{theme:t,...a}=e;return V.default.createElement(Hp.Provider,ja({value:t},a))}function PC(){return V.default.useContext(Hp)}function MC(e){let[t,a]=V.default.useState(()=>{if(typeof window<"u")return window.matchMedia&&window.matchMedia(e).matches});return V.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 RC=typeof window>"u";function _t(e,t,a){return a===void 0&&(a={}),V.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 V.default.createElement(e,{...s,style:{...typeof t=="function"?t(s,i):t,...n,...l},ref:r})})}function AC(){let e=V.default.useRef(!1),t=V.default.useCallback(()=>e.current,[]);return V.default[RC?"useEffect":"useLayoutEffect"](()=>(e.current=!0,()=>{e.current=!1}),[]),t}var TC=_t("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"}});_t("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=_t("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"}));_t("code",{fontSize:".9em"});_t("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}));_t("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 zp=_t("div",{fontFamily:"Menlo, monospace",fontSize:"0.7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Ds=_t("span",{cursor:"pointer",color:"white"}),EC=_t("span",(e,t)=>({color:t.danger})),xi=_t("div",{marginLeft:".1rem",paddingLeft:"1rem",borderLeft:"2px solid rgba(0,0,0,.15)"}),FC=_t("span",{color:"grey",fontSize:".7rem"}),Up=e=>{let{expanded:t,style:a={},...o}=e;return V.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]=V.default.useState(void 0),[f,m]=V.default.useState([]),g=()=>{p(o())};return V.default.createElement(zp,{key:a},n!=null&&n.length?V.default.createElement(V.default.Fragment,null,V.default.createElement(Ds,{onClick:()=>l()},V.default.createElement(Up,{expanded:i})," ",a," ",V.default.createElement(FC,null,String(s).toLowerCase()==="iterable"?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),i?n.length===1?V.default.createElement(xi,null,r.map(h=>t(h))):V.default.createElement(xi,null,n.map((h,x)=>V.default.createElement("div",{key:x},V.default.createElement(zp,null,V.default.createElement(Ds,{onClick:()=>m(y=>y.includes(x)?y.filter(C=>C!==x):[...y,x])},V.default.createElement(Up,{expanded:i})," [",x*u," ..."," ",x*u+u-1,"]"),f.includes(x)?V.default.createElement(xi,null,h.map(y=>t(y))):null)))):null):s==="function"?V.default.createElement(V.default.Fragment,null,V.default.createElement(oa,{renderer:d,label:V.default.createElement("button",{onClick:g},V.default.createElement(Ds,null,a)," \u{1F504}"," "),value:c,defaultExpanded:{}})):V.default.createElement(V.default.Fragment,null,V.default.createElement(Ds,null,a,":")," ",V.default.createElement(EC,null,JSON.stringify(o,Object.getOwnPropertyNames(Object(o))))))};function oa(e){let{value:t,defaultExpanded:a,renderer:o=OC,pageSize:r=100,depth:n=0,...s}=e,[i,l]=V.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=>V.default.createElement(oa,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 Vp(e){return ka.createElement("svg",ja({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),ka.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ka.createElement("g",{id:"og-white",transform:"translate(-28.000000, -21.000000)"},ka.createElement("g",{id:"Group-2",transform:"translate(28.000000, 31.000000)"},ka.createElement("g",{id:"Group",transform:"translate(0.000000, 10.000000)"},ka.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) "}),ka.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"}),ka.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 Gp(e){let{initialIsOpen:t,table:a,panelProps:o={},toggleButtonProps:r={},containerElement:n="footer"}=e,s=V.default.useRef(null),i=V.default.useRef(null),[l,u]=kC("reactTableDevtoolsOpen",t),d=AC(),{style:c={},...p}=o,{style:f={},onClick:m,...g}=r;return d()?V.default.createElement(n,{ref:s,className:"ReactTableDevtools"},V.default.createElement(_p,{theme:aa},l?V.default.createElement(BC,ja({ref:i},p,{table:a,isOpen:l,setIsOpen:u,style:{maxHeight:"80vh",width:"100%",...c}})):V.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}}),V.default.createElement(Vp,{"aria-hidden":!0})))):null}var BC=V.default.forwardRef(function(t,a){let{table:o,isOpen:r=!0,setIsOpen:n,...s}=t;return V.default.createElement(_p,{theme:aa},V.default.createElement(TC,ja({ref:a,className:"ReactTableDevtoolsPanel"},s),V.default.createElement("style",{dangerouslySetInnerHTML:{__html:`
|
|
1201
1201
|
.ReactTableDevtoolsPanel * {
|
|
1202
1202
|
scrollbar-color: ${aa.backgroundAlt} ${aa.gray};
|
|
1203
1203
|
}
|
|
@@ -1216,7 +1216,7 @@
|
|
|
1216
1216
|
border-radius: .5em;
|
|
1217
1217
|
border: 3px solid ${aa.backgroundAlt};
|
|
1218
1218
|
}
|
|
1219
|
-
`}}),V.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${aa.grayAlt}`,display:"flex",flexDirection:"column"}},V.default.createElement("div",{style:{padding:".5em",background:aa.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},V.default.createElement(_p,{"aria-hidden":!0,style:{marginRight:".5em"},onClick:()=>n(!1)}),V.default.createElement("div",{style:{marginRight:"auto",fontSize:"clamp(.8rem, 2vw, 1.3rem)",fontWeight:"bold"}},"React Table"," ",V.default.createElement("span",{style:{fontWeight:100}},"Devtools")),V.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},r?V.default.createElement(TC,{type:"button","aria-label":"Close React Table Devtools",onClick:()=>{n(!1)}},"Close"):null)),V.default.createElement("div",{style:{display:"flex",flexWrap:"wrap",overflowY:"auto",flex:"1"}},V.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},V.default.createElement(oa,{label:"Instance",value:o,defaultExpanded:!1}),V.default.createElement("div",{style:{height:".5rem"}}),V.default.createElement(oa,{label:"State",value:o.getState(),defaultExpanded:!1}),V.default.createElement("div",{style:{height:".5rem"}}),V.default.createElement(oa,{label:"Columns",value:o.getAllColumns(),defaultExpanded:!1})),V.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},V.default.createElement(oa,{label:"Core Model",value:o.getCoreRowModel(),defaultExpanded:!1}),V.default.createElement(oa,{label:"Filtered Model",value:o.getFilteredRowModel(),defaultExpanded:!1}),V.default.createElement(oa,{label:"Sorted Model",value:o.getSortedRowModel(),defaultExpanded:!1}),V.default.createElement(oa,{label:"Grouped Model",value:o.getGroupedRowModel(),defaultExpanded:!1}),V.default.createElement(oa,{label:"Expanded Model",value:o.getExpandedRowModel(),defaultExpanded:!1}))))))});var Xa=require("react");b();var Wp=require("@tanstack/react-table");var nn=require("motion/react");b();var ce=xe(require("@radix-ui/react-dropdown-menu"),1);var Pa=xe(require("react"),1);var Ke=require("react/jsx-runtime"),Gp=ce.Root,Kp=ce.Trigger;var BC=Pa.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ke.jsxs)(ce.SubTrigger,{ref:r,className:_("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)(pa,{className:"ps-ml-auto"})]}));BC.displayName=ce.SubTrigger.displayName;var $C=Pa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ce.SubContent,{ref:a,className:_("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 xi=Pa.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ke.jsx)(ce.Portal,{children:(0,Ke.jsx)(ce.Content,{ref:o,sideOffset:t,className:_("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})}));xi.displayName=ce.Content.displayName;var Ds=Pa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(ce.Item,{ref:o,className:_("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}));Ds.displayName=ce.Item.displayName;var qC=Pa.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ke.jsxs)(ce.CheckboxItem,{ref:r,className:_("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]}));qC.displayName=ce.CheckboxItem.displayName;var NC=Pa.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(ce.RadioItem,{ref:o,className:_("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]}));NC.displayName=ce.RadioItem.displayName;var zC=Pa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(ce.Label,{ref:o,className:_("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",t&&"ps-pl-8",e),...a}));zC.displayName=ce.Label.displayName;var UC=Pa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ce.Separator,{ref:a,className:_("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));UC.displayName=ce.Separator.displayName;var HC=({className:e,...t})=>(0,Ke.jsx)("span",{className:_("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...t});HC.displayName="DropdownMenuShortcut";var ie=require("react/jsx-runtime");function Qp(e){let{header:t,className:a}=e;return(0,ie.jsxs)("div",{className:_("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,Wp.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)(nn.AnimatePresence,{mode:"wait",children:t.column.getIsSorted()==="desc"?(0,ie.jsx)(nn.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.2},children:(0,ie.jsx)(gr,{size:14,className:"ps-text-muted-foreground"})},"desc"):t.column.getIsSorted()==="asc"?(0,ie.jsx)(nn.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"})},"asc"):null})}),t.column.getCanPin()&&t.column.id!=="select"&&(0,ie.jsxs)(Gp,{children:[(0,ie.jsx)(Kp,{asChild:!0,children:(0,ie.jsx)($e,{variant:"ghost",size:"sm",className:"ps-px-0 ps-h-6 ps-w-6",children:(0,ie.jsx)($a,{size:12})})}),(0,ie.jsxs)(xi,{children:[t.column.getCanSort()&&(0,ie.jsx)(Ds,{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)(Ba,{size:16}),"Sort descending"]}):t.column.getNextSortingOrder()==="asc"?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(rr,{size:16}),"Sort ascending"]}):(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(vr,{size:16}),"Cancel sorting"]})})}),(0,ie.jsx)(Ds,{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)(xr,{size:16}),"Unpin column"]}):(0,ie.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ie.jsx)(yr,{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:_("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 yi=require("react/jsx-runtime");function jp({className:e}){return(0,yi.jsx)("div",{"data-loading-bar":!0,className:_("ps-h-[2px] ps-w-full ps-overflow-hidden ps-bg-gray-200 ps-z-50",e),children:(0,yi.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 Xp(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)($e,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:"Previous"}),(0,Ve.jsx)($e,{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)($e,{variant:"outline",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:(0,Ve.jsx)(lr,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsx)($e,{variant:"outline",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:(0,Ve.jsx)(nr,{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)(Ht,{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)($e,{variant:"outline",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:(0,Ve.jsx)(pa,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsx)($e,{variant:"outline",onClick:()=>t.setPageIndex(r-1),disabled:!t.getCanNextPage(),children:(0,Ve.jsx)(ir,{className:"ps-w-4 ps-h-4"})})]})})})})}b();function sn(e,t){let a=e.getIsPinned(),o=a==="left"&&e.getIsFirstColumn("left"),r=a==="right"&&e.getIsFirstColumn("right"),n=o||r;return{className:_("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"),_C=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:Jp.CSS.Transform.toString(l),transition:u},f=_(a,"ps-select-none ps-touch-none ps-sticky ps-top-0 ps-bg-table-head"),m=_(f,c&&"!ps-z-50 ps-border-2 ps-border-violet-500");return(0,Ee.jsx)(Xl,{ref:d,...s,...i,style:n?r:p,className:n?f:m,children:(0,Ee.jsx)("div",{className:"ps-w-full",children:t})})};function Yp(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)(()=>Zp(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(H=>{let F=H.indexOf(S.id),re=H.indexOf(I.id);return(0,Ja.arrayMove)(H,F,re)})}let E=(0,Za.useSensor)(Za.MouseSensor,{activationConstraint:{distance:10}}),D=(0,Za.useSensors)(E),A=(0,Es.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,Es.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(Zp(I))),VC(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)(Vp,{table:A}),(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)(Wl,{className:"ps-table-fixed ps-border-separate ps-border-spacing-0 ps-box-border ps-w-auto",children:[(0,Ee.jsx)(Ql,{children:A.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)(_C,{header:I,table:A,...sn(I.column,"header"),children:(0,Ee.jsx)(Qp,{header:I})},I.id))})},S.id))}),(0,Ee.jsxs)(jl,{children:[a?.(A),A.getRowModel().rows?.length?A.getRowModel().rows.map(S=>(0,Ee.jsx)(bo,{className:_("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,H)=>{if(typeof I.column.columnDef.cell=="function"){let F=I.column.columnDef.cell(I.getContext());return(0,Ee.jsx)(F,{...sn(I.column,"cell")},H)}return null})},S.id)):(0,Ee.jsx)(bo,{children:(0,Ee.jsx)(en,{colSpan:t.length,className:"ps-h-24 ps-text-center",children:o?"Loading...":"No results."})})]})]})}),!l||l<2?null:(0,Ee.jsx)(Xp,{table:A,variant:"numeric"})]})]})}function Zp(e){return e?.map(t=>({id:t.column,desc:t.direction==="desc"}))||[]}function VC(e){return e.map(t=>({column:t.id,direction:t.desc?"desc":"asc"}))}b();b();var Vt=xe(require("@radix-ui/react-tooltip"),1),em=xe(require("react"),1);var vi=require("react/jsx-runtime"),tm=Vt.Provider,am=Vt.Root,om=Vt.Trigger,Ci=em.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,vi.jsx)(Vt.Portal,{children:(0,vi.jsx)(Vt.Content,{ref:o,sideOffset:t,className:_("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})}));Ci.displayName=Vt.Content.displayName;var Tt=require("react/jsx-runtime");function rm({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)(tm,{delayDuration:300,children:(0,Tt.jsxs)(am,{children:[(0,Tt.jsx)(om,{asChild:!0,children:(0,Tt.jsx)(cr,{size:12})}),(0,Tt.jsx)(Ci,{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 wm=require("remeda");b();var Li=require("motion/react"),cn=xe(require("react"),1);b();var bi=xe(require("@radix-ui/react-label"),1),nm=require("class-variance-authority"),sm=xe(require("react"),1);var lm=require("react/jsx-runtime"),GC=(0,nm.cva)("ps-text-sm ps-font-medium ps-leading-none peer-disabled:ps-cursor-not-allowed peer-disabled:ps-opacity-70"),ln=sm.forwardRef(({className:e,...t},a)=>(0,lm.jsx)(bi.Root,{ref:a,className:_(GC(),e),...t}));ln.displayName=bi.Root.displayName;b();var un=xe(require("@radix-ui/react-switch"),1),im=xe(require("react"),1);var wi=require("react/jsx-runtime"),dn=im.forwardRef(({className:e,...t},a)=>(0,wi.jsx)(un.Root,{className:_("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,wi.jsx)(un.Thumb,{className:_("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")})}));dn.displayName=un.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)(dr,{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)(dn,{id:"set-nullable",checked:r,onCheckedChange:u=>{o&&o(u)}}),(0,st.jsx)("span",{children:"Set to NULL"})]})})]})});var Gt=require("react/jsx-runtime");function um(e){let{value:t,onSubmit:a,column:o,readonly:r}=e,n=o.nullable===!0,[s,i]=(0,cn.useState)(t===null?!1:t),[l,u]=(0,cn.useState)(t===null),d=t===null?!1:t,c=x=>{i(x)},p=x=>{u(x)},f=cn.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,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.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,Gt.jsx)(ln,{htmlFor:"boolean-input",className:"ps-sr-only",children:"Boolean"}),(0,Gt.jsx)(Li.motion.div,{className:"ps-flex ps-items-center",initial:{opacity:0},animate:{opacity:1},transition:{duration:.24},children:(0,Gt.jsx)(dn,{id:"boolean-input",checked:s,onCheckedChange:c,disabled:l||r})}),(0,Gt.jsx)(Li.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,Gt.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:l,readonly:r})]})}b();var Si=xe(require("dayjs"),1),cm=xe(require("dayjs/plugin/localizedFormat"),1),Fs=require("react");b();var dm=require("react");function Qo(e){let{initialValue:t}=e,[a,o]=(0,dm.useState)(t??"");return{handleOnChange:n=>{o(n.target.value)},value:a}}var Dt=require("react/jsx-runtime");Si.default.extend(cm.default);function fm(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Qo({initialValue:r}),i=(0,Fs.useMemo)(()=>{try{let f=(0,Si.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,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,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsxs)("form",{onSubmit:l,children:[(0,Dt.jsx)(Ht,{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 fn=require("react");b();var pm=require("class-variance-authority");var KC=require("react/jsx-runtime"),mm=(0,pm.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"}});var Ma=require("react/jsx-runtime");function gm(e){let{onSubmit:t,column:a,value:o,options:r=[],readonly:n}=e,s=a.nullable===!0,i=String(o),[l,u]=(0,fn.useState)(i),[d,c]=(0,fn.useState)(o===null),p=y=>{u(y)},f=y=>{c(y)},m=(0,fn.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,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.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,Ma.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,Ma.jsx)("button",{onClick:()=>p(y),className:mm({variant:y===l?"default":"outline"}),disabled:d||n,children:y},y))}),(0,Ma.jsx)(mt,{onSave:h,onCancel:x,onNullChange:s?f:void 0,isNull:d,readonly:n})]})}b();var pn=xe(require("react"),1);var Ya=require("react/jsx-runtime");function hm(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,pn.useState)(s),[u,d]=(0,pn.useState)(t===null),c=x=>{l(x.target.value)},p=x=>{d(x)},f=pn.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 mn=xe(require("react"),1);var Ra=require("react/jsx-runtime");function xm(e){let{value:t,onSubmit:a,column:o,readonly:r}=e,n=o.nullable===!0,[s,i]=(0,mn.useState)(t===null?"":String(t)),[l,u]=(0,mn.useState)(t===null),d=t===null?"":String(t),c=x=>{i(x.target.value)},p=x=>{u(x)},f=mn.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,Ra.jsxs)(Ra.Fragment,{children:[(0,Ra.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,Ra.jsx)(ln,{htmlFor:"numeric-input",className:"ps-sr-only",children:"Numeric"}),(0,Ra.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,Ra.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:l,readonly:r})]})}b();var ym=xe(require("react"),1);var Aa=require("react/jsx-runtime");function vm(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Qo({initialValue:r});function i(p){p.preventDefault(),s!==r&&t(s)}let l=ym.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,Aa.jsxs)(Aa.Fragment,{children:[(0,Aa.jsxs)("form",{onSubmit:i,children:[(0,Aa.jsx)(Ht,{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,Aa.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Aa.jsx)(mt,{onSave:d,onCancel:c,readonly:o})]})}b();var Ii=xe(require("dayjs"),1),Cm=xe(require("dayjs/plugin/localizedFormat"),1),Os=require("react");var Et=require("react/jsx-runtime");Ii.default.extend(Cm.default);function bm(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Qo({initialValue:r}),i=(0,Os.useMemo)(()=>{try{if(!s.includes(":"))return s;let f=/[+-]\d{2}(:\d{2})?$/.test(s),m=(0,Ii.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,Os.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)(Ht,{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 Bs(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)(fm,{onSubmit:o,value:u,column:a,readonly:i}):r==="time"?(0,eo.jsx)(bm,{onSubmit:o,value:u,column:a,readonly:i}):r==="json"||s?(0,eo.jsx)(hm,{onSubmit:o,value:u,column:a,readonly:i}):r==="boolean"?(0,eo.jsx)(um,{onSubmit:o,value:u,column:a,readonly:i}):r==="enum"?(0,eo.jsx)(gm,{onSubmit:o,value:u,options:n,column:a,readonly:i}):r==="numeric"?(0,eo.jsx)(xm,{onSubmit:o,value:u,column:a,readonly:i}):(0,eo.jsx)(vm,{onSubmit:o,value:(0,wm.isObjectType)(u)?JSON.stringify(u):u,readonly:i})}b();var Lm=require("@tanstack/react-table"),Sm=require("remeda");var to=require("react/jsx-runtime");function Im(e){let{table:t,stagedRows:a,setStagedRows:o}=e,r=!!ys();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)(tn,{})}}:{...l,cell({cell:u}){return d=>(0,to.jsx)(Ps,{cellComponent:ks({cell:u,column:l.meta,props:d}),inputComponent:Bs({cell:u,column:l.meta,onSubmit(c){n(d.rowIndex,{[l.id]:c})},readonly:r})})}}),i=(0,Lm.useReactTable)({...t.options,columns:s,enableSorting:!1,onPaginationChange:void 0,onSortingChange:void 0,data:a,state:(0,Sm.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,{...sn(d.column,"cell"),rowIndex:u},c)}return null})},u))})}var ke=require("react/jsx-runtime");function Mm(e){let t=!!(0,km.useIsMutating)(),{activeTable:a,onError:o,isFullscreen:r,toggleFullscreen:n}=Ze(),{sortingState:s,setSortingState:i}=lp(),{paginationState:l,setPaginationState:u}=Cs(),[d,c]=(0,gn.useState)([]),{data:p,isFetching:f}=tp({...l,sortOrder:s}),{deleteSelection:m,isSelecting:g,rowSelectionState:h,setRowSelectionState:x}=sp(p),[y,C]=(0,gn.useState)({kind:"ColumnFilters",and:[]}),w=!Object.values(a?.columns??{}).some(J=>J.isInPrimaryKey),L=ys(),E=Yf(),D=ap();if((0,gn.useEffect)(()=>c([]),[a]),!a)return null;function A(){E.mutate(d,{onError:o,onSuccess(){Pm.toast.success("Rows inserted successfully"),c([])}})}function S(){c(J=>[...J,{}])}function I(){c([])}function H(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 rm({column:J})},cell({cell:ne}){return me=>(0,ke.jsx)(Ps,{cellComponent:ks({cell:ne,column:J,props:me}),inputComponent:Bs({cell:ne,column:J,readonly:w,onSubmit(he){return H(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)(br,{checked:J.getIsAllRowsSelected(),onCheckedChange:ne=>J.toggleAllRowsSelected(!!ne),disabled:w})},cell({row:J}){return ne=>(0,ke.jsx)(ci,{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)($e,{variant:"outline",size:"sm",onClick:S,disabled:L>0,children:"Insert row"}),d.length>0&&(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)($e,{variant:"secondary",size:"sm",onClick:A,children:"Save"}),(0,ke.jsx)($e,{variant:"ghost",size:"sm",onClick:I,children:"Cancel"})]}),g&&(0,ke.jsx)(ke.Fragment,{children:(0,ke.jsx)($e,{variant:"secondary",size:"sm",onClick:m,children:"Delete"})})]}),(0,ke.jsx)($e,{variant:"outline",size:"icon",onClick:n,children:r?(0,ke.jsx)(mr,{}):(0,ke.jsx)(pr,{})})]})})}),(0,ke.jsx)(qp,{filter:y,setFilter:C}),(0,ke.jsx)(Yp,{columnDefs:fe,getBeforeRows:J=>(0,ke.jsx)(Im,{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 Om=require("@radix-ui/react-slot");b();var Am=require("react/jsx-runtime");function Rm({className:e,...t}){return(0,Am.jsx)("div",{className:_("ps-animate-pulse ps-rounded-md ps-bg-primary/10",e),...t})}b();var ao=require("react"),Em=require("uuid");b();var Tm=require("@tanstack/react-query");var $s=-1;function Dm(){let{adapter:e}=Ze();return(0,Tm.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}},timezone:"UTC"},initialDataUpdatedAt:$s,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===$s?0:1/0})}function Fm(){let{activeTable:e,setActiveTable:t,adapter:a,emitTelemetryEvent:o}=Ze(),{data:r,dataUpdatedAt:n}=Dm(),s=n===$s,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]=Yr({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,Em.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}=Fm();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?Om.Slot:"button",{"data-sidebar":"menu-button","data-size":o,"data-active":a,className:_("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 ra=require("react/jsx-runtime");function Bm(e){let{adapter:t,onError:a,onTelemetryEvent:o}=e;return t?(0,ra.jsx)(Zf,{adapter:t,onError:a,onTelemetryEvent:o,children:(0,ra.jsx)(ZC,{})}):(console.error("No adapter provided to Studio component"),(0,ra.jsx)("div",{children:"Error: No adapter provided"}))}function ZC(){let{isFullscreen:e}=Ze(),t=_("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,ra.jsx)("div",{className:t,children:(0,ra.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,ra.jsx)(oo,{}),(0,ra.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,ra.jsx)(Mm,{})})]})})}0&&(module.exports={Studio});
|
|
1219
|
+
`}}),V.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${aa.grayAlt}`,display:"flex",flexDirection:"column"}},V.default.createElement("div",{style:{padding:".5em",background:aa.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},V.default.createElement(Vp,{"aria-hidden":!0,style:{marginRight:".5em"},onClick:()=>n(!1)}),V.default.createElement("div",{style:{marginRight:"auto",fontSize:"clamp(.8rem, 2vw, 1.3rem)",fontWeight:"bold"}},"React Table"," ",V.default.createElement("span",{style:{fontWeight:100}},"Devtools")),V.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},r?V.default.createElement(DC,{type:"button","aria-label":"Close React Table Devtools",onClick:()=>{n(!1)}},"Close"):null)),V.default.createElement("div",{style:{display:"flex",flexWrap:"wrap",overflowY:"auto",flex:"1"}},V.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},V.default.createElement(oa,{label:"Instance",value:o,defaultExpanded:!1}),V.default.createElement("div",{style:{height:".5rem"}}),V.default.createElement(oa,{label:"State",value:o.getState(),defaultExpanded:!1}),V.default.createElement("div",{style:{height:".5rem"}}),V.default.createElement(oa,{label:"Columns",value:o.getAllColumns(),defaultExpanded:!1})),V.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},V.default.createElement(oa,{label:"Core Model",value:o.getCoreRowModel(),defaultExpanded:!1}),V.default.createElement(oa,{label:"Filtered Model",value:o.getFilteredRowModel(),defaultExpanded:!1}),V.default.createElement(oa,{label:"Sorted Model",value:o.getSortedRowModel(),defaultExpanded:!1}),V.default.createElement(oa,{label:"Grouped Model",value:o.getGroupedRowModel(),defaultExpanded:!1}),V.default.createElement(oa,{label:"Expanded Model",value:o.getExpandedRowModel(),defaultExpanded:!1}))))))});var Xa=require("react");b();var Qp=require("@tanstack/react-table");var sn=require("motion/react");b();var ce=xe(require("@radix-ui/react-dropdown-menu"),1);var Pa=xe(require("react"),1);var Ke=require("react/jsx-runtime"),Kp=ce.Root,Wp=ce.Trigger;var $C=Pa.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ke.jsxs)(ce.SubTrigger,{ref:r,className:_("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)(pa,{className:"ps-ml-auto"})]}));$C.displayName=ce.SubTrigger.displayName;var qC=Pa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ce.SubContent,{ref:a,className:_("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=Pa.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ke.jsx)(ce.Portal,{children:(0,Ke.jsx)(ce.Content,{ref:o,sideOffset:t,className:_("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 Es=Pa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(ce.Item,{ref:o,className:_("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}));Es.displayName=ce.Item.displayName;var NC=Pa.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ke.jsxs)(ce.CheckboxItem,{ref:r,className:_("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=Pa.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(ce.RadioItem,{ref:o,className:_("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=Pa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(ce.Label,{ref:o,className:_("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=Pa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ce.Separator,{ref:a,className:_("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:_("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...t});_C.displayName="DropdownMenuShortcut";var ie=require("react/jsx-runtime");function jp(e){let{header:t,className:a}=e;return(0,ie.jsxs)("div",{className:_("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,Qp.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)(gr,{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)(hr,{size:14,className:"ps-text-muted-foreground"})},"asc"):null})}),t.column.getCanPin()&&t.column.id!=="select"&&(0,ie.jsxs)(Kp,{children:[(0,ie.jsx)(Wp,{asChild:!0,children:(0,ie.jsx)($e,{variant:"ghost",size:"sm",className:"ps-px-0 ps-h-6 ps-w-6",children:(0,ie.jsx)($a,{size:12})})}),(0,ie.jsxs)(yi,{children:[t.column.getCanSort()&&(0,ie.jsx)(Es,{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)(Ba,{size:16}),"Sort descending"]}):t.column.getNextSortingOrder()==="asc"?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(rr,{size:16}),"Sort ascending"]}):(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(Cr,{size:16}),"Cancel sorting"]})})}),(0,ie.jsx)(Es,{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)(xr,{size:16}),"Unpin column"]}):(0,ie.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ie.jsx)(yr,{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:_("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 Xp({className:e}){return(0,vi.jsx)("div",{"data-loading-bar":!0,className:_("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 Zp(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)($e,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:"Previous"}),(0,Ve.jsx)($e,{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)($e,{variant:"outline",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:(0,Ve.jsx)(lr,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsx)($e,{variant:"outline",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:(0,Ve.jsx)(nr,{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)(Ht,{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)($e,{variant:"outline",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:(0,Ve.jsx)(pa,{className:"ps-w-4 ps-h-4"})}),(0,Ve.jsx)($e,{variant:"outline",onClick:()=>t.setPageIndex(r-1),disabled:!t.getCanNextPage(),children:(0,Ve.jsx)(ir,{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:_("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:Yp.CSS.Transform.toString(l),transition:u},f=_(a,"ps-select-none ps-touch-none ps-sticky ps-top-0 ps-bg-table-head"),m=_(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 em(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)(()=>Jp(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(H=>{let F=H.indexOf(S.id),re=H.indexOf(I.id);return(0,Ja.arrayMove)(H,F,re)})}let E=(0,Za.useSensor)(Za.MouseSensor,{activationConstraint:{distance:10}}),D=(0,Za.useSensors)(E),A=(0,Fs.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,Fs.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(Jp(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)(Gp,{table:A}),(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)(Xp,{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)(Ql,{className:"ps-table-fixed ps-border-separate ps-border-spacing-0 ps-box-border ps-w-auto",children:[(0,Ee.jsx)(jl,{children:A.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:A,...ln(I.column,"header"),children:(0,Ee.jsx)(jp,{header:I})},I.id))})},S.id))}),(0,Ee.jsxs)(Xl,{children:[a?.(A),A.getRowModel().rows?.length?A.getRowModel().rows.map(S=>(0,Ee.jsx)(bo,{className:_("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,H)=>{if(typeof I.column.columnDef.cell=="function"){let F=I.column.columnDef.cell(I.getContext());return(0,Ee.jsx)(F,{...ln(I.column,"cell")},H)}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)(Zp,{table:A,variant:"numeric"})]})]})}function Jp(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 Vt=xe(require("@radix-ui/react-tooltip"),1),tm=xe(require("react"),1);var Ci=require("react/jsx-runtime"),am=Vt.Provider,om=Vt.Root,rm=Vt.Trigger,bi=tm.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ci.jsx)(Vt.Portal,{children:(0,Ci.jsx)(Vt.Content,{ref:o,sideOffset:t,className:_("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=Vt.Content.displayName;var Tt=require("react/jsx-runtime");function nm({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)(am,{delayDuration:300,children:(0,Tt.jsxs)(om,{children:[(0,Tt.jsx)(rm,{asChild:!0,children:(0,Tt.jsx)(cr,{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),sm=require("class-variance-authority"),lm=xe(require("react"),1);var im=require("react/jsx-runtime"),KC=(0,sm.cva)("ps-text-sm ps-font-medium ps-leading-none peer-disabled:ps-cursor-not-allowed peer-disabled:ps-opacity-70"),un=lm.forwardRef(({className:e,...t},a)=>(0,im.jsx)(wi.Root,{ref:a,className:_(KC(),e),...t}));un.displayName=wi.Root.displayName;b();var dn=xe(require("@radix-ui/react-switch"),1),um=xe(require("react"),1);var Li=require("react/jsx-runtime"),cn=um.forwardRef(({className:e,...t},a)=>(0,Li.jsx)(dn.Root,{className:_("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:_("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)(dr,{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 Gt=require("react/jsx-runtime");function dm(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,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.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,Gt.jsx)(un,{htmlFor:"boolean-input",className:"ps-sr-only",children:"Boolean"}),(0,Gt.jsx)(Si.motion.div,{className:"ps-flex ps-items-center",initial:{opacity:0},animate:{opacity:1},transition:{duration:.24},children:(0,Gt.jsx)(cn,{id:"boolean-input",checked:s,onCheckedChange:c,disabled:l||r})}),(0,Gt.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,Gt.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:l,readonly:r})]})}b();var Ii=xe(require("dayjs"),1),fm=xe(require("dayjs/plugin/localizedFormat"),1),Os=require("react");b();var cm=require("react");function Qo(e){let{initialValue:t}=e,[a,o]=(0,cm.useState)(t??"");return{handleOnChange:n=>{o(n.target.value)},value:a}}var Dt=require("react/jsx-runtime");Ii.default.extend(fm.default);function pm(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Qo({initialValue:r}),i=(0,Os.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,Os.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)(Ht,{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");b();var mm=require("class-variance-authority");var WC=require("react/jsx-runtime"),gm=(0,mm.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"}});var Ma=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,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.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,Ma.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,Ma.jsx)("button",{onClick:()=>p(y),className:gm({variant:y===l?"default":"outline"}),disabled:d||n,children:y},y))}),(0,Ma.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 Ra=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,Ra.jsxs)(Ra.Fragment,{children:[(0,Ra.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,Ra.jsx)(un,{htmlFor:"numeric-input",className:"ps-sr-only",children:"Numeric"}),(0,Ra.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,Ra.jsx)(mt,{onSave:g,onCancel:h,onNullChange:n?p:void 0,isNull:l,readonly:r})]})}b();var vm=xe(require("react"),1);var Aa=require("react/jsx-runtime");function Cm(e){let{onSubmit:t,value:a,readonly:o}=e,r=String(a),{handleOnChange:n,value:s}=Qo({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,Aa.jsxs)(Aa.Fragment,{children:[(0,Aa.jsxs)("form",{onSubmit:i,children:[(0,Aa.jsx)(Ht,{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,Aa.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Aa.jsx)(mt,{onSave:d,onCancel:c,readonly:o})]})}b();var ki=xe(require("dayjs"),1),bm=xe(require("dayjs/plugin/localizedFormat"),1),Bs=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}=Qo({initialValue:r}),i=(0,Bs.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,Bs.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)(Ht,{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 $s(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)(pm,{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)(dm,{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:$s({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 Rm(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(Y=>Y.isInPrimaryKey),L=vs(),E=ep(),D=op();if((0,hn.useEffect)(()=>c([]),[a]),!a)return null;function A(){E.mutate(d,{onError:o,onSuccess(){Mm.toast.success("Rows inserted successfully"),c([])}})}function S(){c(Y=>[...Y,{}])}function I(){c([])}function H(Y,ne,me){D.mutate({details:{changes:{[ne.name]:Y},row:me,table:a},options:{}})}let F=Object.values(a?.columns??{}).map(Y=>({id:Y.name,accessorKey:Y.name,meta:Y,header(){return nm({column:Y})},cell({cell:ne}){return me=>(0,ke.jsx)(Ms,{cellComponent:Ps({cell:ne,column:Y,props:me}),inputComponent:$s({cell:ne,column:Y,readonly:w,onSubmit(he){return H(he,Y,ne.row.original)}})})}})),re=[{id:"__ps_select",accessorKey:"__ps_select",enablePinning:!1,enableResizing:!1,enableSorting:!1,disableDragging:!0,size:0,header({table:Y}){return(0,ke.jsx)(wr,{checked:Y.getIsAllRowsSelected(),onCheckedChange:ne=>Y.toggleAllRowsSelected(!!ne),disabled:w})},cell({row:Y}){return ne=>(0,ke.jsx)(fi,{row:Y,readonly:w,...ne})}}],fe=[...F,...re].sort(jC);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)($e,{variant:"outline",size:"sm",onClick:S,disabled:L>0,children:"Insert row"}),d.length>0&&(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)($e,{variant:"secondary",size:"sm",onClick:A,children:"Save"}),(0,ke.jsx)($e,{variant:"ghost",size:"sm",onClick:I,children:"Cancel"})]}),g&&(0,ke.jsx)(ke.Fragment,{children:(0,ke.jsx)($e,{variant:"secondary",size:"sm",onClick:m,children:"Delete"})})]}),(0,ke.jsx)($e,{variant:"outline",size:"icon",onClick:n,children:r?(0,ke.jsx)(mr,{}):(0,ke.jsx)(pr,{})})]})})}),(0,ke.jsx)(Np,{filter:y,setFilter:C}),(0,ke.jsx)(em,{columnDefs:fe,getBeforeRows:Y=>(0,ke.jsx)(km,{table:Y,stagedRows:d,setStagedRows:c}),isLoading:f,isProcessing:t,onPaginationChange:u,onRowSelectionChange:x,onSortingChange:i,pageCount:QC(p?.filteredRowCount??1/0,l.pageSize),paginationState:l,rows:p?.rows??[],rowSelectionState:h,sortingState:s})]})}function QC(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 jC(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 Am({className:e,...t}){return(0,Tm.jsx)("div",{className:_("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 qs=-1;function Em(){let{adapter:e}=Ze();return(0,Dm.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}},timezone:"UTC",filterOperators:[]},initialDataUpdatedAt:qs,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===qs?0:1/0})}function Om(){let{activeTable:e,setActiveTable:t,adapter:a,emitTelemetryEvent:o}=Ze(),{data:r,dataUpdatedAt:n}=Em(),s=n===qs,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)(Am,{className:"ps-h-3 ps-w-full"})},n)):(0,gt.jsx)(oo.Item,{children:"No tables found"})})})}var XC=({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})]}),ZC=({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:_("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=XC;oo.Item=ZC;var ra=require("react/jsx-runtime");function $m(e){let{adapter:t,onError:a,onTelemetryEvent:o}=e;return t?(0,ra.jsx)(Jf,{adapter:t,onError:a,onTelemetryEvent:o,children:(0,ra.jsx)(JC,{})}):(console.error("No adapter provided to Studio component"),(0,ra.jsx)("div",{children:"Error: No adapter provided"}))}function JC(){let{isFullscreen:e}=Ze(),t=_("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,ra.jsx)("div",{className:t,children:(0,ra.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,ra.jsx)(oo,{}),(0,ra.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,ra.jsx)(Rm,{})})]})})}0&&(module.exports={Studio});
|
|
1220
1220
|
/*! Bundled license information:
|
|
1221
1221
|
|
|
1222
1222
|
@tanstack/query-devtools/build/chunk/WXAWMS3D.js:
|
|
@@ -1557,6 +1557,14 @@ lucide-react/dist/esm/icons/pin.js:
|
|
|
1557
1557
|
* See the LICENSE file in the root directory of this source tree.
|
|
1558
1558
|
*)
|
|
1559
1559
|
|
|
1560
|
+
lucide-react/dist/esm/icons/shapes.js:
|
|
1561
|
+
(**
|
|
1562
|
+
* @license lucide-react v0.466.0 - ISC
|
|
1563
|
+
*
|
|
1564
|
+
* This source code is licensed under the ISC license.
|
|
1565
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1566
|
+
*)
|
|
1567
|
+
|
|
1560
1568
|
lucide-react/dist/esm/icons/trash-2.js:
|
|
1561
1569
|
(**
|
|
1562
1570
|
* @license lucide-react v0.466.0 - ISC
|