@prisma/studio-core 0.0.0-dev.202505011715 → 0.0.0-dev.202505011736
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 +508 -508
- package/dist/ui/index.js +2 -2
- package/package.json +1 -1
package/dist/ui/index.cjs
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
"use strict";var Ep=Object.create;var Hr=Object.defineProperty;var Fp=Object.getOwnPropertyDescriptor;var Op=Object.getOwnPropertyNames;var Bp=Object.getPrototypeOf,$p=Object.prototype.hasOwnProperty;var Oo=(e,t)=>()=>(e&&(t=e(e=0)),t);var _r=(e,t)=>{for(var a in t)Hr(e,a,{get:t[a],enumerable:!0})},Ur=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Op(t))!$p.call(e,r)&&r!==a&&Hr(e,r,{get:()=>t[r],enumerable:!(o=Fp(t,r))||o.enumerable});return e},Zt=(e,t,a)=>(Ur(e,t,"default"),a&&Ur(a,t,"default")),Re=(e,t,a)=>(a=e!=null?Ep(Bp(e)):{},Ur(t||!e||!e.__esModule?Hr(a,"default",{value:e,enumerable:!0}):a,e)),qp=e=>Ur(Hr({},"__esModule",{value:!0}),e);var C=Oo(()=>{});function hi(e){let t=String(e),a=t.length-1;return Z.context.id+(a?String.fromCharCode(96+a):"")+t}function Va(e){Z.context=e}function bm(){return{...Z.context,id:Z.getNextContextId(),count:0}}function Bt(e,t){let a=ge,o=re,r=e.length===0,n=t===void 0?o:t,s=r?Ti:{owned:null,cleanups:null,context:n?n.context:null,owner:n},i=r?e:()=>e(()=>we(()=>Ma(s)));re=s,ge=null;try{return rt(i,!0)}finally{ge=a,re=o}}function z(e,t){t=t?Object.assign({},Yr,t):Yr;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)),$i(a,r));return[Bi.bind(a),o]}function Jr(e,t,a){let o=rn(e,t,!0,lt);go&&q&&q.running?$e.push(o):ho(o)}function G(e,t,a){let o=rn(e,t,!1,lt);go&&q&&q.running?$e.push(o):ho(o)}function W(e,t,a){Ri=Pm;let o=rn(e,t,!1,lt),r=ar&&qe(ar);r&&(o.suspense=r),(!a||!a.render)&&(o.user=!0),je?je.push(o):ho(o)}function k(e,t,a){a=a?Object.assign({},Yr,a):Yr;let o=rn(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=a.equals||void 0,go&&q&&q.running?(o.tState=lt,$e.push(o)):ho(o),Bi.bind(o)}function Cm(e){return e&&typeof e=="object"&&"then"in e}function wm(e,t,a){let o,r,n;o=!0,r=e,n={};let s=null,i=ts,l=null,u=!1,d=!1,c="initialValue"in n,f=typeof o=="function"&&k(o),p=new Set,[m,g]=(n.storage||z)(n.initialValue),[h,x]=z(void 0),[b,v]=z(void 0,{equals:!1}),[w,I]=z(c?"ready":"unresolved");Z.context&&(l=Z.getNextContextId(),n.ssrLoadFrom==="initial"?i=n.initialValue:Z.load&&Z.has(l)&&(i=Z.load(l)));function E(S,F,P,Y){return s===S&&(s=null,Y!==void 0&&(c=!0),(S===i||F===i)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(Y,{value:F})),i=ts,q&&S&&u?(q.promises.delete(S),u=!1,rt(()=>{q.running=!0,T(F,P)},!1)):T(F,P)),F}function T(S,F){rt(()=>{F===void 0&&g(()=>S),I(F!==void 0?"errored":c?"ready":"unresolved"),x(F);for(let P of p.keys())P.decrement();p.clear()},!1)}function $(){let S=ar&&qe(ar),F=m(),P=h();if(P!==void 0&&!s)throw P;return ge&&!ge.user&&S&&Jr(()=>{b(),s&&(S.resolved&&q&&u?q.promises.add(s):p.has(S)||(S.increment(),p.add(S)))}),F}function L(S=!0){if(S!==!1&&d)return;d=!1;let F=f?f():o;if(u=q&&q.running,F==null||F===!1){E(s,we(m));return}q&&s&&q.promises.delete(s);let P=i!==ts?i:we(()=>r(F,{value:m(),refetching:S}));return Cm(P)?(s=P,"value"in P?(P.status==="success"?E(s,P.value,void 0,F):E(s,void 0,rs(P.value),F),P):(d=!0,queueMicrotask(()=>d=!1),rt(()=>{I(c?"refreshing":"pending"),v()},!1),P.then(Y=>E(P,Y,void 0,F),Y=>E(P,void 0,rs(Y),F)))):(E(s,P,void 0,F),P)}return Object.defineProperties($,{state:{get:()=>w()},error:{get:()=>h()},loading:{get(){let S=w();return S==="pending"||S==="refreshing"}},latest:{get(){if(!c)return $();let S=h();if(S&&!s)throw S;return m()}}}),f?Jr(()=>L(!1)):L(!1),[$,{refetch:L,mutate:g}]}function Di(e){return rt(e,!1)}function we(e){if(!po&&ge===null)return e();let t=ge;ge=null;try{return po?po.untrack(e):e()}finally{ge=t}}function $t(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=we(()=>t(i,r,s));return r=i,l}}function ta(e){W(()=>we(e))}function X(e){return re===null||(re.cleanups===null?re.cleanups=[e]:re.cleanups.push(e)),e}function en(){return re}function Lm(e,t){let a=re,o=ge;re=e,ge=null;try{return rt(t,!0)}catch(r){nn(r)}finally{re=a,ge=o}}function Ei(e){if(q&&q.running)return e(),q.done;let t=ge,a=re;return Promise.resolve().then(()=>{ge=t,re=a;let o;return(go||ar)&&(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),rt(e,!1),ge=re=null,o?o.done:void 0})}function Fi(){return[Im,Ei]}function _e(e,t){let a=Symbol("context");return{id:a,Provider:Mm(a),defaultValue:e}}function qe(e){let t;return re&&re.context&&(t=re.context[e.id])!==void 0?t:e.defaultValue}function Oi(e){let t=k(e),a=k(()=>ns(t()));return a.toArray=()=>{let o=a();return Array.isArray(o)?o:o!=null?[o]:[]},a}function Bi(){let e=q&&q.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===lt)ho(this);else{let t=$e;$e=null,rt(()=>tn(this),!1),$e=t}if(ge){let t=this.observers?this.observers.length:0;ge.sources?(ge.sources.push(this),ge.sourceSlots.push(t)):(ge.sources=[this],ge.sourceSlots=[t]),this.observers?(this.observers.push(ge),this.observerSlots.push(ge.sources.length-1)):(this.observers=[ge],this.observerSlots=[ge.sources.length-1])}return e&&q.sources.has(this)?this.tValue:this.value}function $i(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&&rt(()=>{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?$e.push(n):je.push(n),n.observers&&Ni(n)),s?n.tState=lt:n.state=lt)}if($e.length>1e6)throw $e=[],new Error},!1)}return t}function ho(e){if(!e.fn)return;Ma(e);let t=on;bi(e,q&&q.running&&q.sources.has(e)?e.tValue:e.value,t),q&&!q.running&&q.sources.has(e)&&queueMicrotask(()=>{rt(()=>{q&&(q.running=!0),ge=re=e,bi(e,e.tValue,t),ge=re=null},!1)})}function bi(e,t,a){let o,r=re,n=ge;ge=re=e;try{o=e.fn(t)}catch(s){return e.pure&&(q&&q.running?(e.tState=lt,e.tOwned&&e.tOwned.forEach(Ma),e.tOwned=void 0):(e.state=lt,e.owned&&e.owned.forEach(Ma),e.owned=null)),e.updatedAt=a+1,nn(s)}finally{ge=n,re=r}(!e.updatedAt||e.updatedAt<=a)&&(e.updatedAt!=null&&"observers"in e?$i(e,o,!0):q&&q.running&&e.pure?(q.sources.add(e),e.tValue=o):e.value=o,e.updatedAt=a)}function rn(e,t,a,o=lt,r){let n={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:re,context:re?re.context:null,pure:a};if(q&&q.running&&(n.state=0,n.tState=o),re===null||re!==Ti&&(q&&q.running&&re.pure?re.tOwned?re.tOwned.push(n):re.tOwned=[n]:re.owned?re.owned.push(n):re.owned=[n]),po&&n.fn){let[s,i]=z(void 0,{equals:!1}),l=po.factory(n.fn,i);X(()=>l.dispose());let u=()=>Ei(i).then(()=>d.dispose()),d=po.factory(n.fn,u);n.fn=c=>(s(),q&&q.running?d.track(c):l.track(c))}return n}function or(e){let t=q&&q.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===tr)return tn(e);if(e.suspense&&we(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)===lt)ho(e);else if((t?e.tState:e.state)===tr){let r=$e;$e=null,rt(()=>tn(e,a[0]),!1),$e=r}}}function rt(e,t){if($e)return e();let a=!1;t||($e=[]),je?a=!0:je=[],on++;try{let o=e();return Sm(a),o}catch(o){a||(je=null),$e=null,nn(o)}}function Sm(e){if($e&&(go&&q&&q.running?km($e):qi($e),$e=null),e)return;let t;if(q){if(!q.promises.size&&!q.queue.size){let o=q.sources,r=q.disposed;je.push.apply(je,q.effects),t=q.resolve;for(let n of je)"tState"in n&&(n.state=n.tState),delete n.tState;q=null,rt(()=>{for(let n of r)Ma(n);for(let n of o){if(n.value=n.tValue,n.owned)for(let s=0,i=n.owned.length;s<i;s++)Ma(n.owned[s]);n.tOwned&&(n.owned=n.tOwned),delete n.tValue,delete n.tOwned,n.tState=0}yi(!1)},!1)}else if(q.running){q.running=!1,q.effects.push.apply(q.effects,je),je=null,yi(!0);return}}let a=je;je=null,a.length&&rt(()=>Ri(a),!1),t&&t()}function qi(e){for(let t=0;t<e.length;t++)or(e[t])}function km(e){for(let t=0;t<e.length;t++){let a=e[t],o=q.queue;o.has(a)||(o.add(a),go(()=>{o.delete(a),rt(()=>{q.running=!0,or(a)},!1),q&&(q.running=!1)}))}}function Pm(e){let t,a=0;for(t=0;t<e.length;t++){let o=e[t];o.user?e[a++]=o:or(o)}if(Z.context){if(Z.count){Z.effects||(Z.effects=[]),Z.effects.push(...e.slice(0,a));return}Va()}for(Z.effects&&(Z.done||!Z.count)&&(e=[...Z.effects,...e],a+=Z.effects.length,delete Z.effects),t=0;t<a;t++)or(e[t])}function tn(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===lt?r!==t&&(!r.updatedAt||r.updatedAt<on)&&or(r):n===tr&&tn(r,t)}}}function Ni(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=tr:o.state=tr,o.pure?$e.push(o):je.push(o),o.observers&&Ni(o))}}function Ma(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--)Ma(e.tOwned[t]);delete e.tOwned}if(q&&q.running&&e.pure)zi(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)Ma(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 zi(e,t){if(t||(e.tState=0,q.disposed.add(e)),e.owned)for(let a=0;a<e.owned.length;a++)zi(e.owned[a])}function rs(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function vi(e,t,a){try{for(let o of t)o(e)}catch(o){nn(o,a&&a.owner||null)}}function nn(e,t=re){let a=xi&&t&&t.context&&t.context[xi],o=rs(e);if(!a)throw o;je?je.push({fn(){vi(o,a,t)},state:lt}):vi(o,a,t)}function ns(e){if(typeof e=="function"&&!e.length)return ns(e());if(Array.isArray(e)){let t=[];for(let a=0;a<e.length;a++){let o=ns(e[a]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return t}return e}function Mm(e,t){return function(o){let r;return G(()=>r=we(()=>(re.context={...re.context,[e]:o.value},Oi(()=>o.children))),void 0),r}}function an(e){for(let t=0;t<e.length;t++)e[t]()}function Am(e,t,a={}){let o=[],r=[],n=[],s=0,i=t.length>1?[]:null;return X(()=>an(n)),()=>{let l=e()||[],u=l.length,d,c;return l[ir],we(()=>{let p,m,g,h,x,b,v,w,I;if(u===0)s!==0&&(an(n),n=[],o=[],r=[],s=0,i&&(i=[])),a.fallback&&(o=[ss],r[0]=Bt(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]=Bt(f);s=u}else{for(g=new Array(u),h=new Array(u),i&&(x=new Array(u)),b=0,v=Math.min(s,u);b<v&&o[b]===l[b];b++);for(v=s-1,w=u-1;v>=b&&w>=b&&o[v]===l[w];v--,w--)g[w]=r[v],h[w]=n[v],i&&(x[w]=i[v]);for(p=new Map,m=new Array(w+1),c=w;c>=b;c--)I=l[c],d=p.get(I),m[c]=d===void 0?-1:d,p.set(I,c);for(d=b;d<=v;d++)I=o[d],c=p.get(I),c!==void 0&&c!==-1?(g[c]=r[d],h[c]=n[d],i&&(x[c]=i[d]),c=m[c],p.set(I,c)):n[d]();for(c=b;c<u;c++)c in g?(r[c]=g[c],n[c]=h[c],i&&(i[c]=x[c],i[c](c))):r[c]=Bt(f);r=r.slice(0,s=u),o=l.slice(0)}return r});function f(p){if(n[c]=p,i){let[m,g]=z(c);return i[c]=g,t(l[c],m)}return t(l[c])}}}function Rm(e,t,a={}){let o=[],r=[],n=[],s=[],i=0,l;return X(()=>an(n)),()=>{let u=e()||[],d=u.length;return u[ir],we(()=>{if(d===0)return i!==0&&(an(n),n=[],o=[],r=[],i=0,s=[]),a.fallback&&(o=[ss],r[0]=Bt(f=>(n[0]=f,a.fallback())),i=1),r;for(o[0]===ss&&(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]=Bt(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(f){n[l]=f;let[p,m]=z(u[l]);return s[l]=m,t(p,l)}}}function y(e,t){if(Tm&&Z.context){let a=Z.context;Va(bm());let o=we(()=>e(t||{}));return Va(a),o}return we(()=>e(t||{}))}function Wr(){return!0}function as(e){return(e=typeof e=="function"?e():e)?e:{}}function Dm(){for(let e=0,t=this.length;e<t;++e){let a=this[e]();if(a!==void 0)return a}}function ee(...e){let t=!1;for(let s=0;s<e.length;s++){let i=e[s];t=t||!!i&&Zr in i,e[s]=typeof i=="function"?(t=!0,k(i)):i}if(Ai&&t)return new Proxy({get(s){for(let i=e.length-1;i>=0;i--){let l=as(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in as(e[i]))return!0;return!1},keys(){let s=[];for(let i=0;i<e.length;i++)s.push(...Object.keys(as(e[i])));return[...new Set(s)]}},ls);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:Dm.bind(a[d]=[c.get.bind(i)])}:c.value!==void 0?c:void 0;else{let f=a[d];f&&(c.get?f.push(c.get.bind(i)):c.value!==void 0&&f.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 de(e,...t){if(Ai&&Zr 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)}},ls));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))}},ls)),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 ps(e){let t,a,o=r=>{let n=Z.context;if(n){let[i,l]=z();Z.count||(Z.count=0),Z.count++,(a||(a=e())).then(u=>{!Z.done&&Va(n),Z.count--,l(()=>u.default),Va()}),t=i}else if(!t){let[i]=wm(()=>(a||(a=e())).then(l=>l.default));t=i}let s;return k(()=>(s=t())?we(()=>{if(!n||Z.done)return s(r);let i=Z.context;Va(n);let l=s(r);return Va(i),l}):"")};return o.preload=()=>a||((a=e()).then(r=>t=()=>r.default),a),o}function it(){return Z.context?Z.getNextContextId():`cl-${Em++}`}function Hi(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(Am(()=>e.each,e.children,t||void 0))}function _i(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(Rm(()=>e.each,e.children,t||void 0))}function Q(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?we(()=>n(t?r:()=>{if(!we(o))throw Ui("Show");return a()})):n}return e.fallback},void 0,void 0)}function Vi(e){let t=Oi(()=>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:(f,p)=>!f==!p});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?we(()=>i(s.keyed?n():()=>{if(we(a)()?.[0]!==r)throw Ui("Match");return n()})):i},void 0,void 0)}function sn(e){return e}function Nm(e,t){let a=qm[e];return typeof a=="object"?a[t]?a.$:void 0:a}function _m(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,f=1,p;for(;++c<r&&c<n&&!((p=u.get(t[c]))==null||p!==d+f);)f++;if(f>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 ms(e,t,a,o={}){let r;return Bt(n=>{r=n,t===document?e():M(t,e(),t.firstChild?null:void 0,a)},o.owner),()=>{r(),t.textContent=""}}function V(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?()=>we(()=>document.importNode(r||(r=n()),!0)):()=>(r||(r=n())).cloneNode(!0);return s.cloneNode=s,s}function ur(e,t=window.document){let a=t[Jo]||(t[Jo]=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,Wi))}}function Gi(e=window.document){if(e[Jo]){for(let t of e[Jo].keys())e.removeEventListener(t,Wi);delete e[Jo]}}function D(e,t,a){Ga(e)||(a==null?e.removeAttribute(t):e.setAttribute(t,a))}function Vm(e,t,a,o){Ga(e)||(o==null?e.removeAttributeNS(t,a):e.setAttributeNS(t,a,o))}function Km(e,t,a){Ga(e)||(a?e.setAttribute(t,""):e.removeAttribute(t))}function O(e,t){Ga(e)||(t==null?e.removeAttribute("class"):e.className=t)}function gs(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 Gm(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]||(Ci(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||(Ci(e,i,!0),a[i]=l)}return a}function Wm(e,t,a){if(!t)return a?D(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 hs(e,t={},a,o){let r={};return o||G(()=>r.children=rr(e,t.children,r.children)),G(()=>typeof t.ref=="function"&&Ka(t.ref,e)),G(()=>Qm(e,t,a,!0,r,!0)),r}function Ka(e,t,a){return we(()=>e(t,a))}function M(e,t,a,o){if(a!==void 0&&!o&&(o=[]),typeof t!="function")return rr(e,t,o,a);G(r=>rr(e,t(),r,a),o)}function Qm(e,t,a,o,r={},n=!1){t||(t={});for(let s in r)if(!(s in t)){if(s==="children")continue;r[s]=wi(e,s,null,r[s],a,n,t)}for(let s in t){if(s==="children")continue;let i=t[s];r[s]=wi(e,s,i,r[s],a,n,t)}}function jm(e){let t,a;return!Ga()||!(t=Z.registry.get(a=Zm()))?e():(Z.completed&&Z.completed.add(t),Z.registry.delete(a),t)}function Ga(e){return!!Z.context&&!Z.done&&(!e||e.isConnected)}function Xm(e){return e.toLowerCase().replace(/-([a-z])/g,(t,a)=>a.toUpperCase())}function Ci(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 wi(e,t,a,o,r,n,s){let i,l,u,d,c;if(t==="style")return Wm(e,a,o);if(t==="classList")return Gm(e,a,o);if(a===o)return o;if(t==="ref")n||a(e);else if(t.slice(0,3)==="on:"){let f=t.slice(3);o&&e.removeEventListener(f,o,typeof o!="function"&&o),a&&e.addEventListener(f,a,typeof a!="function"&&a)}else if(t.slice(0,10)==="oncapture:"){let f=t.slice(10);o&&e.removeEventListener(f,o,!0),a&&e.addEventListener(f,a,!0)}else if(t.slice(0,2)==="on"){let f=t.slice(2).toLowerCase(),p=zm.has(f);if(!p&&o){let m=Array.isArray(o)?o[0]:o;e.removeEventListener(f,m)}(p||a)&&(gs(e,f,a,p),p&&ur([f]))}else if(t.slice(0,5)==="attr:")D(e,t.slice(5),a);else if(t.slice(0,5)==="bool:")Km(e,t.slice(5),a);else if((c=t.slice(0,5)==="prop:")||(u=Bm.has(t))||!r&&((d=Nm(t,e.tagName))||(l=Om.has(t)))||(i=e.nodeName.includes("-")||"is"in s)){if(c)t=t.slice(5),l=!0;else if(Ga(e))return a;t==="class"||t==="className"?O(e,a):i&&!l&&!u?e[Xm(t)]=a:e[d||t]=a}else{let f=r&&t.indexOf(":")>-1&&Hm[t.split(":")[0]];f?Vm(e,f,t,a):D(e,$m[t]||t,a)}return a}function Wi(e){if(Z.registry&&Z.events&&Z.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}}),Z.registry&&!Z.done&&(Z.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 rr(e,t,a,o,r){let n=Ga(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=uo(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=uo(e,a,o)}else{if(s==="function")return G(()=>{let l=t();for(;typeof l=="function";)l=l();a=rr(e,l,a,o)}),()=>a;if(Array.isArray(t)){let l=[],u=a&&Array.isArray(a);if(is(l,t,a,r))return G(()=>a=rr(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=uo(e,a,o),i)return a}else u?a.length===0?Li(e,l,o):_m(e,a,l):(a&&uo(e),Li(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=uo(e,a,o,t);uo(e,a,null,t)}else a==null||a===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);a=t}}return a}function is(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=is(e,i,l)||r;else if(u==="function")if(o){for(;typeof i=="function";)i=i();r=is(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 Li(e,t,a=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],a)}function uo(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 Zm(){return Z.getNextContextId()}function Qi(e,t=!1){return t?document.createElementNS(Ym,e):document.createElement(e)}function xs(e){let{useShadow:t}=e,a=document.createTextNode(""),o=()=>e.mount||document.body,r=en(),n,s=!!Z.context;return W(()=>{s&&(en().user=s=!1),n||(n=Lm(r,()=>k(()=>e.children)));let i=o();if(i instanceof HTMLHeadElement){let[l,u]=z(!1),d=()=>u(!0);Bt(c=>M(i,()=>l()?c():n(),null)),X(d)}else{let l=Qi(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}),M(u,n),i.appendChild(l),e.ref&&e.ref(l),X(()=>i.removeChild(l))}},void 0,{render:!s}),a}function Jm(e,t){let a=k(e);return k(()=>{let o=a();switch(typeof o){case"function":return we(()=>o(t));case"string":let r=Um.has(o),n=Z.context?jm():Qi(o,r);return hs(n,t,r),n}})}function ji(e){let[,t]=de(e,["component"]);return Jm(()=>e.component,t)}function ag(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 og(e,t){let a=ag(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 mo(e,t){Object.entries(e).forEach(([a,o])=>t(o,a))}function Xr(e,t){return e.indexOf(t)!==-1}function Ii(e,t){for(let a=0;a<e.length;a++){let o=e[a];if(t(o))return o}}function Ot(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function ln(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function ou(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function lu(e){if(Xr(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Xr(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Xr(e,"constructor"))throw new Error("constructor is not allowed as a property")}function cs(e,t,a=[]){if(!e)return;if(!Aa(e)){mo(e,(n,s)=>cs(n,t,[...a,...er(s)]));return}let[o,r]=e;r&&mo(r,(n,s)=>{cs(n,t,[...a,...er(s)])}),t(o,a)}function wg(e,t,a){return cs(t,(o,r)=>{e=ds(e,r,n=>vg(n,o,a))}),e}function Lg(e,t){function a(o,r){let n=Cg(e,er(r));o.map(er).forEach(s=>{e=ds(e,s,()=>n)})}if(Aa(t)){let[o,r]=t;o.forEach(n=>{e=ds(e,er(n),()=>e)}),r&&mo(r,a)}else mo(t,a);return e}function Sg(e,t,a){let o=a.get(e);o?o.push(t):a.set(e,[t])}function kg(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(os):a[os(n)]=s.map(os)}),o?us(a)?[o]:[o,a]:us(a)?void 0:a}function uu(e){return Object.prototype.toString.call(e).slice(8,-1)}function Pi(e){return uu(e)==="Array"}function Pg(e){if(uu(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Mg(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 fs(e,t={}){if(Pi(e))return e.map(r=>fs(r,t));if(!Pg(e))return e;let a=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...a,...o].reduce((r,n)=>{if(Pi(t.props)&&!t.props.includes(n))return r;let s=e[n],i=fs(s,t);return Mg(r,n,i,e,t.nonenumerable),r},{})}function Wa(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function cu(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function fu({queryState:e,observerCount:t,isStale:a}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":a?"yellow":"green":"gray"}function Qa({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function pu(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var Z,Mi,vm,Zr,Ai,ir,Yr,xi,Ri,lt,tr,Ti,ts,re,q,go,po,ge,$e,je,on,Im,yi,ar,ss,Tm,ls,Em,Ui,Ki,Fm,Om,Bm,$m,qm,zm,Um,Hm,Jo,Xe,Ym,eg,Xi,tg,rg,ng,Zi,sg,nr,us,Aa,lg,ig,ug,dg,sr,lr,Yi,cg,fg,Si,pg,mg,gg,hg,xg,Ji,os,er,eu,tu,yg,au,ru,nu,bg,ki,su,vg,co,Cg,ds,Ig,iu,le,ys,du,dr,Qr,Ag,mu,Rg,un,jr,gu,Tg,dn,bs,cn,Pa,fo,vs,cr=Oo(()=>{"use strict";C();Z={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return hi(this.context.count)},getNextContextId(){return hi(this.context.count++)}};Mi=!1,vm=(e,t)=>e===t,Zr=Symbol("solid-proxy"),Ai=typeof Proxy=="function",ir=Symbol("solid-track"),Yr={equals:vm},xi=null,Ri=qi,lt=1,tr=2,Ti={owned:null,cleanups:null,context:null,owner:null},ts={},re=null,q=null,go=null,po=null,ge=null,$e=null,je=null,on=0;[Im,yi]=z(!1);ss=Symbol("fallback");Tm=!1;ls={get(e,t,a){return t===Zr?a:e.get(t)},has(e,t){return t===Zr?!0:e.has(t)},set:Wr,deleteProperty:Wr,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Wr,deleteProperty:Wr}},ownKeys(e){return e.keys()}};Em=0;Ui=e=>`Stale read from <${e}>.`;Ki=void 0,Fm=["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"],Om=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Fm]),Bm=new Set(["innerHTML","textContent","innerText","children"]),$m=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),qm=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}});zm=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Um=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"]),Hm={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};Jo="_$DX_DELEGATE";Xe=!1,Ym="http://www.w3.org/2000/svg";eg=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()}},Xi=class{constructor(e){this.generateIdentifier=e,this.kv=new eg}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)}},tg=class extends Xi{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)}};rg=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return og(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},ng=e=>Object.prototype.toString.call(e).slice(8,-1),Zi=e=>typeof e>"u",sg=e=>e===null,nr=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,us=e=>nr(e)&&Object.keys(e).length===0,Aa=e=>Array.isArray(e),lg=e=>typeof e=="string",ig=e=>typeof e=="number"&&!isNaN(e),ug=e=>typeof e=="boolean",dg=e=>e instanceof RegExp,sr=e=>e instanceof Map,lr=e=>e instanceof Set,Yi=e=>ng(e)==="Symbol",cg=e=>e instanceof Date&&!isNaN(e.valueOf()),fg=e=>e instanceof Error,Si=e=>typeof e=="number"&&isNaN(e),pg=e=>ug(e)||sg(e)||Zi(e)||ig(e)||lg(e)||Yi(e),mg=e=>typeof e=="bigint",gg=e=>e===1/0||e===-1/0,hg=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),xg=e=>e instanceof URL,Ji=e=>e.replace(/\./g,"\\."),os=e=>e.map(String).map(Ji).join("."),er=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};eu=[Ot(Zi,"undefined",()=>null,()=>{}),Ot(mg,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),Ot(cg,"Date",e=>e.toISOString(),e=>new Date(e)),Ot(fg,"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}),Ot(dg,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),Ot(lr,"set",e=>[...e.values()],e=>new Set(e)),Ot(sr,"map",e=>[...e.entries()],e=>new Map(e)),Ot(e=>Si(e)||gg(e),"number",e=>Si(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Ot(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Ot(xg,"URL",e=>e.toString(),e=>new URL(e))];tu=ln((e,t)=>Yi(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}),yg=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),au=ln(hg,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let a=yg[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});ru=ln(ou,(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)}),nu=ln((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)}),bg=[ru,tu,nu,au],ki=(e,t)=>{let a=Ii(bg,r=>r.isApplicable(e,t));if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};let o=Ii(eu,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},su={};eu.forEach(e=>{su[e.annotation]=e});vg=(e,t,a)=>{if(Aa(t))switch(t[0]){case"symbol":return tu.untransform(e,t,a);case"class":return ru.untransform(e,t,a);case"custom":return nu.untransform(e,t,a);case"typed-array":return au.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{let o=su[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,a)}},co=(e,t)=>{let a=e.keys();for(;t>0;)a.next(),t--;return a.next().value};Cg=(e,t)=>{lu(t);for(let a=0;a<t.length;a++){let o=t[a];if(lr(e))e=co(e,+o);else if(sr(e)){let r=+o,n=+t[++a]==0?"key":"value",s=co(e,r);switch(n){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[o]}return e},ds=(e,t,a)=>{if(lu(t),t.length===0)return a(e);let o=e;for(let n=0;n<t.length-1;n++){let s=t[n];if(Aa(o)){let i=+s;o=o[i]}else if(nr(o))o=o[s];else if(lr(o)){let i=+s;o=co(o,i)}else if(sr(o)){if(n===t.length-2)break;let l=+s,u=+t[++n]==0?"key":"value",d=co(o,l);switch(u){case"key":o=d;break;case"value":o=o.get(d);break}}}let r=t[t.length-1];if(Aa(o)?o[+r]=a(o[+r]):nr(o)&&(o[r]=a(o[r])),lr(o)){let n=co(o,+r),s=a(n);n!==s&&(o.delete(n),o.add(s))}if(sr(o)){let n=+t[t.length-2],s=co(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};Ig=(e,t)=>nr(e)||Aa(e)||sr(e)||lr(e)||ou(e,t);iu=(e,t,a,o,r=[],n=[],s=new Map)=>{let i=pg(e);if(!i){Sg(e,r,t);let p=s.get(e);if(p)return o?{transformedValue:null}:p}if(!Ig(e,a)){let p=ki(e,a),m=p?{transformedValue:p.value,annotations:[p.type]}:{transformedValue:e};return i||s.set(e,m),m}if(Xr(n,e))return{transformedValue:null};let l=ki(e,a),u=l?.value??e,d=Aa(u)?[]:{},c={};mo(u,(p,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=iu(p,t,a,o,[...r,m],[...n,e],s);d[m]=g.transformedValue,Aa(g.annotations)?c[m]=g.annotations:nr(g.annotations)&&mo(g.annotations,(h,x)=>{c[Ji(m)+"."+x]=h})});let f=us(c)?{transformedValue:d,annotations:l?[l.type]:void 0}:{transformedValue:d,annotations:l?[l.type,c]:c};return i||s.set(e,f),f};le=class{constructor({dedupe:e=!1}={}){this.classRegistry=new tg,this.symbolRegistry=new Xi(t=>t.description??""),this.customTransformerRegistry=new rg,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,a=iu(e,t,this,this.dedupe),o={json:a.transformedValue};a.annotations&&(o.meta={...o.meta,values:a.annotations});let r=kg(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){let{json:t,meta:a}=e,o=fs(t);return a?.values&&(o=wg(o,a.values,this)),a?.referentialEqualities&&(o=Lg(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)}};le.defaultInstance=new le;le.serialize=le.defaultInstance.serialize.bind(le.defaultInstance);le.deserialize=le.defaultInstance.deserialize.bind(le.defaultInstance);le.stringify=le.defaultInstance.stringify.bind(le.defaultInstance);le.parse=le.defaultInstance.parse.bind(le.defaultInstance);le.registerClass=le.defaultInstance.registerClass.bind(le.defaultInstance);le.registerSymbol=le.defaultInstance.registerSymbol.bind(le.defaultInstance);le.registerCustom=le.defaultInstance.registerCustom.bind(le.defaultInstance);le.allowErrorProps=le.defaultInstance.allowErrorProps.bind(le.defaultInstance);ys=le.serialize;le.deserialize;du=le.stringify;le.parse;le.registerClass;le.registerCustom;le.registerSymbol;le.allowErrorProps;dr=(e,t=!1)=>{let{json:a}=ys(e);return JSON.stringify(a,null,t?2:void 0)},Qr=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,Ag=(e,t)=>e.queryHash.localeCompare(t.queryHash),mu=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Rg=(e,t)=>Qr(e)===Qr(t)?mu(e,t):Qr(e)>Qr(t)?1:-1,un={status:Rg,"query hash":Ag,"last updated":mu},jr=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,gu=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Tg=(e,t)=>jr(e)===jr(t)?gu(e,t):jr(e)>jr(t)?1:-1,dn={status:Tg,"last updated":gu},bs=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),cn=()=>{let[e,t]=z("dark");return ta(()=>{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),X(()=>a.removeEventListener("change",o))}),e},Pa=(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,Pa(o.get(r),n,a)),o}if(e instanceof Set){let o=Pa(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]=Pa(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]=Pa(o[r],n,a),o}return e},fo=(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,fo(a.get(o),r)),a}if(e instanceof Set){let a=fo(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]=fo(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]=fo(a[o],r),a}return e},vs=(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 Bg(e){return(...t)=>{for(let a of e)a&&a(...t)}}function $g(e,...t){return typeof e=="function"?e(...t):e}function Ng(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 zg(e){let[t,a]=z(),o=e?.throw?(f,p)=>{throw a(f instanceof Error?f:new Error(p)),f}:(f,p)=>{a(f instanceof Error?f:new Error(p))},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(f,p){let m=s.get(p);m||(m=z(void 0,{equals:!1}),s.set(p,m)),m[0]();let g=r.reduce((h,x)=>{if(h!==null||!x)return h;try{return x.getItem(`${n}${p}`)}catch(b){return o(b,`Error reading ${n}${p} from ${x.name}`),null}},null);return g!==null&&e?.deserializer?e.deserializer(g,p,e.options):g}}),l=(f,p,m)=>{let g=e?.serializer?e.serializer(p,f,m??e.options):p,h=`${n}${f}`;r.forEach(b=>{try{b.getItem(h)!==g&&b.setItem(h,g)}catch(v){o(v,`Error setting ${n}${f} to ${g} in ${b.name}`)}});let x=s.get(f);x&&x[1]()},u=f=>r.forEach(p=>{try{p.removeItem(`${n}${f}`)}catch(m){o(m,`Error removing ${n}${f} from ${p.name}`)}}),d=()=>r.forEach(f=>{try{f.clear()}catch(p){o(p,`Error clearing ${f.name}`)}}),c=()=>{let f={},p=(m,g)=>{if(!f.hasOwnProperty(m)){let h=g&&e?.deserializer?e.deserializer(g,m,e.options):g;h&&(f[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)p(h,g[h])}else{let g=0,h;try{for(;h=m.key(g++);)f.hasOwnProperty(h)||p(h,m.getItem(h))}catch(x){o(x,`Error getting all values from ${m.name}`)}}}),f};return e?.sync!==!1&&ta(()=>{let f=p=>{let m=!1;r.forEach(g=>{try{g!==p.storageArea&&p.key&&p.newValue!==g.getItem(p.key)&&(p.newValue?g.setItem(p.key,p.newValue):g.removeItem(p.key),m=!0)}catch(h){o(h,`Error synching api ${g.name} from storage event (${p.key}=${p.newValue})`)}}),m&&p.key&&s.get(p.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",f),X(()=>globalThis.removeEventListener("storage",f))):(r.forEach(p=>p.addEventListener?.("storage",f)),X(()=>r.forEach(p=>p.removeEventListener?.("storage",f))))}),[i,l,{clear:d,error:t,remove:u,toJSON:c}]}function j(){return qe(wr)}function Ke(){return qe(Lr)}function Xg(e){return e.replace(jg,t=>md[t])}function bu(e,t,a){var o;if(a=a||{},a.threshold=(o=a.threshold)!=null?o:nt.MATCHES,!a.accessors){let s=vu(e,t,a);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:a.threshold,passed:s>=a.threshold}}let r=eh(e,a.accessors),n={rankedValue:e,rank:nt.NO_MATCH,accessorIndex:-1,accessorThreshold:a.threshold,passed:!1};for(let s=0;s<r.length;s++){let i=r[s],l=vu(i.itemValue,t,a),{minRanking:u,maxRanking:d,threshold:c=a.threshold}=i.attributes;l<u&&l>=nt.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 vu(e,t,a){return e=Cu(e,a),t=Cu(t,a),t.length>e.length?nt.NO_MATCH:e===t?nt.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?nt.EQUAL:e.startsWith(t)?nt.STARTS_WITH:e.includes(` ${t}`)?nt.WORD_STARTS_WITH:e.includes(t)?nt.CONTAINS:t.length===1?nt.NO_MATCH:Zg(e).includes(t)?nt.ACRONYM:Yg(e,t))}function Zg(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(n=>{t+=n.substr(0,1)})}),t}function Yg(e,t){let a=0,o=0;function r(l,u,d){for(let c=d,f=u.length;c<f;c++)if(u[c]===l)return a+=1,c+1;return-1}function n(l){let u=1/l,d=a/t.length;return nt.MATCHES+d*u}let s=r(t[0],e,0);if(s<0)return nt.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 nt.NO_MATCH}let i=o-s;return n(i)}function Cu(e,t){let{keepDiacritics:a}=t;return e=`${e}`,a||(e=Xg(e)),e}function Jg(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 eh(e,t){let a=[];for(let o=0,r=t.length;o<r;o++){let n=t[o],s=th(n),i=Jg(e,n);for(let l=0,u=i.length;l<u;l++)a.push({itemValue:i[l],attributes:s})}return a}function th(e){return typeof e=="function"?wu:{...wu,...e}}function oe(e){let t=this||{},a=e.call?e(t.p):e;return sh(a.unshift?a.raw?lh(a,[].slice.call(arguments,1),t.p):a.reduce((o,r)=>Object.assign(o,r&&r.call?r(t.p):r),{}):a,oh(t.target),t.g,t.o,t.k)}function hd(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=hd(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function H(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=hd(e))&&(o&&(o+=" "),o+=t);return o}function ih(e,t){let a=we(e);if(Xe){let c=a.slice();return()=>c}let{onChange:o}=t,r=new Set(t.appear?void 0:a),n=new WeakSet,[s,i]=z([],{equals:!1}),[l]=Fi(),u=c=>{i(f=>(f.push.apply(f,c),f));for(let f of c)n.delete(f)},d=(c,f,p)=>c.splice(p,0,f);return k(c=>{let f=s(),p=e();if(p[ir],we(l))return l(),c;if(f.length){let m=c.filter(g=>!f.includes(g));return f.length=0,o({list:m,added:[],removed:[],unchanged:m,finishRemoved:u}),m}return we(()=>{let m=new Set(p),g=p.slice(),h=[],x=[],b=[];for(let w of p)(r.has(w)?b:h).push(w);let v=!h.length;for(let w=0;w<c.length;w++){let I=c[w];m.has(I)||(n.has(I)||(x.push(I),n.add(I)),d(g,I,w)),v&&I!==g[w]&&(v=!1)}return!x.length&&v?c:(o({list:g,added:h,removed:x,unchanged:b,finishRemoved:u}),r=m,g)})},t.appear?[]:a.slice())}function ot(...e){return Bg(e)}function Ms(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return Ms(e(),t);if(Array.isArray(e)){let a=[];for(let o of e){let r=Ms(o,t);r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}return a.length?a:null}return null}function uh(e,t=Iu,a=Iu){let o=k(e),r=k(()=>Ms(o(),Xe?a:t));return r.toArray=()=>{let n=r();return Array.isArray(n)?n:n?[n]:[]},r}function dh(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 xd(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function ch(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())}),xd(()=>{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 fh(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()),xd(()=>{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 ku(e){for(let t of e)t.dispose()}function ph(e,t,a,o={}){if(Xe){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 X(()=>ku(r.values())),()=>{let s=e()||[];return s[ir],we(()=>{if(!s.length)return ku(r.values()),r.clear(),o.fallback?[Bt(c=>(r.set(Cs,{dispose:c}),o.fallback()))]:[];let i=new Array(s.length),l=r.get(Cs);if(!r.size||l){l?.dispose(),r.delete(Cs);for(let d=0;d<s.length;d++){let c=s[d],f=t(c,d);n(i,c,d,f)}return i}let u=new Set(r.keys());for(let d=0;d<s.length;d++){let c=s[d],f=t(c,d);u.delete(f);let p=r.get(f);p?(i[d]=p.mapped,p.setIndex?.(d),p.setItem(()=>c)):n(i,c,d,f)}for(let d of u)r.get(d)?.dispose(),r.delete(d);return i})};function n(s,i,l,u){Bt(d=>{let[c,f]=z(i),p={setItem:f,dispose:d};if(a.length>1){let[m,g]=z(l);p.setIndex=g,p.mapped=a(c,m)}else p.mapped=a(c);r.set(u,p),s[l]=p.mapped})}}function gn(e){let{by:t}=e;return k(ph(()=>e.each,typeof t=="function"?t:a=>a[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function mh(e,t,a,o){return e.addEventListener(t,a,o),qg(e.removeEventListener.bind(e,t,a,o))}function gh(e,t,a,o){if(Xe)return;let r=()=>{ks(R(e)).forEach(n=>{n&&ks(R(t)).forEach(s=>mh(n,s,a,o))})};typeof e=="function"?W(r):G(r)}function hh(e,t){if(Xe)return{observe:hu,unobserve:hu};let a=new ResizeObserver(e);return X(a.disconnect.bind(a)),{observe:o=>a.observe(o,t),unobserve:a.unobserve.bind(a)}}function yd(e,t,a){if(Xe)return;let o=new WeakMap,{observe:r,unobserve:n}=hh(s=>{for(let i of s){let{contentRect:l,target:u}=i,d=Math.round(l.width),c=Math.round(l.height),f=o.get(u);(!f||f.width!==d||f.height!==c)&&(t(l,u,i),o.set(u,{width:d,height:c}))}},a);W(s=>{let i=Og(ks(R(e)));return Ng(i,s,r,n),i},[])}function Pu(e){let t={},a;for(;a=xh.exec(e);)t[a[1]]=a[2];return t}function Sn(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=Pu(e)}else typeof t=="string"&&(t=Pu(t));return{...e,...t}}function yh(e,t,a=-1){return a in e?[...e.slice(0,a),t,...e.slice(a)]:[...e,t]}function As(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function bh(e){return typeof e=="number"}function yo(e){return Object.prototype.toString.call(e)==="[object String]"}function vh(e){return typeof e=="function"}function Ir(e){return t=>`${e()}-${t}`}function bt(e,t){return e?e===t||e.contains(t):!1}function gr(e,t=!1){let{activeElement:a}=Nt(e);if(!a?.nodeName)return null;if(bd(a)&&a.contentDocument)return gr(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=Nt(a).getElementById(o);if(r)return r}}return a}function Ch(e){return Nt(e).defaultView||window}function Nt(e){return e?e.ownerDocument||e:document}function bd(e){return e.tagName==="IFRAME"}function zs(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function kn(){return zs(/^Mac/i)}function wh(){return zs(/^iPhone/i)}function Lh(){return zs(/^iPad/i)||kn()&&navigator.maxTouchPoints>1}function Ih(){return wh()||Lh()}function Sh(){return kn()||Ih()}function Pe(e,t){return t&&(vh(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function Ve(e){return t=>{for(let a of e)Pe(t,a)}}function kh(e){return kn()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function Ye(e){if(e)if(Ph())e.focus({preventScroll:!0});else{let t=Mh(e);e.focus(),Ah(t)}}function Ph(){if(fn==null){fn=!1;try{document.createElement("div").focus({get preventScroll(){return fn=!0,!0}})}catch{}}return fn}function Mh(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 Ah(e){for(let{element:t,scrollTop:a,scrollLeft:o}of e)t.scrollTop=a,t.scrollLeft=o}function Cd(e,t){let o=Array.from(e.querySelectorAll(Us)).filter(Mu);return t&&Mu(e)&&o.unshift(e),o.forEach((r,n)=>{if(bd(r)&&r.contentDocument){let s=r.contentDocument.body,i=Cd(s,!1);o.splice(n,1,...i)}}),o}function Mu(e){return wd(e)&&!Dh(e)}function wd(e){return e.matches(Us)&&Hs(e)}function Dh(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Hs(e,t){return e.nodeName!=="#comment"&&Eh(e)&&Fh(e,t)&&(!e.parentElement||Hs(e.parentElement,e))}function Eh(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 Fh(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Oh(e,t,a){let o=t?.tabbable?Th:Us,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(n){return t?.from?.contains(n)?NodeFilter.FILTER_REJECT:n.matches(o)&&Hs(n)&&(!t?.accept||t.accept(n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function Au(e){for(;e&&!Bh(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Bh(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function $h(){}function qh(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,f]=t[l],[,p]=t[l===0?s-1:l-1]||[0,0],m=(d-f)*(a-u)-(u-c)*(o-d);if(f<d){if(o>=f&&o<d){if(m===0)return!0;m>0&&(o===f?o>p&&(r=!r):r=!r)}}else if(d<f){if(o>d&&o<=f){if(m===0)return!0;m<0&&(o===f?o<p&&(r=!r):r=!r)}}else if(o==d&&(a>=c&&a<=u||a>=u&&a<=c))return!0}return r}function ie(e,t){return ee(e,t)}function Tu(){if(typeof window>"u")return;let e=a=>{if(!a.target)return;let o=fr.get(a.target);o||(o=new Set,fr.set(a.target,o),a.target.addEventListener("transitioncancel",t)),o.add(a.propertyName)},t=a=>{if(!a.target)return;let o=fr.get(a.target);if(o&&(o.delete(a.propertyName),o.size===0&&(a.target.removeEventListener("transitioncancel",t),fr.delete(a.target)),fr.size===0)){for(let r of Ru)r();Ru.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function Rs(e,t){let a=Du(e,t,"left"),o=Du(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 Du(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 Nh(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let r=Au(e);for(;e&&r&&e!==a&&r!==a;)Rs(r,e),e=r,r=Au(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 vt(e){return t=>(e(t),()=>e(void 0))}function Pn(e,t){let[a,o]=z(Eu(t?.()));return W(()=>{o(e()?.tagName.toLowerCase()||Eu(t?.()))}),a}function Eu(e){return yo(e)?e:void 0}function Me(e){let[t,a]=de(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return y(ji,ee(a,{get component(){return t.as}}))}function Uh(e){let t=`form-control-${it()}`,a=ie({id:t},e),[o,r]=z(),[n,s]=z(),[i,l]=z(),[u,d]=z(),c=(g,h,x)=>{let b=x!=null||o()!=null;return[x,o(),b&&h!=null?g:void 0].filter(Boolean).join(" ")||void 0},f=g=>[i(),u(),g].filter(Boolean).join(" ")||void 0,p=k(()=>({"data-valid":R(a.validationState)==="valid"?"":void 0,"data-invalid":R(a.validationState)==="invalid"?"":void 0,"data-required":R(a.required)?"":void 0,"data-disabled":R(a.disabled)?"":void 0,"data-readonly":R(a.readOnly)?"":void 0}));return{formControlContext:{name:()=>R(a.name)??R(a.id),dataset:p,validationState:()=>R(a.validationState),isRequired:()=>R(a.required),isDisabled:()=>R(a.disabled),isReadOnly:()=>R(a.readOnly),labelId:o,fieldId:n,descriptionId:i,errorMessageId:u,getAriaLabelledBy:c,getAriaDescribedBy:f,generateId:Ir(()=>R(a.id)),registerLabel:vt(r),registerField:vt(s),registerDescription:vt(l),registerErrorMessage:vt(d)}}}function Sr(){let e=qe(Id);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function Sd(e){let t=Sr(),a=ie({id:t.generateId("description")},e);return W(()=>X(t.registerDescription(a.id))),y(Me,ee({as:"div"},()=>t.dataset(),a))}function kd(e){let t=Sr(),a=ie({id:t.generateId("error-message")},e),[o,r]=de(a,["forceMount"]),n=()=>t.validationState()==="invalid";return W(()=>{n()&&X(t.registerErrorMessage(r.id))}),y(Q,{get when(){return o.forceMount||n()},get children(){return y(Me,ee({as:"div"},()=>t.dataset(),r))}})}function Hh(e){let t,a=Sr(),o=ie({id:a.generateId("label")},e),[r,n]=de(o,["ref"]),s=Pn(()=>t,()=>"label");return W(()=>X(a.registerLabel(n.id))),y(Me,ee({as:"label",ref(i){let l=ot(u=>t=u,r.ref);typeof l=="function"&&l(i)},get for(){return k(()=>s()==="label")()?a.fieldId():void 0}},()=>a.dataset(),n))}function _h(e,t){W($t(e,a=>{if(a==null)return;let o=Vh(a);o!=null&&(o.addEventListener("reset",t,{passive:!0}),X(()=>{o.removeEventListener("reset",t)}))}))}function Vh(e){return Kh(e)?e.form:e.closest("form")}function Kh(e){return e.matches("textarea, input, select, button")}function kr(e){let[t,a]=z(e.defaultValue?.()),o=k(()=>e.value?.()!==void 0),r=k(()=>o()?e.value?.():t());return[r,s=>{we(()=>{let i=$g(s,r());return Object.is(i,r())||(o()||a(i),e.onChange?.(i)),i})}]}function Pd(e){let[t,a]=kr(e);return[()=>t()??!1,a]}function Gh(e){let[t,a]=kr(e);return[()=>t()??[],a]}function Wh(e={}){let[t,a]=Pd({value:()=>R(e.isSelected),defaultValue:()=>!!R(e.defaultIsSelected),onChange:n=>e.onSelectedChange?.(n)});return{isSelected:t,setIsSelected:n=>{!R(e.isReadOnly)&&!R(e.isDisabled)&&a(n)},toggle:()=>{!R(e.isReadOnly)&&!R(e.isDisabled)&&a(!t())}}}function Ad(){return qe(Md)}function jh(){let e=Ad();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function Rd(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Xh(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&&Rd(r,a))return o+1}return 0}function Zh(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:Rd(i,l)?(o>n&&(a=!0),-1):(o<n&&(a=!0),1)}),a?t.map(([o,r])=>r):e}function Td(e,t){let a=Zh(e);e!==a&&t(a)}function Yh(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 Nt(o).body}function Jh(e,t){W(()=>{let a=setTimeout(()=>{Td(e(),t)});X(()=>clearTimeout(a))})}function e0(e,t){if(typeof IntersectionObserver!="function"){Jh(e,t);return}let a=[];W(()=>{let o=()=>{let s=!!a.length;a=e(),s&&Td(e(),t)},r=Yh(e()),n=new IntersectionObserver(o,{root:r});for(let s of e()){let i=s.ref();i&&n.observe(i)}X(()=>n.disconnect())})}function t0(e={}){let[t,a]=Gh({value:()=>R(e.items),onChange:n=>e.onItemsChange?.(n)});e0(t,a);let o=n=>(a(s=>{let i=Xh(s,n);return yh(s,n,i)}),()=>{a(s=>{let i=s.filter(l=>l.ref()!==n.ref());return s.length===i.length?s:i})});return{DomCollectionProvider:n=>y(Md.Provider,{value:{registerItem:o},get children(){return n.children}})}}function a0(e){let t=jh(),a=ie({shouldRegisterItem:!0},e);W(()=>{if(!a.shouldRegisterItem)return;let o=t.registerItem(a.getItem());X(o)})}function Dd(e){let t=e.startIndex??0,a=e.startLevel??0,o=[],r=l=>{if(l==null)return"";let u=e.getKey??"key",d=yo(u)?l[u]:u(l);return d!=null?String(d):""},n=l=>{if(l==null)return"";let u=e.getTextValue??"textValue",d=yo(u)?l[u]:u(l);return d!=null?String(d):""},s=l=>{if(l==null)return!1;let u=e.getDisabled??"disabled";return(yo(u)?l[u]:u(l))??!1},i=l=>{if(l!=null)return yo(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(yo(l)||bh(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=Dd({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 o0(e,t=[]){return k(()=>{let a=Dd({dataSource:R(e.dataSource),getKey:R(e.getKey),getTextValue:R(e.getTextValue),getDisabled:R(e.getDisabled),getSectionChildren:R(e.getSectionChildren)});for(let o=0;o<t.length;o++)t[o]();return e.factory(a)})}function s0(e){if(Intl.Locale){let a=new Intl.Locale(e).maximize().script??"";return r0.has(a)}let t=e.split("-")[0];return n0.has(t)}function l0(e){return s0(e)?"rtl":"ltr"}function Ed(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:l0(e)}}function Fu(){Ts=Ed();for(let e of hr)e(Ts)}function i0(){let e={locale:"en-US",direction:"ltr"},[t,a]=z(Ts),o=k(()=>Xe?e:t());return ta(()=>{hr.size===0&&window.addEventListener("languagechange",Fu),hr.add(a),X(()=>{hr.delete(a),hr.size===0&&window.removeEventListener("languagechange",Fu)})}),{locale:()=>o().locale,direction:()=>o().direction}}function Oa(){let e=i0();return qe(u0)||e}function d0(e){let{locale:t}=Oa(),a=k(()=>t()+(e?Object.entries(e).sort((o,r)=>o[0]<r[0]?-1:1).join():""));return k(()=>{let o=a(),r;return ws.has(o)&&(r=ws.get(o)),r||(r=new Intl.Collator(t(),e),ws.set(o,r)),r})}function c0(e){let[t,a]=kr(e);return[()=>t()??new oa,a]}function Od(e){return Sh()?e.altKey:e.ctrlKey}function bo(e){return kn()?e.metaKey:e.ctrlKey}function Ou(e){return new oa(e)}function f0(e,t){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function p0(e){let t=ie({selectionMode:"none",selectionBehavior:"toggle"},e),[a,o]=z(!1),[r,n]=z(),s=k(()=>{let g=R(t.selectedKeys);return g!=null?Ou(g):g}),i=k(()=>{let g=R(t.defaultSelectedKeys);return g!=null?Ou(g):new oa}),[l,u]=c0({value:s,defaultValue:i,onChange:g=>t.onSelectionChange?.(g)}),[d,c]=z(R(t.selectionBehavior)),f=()=>R(t.selectionMode),p=()=>R(t.disallowEmptySelection)??!1,m=g=>{(R(t.allowDuplicateSelectionEvents)||!f0(g,l()))&&u(g)};return W(()=>{let g=l();R(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof g=="object"&&g.size===0&&c("replace")}),W(()=>{c(R(t.selectionBehavior)??"toggle")}),{selectionMode:f,disallowEmptySelection:p,selectionBehavior:d,setSelectionBehavior:c,isFocused:a,setFocused:o,focusedKey:r,setFocusedKey:n,selectedKeys:l,setSelectedKeys:m}}function m0(e){let[t,a]=z(""),[o,r]=z(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(R(e.isDisabled))return;let i=R(e.keyboardDelegate),l=R(e.selectionManager);if(!i.getKeyForSearch)return;let u=g0(s.key);if(!u||s.ctrlKey||s.metaKey)return;u===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let d=a(f=>f+u),c=i.getKeyForSearch(d,l.focusedKey())??i.getKeyForSearch(d);c==null&&h0(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 g0(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function h0(e){return e.split("").every(t=>t===e[0])}function x0(e,t,a){let r=ee({selectOnFocus:()=>R(e.selectionManager).selectionBehavior()==="replace"},e),n=()=>t(),{direction:s}=Oa(),i={top:0,left:0};gh(()=>R(r.isVirtualized)?void 0:n(),"scroll",()=>{let h=n();h&&(i={top:h.scrollTop,left:h.scrollLeft})});let{typeSelectHandlers:l}=m0({isDisabled:()=>R(r.disallowTypeAhead),keyboardDelegate:()=>R(r.keyboardDelegate),selectionManager:()=>R(r.selectionManager)}),u=()=>R(r.orientation)??"vertical",d=h=>{Pe(h,l.onKeyDown),h.altKey&&h.key==="Tab"&&h.preventDefault();let x=t();if(!x?.contains(h.target))return;let b=R(r.selectionManager),v=R(r.selectOnFocus),w=$=>{$!=null&&(b.setFocusedKey($),h.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection($):v&&!Od(h)&&b.replaceSelection($))},I=R(r.keyboardDelegate),E=R(r.shouldFocusWrap),T=b.focusedKey();switch(h.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(I.getKeyBelow){h.preventDefault();let $;T!=null?$=I.getKeyBelow(T):$=I.getFirstKey?.(),$==null&&E&&($=I.getFirstKey?.(T)),w($)}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(I.getKeyAbove){h.preventDefault();let $;T!=null?$=I.getKeyAbove(T):$=I.getLastKey?.(),$==null&&E&&($=I.getLastKey?.(T)),w($)}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(I.getKeyLeftOf){h.preventDefault();let $=s()==="rtl",L;T!=null?L=I.getKeyLeftOf(T):L=$?I.getFirstKey?.():I.getLastKey?.(),w(L)}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(I.getKeyRightOf){h.preventDefault();let $=s()==="rtl",L;T!=null?L=I.getKeyRightOf(T):L=$?I.getLastKey?.():I.getFirstKey?.(),w(L)}break}case"Home":if(I.getFirstKey){h.preventDefault();let $=I.getFirstKey(T,bo(h));$!=null&&(b.setFocusedKey($),bo(h)&&h.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection($):v&&b.replaceSelection($))}break;case"End":if(I.getLastKey){h.preventDefault();let $=I.getLastKey(T,bo(h));$!=null&&(b.setFocusedKey($),bo(h)&&h.shiftKey&&b.selectionMode()==="multiple"?b.extendSelection($):v&&b.replaceSelection($))}break;case"PageDown":if(I.getKeyPageBelow&&T!=null){h.preventDefault();let $=I.getKeyPageBelow(T);w($)}break;case"PageUp":if(I.getKeyPageAbove&&T!=null){h.preventDefault();let $=I.getKeyPageAbove(T);w($)}break;case"a":bo(h)&&b.selectionMode()==="multiple"&&R(r.disallowSelectAll)!==!0&&(h.preventDefault(),b.selectAll());break;case"Escape":h.defaultPrevented||(h.preventDefault(),R(r.disallowEmptySelection)||b.clearSelection());break;case"Tab":if(!R(r.allowsTabNavigation)){if(h.shiftKey)x.focus();else{let $=Oh(x,{tabbable:!0}),L,S;do S=$.lastChild(),S&&(L=S);while(S);L&&!L.contains(document.activeElement)&&Ye(L)}break}}},c=h=>{let x=R(r.selectionManager),b=R(r.keyboardDelegate),v=R(r.selectOnFocus);if(x.isFocused()){h.currentTarget.contains(h.target)||x.setFocused(!1);return}if(h.currentTarget.contains(h.target)){if(x.setFocused(!0),x.focusedKey()==null){let w=E=>{E!=null&&(x.setFocusedKey(E),v&&x.replaceSelection(E))},I=h.relatedTarget;I&&h.currentTarget.compareDocumentPosition(I)&Node.DOCUMENT_POSITION_FOLLOWING?w(x.lastSelectedKey()??b.getLastKey?.()):w(x.firstSelectedKey()??b.getFirstKey?.())}else if(!R(r.isVirtualized)){let w=n();if(w){w.scrollTop=i.top,w.scrollLeft=i.left;let I=w.querySelector(`[data-key="${x.focusedKey()}"]`);I&&(Ye(I),Rs(w,I))}}}},f=h=>{let x=R(r.selectionManager);h.currentTarget.contains(h.relatedTarget)||x.setFocused(!1)},p=h=>{n()===h.target&&h.preventDefault()},m=()=>{let h=R(r.autoFocus);if(!h)return;let x=R(r.selectionManager),b=R(r.keyboardDelegate),v;h==="first"&&(v=b.getFirstKey?.()),h==="last"&&(v=b.getLastKey?.());let w=x.selectedKeys();w.size&&(v=w.values().next().value),x.setFocused(!0),x.setFocusedKey(v);let I=t();I&&v==null&&!R(r.shouldUseVirtualFocus)&&Ye(I)};return ta(()=>{r.deferAutoFocus?setTimeout(m,0):m()}),W($t([n,()=>R(r.isVirtualized),()=>R(r.selectionManager).focusedKey()],h=>{let[x,b,v]=h;if(b)v&&r.scrollToKey?.(v);else if(v&&x){let w=x.querySelector(`[data-key="${v}"]`);w&&Rs(x,w)}})),{tabIndex:k(()=>{if(!R(r.shouldUseVirtualFocus))return R(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:p,onFocusIn:c,onFocusOut:f}}function Bd(e,t){let a=()=>R(e.selectionManager),o=()=>R(e.key),r=()=>R(e.shouldUseVirtualFocus),n=b=>{a().selectionMode()!=="none"&&(a().selectionMode()==="single"?a().isSelected(o())&&!a().disallowEmptySelection()?a().toggleSelection(o()):a().replaceSelection(o()):b?.shiftKey?a().extendSelection(o()):a().selectionBehavior()==="toggle"||bo(b)||"pointerType"in b&&b.pointerType==="touch"?a().toggleSelection(o()):a().replaceSelection(o()))},s=()=>a().isSelected(o()),i=()=>R(e.disabled)||a().isDisabled(o()),l=()=>!i()&&a().canSelectItem(o()),u=null,d=b=>{l()&&(u=b.pointerType,b.pointerType==="mouse"&&b.button===0&&!R(e.shouldSelectOnPressUp)&&n(b))},c=b=>{l()&&b.pointerType==="mouse"&&b.button===0&&R(e.shouldSelectOnPressUp)&&R(e.allowsDifferentPressOrigin)&&n(b)},f=b=>{l()&&(R(e.shouldSelectOnPressUp)&&!R(e.allowsDifferentPressOrigin)||u!=="mouse")&&n(b)},p=b=>{!l()||!["Enter"," "].includes(b.key)||(Od(b)?a().toggleSelection(o()):n(b))},m=b=>{i()&&b.preventDefault()},g=b=>{let v=t();r()||i()||!v||b.target===v&&a().setFocusedKey(o())},h=k(()=>{if(!(r()||i()))return o()===a().focusedKey()?0:-1}),x=k(()=>R(e.virtualized)?void 0:o());return W($t([t,o,r,()=>a().focusedKey(),()=>a().isFocused()],([b,v,w,I,E])=>{b&&v===I&&E&&!w&&document.activeElement!==b&&(e.focus?e.focus():Ye(b))})),{isSelected:s,isDisabled:i,allowsSelection:l,tabIndex:h,dataKey:x,onPointerDown:d,onPointerUp:c,onClick:f,onKeyDown:p,onMouseDown:m,onFocus:g}}function b0(e){let t=p0(e),o=o0({dataSource:()=>R(e.dataSource),getKey:()=>R(e.getKey),getTextValue:()=>R(e.getTextValue),getDisabled:()=>R(e.getDisabled),getSectionChildren:()=>R(e.getSectionChildren),factory:n=>e.filter?new Bu(e.filter(n)):new Bu(n)},[()=>e.filter]),r=new y0(o,t);return Jr(()=>{let n=t.focusedKey();n!=null&&!o().getItem(n)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>r}}function yr(e){return na.findIndex(t=>t.node===e)}function w0(e){return na[yr(e)]}function L0(e){return na[na.length-1].node===e}function Nd(){return na.filter(e=>e.isPointerBlocking)}function I0(){return[...Nd()].slice(-1)[0]}function _s(){return Nd().length>0}function zd(e){let t=yr(I0()?.node);return yr(e)<t}function S0(e){na.push(e)}function k0(e){let t=yr(e);t<0||na.splice(t,1)}function P0(){for(let{node:e}of na)e.style.pointerEvents=zd(e)?"none":"auto"}function M0(e){if(_s()&&!Ds){let t=Nt(e);qd=document.body.style.pointerEvents,t.body.style.pointerEvents="none",Ds=!0}}function A0(e){if(_s())return;let t=Nt(e);t.body.style.pointerEvents=qd,t.body.style.length===0&&t.body.removeAttribute("style"),Ds=!1}function D0(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?T0.indexOf(e.type)!==-1:!1}function Vs(e){let t,a=ie({type:"button"},e),[o,r]=de(a,["ref","type","disabled"]),n=Pn(()=>t,()=>"button"),s=k(()=>{let u=n();return u==null?!1:D0({tagName:u,type:o.type})}),i=k(()=>n()==="input"),l=k(()=>n()==="a"&&t?.getAttribute("href")!=null);return y(Me,ee({as:"button",ref(u){let d=ot(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 Es(e,t,a){return ct(e,qt(t,a))}function Ja(e,t){return typeof e=="function"?e(t):e}function Ea(e){return e.split("-")[0]}function wo(e){return e.split("-")[1]}function Ud(e){return e==="x"?"y":"x"}function Ks(e){return e==="y"?"height":"width"}function Za(e){return["top","bottom"].includes(Ea(e))?"y":"x"}function Gs(e){return Ud(Za(e))}function $0(e,t,a){a===void 0&&(a=!1);let o=wo(e),r=Gs(e),n=Ks(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=yn(s)),[s,yn(s)]}function q0(e){let t=yn(e);return[Fs(e),t,Fs(t)]}function Fs(e){return e.replace(/start|end/g,t=>B0[t])}function N0(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 z0(e,t,a,o){let r=wo(e),n=N0(Ea(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(Fs)))),n}function yn(e){return e.replace(/left|right|bottom|top/g,t=>O0[t])}function U0(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hd(e){return typeof e!="number"?U0(e):{top:e,right:e,bottom:e,left:e}}function bn(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 $u(e,t,a){let{reference:o,floating:r}=e,n=Za(t),s=Gs(t),i=Ks(s),l=Ea(t),u=n==="y",d=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,f=o[i]/2-r[i]/2,p;switch(l){case"top":p={x:d,y:o.y-r.height};break;case"bottom":p={x:d,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:c};break;case"left":p={x:o.x-r.width,y:c};break;default:p={x:o.x,y:o.y}}switch(wo(t)){case"start":p[s]-=f*(a&&u?-1:1);break;case"end":p[s]+=f*(a&&u?-1:1);break}return p}async function br(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:f=!1,padding:p=0}=Ja(t,e),m=Hd(p),h=i[f?c==="floating"?"reference":"floating":c],x=bn(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})),b=c==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,v=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),w=await(n.isElement==null?void 0:n.isElement(v))?await(n.getScale==null?void 0:n.getScale(v))||{x:1,y:1}:{x:1,y:1},I=bn(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:v,strategy:l}):b);return{top:(x.top-I.top+m.top)/w.y,bottom:(I.bottom-x.bottom+m.bottom)/w.y,left:(x.left-I.left+m.left)/w.x,right:(I.right-x.right+m.right)/w.x}}function qu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Nu(e){return F0.some(t=>e[t]>=0)}async function G0(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Ea(a),i=wo(a),l=Za(a)==="y",u=["left","top"].includes(s)?-1:1,d=n&&l?-1:1,c=Ja(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return i&&typeof m=="number"&&(p=i==="end"?m*-1:m),l?{x:p*d,y:f*u}:{x:f*u,y:p*d}}function Lo(e){return _d(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sa(e){var t;return(t=(_d(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _d(e){return e instanceof Node||e instanceof ft(e).Node}function Mt(e){return e instanceof Element||e instanceof ft(e).Element}function zt(e){return e instanceof HTMLElement||e instanceof ft(e).HTMLElement}function zu(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}function Pr(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=At(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&!["inline","contents"].includes(r)}function X0(e){return["table","td","th"].includes(Lo(e))}function An(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ws(e){let t=Qs(),a=Mt(e)?At(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 Z0(e){let t=Fa(e);for(;zt(t)&&!Co(t);){if(Ws(t))return t;if(An(t))return null;t=Fa(t)}return null}function Qs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Co(e){return["html","body","#document"].includes(Lo(e))}function At(e){return ft(e).getComputedStyle(e)}function Rn(e){return Mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fa(e){if(Lo(e)==="html")return e;let t=e.assignedSlot||e.parentNode||zu(e)&&e.host||sa(e);return zu(t)?t.host:t}function Vd(e){let t=Fa(e);return Co(t)?e.ownerDocument?e.ownerDocument.body:e.body:zt(t)&&Pr(t)?t:Vd(t)}function vr(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=Vd(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=ft(r);return n?t.concat(s,s.visualViewport||[],Pr(r)?r:[],s.frameElement&&a?vr(s.frameElement):[]):t.concat(r,vr(r,[],a))}function Kd(e){let t=At(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=zt(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=xn(a)!==n||xn(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function js(e){return Mt(e)?e:e.contextElement}function vo(e){let t=js(e);if(!zt(t))return Da(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=Kd(t),s=(n?xn(a.width):a.width)/o,i=(n?xn(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}function Gd(e){let t=ft(e);return!Qs()||!t.visualViewport?Y0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function J0(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==ft(e)?!1:t}function Ya(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=js(e),s=Da(1);t&&(o?Mt(o)&&(s=vo(o)):s=vo(e));let i=J0(n,a,o)?Gd(n):Da(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 f=ft(n),p=o&&Mt(o)?ft(o):o,m=f,g=m.frameElement;for(;g&&o&&p!==m;){let h=vo(g),x=g.getBoundingClientRect(),b=At(g),v=x.left+(g.clientLeft+parseFloat(b.paddingLeft))*h.x,w=x.top+(g.clientTop+parseFloat(b.paddingTop))*h.y;l*=h.x,u*=h.y,d*=h.x,c*=h.y,l+=v,u+=w,m=ft(g),g=m.frameElement}}return bn({width:d,height:c,x:l,y:u})}function ex(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=sa(o),i=t?An(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=Da(1),d=Da(0),c=zt(o);if((c||!c&&!n)&&((Lo(o)!=="body"||Pr(s))&&(l=Rn(o)),zt(o))){let f=Ya(o);u=vo(o),d.x=f.x+o.clientLeft,d.y=f.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 tx(e){return Array.from(e.getClientRects())}function Wd(e){return Ya(sa(e)).left+Rn(e).scrollLeft}function ax(e){let t=sa(e),a=Rn(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+Wd(e),i=-a.scrollTop;return At(o).direction==="rtl"&&(s+=ct(t.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:i}}function ox(e,t){let a=ft(e),o=sa(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){n=r.width,s=r.height;let u=Qs();(!u||u&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:i,y:l}}function rx(e,t){let a=Ya(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=zt(e)?vo(e):Da(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 Uu(e,t,a){let o;if(t==="viewport")o=ox(e,a);else if(t==="document")o=ax(sa(e));else if(Mt(t))o=rx(t,a);else{let r=Gd(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return bn(o)}function Qd(e,t){let a=Fa(e);return a===t||!Mt(a)||Co(a)?!1:At(a).position==="fixed"||Qd(a,t)}function nx(e,t){let a=t.get(e);if(a)return a;let o=vr(e,[],!1).filter(i=>Mt(i)&&Lo(i)!=="body"),r=null,n=At(e).position==="fixed",s=n?Fa(e):e;for(;Mt(s)&&!Co(s);){let i=At(s),l=Ws(s);!l&&i.position==="fixed"&&(r=null),(n?!l&&!r:!l&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Pr(s)&&!l&&Qd(e,s))?o=o.filter(d=>d!==s):r=i,s=Fa(s)}return t.set(e,o),o}function sx(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?An(t)?[]:nx(t,this._c):[].concat(a),o],i=s[0],l=s.reduce((u,d)=>{let c=Uu(t,d,r);return u.top=ct(c.top,u.top),u.right=qt(c.right,u.right),u.bottom=qt(c.bottom,u.bottom),u.left=ct(c.left,u.left),u},Uu(t,i,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function lx(e){let{width:t,height:a}=Kd(e);return{width:t,height:a}}function ix(e,t,a){let o=zt(t),r=sa(t),n=a==="fixed",s=Ya(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=Da(0);if(o||!o&&!n)if((Lo(t)!=="body"||Pr(r))&&(i=Rn(t)),o){let c=Ya(t,!0,n,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else r&&(l.x=Wd(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 Ls(e){return At(e).position==="static"}function Hu(e,t){return!zt(e)||At(e).position==="fixed"?null:t?t(e):e.offsetParent}function jd(e,t){let a=ft(e);if(An(e))return a;if(!zt(e)){let r=Fa(e);for(;r&&!Co(r);){if(Mt(r)&&!Ls(r))return r;r=Fa(r)}return a}let o=Hu(e,t);for(;o&&X0(o)&&Ls(o);)o=Hu(o,t);return o&&Co(o)&&Ls(o)&&!Ws(o)?a:o||Z0(e)||a}function dx(e){return At(e).direction==="rtl"}function cx(e,t){let a=null,o,r=sa(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:f}=e.getBoundingClientRect();if(i||t(),!c||!f)return;let p=pn(d),m=pn(r.clientWidth-(u+c)),g=pn(r.clientHeight-(d+f)),h=pn(u),b={rootMargin:-p+"px "+-m+"px "+-g+"px "+-h+"px",threshold:ct(0,qt(1,l))||1},v=!0;function w(I){let E=I[0].intersectionRatio;if(E!==l){if(!v)return s();E?s(!1,E):o=setTimeout(()=>{s(!1,1e-7)},1e3)}v=!1}try{a=new IntersectionObserver(w,{...b,root:r.ownerDocument})}catch{a=new IntersectionObserver(w,b)}a.observe(e)}return s(!0),n}function fx(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=js(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?cx(u,a):null,f=-1,p=null;s&&(p=new ResizeObserver(x=>{let[b]=x;b&&b.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),a()}),u&&!l&&p.observe(u),p.observe(t));let m,g=l?Ya(e):null;l&&h();function h(){let x=Ya(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(b=>{r&&b.removeEventListener("scroll",a),n&&b.removeEventListener("resize",a)}),c?.(),(x=p)==null||x.disconnect(),p=null,l&&cancelAnimationFrame(m)}}function Zs(){let e=qe(Xs);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function Ys(e){let t=Zs(),a=ie({size:Os},e),[o,r]=de(a,["ref","style","size"]),n=()=>t.currentPlacement().split("-")[0],s=wx(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*(Os/o.size),c=()=>`rotate(${Cx[n()]} ${_u} ${_u}) translate(0 2)`;return y(Me,ee({as:"div",ref(f){let p=ot(t.setArrowRef,o.ref);typeof p=="function"&&p(f)},"aria-hidden":"true",get style(){return Sn({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 f=vx(),p=f.firstChild;return G(()=>D(p,"transform",c())),f}}))}function wx(e){let[t,a]=z();return W(()=>{let o=e();o&&a(Ch(o).getComputedStyle(o))}),t}function Lx(e){let t=Zs(),[a,o]=de(e,["ref","style"]);return y(Me,ee({as:"div",ref(r){let n=ot(t.setPositionerRef,a.ref);typeof n=="function"&&n(r)},"data-popper-positioner":"",get style(){return Sn({position:"absolute",top:0,left:0,"min-width":"max-content"},a.style)}},o))}function Vu(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 Ix(e,t){return{contextElement:e,getBoundingClientRect:()=>{let o=t(e);return o?Vu(o):e?e.getBoundingClientRect():Vu()}}}function Sx(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Px(e,t){let[a,o]=e.split("-"),r=kx[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 Mx(e){let t=ie({getAnchorRect:f=>f?.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]=z(),[r,n]=z(),[s,i]=z(t.placement),l=()=>Ix(t.anchorRef?.(),t.getAnchorRect),{direction:u}=Oa();async function d(){let f=l(),p=a(),m=r();if(!f||!p)return;let g=(m?.clientHeight||0)/2,h=typeof t.gutter=="number"?t.gutter+g:t.gutter??g;p.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),f.getBoundingClientRect();let x=[px(({placement:E})=>{let T=!!E.split("-")[1];return{mainAxis:h,crossAxis:T?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(Sx))throw new Error("`flip` expects a spaced-delimited list of placements");x.push(gx({padding:t.overflowPadding,fallbackPlacements:E}))}(t.slide||t.overlap)&&x.push(mx({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),x.push(hx({padding:t.overflowPadding,apply({availableWidth:E,availableHeight:T,rects:$}){let L=Math.round($.reference.width);E=Math.floor(E),T=Math.floor(T),p.style.setProperty("--kb-popper-anchor-width",`${L}px`),p.style.setProperty("--kb-popper-content-available-width",`${E}px`),p.style.setProperty("--kb-popper-content-available-height",`${T}px`),t.sameWidth&&(p.style.width=`${L}px`),t.fitViewport&&(p.style.maxWidth=`${E}px`,p.style.maxHeight=`${T}px`)}})),t.hideWhenDetached&&x.push(xx({padding:t.detachedPadding})),m&&x.push(yx({element:m,padding:t.arrowPadding}));let b=await bx(f,p,{placement:t.placement,strategy:"absolute",middleware:x,platform:{...Xd,isRTL:()=>u()==="rtl"}});if(i(b.placement),t.onCurrentPlacementChange?.(b.placement),!p)return;p.style.setProperty("--kb-popper-content-transform-origin",Px(b.placement,u()));let v=Math.round(b.x),w=Math.round(b.y),I;if(t.hideWhenDetached&&(I=b.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(p.style,{top:"0",left:"0",transform:`translate3d(${v}px, ${w}px, 0)`,visibility:I}),m&&b.middlewareData.arrow){let{x:E,y:T}=b.middlewareData.arrow,$=b.placement.split("-")[0];Object.assign(m.style,{left:E!=null?`${E}px`:"",top:T!=null?`${T}px`:"",[$]:"100%"})}}W(()=>{let f=l(),p=a();if(!f||!p)return;let m=fx(f,p,d,{elementResize:typeof ResizeObserver=="function"});X(m)}),W(()=>{let f=a(),p=t.contentRef?.();!f||!p||queueMicrotask(()=>{f.style.zIndex=getComputedStyle(p).zIndex})});let c={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:o,setArrowRef:n};return y(Xs.Provider,{value:c,get children(){return t.children}})}function Ax(e){let t=a=>{a.key===Ns.Escape&&e.onEscapeKeyDown?.(a)};W(()=>{if(Xe||R(e.isDisabled))return;let a=e.ownerDocument?.()??Nt();a.addEventListener("keydown",t),X(()=>{a.removeEventListener("keydown",t)})})}function Rx(e,t){let a,o=$h,r=()=>Nt(t()),n=c=>e.onPointerDownOutside?.(c),s=c=>e.onFocusOutside?.(c),i=c=>e.onInteractOutside?.(c),l=c=>{let f=c.target;return!(f instanceof HTMLElement)||f.closest(`[${hn}]`)||!bt(r(),f)||bt(t(),f)?!1:!e.shouldExcludeElement?.(f)},u=c=>{function f(){let p=t(),m=c.target;if(!p||!m||!l(c))return;let g=Ve([n,i]);m.addEventListener(Ku,g,{once:!0});let h=new CustomEvent(Ku,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:c.button===2||kh(c)&&c.button===0}});m.dispatchEvent(h)}c.pointerType==="touch"?(r().removeEventListener("click",f),o=f,r().addEventListener("click",f,{once:!0})):f()},d=c=>{let f=t(),p=c.target;if(!f||!p||!l(c))return;let m=Ve([s,i]);p.addEventListener(Gu,m,{once:!0});let g=new CustomEvent(Gu,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:!1}});p.dispatchEvent(g)};W(()=>{Xe||R(e.isDisabled)||(a=window.setTimeout(()=>{r().addEventListener("pointerdown",u,!0)},0),r().addEventListener("focusin",d,!0),X(()=>{window.clearTimeout(a),r().removeEventListener("click",o),r().removeEventListener("pointerdown",u,!0),r().removeEventListener("focusin",d,!0)}))})}function Tx(){return qe(Yd)}function Dx(e){let t,a=Tx(),[o,r]=de(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),n=new Set([]),s=c=>{n.add(c);let f=a?.registerNestedLayer(c);return()=>{n.delete(c),f?.()}};Rx({shouldExcludeElement:c=>t?o.excludedElements?.some(f=>bt(f(),c))||[...n].some(f=>bt(f,c)):!1,onPointerDownOutside:c=>{!t||ut.isBelowPointerBlockingLayer(t)||!o.bypassTopMostLayerCheck&&!ut.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),Ax({ownerDocument:()=>Nt(t),onEscapeKeyDown:c=>{!t||!ut.isTopMostLayer(t)||(o.onEscapeKeyDown?.(c),!c.defaultPrevented&&o.onDismiss&&(c.preventDefault(),o.onDismiss()))}}),ta(()=>{if(!t)return;ut.addLayer({node:t,isPointerBlocking:o.disableOutsidePointerEvents,dismiss:o.onDismiss});let c=a?.registerNestedLayer(t);ut.assignPointerEventToLayers(),ut.disableBodyPointerEvents(t),X(()=>{t&&(ut.removeLayer(t),c?.(),ut.assignPointerEventToLayers(),ut.restoreBodyPointerEvents(t))})}),W($t([()=>t,()=>o.disableOutsidePointerEvents],([c,f])=>{if(!c)return;let p=ut.find(c);p&&p.isPointerBlocking!==f&&(p.isPointerBlocking=f,ut.assignPointerEventToLayers()),f&&ut.disableBodyPointerEvents(c),X(()=>{ut.restoreBodyPointerEvents(c)})},{defer:!0}));let d={registerNestedLayer:s};return y(Yd.Provider,{value:d,get children(){return y(Me,ee({as:"div",ref(c){let f=ot(p=>t=p,o.ref);typeof f=="function"&&f(c)}},r))}})}function Jd(e={}){let[t,a]=Pd({value:()=>R(e.open),defaultValue:()=>!!R(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),o=()=>{a(!0)},r=()=>{a(!1)};return{isOpen:t,setIsOpen:a,open:o,close:r,toggle:()=>{t()?r():o()}}}function tc(){let e=qe(ec);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function Mr(){let e=qe(ac);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function oc(e){let t=Sr(),a=tc(),o=`${t.generateId("item")}-${it()}`,r=ie({id:o},e),[n,s]=de(r,["value","disabled","onPointerDown"]),[i,l]=z(),[u,d]=z(),[c,f]=z(),[p,m]=z(),[g,h]=z(!1),x=k(()=>a.isSelectedValue(n.value)),b=k(()=>n.disabled||t.isDisabled()||!1),v=E=>{Pe(E,n.onPointerDown),g()&&E.preventDefault()},w=k(()=>({...t.dataset(),"data-disabled":b()?"":void 0,"data-checked":x()?"":void 0})),I={value:()=>n.value,dataset:w,isSelected:x,isDisabled:b,inputId:i,labelId:u,descriptionId:c,inputRef:p,select:()=>a.setSelectedValue(n.value),generateId:Ir(()=>s.id),registerInput:vt(l),registerLabel:vt(d),registerDescription:vt(f),setIsFocused:h,setInputRef:m};return y(ac.Provider,{value:I,get children(){return y(Me,ee({as:"div",role:"group",onPointerDown:v},w,s))}})}function rc(e){let t=Mr(),a=ie({id:t.generateId("control")},e),[o,r]=de(a,["onClick","onKeyDown"]);return y(Me,ee({as:"div",onClick:i=>{Pe(i,o.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:i=>{Pe(i,o.onKeyDown),i.key===Ns.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),r))}function nc(e){let t=Mr(),a=ie({id:t.generateId("description")},e);return W(()=>X(t.registerDescription(a.id))),y(Me,ee({as:"div"},()=>t.dataset(),a))}function sc(e){let t=Mr(),a=ie({id:t.generateId("indicator")},e),[o,r]=de(a,["ref","forceMount"]),[n,s]=z(),{present:i}=$d({show:()=>o.forceMount||t.isSelected(),element:()=>n()??null});return y(Q,{get when(){return i()},get children(){return y(Me,ee({as:"div",ref(l){let u=ot(s,o.ref);typeof u=="function"&&u(l)}},()=>t.dataset(),r))}})}function lc(e){let t=Sr(),a=tc(),o=Mr(),r=ie({id:o.generateId("input")},e),[n,s]=de(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]=z(!1),c=m=>{if(Pe(m,n.onChange),m.stopPropagation(),!u()){a.setSelectedValue(o.value());let g=m.target;g.checked=o.isSelected()}d(!1)},f=m=>{Pe(m,n.onFocus),o.setIsFocused(!0)},p=m=>{Pe(m,n.onBlur),o.setIsFocused(!1)};return W($t([()=>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})),W(()=>X(o.registerInput(s.id))),y(Me,ee({as:"input",ref(m){let g=ot(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 Sn({...Ld},n.style)},get"aria-labelledby"(){return i()},get"aria-describedby"(){return l()},onChange:c,onFocus:f,onBlur:p},()=>o.dataset(),s))}function ic(e){let t=Mr(),a=ie({id:t.generateId("label")},e);return W(()=>X(t.registerLabel(a.id))),y(Me,ee({as:"label",get for(){return t.inputId()}},()=>t.dataset(),a))}function uc(e){return y(Hh,ee({as:"span"},e))}function dc(e){let t,a=`radiogroup-${it()}`,o=ie({id:a,orientation:"vertical"},e),[r,n,s]=de(o,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],zh),[i,l]=kr({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:m=>r.onChange?.(m)}),{formControlContext:u}=Uh(n);_h(()=>t,()=>l(r.defaultValue??""));let d=()=>u.getAriaLabelledBy(R(n.id),s["aria-label"],r["aria-labelledby"]),c=()=>u.getAriaDescribedBy(r["aria-describedby"]),f=m=>m===i(),p={ariaDescribedBy:c,isSelectedValue:f,setSelectedValue:m=>{if(!(u.isReadOnly()||u.isDisabled())&&(l(m),t))for(let g of t.querySelectorAll("[type='radio']")){let h=g;h.checked=f(h.value)}}};return y(Id.Provider,{value:u,get children(){return y(ec.Provider,{value:p,get children(){return y(Me,ee({as:"div",ref(m){let g=ot(h=>t=h,r.ref);typeof g=="function"&&g(m)},role:"radiogroup",get id(){return R(n.id)},get"aria-invalid"(){return u.validationState()==="invalid"||void 0},get"aria-required"(){return u.isRequired()||void 0},get"aria-disabled"(){return u.isDisabled()||void 0},get"aria-readonly"(){return u.isReadOnly()||void 0},get"aria-orientation"(){return r.orientation},get"aria-labelledby"(){return d()},get"aria-describedby"(){return c()}},()=>u.dataset(),s))}})}})}function Ox(e,t,a){let o=d0({usage:"search",sensitivity:"base"}),r=k(()=>{let n=R(e.keyboardDelegate);return n||new Fx(e.collection,t,o)});return x0({selectionManager:()=>R(e.selectionManager),keyboardDelegate:r,autoFocus:()=>R(e.autoFocus),deferAutoFocus:()=>R(e.deferAutoFocus),shouldFocusWrap:()=>R(e.shouldFocusWrap),disallowEmptySelection:()=>R(e.disallowEmptySelection),selectOnFocus:()=>R(e.selectOnFocus),disallowTypeAhead:()=>R(e.disallowTypeAhead),shouldUseVirtualFocus:()=>R(e.shouldUseVirtualFocus),allowsTabNavigation:()=>R(e.allowsTabNavigation),isVirtualized:()=>R(e.isVirtualized),scrollToKey:n=>R(e.scrollToKey)?.(n),orientation:()=>R(e.orientation)},t)}function Bx(e,t){let[a,o]=z(!1),r={pause(){o(!0)},resume(){o(!1)}},n=null,s=m=>e.onMountAutoFocus?.(m),i=m=>e.onUnmountAutoFocus?.(m),l=()=>Nt(t()),u=()=>{let m=l().createElement("span");return m.setAttribute("data-focus-trap",""),m.tabIndex=0,Object.assign(m.style,Ld),m},d=()=>{let m=t();return m?Cd(m,!0).filter(g=>!g.hasAttribute("data-focus-trap")):[]},c=()=>{let m=d();return m.length>0?m[0]:null},f=()=>{let m=d();return m.length>0?m[m.length-1]:null},p=()=>{let m=t();if(!m)return!1;let g=gr(m);return!g||bt(m,g)?!1:wd(g)};W(()=>{if(Xe)return;let m=t();if(!m)return;Qu.add(r);let g=gr(m);if(!bt(m,g)){let x=new CustomEvent(Is,Wu);m.addEventListener(Is,s),m.dispatchEvent(x),x.defaultPrevented||setTimeout(()=>{Ye(c()),gr(m)===g&&Ye(m)},0)}X(()=>{m.removeEventListener(Is,s),setTimeout(()=>{let x=new CustomEvent(Ss,Wu);p()&&x.preventDefault(),m.addEventListener(Ss,i),m.dispatchEvent(x),x.defaultPrevented||Ye(g??l().body),m.removeEventListener(Ss,i),Qu.remove(r)},0)})}),W(()=>{if(Xe)return;let m=t();if(!m||!R(e.trapFocus)||a())return;let g=x=>{let b=x.target;b?.closest(`[${hn}]`)||(bt(m,b)?n=b:Ye(n))},h=x=>{let v=x.relatedTarget??gr(m);v?.closest(`[${hn}]`)||bt(m,v)||Ye(n)};l().addEventListener("focusin",g),l().addEventListener("focusout",h),X(()=>{l().removeEventListener("focusin",g),l().removeEventListener("focusout",h)})}),W(()=>{if(Xe)return;let m=t();if(!m||!R(e.trapFocus)||a())return;let g=u();m.insertAdjacentElement("afterbegin",g);let h=u();m.insertAdjacentElement("beforeend",h);function x(v){let w=c(),I=f();v.relatedTarget===w?Ye(I):Ye(w)}g.addEventListener("focusin",x),h.addEventListener("focusin",x);let b=new MutationObserver(v=>{for(let w of v)w.previousSibling===h&&(h.remove(),m.insertAdjacentElement("beforeend",h)),w.nextSibling===g&&(g.remove(),m.insertAdjacentElement("afterbegin",g))});b.observe(m,{childList:!0,subtree:!1}),X(()=>{g.removeEventListener("focusin",x),h.removeEventListener("focusin",x),g.remove(),h.remove(),b.disconnect()})})}function qx(e){W(()=>{R(e.isDisabled)||X(Nx(R(e.targets),R(e.root)))})}function Nx(e,t=document.body){let a=new Set(e),o=new Set,r=l=>{for(let f of l.querySelectorAll(`[${$x}], [${hn}]`))a.add(f);let u=f=>{if(a.has(f)||f.parentElement&&o.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of a)if(f.contains(p))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 f=d.nextNode();for(;f!=null;)n(f),f=d.nextNode()}},n=l=>{let u=pr.get(l)??0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),o.add(l),pr.set(l,u+1))};xt.length&&xt[xt.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 xt.push(i),()=>{s.disconnect();for(let l of o){let u=pr.get(l);if(u==null)return;u===1?(l.removeAttribute("aria-hidden"),pr.delete(l)):pr.set(l,u-1)}i===xt[xt.length-1]?(xt.pop(),xt.length&&xt[xt.length-1].observe()):xt.splice(xt.indexOf(i),1)}}function fc(){return qe(cc)}function la(){let e=fc();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function Js(){let e=qe(pc);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function Ut(){let e=qe(mc);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function el(e){let t,a=Ut(),o=la(),r=ie({id:a.generateId(`item-${it()}`)},e),[n,s]=de(r,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[i,l]=z(),[u,d]=z(),[c,f]=z(),p=()=>o.listState().selectionManager(),m=()=>s.id,g=()=>p().focusedKey()===m(),h=()=>{n.onSelect?.(),n.closeOnSelect&&setTimeout(()=>{o.close(!0)})};a0({getItem:()=>({ref:()=>t,type:"item",key:m(),textValue:n.textValue??c()?.textContent??t?.textContent??"",disabled:n.disabled??!1})});let x=Bd({key:m,selectionManager:p,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),b=L=>{Pe(L,n.onPointerMove),L.pointerType==="mouse"&&(n.disabled?o.onItemLeave(L):(o.onItemEnter(L),L.defaultPrevented||(Ye(L.currentTarget),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(m()))))},v=L=>{Pe(L,n.onPointerLeave),L.pointerType==="mouse"&&o.onItemLeave(L)},w=L=>{Pe(L,n.onPointerUp),!n.disabled&&L.button===0&&h()},I=L=>{if(Pe(L,n.onKeyDown),!L.repeat&&!n.disabled)switch(L.key){case"Enter":case" ":h();break}},E=k(()=>{if(n.indeterminate)return"mixed";if(n.checked!=null)return n.checked}),T=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})),$={isChecked:()=>n.checked,dataset:T,setLabelRef:f,generateId:Ir(()=>s.id),registerLabel:vt(l),registerDescription:vt(d)};return y(pc.Provider,{value:$,get children(){return y(Me,ee({as:"div",ref(L){let S=ot(F=>t=F,n.ref);typeof S=="function"&&S(L)},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 Ve([n.onPointerDown,x.onPointerDown])},get onPointerUp(){return Ve([w,x.onPointerUp])},get onClick(){return Ve([n.onClick,x.onClick])},get onKeyDown(){return Ve([I,x.onKeyDown])},get onMouseDown(){return Ve([n.onMouseDown,x.onMouseDown])},get onFocus(){return Ve([n.onFocus,x.onFocus])},onPointerMove:b,onPointerLeave:v},T,s))}})}function gc(e){let t=ie({closeOnSelect:!1},e),[a,o]=de(t,["checked","defaultChecked","onChange","onSelect"]),r=Wh({isSelected:()=>a.checked,defaultIsSelected:()=>a.defaultChecked,onSelectedChange:s=>a.onChange?.(s),isDisabled:()=>o.disabled});return y(el,ee({role:"menuitemcheckbox",get checked(){return r.isSelected()},onSelect:()=>{a.onSelect?.(),r.toggle()}},o))}function Tn(){return qe(jx)}function hc(e){let t=Ut(),a=la(),o=Tn(),{direction:r}=Oa(),n=ie({id:t.generateId("trigger")},e),[s,i]=de(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=Pn(()=>a.triggerRef(),()=>"button"),d=k(()=>u()==="a"&&a.triggerRef()?.getAttribute("href")!=null);W($t(()=>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)},f=x=>{Pe(x,s.onPointerDown),x.currentTarget.dataset.pointerType=x.pointerType,!s.disabled&&x.pointerType!=="touch"&&x.button===0&&c()},p=x=>{Pe(x,s.onClick),s.disabled||x.currentTarget.dataset.pointerType==="touch"&&c()},m=x=>{if(Pe(x,s.onKeyDown),!s.disabled){if(d())switch(x.key){case"Enter":case" ":return}switch(x.key){case"Enter":case" ":case ed.first(t.orientation()):x.stopPropagation(),x.preventDefault(),Nh(x.currentTarget),a.open("first"),o?.setAutoFocusMenu(!0),o?.setValue(l);break;case ed.last(t.orientation()):x.stopPropagation(),x.preventDefault(),a.open("last");break;case Cr.next(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.nextMenu();break;case Cr.previous(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.previousMenu();break}}},g=x=>{Pe(x,s.onMouseOver),a.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&o!==void 0&&o.value()!==void 0&&o.setValue(l)},h=x=>{Pe(x,s.onFocus),o!==void 0&&x.currentTarget.dataset.pointerType!=="touch"&&o.setValue(l)};return W(()=>X(a.registerTriggerId(s.id))),y(Vs,ee({ref(x){let b=ot(a.setTriggerRef,s.ref);typeof b=="function"&&b(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:f,onMouseOver:g,onClick:p,onKeyDown:m,onFocus:h,role:o!==void 0?"menuitem":void 0},()=>a.dataset(),i))}function xc(){return qe(Xx)}function yc(e){let t,a=Ut(),o=la(),r=Tn(),n=xc(),{direction:s}=Oa(),i=ie({id:a.generateId(`content-${it()}`)},e),[l,u]=de(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(),f=Ox({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);Bx({trapFocus:()=>c()&&o.isOpen(),onMountAutoFocus:v=>{r===void 0&&l.onOpenAutoFocus?.(v)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let p=v=>{if(bt(v.currentTarget,v.target)&&(v.key==="Tab"&&o.isOpen()&&v.preventDefault(),r!==void 0&&v.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(v.key){case Cr.next(s(),a.orientation()):v.stopPropagation(),v.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.nextMenu();break;case Cr.previous(s(),a.orientation()):if(v.currentTarget.hasAttribute("data-closed"))break;v.stopPropagation(),v.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.previousMenu();break}},m=v=>{l.onEscapeKeyDown?.(v),r?.setAutoFocusMenu(!1),o.close(!0)},g=v=>{l.onFocusOutside?.(v),a.isModal()&&v.preventDefault()},h=v=>{Pe(v,l.onPointerEnter),o.isOpen()&&(o.parentMenuContext()?.listState().selectionManager().setFocused(!1),o.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},x=v=>{if(Pe(v,l.onPointerMove),v.pointerType!=="mouse")return;let w=v.target,I=d!==v.clientX;bt(v.currentTarget,w)&&I&&(o.setPointerDir(v.clientX>d?"right":"left"),d=v.clientX)};W(()=>X(o.registerContentId(l.id)));let b={ref:ot(v=>{o.setContentRef(v),t=v},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return f.tabIndex()},get"aria-labelledby"(){return o.triggerId()},onKeyDown:Ve([l.onKeyDown,f.onKeyDown,p]),onMouseDown:Ve([l.onMouseDown,f.onMouseDown]),onFocusIn:Ve([l.onFocusIn,f.onFocusIn]),onFocusOut:Ve([l.onFocusOut,f.onFocusOut]),onPointerEnter:h,onPointerMove:x,get"data-orientation"(){return a.orientation()}};return y(Q,{get when(){return o.contentPresent()},get children(){return y(Q,{get when(){return n===void 0||o.parentMenuContext()!=null},get fallback(){return y(Me,ee({as:"div"},()=>o.dataset(),b,u))},get children(){return y(Zd.Positioner,{get children(){return y(Dx,ee({get disableOutsidePointerEvents(){return k(()=>!!c())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return Sn({"--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(),b,u))}})}})}})}function Zx(e){let t,a=Ut(),o=la(),[r,n]=de(e,["ref"]);return Qx({element:()=>t??null,enabled:()=>o.contentPresent()&&a.preventScroll()}),y(yc,ee({ref(s){let i=ot(l=>{t=l},r.ref);typeof i=="function"&&i(s)}},n))}function Yx(){let e=qe(bc);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function tl(e){let t=Ut(),a=ie({id:t.generateId(`group-${it()}`)},e),[o,r]=z(),n={generateId:Ir(()=>a.id),registerLabelId:vt(r)};return y(bc.Provider,{value:n,get children(){return y(Me,ee({as:"div",role:"group",get"aria-labelledby"(){return o()}},a))}})}function vc(e){let t=Yx(),a=ie({id:t.generateId("label")},e),[o,r]=de(a,["id"]);return W(()=>X(t.registerLabelId(o.id))),y(Me,ee({as:"span",get id(){return o.id},"aria-hidden":"true"},r))}function Cc(e){let t=la(),a=ie({children:"\u25BC"},e);return y(Me,ee({as:"span","aria-hidden":"true"},()=>t.dataset(),a))}function wc(e){return y(el,ee({role:"menuitem",closeOnSelect:!0},e))}function Lc(e){let t=Js(),a=ie({id:t.generateId("description")},e),[o,r]=de(a,["id"]);return W(()=>X(t.registerDescription(o.id))),y(Me,ee({as:"div",get id(){return o.id}},()=>t.dataset(),r))}function Ic(e){let t=Js(),a=ie({id:t.generateId("indicator")},e),[o,r]=de(a,["forceMount"]);return y(Q,{get when(){return o.forceMount||t.isChecked()},get children(){return y(Me,ee({as:"div"},()=>t.dataset(),r))}})}function Sc(e){let t=Js(),a=ie({id:t.generateId("label")},e),[o,r]=de(a,["ref","id"]);return W(()=>X(t.registerLabel(o.id))),y(Me,ee({as:"div",ref(n){let s=ot(t.setLabelRef,o.ref);typeof s=="function"&&s(n)},get id(){return o.id}},()=>t.dataset(),r))}function kc(e){let t=la();return y(Q,{get when(){return t.contentPresent()},get children(){return y(xs,e)}})}function Jx(){let e=qe(Pc);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Mc(e){let a=Ut().generateId(`radiogroup-${it()}`),o=ie({id:a},e),[r,n]=de(o,["value","defaultValue","onChange","disabled"]),[s,i]=kr({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:u=>r.onChange?.(u)}),l={isDisabled:()=>r.disabled,isSelectedValue:u=>u===s(),setSelectedValue:i};return y(Pc.Provider,{value:l,get children(){return y(tl,n)}})}function Ac(e){let t=Jx(),a=ie({closeOnSelect:!1},e),[o,r]=de(a,["value","onSelect"]);return y(el,ee({role:"menuitemradio",get checked(){return t.isSelectedValue(o.value)},onSelect:()=>{o.onSelect?.(),t.setSelectedValue(o.value)}},r))}function e1(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 t1(e,t){return t?qh([e.clientX,e.clientY],t):!1}function Rc(e){let t=Ut(),a=Ad(),o=fc(),r=Tn(),n=xc(),s=ie({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[i,l]=de(s,["open","defaultOpen","onOpenChange"]),u=0,d=null,c="right",[f,p]=z(),[m,g]=z(),[h,x]=z(),[b,v]=z(),[w,I]=z(!0),[E,T]=z(l.placement),[$,L]=z([]),[S,F]=z([]),{DomCollectionProvider:P}=t0({items:S,onItemsChange:F}),Y=Jd({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:J=>i.onOpenChange?.(J)}),{present:ae}=$d({show:()=>t.forceMount()||Y.isOpen(),element:()=>b()??null}),he=b0({selectionMode:"none",dataSource:S}),ce=J=>{I(J),Y.open()},xe=(J=!1)=>{Y.close(),J&&o&&o.close(!0)},ye=J=>{I(J),Y.toggle()},fe=()=>{let J=b();J&&(Ye(J),he.selectionManager().setFocused(!0),he.selectionManager().setFocusedKey(void 0))},De=()=>{n!=null?setTimeout(()=>fe()):fe()},Se=J=>{L(Qe=>[...Qe,J]);let It=o?.registerNestedMenu(J);return()=>{L(Qe=>As(Qe,J)),It?.()}},Oe=J=>c===d?.side&&t1(J,d?.area),et=J=>{Oe(J)&&J.preventDefault()},B=J=>{Oe(J)||De()},Ee=J=>{Oe(J)&&J.preventDefault()};qx({isDisabled:()=>!(o==null&&Y.isOpen()&&t.isModal()),targets:()=>[b(),...$()].filter(Boolean)}),W(()=>{let J=b();if(!J||!o)return;let It=o.registerNestedMenu(J);X(()=>{It()})}),W(()=>{o===void 0&&r?.registerMenu(t.value(),[b(),...$()])}),W(()=>{o!==void 0||r===void 0||(r.value()===t.value()?(h()?.focus(),r.autoFocusMenu()&&ce(!0)):xe())}),W(()=>{o!==void 0||r===void 0||Y.isOpen()&&r.setValue(t.value())}),X(()=>{o===void 0&&r?.unregisterMenu(t.value())});let Ca={dataset:k(()=>({"data-expanded":Y.isOpen()?"":void 0,"data-closed":Y.isOpen()?void 0:""})),isOpen:Y.isOpen,contentPresent:ae,nestedMenus:$,currentPlacement:E,pointerGraceTimeoutId:()=>u,autoFocus:w,listState:()=>he,parentMenuContext:()=>o,triggerRef:h,contentRef:b,triggerId:f,contentId:m,setTriggerRef:x,setContentRef:v,open:ce,close:xe,toggle:ye,focusContent:De,onItemEnter:et,onItemLeave:B,onTriggerLeave:Ee,setPointerDir:J=>c=J,setPointerGraceTimeoutId:J=>u=J,setPointerGraceIntent:J=>d=J,registerNestedMenu:Se,registerItemToParentDomCollection:a?.registerItem,registerTriggerId:vt(p),registerContentId:vt(g)};return y(P,{get children(){return y(cc.Provider,{value:Ca,get children(){return y(Q,{when:n===void 0,get fallback(){return l.children},get children(){return y(Zd,ee({anchorRef:h,contentRef:b,onCurrentPlacementChange:T},l))}})}})}})}function Tc(e){let{direction:t}=Oa();return y(Rc,ee({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function Dc(e){let t=la(),a=Ut(),[o,r]=de(e,["onFocusOutside","onKeyDown"]),{direction:n}=Oa();return y(yc,ee({onOpenAutoFocus:d=>{d.preventDefault()},onCloseAutoFocus:d=>{d.preventDefault()},onFocusOutside:d=>{o.onFocusOutside?.(d);let c=d.target;bt(t.triggerRef(),c)||t.close()},onKeyDown:d=>{Pe(d,o.onKeyDown);let c=bt(d.currentTarget,d.target),f=a1.close(n(),a.orientation()).includes(d.key),p=t.parentMenuContext()!=null;c&&f&&p&&(t.close(),Ye(t.triggerRef()))}},r))}function Ec(e){let t,a=Ut(),o=la(),r=ie({id:a.generateId(`sub-trigger-${it()}`)},e),[n,s]=de(r,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),i=null,l=()=>{Xe||(i&&window.clearTimeout(i),i=null)},{direction:u}=Oa(),d=()=>n.id,c=()=>{let v=o.parentMenuContext();if(v==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return v.listState().selectionManager()},f=()=>o.listState().collection(),p=()=>c().focusedKey()===d(),m=Bd({key:d,selectionManager:c,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),g=v=>{Pe(v,n.onClick),!o.isOpen()&&!n.disabled&&o.open(!0)},h=v=>{if(Pe(v,n.onPointerMove),v.pointerType!=="mouse")return;let w=o.parentMenuContext();if(w?.onItemEnter(v),!v.defaultPrevented){if(n.disabled){w?.onItemLeave(v);return}!o.isOpen()&&!i&&(o.parentMenuContext()?.setPointerGraceIntent(null),i=window.setTimeout(()=>{o.open(!1),l()},100)),w?.onItemEnter(v),v.defaultPrevented||(o.listState().selectionManager().isFocused()&&(o.listState().selectionManager().setFocused(!1),o.listState().selectionManager().setFocusedKey(void 0)),Ye(v.currentTarget),w?.listState().selectionManager().setFocused(!0),w?.listState().selectionManager().setFocusedKey(d()))}},x=v=>{if(Pe(v,n.onPointerLeave),v.pointerType!=="mouse")return;l();let w=o.parentMenuContext(),I=o.contentRef();if(I){w?.setPointerGraceIntent({area:e1(o.currentPlacement(),v,I),side:o.currentPlacement().split("-")[0]}),window.clearTimeout(w?.pointerGraceTimeoutId());let E=window.setTimeout(()=>{w?.setPointerGraceIntent(null)},300);w?.setPointerGraceTimeoutId(E)}else{if(w?.onTriggerLeave(v),v.defaultPrevented)return;w?.setPointerGraceIntent(null)}w?.onItemLeave(v)},b=v=>{Pe(v,n.onKeyDown),!v.repeat&&(n.disabled||o1.open(u(),a.orientation()).includes(v.key)&&(v.stopPropagation(),v.preventDefault(),c().setFocused(!1),c().setFocusedKey(void 0),o.isOpen()||o.open("first"),o.focusContent(),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(f().getFirstKey())))};return W(()=>{if(o.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let v=o.registerItemToParentDomCollection({ref:()=>t,type:"item",key:d(),textValue:n.textValue??t?.textContent??"",disabled:n.disabled??!1});X(v)}),W($t(()=>o.parentMenuContext()?.pointerGraceTimeoutId(),v=>{X(()=>{window.clearTimeout(v),o.parentMenuContext()?.setPointerGraceIntent(null)})})),W(()=>X(o.registerTriggerId(n.id))),X(()=>{l()}),y(Me,ee({as:"div",ref(v){let w=ot(I=>{o.setTriggerRef(I),t=I},n.ref);typeof w=="function"&&w(v)},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 p()?"":void 0},get"data-disabled"(){return n.disabled?"":void 0},get onPointerDown(){return Ve([n.onPointerDown,m.onPointerDown])},get onPointerUp(){return Ve([n.onPointerUp,m.onPointerUp])},get onClick(){return Ve([g,m.onClick])},get onKeyDown(){return Ve([b,m.onKeyDown])},get onMouseDown(){return Ve([n.onMouseDown,m.onMouseDown])},get onFocus(){return Ve([n.onFocus,m.onFocus])},onPointerMove:h,onPointerLeave:x},()=>o.dataset(),s))}function r1(e){let t=Tn(),a=`menu-${it()}`,o=ie({id:a,modal:!0},e),[r,n]=de(o,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=Jd({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:Ir(()=>r.id),value:()=>r.value,orientation:()=>r.orientation??t?.orientation()??"horizontal"};return y(mc.Provider,{value:i,get children(){return y(Rc,ee({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},n))}})}function Dn(e){let t,a=ie({orientation:"horizontal"},e),[o,r]=de(a,["ref","orientation"]),n=Pn(()=>t,()=>"hr");return y(Me,ee({as:"hr",ref(s){let i=ot(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 Fc(e){let t=Ut(),a=la(),[o,r]=de(e,["onCloseAutoFocus","onInteractOutside"]),n=!1;return y(Zx,ee({onCloseAutoFocus:l=>{o.onCloseAutoFocus?.(l),n||Ye(a.triggerRef()),n=!1,l.preventDefault()},onInteractOutside:l=>{o.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(n=!0)}},r))}function Oc(e){let t=`dropdownmenu-${it()}`,a=ie({id:t},e);return y(r1,a)}function A1(){return i1()}function $c(){return u1()}function xr(){return d1()}function ad(){return c1()}function od(){return al()}function R1(){return(()=>{var e=al();return e.style.setProperty("transform","rotate(90deg)"),e})()}function T1(){return(()=>{var e=al();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function D1(){return f1()}function E1(){return p1()}function F1(){return m1()}function O1(){return g1()}function B1(){return h1()}function $1(){return x1()}function q1(){return y1()}function N1(){return b1()}function z1(){return v1()}function U1(e){return(()=>{var t=Bc(),a=t.firstChild;return G(()=>D(a,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function H1(){return C1()}function _1(){return w1()}function V1(e){return[y(Q,{get when(){return e.checked},get children(){var t=Bc(),a=t.firstChild;return G(()=>D(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),y(Q,{get when(){return!e.checked},get children(){var t=L1(),a=t.firstChild;return G(()=>D(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function K1(){return I1()}function G1(){return S1()}function W1(){return k1()}function Q1(){return P1()}function rd(){let e=it();return(()=>{var t=M1(),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,f=c.firstChild,p=c.nextSibling,m=p.nextSibling,g=m.firstChild,h=m.nextSibling,x=h.firstChild,b=h.nextSibling,v=b.nextSibling,w=v.firstChild,I=v.nextSibling,E=I.firstChild,T=I.nextSibling,$=T.nextSibling,L=$.firstChild,S=$.nextSibling,F=S.firstChild,P=S.nextSibling,Y=P.nextSibling,ae=Y.firstChild,he=Y.nextSibling,ce=he.firstChild,xe=he.nextSibling,ye=xe.nextSibling,fe=ye.firstChild,De=ye.nextSibling,Se=De.firstChild,Oe=De.nextSibling,et=Oe.firstChild,B=et.nextSibling,Ee=B.nextSibling,pe=Ee.nextSibling,Ca=pe.nextSibling,J=Oe.nextSibling,It=J.firstChild,Qe=J.nextSibling,ro=Qe.firstChild,gt=Qe.nextSibling,wa=gt.firstChild,za=wa.nextSibling,Kt=za.nextSibling,Ft=Kt.firstChild,Gt=Ft.nextSibling,U=Gt.nextSibling,Ce=U.nextSibling,tt=Ce.nextSibling,Le=tt.nextSibling,ve=Le.nextSibling,ke=ve.nextSibling,He=ke.nextSibling,be=He.nextSibling,Wt=be.nextSibling,Qt=Wt.nextSibling,St=gt.nextSibling,Ua=St.firstChild,jt=St.nextSibling,Ha=jt.firstChild,Xt=jt.nextSibling,La=Xt.firstChild,qr=La.nextSibling,To=Xt.nextSibling,Nr=To.firstChild,no=To.nextSibling,zr=no.firstChild,Do=no.nextSibling,Eo=Do.firstChild,Fo=Eo.nextSibling,so=Fo.nextSibling,$l=so.nextSibling,ql=$l.nextSibling,Nl=ql.nextSibling,zl=Nl.nextSibling,Ul=zl.nextSibling,Hl=Ul.nextSibling,_l=Hl.nextSibling,Vl=_l.nextSibling,Kl=Vl.nextSibling,Gl=Kl.nextSibling,Wl=Gl.nextSibling,Ql=Wl.nextSibling,jl=Ql.nextSibling,Xl=jl.nextSibling,Dp=Xl.nextSibling;return D(a,"id",`a-${e}`),D(o,"fill",`url(#a-${e})`),D(n,"id",`am-${e}`),D(s,"id",`b-${e}`),D(i,"filter",`url(#am-${e})`),D(l,"mask",`url(#b-${e})`),D(d,"id",`ah-${e}`),D(c,"id",`k-${e}`),D(f,"filter",`url(#ah-${e})`),D(p,"mask",`url(#k-${e})`),D(g,"id",`ae-${e}`),D(h,"id",`j-${e}`),D(x,"filter",`url(#ae-${e})`),D(b,"mask",`url(#j-${e})`),D(w,"id",`ai-${e}`),D(I,"id",`i-${e}`),D(E,"filter",`url(#ai-${e})`),D(T,"mask",`url(#i-${e})`),D(L,"id",`aj-${e}`),D(S,"id",`h-${e}`),D(F,"filter",`url(#aj-${e})`),D(P,"mask",`url(#h-${e})`),D(ae,"id",`ag-${e}`),D(he,"id",`g-${e}`),D(ce,"filter",`url(#ag-${e})`),D(xe,"mask",`url(#g-${e})`),D(fe,"id",`af-${e}`),D(De,"id",`f-${e}`),D(Se,"filter",`url(#af-${e})`),D(Oe,"mask",`url(#f-${e})`),D(pe,"id",`m-${e}`),D(Ca,"fill",`url(#m-${e})`),D(It,"id",`ak-${e}`),D(Qe,"id",`e-${e}`),D(ro,"filter",`url(#ak-${e})`),D(gt,"mask",`url(#e-${e})`),D(wa,"id",`n-${e}`),D(za,"fill",`url(#n-${e})`),D(Ft,"id",`r-${e}`),D(Gt,"fill",`url(#r-${e})`),D(U,"id",`s-${e}`),D(Ce,"fill",`url(#s-${e})`),D(tt,"id",`q-${e}`),D(Le,"fill",`url(#q-${e})`),D(ve,"id",`p-${e}`),D(ke,"fill",`url(#p-${e})`),D(He,"id",`o-${e}`),D(be,"fill",`url(#o-${e})`),D(Wt,"id",`l-${e}`),D(Qt,"fill",`url(#l-${e})`),D(Ua,"id",`al-${e}`),D(jt,"id",`d-${e}`),D(Ha,"filter",`url(#al-${e})`),D(Xt,"mask",`url(#d-${e})`),D(La,"id",`u-${e}`),D(qr,"fill",`url(#u-${e})`),D(Nr,"id",`ad-${e}`),D(no,"id",`c-${e}`),D(zr,"filter",`url(#ad-${e})`),D(Do,"mask",`url(#c-${e})`),D(Eo,"id",`t-${e}`),D(Fo,"fill",`url(#t-${e})`),D(so,"id",`v-${e}`),D($l,"stroke",`url(#v-${e})`),D(ql,"id",`aa-${e}`),D(Nl,"stroke",`url(#aa-${e})`),D(zl,"id",`w-${e}`),D(Ul,"stroke",`url(#w-${e})`),D(Hl,"id",`ac-${e}`),D(_l,"stroke",`url(#ac-${e})`),D(Vl,"id",`ab-${e}`),D(Kl,"stroke",`url(#ab-${e})`),D(Gl,"id",`y-${e}`),D(Wl,"stroke",`url(#y-${e})`),D(Ql,"id",`x-${e}`),D(jl,"stroke",`url(#x-${e})`),D(Xl,"id",`z-${e}`),D(Dp,"stroke",`url(#z-${e})`),t})()}function ny(e,t){let a=0,o=[];for(;a<e.length;)o.push(e.slice(a,a+t)),a=a+t;return o}function id(e){return Symbol.iterator in e}function Ra(e){let t=Ke(),a=j().shadowDOMTarget?oe.bind({target:j().shadowDOMTarget}):oe,o=k(()=>t()==="dark"?So(a):Io(a)),r=j().client,[n,s]=z((e.defaultExpanded||[]).includes(e.label)),i=()=>s(m=>!m),[l,u]=z([]),d=k(()=>Array.isArray(e.value)?e.value.map((m,g)=>({label:g.toString(),value:m})):e.value!==null&&typeof e.value=="object"&&id(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"&&id(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),f=k(()=>ny(d(),100)),p=e.dataPath??[];return(()=>{var m=mr();return M(m,y(Q,{get when(){return f().length},get children(){return[(()=>{var g=ty(),h=g.firstChild,x=h.firstChild,b=x.nextSibling,v=b.nextSibling,w=v.nextSibling,I=w.firstChild;return h.$$click=()=>i(),M(h,y(sd,{get expanded(){return n()}}),x),M(b,()=>e.label),M(w,()=>String(c()).toLowerCase()==="iterable"?"(Iterable) ":"",I),M(w,()=>d().length,I),M(w,()=>d().length>1?"items":"item",null),M(g,y(Q,{get when(){return e.editable},get children(){var E=mr();return M(E,y(sy,{get value(){return e.value}}),null),M(E,y(Q,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return y(ld,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),M(E,y(Q,{get when(){return c()==="array"&&e.activeQuery!==void 0},get children(){return y(ly,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),M(E,y(Q,{get when(){return k(()=>!!e.onEdit)()&&!ys(e.value).meta},get children(){var T=ey();return T.$$click=()=>{e.onEdit?.()},M(T,y(z1,{})),G(()=>O(T,o().actionButton)),T}}),null),G(()=>O(E,o().actions)),E}}),null),G(E=>{var T=o().expanderButtonContainer,$=o().expanderButton,L=o().info;return T!==E.e&&O(g,E.e=T),$!==E.t&&O(h,E.t=$),L!==E.a&&O(w,E.a=L),E},{e:void 0,t:void 0,a:void 0}),g})(),y(Q,{get when(){return n()},get children(){return[y(Q,{get when(){return f().length===1},get children(){var g=mr();return M(g,y(gn,{get each(){return d()},by:h=>h.label,children:h=>y(Ra,{get defaultExpanded(){return e.defaultExpanded},get label(){return h().label},get value(){return h().value},get editable(){return e.editable},get dataPath(){return[...p,h().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return c()==="array"||c()==="Iterable"||c()==="object"}})})),G(()=>O(g,o().subEntry)),g}}),y(Q,{get when(){return f().length>1},get children(){var g=mr();return M(g,y(_i,{get each(){return f()},children:(h,x)=>(()=>{var b=ry(),v=b.firstChild,w=v.firstChild,I=w.firstChild,E=I.nextSibling,T=E.nextSibling,$=T.nextSibling;return $.nextSibling,w.$$click=()=>u(L=>L.includes(x)?L.filter(S=>S!==x):[...L,x]),M(w,y(sd,{get expanded(){return l().includes(x)}}),I),M(w,x*100,E),M(w,x*100+100-1,$),M(v,y(Q,{get when(){return l().includes(x)},get children(){var L=mr();return M(L,y(gn,{get each(){return h()},by:S=>S.label,children:S=>y(Ra,{get defaultExpanded(){return e.defaultExpanded},get label(){return S().label},get value(){return S().value},get editable(){return e.editable},get dataPath(){return[...p,S().label]},get activeQuery(){return e.activeQuery}})})),G(()=>O(L,o().subEntry)),L}}),null),G(L=>{var S=o().entry,F=o().expanderButton;return S!==L.e&&O(v,L.e=S),F!==L.t&&O(w,L.t=F),L},{e:void 0,t:void 0}),b})()})),G(()=>O(g,o().subEntry)),g}})]}})]}}),null),M(m,y(Q,{get when(){return f().length===0},get children(){var g=oy(),h=g.firstChild,x=h.firstChild;return M(h,()=>e.label,x),M(g,y(Q,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number"||c()==="boolean")},get fallback(){return(()=>{var b=nd();return M(b,()=>dr(e.value)),G(()=>O(b,o().value)),b})()},get children(){return[y(Q,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number")},get children(){var b=ay();return b.addEventListener("change",v=>{let w=e.activeQuery.state.data,I=Pa(w,p,c()==="number"?v.target.valueAsNumber:v.target.value);r.setQueryData(e.activeQuery.queryKey,I)}),G(v=>{var w=c()==="number"?"number":"text",I=H(o().value,o().editableInput);return w!==v.e&&D(b,"type",v.e=w),I!==v.t&&O(b,v.t=I),v},{e:void 0,t:void 0}),G(()=>b.value=e.value),b}}),y(Q,{get when(){return c()==="boolean"},get children(){var b=nd();return M(b,y(iy,{get activeQuery(){return e.activeQuery},dataPath:p,get value(){return e.value}}),null),M(b,()=>dr(e.value),null),G(()=>O(b,H(o().value,o().actions,o().editableInput))),b}})]}}),null),M(g,y(Q,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return y(ld,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),G(b=>{var v=o().row,w=o().label;return v!==b.e&&O(g,b.e=v),w!==b.t&&O(h,b.t=w),b},{e:void 0,t:void 0}),g}}),null),G(()=>O(m,o().entry)),m})()}var Dg,Eg,hu,Fg,Og,R,ks,qg,wn,Ug,xu,ht,Hg,Xa,$s,_g,Ps,Ln,Vg,cd,Kg,fd,Gg,yu,Wg,wr,pd,In,qs,Lr,md,Qg,jg,nt,wu,ah,oh,rh,nh,Lu,ja,aa,gd,sh,lh,Iu,Su,Cs,xh,Ns,fn,vd,Rh,Us,Th,fr,Ru,Ld,zh,Id,Qh,Mn,Md,r0,n0,Ts,hr,u0,ws,oa,y0,Bu,Ze,v0,C0,$d,hn,qd,Ds,na,ut,R0,T0,E0,F0,qt,ct,xn,pn,Da,O0,B0,H0,_0,V0,K0,W0,Q0,j0,Y0,ux,Xd,px,mx,gx,hx,xx,yx,bx,Xs,vx,Os,_u,Cx,kx,Zd,Ku,Gu,Yd,yt,ec,ac,Ex,Fx,Is,Ss,Wu,Qu,$x,pr,xt,mn,zx,ju,Ux,Hx,_x,Xu,Zu,Vx,Kx,Gx,Yu,Ju,Bs,Wx,Qx,cc,pc,mc,jx,Cr,ed,Xx,bc,Pc,a1,td,o1,n1,s1,Ne,l1,A,i1,u1,d1,c1,al,f1,p1,m1,g1,h1,x1,y1,b1,v1,Bc,C1,w1,L1,I1,S1,k1,P1,M1,j1,X1,Z1,Y1,J1,ey,mr,ty,ay,nd,oy,ry,sd,sy,ly,ld,iy,qc,Io,So,uy,Ar,dy,cy,fy,py,my,gy,hy,xy,yy,by,vy,Cy,wy,Ly,Iy,Sy,ky,Py,My,ud,Ay,Nc,Ry,Ty,Dy,Ey,Fy,Oy,By,$y,qy,Ny,dt,En,Ta,zc,Pt,ol,xo,dd,Uc,zy,Hc,Uy,Fn,Hy,_y,Vy,Ky,ra,Gy,Wy,vn,Qy,Ge,Cn,jy,kt,_c,Ct,wt,rl=Oo(()=>{"use strict";C();cr();Dg=!Xe,Eg=Dg&&!!Ki,hu=()=>{},Fg=e=>e!=null,Og=e=>e.filter(Fg);R=e=>typeof e=="function"&&!e.length?e():e,ks=e=>Array.isArray(e)?e:e?[e]:[];qg=Eg?e=>en()?X(e):e:X;wn=zg,Ug=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),xu=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},ht=Ug({_cookies:[globalThis.document,"cookie"],getItem:e=>ht._cookies[0][ht._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(e,t,a)=>{let o=ht.getItem(e);ht._cookies[0][ht._cookies[1]]=`${e}=${t}${xu(a)}`;let r=Object.assign(new Event("storage"),{key:e,oldValue:o,newValue:t,url:globalThis.document.URL,storageArea:ht});window.dispatchEvent(r)},removeItem:e=>{ht._cookies[0][ht._cookies[1]]=`${e}=deleted${xu({expires:new Date(0)})}`},key:e=>{let t=null,a=0;return ht._cookies[0][ht._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(o,r)=>(!t&&r&&a++===e&&(t=r),"")),t},get length(){let e=0;return ht._cookies[0][ht._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),Hg=1024,Xa=796,$s=700,_g="bottom-right",Ps="bottom",Ln="system",Vg=!1,cd=500,Kg=500,fd=500,Gg=Object.keys(un)[0],yu=1,Wg=Object.keys(dn)[0],wr=_e({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});pd=_e(void 0),In=e=>{let[t,a]=z(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="",Gi(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),a(null)}),[...(j().shadowDOMTarget||document).styleSheets].forEach(u=>{try{let d=[...u.cssRules].map(m=>m.cssText).join(""),c=document.createElement("style"),f=u.ownerNode,p="";f&&"id"in f&&(p=f.id),p&&c.setAttribute("id",p),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)}}),ur(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),a(l)};W(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&r(Number(window.innerWidth),Number(e.localStore.height||Kg))}),W(()=>{let s=(j().shadowDOMTarget||document).querySelector("#_goober"),i=t();if(s&&i){let l=new MutationObserver(()=>{let u=(j().shadowDOMTarget||i.document).querySelector("#_goober");u&&(u.textContent=s.textContent)});l.observe(s,{childList:!0,subtree:!0,characterDataOldValue:!0}),X(()=>{l.disconnect()})}});let n=k(()=>({pipWindow:t(),requestPipWindow:r,closePipWindow:o,disabled:e.disabled??!1}));return y(pd.Provider,{value:n,get children(){return e.children}})},qs=()=>k(()=>{let t=qe(pd);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),Lr=_e(()=>"dark");md={\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"},Qg=Object.keys(md).join("|"),jg=new RegExp(Qg,"g");nt={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};wu={maxRanking:1/0,minRanking:-1/0};ah={data:""},oh=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||ah,rh=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,nh=/\/\*[^]*?\*\/| +/g,Lu=/\n+/g,ja=(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"?ja(s,n):n+"{"+ja(s,n[1]=="k"?"":t)+"}":typeof s=="object"?o+=ja(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+=ja.p?ja.p(n,s):n+":"+s+";")}return a+(t&&r?t+"{"+r+"}":r)+o},aa={},gd=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+gd(e[a]);return t}return e},sh=(e,t,a,o,r)=>{let n=gd(e),s=aa[n]||(aa[n]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(n));if(!aa[s]){let l=n!==e?e:(u=>{let d,c,f=[{}];for(;d=rh.exec(u.replace(nh,""));)d[4]?f.shift():d[3]?(c=d[3].replace(Lu," ").trim(),f.unshift(f[0][c]=f[0][c]||{})):f[0][d[1]]=d[2].replace(Lu," ").trim();return f[0]})(e);aa[s]=ja(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&aa.g?aa.g:null;return a&&(aa.g=aa[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)})(aa[s],t,o,i),s},lh=(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?"":ja(i,""):i===!1?"":i}return o+r+(s??"")},"");oe.bind({g:1});oe.bind({k:1});Iu=Xe?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;Su=e=>{let t=dh(e);return ih(uh(()=>e.children).toArray,{appear:e.appear,onChange({added:a,removed:o,finishRemoved:r,list:n}){let s=t();for(let l of a)ch(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(),f=d.left-c.left,p=d.top-c.top;(f||p)&&(u.style.transform=`translate(${f}px, ${p}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)fh(s,e,l,()=>r([l]))}})},Cs=Symbol("fallback");xh=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;Ns=(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))(Ns||{});fn=null;vd=["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'])"],Rh=[...vd,'[tabindex]:not([tabindex="-1"]):not([disabled])'],Us=vd.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",Th=Rh.join(':not([hidden]):not([tabindex="-1"]),');fr=new Map,Ru=new Set;typeof document<"u"&&(document.readyState!=="loading"?Tu():document.addEventListener("DOMContentLoaded",Tu));Ld={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"};zh=["id","name","validationState","required","disabled","readOnly"];Id=_e();Qh=Object.defineProperty,Mn=(e,t)=>{for(var a in t)Qh(e,a,{get:t[a],enumerable:!0})},Md=_e();r0=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),n0=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);Ts=Ed(),hr=new Set;u0=_e();ws=new Map;oa=class Fd extends Set{anchorKey;currentKey;constructor(t,a,o){super(t),t instanceof Fd?(this.anchorKey=a||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=a,this.currentKey=o)}};y0=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 oa(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 oa(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 oa([t],t,t):new oa;this.state.setSelectedKeys(a)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new oa;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 oa)}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}},Bu=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])}};Ze=e=>typeof e=="function"?e():e,v0=e=>{let t=k(()=>{let s=Ze(e.element);if(s)return getComputedStyle(s)}),a=()=>t()?.animationName??"none",[o,r]=z(Ze(e.show)?"present":"hidden"),n="none";return W(s=>{let i=Ze(e.show);return we(()=>{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}),W(()=>{let s=Ze(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),X(()=>{s.removeEventListener("animationstart",i),s.removeEventListener("animationcancel",l),s.removeEventListener("animationend",l)})}),{present:()=>o()==="present"||o()==="hiding",state:o}},C0=v0,$d=C0,hn="data-kb-top-layer",Ds=!1,na=[];ut={layers:na,isTopMostLayer:L0,hasPointerBlockingLayer:_s,isBelowPointerBlockingLayer:zd,addLayer:S0,removeLayer:k0,indexOf:yr,find:w0,assignPointerEventToLayers:P0,disableBodyPointerEvents:M0,restoreBodyPointerEvents:A0},R0={};Mn(R0,{Button:()=>E0,Root:()=>Vs});T0=["button","color","file","image","reset","submit"];E0=Vs,F0=["top","right","bottom","left"],qt=Math.min,ct=Math.max,xn=Math.round,pn=Math.floor,Da=e=>({x:e,y:e}),O0={left:"right",right:"left",bottom:"top",top:"bottom"},B0={start:"end",end:"start"};H0=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}=$u(u,o,l),f=o,p={},m=0;for(let g=0;g<i.length;g++){let{name:h,fn:x}=i[g],{x:b,y:v,data:w,reset:I}=await x({x:d,y:c,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});d=b??d,c=v??c,p={...p,[h]:{...p[h],...w}},I&&m<=50&&(m++,typeof I=="object"&&(I.placement&&(f=I.placement),I.rects&&(u=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):I.rects),{x:d,y:c}=$u(u,f,l)),g=-1)}return{x:d,y:c,placement:f,strategy:r,middlewareData:p}};_0=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}=Ja(e,t)||{};if(u==null)return{};let c=Hd(d),f={x:a,y:o},p=Gs(r),m=Ks(p),g=await s.getDimensions(u),h=p==="y",x=h?"top":"left",b=h?"bottom":"right",v=h?"clientHeight":"clientWidth",w=n.reference[m]+n.reference[p]-f[p]-n.floating[m],I=f[p]-n.reference[p],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),T=E?E[v]:0;(!T||!await(s.isElement==null?void 0:s.isElement(E)))&&(T=i.floating[v]||n.floating[m]);let $=w/2-I/2,L=T/2-g[m]/2-1,S=qt(c[x],L),F=qt(c[b],L),P=S,Y=T-g[m]-F,ae=T/2-g[m]/2+$,he=Es(P,ae,Y),ce=!l.arrow&&wo(r)!=null&&ae!==he&&n.reference[m]/2-(ae<P?S:F)-g[m]/2<0,xe=ce?ae<P?ae-P:ae-Y:0;return{[p]:f[p]+xe,data:{[p]:he,centerOffset:ae-he-xe,...ce&&{alignmentOffset:xe}},reset:ce}}}),V0=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:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=Ja(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let x=Ea(r),b=Za(i),v=Ea(i)===i,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),I=f||(v||!g?[yn(i)]:q0(i)),E=m!=="none";!f&&E&&I.push(...z0(i,g,m,w));let T=[i,...I],$=await br(t,h),L=[],S=((o=n.flip)==null?void 0:o.overflows)||[];if(d&&L.push($[x]),c){let ae=$0(r,s,w);L.push($[ae[0]],$[ae[1]])}if(S=[...S,{placement:r,overflows:L}],!L.every(ae=>ae<=0)){var F,P;let ae=(((F=n.flip)==null?void 0:F.index)||0)+1,he=T[ae];if(he)return{data:{index:ae,overflows:S},reset:{placement:he}};let ce=(P=S.filter(xe=>xe.overflows[0]<=0).sort((xe,ye)=>xe.overflows[1]-ye.overflows[1])[0])==null?void 0:P.placement;if(!ce)switch(p){case"bestFit":{var Y;let xe=(Y=S.filter(ye=>{if(E){let fe=Za(ye.placement);return fe===b||fe==="y"}return!0}).map(ye=>[ye.placement,ye.overflows.filter(fe=>fe>0).reduce((fe,De)=>fe+De,0)]).sort((ye,fe)=>ye[1]-fe[1])[0])==null?void 0:Y[0];xe&&(ce=xe);break}case"initialPlacement":ce=i;break}if(r!==ce)return{reset:{placement:ce}}}return{}}}};K0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a}=t,{strategy:o="referenceHidden",...r}=Ja(e,t);switch(o){case"referenceHidden":{let n=await br(t,{...r,elementContext:"reference"}),s=qu(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Nu(s)}}}case"escaped":{let n=await br(t,{...r,altBoundary:!0}),s=qu(n,a.floating);return{data:{escapedOffsets:s,escaped:Nu(s)}}}default:return{}}}}};W0=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 G0(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}}}}},Q0=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:b}=h;return{x,y:b}}},...l}=Ja(e,t),u={x:a,y:o},d=await br(t,l),c=Za(Ea(r)),f=Ud(c),p=u[f],m=u[c];if(n){let h=f==="y"?"top":"left",x=f==="y"?"bottom":"right",b=p+d[h],v=p-d[x];p=Es(b,p,v)}if(s){let h=c==="y"?"top":"left",x=c==="y"?"bottom":"right",b=m+d[h],v=m-d[x];m=Es(b,m,v)}let g=i.fn({...t,[f]:p,[c]:m});return{...g,data:{x:g.x-a,y:g.y-o}}}}},j0=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}=Ja(e,t),l=await br(t,i),u=Ea(a),d=wo(a),c=Za(a)==="y",{width:f,height:p}=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=p-l.top-l.bottom,x=f-l.left-l.right,b=qt(p-l[m],h),v=qt(f-l[g],x),w=!t.middlewareData.shift,I=b,E=v;if(c?E=d||w?qt(v,x):x:I=d||w?qt(b,h):h,w&&!d){let $=ct(l.left,0),L=ct(l.right,0),S=ct(l.top,0),F=ct(l.bottom,0);c?E=f-2*($!==0||L!==0?$+L:ct(l.left,l.right)):I=p-2*(S!==0||F!==0?S+F:ct(l.top,l.bottom))}await s({...t,availableWidth:E,availableHeight:I});let T=await r.getDimensions(n.floating);return f!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};Y0=Da(0);ux=async function(e){let t=this.getOffsetParent||jd,a=this.getDimensions,o=await a(e.floating);return{reference:ix(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};Xd={convertOffsetParentRelativeRectToViewportRelativeRect:ex,getDocumentElement:sa,getClippingRect:sx,getOffsetParent:jd,getElementRects:ux,getClientRects:tx,getDimensions:lx,getScale:vo,isElement:Mt,isRTL:dx};px=W0,mx=Q0,gx=V0,hx=j0,xx=K0,yx=_0,bx=(e,t,a)=>{let o=new Map,r={platform:Xd,...a},n={...r.platform,_c:o};return H0(e,t,{...r,platform:n})},Xs=_e();vx=V('<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">'),Os=30,_u=Os/2,Cx={top:180,right:-90,bottom:0,left:90};kx={top:"bottom",right:"left",bottom:"top",left:"right"};Zd=Object.assign(Mx,{Arrow:Ys,Context:Xs,usePopperContext:Zs,Positioner:Lx});Ku="interactOutside.pointerDownOutside",Gu="interactOutside.focusOutside";Yd=_e();yt={};Mn(yt,{Description:()=>Sd,ErrorMessage:()=>kd,Item:()=>oc,ItemControl:()=>rc,ItemDescription:()=>nc,ItemIndicator:()=>sc,ItemInput:()=>lc,ItemLabel:()=>ic,Label:()=>uc,RadioGroup:()=>Ex,Root:()=>dc});ec=_e();ac=_e();Ex=Object.assign(dc,{Description:Sd,ErrorMessage:kd,Item:oc,ItemControl:rc,ItemDescription:nc,ItemIndicator:sc,ItemInput:lc,ItemLabel:ic,Label:uc}),Fx=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)}}};Is="focusScope.autoFocusOnMount",Ss="focusScope.autoFocusOnUnmount",Wu={bubbles:!1,cancelable:!0},Qu={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=As(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=As(this.stack,e),this.active()?.resume()}};$x="data-live-announcer";pr=new WeakMap,xt=[];mn=new Map,zx=e=>{W(()=>{let t=Ze(e.style)??{},a=Ze(e.properties)??[],o={};for(let n in t)o[n]=e.element.style[n];let r=mn.get(e.key);r?r.activeCount++:mn.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);X(()=>{let n=mn.get(e.key);if(n){if(n.activeCount!==1){n.activeCount--;return}mn.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?.()}})})},ju=zx,Ux=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},Hx=(e,t)=>{let a=getComputedStyle(e),o=t==="x"?a.overflowX:a.overflowY;return o==="auto"||o==="scroll"||e.tagName==="HTML"&&o==="visible"},_x=(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]=Ux(r,t),c=d-l-o*u;(u!==0||c!==0)&&Hx(r,t)&&(n+=c,s+=u),r===(a??document.documentElement)?i=!0:r=r._$host??r.parentElement}while(r&&!i);return[n,s]},[Xu,Zu]=z([]),Vx=e=>Xu().indexOf(e)===Xu().length-1,Kx=e=>{let t=ee({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),a=it(),o=[0,0],r=null,n=null;W(()=>{Ze(t.enabled)&&(Zu(u=>[...u,a]),X(()=>{Zu(u=>u.filter(d=>d!==a))}))}),W(()=>{if(!Ze(t.enabled)||!Ze(t.hideScrollbar))return;let{body:u}=document,d=window.innerWidth-u.offsetWidth;if(Ze(t.preventScrollbarShift)){let c={overflow:"hidden"},f=[];d>0&&(Ze(t.preventScrollbarShiftMode)==="padding"?c.paddingRight=`calc(${window.getComputedStyle(u).paddingRight} + ${d}px)`:c.marginRight=`calc(${window.getComputedStyle(u).marginRight} + ${d}px)`,f.push({key:"--scrollbar-width",value:`${d}px`}));let p=window.scrollY,m=window.scrollX;ju({key:"prevent-scroll",element:u,style:c,properties:f,cleanup:()=>{Ze(t.restoreScrollPosition)&&d>0&&window.scrollTo(m,p)}})}else ju({key:"prevent-scroll",element:u,style:{overflow:"hidden"}})}),W(()=>{!Vx(a)||!Ze(t.enabled)||(document.addEventListener("wheel",i,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),X(()=>{document.removeEventListener("wheel",i),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",l)}))});let s=u=>{o=Yu(u),r=null,n=null},i=u=>{let d=u.target,c=Ze(t.element),f=Gx(u),p=Math.abs(f[0])>Math.abs(f[1])?"x":"y",m=p==="x"?f[0]:f[1],g=Ju(d,p,m,c),h;c&&Bs(c,d)?h=!g:h=!0,h&&u.cancelable&&u.preventDefault()},l=u=>{let d=Ze(t.element),c=u.target,f;if(u.touches.length===2)f=!Ze(t.allowPinchZoom);else{if(r==null||n===null){let p=Yu(u).map((g,h)=>o[h]-g),m=Math.abs(p[0])>Math.abs(p[1])?"x":"y";r=m,n=m==="x"?p[0]:p[1]}if(c.type==="range")f=!1;else{let p=Ju(c,r,n,d);d&&Bs(d,c)?f=!p:f=!0}}f&&u.cancelable&&u.preventDefault()}},Gx=e=>[e.deltaX,e.deltaY],Yu=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],Ju=(e,t,a,o)=>{let r=o!==null&&Bs(o,e),[n,s]=_x(e,t,r?o:void 0);return!(a>0&&Math.abs(n)<=1||a<0&&Math.abs(s)<1)},Bs=(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},Wx=Kx,Qx=Wx,cc=_e();pc=_e();mc=_e();jx=_e();Cr={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Cr.next(e==="ltr"?"rtl":"ltr",t)},ed={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};Xx=_e();bc=_e();Pc=_e();a1={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};td=["Enter"," "],o1={open:(e,t)=>e==="ltr"?[...td,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...td,t==="horizontal"?"ArrowLeft":"ArrowUp"]};n1={};Mn(n1,{Root:()=>Dn,Separator:()=>s1});s1=Dn,Ne={};Mn(Ne,{Arrow:()=>Ys,CheckboxItem:()=>gc,Content:()=>Fc,DropdownMenu:()=>l1,Group:()=>tl,GroupLabel:()=>vc,Icon:()=>Cc,Item:()=>wc,ItemDescription:()=>Lc,ItemIndicator:()=>Ic,ItemLabel:()=>Sc,Portal:()=>kc,RadioGroup:()=>Mc,RadioItem:()=>Ac,Root:()=>Oc,Separator:()=>Dn,Sub:()=>Tc,SubContent:()=>Dc,SubTrigger:()=>Ec,Trigger:()=>hc});l1=Object.assign(Oc,{Arrow:Ys,CheckboxItem:gc,Content:Fc,Group:tl,GroupLabel:vc,Icon:Cc,Item:wc,ItemDescription:Lc,ItemIndicator:Ic,ItemLabel:Sc,Portal:kc,RadioGroup:Mc,RadioItem:Ac,Separator:Dn,Sub:Tc,SubContent:Dc,SubTrigger:Ec,Trigger:hc}),A={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}},i1=V('<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>'),u1=V('<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>'),d1=V('<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>'),c1=V('<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>'),al=V('<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>'),f1=V('<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>'),p1=V('<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>'),m1=V('<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>'),g1=V('<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">'),h1=V('<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">'),x1=V('<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>'),y1=V('<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>'),b1=V('<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>'),v1=V('<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>'),Bc=V('<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>'),C1=V('<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>'),w1=V('<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>'),L1=V('<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>'),I1=V('<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>'),S1=V('<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>'),k1=V('<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>'),P1=V('<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>'),M1=V('<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>');j1=V('<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>'),X1=V('<button title="Copy object to clipboard">'),Z1=V('<button title="Remove all items"aria-label="Remove all items">'),Y1=V('<button title="Delete item"aria-label="Delete item">'),J1=V('<button title="Toggle value"aria-label="Toggle value">'),ey=V('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),mr=V("<div>"),ty=V("<div><button> <span></span> <span> "),ay=V("<input>"),nd=V("<span>"),oy=V("<div><span>:"),ry=V("<div><div><button> [<!>...<!>]");sd=e=>{let t=Ke(),a=j().shadowDOMTarget?oe.bind({target:j().shadowDOMTarget}):oe,o=k(()=>t()==="dark"?So(a):Io(a));return(()=>{var r=j1();return G(()=>O(r,H(o().expander,a`
|
|
2
|
-
transform: rotate(${
|
|
3
|
-
`,
|
|
1
|
+
"use strict";var Fp=Object.create;var Vr=Object.defineProperty;var Op=Object.getOwnPropertyDescriptor;var Bp=Object.getOwnPropertyNames;var $p=Object.getPrototypeOf,qp=Object.prototype.hasOwnProperty;var Bo=(t,a)=>()=>(t&&(a=t(t=0)),a);var Kr=(t,a)=>{for(var o in a)Vr(t,o,{get:a[o],enumerable:!0})},_r=(t,a,o,r)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of Bp(a))!qp.call(t,n)&&n!==o&&Vr(t,n,{get:()=>a[n],enumerable:!(r=Op(a,n))||r.enumerable});return t},Yt=(t,a,o)=>(_r(t,a,"default"),o&&_r(o,a,"default")),Te=(t,a,o)=>(o=t!=null?Fp($p(t)):{},_r(a||!t||!t.__esModule?Vr(o,"default",{value:t,enumerable:!0}):o,t)),Np=t=>_r(Vr({},"__esModule",{value:!0}),t);var w=Bo(()=>{});function xi(t){let a=String(t),o=a.length-1;return J.context.id+(o?String.fromCharCode(96+o):"")+a}function Ka(t){J.context=t}function vm(){return{...J.context,id:J.getNextContextId(),count:0}}function $t(t,a){let o=xe,r=ne,n=t.length===0,s=a===void 0?r:a,l=n?Di:{owned:null,cleanups:null,context:s?s.context:null,owner:s},u=n?t:()=>t(()=>Le(()=>Ma(l)));ne=l,xe=null;try{return nt(u,!0)}finally{xe=o,ne=r}}function U(t,a){a=a?Object.assign({},en,a):en;let o={value:t,observers:null,observerSlots:null,comparator:a.equals||void 0},r=n=>(typeof n=="function"&&(N&&N.running&&N.sources.has(o)?n=n(o.tValue):n=n(o.value)),qi(o,n));return[$i.bind(o),r]}function tn(t,a,o){let r=sn(t,a,!0,it);ho&&N&&N.running?qe.push(r):xo(r)}function W(t,a,o){let r=sn(t,a,!1,it);ho&&N&&N.running?qe.push(r):xo(r)}function Q(t,a,o){Ti=Mm;let r=sn(t,a,!1,it),n=or&&Ne(or);n&&(r.suspense=n),(!o||!o.render)&&(r.user=!0),Xe?Xe.push(r):xo(r)}function P(t,a,o){o=o?Object.assign({},en,o):en;let r=sn(t,a,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=o.equals||void 0,ho&&N&&N.running?(r.tState=it,qe.push(r)):xo(r),$i.bind(r)}function wm(t){return t&&typeof t=="object"&&"then"in t}function Lm(t,a,o){let r,n,s;r=!0,n=t,s={};let l=null,u=as,i=null,d=!1,c=!1,f="initialValue"in s,p=typeof r=="function"&&P(r),m=new Set,[g,h]=(s.storage||U)(s.initialValue),[x,y]=U(void 0),[v,C]=U(void 0,{equals:!1}),[L,I]=U(f?"ready":"unresolved");J.context&&(i=J.getNextContextId(),s.ssrLoadFrom==="initial"?u=s.initialValue:J.load&&J.has(i)&&(u=J.load(i)));function O(M,T,k,Y){return l===M&&(l=null,Y!==void 0&&(f=!0),(M===u||T===u)&&s.onHydrated&&queueMicrotask(()=>s.onHydrated(Y,{value:T})),u=as,N&&M&&d?(N.promises.delete(M),d=!1,nt(()=>{N.running=!0,E(T,k)},!1)):E(T,k)),T}function E(M,T){nt(()=>{T===void 0&&h(()=>M),I(T!==void 0?"errored":f?"ready":"unresolved"),y(T);for(let k of m.keys())k.decrement();m.clear()},!1)}function q(){let M=or&&Ne(or),T=g(),k=x();if(k!==void 0&&!l)throw k;return xe&&!xe.user&&M&&tn(()=>{v(),l&&(M.resolved&&N&&d?N.promises.add(l):m.has(M)||(M.increment(),m.add(M)))}),T}function S(M=!0){if(M!==!1&&c)return;c=!1;let T=p?p():r;if(d=N&&N.running,T==null||T===!1){O(l,Le(g));return}N&&l&&N.promises.delete(l);let k=u!==as?u:Le(()=>n(T,{value:g(),refetching:M}));return wm(k)?(l=k,"value"in k?(k.status==="success"?O(l,k.value,void 0,T):O(l,void 0,ns(k.value),T),k):(c=!0,queueMicrotask(()=>c=!1),nt(()=>{I(f?"refreshing":"pending"),C()},!1),k.then(Y=>O(k,Y,void 0,T),Y=>O(k,void 0,ns(Y),T)))):(O(l,k,void 0,T),k)}return Object.defineProperties(q,{state:{get:()=>L()},error:{get:()=>x()},loading:{get(){let M=L();return M==="pending"||M==="refreshing"}},latest:{get(){if(!f)return q();let M=x();if(M&&!l)throw M;return g()}}}),p?tn(()=>S(!1)):S(!1),[q,{refetch:S,mutate:h}]}function Ei(t){return nt(t,!1)}function Le(t){if(!mo&&xe===null)return t();let a=xe;xe=null;try{return mo?mo.untrack(t):t()}finally{xe=a}}function qt(t,a,o){let r=Array.isArray(t),n,s=o&&o.defer;return l=>{let u;if(r){u=Array(t.length);for(let d=0;d<t.length;d++)u[d]=t[d]()}else u=t();if(s)return s=!1,l;let i=Le(()=>a(u,n,l));return n=u,i}}function aa(t){Q(()=>Le(t))}function Z(t){return ne===null||(ne.cleanups===null?ne.cleanups=[t]:ne.cleanups.push(t)),t}function an(){return ne}function Im(t,a){let o=ne,r=xe;ne=t,xe=null;try{return nt(a,!0)}catch(n){ln(n)}finally{ne=o,xe=r}}function Fi(t){if(N&&N.running)return t(),N.done;let a=xe,o=ne;return Promise.resolve().then(()=>{xe=a,ne=o;let r;return(ho||or)&&(r=N||(N={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),r.done||(r.done=new Promise(n=>r.resolve=n)),r.running=!0),nt(t,!1),xe=ne=null,r?r.done:void 0})}function Oi(){return[Sm,Fi]}function Ve(t,a){let o=Symbol("context");return{id:o,Provider:Am(o),defaultValue:t}}function Ne(t){let a;return ne&&ne.context&&(a=ne.context[t.id])!==void 0?a:t.defaultValue}function Bi(t){let a=P(t),o=P(()=>ss(a()));return o.toArray=()=>{let r=o();return Array.isArray(r)?r:r!=null?[r]:[]},o}function $i(){let t=N&&N.running;if(this.sources&&(t?this.tState:this.state))if((t?this.tState:this.state)===it)xo(this);else{let a=qe;qe=null,nt(()=>on(this),!1),qe=a}if(xe){let a=this.observers?this.observers.length:0;xe.sources?(xe.sources.push(this),xe.sourceSlots.push(a)):(xe.sources=[this],xe.sourceSlots=[a]),this.observers?(this.observers.push(xe),this.observerSlots.push(xe.sources.length-1)):(this.observers=[xe],this.observerSlots=[xe.sources.length-1])}return t&&N.sources.has(this)?this.tValue:this.value}function qi(t,a,o){let r=N&&N.running&&N.sources.has(t)?t.tValue:t.value;if(!t.comparator||!t.comparator(r,a)){if(N){let n=N.running;(n||!o&&N.sources.has(t))&&(N.sources.add(t),t.tValue=a),n||(t.value=a)}else t.value=a;t.observers&&t.observers.length&&nt(()=>{for(let n=0;n<t.observers.length;n+=1){let s=t.observers[n],l=N&&N.running;l&&N.disposed.has(s)||((l?!s.tState:!s.state)&&(s.pure?qe.push(s):Xe.push(s),s.observers&&zi(s)),l?s.tState=it:s.state=it)}if(qe.length>1e6)throw qe=[],new Error},!1)}return a}function xo(t){if(!t.fn)return;Ma(t);let a=nn;vi(t,N&&N.running&&N.sources.has(t)?t.tValue:t.value,a),N&&!N.running&&N.sources.has(t)&&queueMicrotask(()=>{nt(()=>{N&&(N.running=!0),xe=ne=t,vi(t,t.tValue,a),xe=ne=null},!1)})}function vi(t,a,o){let r,n=ne,s=xe;xe=ne=t;try{r=t.fn(a)}catch(l){return t.pure&&(N&&N.running?(t.tState=it,t.tOwned&&t.tOwned.forEach(Ma),t.tOwned=void 0):(t.state=it,t.owned&&t.owned.forEach(Ma),t.owned=null)),t.updatedAt=o+1,ln(l)}finally{xe=s,ne=n}(!t.updatedAt||t.updatedAt<=o)&&(t.updatedAt!=null&&"observers"in t?qi(t,r,!0):N&&N.running&&t.pure?(N.sources.add(t),t.tValue=r):t.value=r,t.updatedAt=o)}function sn(t,a,o,r=it,n){let s={fn:t,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:a,owner:ne,context:ne?ne.context:null,pure:o};if(N&&N.running&&(s.state=0,s.tState=r),ne===null||ne!==Di&&(N&&N.running&&ne.pure?ne.tOwned?ne.tOwned.push(s):ne.tOwned=[s]:ne.owned?ne.owned.push(s):ne.owned=[s]),mo&&s.fn){let[l,u]=U(void 0,{equals:!1}),i=mo.factory(s.fn,u);Z(()=>i.dispose());let d=()=>Fi(u).then(()=>c.dispose()),c=mo.factory(s.fn,d);s.fn=f=>(l(),N&&N.running?c.track(f):i.track(f))}return s}function rr(t){let a=N&&N.running;if((a?t.tState:t.state)===0)return;if((a?t.tState:t.state)===ar)return on(t);if(t.suspense&&Le(t.suspense.inFallback))return t.suspense.effects.push(t);let o=[t];for(;(t=t.owner)&&(!t.updatedAt||t.updatedAt<nn);){if(a&&N.disposed.has(t))return;(a?t.tState:t.state)&&o.push(t)}for(let r=o.length-1;r>=0;r--){if(t=o[r],a){let n=t,s=o[r+1];for(;(n=n.owner)&&n!==s;)if(N.disposed.has(n))return}if((a?t.tState:t.state)===it)xo(t);else if((a?t.tState:t.state)===ar){let n=qe;qe=null,nt(()=>on(t,o[0]),!1),qe=n}}}function nt(t,a){if(qe)return t();let o=!1;a||(qe=[]),Xe?o=!0:Xe=[],nn++;try{let r=t();return km(o),r}catch(r){o||(Xe=null),qe=null,ln(r)}}function km(t){if(qe&&(ho&&N&&N.running?Pm(qe):Ni(qe),qe=null),t)return;let a;if(N){if(!N.promises.size&&!N.queue.size){let r=N.sources,n=N.disposed;Xe.push.apply(Xe,N.effects),a=N.resolve;for(let s of Xe)"tState"in s&&(s.state=s.tState),delete s.tState;N=null,nt(()=>{for(let s of n)Ma(s);for(let s of r){if(s.value=s.tValue,s.owned)for(let l=0,u=s.owned.length;l<u;l++)Ma(s.owned[l]);s.tOwned&&(s.owned=s.tOwned),delete s.tValue,delete s.tOwned,s.tState=0}bi(!1)},!1)}else if(N.running){N.running=!1,N.effects.push.apply(N.effects,Xe),Xe=null,bi(!0);return}}let o=Xe;Xe=null,o.length&&nt(()=>Ti(o),!1),a&&a()}function Ni(t){for(let a=0;a<t.length;a++)rr(t[a])}function Pm(t){for(let a=0;a<t.length;a++){let o=t[a],r=N.queue;r.has(o)||(r.add(o),ho(()=>{r.delete(o),nt(()=>{N.running=!0,rr(o)},!1),N&&(N.running=!1)}))}}function Mm(t){let a,o=0;for(a=0;a<t.length;a++){let r=t[a];r.user?t[o++]=r:rr(r)}if(J.context){if(J.count){J.effects||(J.effects=[]),J.effects.push(...t.slice(0,o));return}Ka()}for(J.effects&&(J.done||!J.count)&&(t=[...J.effects,...t],o+=J.effects.length,delete J.effects),a=0;a<o;a++)rr(t[a])}function on(t,a){let o=N&&N.running;o?t.tState=0:t.state=0;for(let r=0;r<t.sources.length;r+=1){let n=t.sources[r];if(n.sources){let s=o?n.tState:n.state;s===it?n!==a&&(!n.updatedAt||n.updatedAt<nn)&&rr(n):s===ar&&on(n,a)}}}function zi(t){let a=N&&N.running;for(let o=0;o<t.observers.length;o+=1){let r=t.observers[o];(a?!r.tState:!r.state)&&(a?r.tState=ar:r.state=ar,r.pure?qe.push(r):Xe.push(r),r.observers&&zi(r))}}function Ma(t){let a;if(t.sources)for(;t.sources.length;){let o=t.sources.pop(),r=t.sourceSlots.pop(),n=o.observers;if(n&&n.length){let s=n.pop(),l=o.observerSlots.pop();r<n.length&&(s.sourceSlots[l]=r,n[r]=s,o.observerSlots[r]=l)}}if(t.tOwned){for(a=t.tOwned.length-1;a>=0;a--)Ma(t.tOwned[a]);delete t.tOwned}if(N&&N.running&&t.pure)Ui(t,!0);else if(t.owned){for(a=t.owned.length-1;a>=0;a--)Ma(t.owned[a]);t.owned=null}if(t.cleanups){for(a=t.cleanups.length-1;a>=0;a--)t.cleanups[a]();t.cleanups=null}N&&N.running?t.tState=0:t.state=0}function Ui(t,a){if(a||(t.tState=0,N.disposed.add(t)),t.owned)for(let o=0;o<t.owned.length;o++)Ui(t.owned[o])}function ns(t){return t instanceof Error?t:new Error(typeof t=="string"?t:"Unknown error",{cause:t})}function Ci(t,a,o){try{for(let r of a)r(t)}catch(r){ln(r,o&&o.owner||null)}}function ln(t,a=ne){let o=yi&&a&&a.context&&a.context[yi],r=ns(t);if(!o)throw r;Xe?Xe.push({fn(){Ci(r,o,a)},state:it}):Ci(r,o,a)}function ss(t){if(typeof t=="function"&&!t.length)return ss(t());if(Array.isArray(t)){let a=[];for(let o=0;o<t.length;o++){let r=ss(t[o]);Array.isArray(r)?a.push.apply(a,r):a.push(r)}return a}return t}function Am(t,a){return function(r){let n;return W(()=>n=Le(()=>(ne.context={...ne.context,[t]:r.value},Bi(()=>r.children))),void 0),n}}function rn(t){for(let a=0;a<t.length;a++)t[a]()}function Rm(t,a,o={}){let r=[],n=[],s=[],l=0,u=a.length>1?[]:null;return Z(()=>rn(s)),()=>{let i=t()||[],d=i.length,c,f;return i[ur],Le(()=>{let m,g,h,x,y,v,C,L,I;if(d===0)l!==0&&(rn(s),s=[],r=[],n=[],l=0,u&&(u=[])),o.fallback&&(r=[ls],n[0]=$t(O=>(s[0]=O,o.fallback())),l=1);else if(l===0){for(n=new Array(d),f=0;f<d;f++)r[f]=i[f],n[f]=$t(p);l=d}else{for(h=new Array(d),x=new Array(d),u&&(y=new Array(d)),v=0,C=Math.min(l,d);v<C&&r[v]===i[v];v++);for(C=l-1,L=d-1;C>=v&&L>=v&&r[C]===i[L];C--,L--)h[L]=n[C],x[L]=s[C],u&&(y[L]=u[C]);for(m=new Map,g=new Array(L+1),f=L;f>=v;f--)I=i[f],c=m.get(I),g[f]=c===void 0?-1:c,m.set(I,f);for(c=v;c<=C;c++)I=r[c],f=m.get(I),f!==void 0&&f!==-1?(h[f]=n[c],x[f]=s[c],u&&(y[f]=u[c]),f=g[f],m.set(I,f)):s[c]();for(f=v;f<d;f++)f in h?(n[f]=h[f],s[f]=x[f],u&&(u[f]=y[f],u[f](f))):n[f]=$t(p);n=n.slice(0,l=d),r=i.slice(0)}return n});function p(m){if(s[f]=m,u){let[g,h]=U(f);return u[f]=h,a(i[f],g)}return a(i[f])}}}function Tm(t,a,o={}){let r=[],n=[],s=[],l=[],u=0,i;return Z(()=>rn(s)),()=>{let d=t()||[],c=d.length;return d[ur],Le(()=>{if(c===0)return u!==0&&(rn(s),s=[],r=[],n=[],u=0,l=[]),o.fallback&&(r=[ls],n[0]=$t(p=>(s[0]=p,o.fallback())),u=1),n;for(r[0]===ls&&(s[0](),s=[],r=[],n=[],u=0),i=0;i<c;i++)i<r.length&&r[i]!==d[i]?l[i](()=>d[i]):i>=r.length&&(n[i]=$t(f));for(;i<r.length;i++)s[i]();return u=l.length=s.length=c,r=d.slice(0),n=n.slice(0,u)});function f(p){s[i]=p;let[m,g]=U(d[i]);return l[i]=g,a(m,i)}}}function b(t,a){if(Dm&&J.context){let o=J.context;Ka(vm());let r=Le(()=>t(a||{}));return Ka(o),r}return Le(()=>t(a||{}))}function jr(){return!0}function os(t){return(t=typeof t=="function"?t():t)?t:{}}function Em(){for(let t=0,a=this.length;t<a;++t){let o=this[t]();if(o!==void 0)return o}}function te(...t){let a=!1;for(let l=0;l<t.length;l++){let u=t[l];a=a||!!u&&Jr in u,t[l]=typeof u=="function"?(a=!0,P(u)):u}if(Ri&&a)return new Proxy({get(l){for(let u=t.length-1;u>=0;u--){let i=os(t[u])[l];if(i!==void 0)return i}},has(l){for(let u=t.length-1;u>=0;u--)if(l in os(t[u]))return!0;return!1},keys(){let l=[];for(let u=0;u<t.length;u++)l.push(...Object.keys(os(t[u])));return[...new Set(l)]}},is);let o={},r=Object.create(null);for(let l=t.length-1;l>=0;l--){let u=t[l];if(!u)continue;let i=Object.getOwnPropertyNames(u);for(let d=i.length-1;d>=0;d--){let c=i[d];if(c==="__proto__"||c==="constructor")continue;let f=Object.getOwnPropertyDescriptor(u,c);if(!r[c])r[c]=f.get?{enumerable:!0,configurable:!0,get:Em.bind(o[c]=[f.get.bind(u)])}:f.value!==void 0?f:void 0;else{let p=o[c];p&&(f.get?p.push(f.get.bind(u)):f.value!==void 0&&p.push(()=>f.value))}}}let n={},s=Object.keys(r);for(let l=s.length-1;l>=0;l--){let u=s[l],i=r[u];i&&i.get?Object.defineProperty(n,u,i):n[u]=i?i.value:void 0}return n}function pe(t,...a){if(Ri&&Jr in t){let n=new Set(a.length>1?a.flat():a[0]),s=a.map(l=>new Proxy({get(u){return l.includes(u)?t[u]:void 0},has(u){return l.includes(u)&&u in t},keys(){return l.filter(u=>u in t)}},is));return s.push(new Proxy({get(l){return n.has(l)?void 0:t[l]},has(l){return n.has(l)?!1:l in t},keys(){return Object.keys(t).filter(l=>!n.has(l))}},is)),s}let o={},r=a.map(()=>({}));for(let n of Object.getOwnPropertyNames(t)){let s=Object.getOwnPropertyDescriptor(t,n),l=!s.get&&!s.set&&s.enumerable&&s.writable&&s.configurable,u=!1,i=0;for(let d of a)d.includes(n)&&(u=!0,l?r[i][n]=s.value:Object.defineProperty(r[i],n,s)),++i;u||(l?o[n]=s.value:Object.defineProperty(o,n,s))}return[...r,o]}function ms(t){let a,o,r=n=>{let s=J.context;if(s){let[u,i]=U();J.count||(J.count=0),J.count++,(o||(o=t())).then(d=>{!J.done&&Ka(s),J.count--,i(()=>d.default),Ka()}),a=u}else if(!a){let[u]=Lm(()=>(o||(o=t())).then(i=>i.default));a=u}let l;return P(()=>(l=a())?Le(()=>{if(!s||J.done)return l(n);let u=J.context;Ka(s);let i=l(n);return Ka(u),i}):"")};return r.preload=()=>o||((o=t()).then(n=>a=()=>n.default),o),r}function ut(){return J.context?J.getNextContextId():`cl-${Fm++}`}function _i(t){let a="fallback"in t&&{fallback:()=>t.fallback};return P(Rm(()=>t.each,t.children,a||void 0))}function Vi(t){let a="fallback"in t&&{fallback:()=>t.fallback};return P(Tm(()=>t.each,t.children,a||void 0))}function j(t){let a=t.keyed,o=P(()=>t.when,void 0,void 0),r=a?o:P(o,void 0,{equals:(n,s)=>!n==!s});return P(()=>{let n=r();if(n){let s=t.children;return typeof s=="function"&&s.length>0?Le(()=>s(a?n:()=>{if(!Le(r))throw Hi("Show");return o()})):s}return t.fallback},void 0,void 0)}function Ki(t){let a=Bi(()=>t.children),o=P(()=>{let r=a(),n=Array.isArray(r)?r:[r],s=()=>{};for(let l=0;l<n.length;l++){let u=l,i=n[l],d=s,c=P(()=>d()?void 0:i.when,void 0,void 0),f=i.keyed?c:P(c,void 0,{equals:(p,m)=>!p==!m});s=()=>d()||(f()?[u,c,i]:void 0)}return s});return P(()=>{let r=o()();if(!r)return t.fallback;let[n,s,l]=r,u=l.children;return typeof u=="function"&&u.length>0?Le(()=>u(l.keyed?s():()=>{if(Le(o)()?.[0]!==n)throw Hi("Match");return s()})):u},void 0,void 0)}function un(t){return t}function zm(t,a){let o=Nm[t];return typeof o=="object"?o[a]?o.$:void 0:o}function Vm(t,a,o){let r=o.length,n=a.length,s=r,l=0,u=0,i=a[n-1].nextSibling,d=null;for(;l<n||u<s;){if(a[l]===o[u]){l++,u++;continue}for(;a[n-1]===o[s-1];)n--,s--;if(n===l){let c=s<r?u?o[u-1].nextSibling:o[s-u]:i;for(;u<s;)t.insertBefore(o[u++],c)}else if(s===u)for(;l<n;)(!d||!d.has(a[l]))&&a[l].remove(),l++;else if(a[l]===o[s-1]&&o[u]===a[n-1]){let c=a[--n].nextSibling;t.insertBefore(o[u++],a[l++].nextSibling),t.insertBefore(o[--s],c),a[n]=o[s]}else{if(!d){d=new Map;let f=u;for(;f<s;)d.set(o[f],f++)}let c=d.get(a[l]);if(c!=null)if(u<c&&c<s){let f=l,p=1,m;for(;++f<n&&f<s&&!((m=d.get(a[f]))==null||m!==c+p);)p++;if(p>c-u){let g=a[l];for(;u<c;)t.insertBefore(o[u++],g)}else t.replaceChild(o[u++],a[l++])}else l++;else a[l++].remove()}}}function gs(t,a,o,r={}){let n;return $t(s=>{n=s,a===document?t():A(a,t(),a.firstChild?null:void 0,o)},r.owner),()=>{n(),a.textContent=""}}function K(t,a,o,r){let n,s=()=>{let u=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return u.innerHTML=t,o?u.content.firstChild.firstChild:r?u.firstChild:u.content.firstChild},l=a?()=>Le(()=>document.importNode(n||(n=s()),!0)):()=>(n||(n=s())).cloneNode(!0);return l.cloneNode=l,l}function dr(t,a=window.document){let o=a[er]||(a[er]=new Set);for(let r=0,n=t.length;r<n;r++){let s=t[r];o.has(s)||(o.add(s),a.addEventListener(s,Qi))}}function Wi(t=window.document){if(t[er]){for(let a of t[er].keys())t.removeEventListener(a,Qi);delete t[er]}}function F(t,a,o){Wa(t)||(o==null?t.removeAttribute(a):t.setAttribute(a,o))}function Km(t,a,o,r){Wa(t)||(r==null?t.removeAttributeNS(a,o):t.setAttributeNS(a,o,r))}function Gm(t,a,o){Wa(t)||(o?t.setAttribute(a,""):t.removeAttribute(a))}function B(t,a){Wa(t)||(a==null?t.removeAttribute("class"):t.className=a)}function hs(t,a,o,r){if(r)Array.isArray(o)?(t[`$$${a}`]=o[0],t[`$$${a}Data`]=o[1]):t[`$$${a}`]=o;else if(Array.isArray(o)){let n=o[0];t.addEventListener(a,o[0]=s=>n.call(t,o[1],s))}else t.addEventListener(a,o,typeof o!="function"&&o)}function Wm(t,a,o={}){let r=Object.keys(a||{}),n=Object.keys(o),s,l;for(s=0,l=n.length;s<l;s++){let u=n[s];!u||u==="undefined"||a[u]||(wi(t,u,!1),delete o[u])}for(s=0,l=r.length;s<l;s++){let u=r[s],i=!!a[u];!u||u==="undefined"||o[u]===i||!i||(wi(t,u,!0),o[u]=i)}return o}function Qm(t,a,o){if(!a)return o?F(t,"style"):a;let r=t.style;if(typeof a=="string")return r.cssText=a;typeof o=="string"&&(r.cssText=o=void 0),o||(o={}),a||(a={});let n,s;for(s in o)a[s]==null&&r.removeProperty(s),delete o[s];for(s in a)n=a[s],n!==o[s]&&(r.setProperty(s,n),o[s]=n);return o}function xs(t,a={},o,r){let n={};return r||W(()=>n.children=nr(t,a.children,n.children)),W(()=>typeof a.ref=="function"&&Ga(a.ref,t)),W(()=>jm(t,a,o,!0,n,!0)),n}function Ga(t,a,o){return Le(()=>t(a,o))}function A(t,a,o,r){if(o!==void 0&&!r&&(r=[]),typeof a!="function")return nr(t,a,r,o);W(n=>nr(t,a(),n,o),r)}function jm(t,a,o,r,n={},s=!1){a||(a={});for(let l in n)if(!(l in a)){if(l==="children")continue;n[l]=Li(t,l,null,n[l],o,s,a)}for(let l in a){if(l==="children")continue;let u=a[l];n[l]=Li(t,l,u,n[l],o,s,a)}}function Xm(t){let a,o;return!Wa()||!(a=J.registry.get(o=Ym()))?t():(J.completed&&J.completed.add(a),J.registry.delete(o),a)}function Wa(t){return!!J.context&&!J.done&&(!t||t.isConnected)}function Zm(t){return t.toLowerCase().replace(/-([a-z])/g,(a,o)=>o.toUpperCase())}function wi(t,a,o){let r=a.trim().split(/\s+/);for(let n=0,s=r.length;n<s;n++)t.classList.toggle(r[n],o)}function Li(t,a,o,r,n,s,l){let u,i,d,c,f;if(a==="style")return Qm(t,o,r);if(a==="classList")return Wm(t,o,r);if(o===r)return r;if(a==="ref")s||o(t);else if(a.slice(0,3)==="on:"){let p=a.slice(3);r&&t.removeEventListener(p,r,typeof r!="function"&&r),o&&t.addEventListener(p,o,typeof o!="function"&&o)}else if(a.slice(0,10)==="oncapture:"){let p=a.slice(10);r&&t.removeEventListener(p,r,!0),o&&t.addEventListener(p,o,!0)}else if(a.slice(0,2)==="on"){let p=a.slice(2).toLowerCase(),m=Um.has(p);if(!m&&r){let g=Array.isArray(r)?r[0]:r;t.removeEventListener(p,g)}(m||o)&&(hs(t,p,o,m),m&&dr([p]))}else if(a.slice(0,5)==="attr:")F(t,a.slice(5),o);else if(a.slice(0,5)==="bool:")Gm(t,a.slice(5),o);else if((f=a.slice(0,5)==="prop:")||(d=$m.has(a))||!n&&((c=zm(a,t.tagName))||(i=Bm.has(a)))||(u=t.nodeName.includes("-")||"is"in l)){if(f)a=a.slice(5),i=!0;else if(Wa(t))return o;a==="class"||a==="className"?B(t,o):u&&!i&&!d?t[Zm(a)]=o:t[c||a]=o}else{let p=n&&a.indexOf(":")>-1&&_m[a.split(":")[0]];p?Km(t,p,a,o):F(t,qm[a]||a,o)}return o}function Qi(t){if(J.registry&&J.events&&J.events.find(([i,d])=>d===t))return;let a=t.target,o=`$$${t.type}`,r=t.target,n=t.currentTarget,s=i=>Object.defineProperty(t,"target",{configurable:!0,value:i}),l=()=>{let i=a[o];if(i&&!a.disabled){let d=a[`${o}Data`];if(d!==void 0?i.call(a,d,t):i.call(a,t),t.cancelBubble)return}return a.host&&typeof a.host!="string"&&!a.host._$host&&a.contains(t.target)&&s(a.host),!0},u=()=>{for(;l()&&(a=a._$host||a.parentNode||a.host););};if(Object.defineProperty(t,"currentTarget",{configurable:!0,get(){return a||document}}),J.registry&&!J.done&&(J.done=_$HY.done=!0),t.composedPath){let i=t.composedPath();s(i[0]);for(let d=0;d<i.length-2&&(a=i[d],!!l());d++){if(a._$host){a=a._$host,u();break}if(a.parentNode===n)break}}else u();s(r)}function nr(t,a,o,r,n){let s=Wa(t);if(s){!o&&(o=[...t.childNodes]);let i=[];for(let d=0;d<o.length;d++){let c=o[d];c.nodeType===8&&c.data.slice(0,2)==="!$"?c.remove():i.push(c)}o=i}for(;typeof o=="function";)o=o();if(a===o)return o;let l=typeof a,u=r!==void 0;if(t=u&&o[0]&&o[0].parentNode||t,l==="string"||l==="number"){if(s||l==="number"&&(a=a.toString(),a===o))return o;if(u){let i=o[0];i&&i.nodeType===3?i.data!==a&&(i.data=a):i=document.createTextNode(a),o=co(t,o,r,i)}else o!==""&&typeof o=="string"?o=t.firstChild.data=a:o=t.textContent=a}else if(a==null||l==="boolean"){if(s)return o;o=co(t,o,r)}else{if(l==="function")return W(()=>{let i=a();for(;typeof i=="function";)i=i();o=nr(t,i,o,r)}),()=>o;if(Array.isArray(a)){let i=[],d=o&&Array.isArray(o);if(us(i,a,o,n))return W(()=>o=nr(t,i,o,r,!0)),()=>o;if(s){if(!i.length)return o;if(r===void 0)return o=[...t.childNodes];let c=i[0];if(c.parentNode!==t)return o;let f=[c];for(;(c=c.nextSibling)!==r;)f.push(c);return o=f}if(i.length===0){if(o=co(t,o,r),u)return o}else d?o.length===0?Ii(t,i,r):Vm(t,o,i):(o&&co(t),Ii(t,i));o=i}else if(a.nodeType){if(s&&a.parentNode)return o=u?[a]:a;if(Array.isArray(o)){if(u)return o=co(t,o,r,a);co(t,o,null,a)}else o==null||o===""||!t.firstChild?t.appendChild(a):t.replaceChild(a,t.firstChild);o=a}}return o}function us(t,a,o,r){let n=!1;for(let s=0,l=a.length;s<l;s++){let u=a[s],i=o&&o[t.length],d;if(!(u==null||u===!0||u===!1))if((d=typeof u)=="object"&&u.nodeType)t.push(u);else if(Array.isArray(u))n=us(t,u,i)||n;else if(d==="function")if(r){for(;typeof u=="function";)u=u();n=us(t,Array.isArray(u)?u:[u],Array.isArray(i)?i:[i])||n}else t.push(u),n=!0;else{let c=String(u);i&&i.nodeType===3&&i.data===c?t.push(i):t.push(document.createTextNode(c))}}return n}function Ii(t,a,o=null){for(let r=0,n=a.length;r<n;r++)t.insertBefore(a[r],o)}function co(t,a,o,r){if(o===void 0)return t.textContent="";let n=r||document.createTextNode("");if(a.length){let s=!1;for(let l=a.length-1;l>=0;l--){let u=a[l];if(n!==u){let i=u.parentNode===t;!s&&!l?i?t.replaceChild(n,u):t.insertBefore(n,o):i&&u.remove()}else s=!0}}else t.insertBefore(n,o);return[n]}function Ym(){return J.getNextContextId()}function ji(t,a=!1){return a?document.createElementNS(Jm,t):document.createElement(t)}function ys(t){let{useShadow:a}=t,o=document.createTextNode(""),r=()=>t.mount||document.body,n=an(),s,l=!!J.context;return Q(()=>{l&&(an().user=l=!1),s||(s=Im(n,()=>P(()=>t.children)));let u=r();if(u instanceof HTMLHeadElement){let[i,d]=U(!1),c=()=>d(!0);$t(f=>A(u,()=>i()?f():s(),null)),Z(c)}else{let i=ji(t.isSVG?"g":"div",t.isSVG),d=a&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get(){return o.parentNode},configurable:!0}),A(d,s),u.appendChild(i),t.ref&&t.ref(i),Z(()=>u.removeChild(i))}},void 0,{render:!l}),o}function eg(t,a){let o=P(t);return P(()=>{let r=o();switch(typeof r){case"function":return Le(()=>r(a));case"string":let n=Hm.has(r),s=J.context?Xm():ji(r,n);return xs(s,a,n),s}})}function Xi(t){let[,a]=pe(t,["component"]);return eg(()=>t.component,a)}function og(t){if("values"in Object)return Object.values(t);let a=[];for(let o in t)t.hasOwnProperty(o)&&a.push(t[o]);return a}function rg(t,a){let o=og(t);if("find"in o)return o.find(a);let r=o;for(let n=0;n<r.length;n++){let s=r[n];if(a(s))return s}}function go(t,a){Object.entries(t).forEach(([o,r])=>a(r,o))}function Yr(t,a){return t.indexOf(a)!==-1}function Si(t,a){for(let o=0;o<t.length;o++){let r=t[o];if(a(r))return r}}function Bt(t,a,o,r){return{isApplicable:t,annotation:a,transform:o,untransform:r}}function dn(t,a,o,r){return{isApplicable:t,annotation:a,transform:o,untransform:r}}function ru(t,a){return t?.constructor?!!a.classRegistry.getIdentifier(t.constructor):!1}function iu(t){if(Yr(t,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Yr(t,"prototype"))throw new Error("prototype is not allowed as a property");if(Yr(t,"constructor"))throw new Error("constructor is not allowed as a property")}function fs(t,a,o=[]){if(!t)return;if(!Aa(t)){go(t,(s,l)=>fs(s,a,[...o,...tr(l)]));return}let[r,n]=t;n&&go(n,(s,l)=>{fs(s,a,[...o,...tr(l)])}),a(r,o)}function Lg(t,a,o){return fs(a,(r,n)=>{t=cs(t,n,s=>Cg(s,r,o))}),t}function Ig(t,a){function o(r,n){let s=wg(t,tr(n));r.map(tr).forEach(l=>{t=cs(t,l,()=>s)})}if(Aa(a)){let[r,n]=a;r.forEach(s=>{t=cs(t,tr(s),()=>t)}),n&&go(n,o)}else go(a,o);return t}function kg(t,a,o){let r=o.get(t);r?r.push(a):o.set(t,[a])}function Pg(t,a){let o={},r;return t.forEach(n=>{if(n.length<=1)return;a||(n=n.map(u=>u.map(String)).sort((u,i)=>u.length-i.length));let[s,...l]=n;s.length===0?r=l.map(rs):o[rs(s)]=l.map(rs)}),r?ds(o)?[r]:[r,o]:ds(o)?void 0:o}function du(t){return Object.prototype.toString.call(t).slice(8,-1)}function Mi(t){return du(t)==="Array"}function Mg(t){if(du(t)!=="Object")return!1;let a=Object.getPrototypeOf(t);return!!a&&a.constructor===Object&&a===Object.prototype}function Ag(t,a,o,r,n){let s={}.propertyIsEnumerable.call(r,a)?"enumerable":"nonenumerable";s==="enumerable"&&(t[a]=o),n&&s==="nonenumerable"&&Object.defineProperty(t,a,{value:o,enumerable:!1,writable:!0,configurable:!0})}function ps(t,a={}){if(Mi(t))return t.map(n=>ps(n,a));if(!Mg(t))return t;let o=Object.getOwnPropertyNames(t),r=Object.getOwnPropertySymbols(t);return[...o,...r].reduce((n,s)=>{if(Mi(a.props)&&!a.props.includes(s))return n;let l=t[s],u=ps(l,a);return Ag(n,s,u,t,a.nonenumerable),n},{})}function Qa(t){return t.state.fetchStatus==="fetching"?"fetching":t.getObserversCount()?t.state.fetchStatus==="paused"?"paused":t.isStale()?"stale":"fresh":"inactive"}function fu(t,a){return`${t}${a.charAt(0).toUpperCase()+a.slice(1)}`}function pu({queryState:t,observerCount:a,isStale:o}){return t.fetchStatus==="fetching"?"blue":a?t.fetchStatus==="paused"?"purple":o?"yellow":"green":"gray"}function ja({status:t,isPaused:a}){return a?"purple":t==="error"?"red":t==="pending"?"yellow":t==="success"?"green":"gray"}function mu(t){return t==="fresh"?"green":t==="stale"?"yellow":t==="paused"?"purple":t==="inactive"?"gray":"blue"}var J,Ai,Cm,Jr,Ri,ur,en,yi,Ti,it,ar,Di,as,ne,N,ho,mo,xe,qe,Xe,nn,Sm,bi,or,ls,Dm,is,Fm,Hi,Gi,Om,Bm,$m,qm,Nm,Um,Hm,_m,er,Ze,Jm,tg,Zi,ag,ng,sg,Yi,lg,sr,ds,Aa,ig,ug,dg,cg,lr,ir,Ji,fg,pg,ki,mg,gg,hg,xg,yg,eu,rs,tr,tu,au,bg,ou,nu,su,vg,Pi,lu,Cg,fo,wg,cs,Sg,uu,ie,bs,cu,cr,Xr,Rg,gu,Tg,cn,Zr,hu,Dg,fn,vs,pn,Pa,po,Cs,fr=Bo(()=>{"use strict";w();J={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return xi(this.context.count)},getNextContextId(){return xi(this.context.count++)}};Ai=!1,Cm=(t,a)=>t===a,Jr=Symbol("solid-proxy"),Ri=typeof Proxy=="function",ur=Symbol("solid-track"),en={equals:Cm},yi=null,Ti=Ni,it=1,ar=2,Di={owned:null,cleanups:null,context:null,owner:null},as={},ne=null,N=null,ho=null,mo=null,xe=null,qe=null,Xe=null,nn=0;[Sm,bi]=U(!1);ls=Symbol("fallback");Dm=!1;is={get(t,a,o){return a===Jr?o:t.get(a)},has(t,a){return a===Jr?!0:t.has(a)},set:jr,deleteProperty:jr,getOwnPropertyDescriptor(t,a){return{configurable:!0,enumerable:!0,get(){return t.get(a)},set:jr,deleteProperty:jr}},ownKeys(t){return t.keys()}};Fm=0;Hi=t=>`Stale read from <${t}>.`;Gi=void 0,Om=["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"],Bm=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Om]),$m=new Set(["innerHTML","textContent","innerText","children"]),qm=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Nm=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}});Um=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Hm=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"]),_m={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};er="_$DX_DELEGATE";Ze=!1,Jm="http://www.w3.org/2000/svg";tg=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(t,a){this.keyToValue.set(t,a),this.valueToKey.set(a,t)}getByKey(t){return this.keyToValue.get(t)}getByValue(t){return this.valueToKey.get(t)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},Zi=class{constructor(t){this.generateIdentifier=t,this.kv=new tg}register(t,a){this.kv.getByValue(t)||(a||(a=this.generateIdentifier(t)),this.kv.set(a,t))}clear(){this.kv.clear()}getIdentifier(t){return this.kv.getByValue(t)}getValue(t){return this.kv.getByKey(t)}},ag=class extends Zi{constructor(){super(t=>t.name),this.classToAllowedProps=new Map}register(t,a){typeof a=="object"?(a.allowProps&&this.classToAllowedProps.set(t,a.allowProps),super.register(t,a.identifier)):super.register(t,a)}getAllowedProps(t){return this.classToAllowedProps.get(t)}};ng=class{constructor(){this.transfomers={}}register(t){this.transfomers[t.name]=t}findApplicable(t){return rg(this.transfomers,a=>a.isApplicable(t))}findByName(t){return this.transfomers[t]}},sg=t=>Object.prototype.toString.call(t).slice(8,-1),Yi=t=>typeof t>"u",lg=t=>t===null,sr=t=>typeof t!="object"||t===null||t===Object.prototype?!1:Object.getPrototypeOf(t)===null?!0:Object.getPrototypeOf(t)===Object.prototype,ds=t=>sr(t)&&Object.keys(t).length===0,Aa=t=>Array.isArray(t),ig=t=>typeof t=="string",ug=t=>typeof t=="number"&&!isNaN(t),dg=t=>typeof t=="boolean",cg=t=>t instanceof RegExp,lr=t=>t instanceof Map,ir=t=>t instanceof Set,Ji=t=>sg(t)==="Symbol",fg=t=>t instanceof Date&&!isNaN(t.valueOf()),pg=t=>t instanceof Error,ki=t=>typeof t=="number"&&isNaN(t),mg=t=>dg(t)||lg(t)||Yi(t)||ug(t)||ig(t)||Ji(t),gg=t=>typeof t=="bigint",hg=t=>t===1/0||t===-1/0,xg=t=>ArrayBuffer.isView(t)&&!(t instanceof DataView),yg=t=>t instanceof URL,eu=t=>t.replace(/\./g,"\\."),rs=t=>t.map(String).map(eu).join("."),tr=t=>{let a=[],o="";for(let n=0;n<t.length;n++){let s=t.charAt(n);if(s==="\\"&&t.charAt(n+1)==="."){o+=".",n++;continue}if(s==="."){a.push(o),o="";continue}o+=s}let r=o;return a.push(r),a};tu=[Bt(Yi,"undefined",()=>null,()=>{}),Bt(gg,"bigint",t=>t.toString(),t=>typeof BigInt<"u"?BigInt(t):t),Bt(fg,"Date",t=>t.toISOString(),t=>new Date(t)),Bt(pg,"Error",(t,a)=>{let o={name:t.name,message:t.message};return a.allowedErrorProps.forEach(r=>{o[r]=t[r]}),o},(t,a)=>{let o=new Error(t.message);return o.name=t.name,o.stack=t.stack,a.allowedErrorProps.forEach(r=>{o[r]=t[r]}),o}),Bt(cg,"regexp",t=>""+t,t=>{let a=t.slice(1,t.lastIndexOf("/")),o=t.slice(t.lastIndexOf("/")+1);return new RegExp(a,o)}),Bt(ir,"set",t=>[...t.values()],t=>new Set(t)),Bt(lr,"map",t=>[...t.entries()],t=>new Map(t)),Bt(t=>ki(t)||hg(t),"number",t=>ki(t)?"NaN":t>0?"Infinity":"-Infinity",Number),Bt(t=>t===0&&1/t===-1/0,"number",()=>"-0",Number),Bt(yg,"URL",t=>t.toString(),t=>new URL(t))];au=dn((t,a)=>Ji(t)?!!a.symbolRegistry.getIdentifier(t):!1,(t,a)=>["symbol",a.symbolRegistry.getIdentifier(t)],t=>t.description,(t,a,o)=>{let r=o.symbolRegistry.getValue(a[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),bg=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((t,a)=>(t[a.name]=a,t),{}),ou=dn(xg,t=>["typed-array",t.constructor.name],t=>[...t],(t,a)=>{let o=bg[a[1]];if(!o)throw new Error("Trying to deserialize unknown typed array");return new o(t)});nu=dn(ru,(t,a)=>["class",a.classRegistry.getIdentifier(t.constructor)],(t,a)=>{let o=a.classRegistry.getAllowedProps(t.constructor);if(!o)return{...t};let r={};return o.forEach(n=>{r[n]=t[n]}),r},(t,a,o)=>{let r=o.classRegistry.getValue(a[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),t)}),su=dn((t,a)=>!!a.customTransformerRegistry.findApplicable(t),(t,a)=>["custom",a.customTransformerRegistry.findApplicable(t).name],(t,a)=>a.customTransformerRegistry.findApplicable(t).serialize(t),(t,a,o)=>{let r=o.customTransformerRegistry.findByName(a[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(t)}),vg=[nu,au,su,ou],Pi=(t,a)=>{let o=Si(vg,n=>n.isApplicable(t,a));if(o)return{value:o.transform(t,a),type:o.annotation(t,a)};let r=Si(tu,n=>n.isApplicable(t,a));if(r)return{value:r.transform(t,a),type:r.annotation}},lu={};tu.forEach(t=>{lu[t.annotation]=t});Cg=(t,a,o)=>{if(Aa(a))switch(a[0]){case"symbol":return au.untransform(t,a,o);case"class":return nu.untransform(t,a,o);case"custom":return su.untransform(t,a,o);case"typed-array":return ou.untransform(t,a,o);default:throw new Error("Unknown transformation: "+a)}else{let r=lu[a];if(!r)throw new Error("Unknown transformation: "+a);return r.untransform(t,o)}},fo=(t,a)=>{let o=t.keys();for(;a>0;)o.next(),a--;return o.next().value};wg=(t,a)=>{iu(a);for(let o=0;o<a.length;o++){let r=a[o];if(ir(t))t=fo(t,+r);else if(lr(t)){let n=+r,s=+a[++o]==0?"key":"value",l=fo(t,n);switch(s){case"key":t=l;break;case"value":t=t.get(l);break}}else t=t[r]}return t},cs=(t,a,o)=>{if(iu(a),a.length===0)return o(t);let r=t;for(let s=0;s<a.length-1;s++){let l=a[s];if(Aa(r)){let u=+l;r=r[u]}else if(sr(r))r=r[l];else if(ir(r)){let u=+l;r=fo(r,u)}else if(lr(r)){if(s===a.length-2)break;let i=+l,d=+a[++s]==0?"key":"value",c=fo(r,i);switch(d){case"key":r=c;break;case"value":r=r.get(c);break}}}let n=a[a.length-1];if(Aa(r)?r[+n]=o(r[+n]):sr(r)&&(r[n]=o(r[n])),ir(r)){let s=fo(r,+n),l=o(s);s!==l&&(r.delete(s),r.add(l))}if(lr(r)){let s=+a[a.length-2],l=fo(r,s);switch(+n==0?"key":"value"){case"key":{let i=o(l);r.set(i,r.get(l)),i!==l&&r.delete(l);break}case"value":{r.set(l,o(r.get(l)));break}}}return t};Sg=(t,a)=>sr(t)||Aa(t)||lr(t)||ir(t)||ru(t,a);uu=(t,a,o,r,n=[],s=[],l=new Map)=>{let u=mg(t);if(!u){kg(t,n,a);let m=l.get(t);if(m)return r?{transformedValue:null}:m}if(!Sg(t,o)){let m=Pi(t,o),g=m?{transformedValue:m.value,annotations:[m.type]}:{transformedValue:t};return u||l.set(t,g),g}if(Yr(s,t))return{transformedValue:null};let i=Pi(t,o),d=i?.value??t,c=Aa(d)?[]:{},f={};go(d,(m,g)=>{if(g==="__proto__"||g==="constructor"||g==="prototype")throw new Error(`Detected property ${g}. This is a prototype pollution risk, please remove it from your object.`);let h=uu(m,a,o,r,[...n,g],[...s,t],l);c[g]=h.transformedValue,Aa(h.annotations)?f[g]=h.annotations:sr(h.annotations)&&go(h.annotations,(x,y)=>{f[eu(g)+"."+y]=x})});let p=ds(f)?{transformedValue:c,annotations:i?[i.type]:void 0}:{transformedValue:c,annotations:i?[i.type,f]:f};return u||l.set(t,p),p};ie=class{constructor({dedupe:t=!1}={}){this.classRegistry=new ag,this.symbolRegistry=new Zi(a=>a.description??""),this.customTransformerRegistry=new ng,this.allowedErrorProps=[],this.dedupe=t}serialize(t){let a=new Map,o=uu(t,a,this,this.dedupe),r={json:o.transformedValue};o.annotations&&(r.meta={...r.meta,values:o.annotations});let n=Pg(a,this.dedupe);return n&&(r.meta={...r.meta,referentialEqualities:n}),r}deserialize(t){let{json:a,meta:o}=t,r=ps(a);return o?.values&&(r=Lg(r,o.values,this)),o?.referentialEqualities&&(r=Ig(r,o.referentialEqualities)),r}stringify(t){return JSON.stringify(this.serialize(t))}parse(t){return this.deserialize(JSON.parse(t))}registerClass(t,a){this.classRegistry.register(t,a)}registerSymbol(t,a){this.symbolRegistry.register(t,a)}registerCustom(t,a){this.customTransformerRegistry.register({name:a,...t})}allowErrorProps(...t){this.allowedErrorProps.push(...t)}};ie.defaultInstance=new ie;ie.serialize=ie.defaultInstance.serialize.bind(ie.defaultInstance);ie.deserialize=ie.defaultInstance.deserialize.bind(ie.defaultInstance);ie.stringify=ie.defaultInstance.stringify.bind(ie.defaultInstance);ie.parse=ie.defaultInstance.parse.bind(ie.defaultInstance);ie.registerClass=ie.defaultInstance.registerClass.bind(ie.defaultInstance);ie.registerSymbol=ie.defaultInstance.registerSymbol.bind(ie.defaultInstance);ie.registerCustom=ie.defaultInstance.registerCustom.bind(ie.defaultInstance);ie.allowErrorProps=ie.defaultInstance.allowErrorProps.bind(ie.defaultInstance);bs=ie.serialize;ie.deserialize;cu=ie.stringify;ie.parse;ie.registerClass;ie.registerCustom;ie.registerSymbol;ie.allowErrorProps;cr=(t,a=!1)=>{let{json:o}=bs(t);return JSON.stringify(o,null,a?2:void 0)},Xr=t=>t.state.fetchStatus!=="idle"?0:t.getObserversCount()?t.isStale()?2:1:3,Rg=(t,a)=>t.queryHash.localeCompare(a.queryHash),gu=(t,a)=>t.state.dataUpdatedAt<a.state.dataUpdatedAt?1:-1,Tg=(t,a)=>Xr(t)===Xr(a)?gu(t,a):Xr(t)>Xr(a)?1:-1,cn={status:Tg,"query hash":Rg,"last updated":gu},Zr=t=>t.state.isPaused?0:t.state.status==="error"?2:t.state.status==="pending"?1:3,hu=(t,a)=>t.state.submittedAt<a.state.submittedAt?1:-1,Dg=(t,a)=>Zr(t)===Zr(a)?hu(t,a):Zr(t)>Zr(a)?1:-1,fn={status:Dg,"last updated":hu},vs=t=>t*parseFloat(getComputedStyle(document.documentElement).fontSize),pn=()=>{let[t,a]=U("dark");return aa(()=>{let o=window.matchMedia("(prefers-color-scheme: dark)");a(o.matches?"dark":"light");let r=n=>{a(n.matches?"dark":"light")};o.addEventListener("change",r),Z(()=>o.removeEventListener("change",r))}),t},Pa=(t,a,o)=>{if(a.length===0)return o;if(t instanceof Map){let r=new Map(t);if(a.length===1)return r.set(a[0],o),r;let[n,...s]=a;return r.set(n,Pa(r.get(n),s,o)),r}if(t instanceof Set){let r=Pa(Array.from(t),a,o);return new Set(r)}if(Array.isArray(t)){let r=[...t];if(a.length===1)return r[a[0]]=o,r;let[n,...s]=a;return r[n]=Pa(r[n],s,o),r}if(t instanceof Object){let r={...t};if(a.length===1)return r[a[0]]=o,r;let[n,...s]=a;return r[n]=Pa(r[n],s,o),r}return t},po=(t,a)=>{if(t instanceof Map){let o=new Map(t);if(a.length===1)return o.delete(a[0]),o;let[r,...n]=a;return o.set(r,po(o.get(r),n)),o}if(t instanceof Set){let o=po(Array.from(t),a);return new Set(o)}if(Array.isArray(t)){let o=[...t];if(a.length===1)return o.filter((s,l)=>l.toString()!==a[0]);let[r,...n]=a;return o[r]=po(o[r],n),o}if(t instanceof Object){let o={...t};if(a.length===1)return delete o[a[0]],o;let[r,...n]=a;return o[r]=po(o[r],n),o}return t},Cs=(t,a)=>{if(!t||document.querySelector("#_goober")||a?.querySelector("#_goober"))return;let r=document.createElement("style"),n=document.createTextNode("");r.appendChild(n),r.id="_goober",r.setAttribute("nonce",t),a?a.appendChild(r):document.head.appendChild(r)}});function $g(t){return(...a)=>{for(let o of t)o&&o(...a)}}function qg(t,...a){return typeof t=="function"?t(...a):t}function zg(t,a,o,r){let n=t.length,s=a.length,l=0;if(!s){for(;l<n;l++)o(t[l]);return}if(!n){for(;l<s;l++)r(a[l]);return}for(;l<s&&a[l]===t[l];l++);let u,i;a=a.slice(l),t=t.slice(l);for(u of a)t.includes(u)||r(u);for(i of t)a.includes(i)||o(i)}function Ug(t){let[a,o]=U(),r=t?.throw?(p,m)=>{throw o(p instanceof Error?p:new Error(m)),p}:(p,m)=>{o(p instanceof Error?p:new Error(m))},n=t?.api?Array.isArray(t.api)?t.api:[t.api]:[globalThis.localStorage].filter(Boolean),s=t?.prefix?`${t.prefix}.`:"",l=new Map,u=new Proxy({},{get(p,m){let g=l.get(m);g||(g=U(void 0,{equals:!1}),l.set(m,g)),g[0]();let h=n.reduce((x,y)=>{if(x!==null||!y)return x;try{return y.getItem(`${s}${m}`)}catch(v){return r(v,`Error reading ${s}${m} from ${y.name}`),null}},null);return h!==null&&t?.deserializer?t.deserializer(h,m,t.options):h}}),i=(p,m,g)=>{let h=t?.serializer?t.serializer(m,p,g??t.options):m,x=`${s}${p}`;n.forEach(v=>{try{v.getItem(x)!==h&&v.setItem(x,h)}catch(C){r(C,`Error setting ${s}${p} to ${h} in ${v.name}`)}});let y=l.get(p);y&&y[1]()},d=p=>n.forEach(m=>{try{m.removeItem(`${s}${p}`)}catch(g){r(g,`Error removing ${s}${p} from ${m.name}`)}}),c=()=>n.forEach(p=>{try{p.clear()}catch(m){r(m,`Error clearing ${p.name}`)}}),f=()=>{let p={},m=(g,h)=>{if(!p.hasOwnProperty(g)){let x=h&&t?.deserializer?t.deserializer(h,g,t.options):h;x&&(p[g]=x)}};return n.forEach(g=>{if(typeof g.getAll=="function"){let h;try{h=g.getAll()}catch(x){r(x,`Error getting all values from in ${g.name}`)}for(let x of h)m(x,h[x])}else{let h=0,x;try{for(;x=g.key(h++);)p.hasOwnProperty(x)||m(x,g.getItem(x))}catch(y){r(y,`Error getting all values from ${g.name}`)}}}),p};return t?.sync!==!1&&aa(()=>{let p=m=>{let g=!1;n.forEach(h=>{try{h!==m.storageArea&&m.key&&m.newValue!==h.getItem(m.key)&&(m.newValue?h.setItem(m.key,m.newValue):h.removeItem(m.key),g=!0)}catch(x){r(x,`Error synching api ${h.name} from storage event (${m.key}=${m.newValue})`)}}),g&&m.key&&l.get(m.key)?.[1]()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",p),Z(()=>globalThis.removeEventListener("storage",p))):(n.forEach(m=>m.addEventListener?.("storage",p)),Z(()=>n.forEach(m=>m.removeEventListener?.("storage",p))))}),[u,i,{clear:c,error:a,remove:d,toJSON:f}]}function X(){return Ne(Lr)}function Ge(){return Ne(Ir)}function Zg(t){return t.replace(Xg,a=>gd[a])}function vu(t,a,o){var r;if(o=o||{},o.threshold=(r=o.threshold)!=null?r:st.MATCHES,!o.accessors){let l=Cu(t,a,o);return{rankedValue:t,rank:l,accessorIndex:-1,accessorThreshold:o.threshold,passed:l>=o.threshold}}let n=th(t,o.accessors),s={rankedValue:t,rank:st.NO_MATCH,accessorIndex:-1,accessorThreshold:o.threshold,passed:!1};for(let l=0;l<n.length;l++){let u=n[l],i=Cu(u.itemValue,a,o),{minRanking:d,maxRanking:c,threshold:f=o.threshold}=u.attributes;i<d&&i>=st.MATCHES?i=d:i>c&&(i=c),i=Math.min(i,c),i>=f&&i>s.rank&&(s.rank=i,s.passed=!0,s.accessorIndex=l,s.accessorThreshold=f,s.rankedValue=u.itemValue)}return s}function Cu(t,a,o){return t=wu(t,o),a=wu(a,o),a.length>t.length?st.NO_MATCH:t===a?st.CASE_SENSITIVE_EQUAL:(t=t.toLowerCase(),a=a.toLowerCase(),t===a?st.EQUAL:t.startsWith(a)?st.STARTS_WITH:t.includes(` ${a}`)?st.WORD_STARTS_WITH:t.includes(a)?st.CONTAINS:a.length===1?st.NO_MATCH:Yg(t).includes(a)?st.ACRONYM:Jg(t,a))}function Yg(t){let a="";return t.split(" ").forEach(r=>{r.split("-").forEach(s=>{a+=s.substr(0,1)})}),a}function Jg(t,a){let o=0,r=0;function n(i,d,c){for(let f=c,p=d.length;f<p;f++)if(d[f]===i)return o+=1,f+1;return-1}function s(i){let d=1/i,c=o/a.length;return st.MATCHES+c*d}let l=n(a[0],t,0);if(l<0)return st.NO_MATCH;r=l;for(let i=1,d=a.length;i<d;i++){let c=a[i];if(r=n(c,t,r),!(r>-1))return st.NO_MATCH}let u=r-l;return s(u)}function wu(t,a){let{keepDiacritics:o}=a;return t=`${t}`,o||(t=Zg(t)),t}function eh(t,a){let o=a;typeof a=="object"&&(o=a.accessor);let r=o(t);return r==null?[]:Array.isArray(r)?r:[String(r)]}function th(t,a){let o=[];for(let r=0,n=a.length;r<n;r++){let s=a[r],l=ah(s),u=eh(t,s);for(let i=0,d=u.length;i<d;i++)o.push({itemValue:u[i],attributes:l})}return o}function ah(t){return typeof t=="function"?Lu:{...Lu,...t}}function re(t){let a=this||{},o=t.call?t(a.p):t;return lh(o.unshift?o.raw?ih(o,[].slice.call(arguments,1),a.p):o.reduce((r,n)=>Object.assign(r,n&&n.call?n(a.p):n),{}):o,rh(a.target),a.g,a.o,a.k)}function xd(t){var a,o,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(a=0;a<n;a++)t[a]&&(o=xd(t[a]))&&(r&&(r+=" "),r+=o)}else for(o in t)t[o]&&(r&&(r+=" "),r+=o);return r}function _(){for(var t,a,o=0,r="",n=arguments.length;o<n;o++)(t=arguments[o])&&(a=xd(t))&&(r&&(r+=" "),r+=a);return r}function uh(t,a){let o=Le(t);if(Ze){let f=o.slice();return()=>f}let{onChange:r}=a,n=new Set(a.appear?void 0:o),s=new WeakSet,[l,u]=U([],{equals:!1}),[i]=Oi(),d=f=>{u(p=>(p.push.apply(p,f),p));for(let p of f)s.delete(p)},c=(f,p,m)=>f.splice(m,0,p);return P(f=>{let p=l(),m=t();if(m[ur],Le(i))return i(),f;if(p.length){let g=f.filter(h=>!p.includes(h));return p.length=0,r({list:g,added:[],removed:[],unchanged:g,finishRemoved:d}),g}return Le(()=>{let g=new Set(m),h=m.slice(),x=[],y=[],v=[];for(let L of m)(n.has(L)?v:x).push(L);let C=!x.length;for(let L=0;L<f.length;L++){let I=f[L];g.has(I)||(s.has(I)||(y.push(I),s.add(I)),c(h,I,L)),C&&I!==h[L]&&(C=!1)}return!y.length&&C?f:(r({list:h,added:x,removed:y,unchanged:v,finishRemoved:d}),n=g,h)})},a.appear?[]:o.slice())}function rt(...t){return $g(t)}function As(t,a){if(a(t))return t;if(typeof t=="function"&&!t.length)return As(t(),a);if(Array.isArray(t)){let o=[];for(let r of t){let n=As(r,a);n&&(Array.isArray(n)?o.push.apply(o,n):o.push(n))}return o.length?o:null}return null}function dh(t,a=Su,o=Su){let r=P(t),n=P(()=>As(r(),Ze?o:a));return n.toArray=()=>{let s=n();return Array.isArray(s)?s:s?[s]:[]},n}function ch(t){return P(()=>{let a=t.name||"s";return{enterActive:(t.enterActiveClass||a+"-enter-active").split(" "),enter:(t.enterClass||a+"-enter").split(" "),enterTo:(t.enterToClass||a+"-enter-to").split(" "),exitActive:(t.exitActiveClass||a+"-exit-active").split(" "),exit:(t.exitClass||a+"-exit").split(" "),exitTo:(t.exitToClass||a+"-exit-to").split(" "),move:(t.moveClass||a+"-move").split(" ")}})}function yd(t){requestAnimationFrame(()=>requestAnimationFrame(t))}function fh(t,a,o,r){let{onBeforeEnter:n,onEnter:s,onAfterEnter:l}=a;n?.(o),o.classList.add(...t.enter),o.classList.add(...t.enterActive),queueMicrotask(()=>{if(!o.parentNode)return r?.();s?.(o,()=>u())}),yd(()=>{o.classList.remove(...t.enter),o.classList.add(...t.enterTo),(!s||s.length<2)&&(o.addEventListener("transitionend",u),o.addEventListener("animationend",u))});function u(i){(!i||i.target===o)&&(o.removeEventListener("transitionend",u),o.removeEventListener("animationend",u),o.classList.remove(...t.enterActive),o.classList.remove(...t.enterTo),l?.(o))}}function ph(t,a,o,r){let{onBeforeExit:n,onExit:s,onAfterExit:l}=a;if(!o.parentNode)return r?.();n?.(o),o.classList.add(...t.exit),o.classList.add(...t.exitActive),s?.(o,()=>u()),yd(()=>{o.classList.remove(...t.exit),o.classList.add(...t.exitTo),(!s||s.length<2)&&(o.addEventListener("transitionend",u),o.addEventListener("animationend",u))});function u(i){(!i||i.target===o)&&(r?.(),o.removeEventListener("transitionend",u),o.removeEventListener("animationend",u),o.classList.remove(...t.exitActive),o.classList.remove(...t.exitTo),l?.(o))}}function Pu(t){for(let a of t)a.dispose()}function mh(t,a,o,r={}){if(Ze){let l=t(),u=[];if(l&&l.length)for(let i=0,d=l.length;i<d;i++)u.push(o(()=>l[i],()=>i));else r.fallback&&(u=[r.fallback()]);return()=>u}let n=new Map;return Z(()=>Pu(n.values())),()=>{let l=t()||[];return l[ur],Le(()=>{if(!l.length)return Pu(n.values()),n.clear(),r.fallback?[$t(f=>(n.set(ws,{dispose:f}),r.fallback()))]:[];let u=new Array(l.length),i=n.get(ws);if(!n.size||i){i?.dispose(),n.delete(ws);for(let c=0;c<l.length;c++){let f=l[c],p=a(f,c);s(u,f,c,p)}return u}let d=new Set(n.keys());for(let c=0;c<l.length;c++){let f=l[c],p=a(f,c);d.delete(p);let m=n.get(p);m?(u[c]=m.mapped,m.setIndex?.(c),m.setItem(()=>f)):s(u,f,c,p)}for(let c of d)n.get(c)?.dispose(),n.delete(c);return u})};function s(l,u,i,d){$t(c=>{let[f,p]=U(u),m={setItem:p,dispose:c};if(o.length>1){let[g,h]=U(i);m.setIndex=h,m.mapped=o(f,g)}else m.mapped=o(f);n.set(d,m),l[i]=m.mapped})}}function xn(t){let{by:a}=t;return P(mh(()=>t.each,typeof a=="function"?a:o=>o[a],t.children,"fallback"in t?{fallback:()=>t.fallback}:void 0))}function gh(t,a,o,r){return t.addEventListener(a,o,r),Ng(t.removeEventListener.bind(t,a,o,r))}function hh(t,a,o,r){if(Ze)return;let n=()=>{Ps(D(t)).forEach(s=>{s&&Ps(D(a)).forEach(l=>gh(s,l,o,r))})};typeof t=="function"?Q(n):W(n)}function xh(t,a){if(Ze)return{observe:xu,unobserve:xu};let o=new ResizeObserver(t);return Z(o.disconnect.bind(o)),{observe:r=>o.observe(r,a),unobserve:o.unobserve.bind(o)}}function bd(t,a,o){if(Ze)return;let r=new WeakMap,{observe:n,unobserve:s}=xh(l=>{for(let u of l){let{contentRect:i,target:d}=u,c=Math.round(i.width),f=Math.round(i.height),p=r.get(d);(!p||p.width!==c||p.height!==f)&&(a(i,d,u),r.set(d,{width:c,height:f}))}},o);Q(l=>{let u=Bg(Ps(D(t)));return zg(u,l,n,s),u},[])}function Mu(t){let a={},o;for(;o=yh.exec(t);)a[o[1]]=o[2];return a}function Pn(t,a){if(typeof t=="string"){if(typeof a=="string")return`${t};${a}`;t=Mu(t)}else typeof a=="string"&&(a=Mu(a));return{...t,...a}}function bh(t,a,o=-1){return o in t?[...t.slice(0,o),a,...t.slice(o)]:[...t,a]}function Rs(t,a){let o=[...t],r=o.indexOf(a);return r!==-1&&o.splice(r,1),o}function vh(t){return typeof t=="number"}function bo(t){return Object.prototype.toString.call(t)==="[object String]"}function Ch(t){return typeof t=="function"}function Sr(t){return a=>`${t()}-${a}`}function vt(t,a){return t?t===a||t.contains(a):!1}function hr(t,a=!1){let{activeElement:o}=zt(t);if(!o?.nodeName)return null;if(vd(o)&&o.contentDocument)return hr(o.contentDocument.body,a);if(a){let r=o.getAttribute("aria-activedescendant");if(r){let n=zt(o).getElementById(r);if(n)return n}}return o}function wh(t){return zt(t).defaultView||window}function zt(t){return t?t.ownerDocument||t:document}function vd(t){return t.tagName==="IFRAME"}function Us(t){return typeof window<"u"&&window.navigator!=null?t.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Mn(){return Us(/^Mac/i)}function Lh(){return Us(/^iPhone/i)}function Ih(){return Us(/^iPad/i)||Mn()&&navigator.maxTouchPoints>1}function Sh(){return Lh()||Ih()}function kh(){return Mn()||Sh()}function Me(t,a){return a&&(Ch(a)?a(t):a[0](a[1],t)),t?.defaultPrevented}function Ke(t){return a=>{for(let o of t)Me(a,o)}}function Ph(t){return Mn()?t.metaKey&&!t.ctrlKey:t.ctrlKey&&!t.metaKey}function Je(t){if(t)if(Mh())t.focus({preventScroll:!0});else{let a=Ah(t);t.focus(),Rh(a)}}function Mh(){if(mn==null){mn=!1;try{document.createElement("div").focus({get preventScroll(){return mn=!0,!0}})}catch{}}return mn}function Ah(t){let a=t.parentNode,o=[],r=document.scrollingElement||document.documentElement;for(;a instanceof HTMLElement&&a!==r;)(a.offsetHeight<a.scrollHeight||a.offsetWidth<a.scrollWidth)&&o.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft}),a=a.parentNode;return r instanceof HTMLElement&&o.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),o}function Rh(t){for(let{element:a,scrollTop:o,scrollLeft:r}of t)a.scrollTop=o,a.scrollLeft=r}function wd(t,a){let r=Array.from(t.querySelectorAll(Hs)).filter(Au);return a&&Au(t)&&r.unshift(t),r.forEach((n,s)=>{if(vd(n)&&n.contentDocument){let l=n.contentDocument.body,u=wd(l,!1);r.splice(s,1,...u)}}),r}function Au(t){return Ld(t)&&!Eh(t)}function Ld(t){return t.matches(Hs)&&_s(t)}function Eh(t){return parseInt(t.getAttribute("tabindex")||"0",10)<0}function _s(t,a){return t.nodeName!=="#comment"&&Fh(t)&&Oh(t,a)&&(!t.parentElement||_s(t.parentElement,t))}function Fh(t){if(!(t instanceof HTMLElement)&&!(t instanceof SVGElement))return!1;let{display:a,visibility:o}=t.style,r=a!=="none"&&o!=="hidden"&&o!=="collapse";if(r){if(!t.ownerDocument.defaultView)return r;let{getComputedStyle:n}=t.ownerDocument.defaultView,{display:s,visibility:l}=n(t);r=s!=="none"&&l!=="hidden"&&l!=="collapse"}return r}function Oh(t,a){return!t.hasAttribute("hidden")&&(t.nodeName==="DETAILS"&&a&&a.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Bh(t,a,o){let r=a?.tabbable?Dh:Hs,n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return a?.from?.contains(s)?NodeFilter.FILTER_REJECT:s.matches(r)&&_s(s)&&(!a?.accept||a.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return a?.from&&(n.currentNode=a.from),n}function Ru(t){for(;t&&!$h(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function $h(t){let a=window.getComputedStyle(t);return/(auto|scroll)/.test(a.overflow+a.overflowX+a.overflowY)}function qh(){}function Nh(t,a){let[o,r]=t,n=!1,s=a.length;for(let l=s,u=0,i=l-1;u<l;i=u++){let[d,c]=a[u],[f,p]=a[i],[,m]=a[i===0?l-1:i-1]||[0,0],g=(c-p)*(o-d)-(d-f)*(r-c);if(p<c){if(r>=p&&r<c){if(g===0)return!0;g>0&&(r===p?r>m&&(n=!n):n=!n)}}else if(c<p){if(r>c&&r<=p){if(g===0)return!0;g<0&&(r===p?r<m&&(n=!n):n=!n)}}else if(r==c&&(o>=f&&o<=d||o>=d&&o<=f))return!0}return n}function ue(t,a){return te(t,a)}function Du(){if(typeof window>"u")return;let t=o=>{if(!o.target)return;let r=pr.get(o.target);r||(r=new Set,pr.set(o.target,r),o.target.addEventListener("transitioncancel",a)),r.add(o.propertyName)},a=o=>{if(!o.target)return;let r=pr.get(o.target);if(r&&(r.delete(o.propertyName),r.size===0&&(o.target.removeEventListener("transitioncancel",a),pr.delete(o.target)),pr.size===0)){for(let n of Tu)n();Tu.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",a)}function Ts(t,a){let o=Eu(t,a,"left"),r=Eu(t,a,"top"),n=a.offsetWidth,s=a.offsetHeight,l=t.scrollLeft,u=t.scrollTop,i=l+t.offsetWidth,d=u+t.offsetHeight;o<=l?l=o:o+n>i&&(l+=o+n-i),r<=u?u=r:r+s>d&&(u+=r+s-d),t.scrollLeft=l,t.scrollTop=u}function Eu(t,a,o){let r=o==="left"?"offsetLeft":"offsetTop",n=0;for(;a.offsetParent&&(n+=a[r],a.offsetParent!==t);){if(a.offsetParent.contains(t)){n-=t[r];break}a=a.offsetParent}return n}function zh(t,a){if(document.contains(t)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let n=Ru(t);for(;t&&n&&t!==o&&n!==o;)Ts(n,t),t=n,n=Ru(t)}else{let{left:n,top:s}=t.getBoundingClientRect();t?.scrollIntoView?.({block:"nearest"});let{left:l,top:u}=t.getBoundingClientRect();(Math.abs(n-l)>1||Math.abs(s-u)>1)&&t.scrollIntoView?.({block:"nearest"})}}}function Ct(t){return a=>(t(a),()=>t(void 0))}function An(t,a){let[o,r]=U(Fu(a?.()));return Q(()=>{r(t()?.tagName.toLowerCase()||Fu(a?.()))}),o}function Fu(t){return bo(t)?t:void 0}function Ae(t){let[a,o]=pe(t,["as"]);if(!a.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return b(Xi,te(o,{get component(){return a.as}}))}function Hh(t){let a=`form-control-${ut()}`,o=ue({id:a},t),[r,n]=U(),[s,l]=U(),[u,i]=U(),[d,c]=U(),f=(h,x,y)=>{let v=y!=null||r()!=null;return[y,r(),v&&x!=null?h:void 0].filter(Boolean).join(" ")||void 0},p=h=>[u(),d(),h].filter(Boolean).join(" ")||void 0,m=P(()=>({"data-valid":D(o.validationState)==="valid"?"":void 0,"data-invalid":D(o.validationState)==="invalid"?"":void 0,"data-required":D(o.required)?"":void 0,"data-disabled":D(o.disabled)?"":void 0,"data-readonly":D(o.readOnly)?"":void 0}));return{formControlContext:{name:()=>D(o.name)??D(o.id),dataset:m,validationState:()=>D(o.validationState),isRequired:()=>D(o.required),isDisabled:()=>D(o.disabled),isReadOnly:()=>D(o.readOnly),labelId:r,fieldId:s,descriptionId:u,errorMessageId:d,getAriaLabelledBy:f,getAriaDescribedBy:p,generateId:Sr(()=>D(o.id)),registerLabel:Ct(n),registerField:Ct(l),registerDescription:Ct(i),registerErrorMessage:Ct(c)}}}function kr(){let t=Ne(Sd);if(t===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return t}function kd(t){let a=kr(),o=ue({id:a.generateId("description")},t);return Q(()=>Z(a.registerDescription(o.id))),b(Ae,te({as:"div"},()=>a.dataset(),o))}function Pd(t){let a=kr(),o=ue({id:a.generateId("error-message")},t),[r,n]=pe(o,["forceMount"]),s=()=>a.validationState()==="invalid";return Q(()=>{s()&&Z(a.registerErrorMessage(n.id))}),b(j,{get when(){return r.forceMount||s()},get children(){return b(Ae,te({as:"div"},()=>a.dataset(),n))}})}function _h(t){let a,o=kr(),r=ue({id:o.generateId("label")},t),[n,s]=pe(r,["ref"]),l=An(()=>a,()=>"label");return Q(()=>Z(o.registerLabel(s.id))),b(Ae,te({as:"label",ref(u){let i=rt(d=>a=d,n.ref);typeof i=="function"&&i(u)},get for(){return P(()=>l()==="label")()?o.fieldId():void 0}},()=>o.dataset(),s))}function Vh(t,a){Q(qt(t,o=>{if(o==null)return;let r=Kh(o);r!=null&&(r.addEventListener("reset",a,{passive:!0}),Z(()=>{r.removeEventListener("reset",a)}))}))}function Kh(t){return Gh(t)?t.form:t.closest("form")}function Gh(t){return t.matches("textarea, input, select, button")}function Pr(t){let[a,o]=U(t.defaultValue?.()),r=P(()=>t.value?.()!==void 0),n=P(()=>r()?t.value?.():a());return[n,l=>{Le(()=>{let u=qg(l,n());return Object.is(u,n())||(r()||o(u),t.onChange?.(u)),u})}]}function Md(t){let[a,o]=Pr(t);return[()=>a()??!1,o]}function Wh(t){let[a,o]=Pr(t);return[()=>a()??[],o]}function Qh(t={}){let[a,o]=Md({value:()=>D(t.isSelected),defaultValue:()=>!!D(t.defaultIsSelected),onChange:s=>t.onSelectedChange?.(s)});return{isSelected:a,setIsSelected:s=>{!D(t.isReadOnly)&&!D(t.isDisabled)&&o(s)},toggle:()=>{!D(t.isReadOnly)&&!D(t.isDisabled)&&o(!a())}}}function Rd(){return Ne(Ad)}function Xh(){let t=Rd();if(t===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return t}function Td(t,a){return!!(a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}function Zh(t,a){let o=a.ref();if(!o)return-1;let r=t.length;if(!r)return-1;for(;r--;){let n=t[r]?.ref();if(n&&Td(n,o))return r+1}return 0}function Yh(t){let a=t.map((r,n)=>[n,r]),o=!1;return a.sort(([r,n],[s,l])=>{let u=n.ref(),i=l.ref();return u===i||!u||!i?0:Td(u,i)?(r>s&&(o=!0),-1):(r<s&&(o=!0),1)}),o?a.map(([r,n])=>n):t}function Dd(t,a){let o=Yh(t);t!==o&&a(o)}function Jh(t){let a=t[0],o=t[t.length-1]?.ref(),r=a?.ref()?.parentElement;for(;r;){if(o&&r.contains(o))return r;r=r.parentElement}return zt(r).body}function e0(t,a){Q(()=>{let o=setTimeout(()=>{Dd(t(),a)});Z(()=>clearTimeout(o))})}function t0(t,a){if(typeof IntersectionObserver!="function"){e0(t,a);return}let o=[];Q(()=>{let r=()=>{let l=!!o.length;o=t(),l&&Dd(t(),a)},n=Jh(t()),s=new IntersectionObserver(r,{root:n});for(let l of t()){let u=l.ref();u&&s.observe(u)}Z(()=>s.disconnect())})}function a0(t={}){let[a,o]=Wh({value:()=>D(t.items),onChange:s=>t.onItemsChange?.(s)});t0(a,o);let r=s=>(o(l=>{let u=Zh(l,s);return bh(l,s,u)}),()=>{o(l=>{let u=l.filter(i=>i.ref()!==s.ref());return l.length===u.length?l:u})});return{DomCollectionProvider:s=>b(Ad.Provider,{value:{registerItem:r},get children(){return s.children}})}}function o0(t){let a=Xh(),o=ue({shouldRegisterItem:!0},t);Q(()=>{if(!o.shouldRegisterItem)return;let r=a.registerItem(o.getItem());Z(r)})}function Ed(t){let a=t.startIndex??0,o=t.startLevel??0,r=[],n=i=>{if(i==null)return"";let d=t.getKey??"key",c=bo(d)?i[d]:d(i);return c!=null?String(c):""},s=i=>{if(i==null)return"";let d=t.getTextValue??"textValue",c=bo(d)?i[d]:d(i);return c!=null?String(c):""},l=i=>{if(i==null)return!1;let d=t.getDisabled??"disabled";return(bo(d)?i[d]:d(i))??!1},u=i=>{if(i!=null)return bo(t.getSectionChildren)?i[t.getSectionChildren]:t.getSectionChildren?.(i)};for(let i of t.dataSource){if(bo(i)||vh(i)){r.push({type:"item",rawValue:i,key:String(i),textValue:String(i),disabled:l(i),level:o,index:a}),a++;continue}if(u(i)!=null){r.push({type:"section",rawValue:i,key:"",textValue:"",disabled:!1,level:o,index:a}),a++;let d=u(i)??[];if(d.length>0){let c=Ed({dataSource:d,getKey:t.getKey,getTextValue:t.getTextValue,getDisabled:t.getDisabled,getSectionChildren:t.getSectionChildren,startIndex:a,startLevel:o+1});r.push(...c),a+=c.length}}else r.push({type:"item",rawValue:i,key:n(i),textValue:s(i),disabled:l(i),level:o,index:a}),a++}return r}function r0(t,a=[]){return P(()=>{let o=Ed({dataSource:D(t.dataSource),getKey:D(t.getKey),getTextValue:D(t.getTextValue),getDisabled:D(t.getDisabled),getSectionChildren:D(t.getSectionChildren)});for(let r=0;r<a.length;r++)a[r]();return t.factory(o)})}function l0(t){if(Intl.Locale){let o=new Intl.Locale(t).maximize().script??"";return n0.has(o)}let a=t.split("-")[0];return s0.has(a)}function i0(t){return l0(t)?"rtl":"ltr"}function Fd(){let t=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:t,direction:i0(t)}}function Ou(){Ds=Fd();for(let t of xr)t(Ds)}function u0(){let t={locale:"en-US",direction:"ltr"},[a,o]=U(Ds),r=P(()=>Ze?t:a());return aa(()=>{xr.size===0&&window.addEventListener("languagechange",Ou),xr.add(o),Z(()=>{xr.delete(o),xr.size===0&&window.removeEventListener("languagechange",Ou)})}),{locale:()=>r().locale,direction:()=>r().direction}}function Oa(){let t=u0();return Ne(d0)||t}function c0(t){let{locale:a}=Oa(),o=P(()=>a()+(t?Object.entries(t).sort((r,n)=>r[0]<n[0]?-1:1).join():""));return P(()=>{let r=o(),n;return Ls.has(r)&&(n=Ls.get(r)),n||(n=new Intl.Collator(a(),t),Ls.set(r,n)),n})}function f0(t){let[a,o]=Pr(t);return[()=>a()??new ra,o]}function Bd(t){return kh()?t.altKey:t.ctrlKey}function vo(t){return Mn()?t.metaKey:t.ctrlKey}function Bu(t){return new ra(t)}function p0(t,a){if(t.size!==a.size)return!1;for(let o of t)if(!a.has(o))return!1;return!0}function m0(t){let a=ue({selectionMode:"none",selectionBehavior:"toggle"},t),[o,r]=U(!1),[n,s]=U(),l=P(()=>{let h=D(a.selectedKeys);return h!=null?Bu(h):h}),u=P(()=>{let h=D(a.defaultSelectedKeys);return h!=null?Bu(h):new ra}),[i,d]=f0({value:l,defaultValue:u,onChange:h=>a.onSelectionChange?.(h)}),[c,f]=U(D(a.selectionBehavior)),p=()=>D(a.selectionMode),m=()=>D(a.disallowEmptySelection)??!1,g=h=>{(D(a.allowDuplicateSelectionEvents)||!p0(h,i()))&&d(h)};return Q(()=>{let h=i();D(a.selectionBehavior)==="replace"&&c()==="toggle"&&typeof h=="object"&&h.size===0&&f("replace")}),Q(()=>{f(D(a.selectionBehavior)??"toggle")}),{selectionMode:p,disallowEmptySelection:m,selectionBehavior:c,setSelectionBehavior:f,isFocused:o,setFocused:r,focusedKey:n,setFocusedKey:s,selectedKeys:i,setSelectedKeys:g}}function g0(t){let[a,o]=U(""),[r,n]=U(-1);return{typeSelectHandlers:{onKeyDown:l=>{if(D(t.isDisabled))return;let u=D(t.keyboardDelegate),i=D(t.selectionManager);if(!u.getKeyForSearch)return;let d=h0(l.key);if(!d||l.ctrlKey||l.metaKey)return;d===" "&&a().trim().length>0&&(l.preventDefault(),l.stopPropagation());let c=o(p=>p+d),f=u.getKeyForSearch(c,i.focusedKey())??u.getKeyForSearch(c);f==null&&x0(c)&&(c=c[0],f=u.getKeyForSearch(c,i.focusedKey())??u.getKeyForSearch(c)),f!=null&&(i.setFocusedKey(f),t.onTypeSelect?.(f)),clearTimeout(r()),n(window.setTimeout(()=>o(""),500))}}}}function h0(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function x0(t){return t.split("").every(a=>a===t[0])}function y0(t,a,o){let n=te({selectOnFocus:()=>D(t.selectionManager).selectionBehavior()==="replace"},t),s=()=>a(),{direction:l}=Oa(),u={top:0,left:0};hh(()=>D(n.isVirtualized)?void 0:s(),"scroll",()=>{let x=s();x&&(u={top:x.scrollTop,left:x.scrollLeft})});let{typeSelectHandlers:i}=g0({isDisabled:()=>D(n.disallowTypeAhead),keyboardDelegate:()=>D(n.keyboardDelegate),selectionManager:()=>D(n.selectionManager)}),d=()=>D(n.orientation)??"vertical",c=x=>{Me(x,i.onKeyDown),x.altKey&&x.key==="Tab"&&x.preventDefault();let y=a();if(!y?.contains(x.target))return;let v=D(n.selectionManager),C=D(n.selectOnFocus),L=q=>{q!=null&&(v.setFocusedKey(q),x.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(q):C&&!Bd(x)&&v.replaceSelection(q))},I=D(n.keyboardDelegate),O=D(n.shouldFocusWrap),E=v.focusedKey();switch(x.key){case(d()==="vertical"?"ArrowDown":"ArrowRight"):{if(I.getKeyBelow){x.preventDefault();let q;E!=null?q=I.getKeyBelow(E):q=I.getFirstKey?.(),q==null&&O&&(q=I.getFirstKey?.(E)),L(q)}break}case(d()==="vertical"?"ArrowUp":"ArrowLeft"):{if(I.getKeyAbove){x.preventDefault();let q;E!=null?q=I.getKeyAbove(E):q=I.getLastKey?.(),q==null&&O&&(q=I.getLastKey?.(E)),L(q)}break}case(d()==="vertical"?"ArrowLeft":"ArrowUp"):{if(I.getKeyLeftOf){x.preventDefault();let q=l()==="rtl",S;E!=null?S=I.getKeyLeftOf(E):S=q?I.getFirstKey?.():I.getLastKey?.(),L(S)}break}case(d()==="vertical"?"ArrowRight":"ArrowDown"):{if(I.getKeyRightOf){x.preventDefault();let q=l()==="rtl",S;E!=null?S=I.getKeyRightOf(E):S=q?I.getLastKey?.():I.getFirstKey?.(),L(S)}break}case"Home":if(I.getFirstKey){x.preventDefault();let q=I.getFirstKey(E,vo(x));q!=null&&(v.setFocusedKey(q),vo(x)&&x.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(q):C&&v.replaceSelection(q))}break;case"End":if(I.getLastKey){x.preventDefault();let q=I.getLastKey(E,vo(x));q!=null&&(v.setFocusedKey(q),vo(x)&&x.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(q):C&&v.replaceSelection(q))}break;case"PageDown":if(I.getKeyPageBelow&&E!=null){x.preventDefault();let q=I.getKeyPageBelow(E);L(q)}break;case"PageUp":if(I.getKeyPageAbove&&E!=null){x.preventDefault();let q=I.getKeyPageAbove(E);L(q)}break;case"a":vo(x)&&v.selectionMode()==="multiple"&&D(n.disallowSelectAll)!==!0&&(x.preventDefault(),v.selectAll());break;case"Escape":x.defaultPrevented||(x.preventDefault(),D(n.disallowEmptySelection)||v.clearSelection());break;case"Tab":if(!D(n.allowsTabNavigation)){if(x.shiftKey)y.focus();else{let q=Bh(y,{tabbable:!0}),S,M;do M=q.lastChild(),M&&(S=M);while(M);S&&!S.contains(document.activeElement)&&Je(S)}break}}},f=x=>{let y=D(n.selectionManager),v=D(n.keyboardDelegate),C=D(n.selectOnFocus);if(y.isFocused()){x.currentTarget.contains(x.target)||y.setFocused(!1);return}if(x.currentTarget.contains(x.target)){if(y.setFocused(!0),y.focusedKey()==null){let L=O=>{O!=null&&(y.setFocusedKey(O),C&&y.replaceSelection(O))},I=x.relatedTarget;I&&x.currentTarget.compareDocumentPosition(I)&Node.DOCUMENT_POSITION_FOLLOWING?L(y.lastSelectedKey()??v.getLastKey?.()):L(y.firstSelectedKey()??v.getFirstKey?.())}else if(!D(n.isVirtualized)){let L=s();if(L){L.scrollTop=u.top,L.scrollLeft=u.left;let I=L.querySelector(`[data-key="${y.focusedKey()}"]`);I&&(Je(I),Ts(L,I))}}}},p=x=>{let y=D(n.selectionManager);x.currentTarget.contains(x.relatedTarget)||y.setFocused(!1)},m=x=>{s()===x.target&&x.preventDefault()},g=()=>{let x=D(n.autoFocus);if(!x)return;let y=D(n.selectionManager),v=D(n.keyboardDelegate),C;x==="first"&&(C=v.getFirstKey?.()),x==="last"&&(C=v.getLastKey?.());let L=y.selectedKeys();L.size&&(C=L.values().next().value),y.setFocused(!0),y.setFocusedKey(C);let I=a();I&&C==null&&!D(n.shouldUseVirtualFocus)&&Je(I)};return aa(()=>{n.deferAutoFocus?setTimeout(g,0):g()}),Q(qt([s,()=>D(n.isVirtualized),()=>D(n.selectionManager).focusedKey()],x=>{let[y,v,C]=x;if(v)C&&n.scrollToKey?.(C);else if(C&&y){let L=y.querySelector(`[data-key="${C}"]`);L&&Ts(y,L)}})),{tabIndex:P(()=>{if(!D(n.shouldUseVirtualFocus))return D(n.selectionManager).focusedKey()==null?0:-1}),onKeyDown:c,onMouseDown:m,onFocusIn:f,onFocusOut:p}}function $d(t,a){let o=()=>D(t.selectionManager),r=()=>D(t.key),n=()=>D(t.shouldUseVirtualFocus),s=v=>{o().selectionMode()!=="none"&&(o().selectionMode()==="single"?o().isSelected(r())&&!o().disallowEmptySelection()?o().toggleSelection(r()):o().replaceSelection(r()):v?.shiftKey?o().extendSelection(r()):o().selectionBehavior()==="toggle"||vo(v)||"pointerType"in v&&v.pointerType==="touch"?o().toggleSelection(r()):o().replaceSelection(r()))},l=()=>o().isSelected(r()),u=()=>D(t.disabled)||o().isDisabled(r()),i=()=>!u()&&o().canSelectItem(r()),d=null,c=v=>{i()&&(d=v.pointerType,v.pointerType==="mouse"&&v.button===0&&!D(t.shouldSelectOnPressUp)&&s(v))},f=v=>{i()&&v.pointerType==="mouse"&&v.button===0&&D(t.shouldSelectOnPressUp)&&D(t.allowsDifferentPressOrigin)&&s(v)},p=v=>{i()&&(D(t.shouldSelectOnPressUp)&&!D(t.allowsDifferentPressOrigin)||d!=="mouse")&&s(v)},m=v=>{!i()||!["Enter"," "].includes(v.key)||(Bd(v)?o().toggleSelection(r()):s(v))},g=v=>{u()&&v.preventDefault()},h=v=>{let C=a();n()||u()||!C||v.target===C&&o().setFocusedKey(r())},x=P(()=>{if(!(n()||u()))return r()===o().focusedKey()?0:-1}),y=P(()=>D(t.virtualized)?void 0:r());return Q(qt([a,r,n,()=>o().focusedKey(),()=>o().isFocused()],([v,C,L,I,O])=>{v&&C===I&&O&&!L&&document.activeElement!==v&&(t.focus?t.focus():Je(v))})),{isSelected:l,isDisabled:u,allowsSelection:i,tabIndex:x,dataKey:y,onPointerDown:c,onPointerUp:f,onClick:p,onKeyDown:m,onMouseDown:g,onFocus:h}}function v0(t){let a=m0(t),r=r0({dataSource:()=>D(t.dataSource),getKey:()=>D(t.getKey),getTextValue:()=>D(t.getTextValue),getDisabled:()=>D(t.getDisabled),getSectionChildren:()=>D(t.getSectionChildren),factory:s=>t.filter?new $u(t.filter(s)):new $u(s)},[()=>t.filter]),n=new b0(r,a);return tn(()=>{let s=a.focusedKey();s!=null&&!r().getItem(s)&&a.setFocusedKey(void 0)}),{collection:r,selectionManager:()=>n}}function br(t){return sa.findIndex(a=>a.node===t)}function L0(t){return sa[br(t)]}function I0(t){return sa[sa.length-1].node===t}function zd(){return sa.filter(t=>t.isPointerBlocking)}function S0(){return[...zd()].slice(-1)[0]}function Vs(){return zd().length>0}function Ud(t){let a=br(S0()?.node);return br(t)<a}function k0(t){sa.push(t)}function P0(t){let a=br(t);a<0||sa.splice(a,1)}function M0(){for(let{node:t}of sa)t.style.pointerEvents=Ud(t)?"none":"auto"}function A0(t){if(Vs()&&!Es){let a=zt(t);Nd=document.body.style.pointerEvents,a.body.style.pointerEvents="none",Es=!0}}function R0(t){if(Vs())return;let a=zt(t);a.body.style.pointerEvents=Nd,a.body.style.length===0&&a.body.removeAttribute("style"),Es=!1}function E0(t){let a=t.tagName.toLowerCase();return a==="button"?!0:a==="input"&&t.type?D0.indexOf(t.type)!==-1:!1}function Ks(t){let a,o=ue({type:"button"},t),[r,n]=pe(o,["ref","type","disabled"]),s=An(()=>a,()=>"button"),l=P(()=>{let d=s();return d==null?!1:E0({tagName:d,type:r.type})}),u=P(()=>s()==="input"),i=P(()=>s()==="a"&&a?.getAttribute("href")!=null);return b(Ae,te({as:"button",ref(d){let c=rt(f=>a=f,r.ref);typeof c=="function"&&c(d)},get type(){return l()||u()?r.type:void 0},get role(){return!l()&&!i()?"button":void 0},get tabIndex(){return!l()&&!i()&&!r.disabled?0:void 0},get disabled(){return l()||u()?r.disabled:void 0},get"aria-disabled"(){return!l()&&!u()&&r.disabled?!0:void 0},get"data-disabled"(){return r.disabled?"":void 0}},n))}function Fs(t,a,o){return ft(t,Nt(a,o))}function eo(t,a){return typeof t=="function"?t(a):t}function Ea(t){return t.split("-")[0]}function Lo(t){return t.split("-")[1]}function Hd(t){return t==="x"?"y":"x"}function Gs(t){return t==="y"?"height":"width"}function Ya(t){return["top","bottom"].includes(Ea(t))?"y":"x"}function Ws(t){return Hd(Ya(t))}function q0(t,a,o){o===void 0&&(o=!1);let r=Lo(t),n=Ws(t),s=Gs(n),l=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return a.reference[s]>a.floating[s]&&(l=vn(l)),[l,vn(l)]}function N0(t){let a=vn(t);return[Os(t),a,Os(a)]}function Os(t){return t.replace(/start|end/g,a=>$0[a])}function z0(t,a,o){let r=["left","right"],n=["right","left"],s=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return o?a?n:r:a?r:n;case"left":case"right":return a?s:l;default:return[]}}function U0(t,a,o,r){let n=Lo(t),s=z0(Ea(t),o==="start",r);return n&&(s=s.map(l=>l+"-"+n),a&&(s=s.concat(s.map(Os)))),s}function vn(t){return t.replace(/left|right|bottom|top/g,a=>B0[a])}function H0(t){return{top:0,right:0,bottom:0,left:0,...t}}function _d(t){return typeof t!="number"?H0(t):{top:t,right:t,bottom:t,left:t}}function Cn(t){let{x:a,y:o,width:r,height:n}=t;return{width:r,height:n,top:o,left:a,right:a+r,bottom:o+n,x:a,y:o}}function qu(t,a,o){let{reference:r,floating:n}=t,s=Ya(a),l=Ws(a),u=Gs(l),i=Ea(a),d=s==="y",c=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p=r[u]/2-n[u]/2,m;switch(i){case"top":m={x:c,y:r.y-n.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-n.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Lo(a)){case"start":m[l]-=p*(o&&d?-1:1);break;case"end":m[l]+=p*(o&&d?-1:1);break}return m}async function vr(t,a){var o;a===void 0&&(a={});let{x:r,y:n,platform:s,rects:l,elements:u,strategy:i}=t,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=eo(a,t),g=_d(m),x=u[p?f==="floating"?"reference":"floating":f],y=Cn(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(x)))==null||o?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:d,rootBoundary:c,strategy:i})),v=f==="floating"?{x:r,y:n,width:l.floating.width,height:l.floating.height}:l.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),L=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},I=Cn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:v,offsetParent:C,strategy:i}):v);return{top:(y.top-I.top+g.top)/L.y,bottom:(I.bottom-y.bottom+g.bottom)/L.y,left:(y.left-I.left+g.left)/L.x,right:(I.right-y.right+g.right)/L.x}}function Nu(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function zu(t){return O0.some(a=>t[a]>=0)}async function W0(t,a){let{placement:o,platform:r,elements:n}=t,s=await(r.isRTL==null?void 0:r.isRTL(n.floating)),l=Ea(o),u=Lo(o),i=Ya(o)==="y",d=["left","top"].includes(l)?-1:1,c=s&&i?-1:1,f=eo(a,t),{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return u&&typeof g=="number"&&(m=u==="end"?g*-1:g),i?{x:m*c,y:p*d}:{x:p*d,y:m*c}}function Io(t){return Vd(t)?(t.nodeName||"").toLowerCase():"#document"}function pt(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function la(t){var a;return(a=(Vd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function Vd(t){return t instanceof Node||t instanceof pt(t).Node}function At(t){return t instanceof Element||t instanceof pt(t).Element}function Ut(t){return t instanceof HTMLElement||t instanceof pt(t).HTMLElement}function Uu(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof pt(t).ShadowRoot}function Mr(t){let{overflow:a,overflowX:o,overflowY:r,display:n}=Rt(t);return/auto|scroll|overlay|hidden|clip/.test(a+r+o)&&!["inline","contents"].includes(n)}function Z0(t){return["table","td","th"].includes(Io(t))}function Tn(t){return[":popover-open",":modal"].some(a=>{try{return t.matches(a)}catch{return!1}})}function Qs(t){let a=js(),o=At(t)?Rt(t):t;return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!a&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!a&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(o.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(o.contain||"").includes(r))}function Y0(t){let a=Fa(t);for(;Ut(a)&&!wo(a);){if(Qs(a))return a;if(Tn(a))return null;a=Fa(a)}return null}function js(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wo(t){return["html","body","#document"].includes(Io(t))}function Rt(t){return pt(t).getComputedStyle(t)}function Dn(t){return At(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Fa(t){if(Io(t)==="html")return t;let a=t.assignedSlot||t.parentNode||Uu(t)&&t.host||la(t);return Uu(a)?a.host:a}function Kd(t){let a=Fa(t);return wo(a)?t.ownerDocument?t.ownerDocument.body:t.body:Ut(a)&&Mr(a)?a:Kd(a)}function Cr(t,a,o){var r;a===void 0&&(a=[]),o===void 0&&(o=!0);let n=Kd(t),s=n===((r=t.ownerDocument)==null?void 0:r.body),l=pt(n);return s?a.concat(l,l.visualViewport||[],Mr(n)?n:[],l.frameElement&&o?Cr(l.frameElement):[]):a.concat(n,Cr(n,[],o))}function Gd(t){let a=Rt(t),o=parseFloat(a.width)||0,r=parseFloat(a.height)||0,n=Ut(t),s=n?t.offsetWidth:o,l=n?t.offsetHeight:r,u=bn(o)!==s||bn(r)!==l;return u&&(o=s,r=l),{width:o,height:r,$:u}}function Xs(t){return At(t)?t:t.contextElement}function Co(t){let a=Xs(t);if(!Ut(a))return Da(1);let o=a.getBoundingClientRect(),{width:r,height:n,$:s}=Gd(a),l=(s?bn(o.width):o.width)/r,u=(s?bn(o.height):o.height)/n;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}function Wd(t){let a=pt(t);return!js()||!a.visualViewport?J0:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function ex(t,a,o){return a===void 0&&(a=!1),!o||a&&o!==pt(t)?!1:a}function Ja(t,a,o,r){a===void 0&&(a=!1),o===void 0&&(o=!1);let n=t.getBoundingClientRect(),s=Xs(t),l=Da(1);a&&(r?At(r)&&(l=Co(r)):l=Co(t));let u=ex(s,o,r)?Wd(s):Da(0),i=(n.left+u.x)/l.x,d=(n.top+u.y)/l.y,c=n.width/l.x,f=n.height/l.y;if(s){let p=pt(s),m=r&&At(r)?pt(r):r,g=p,h=g.frameElement;for(;h&&r&&m!==g;){let x=Co(h),y=h.getBoundingClientRect(),v=Rt(h),C=y.left+(h.clientLeft+parseFloat(v.paddingLeft))*x.x,L=y.top+(h.clientTop+parseFloat(v.paddingTop))*x.y;i*=x.x,d*=x.y,c*=x.x,f*=x.y,i+=C,d+=L,g=pt(h),h=g.frameElement}}return Cn({width:c,height:f,x:i,y:d})}function tx(t){let{elements:a,rect:o,offsetParent:r,strategy:n}=t,s=n==="fixed",l=la(r),u=a?Tn(a.floating):!1;if(r===l||u&&s)return o;let i={scrollLeft:0,scrollTop:0},d=Da(1),c=Da(0),f=Ut(r);if((f||!f&&!s)&&((Io(r)!=="body"||Mr(l))&&(i=Dn(r)),Ut(r))){let p=Ja(r);d=Co(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-i.scrollLeft*d.x+c.x,y:o.y*d.y-i.scrollTop*d.y+c.y}}function ax(t){return Array.from(t.getClientRects())}function Qd(t){return Ja(la(t)).left+Dn(t).scrollLeft}function ox(t){let a=la(t),o=Dn(t),r=t.ownerDocument.body,n=ft(a.scrollWidth,a.clientWidth,r.scrollWidth,r.clientWidth),s=ft(a.scrollHeight,a.clientHeight,r.scrollHeight,r.clientHeight),l=-o.scrollLeft+Qd(t),u=-o.scrollTop;return Rt(r).direction==="rtl"&&(l+=ft(a.clientWidth,r.clientWidth)-n),{width:n,height:s,x:l,y:u}}function rx(t,a){let o=pt(t),r=la(t),n=o.visualViewport,s=r.clientWidth,l=r.clientHeight,u=0,i=0;if(n){s=n.width,l=n.height;let d=js();(!d||d&&a==="fixed")&&(u=n.offsetLeft,i=n.offsetTop)}return{width:s,height:l,x:u,y:i}}function nx(t,a){let o=Ja(t,!0,a==="fixed"),r=o.top+t.clientTop,n=o.left+t.clientLeft,s=Ut(t)?Co(t):Da(1),l=t.clientWidth*s.x,u=t.clientHeight*s.y,i=n*s.x,d=r*s.y;return{width:l,height:u,x:i,y:d}}function Hu(t,a,o){let r;if(a==="viewport")r=rx(t,o);else if(a==="document")r=ox(la(t));else if(At(a))r=nx(a,o);else{let n=Wd(t);r={...a,x:a.x-n.x,y:a.y-n.y}}return Cn(r)}function jd(t,a){let o=Fa(t);return o===a||!At(o)||wo(o)?!1:Rt(o).position==="fixed"||jd(o,a)}function sx(t,a){let o=a.get(t);if(o)return o;let r=Cr(t,[],!1).filter(u=>At(u)&&Io(u)!=="body"),n=null,s=Rt(t).position==="fixed",l=s?Fa(t):t;for(;At(l)&&!wo(l);){let u=Rt(l),i=Qs(l);!i&&u.position==="fixed"&&(n=null),(s?!i&&!n:!i&&u.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Mr(l)&&!i&&jd(t,l))?r=r.filter(c=>c!==l):n=u,l=Fa(l)}return a.set(t,r),r}function lx(t){let{element:a,boundary:o,rootBoundary:r,strategy:n}=t,l=[...o==="clippingAncestors"?Tn(a)?[]:sx(a,this._c):[].concat(o),r],u=l[0],i=l.reduce((d,c)=>{let f=Hu(a,c,n);return d.top=ft(f.top,d.top),d.right=Nt(f.right,d.right),d.bottom=Nt(f.bottom,d.bottom),d.left=ft(f.left,d.left),d},Hu(a,u,n));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}}function ix(t){let{width:a,height:o}=Gd(t);return{width:a,height:o}}function ux(t,a,o){let r=Ut(a),n=la(a),s=o==="fixed",l=Ja(t,!0,s,a),u={scrollLeft:0,scrollTop:0},i=Da(0);if(r||!r&&!s)if((Io(a)!=="body"||Mr(n))&&(u=Dn(a)),r){let f=Ja(a,!0,s,a);i.x=f.x+a.clientLeft,i.y=f.y+a.clientTop}else n&&(i.x=Qd(n));let d=l.left+u.scrollLeft-i.x,c=l.top+u.scrollTop-i.y;return{x:d,y:c,width:l.width,height:l.height}}function Is(t){return Rt(t).position==="static"}function _u(t,a){return!Ut(t)||Rt(t).position==="fixed"?null:a?a(t):t.offsetParent}function Xd(t,a){let o=pt(t);if(Tn(t))return o;if(!Ut(t)){let n=Fa(t);for(;n&&!wo(n);){if(At(n)&&!Is(n))return n;n=Fa(n)}return o}let r=_u(t,a);for(;r&&Z0(r)&&Is(r);)r=_u(r,a);return r&&wo(r)&&Is(r)&&!Qs(r)?o:r||Y0(t)||o}function cx(t){return Rt(t).direction==="rtl"}function fx(t,a){let o=null,r,n=la(t);function s(){var u;clearTimeout(r),(u=o)==null||u.disconnect(),o=null}function l(u,i){u===void 0&&(u=!1),i===void 0&&(i=1),s();let{left:d,top:c,width:f,height:p}=t.getBoundingClientRect();if(u||a(),!f||!p)return;let m=gn(c),g=gn(n.clientWidth-(d+f)),h=gn(n.clientHeight-(c+p)),x=gn(d),v={rootMargin:-m+"px "+-g+"px "+-h+"px "+-x+"px",threshold:ft(0,Nt(1,i))||1},C=!0;function L(I){let O=I[0].intersectionRatio;if(O!==i){if(!C)return l();O?l(!1,O):r=setTimeout(()=>{l(!1,1e-7)},1e3)}C=!1}try{o=new IntersectionObserver(L,{...v,root:n.ownerDocument})}catch{o=new IntersectionObserver(L,v)}o.observe(t)}return l(!0),s}function px(t,a,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:i=!1}=r,d=Xs(t),c=n||s?[...d?Cr(d):[],...Cr(a)]:[];c.forEach(y=>{n&&y.addEventListener("scroll",o,{passive:!0}),s&&y.addEventListener("resize",o)});let f=d&&u?fx(d,o):null,p=-1,m=null;l&&(m=new ResizeObserver(y=>{let[v]=y;v&&v.target===d&&m&&(m.unobserve(a),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(a)})),o()}),d&&!i&&m.observe(d),m.observe(a));let g,h=i?Ja(t):null;i&&x();function x(){let y=Ja(t);h&&(y.x!==h.x||y.y!==h.y||y.width!==h.width||y.height!==h.height)&&o(),h=y,g=requestAnimationFrame(x)}return o(),()=>{var y;c.forEach(v=>{n&&v.removeEventListener("scroll",o),s&&v.removeEventListener("resize",o)}),f?.(),(y=m)==null||y.disconnect(),m=null,i&&cancelAnimationFrame(g)}}function Ys(){let t=Ne(Zs);if(t===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return t}function Js(t){let a=Ys(),o=ue({size:Bs},t),[r,n]=pe(o,["ref","style","size"]),s=()=>a.currentPlacement().split("-")[0],l=Lx(a.contentRef),u=()=>l()?.getPropertyValue("background-color")||"none",i=()=>l()?.getPropertyValue(`border-${s()}-color`)||"none",d=()=>l()?.getPropertyValue(`border-${s()}-width`)||"0px",c=()=>Number.parseInt(d())*2*(Bs/r.size),f=()=>`rotate(${wx[s()]} ${Vu} ${Vu}) translate(0 2)`;return b(Ae,te({as:"div",ref(p){let m=rt(a.setArrowRef,r.ref);typeof m=="function"&&m(p)},"aria-hidden":"true",get style(){return Pn({position:"absolute","font-size":`${r.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:u(),stroke:i(),"stroke-width":c()},r.style)}},n,{get children(){let p=Cx(),m=p.firstChild;return W(()=>F(m,"transform",f())),p}}))}function Lx(t){let[a,o]=U();return Q(()=>{let r=t();r&&o(wh(r).getComputedStyle(r))}),a}function Ix(t){let a=Ys(),[o,r]=pe(t,["ref","style"]);return b(Ae,te({as:"div",ref(n){let s=rt(a.setPositionerRef,o.ref);typeof s=="function"&&s(n)},"data-popper-positioner":"",get style(){return Pn({position:"absolute",top:0,left:0,"min-width":"max-content"},o.style)}},r))}function Ku(t){let{x:a=0,y:o=0,width:r=0,height:n=0}=t??{};if(typeof DOMRect=="function")return new DOMRect(a,o,r,n);let s={x:a,y:o,width:r,height:n,top:o,right:a+r,bottom:o+n,left:a};return{...s,toJSON:()=>s}}function Sx(t,a){return{contextElement:t,getBoundingClientRect:()=>{let r=a(t);return r?Ku(r):t?t.getBoundingClientRect():Ku()}}}function kx(t){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(t)}function Mx(t,a){let[o,r]=t.split("-"),n=Px[o];return r?o==="left"||o==="right"?`${n} ${r==="start"?"top":"bottom"}`:r==="start"?`${n} ${a==="rtl"?"right":"left"}`:`${n} ${a==="rtl"?"left":"right"}`:`${n} center`}function Ax(t){let a=ue({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},t),[o,r]=U(),[n,s]=U(),[l,u]=U(a.placement),i=()=>Sx(a.anchorRef?.(),a.getAnchorRect),{direction:d}=Oa();async function c(){let p=i(),m=o(),g=n();if(!p||!m)return;let h=(g?.clientHeight||0)/2,x=typeof a.gutter=="number"?a.gutter+h:a.gutter??h;m.style.setProperty("--kb-popper-content-overflow-padding",`${a.overflowPadding}px`),p.getBoundingClientRect();let y=[mx(({placement:O})=>{let E=!!O.split("-")[1];return{mainAxis:x,crossAxis:E?void 0:a.shift,alignmentAxis:a.shift}})];if(a.flip!==!1){let O=typeof a.flip=="string"?a.flip.split(" "):void 0;if(O!==void 0&&!O.every(kx))throw new Error("`flip` expects a spaced-delimited list of placements");y.push(hx({padding:a.overflowPadding,fallbackPlacements:O}))}(a.slide||a.overlap)&&y.push(gx({mainAxis:a.slide,crossAxis:a.overlap,padding:a.overflowPadding})),y.push(xx({padding:a.overflowPadding,apply({availableWidth:O,availableHeight:E,rects:q}){let S=Math.round(q.reference.width);O=Math.floor(O),E=Math.floor(E),m.style.setProperty("--kb-popper-anchor-width",`${S}px`),m.style.setProperty("--kb-popper-content-available-width",`${O}px`),m.style.setProperty("--kb-popper-content-available-height",`${E}px`),a.sameWidth&&(m.style.width=`${S}px`),a.fitViewport&&(m.style.maxWidth=`${O}px`,m.style.maxHeight=`${E}px`)}})),a.hideWhenDetached&&y.push(yx({padding:a.detachedPadding})),g&&y.push(bx({element:g,padding:a.arrowPadding}));let v=await vx(p,m,{placement:a.placement,strategy:"absolute",middleware:y,platform:{...Zd,isRTL:()=>d()==="rtl"}});if(u(v.placement),a.onCurrentPlacementChange?.(v.placement),!m)return;m.style.setProperty("--kb-popper-content-transform-origin",Mx(v.placement,d()));let C=Math.round(v.x),L=Math.round(v.y),I;if(a.hideWhenDetached&&(I=v.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(m.style,{top:"0",left:"0",transform:`translate3d(${C}px, ${L}px, 0)`,visibility:I}),g&&v.middlewareData.arrow){let{x:O,y:E}=v.middlewareData.arrow,q=v.placement.split("-")[0];Object.assign(g.style,{left:O!=null?`${O}px`:"",top:E!=null?`${E}px`:"",[q]:"100%"})}}Q(()=>{let p=i(),m=o();if(!p||!m)return;let g=px(p,m,c,{elementResize:typeof ResizeObserver=="function"});Z(g)}),Q(()=>{let p=o(),m=a.contentRef?.();!p||!m||queueMicrotask(()=>{p.style.zIndex=getComputedStyle(m).zIndex})});let f={currentPlacement:l,contentRef:()=>a.contentRef?.(),setPositionerRef:r,setArrowRef:s};return b(Zs.Provider,{value:f,get children(){return a.children}})}function Rx(t){let a=o=>{o.key===zs.Escape&&t.onEscapeKeyDown?.(o)};Q(()=>{if(Ze||D(t.isDisabled))return;let o=t.ownerDocument?.()??zt();o.addEventListener("keydown",a),Z(()=>{o.removeEventListener("keydown",a)})})}function Tx(t,a){let o,r=qh,n=()=>zt(a()),s=f=>t.onPointerDownOutside?.(f),l=f=>t.onFocusOutside?.(f),u=f=>t.onInteractOutside?.(f),i=f=>{let p=f.target;return!(p instanceof HTMLElement)||p.closest(`[${yn}]`)||!vt(n(),p)||vt(a(),p)?!1:!t.shouldExcludeElement?.(p)},d=f=>{function p(){let m=a(),g=f.target;if(!m||!g||!i(f))return;let h=Ke([s,u]);g.addEventListener(Gu,h,{once:!0});let x=new CustomEvent(Gu,{bubbles:!1,cancelable:!0,detail:{originalEvent:f,isContextMenu:f.button===2||Ph(f)&&f.button===0}});g.dispatchEvent(x)}f.pointerType==="touch"?(n().removeEventListener("click",p),r=p,n().addEventListener("click",p,{once:!0})):p()},c=f=>{let p=a(),m=f.target;if(!p||!m||!i(f))return;let g=Ke([l,u]);m.addEventListener(Wu,g,{once:!0});let h=new CustomEvent(Wu,{bubbles:!1,cancelable:!0,detail:{originalEvent:f,isContextMenu:!1}});m.dispatchEvent(h)};Q(()=>{Ze||D(t.isDisabled)||(o=window.setTimeout(()=>{n().addEventListener("pointerdown",d,!0)},0),n().addEventListener("focusin",c,!0),Z(()=>{window.clearTimeout(o),n().removeEventListener("click",r),n().removeEventListener("pointerdown",d,!0),n().removeEventListener("focusin",c,!0)}))})}function Dx(){return Ne(Jd)}function Ex(t){let a,o=Dx(),[r,n]=pe(t,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),s=new Set([]),l=f=>{s.add(f);let p=o?.registerNestedLayer(f);return()=>{s.delete(f),p?.()}};Tx({shouldExcludeElement:f=>a?r.excludedElements?.some(p=>vt(p(),f))||[...s].some(p=>vt(p,f)):!1,onPointerDownOutside:f=>{!a||dt.isBelowPointerBlockingLayer(a)||!r.bypassTopMostLayerCheck&&!dt.isTopMostLayer(a)||(r.onPointerDownOutside?.(f),r.onInteractOutside?.(f),f.defaultPrevented||r.onDismiss?.())},onFocusOutside:f=>{r.onFocusOutside?.(f),r.onInteractOutside?.(f),f.defaultPrevented||r.onDismiss?.()}},()=>a),Rx({ownerDocument:()=>zt(a),onEscapeKeyDown:f=>{!a||!dt.isTopMostLayer(a)||(r.onEscapeKeyDown?.(f),!f.defaultPrevented&&r.onDismiss&&(f.preventDefault(),r.onDismiss()))}}),aa(()=>{if(!a)return;dt.addLayer({node:a,isPointerBlocking:r.disableOutsidePointerEvents,dismiss:r.onDismiss});let f=o?.registerNestedLayer(a);dt.assignPointerEventToLayers(),dt.disableBodyPointerEvents(a),Z(()=>{a&&(dt.removeLayer(a),f?.(),dt.assignPointerEventToLayers(),dt.restoreBodyPointerEvents(a))})}),Q(qt([()=>a,()=>r.disableOutsidePointerEvents],([f,p])=>{if(!f)return;let m=dt.find(f);m&&m.isPointerBlocking!==p&&(m.isPointerBlocking=p,dt.assignPointerEventToLayers()),p&&dt.disableBodyPointerEvents(f),Z(()=>{dt.restoreBodyPointerEvents(f)})},{defer:!0}));let c={registerNestedLayer:l};return b(Jd.Provider,{value:c,get children(){return b(Ae,te({as:"div",ref(f){let p=rt(m=>a=m,r.ref);typeof p=="function"&&p(f)}},n))}})}function ec(t={}){let[a,o]=Md({value:()=>D(t.open),defaultValue:()=>!!D(t.defaultOpen),onChange:l=>t.onOpenChange?.(l)}),r=()=>{o(!0)},n=()=>{o(!1)};return{isOpen:a,setIsOpen:o,open:r,close:n,toggle:()=>{a()?n():r()}}}function ac(){let t=Ne(tc);if(t===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return t}function Ar(){let t=Ne(oc);if(t===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return t}function rc(t){let a=kr(),o=ac(),r=`${a.generateId("item")}-${ut()}`,n=ue({id:r},t),[s,l]=pe(n,["value","disabled","onPointerDown"]),[u,i]=U(),[d,c]=U(),[f,p]=U(),[m,g]=U(),[h,x]=U(!1),y=P(()=>o.isSelectedValue(s.value)),v=P(()=>s.disabled||a.isDisabled()||!1),C=O=>{Me(O,s.onPointerDown),h()&&O.preventDefault()},L=P(()=>({...a.dataset(),"data-disabled":v()?"":void 0,"data-checked":y()?"":void 0})),I={value:()=>s.value,dataset:L,isSelected:y,isDisabled:v,inputId:u,labelId:d,descriptionId:f,inputRef:m,select:()=>o.setSelectedValue(s.value),generateId:Sr(()=>l.id),registerInput:Ct(i),registerLabel:Ct(c),registerDescription:Ct(p),setIsFocused:x,setInputRef:g};return b(oc.Provider,{value:I,get children(){return b(Ae,te({as:"div",role:"group",onPointerDown:C},L,l))}})}function nc(t){let a=Ar(),o=ue({id:a.generateId("control")},t),[r,n]=pe(o,["onClick","onKeyDown"]);return b(Ae,te({as:"div",onClick:u=>{Me(u,r.onClick),a.select(),a.inputRef()?.focus()},onKeyDown:u=>{Me(u,r.onKeyDown),u.key===zs.Space&&(a.select(),a.inputRef()?.focus())}},()=>a.dataset(),n))}function sc(t){let a=Ar(),o=ue({id:a.generateId("description")},t);return Q(()=>Z(a.registerDescription(o.id))),b(Ae,te({as:"div"},()=>a.dataset(),o))}function lc(t){let a=Ar(),o=ue({id:a.generateId("indicator")},t),[r,n]=pe(o,["ref","forceMount"]),[s,l]=U(),{present:u}=qd({show:()=>r.forceMount||a.isSelected(),element:()=>s()??null});return b(j,{get when(){return u()},get children(){return b(Ae,te({as:"div",ref(i){let d=rt(l,r.ref);typeof d=="function"&&d(i)}},()=>a.dataset(),n))}})}function ic(t){let a=kr(),o=ac(),r=Ar(),n=ue({id:r.generateId("input")},t),[s,l]=pe(n,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),u=()=>[s["aria-labelledby"],r.labelId(),s["aria-labelledby"]!=null&&l["aria-label"]!=null?l.id:void 0].filter(Boolean).join(" ")||void 0,i=()=>[s["aria-describedby"],r.descriptionId(),o.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[d,c]=U(!1),f=g=>{if(Me(g,s.onChange),g.stopPropagation(),!d()){o.setSelectedValue(r.value());let h=g.target;h.checked=r.isSelected()}c(!1)},p=g=>{Me(g,s.onFocus),r.setIsFocused(!0)},m=g=>{Me(g,s.onBlur),r.setIsFocused(!1)};return Q(qt([()=>r.isSelected(),()=>r.value()],g=>{if(!g[0]&&g[1]===r.value())return;c(!0);let h=r.inputRef();h?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),h?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},{defer:!0})),Q(()=>Z(r.registerInput(l.id))),b(Ae,te({as:"input",ref(g){let h=rt(r.setInputRef,s.ref);typeof h=="function"&&h(g)},type:"radio",get name(){return a.name()},get value(){return r.value()},get checked(){return r.isSelected()},get required(){return a.isRequired()},get disabled(){return r.isDisabled()},get readonly(){return a.isReadOnly()},get style(){return Pn({...Id},s.style)},get"aria-labelledby"(){return u()},get"aria-describedby"(){return i()},onChange:f,onFocus:p,onBlur:m},()=>r.dataset(),l))}function uc(t){let a=Ar(),o=ue({id:a.generateId("label")},t);return Q(()=>Z(a.registerLabel(o.id))),b(Ae,te({as:"label",get for(){return a.inputId()}},()=>a.dataset(),o))}function dc(t){return b(_h,te({as:"span"},t))}function cc(t){let a,o=`radiogroup-${ut()}`,r=ue({id:o,orientation:"vertical"},t),[n,s,l]=pe(r,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],Uh),[u,i]=Pr({value:()=>n.value,defaultValue:()=>n.defaultValue,onChange:g=>n.onChange?.(g)}),{formControlContext:d}=Hh(s);Vh(()=>a,()=>i(n.defaultValue??""));let c=()=>d.getAriaLabelledBy(D(s.id),l["aria-label"],n["aria-labelledby"]),f=()=>d.getAriaDescribedBy(n["aria-describedby"]),p=g=>g===u(),m={ariaDescribedBy:f,isSelectedValue:p,setSelectedValue:g=>{if(!(d.isReadOnly()||d.isDisabled())&&(i(g),a))for(let h of a.querySelectorAll("[type='radio']")){let x=h;x.checked=p(x.value)}}};return b(Sd.Provider,{value:d,get children(){return b(tc.Provider,{value:m,get children(){return b(Ae,te({as:"div",ref(g){let h=rt(x=>a=x,n.ref);typeof h=="function"&&h(g)},role:"radiogroup",get id(){return D(s.id)},get"aria-invalid"(){return d.validationState()==="invalid"||void 0},get"aria-required"(){return d.isRequired()||void 0},get"aria-disabled"(){return d.isDisabled()||void 0},get"aria-readonly"(){return d.isReadOnly()||void 0},get"aria-orientation"(){return n.orientation},get"aria-labelledby"(){return c()},get"aria-describedby"(){return f()}},()=>d.dataset(),l))}})}})}function Bx(t,a,o){let r=c0({usage:"search",sensitivity:"base"}),n=P(()=>{let s=D(t.keyboardDelegate);return s||new Ox(t.collection,a,r)});return y0({selectionManager:()=>D(t.selectionManager),keyboardDelegate:n,autoFocus:()=>D(t.autoFocus),deferAutoFocus:()=>D(t.deferAutoFocus),shouldFocusWrap:()=>D(t.shouldFocusWrap),disallowEmptySelection:()=>D(t.disallowEmptySelection),selectOnFocus:()=>D(t.selectOnFocus),disallowTypeAhead:()=>D(t.disallowTypeAhead),shouldUseVirtualFocus:()=>D(t.shouldUseVirtualFocus),allowsTabNavigation:()=>D(t.allowsTabNavigation),isVirtualized:()=>D(t.isVirtualized),scrollToKey:s=>D(t.scrollToKey)?.(s),orientation:()=>D(t.orientation)},a)}function $x(t,a){let[o,r]=U(!1),n={pause(){r(!0)},resume(){r(!1)}},s=null,l=g=>t.onMountAutoFocus?.(g),u=g=>t.onUnmountAutoFocus?.(g),i=()=>zt(a()),d=()=>{let g=i().createElement("span");return g.setAttribute("data-focus-trap",""),g.tabIndex=0,Object.assign(g.style,Id),g},c=()=>{let g=a();return g?wd(g,!0).filter(h=>!h.hasAttribute("data-focus-trap")):[]},f=()=>{let g=c();return g.length>0?g[0]:null},p=()=>{let g=c();return g.length>0?g[g.length-1]:null},m=()=>{let g=a();if(!g)return!1;let h=hr(g);return!h||vt(g,h)?!1:Ld(h)};Q(()=>{if(Ze)return;let g=a();if(!g)return;ju.add(n);let h=hr(g);if(!vt(g,h)){let y=new CustomEvent(Ss,Qu);g.addEventListener(Ss,l),g.dispatchEvent(y),y.defaultPrevented||setTimeout(()=>{Je(f()),hr(g)===h&&Je(g)},0)}Z(()=>{g.removeEventListener(Ss,l),setTimeout(()=>{let y=new CustomEvent(ks,Qu);m()&&y.preventDefault(),g.addEventListener(ks,u),g.dispatchEvent(y),y.defaultPrevented||Je(h??i().body),g.removeEventListener(ks,u),ju.remove(n)},0)})}),Q(()=>{if(Ze)return;let g=a();if(!g||!D(t.trapFocus)||o())return;let h=y=>{let v=y.target;v?.closest(`[${yn}]`)||(vt(g,v)?s=v:Je(s))},x=y=>{let C=y.relatedTarget??hr(g);C?.closest(`[${yn}]`)||vt(g,C)||Je(s)};i().addEventListener("focusin",h),i().addEventListener("focusout",x),Z(()=>{i().removeEventListener("focusin",h),i().removeEventListener("focusout",x)})}),Q(()=>{if(Ze)return;let g=a();if(!g||!D(t.trapFocus)||o())return;let h=d();g.insertAdjacentElement("afterbegin",h);let x=d();g.insertAdjacentElement("beforeend",x);function y(C){let L=f(),I=p();C.relatedTarget===L?Je(I):Je(L)}h.addEventListener("focusin",y),x.addEventListener("focusin",y);let v=new MutationObserver(C=>{for(let L of C)L.previousSibling===x&&(x.remove(),g.insertAdjacentElement("beforeend",x)),L.nextSibling===h&&(h.remove(),g.insertAdjacentElement("afterbegin",h))});v.observe(g,{childList:!0,subtree:!1}),Z(()=>{h.removeEventListener("focusin",y),x.removeEventListener("focusin",y),h.remove(),x.remove(),v.disconnect()})})}function Nx(t){Q(()=>{D(t.isDisabled)||Z(zx(D(t.targets),D(t.root)))})}function zx(t,a=document.body){let o=new Set(t),r=new Set,n=i=>{for(let p of i.querySelectorAll(`[${qx}], [${yn}]`))o.add(p);let d=p=>{if(o.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let m of o)if(p.contains(m))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),f=d(i);if(f===NodeFilter.FILTER_ACCEPT&&s(i),f!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)s(p),p=c.nextNode()}},s=i=>{let d=mr.get(i)??0;i.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&i.setAttribute("aria-hidden","true"),r.add(i),mr.set(i,d+1))};yt.length&&yt[yt.length-1].disconnect(),n(a);let l=new MutationObserver(i=>{for(let d of i)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...o,...r].some(c=>c.contains(d.target))){for(let c of d.removedNodes)c instanceof Element&&(o.delete(c),r.delete(c));for(let c of d.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?o.add(c):c instanceof Element&&n(c)}});l.observe(a,{childList:!0,subtree:!0});let u={observe(){l.observe(a,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return yt.push(u),()=>{l.disconnect();for(let i of r){let d=mr.get(i);if(d==null)return;d===1?(i.removeAttribute("aria-hidden"),mr.delete(i)):mr.set(i,d-1)}u===yt[yt.length-1]?(yt.pop(),yt.length&&yt[yt.length-1].observe()):yt.splice(yt.indexOf(u),1)}}function pc(){return Ne(fc)}function ia(){let t=pc();if(t===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return t}function el(){let t=Ne(mc);if(t===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return t}function Ht(){let t=Ne(gc);if(t===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return t}function tl(t){let a,o=Ht(),r=ia(),n=ue({id:o.generateId(`item-${ut()}`)},t),[s,l]=pe(n,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[u,i]=U(),[d,c]=U(),[f,p]=U(),m=()=>r.listState().selectionManager(),g=()=>l.id,h=()=>m().focusedKey()===g(),x=()=>{s.onSelect?.(),s.closeOnSelect&&setTimeout(()=>{r.close(!0)})};o0({getItem:()=>({ref:()=>a,type:"item",key:g(),textValue:s.textValue??f()?.textContent??a?.textContent??"",disabled:s.disabled??!1})});let y=$d({key:g,selectionManager:m,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>s.disabled},()=>a),v=S=>{Me(S,s.onPointerMove),S.pointerType==="mouse"&&(s.disabled?r.onItemLeave(S):(r.onItemEnter(S),S.defaultPrevented||(Je(S.currentTarget),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(g()))))},C=S=>{Me(S,s.onPointerLeave),S.pointerType==="mouse"&&r.onItemLeave(S)},L=S=>{Me(S,s.onPointerUp),!s.disabled&&S.button===0&&x()},I=S=>{if(Me(S,s.onKeyDown),!S.repeat&&!s.disabled)switch(S.key){case"Enter":case" ":x();break}},O=P(()=>{if(s.indeterminate)return"mixed";if(s.checked!=null)return s.checked}),E=P(()=>({"data-indeterminate":s.indeterminate?"":void 0,"data-checked":s.checked&&!s.indeterminate?"":void 0,"data-disabled":s.disabled?"":void 0,"data-highlighted":h()?"":void 0})),q={isChecked:()=>s.checked,dataset:E,setLabelRef:p,generateId:Sr(()=>l.id),registerLabel:Ct(i),registerDescription:Ct(c)};return b(mc.Provider,{value:q,get children(){return b(Ae,te({as:"div",ref(S){let M=rt(T=>a=T,s.ref);typeof M=="function"&&M(S)},get tabIndex(){return y.tabIndex()},get"aria-checked"(){return O()},get"aria-disabled"(){return s.disabled},get"aria-labelledby"(){return u()},get"aria-describedby"(){return d()},get"data-key"(){return y.dataKey()},get onPointerDown(){return Ke([s.onPointerDown,y.onPointerDown])},get onPointerUp(){return Ke([L,y.onPointerUp])},get onClick(){return Ke([s.onClick,y.onClick])},get onKeyDown(){return Ke([I,y.onKeyDown])},get onMouseDown(){return Ke([s.onMouseDown,y.onMouseDown])},get onFocus(){return Ke([s.onFocus,y.onFocus])},onPointerMove:v,onPointerLeave:C},E,l))}})}function hc(t){let a=ue({closeOnSelect:!1},t),[o,r]=pe(a,["checked","defaultChecked","onChange","onSelect"]),n=Qh({isSelected:()=>o.checked,defaultIsSelected:()=>o.defaultChecked,onSelectedChange:l=>o.onChange?.(l),isDisabled:()=>r.disabled});return b(tl,te({role:"menuitemcheckbox",get checked(){return n.isSelected()},onSelect:()=>{o.onSelect?.(),n.toggle()}},r))}function En(){return Ne(Xx)}function xc(t){let a=Ht(),o=ia(),r=En(),{direction:n}=Oa(),s=ue({id:a.generateId("trigger")},t),[l,u]=pe(s,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]),i=()=>a.value();r!==void 0&&(i=()=>a.value()??l.id,r.lastValue()===void 0&&r.setLastValue(i));let d=An(()=>o.triggerRef(),()=>"button"),c=P(()=>d()==="a"&&o.triggerRef()?.getAttribute("href")!=null);Q(qt(()=>r?.value(),y=>{c()&&y===i()&&o.triggerRef()?.focus()}));let f=()=>{r!==void 0?o.isOpen()?r.value()===i()&&r.closeMenu():(r.autoFocusMenu()||r.setAutoFocusMenu(!0),o.open(!1)):o.toggle(!0)},p=y=>{Me(y,l.onPointerDown),y.currentTarget.dataset.pointerType=y.pointerType,!l.disabled&&y.pointerType!=="touch"&&y.button===0&&f()},m=y=>{Me(y,l.onClick),l.disabled||y.currentTarget.dataset.pointerType==="touch"&&f()},g=y=>{if(Me(y,l.onKeyDown),!l.disabled){if(c())switch(y.key){case"Enter":case" ":return}switch(y.key){case"Enter":case" ":case td.first(a.orientation()):y.stopPropagation(),y.preventDefault(),zh(y.currentTarget),o.open("first"),r?.setAutoFocusMenu(!0),r?.setValue(i);break;case td.last(a.orientation()):y.stopPropagation(),y.preventDefault(),o.open("last");break;case wr.next(n(),a.orientation()):if(r===void 0)break;y.stopPropagation(),y.preventDefault(),r.nextMenu();break;case wr.previous(n(),a.orientation()):if(r===void 0)break;y.stopPropagation(),y.preventDefault(),r.previousMenu();break}}},h=y=>{Me(y,l.onMouseOver),o.triggerRef()?.dataset.pointerType!=="touch"&&!l.disabled&&r!==void 0&&r.value()!==void 0&&r.setValue(i)},x=y=>{Me(y,l.onFocus),r!==void 0&&y.currentTarget.dataset.pointerType!=="touch"&&r.setValue(i)};return Q(()=>Z(o.registerTriggerId(l.id))),b(Ks,te({ref(y){let v=rt(o.setTriggerRef,l.ref);typeof v=="function"&&v(y)},get"data-kb-menu-value-trigger"(){return a.value()},get id(){return l.id},get disabled(){return l.disabled},"aria-haspopup":"true",get"aria-expanded"(){return o.isOpen()},get"aria-controls"(){return P(()=>!!o.isOpen())()?o.contentId():void 0},get"data-highlighted"(){return i()!==void 0&&r?.value()===i()?!0:void 0},get tabIndex(){return r!==void 0?r.value()===i()||r.lastValue()===i()?0:-1:void 0},onPointerDown:p,onMouseOver:h,onClick:m,onKeyDown:g,onFocus:x,role:r!==void 0?"menuitem":void 0},()=>o.dataset(),u))}function yc(){return Ne(Zx)}function bc(t){let a,o=Ht(),r=ia(),n=En(),s=yc(),{direction:l}=Oa(),u=ue({id:o.generateId(`content-${ut()}`)},t),[i,d]=pe(u,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),c=0,f=()=>r.parentMenuContext()==null&&n===void 0&&o.isModal(),p=Bx({selectionManager:r.listState().selectionManager,collection:r.listState().collection,autoFocus:r.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!r.listState().selectionManager().isFocused(),orientation:()=>o.orientation()==="horizontal"?"vertical":"horizontal"},()=>a);$x({trapFocus:()=>f()&&r.isOpen(),onMountAutoFocus:C=>{n===void 0&&i.onOpenAutoFocus?.(C)},onUnmountAutoFocus:i.onCloseAutoFocus},()=>a);let m=C=>{if(vt(C.currentTarget,C.target)&&(C.key==="Tab"&&r.isOpen()&&C.preventDefault(),n!==void 0&&C.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(C.key){case wr.next(l(),o.orientation()):C.stopPropagation(),C.preventDefault(),r.close(!0),n.setAutoFocusMenu(!0),n.nextMenu();break;case wr.previous(l(),o.orientation()):if(C.currentTarget.hasAttribute("data-closed"))break;C.stopPropagation(),C.preventDefault(),r.close(!0),n.setAutoFocusMenu(!0),n.previousMenu();break}},g=C=>{i.onEscapeKeyDown?.(C),n?.setAutoFocusMenu(!1),r.close(!0)},h=C=>{i.onFocusOutside?.(C),o.isModal()&&C.preventDefault()},x=C=>{Me(C,i.onPointerEnter),r.isOpen()&&(r.parentMenuContext()?.listState().selectionManager().setFocused(!1),r.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},y=C=>{if(Me(C,i.onPointerMove),C.pointerType!=="mouse")return;let L=C.target,I=c!==C.clientX;vt(C.currentTarget,L)&&I&&(r.setPointerDir(C.clientX>c?"right":"left"),c=C.clientX)};Q(()=>Z(r.registerContentId(i.id)));let v={ref:rt(C=>{r.setContentRef(C),a=C},i.ref),role:"menu",get id(){return i.id},get tabIndex(){return p.tabIndex()},get"aria-labelledby"(){return r.triggerId()},onKeyDown:Ke([i.onKeyDown,p.onKeyDown,m]),onMouseDown:Ke([i.onMouseDown,p.onMouseDown]),onFocusIn:Ke([i.onFocusIn,p.onFocusIn]),onFocusOut:Ke([i.onFocusOut,p.onFocusOut]),onPointerEnter:x,onPointerMove:y,get"data-orientation"(){return o.orientation()}};return b(j,{get when(){return r.contentPresent()},get children(){return b(j,{get when(){return s===void 0||r.parentMenuContext()!=null},get fallback(){return b(Ae,te({as:"div"},()=>r.dataset(),v,d))},get children(){return b(Yd.Positioner,{get children(){return b(Ex,te({get disableOutsidePointerEvents(){return P(()=>!!f())()&&r.isOpen()},get excludedElements(){return[r.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return Pn({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},i.style)},onEscapeKeyDown:g,onFocusOutside:h,get onDismiss(){return r.close}},()=>r.dataset(),v,d))}})}})}})}function Yx(t){let a,o=Ht(),r=ia(),[n,s]=pe(t,["ref"]);return jx({element:()=>a??null,enabled:()=>r.contentPresent()&&o.preventScroll()}),b(bc,te({ref(l){let u=rt(i=>{a=i},n.ref);typeof u=="function"&&u(l)}},s))}function Jx(){let t=Ne(vc);if(t===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return t}function al(t){let a=Ht(),o=ue({id:a.generateId(`group-${ut()}`)},t),[r,n]=U(),s={generateId:Sr(()=>o.id),registerLabelId:Ct(n)};return b(vc.Provider,{value:s,get children(){return b(Ae,te({as:"div",role:"group",get"aria-labelledby"(){return r()}},o))}})}function Cc(t){let a=Jx(),o=ue({id:a.generateId("label")},t),[r,n]=pe(o,["id"]);return Q(()=>Z(a.registerLabelId(r.id))),b(Ae,te({as:"span",get id(){return r.id},"aria-hidden":"true"},n))}function wc(t){let a=ia(),o=ue({children:"\u25BC"},t);return b(Ae,te({as:"span","aria-hidden":"true"},()=>a.dataset(),o))}function Lc(t){return b(tl,te({role:"menuitem",closeOnSelect:!0},t))}function Ic(t){let a=el(),o=ue({id:a.generateId("description")},t),[r,n]=pe(o,["id"]);return Q(()=>Z(a.registerDescription(r.id))),b(Ae,te({as:"div",get id(){return r.id}},()=>a.dataset(),n))}function Sc(t){let a=el(),o=ue({id:a.generateId("indicator")},t),[r,n]=pe(o,["forceMount"]);return b(j,{get when(){return r.forceMount||a.isChecked()},get children(){return b(Ae,te({as:"div"},()=>a.dataset(),n))}})}function kc(t){let a=el(),o=ue({id:a.generateId("label")},t),[r,n]=pe(o,["ref","id"]);return Q(()=>Z(a.registerLabel(r.id))),b(Ae,te({as:"div",ref(s){let l=rt(a.setLabelRef,r.ref);typeof l=="function"&&l(s)},get id(){return r.id}},()=>a.dataset(),n))}function Pc(t){let a=ia();return b(j,{get when(){return a.contentPresent()},get children(){return b(ys,t)}})}function e1(){let t=Ne(Mc);if(t===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return t}function Ac(t){let o=Ht().generateId(`radiogroup-${ut()}`),r=ue({id:o},t),[n,s]=pe(r,["value","defaultValue","onChange","disabled"]),[l,u]=Pr({value:()=>n.value,defaultValue:()=>n.defaultValue,onChange:d=>n.onChange?.(d)}),i={isDisabled:()=>n.disabled,isSelectedValue:d=>d===l(),setSelectedValue:u};return b(Mc.Provider,{value:i,get children(){return b(al,s)}})}function Rc(t){let a=e1(),o=ue({closeOnSelect:!1},t),[r,n]=pe(o,["value","onSelect"]);return b(tl,te({role:"menuitemradio",get checked(){return a.isSelectedValue(r.value)},onSelect:()=>{r.onSelect?.(),a.setSelectedValue(r.value)}},n))}function t1(t,a,o){let r=t.split("-")[0],n=o.getBoundingClientRect(),s=[],l=a.clientX,u=a.clientY;switch(r){case"top":s.push([l,u+5]),s.push([n.left,n.bottom]),s.push([n.left,n.top]),s.push([n.right,n.top]),s.push([n.right,n.bottom]);break;case"right":s.push([l-5,u]),s.push([n.left,n.top]),s.push([n.right,n.top]),s.push([n.right,n.bottom]),s.push([n.left,n.bottom]);break;case"bottom":s.push([l,u-5]),s.push([n.right,n.top]),s.push([n.right,n.bottom]),s.push([n.left,n.bottom]),s.push([n.left,n.top]);break;case"left":s.push([l+5,u]),s.push([n.right,n.bottom]),s.push([n.left,n.bottom]),s.push([n.left,n.top]),s.push([n.right,n.top]);break}return s}function a1(t,a){return a?Nh([t.clientX,t.clientY],a):!1}function Tc(t){let a=Ht(),o=Rd(),r=pc(),n=En(),s=yc(),l=ue({placement:a.orientation()==="horizontal"?"bottom-start":"right-start"},t),[u,i]=pe(l,["open","defaultOpen","onOpenChange"]),d=0,c=null,f="right",[p,m]=U(),[g,h]=U(),[x,y]=U(),[v,C]=U(),[L,I]=U(!0),[O,E]=U(i.placement),[q,S]=U([]),[M,T]=U([]),{DomCollectionProvider:k}=a0({items:M,onItemsChange:T}),Y=ec({open:()=>u.open,defaultOpen:()=>u.defaultOpen,onOpenChange:ee=>u.onOpenChange?.(ee)}),{present:ae}=qd({show:()=>a.forceMount()||Y.isOpen(),element:()=>v()??null}),ce=v0({selectionMode:"none",dataSource:M}),fe=ee=>{I(ee),Y.open()},ye=(ee=!1)=>{Y.close(),ee&&r&&r.close(!0)},be=ee=>{I(ee),Y.toggle()},me=()=>{let ee=v();ee&&(Je(ee),ce.selectionManager().setFocused(!0),ce.selectionManager().setFocusedKey(void 0))},Ee=()=>{s!=null?setTimeout(()=>me()):me()},ke=ee=>{S(je=>[...je,ee]);let St=r?.registerNestedMenu(ee);return()=>{S(je=>Rs(je,ee)),St?.()}},Be=ee=>f===c?.side&&a1(ee,c?.area),tt=ee=>{Be(ee)&&ee.preventDefault()},$=ee=>{Be(ee)||Ee()},Fe=ee=>{Be(ee)&&ee.preventDefault()};Nx({isDisabled:()=>!(r==null&&Y.isOpen()&&a.isModal()),targets:()=>[v(),...q()].filter(Boolean)}),Q(()=>{let ee=v();if(!ee||!r)return;let St=r.registerNestedMenu(ee);Z(()=>{St()})}),Q(()=>{r===void 0&&n?.registerMenu(a.value(),[v(),...q()])}),Q(()=>{r!==void 0||n===void 0||(n.value()===a.value()?(x()?.focus(),n.autoFocusMenu()&&fe(!0)):ye())}),Q(()=>{r!==void 0||n===void 0||Y.isOpen()&&n.setValue(a.value())}),Z(()=>{r===void 0&&n?.unregisterMenu(a.value())});let Ca={dataset:P(()=>({"data-expanded":Y.isOpen()?"":void 0,"data-closed":Y.isOpen()?void 0:""})),isOpen:Y.isOpen,contentPresent:ae,nestedMenus:q,currentPlacement:O,pointerGraceTimeoutId:()=>d,autoFocus:L,listState:()=>ce,parentMenuContext:()=>r,triggerRef:x,contentRef:v,triggerId:p,contentId:g,setTriggerRef:y,setContentRef:C,open:fe,close:ye,toggle:be,focusContent:Ee,onItemEnter:tt,onItemLeave:$,onTriggerLeave:Fe,setPointerDir:ee=>f=ee,setPointerGraceTimeoutId:ee=>d=ee,setPointerGraceIntent:ee=>c=ee,registerNestedMenu:ke,registerItemToParentDomCollection:o?.registerItem,registerTriggerId:Ct(m),registerContentId:Ct(h)};return b(k,{get children(){return b(fc.Provider,{value:Ca,get children(){return b(j,{when:s===void 0,get fallback(){return i.children},get children(){return b(Yd,te({anchorRef:x,contentRef:v,onCurrentPlacementChange:E},i))}})}})}})}function Dc(t){let{direction:a}=Oa();return b(Tc,te({get placement(){return a()==="rtl"?"left-start":"right-start"},flip:!0},t))}function Ec(t){let a=ia(),o=Ht(),[r,n]=pe(t,["onFocusOutside","onKeyDown"]),{direction:s}=Oa();return b(bc,te({onOpenAutoFocus:c=>{c.preventDefault()},onCloseAutoFocus:c=>{c.preventDefault()},onFocusOutside:c=>{r.onFocusOutside?.(c);let f=c.target;vt(a.triggerRef(),f)||a.close()},onKeyDown:c=>{Me(c,r.onKeyDown);let f=vt(c.currentTarget,c.target),p=o1.close(s(),o.orientation()).includes(c.key),m=a.parentMenuContext()!=null;f&&p&&m&&(a.close(),Je(a.triggerRef()))}},n))}function Fc(t){let a,o=Ht(),r=ia(),n=ue({id:o.generateId(`sub-trigger-${ut()}`)},t),[s,l]=pe(n,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),u=null,i=()=>{Ze||(u&&window.clearTimeout(u),u=null)},{direction:d}=Oa(),c=()=>s.id,f=()=>{let C=r.parentMenuContext();if(C==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return C.listState().selectionManager()},p=()=>r.listState().collection(),m=()=>f().focusedKey()===c(),g=$d({key:c,selectionManager:f,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>s.disabled},()=>a),h=C=>{Me(C,s.onClick),!r.isOpen()&&!s.disabled&&r.open(!0)},x=C=>{if(Me(C,s.onPointerMove),C.pointerType!=="mouse")return;let L=r.parentMenuContext();if(L?.onItemEnter(C),!C.defaultPrevented){if(s.disabled){L?.onItemLeave(C);return}!r.isOpen()&&!u&&(r.parentMenuContext()?.setPointerGraceIntent(null),u=window.setTimeout(()=>{r.open(!1),i()},100)),L?.onItemEnter(C),C.defaultPrevented||(r.listState().selectionManager().isFocused()&&(r.listState().selectionManager().setFocused(!1),r.listState().selectionManager().setFocusedKey(void 0)),Je(C.currentTarget),L?.listState().selectionManager().setFocused(!0),L?.listState().selectionManager().setFocusedKey(c()))}},y=C=>{if(Me(C,s.onPointerLeave),C.pointerType!=="mouse")return;i();let L=r.parentMenuContext(),I=r.contentRef();if(I){L?.setPointerGraceIntent({area:t1(r.currentPlacement(),C,I),side:r.currentPlacement().split("-")[0]}),window.clearTimeout(L?.pointerGraceTimeoutId());let O=window.setTimeout(()=>{L?.setPointerGraceIntent(null)},300);L?.setPointerGraceTimeoutId(O)}else{if(L?.onTriggerLeave(C),C.defaultPrevented)return;L?.setPointerGraceIntent(null)}L?.onItemLeave(C)},v=C=>{Me(C,s.onKeyDown),!C.repeat&&(s.disabled||r1.open(d(),o.orientation()).includes(C.key)&&(C.stopPropagation(),C.preventDefault(),f().setFocused(!1),f().setFocusedKey(void 0),r.isOpen()||r.open("first"),r.focusContent(),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(p().getFirstKey())))};return Q(()=>{if(r.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");let C=r.registerItemToParentDomCollection({ref:()=>a,type:"item",key:c(),textValue:s.textValue??a?.textContent??"",disabled:s.disabled??!1});Z(C)}),Q(qt(()=>r.parentMenuContext()?.pointerGraceTimeoutId(),C=>{Z(()=>{window.clearTimeout(C),r.parentMenuContext()?.setPointerGraceIntent(null)})})),Q(()=>Z(r.registerTriggerId(s.id))),Z(()=>{i()}),b(Ae,te({as:"div",ref(C){let L=rt(I=>{r.setTriggerRef(I),a=I},s.ref);typeof L=="function"&&L(C)},get id(){return s.id},role:"menuitem",get tabIndex(){return g.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return P(()=>!!r.isOpen())()?r.contentId():void 0},get"aria-disabled"(){return s.disabled},get"data-key"(){return g.dataKey()},get"data-highlighted"(){return m()?"":void 0},get"data-disabled"(){return s.disabled?"":void 0},get onPointerDown(){return Ke([s.onPointerDown,g.onPointerDown])},get onPointerUp(){return Ke([s.onPointerUp,g.onPointerUp])},get onClick(){return Ke([h,g.onClick])},get onKeyDown(){return Ke([v,g.onKeyDown])},get onMouseDown(){return Ke([s.onMouseDown,g.onMouseDown])},get onFocus(){return Ke([s.onFocus,g.onFocus])},onPointerMove:x,onPointerLeave:y},()=>r.dataset(),l))}function n1(t){let a=En(),o=`menu-${ut()}`,r=ue({id:o,modal:!0},t),[n,s]=pe(r,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),l=ec({open:()=>n.open,defaultOpen:()=>n.defaultOpen,onOpenChange:i=>n.onOpenChange?.(i)}),u={isModal:()=>n.modal??!0,preventScroll:()=>n.preventScroll??u.isModal(),forceMount:()=>n.forceMount??!1,generateId:Sr(()=>n.id),value:()=>n.value,orientation:()=>n.orientation??a?.orientation()??"horizontal"};return b(gc.Provider,{value:u,get children(){return b(Tc,te({get open(){return l.isOpen()},get onOpenChange(){return l.setIsOpen}},s))}})}function Fn(t){let a,o=ue({orientation:"horizontal"},t),[r,n]=pe(o,["ref","orientation"]),s=An(()=>a,()=>"hr");return b(Ae,te({as:"hr",ref(l){let u=rt(i=>a=i,r.ref);typeof u=="function"&&u(l)},get role(){return s()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},n))}function Oc(t){let a=Ht(),o=ia(),[r,n]=pe(t,["onCloseAutoFocus","onInteractOutside"]),s=!1;return b(Yx,te({onCloseAutoFocus:i=>{r.onCloseAutoFocus?.(i),s||Je(o.triggerRef()),s=!1,i.preventDefault()},onInteractOutside:i=>{r.onInteractOutside?.(i),(!a.isModal()||i.detail.isContextMenu)&&(s=!0)}},n))}function Bc(t){let a=`dropdownmenu-${ut()}`,o=ue({id:a},t);return b(n1,o)}function R1(){return u1()}function qc(){return d1()}function yr(){return c1()}function od(){return f1()}function rd(){return ol()}function T1(){return(()=>{var t=ol();return t.style.setProperty("transform","rotate(90deg)"),t})()}function D1(){return(()=>{var t=ol();return t.style.setProperty("transform","rotate(-90deg)"),t})()}function E1(){return p1()}function F1(){return m1()}function O1(){return g1()}function B1(){return h1()}function $1(){return x1()}function q1(){return y1()}function N1(){return b1()}function z1(){return v1()}function U1(){return C1()}function H1(t){return(()=>{var a=$c(),o=a.firstChild;return W(()=>F(o,"stroke",t.theme==="dark"?"#12B76A":"#027A48")),a})()}function _1(){return w1()}function V1(){return L1()}function K1(t){return[b(j,{get when(){return t.checked},get children(){var a=$c(),o=a.firstChild;return W(()=>F(o,"stroke",t.theme==="dark"?"#9B8AFB":"#6938EF")),a}}),b(j,{get when(){return!t.checked},get children(){var a=I1(),o=a.firstChild;return W(()=>F(o,"stroke",t.theme==="dark"?"#9B8AFB":"#6938EF")),a}})]}function G1(){return S1()}function W1(){return k1()}function Q1(){return P1()}function j1(){return M1()}function nd(){let t=ut();return(()=>{var a=A1(),o=a.firstChild,r=o.nextSibling,n=r.nextSibling,s=n.firstChild,l=n.nextSibling,u=l.firstChild,i=l.nextSibling,d=i.nextSibling,c=d.firstChild,f=d.nextSibling,p=f.firstChild,m=f.nextSibling,g=m.nextSibling,h=g.firstChild,x=g.nextSibling,y=x.firstChild,v=x.nextSibling,C=v.nextSibling,L=C.firstChild,I=C.nextSibling,O=I.firstChild,E=I.nextSibling,q=E.nextSibling,S=q.firstChild,M=q.nextSibling,T=M.firstChild,k=M.nextSibling,Y=k.nextSibling,ae=Y.firstChild,ce=Y.nextSibling,fe=ce.firstChild,ye=ce.nextSibling,be=ye.nextSibling,me=be.firstChild,Ee=be.nextSibling,ke=Ee.firstChild,Be=Ee.nextSibling,tt=Be.firstChild,$=tt.nextSibling,Fe=$.nextSibling,ge=Fe.nextSibling,Ca=ge.nextSibling,ee=Be.nextSibling,St=ee.firstChild,je=ee.nextSibling,no=je.firstChild,ht=je.nextSibling,wa=ht.firstChild,Ua=wa.nextSibling,Gt=Ua.nextSibling,Ot=Gt.firstChild,Wt=Ot.nextSibling,H=Wt.nextSibling,we=H.nextSibling,at=we.nextSibling,Ie=at.nextSibling,Ce=Ie.nextSibling,Pe=Ce.nextSibling,_e=Pe.nextSibling,ve=_e.nextSibling,Qt=ve.nextSibling,jt=Qt.nextSibling,kt=ht.nextSibling,Ha=kt.firstChild,Xt=kt.nextSibling,_a=Xt.firstChild,Zt=Xt.nextSibling,La=Zt.firstChild,zr=La.nextSibling,Do=Zt.nextSibling,Ur=Do.firstChild,so=Do.nextSibling,Hr=so.firstChild,Eo=so.nextSibling,Fo=Eo.firstChild,Oo=Fo.nextSibling,lo=Oo.nextSibling,ql=lo.nextSibling,Nl=ql.nextSibling,zl=Nl.nextSibling,Ul=zl.nextSibling,Hl=Ul.nextSibling,_l=Hl.nextSibling,Vl=_l.nextSibling,Kl=Vl.nextSibling,Gl=Kl.nextSibling,Wl=Gl.nextSibling,Ql=Wl.nextSibling,jl=Ql.nextSibling,Xl=jl.nextSibling,Zl=Xl.nextSibling,Ep=Zl.nextSibling;return F(o,"id",`a-${t}`),F(r,"fill",`url(#a-${t})`),F(s,"id",`am-${t}`),F(l,"id",`b-${t}`),F(u,"filter",`url(#am-${t})`),F(i,"mask",`url(#b-${t})`),F(c,"id",`ah-${t}`),F(f,"id",`k-${t}`),F(p,"filter",`url(#ah-${t})`),F(m,"mask",`url(#k-${t})`),F(h,"id",`ae-${t}`),F(x,"id",`j-${t}`),F(y,"filter",`url(#ae-${t})`),F(v,"mask",`url(#j-${t})`),F(L,"id",`ai-${t}`),F(I,"id",`i-${t}`),F(O,"filter",`url(#ai-${t})`),F(E,"mask",`url(#i-${t})`),F(S,"id",`aj-${t}`),F(M,"id",`h-${t}`),F(T,"filter",`url(#aj-${t})`),F(k,"mask",`url(#h-${t})`),F(ae,"id",`ag-${t}`),F(ce,"id",`g-${t}`),F(fe,"filter",`url(#ag-${t})`),F(ye,"mask",`url(#g-${t})`),F(me,"id",`af-${t}`),F(Ee,"id",`f-${t}`),F(ke,"filter",`url(#af-${t})`),F(Be,"mask",`url(#f-${t})`),F(ge,"id",`m-${t}`),F(Ca,"fill",`url(#m-${t})`),F(St,"id",`ak-${t}`),F(je,"id",`e-${t}`),F(no,"filter",`url(#ak-${t})`),F(ht,"mask",`url(#e-${t})`),F(wa,"id",`n-${t}`),F(Ua,"fill",`url(#n-${t})`),F(Ot,"id",`r-${t}`),F(Wt,"fill",`url(#r-${t})`),F(H,"id",`s-${t}`),F(we,"fill",`url(#s-${t})`),F(at,"id",`q-${t}`),F(Ie,"fill",`url(#q-${t})`),F(Ce,"id",`p-${t}`),F(Pe,"fill",`url(#p-${t})`),F(_e,"id",`o-${t}`),F(ve,"fill",`url(#o-${t})`),F(Qt,"id",`l-${t}`),F(jt,"fill",`url(#l-${t})`),F(Ha,"id",`al-${t}`),F(Xt,"id",`d-${t}`),F(_a,"filter",`url(#al-${t})`),F(Zt,"mask",`url(#d-${t})`),F(La,"id",`u-${t}`),F(zr,"fill",`url(#u-${t})`),F(Ur,"id",`ad-${t}`),F(so,"id",`c-${t}`),F(Hr,"filter",`url(#ad-${t})`),F(Eo,"mask",`url(#c-${t})`),F(Fo,"id",`t-${t}`),F(Oo,"fill",`url(#t-${t})`),F(lo,"id",`v-${t}`),F(ql,"stroke",`url(#v-${t})`),F(Nl,"id",`aa-${t}`),F(zl,"stroke",`url(#aa-${t})`),F(Ul,"id",`w-${t}`),F(Hl,"stroke",`url(#w-${t})`),F(_l,"id",`ac-${t}`),F(Vl,"stroke",`url(#ac-${t})`),F(Kl,"id",`ab-${t}`),F(Gl,"stroke",`url(#ab-${t})`),F(Wl,"id",`y-${t}`),F(Ql,"stroke",`url(#y-${t})`),F(jl,"id",`x-${t}`),F(Xl,"stroke",`url(#x-${t})`),F(Zl,"id",`z-${t}`),F(Ep,"stroke",`url(#z-${t})`),a})()}function sy(t,a){let o=0,r=[];for(;o<t.length;)r.push(t.slice(o,o+a)),o=o+a;return r}function ud(t){return Symbol.iterator in t}function Ra(t){let a=Ge(),o=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,r=P(()=>a()==="dark"?ko(o):So(o)),n=X().client,[s,l]=U((t.defaultExpanded||[]).includes(t.label)),u=()=>l(g=>!g),[i,d]=U([]),c=P(()=>Array.isArray(t.value)?t.value.map((g,h)=>({label:h.toString(),value:g})):t.value!==null&&typeof t.value=="object"&&ud(t.value)&&typeof t.value[Symbol.iterator]=="function"?t.value instanceof Map?Array.from(t.value,([g,h])=>({label:g,value:h})):Array.from(t.value,(g,h)=>({label:h.toString(),value:g})):typeof t.value=="object"&&t.value!==null?Object.entries(t.value).map(([g,h])=>({label:g,value:h})):[]),f=P(()=>Array.isArray(t.value)?"array":t.value!==null&&typeof t.value=="object"&&ud(t.value)&&typeof t.value[Symbol.iterator]=="function"?"Iterable":typeof t.value=="object"&&t.value!==null?"object":typeof t.value),p=P(()=>sy(c(),100)),m=t.dataPath??[];return(()=>{var g=gr();return A(g,b(j,{get when(){return p().length},get children(){return[(()=>{var h=ay(),x=h.firstChild,y=x.firstChild,v=y.nextSibling,C=v.nextSibling,L=C.nextSibling,I=L.firstChild;return x.$$click=()=>u(),A(x,b(ld,{get expanded(){return s()}}),y),A(v,()=>t.label),A(L,()=>String(f()).toLowerCase()==="iterable"?"(Iterable) ":"",I),A(L,()=>c().length,I),A(L,()=>c().length>1?"items":"item",null),A(h,b(j,{get when(){return t.editable},get children(){var O=gr();return A(O,b(ly,{get value(){return t.value}}),null),A(O,b(j,{get when(){return t.itemsDeletable&&t.activeQuery!==void 0},get children(){return b(id,{get activeQuery(){return t.activeQuery},dataPath:m})}}),null),A(O,b(j,{get when(){return f()==="array"&&t.activeQuery!==void 0},get children(){return b(iy,{get activeQuery(){return t.activeQuery},dataPath:m})}}),null),A(O,b(j,{get when(){return P(()=>!!t.onEdit)()&&!bs(t.value).meta},get children(){var E=ty();return E.$$click=()=>{t.onEdit?.()},A(E,b(U1,{})),W(()=>B(E,r().actionButton)),E}}),null),W(()=>B(O,r().actions)),O}}),null),W(O=>{var E=r().expanderButtonContainer,q=r().expanderButton,S=r().info;return E!==O.e&&B(h,O.e=E),q!==O.t&&B(x,O.t=q),S!==O.a&&B(L,O.a=S),O},{e:void 0,t:void 0,a:void 0}),h})(),b(j,{get when(){return s()},get children(){return[b(j,{get when(){return p().length===1},get children(){var h=gr();return A(h,b(xn,{get each(){return c()},by:x=>x.label,children:x=>b(Ra,{get defaultExpanded(){return t.defaultExpanded},get label(){return x().label},get value(){return x().value},get editable(){return t.editable},get dataPath(){return[...m,x().label]},get activeQuery(){return t.activeQuery},get itemsDeletable(){return f()==="array"||f()==="Iterable"||f()==="object"}})})),W(()=>B(h,r().subEntry)),h}}),b(j,{get when(){return p().length>1},get children(){var h=gr();return A(h,b(Vi,{get each(){return p()},children:(x,y)=>(()=>{var v=ny(),C=v.firstChild,L=C.firstChild,I=L.firstChild,O=I.nextSibling,E=O.nextSibling,q=E.nextSibling;return q.nextSibling,L.$$click=()=>d(S=>S.includes(y)?S.filter(M=>M!==y):[...S,y]),A(L,b(ld,{get expanded(){return i().includes(y)}}),I),A(L,y*100,O),A(L,y*100+100-1,q),A(C,b(j,{get when(){return i().includes(y)},get children(){var S=gr();return A(S,b(xn,{get each(){return x()},by:M=>M.label,children:M=>b(Ra,{get defaultExpanded(){return t.defaultExpanded},get label(){return M().label},get value(){return M().value},get editable(){return t.editable},get dataPath(){return[...m,M().label]},get activeQuery(){return t.activeQuery}})})),W(()=>B(S,r().subEntry)),S}}),null),W(S=>{var M=r().entry,T=r().expanderButton;return M!==S.e&&B(C,S.e=M),T!==S.t&&B(L,S.t=T),S},{e:void 0,t:void 0}),v})()})),W(()=>B(h,r().subEntry)),h}})]}})]}}),null),A(g,b(j,{get when(){return p().length===0},get children(){var h=ry(),x=h.firstChild,y=x.firstChild;return A(x,()=>t.label,y),A(h,b(j,{get when(){return P(()=>!!(t.editable&&t.activeQuery!==void 0))()&&(f()==="string"||f()==="number"||f()==="boolean")},get fallback(){return(()=>{var v=sd();return A(v,()=>cr(t.value)),W(()=>B(v,r().value)),v})()},get children(){return[b(j,{get when(){return P(()=>!!(t.editable&&t.activeQuery!==void 0))()&&(f()==="string"||f()==="number")},get children(){var v=oy();return v.addEventListener("change",C=>{let L=t.activeQuery.state.data,I=Pa(L,m,f()==="number"?C.target.valueAsNumber:C.target.value);n.setQueryData(t.activeQuery.queryKey,I)}),W(C=>{var L=f()==="number"?"number":"text",I=_(r().value,r().editableInput);return L!==C.e&&F(v,"type",C.e=L),I!==C.t&&B(v,C.t=I),C},{e:void 0,t:void 0}),W(()=>v.value=t.value),v}}),b(j,{get when(){return f()==="boolean"},get children(){var v=sd();return A(v,b(uy,{get activeQuery(){return t.activeQuery},dataPath:m,get value(){return t.value}}),null),A(v,()=>cr(t.value),null),W(()=>B(v,_(r().value,r().actions,r().editableInput))),v}})]}}),null),A(h,b(j,{get when(){return t.editable&&t.itemsDeletable&&t.activeQuery!==void 0},get children(){return b(id,{get activeQuery(){return t.activeQuery},dataPath:m})}}),null),W(v=>{var C=r().row,L=r().label;return C!==v.e&&B(h,v.e=C),L!==v.t&&B(x,v.t=L),v},{e:void 0,t:void 0}),h}}),null),W(()=>B(g,r().entry)),g})()}var Eg,Fg,xu,Og,Bg,D,Ps,Ng,In,Hg,yu,xt,_g,Za,qs,Vg,Ms,Sn,Kg,fd,Gg,pd,Wg,bu,Qg,Lr,md,kn,Ns,Ir,gd,jg,Xg,st,Lu,oh,rh,nh,sh,Iu,Xa,oa,hd,lh,ih,Su,ku,ws,yh,zs,mn,Cd,Th,Hs,Dh,pr,Tu,Id,Uh,Sd,jh,Rn,Ad,n0,s0,Ds,xr,d0,Ls,ra,b0,$u,Ye,C0,w0,qd,yn,Nd,Es,sa,dt,T0,D0,F0,O0,Nt,ft,bn,gn,Da,B0,$0,_0,V0,K0,G0,Q0,j0,X0,J0,dx,Zd,mx,gx,hx,xx,yx,bx,vx,Zs,Cx,Bs,Vu,wx,Px,Yd,Gu,Wu,Jd,bt,tc,oc,Fx,Ox,Ss,ks,Qu,ju,qx,mr,yt,hn,Ux,Xu,Hx,_x,Vx,Zu,Yu,Kx,Gx,Wx,Ju,ed,$s,Qx,jx,fc,mc,gc,Xx,wr,td,Zx,vc,Mc,o1,ad,r1,s1,l1,ze,i1,R,u1,d1,c1,f1,ol,p1,m1,g1,h1,x1,y1,b1,v1,C1,$c,w1,L1,I1,S1,k1,P1,M1,A1,X1,Z1,Y1,J1,ey,ty,gr,ay,oy,sd,ry,ny,ld,ly,iy,id,uy,Nc,So,ko,dy,Rr,cy,fy,py,my,gy,hy,xy,yy,by,vy,Cy,wy,Ly,Iy,Sy,ky,Py,My,Ay,dd,Ry,zc,Ty,Dy,Ey,Fy,Oy,By,$y,qy,Ny,zy,ct,On,Ta,Uc,Mt,rl,yo,cd,Hc,Uy,_c,Hy,Bn,_y,Vy,Ky,Gy,na,Wy,Qy,wn,jy,We,Ln,Xy,Pt,Vc,wt,Lt,nl=Bo(()=>{"use strict";w();fr();Eg=!Ze,Fg=Eg&&!!Gi,xu=()=>{},Og=t=>t!=null,Bg=t=>t.filter(Og);D=t=>typeof t=="function"&&!t.length?t():t,Ps=t=>Array.isArray(t)?t:t?[t]:[];Ng=Fg?t=>an()?Z(t):t:Z;In=Ug,Hg=t=>(typeof t.clear=="function"||(t.clear=()=>{let a;for(;a=t.key(0);)t.removeItem(a)}),t),yu=t=>{if(!t)return"";let a="";for(let o in t){if(!t.hasOwnProperty(o))continue;let r=t[o];a+=r instanceof Date?`; ${o}=${r.toUTCString()}`:typeof r=="boolean"?`; ${o}`:`; ${o}=${r}`}return a},xt=Hg({_cookies:[globalThis.document,"cookie"],getItem:t=>xt._cookies[0][xt._cookies[1]].match("(^|;)\\s*"+t+"\\s*=\\s*([^;]+)")?.pop()??null,setItem:(t,a,o)=>{let r=xt.getItem(t);xt._cookies[0][xt._cookies[1]]=`${t}=${a}${yu(o)}`;let n=Object.assign(new Event("storage"),{key:t,oldValue:r,newValue:a,url:globalThis.document.URL,storageArea:xt});window.dispatchEvent(n)},removeItem:t=>{xt._cookies[0][xt._cookies[1]]=`${t}=deleted${yu({expires:new Date(0)})}`},key:t=>{let a=null,o=0;return xt._cookies[0][xt._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(r,n)=>(!a&&n&&o++===t&&(a=n),"")),a},get length(){let t=0;return xt._cookies[0][xt._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,a=>(t+=a?1:0,"")),t}}),_g=1024,Za=796,qs=700,Vg="bottom-right",Ms="bottom",Sn="system",Kg=!1,fd=500,Gg=500,pd=500,Wg=Object.keys(cn)[0],bu=1,Qg=Object.keys(fn)[0],Lr=Ve({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});md=Ve(void 0),kn=t=>{let[a,o]=U(null),r=()=>{let l=a();l!=null&&(l.close(),o(null))},n=(l,u)=>{if(a()!=null)return;let i=window.open("","TSQD-Devtools-Panel",`width=${l},height=${u},popup`);if(!i)throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");i.document.head.innerHTML="",i.document.body.innerHTML="",Wi(i.document),i.document.title="TanStack Query Devtools",i.document.body.style.margin="0",i.addEventListener("pagehide",()=>{t.setLocalStore("pip_open","false"),o(null)}),[...(X().shadowDOMTarget||document).styleSheets].forEach(d=>{try{let c=[...d.cssRules].map(g=>g.cssText).join(""),f=document.createElement("style"),p=d.ownerNode,m="";p&&"id"in p&&(m=p.id),m&&f.setAttribute("id",m),f.textContent=c,i.document.head.appendChild(f)}catch{let f=document.createElement("link");if(d.href==null)return;f.rel="stylesheet",f.type=d.type,f.media=d.media.toString(),f.href=d.href,i.document.head.appendChild(f)}}),dr(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],i.document),t.setLocalStore("pip_open","true"),o(i)};Q(()=>{(t.localStore.pip_open??"false")==="true"&&!t.disabled&&n(Number(window.innerWidth),Number(t.localStore.height||Gg))}),Q(()=>{let l=(X().shadowDOMTarget||document).querySelector("#_goober"),u=a();if(l&&u){let i=new MutationObserver(()=>{let d=(X().shadowDOMTarget||u.document).querySelector("#_goober");d&&(d.textContent=l.textContent)});i.observe(l,{childList:!0,subtree:!0,characterDataOldValue:!0}),Z(()=>{i.disconnect()})}});let s=P(()=>({pipWindow:a(),requestPipWindow:n,closePipWindow:r,disabled:t.disabled??!1}));return b(md.Provider,{value:s,get children(){return t.children}})},Ns=()=>P(()=>{let a=Ne(md);if(!a)throw new Error("usePiPWindow must be used within a PiPProvider");return a()}),Ir=Ve(()=>"dark");gd={\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"},jg=Object.keys(gd).join("|"),Xg=new RegExp(jg,"g");st={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};Lu={maxRanking:1/0,minRanking:-1/0};oh={data:""},rh=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||oh,nh=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,sh=/\/\*[^]*?\*\/| +/g,Iu=/\n+/g,Xa=(t,a)=>{let o="",r="",n="";for(let s in t){let l=t[s];s[0]=="@"?s[1]=="i"?o=s+" "+l+";":r+=s[1]=="f"?Xa(l,s):s+"{"+Xa(l,s[1]=="k"?"":a)+"}":typeof l=="object"?r+=Xa(l,a?a.replace(/([^,])+/g,u=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,i=>/&/.test(i)?i.replace(/&/g,u):u?u+" "+i:i)):s):l!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=Xa.p?Xa.p(s,l):s+":"+l+";")}return o+(a&&n?a+"{"+n+"}":n)+r},oa={},hd=t=>{if(typeof t=="object"){let a="";for(let o in t)a+=o+hd(t[o]);return a}return t},lh=(t,a,o,r,n)=>{let s=hd(t),l=oa[s]||(oa[s]=(i=>{let d=0,c=11;for(;d<i.length;)c=101*c+i.charCodeAt(d++)>>>0;return"go"+c})(s));if(!oa[l]){let i=s!==t?t:(d=>{let c,f,p=[{}];for(;c=nh.exec(d.replace(sh,""));)c[4]?p.shift():c[3]?(f=c[3].replace(Iu," ").trim(),p.unshift(p[0][f]=p[0][f]||{})):p[0][c[1]]=c[2].replace(Iu," ").trim();return p[0]})(t);oa[l]=Xa(n?{["@keyframes "+l]:i}:i,o?"":"."+l)}let u=o&&oa.g?oa.g:null;return o&&(oa.g=oa[l]),((i,d,c,f)=>{f?d.data=d.data.replace(f,i):d.data.indexOf(i)===-1&&(d.data=c?i+d.data:d.data+i)})(oa[l],a,r,u),l},ih=(t,a,o)=>t.reduce((r,n,s)=>{let l=a[s];if(l&&l.call){let u=l(o),i=u&&u.props&&u.props.className||/^go/.test(u)&&u;l=i?"."+i:u&&typeof u=="object"?u.props?"":Xa(u,""):u===!1?"":u}return r+n+(l??"")},"");re.bind({g:1});re.bind({k:1});Su=Ze?t=>t!=null&&typeof t=="object"&&"t"in t:t=>t instanceof Element;ku=t=>{let a=ch(t);return uh(dh(()=>t.children).toArray,{appear:t.appear,onChange({added:o,removed:r,finishRemoved:n,list:s}){let l=a();for(let i of o)fh(l,t,i);let u=[];for(let i of s)i.isConnected&&(i instanceof HTMLElement||i instanceof SVGElement)&&u.push({el:i,rect:i.getBoundingClientRect()});queueMicrotask(()=>{let i=[];for(let{el:d,rect:c}of u)if(d.isConnected){let f=d.getBoundingClientRect(),p=c.left-f.left,m=c.top-f.top;(p||m)&&(d.style.transform=`translate(${p}px, ${m}px)`,d.style.transitionDuration="0s",i.push(d))}document.body.offsetHeight;for(let d of i){let c=function(f){(f.target===d||/transform$/.test(f.propertyName))&&(d.removeEventListener("transitionend",c),d.classList.remove(...l.move))};d.classList.add(...l.move),d.style.transform=d.style.transitionDuration="",d.addEventListener("transitionend",c)}});for(let i of r)ph(l,t,i,()=>n([i]))}})},ws=Symbol("fallback");yh=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;zs=(t=>(t.Escape="Escape",t.Enter="Enter",t.Tab="Tab",t.Space=" ",t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.End="End",t.Home="Home",t.PageDown="PageDown",t.PageUp="PageUp",t))(zs||{});mn=null;Cd=["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'])"],Th=[...Cd,'[tabindex]:not([tabindex="-1"]):not([disabled])'],Hs=Cd.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",Dh=Th.join(':not([hidden]):not([tabindex="-1"]),');pr=new Map,Tu=new Set;typeof document<"u"&&(document.readyState!=="loading"?Du():document.addEventListener("DOMContentLoaded",Du));Id={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"};Uh=["id","name","validationState","required","disabled","readOnly"];Sd=Ve();jh=Object.defineProperty,Rn=(t,a)=>{for(var o in a)jh(t,o,{get:a[o],enumerable:!0})},Ad=Ve();n0=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),s0=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);Ds=Fd(),xr=new Set;d0=Ve();Ls=new Map;ra=class Od extends Set{anchorKey;currentKey;constructor(a,o,r){super(a),a instanceof Od?(this.anchorKey=o||a.anchorKey,this.currentKey=r||a.currentKey):(this.anchorKey=o,this.currentKey=r)}};b0=class{collection;state;constructor(t,a){this.collection=t,this.state=a}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}isFocused(){return this.state.isFocused()}setFocused(t){this.state.setFocused(t)}focusedKey(){return this.state.focusedKey()}setFocusedKey(t){(t==null||this.collection().getItem(t))&&this.state.setFocusedKey(t)}selectedKeys(){return this.state.selectedKeys()}isSelected(t){if(this.state.selectionMode()==="none")return!1;let a=this.getKey(t);return a==null?!1:this.state.selectedKeys().has(a)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;let t=this.state.selectedKeys();return this.getAllSelectableKeys().every(a=>t.has(a))}firstSelectedKey(){let t;for(let a of this.state.selectedKeys()){let o=this.collection().getItem(a),r=o?.index!=null&&t?.index!=null&&o.index<t.index;(!t||r)&&(t=o)}return t?.key}lastSelectedKey(){let t;for(let a of this.state.selectedKeys()){let o=this.collection().getItem(a),r=o?.index!=null&&t?.index!=null&&o.index>t.index;(!t||r)&&(t=o)}return t?.key}extendSelection(t){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(t);return}let a=this.getKey(t);if(a==null)return;let o=this.state.selectedKeys(),r=o.anchorKey||a,n=new ra(o,r,a);for(let s of this.getKeyRange(r,o.currentKey||a))n.delete(s);for(let s of this.getKeyRange(a,r))this.canSelectItem(s)&&n.add(s);this.state.setSelectedKeys(n)}getKeyRange(t,a){let o=this.collection().getItem(t),r=this.collection().getItem(a);return o&&r?o.index!=null&&r.index!=null&&o.index<=r.index?this.getKeyRangeInternal(t,a):this.getKeyRangeInternal(a,t):[]}getKeyRangeInternal(t,a){let o=[],r=t;for(;r!=null;){let n=this.collection().getItem(r);if(n&&n.type==="item"&&o.push(r),r===a)return o;r=this.collection().getKeyAfter(r)}return[]}getKey(t){let a=this.collection().getItem(t);return a?!a||a.type!=="item"?null:a.key:t}toggleSelection(t){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let a=this.getKey(t);if(a==null)return;let o=new ra(this.state.selectedKeys());o.has(a)?o.delete(a):this.canSelectItem(a)&&(o.add(a),o.anchorKey=a,o.currentKey=a),!(this.disallowEmptySelection()&&o.size===0)&&this.state.setSelectedKeys(o)}replaceSelection(t){if(this.selectionMode()==="none")return;let a=this.getKey(t);if(a==null)return;let o=this.canSelectItem(a)?new ra([a],a,a):new ra;this.state.setSelectedKeys(o)}setSelectedKeys(t){if(this.selectionMode()==="none")return;let a=new ra;for(let o of t){let r=this.getKey(o);if(r!=null&&(a.add(r),this.selectionMode()==="single"))break}this.state.setSelectedKeys(a)}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){let t=this.state.selectedKeys();!this.disallowEmptySelection()&&t.size>0&&this.state.setSelectedKeys(new ra)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(t,a){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(t)&&!this.disallowEmptySelection()?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior()==="toggle"||a&&a.pointerType==="touch"?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys())return!0;let a=this.selectedKeys();if(t.size!==a.size)return!1;for(let o of t)if(!a.has(o))return!1;for(let o of a)if(!t.has(o))return!1;return!0}canSelectItem(t){if(this.state.selectionMode()==="none")return!1;let a=this.collection().getItem(t);return a!=null&&!a.disabled}isDisabled(t){let a=this.collection().getItem(t);return!a||a.disabled}getAllSelectableKeys(){let t=[];return(o=>{for(;o!=null;){if(this.canSelectItem(o)){let r=this.collection().getItem(o);if(!r)continue;r.type==="item"&&t.push(o)}o=this.collection().getKeyAfter(o)}})(this.collection().getFirstKey()),t}},$u=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(t){this.iterable=t;for(let r of t)this.keyMap.set(r.key,r);if(this.keyMap.size===0)return;let a,o=0;for(let[r,n]of this.keyMap)a?(a.nextKey=r,n.prevKey=a.key):(this.firstKey=r,n.prevKey=void 0),n.type==="item"&&(n.index=o++),a=n,a.nextKey=void 0;this.lastKey=a.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){return this.keyMap.get(t)?.prevKey}getKeyAfter(t){return this.keyMap.get(t)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){let a=[...this.getKeys()];return this.getItem(a[t])}};Ye=t=>typeof t=="function"?t():t,C0=t=>{let a=P(()=>{let l=Ye(t.element);if(l)return getComputedStyle(l)}),o=()=>a()?.animationName??"none",[r,n]=U(Ye(t.show)?"present":"hidden"),s="none";return Q(l=>{let u=Ye(t.show);return Le(()=>{if(l===u)return u;let i=s,d=o();u?n("present"):d==="none"||a()?.display==="none"?n("hidden"):n(l===!0&&i!==d?"hiding":"hidden")}),u}),Q(()=>{let l=Ye(t.element);if(!l)return;let u=d=>{d.target===l&&(s=o())},i=d=>{let f=o().includes(d.animationName);d.target===l&&f&&r()==="hiding"&&n("hidden")};l.addEventListener("animationstart",u),l.addEventListener("animationcancel",i),l.addEventListener("animationend",i),Z(()=>{l.removeEventListener("animationstart",u),l.removeEventListener("animationcancel",i),l.removeEventListener("animationend",i)})}),{present:()=>r()==="present"||r()==="hiding",state:r}},w0=C0,qd=w0,yn="data-kb-top-layer",Es=!1,sa=[];dt={layers:sa,isTopMostLayer:I0,hasPointerBlockingLayer:Vs,isBelowPointerBlockingLayer:Ud,addLayer:k0,removeLayer:P0,indexOf:br,find:L0,assignPointerEventToLayers:M0,disableBodyPointerEvents:A0,restoreBodyPointerEvents:R0},T0={};Rn(T0,{Button:()=>F0,Root:()=>Ks});D0=["button","color","file","image","reset","submit"];F0=Ks,O0=["top","right","bottom","left"],Nt=Math.min,ft=Math.max,bn=Math.round,gn=Math.floor,Da=t=>({x:t,y:t}),B0={left:"right",right:"left",bottom:"top",top:"bottom"},$0={start:"end",end:"start"};_0=async(t,a,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:s=[],platform:l}=o,u=s.filter(Boolean),i=await(l.isRTL==null?void 0:l.isRTL(a)),d=await l.getElementRects({reference:t,floating:a,strategy:n}),{x:c,y:f}=qu(d,r,i),p=r,m={},g=0;for(let h=0;h<u.length;h++){let{name:x,fn:y}=u[h],{x:v,y:C,data:L,reset:I}=await y({x:c,y:f,initialPlacement:r,placement:p,strategy:n,middlewareData:m,rects:d,platform:l,elements:{reference:t,floating:a}});c=v??c,f=C??f,m={...m,[x]:{...m[x],...L}},I&&g<=50&&(g++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(d=I.rects===!0?await l.getElementRects({reference:t,floating:a,strategy:n}):I.rects),{x:c,y:f}=qu(d,p,i)),h=-1)}return{x:c,y:f,placement:p,strategy:n,middlewareData:m}};V0=t=>({name:"arrow",options:t,async fn(a){let{x:o,y:r,placement:n,rects:s,platform:l,elements:u,middlewareData:i}=a,{element:d,padding:c=0}=eo(t,a)||{};if(d==null)return{};let f=_d(c),p={x:o,y:r},m=Ws(n),g=Gs(m),h=await l.getDimensions(d),x=m==="y",y=x?"top":"left",v=x?"bottom":"right",C=x?"clientHeight":"clientWidth",L=s.reference[g]+s.reference[m]-p[m]-s.floating[g],I=p[m]-s.reference[m],O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d)),E=O?O[C]:0;(!E||!await(l.isElement==null?void 0:l.isElement(O)))&&(E=u.floating[C]||s.floating[g]);let q=L/2-I/2,S=E/2-h[g]/2-1,M=Nt(f[y],S),T=Nt(f[v],S),k=M,Y=E-h[g]-T,ae=E/2-h[g]/2+q,ce=Fs(k,ae,Y),fe=!i.arrow&&Lo(n)!=null&&ae!==ce&&s.reference[g]/2-(ae<k?M:T)-h[g]/2<0,ye=fe?ae<k?ae-k:ae-Y:0;return{[m]:p[m]+ye,data:{[m]:ce,centerOffset:ae-ce-ye,...fe&&{alignmentOffset:ye}},reset:fe}}}),K0=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var o,r;let{placement:n,middlewareData:s,rects:l,initialPlacement:u,platform:i,elements:d}=a,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...x}=eo(t,a);if((o=s.arrow)!=null&&o.alignmentOffset)return{};let y=Ea(n),v=Ya(u),C=Ea(u)===u,L=await(i.isRTL==null?void 0:i.isRTL(d.floating)),I=p||(C||!h?[vn(u)]:N0(u)),O=g!=="none";!p&&O&&I.push(...U0(u,h,g,L));let E=[u,...I],q=await vr(a,x),S=[],M=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&S.push(q[y]),f){let ae=q0(n,l,L);S.push(q[ae[0]],q[ae[1]])}if(M=[...M,{placement:n,overflows:S}],!S.every(ae=>ae<=0)){var T,k;let ae=(((T=s.flip)==null?void 0:T.index)||0)+1,ce=E[ae];if(ce)return{data:{index:ae,overflows:M},reset:{placement:ce}};let fe=(k=M.filter(ye=>ye.overflows[0]<=0).sort((ye,be)=>ye.overflows[1]-be.overflows[1])[0])==null?void 0:k.placement;if(!fe)switch(m){case"bestFit":{var Y;let ye=(Y=M.filter(be=>{if(O){let me=Ya(be.placement);return me===v||me==="y"}return!0}).map(be=>[be.placement,be.overflows.filter(me=>me>0).reduce((me,Ee)=>me+Ee,0)]).sort((be,me)=>be[1]-me[1])[0])==null?void 0:Y[0];ye&&(fe=ye);break}case"initialPlacement":fe=u;break}if(n!==fe)return{reset:{placement:fe}}}return{}}}};G0=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){let{rects:o}=a,{strategy:r="referenceHidden",...n}=eo(t,a);switch(r){case"referenceHidden":{let s=await vr(a,{...n,elementContext:"reference"}),l=Nu(s,o.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:zu(l)}}}case"escaped":{let s=await vr(a,{...n,altBoundary:!0}),l=Nu(s,o.floating);return{data:{escapedOffsets:l,escaped:zu(l)}}}default:return{}}}}};Q0=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var o,r;let{x:n,y:s,placement:l,middlewareData:u}=a,i=await W0(a,t);return l===((o=u.offset)==null?void 0:o.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:n+i.x,y:s+i.y,data:{...i,placement:l}}}}},j0=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){let{x:o,y:r,placement:n}=a,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:x=>{let{x:y,y:v}=x;return{x:y,y:v}}},...i}=eo(t,a),d={x:o,y:r},c=await vr(a,i),f=Ya(Ea(n)),p=Hd(f),m=d[p],g=d[f];if(s){let x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=m+c[x],C=m-c[y];m=Fs(v,m,C)}if(l){let x=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=g+c[x],C=g-c[y];g=Fs(v,g,C)}let h=u.fn({...a,[p]:m,[f]:g});return{...h,data:{x:h.x-o,y:h.y-r}}}}},X0=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){let{placement:o,rects:r,platform:n,elements:s}=a,{apply:l=()=>{},...u}=eo(t,a),i=await vr(a,u),d=Ea(o),c=Lo(o),f=Ya(o)==="y",{width:p,height:m}=r.floating,g,h;d==="top"||d==="bottom"?(g=d,h=c===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(h=d,g=c==="end"?"top":"bottom");let x=m-i.top-i.bottom,y=p-i.left-i.right,v=Nt(m-i[g],x),C=Nt(p-i[h],y),L=!a.middlewareData.shift,I=v,O=C;if(f?O=c||L?Nt(C,y):y:I=c||L?Nt(v,x):x,L&&!c){let q=ft(i.left,0),S=ft(i.right,0),M=ft(i.top,0),T=ft(i.bottom,0);f?O=p-2*(q!==0||S!==0?q+S:ft(i.left,i.right)):I=m-2*(M!==0||T!==0?M+T:ft(i.top,i.bottom))}await l({...a,availableWidth:O,availableHeight:I});let E=await n.getDimensions(s.floating);return p!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};J0=Da(0);dx=async function(t){let a=this.getOffsetParent||Xd,o=this.getDimensions,r=await o(t.floating);return{reference:ux(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};Zd={convertOffsetParentRelativeRectToViewportRelativeRect:tx,getDocumentElement:la,getClippingRect:lx,getOffsetParent:Xd,getElementRects:dx,getClientRects:ax,getDimensions:ix,getScale:Co,isElement:At,isRTL:cx};mx=Q0,gx=j0,hx=K0,xx=X0,yx=G0,bx=V0,vx=(t,a,o)=>{let r=new Map,n={platform:Zd,...o},s={...n.platform,_c:r};return _0(t,a,{...n,platform:s})},Zs=Ve();Cx=K('<svg display="block" viewBox="0 0 30 30" style="transform:scale(1.02)"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">'),Bs=30,Vu=Bs/2,wx={top:180,right:-90,bottom:0,left:90};Px={top:"bottom",right:"left",bottom:"top",left:"right"};Yd=Object.assign(Ax,{Arrow:Js,Context:Zs,usePopperContext:Ys,Positioner:Ix});Gu="interactOutside.pointerDownOutside",Wu="interactOutside.focusOutside";Jd=Ve();bt={};Rn(bt,{Description:()=>kd,ErrorMessage:()=>Pd,Item:()=>rc,ItemControl:()=>nc,ItemDescription:()=>sc,ItemIndicator:()=>lc,ItemInput:()=>ic,ItemLabel:()=>uc,Label:()=>dc,RadioGroup:()=>Fx,Root:()=>cc});tc=Ve();oc=Ve();Fx=Object.assign(cc,{Description:kd,ErrorMessage:Pd,Item:rc,ItemControl:nc,ItemDescription:sc,ItemIndicator:lc,ItemInput:ic,ItemLabel:uc,Label:dc}),Ox=class{collection;ref;collator;constructor(t,a,o){this.collection=t,this.ref=a,this.collator=o}getKeyBelow(t){let a=this.collection().getKeyAfter(t);for(;a!=null;){let o=this.collection().getItem(a);if(o&&o.type==="item"&&!o.disabled)return a;a=this.collection().getKeyAfter(a)}}getKeyAbove(t){let a=this.collection().getKeyBefore(t);for(;a!=null;){let o=this.collection().getItem(a);if(o&&o.type==="item"&&!o.disabled)return a;a=this.collection().getKeyBefore(a)}}getFirstKey(){let t=this.collection().getFirstKey();for(;t!=null;){let a=this.collection().getItem(t);if(a&&a.type==="item"&&!a.disabled)return t;t=this.collection().getKeyAfter(t)}}getLastKey(){let t=this.collection().getLastKey();for(;t!=null;){let a=this.collection().getItem(t);if(a&&a.type==="item"&&!a.disabled)return t;t=this.collection().getKeyBefore(t)}}getItem(t){return this.ref?.()?.querySelector(`[data-key="${t}"]`)??null}getKeyPageAbove(t){let a=this.ref?.(),o=this.getItem(t);if(!a||!o)return;let r=Math.max(0,o.offsetTop+o.offsetHeight-a.offsetHeight),n=t;for(;n&&o&&o.offsetTop>r;)n=this.getKeyAbove(n),o=n!=null?this.getItem(n):null;return n}getKeyPageBelow(t){let a=this.ref?.(),o=this.getItem(t);if(!a||!o)return;let r=Math.min(a.scrollHeight,o.offsetTop-o.offsetHeight+a.offsetHeight),n=t;for(;n&&o&&o.offsetTop<r;)n=this.getKeyBelow(n),o=n!=null?this.getItem(n):null;return n}getKeyForSearch(t,a){let o=this.collator?.();if(!o)return;let r=a!=null?this.getKeyBelow(a):this.getFirstKey();for(;r!=null;){let n=this.collection().getItem(r);if(n){let s=n.textValue.slice(0,t.length);if(n.textValue&&o.compare(s,t)===0)return r}r=this.getKeyBelow(r)}}};Ss="focusScope.autoFocusOnMount",ks="focusScope.autoFocusOnUnmount",Qu={bubbles:!1,cancelable:!0},ju={stack:[],active(){return this.stack[0]},add(t){t!==this.active()&&this.active()?.pause(),this.stack=Rs(this.stack,t),this.stack.unshift(t)},remove(t){this.stack=Rs(this.stack,t),this.active()?.resume()}};qx="data-live-announcer";mr=new WeakMap,yt=[];hn=new Map,Ux=t=>{Q(()=>{let a=Ye(t.style)??{},o=Ye(t.properties)??[],r={};for(let s in a)r[s]=t.element.style[s];let n=hn.get(t.key);n?n.activeCount++:hn.set(t.key,{activeCount:1,originalStyles:r,properties:o.map(s=>s.key)}),Object.assign(t.element.style,t.style);for(let s of o)t.element.style.setProperty(s.key,s.value);Z(()=>{let s=hn.get(t.key);if(s){if(s.activeCount!==1){s.activeCount--;return}hn.delete(t.key);for(let[l,u]of Object.entries(s.originalStyles))t.element.style[l]=u;for(let l of s.properties)t.element.style.removeProperty(l);t.element.style.length===0&&t.element.removeAttribute("style"),t.cleanup?.()}})})},Xu=Ux,Hx=(t,a)=>{switch(a){case"x":return[t.clientWidth,t.scrollLeft,t.scrollWidth];case"y":return[t.clientHeight,t.scrollTop,t.scrollHeight]}},_x=(t,a)=>{let o=getComputedStyle(t),r=a==="x"?o.overflowX:o.overflowY;return r==="auto"||r==="scroll"||t.tagName==="HTML"&&r==="visible"},Vx=(t,a,o)=>{let r=a==="x"&&window.getComputedStyle(t).direction==="rtl"?-1:1,n=t,s=0,l=0,u=!1;do{let[i,d,c]=Hx(n,a),f=c-i-r*d;(d!==0||f!==0)&&_x(n,a)&&(s+=f,l+=d),n===(o??document.documentElement)?u=!0:n=n._$host??n.parentElement}while(n&&!u);return[s,l]},[Zu,Yu]=U([]),Kx=t=>Zu().indexOf(t)===Zu().length-1,Gx=t=>{let a=te({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},t),o=ut(),r=[0,0],n=null,s=null;Q(()=>{Ye(a.enabled)&&(Yu(d=>[...d,o]),Z(()=>{Yu(d=>d.filter(c=>c!==o))}))}),Q(()=>{if(!Ye(a.enabled)||!Ye(a.hideScrollbar))return;let{body:d}=document,c=window.innerWidth-d.offsetWidth;if(Ye(a.preventScrollbarShift)){let f={overflow:"hidden"},p=[];c>0&&(Ye(a.preventScrollbarShiftMode)==="padding"?f.paddingRight=`calc(${window.getComputedStyle(d).paddingRight} + ${c}px)`:f.marginRight=`calc(${window.getComputedStyle(d).marginRight} + ${c}px)`,p.push({key:"--scrollbar-width",value:`${c}px`}));let m=window.scrollY,g=window.scrollX;Xu({key:"prevent-scroll",element:d,style:f,properties:p,cleanup:()=>{Ye(a.restoreScrollPosition)&&c>0&&window.scrollTo(g,m)}})}else Xu({key:"prevent-scroll",element:d,style:{overflow:"hidden"}})}),Q(()=>{!Kx(o)||!Ye(a.enabled)||(document.addEventListener("wheel",u,{passive:!1}),document.addEventListener("touchstart",l,{passive:!1}),document.addEventListener("touchmove",i,{passive:!1}),Z(()=>{document.removeEventListener("wheel",u),document.removeEventListener("touchstart",l),document.removeEventListener("touchmove",i)}))});let l=d=>{r=Ju(d),n=null,s=null},u=d=>{let c=d.target,f=Ye(a.element),p=Wx(d),m=Math.abs(p[0])>Math.abs(p[1])?"x":"y",g=m==="x"?p[0]:p[1],h=ed(c,m,g,f),x;f&&$s(f,c)?x=!h:x=!0,x&&d.cancelable&&d.preventDefault()},i=d=>{let c=Ye(a.element),f=d.target,p;if(d.touches.length===2)p=!Ye(a.allowPinchZoom);else{if(n==null||s===null){let m=Ju(d).map((h,x)=>r[x]-h),g=Math.abs(m[0])>Math.abs(m[1])?"x":"y";n=g,s=g==="x"?m[0]:m[1]}if(f.type==="range")p=!1;else{let m=ed(f,n,s,c);c&&$s(c,f)?p=!m:p=!0}}p&&d.cancelable&&d.preventDefault()}},Wx=t=>[t.deltaX,t.deltaY],Ju=t=>t.changedTouches[0]?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0],ed=(t,a,o,r)=>{let n=r!==null&&$s(r,t),[s,l]=Vx(t,a,n?r:void 0);return!(o>0&&Math.abs(s)<=1||o<0&&Math.abs(l)<1)},$s=(t,a)=>{if(t.contains(a))return!0;let o=a;for(;o;){if(o===t)return!0;o=o._$host??o.parentElement}return!1},Qx=Gx,jx=Qx,fc=Ve();mc=Ve();gc=Ve();Xx=Ve();wr={next:(t,a)=>t==="ltr"?a==="horizontal"?"ArrowRight":"ArrowDown":a==="horizontal"?"ArrowLeft":"ArrowUp",previous:(t,a)=>wr.next(t==="ltr"?"rtl":"ltr",a)},td={first:t=>t==="horizontal"?"ArrowDown":"ArrowRight",last:t=>t==="horizontal"?"ArrowUp":"ArrowLeft"};Zx=Ve();vc=Ve();Mc=Ve();o1={close:(t,a)=>t==="ltr"?[a==="horizontal"?"ArrowLeft":"ArrowUp"]:[a==="horizontal"?"ArrowRight":"ArrowDown"]};ad=["Enter"," "],r1={open:(t,a)=>t==="ltr"?[...ad,a==="horizontal"?"ArrowRight":"ArrowDown"]:[...ad,a==="horizontal"?"ArrowLeft":"ArrowUp"]};s1={};Rn(s1,{Root:()=>Fn,Separator:()=>l1});l1=Fn,ze={};Rn(ze,{Arrow:()=>Js,CheckboxItem:()=>hc,Content:()=>Oc,DropdownMenu:()=>i1,Group:()=>al,GroupLabel:()=>Cc,Icon:()=>wc,Item:()=>Lc,ItemDescription:()=>Ic,ItemIndicator:()=>Sc,ItemLabel:()=>kc,Portal:()=>Pc,RadioGroup:()=>Ac,RadioItem:()=>Rc,Root:()=>Bc,Separator:()=>Fn,Sub:()=>Dc,SubContent:()=>Ec,SubTrigger:()=>Fc,Trigger:()=>xc});i1=Object.assign(Bc,{Arrow:Js,CheckboxItem:hc,Content:Oc,Group:al,GroupLabel:Cc,Icon:wc,Item:Lc,ItemDescription:Ic,ItemIndicator:Sc,ItemLabel:kc,Portal:Pc,RadioGroup:Ac,RadioItem:Rc,Separator:Fn,Sub:Dc,SubContent:Ec,SubTrigger:Fc,Trigger:xc}),R={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:(t="rgb(0 0 0 / 0.1)")=>"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:(t="rgb(0 0 0 / 0.1)")=>`0 1px 3px 0 ${t}, 0 1px 2px -1px ${t}`,md:(t="rgb(0 0 0 / 0.1)")=>`0 4px 6px -1px ${t}, 0 2px 4px -2px ${t}`,lg:(t="rgb(0 0 0 / 0.1)")=>`0 10px 15px -3px ${t}, 0 4px 6px -4px ${t}`,xl:(t="rgb(0 0 0 / 0.1)")=>`0 20px 25px -5px ${t}, 0 8px 10px -6px ${t}`,"2xl":(t="rgb(0 0 0 / 0.25)")=>`0 25px 50px -12px ${t}`,inner:(t="rgb(0 0 0 / 0.05)")=>`inset 0 2px 4px 0 ${t}`,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}},u1=K('<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),d1=K('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),c1=K('<svg width=10 height=6 viewBox="0 0 10 6"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1L5 5L9 1"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),f1=K('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),ol=K('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),p1=K('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),m1=K('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),g1=K('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),h1=K('<svg stroke=currentColor fill=currentColor stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">'),x1=K('<svg stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">'),y1=K('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),b1=K('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M16 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V8M11.5 12.5L17 7M17 7H12M17 7V12M6.2 21H8.8C9.9201 21 10.4802 21 10.908 20.782C11.2843 20.5903 11.5903 20.2843 11.782 19.908C12 19.4802 12 18.9201 12 17.8V15.2C12 14.0799 12 13.5198 11.782 13.092C11.5903 12.7157 11.2843 12.4097 10.908 12.218C10.4802 12 9.92011 12 8.8 12H6.2C5.0799 12 4.51984 12 4.09202 12.218C3.71569 12.4097 3.40973 12.7157 3.21799 13.092C3 13.5198 3 14.0799 3 15.2V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),v1=K('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path class=copier d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round stroke=currentColor>'),C1=K('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M2.5 21.4998L8.04927 19.3655C8.40421 19.229 8.58168 19.1607 8.74772 19.0716C8.8952 18.9924 9.0358 18.901 9.16804 18.7984C9.31692 18.6829 9.45137 18.5484 9.72028 18.2795L21 6.99982C22.1046 5.89525 22.1046 4.10438 21 2.99981C19.8955 1.89525 18.1046 1.89524 17 2.99981L5.72028 14.2795C5.45138 14.5484 5.31692 14.6829 5.20139 14.8318C5.09877 14.964 5.0074 15.1046 4.92823 15.2521C4.83911 15.4181 4.77085 15.5956 4.63433 15.9506L2.5 21.4998ZM2.5 21.4998L4.55812 16.1488C4.7054 15.7659 4.77903 15.5744 4.90534 15.4867C5.01572 15.4101 5.1523 15.3811 5.2843 15.4063C5.43533 15.4351 5.58038 15.5802 5.87048 15.8703L8.12957 18.1294C8.41967 18.4195 8.56472 18.5645 8.59356 18.7155C8.61877 18.8475 8.58979 18.9841 8.51314 19.0945C8.42545 19.2208 8.23399 19.2944 7.85107 19.4417L2.5 21.4998Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),$c=K('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),w1=K('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),L1=K('<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>'),I1=K('<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),S1=K('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),k1=K('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 dur=2s repeatCount=indefinite>'),P1=K('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),M1=K('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),A1=K('<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>');X1=K('<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Z1=K('<button title="Copy object to clipboard">'),Y1=K('<button title="Remove all items"aria-label="Remove all items">'),J1=K('<button title="Delete item"aria-label="Delete item">'),ey=K('<button title="Toggle value"aria-label="Toggle value">'),ty=K('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),gr=K("<div>"),ay=K("<div><button> <span></span> <span> "),oy=K("<input>"),sd=K("<span>"),ry=K("<div><span>:"),ny=K("<div><div><button> [<!>...<!>]");ld=t=>{let a=Ge(),o=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,r=P(()=>a()==="dark"?ko(o):So(o));return(()=>{var n=X1();return W(()=>B(n,_(r().expander,o`
|
|
2
|
+
transform: rotate(${t.expanded?90:0}deg);
|
|
3
|
+
`,t.expanded&&o`
|
|
4
4
|
& svg {
|
|
5
5
|
top: -1px;
|
|
6
6
|
}
|
|
7
|
-
`))),
|
|
8
|
-
width: ${
|
|
9
|
-
height: ${
|
|
10
|
-
`))),
|
|
7
|
+
`))),n})()},ly=t=>{let a=Ge(),o=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,r=P(()=>a()==="dark"?ko(o):So(o)),[n,s]=U("NoCopy");return(()=>{var l=Z1();return hs(l,"click",n()==="NoCopy"?()=>{navigator.clipboard.writeText(cu(t.value)).then(()=>{s("SuccessCopy"),setTimeout(()=>{s("NoCopy")},1500)},u=>{s("ErrorCopy"),setTimeout(()=>{s("NoCopy")},1500)})}:void 0,!0),A(l,b(Ki,{get children(){return[b(un,{get when(){return n()==="NoCopy"},get children(){return b(z1,{})}}),b(un,{get when(){return n()==="SuccessCopy"},get children(){return b(H1,{get theme(){return a()}})}}),b(un,{get when(){return n()==="ErrorCopy"},get children(){return b(_1,{})}})]}})),W(u=>{var i=r().actionButton,d=`${n()==="NoCopy"?"Copy object to clipboard":n()==="SuccessCopy"?"Object copied to clipboard":"Error copying object to clipboard"}`;return i!==u.e&&B(l,u.e=i),d!==u.t&&F(l,"aria-label",u.t=d),u},{e:void 0,t:void 0}),l})()},iy=t=>{let a=Ge(),o=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,r=P(()=>a()==="dark"?ko(o):So(o)),n=X().client;return(()=>{var s=Y1();return s.$$click=()=>{let l=t.activeQuery.state.data,u=Pa(l,t.dataPath,[]);n.setQueryData(t.activeQuery.queryKey,u)},A(s,b(V1,{})),W(()=>B(s,r().actionButton)),s})()},id=t=>{let a=Ge(),o=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,r=P(()=>a()==="dark"?ko(o):So(o)),n=X().client;return(()=>{var s=J1();return s.$$click=()=>{let l=t.activeQuery.state.data,u=po(l,t.dataPath);n.setQueryData(t.activeQuery.queryKey,u)},A(s,b(qc,{})),W(()=>B(s,_(r().actionButton))),s})()},uy=t=>{let a=Ge(),o=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,r=P(()=>a()==="dark"?ko(o):So(o)),n=X().client;return(()=>{var s=ey();return s.$$click=()=>{let l=t.activeQuery.state.data,u=Pa(l,t.dataPath,!t.value);n.setQueryData(t.activeQuery.queryKey,u)},A(s,b(K1,{get theme(){return a()},get checked(){return t.value}})),W(()=>B(s,_(r().actionButton,o`
|
|
8
|
+
width: ${R.size[3.5]};
|
|
9
|
+
height: ${R.size[3.5]};
|
|
10
|
+
`))),s})()};Nc=(t,a)=>{let{colors:o,font:r,size:n,border:s}=R,l=(u,i)=>t==="light"?u:i;return{entry:a`
|
|
11
11
|
& * {
|
|
12
|
-
font-size: ${
|
|
12
|
+
font-size: ${r.size.xs};
|
|
13
13
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
14
14
|
'Liberation Mono', 'Courier New', monospace;
|
|
15
15
|
}
|
|
16
16
|
position: relative;
|
|
17
17
|
outline: none;
|
|
18
18
|
word-break: break-word;
|
|
19
|
-
`,subEntry:
|
|
19
|
+
`,subEntry:a`
|
|
20
20
|
margin: 0 0 0 0.5em;
|
|
21
21
|
padding-left: 0.75em;
|
|
22
|
-
border-left: 2px solid ${
|
|
23
|
-
/* outline: 1px solid ${
|
|
24
|
-
`,expander:
|
|
22
|
+
border-left: 2px solid ${l(o.gray[300],o.darkGray[400])};
|
|
23
|
+
/* outline: 1px solid ${o.teal[400]}; */
|
|
24
|
+
`,expander:a`
|
|
25
25
|
& path {
|
|
26
|
-
stroke: ${
|
|
26
|
+
stroke: ${o.gray[400]};
|
|
27
27
|
}
|
|
28
28
|
& svg {
|
|
29
|
-
width: ${
|
|
30
|
-
height: ${
|
|
29
|
+
width: ${n[3]};
|
|
30
|
+
height: ${n[3]};
|
|
31
31
|
}
|
|
32
32
|
display: inline-flex;
|
|
33
33
|
align-items: center;
|
|
34
34
|
transition: all 0.1s ease;
|
|
35
|
-
/* outline: 1px solid ${
|
|
36
|
-
`,expanderButtonContainer:
|
|
35
|
+
/* outline: 1px solid ${o.blue[400]}; */
|
|
36
|
+
`,expanderButtonContainer:a`
|
|
37
37
|
display: flex;
|
|
38
38
|
align-items: center;
|
|
39
|
-
line-height: ${
|
|
40
|
-
min-height: ${
|
|
41
|
-
gap: ${
|
|
42
|
-
`,expanderButton:
|
|
39
|
+
line-height: ${n[4]};
|
|
40
|
+
min-height: ${n[4]};
|
|
41
|
+
gap: ${n[2]};
|
|
42
|
+
`,expanderButton:a`
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
color: inherit;
|
|
45
45
|
font: inherit;
|
|
46
46
|
outline: inherit;
|
|
47
|
-
height: ${
|
|
47
|
+
height: ${n[5]};
|
|
48
48
|
background: transparent;
|
|
49
49
|
border: none;
|
|
50
50
|
padding: 0;
|
|
51
51
|
display: inline-flex;
|
|
52
52
|
align-items: center;
|
|
53
|
-
gap: ${
|
|
53
|
+
gap: ${n[1]};
|
|
54
54
|
position: relative;
|
|
55
|
-
/* outline: 1px solid ${
|
|
55
|
+
/* outline: 1px solid ${o.green[400]}; */
|
|
56
56
|
|
|
57
57
|
&:focus-visible {
|
|
58
|
-
border-radius: ${
|
|
59
|
-
outline: 2px solid ${
|
|
58
|
+
border-radius: ${s.radius.xs};
|
|
59
|
+
outline: 2px solid ${o.blue[800]};
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
& svg {
|
|
63
63
|
position: relative;
|
|
64
64
|
left: 1px;
|
|
65
65
|
}
|
|
66
|
-
`,info:
|
|
67
|
-
color: ${
|
|
68
|
-
font-size: ${
|
|
69
|
-
margin-left: ${
|
|
70
|
-
/* outline: 1px solid ${
|
|
71
|
-
`,label:
|
|
72
|
-
color: ${
|
|
66
|
+
`,info:a`
|
|
67
|
+
color: ${l(o.gray[500],o.gray[500])};
|
|
68
|
+
font-size: ${r.size.xs};
|
|
69
|
+
margin-left: ${n[1]};
|
|
70
|
+
/* outline: 1px solid ${o.yellow[400]}; */
|
|
71
|
+
`,label:a`
|
|
72
|
+
color: ${l(o.gray[700],o.gray[300])};
|
|
73
73
|
white-space: nowrap;
|
|
74
|
-
`,value:
|
|
75
|
-
color: ${
|
|
74
|
+
`,value:a`
|
|
75
|
+
color: ${l(o.purple[600],o.purple[400])};
|
|
76
76
|
flex-grow: 1;
|
|
77
|
-
`,actions:
|
|
77
|
+
`,actions:a`
|
|
78
78
|
display: inline-flex;
|
|
79
|
-
gap: ${
|
|
79
|
+
gap: ${n[2]};
|
|
80
80
|
align-items: center;
|
|
81
|
-
`,row:
|
|
81
|
+
`,row:a`
|
|
82
82
|
display: inline-flex;
|
|
83
|
-
gap: ${
|
|
83
|
+
gap: ${n[2]};
|
|
84
84
|
width: 100%;
|
|
85
|
-
margin: ${
|
|
86
|
-
line-height: ${
|
|
85
|
+
margin: ${n[.25]} 0px;
|
|
86
|
+
line-height: ${n[4.5]};
|
|
87
87
|
align-items: center;
|
|
88
|
-
`,editableInput:
|
|
88
|
+
`,editableInput:a`
|
|
89
89
|
border: none;
|
|
90
|
-
padding: ${
|
|
90
|
+
padding: ${n[.5]} ${n[1]} ${n[.5]} ${n[1.5]};
|
|
91
91
|
flex-grow: 1;
|
|
92
|
-
border-radius: ${
|
|
93
|
-
background-color: ${
|
|
92
|
+
border-radius: ${s.radius.xs};
|
|
93
|
+
background-color: ${l(o.gray[200],o.darkGray[500])};
|
|
94
94
|
|
|
95
95
|
&:hover {
|
|
96
|
-
background-color: ${
|
|
96
|
+
background-color: ${l(o.gray[300],o.darkGray[600])};
|
|
97
97
|
}
|
|
98
|
-
`,actionButton:
|
|
98
|
+
`,actionButton:a`
|
|
99
99
|
background-color: transparent;
|
|
100
|
-
color: ${
|
|
100
|
+
color: ${l(o.gray[500],o.gray[500])};
|
|
101
101
|
border: none;
|
|
102
102
|
display: inline-flex;
|
|
103
103
|
padding: 0px;
|
|
104
104
|
align-items: center;
|
|
105
105
|
justify-content: center;
|
|
106
106
|
cursor: pointer;
|
|
107
|
-
width: ${
|
|
108
|
-
height: ${
|
|
107
|
+
width: ${n[3]};
|
|
108
|
+
height: ${n[3]};
|
|
109
109
|
position: relative;
|
|
110
110
|
z-index: 1;
|
|
111
111
|
|
|
112
112
|
&:hover svg {
|
|
113
|
-
color: ${
|
|
113
|
+
color: ${l(o.gray[600],o.gray[400])};
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
&:focus-visible {
|
|
117
|
-
border-radius: ${
|
|
118
|
-
outline: 2px solid ${
|
|
117
|
+
border-radius: ${s.radius.xs};
|
|
118
|
+
outline: 2px solid ${o.blue[800]};
|
|
119
119
|
outline-offset: 2px;
|
|
120
120
|
}
|
|
121
|
-
`}},
|
|
121
|
+
`}},So=t=>Nc("light",t),ko=t=>Nc("dark",t);dr(["click"]);dy=K('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),Rr=K("<div>"),cy=K('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'),fy=K("<select name=tsqd-queries-filter-sort>"),py=K("<select name=tsqd-mutations-filter-sort>"),my=K("<span>Asc"),gy=K("<span>Desc"),hy=K('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),xy=K("<div>Settings"),yy=K("<span>Position"),by=K("<span>Top"),vy=K("<span>Bottom"),Cy=K("<span>Left"),wy=K("<span>Right"),Ly=K("<span>Theme"),Iy=K("<span>Light"),Sy=K("<span>Dark"),ky=K("<span>System"),Py=K("<div><div class=tsqd-queries-container>"),My=K("<div><div class=tsqd-mutations-container>"),Ay=K('<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>'),dd=K("<option>Sort by "),Ry=K("<div class=tsqd-query-disabled-indicator>disabled"),zc=K("<button><div></div><code class=tsqd-query-hash>"),Ty=K("<div role=tooltip id=tsqd-status-tooltip>"),Dy=K("<span>"),Ey=K("<button><span></span><span>"),Fy=K("<button><span></span> Error"),Oy=K('<div><span></span>Trigger Error<select><option value=""disabled selected>'),By=K('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),$y=K("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),qy=K('<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data </div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'),Ny=K("<option>"),zy=K('<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'),[ct,On]=U(null),[Ta,Uc]=U(null),[Mt,rl]=U(0),[yo,cd]=U(!1),Hc=t=>{let a=Ge(),o=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,r=P(()=>a()==="dark"?Lt(o):wt(o)),n=Ns(),s=P(()=>X().buttonPosition||Vg),l=P(()=>t.localStore.open==="true"?!0:t.localStore.open==="false"?!1:X().initialIsOpen||Kg),u=P(()=>t.localStore.position||X().position||Ms),i;Q(()=>{let c=i.parentElement,f=t.localStore.height||fd,p=t.localStore.width||pd,m=u();c.style.setProperty("--tsqd-panel-height",`${m==="top"?"-":""}${f}px`),c.style.setProperty("--tsqd-panel-width",`${m==="left"?"-":""}${p}px`)}),aa(()=>{let c=()=>{let f=i.parentElement,p=getComputedStyle(f).fontSize;f.style.setProperty("--tsqd-font-size",p)};c(),window.addEventListener("focus",c),Z(()=>{window.removeEventListener("focus",c)})});let d=P(()=>t.localStore.pip_open??"false");return[b(j,{get when(){return P(()=>!!n().pipWindow)()&&d()=="true"},get children(){return b(ys,{get mount(){return n().pipWindow?.document.body},get children(){return b(Uy,{get children(){return b(Bn,t)}})}})}}),(()=>{var c=Rr(),f=i;return typeof f=="function"?Ga(f,c):i=c,A(c,b(ku,{name:"tsqd-panel-transition",get children(){return b(j,{get when(){return P(()=>!!(l()&&!n().pipWindow))()&&d()=="false"},get children(){return b(Hy,{get localStore(){return t.localStore},get setLocalStore(){return t.setLocalStore}})}})}}),null),A(c,b(ku,{name:"tsqd-button-transition",get children(){return b(j,{get when(){return!l()},get children(){var p=dy(),m=p.firstChild,g=m.nextSibling;return A(m,b(nd,{})),g.$$click=()=>t.setLocalStore("open","true"),A(g,b(nd,{})),W(()=>B(p,_(r().devtoolsBtn,r()[`devtoolsBtn-position-${s()}`],"tsqd-open-btn-container"))),p}})}}),null),W(()=>B(c,_(o`
|
|
122
122
|
& .tsqd-panel-transition-exit-active,
|
|
123
123
|
& .tsqd-panel-transition-enter-active {
|
|
124
124
|
transition:
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
|
|
129
129
|
& .tsqd-panel-transition-exit-to,
|
|
130
130
|
& .tsqd-panel-transition-enter {
|
|
131
|
-
${
|
|
131
|
+
${u()==="top"||u()==="bottom"?"transform: translateY(var(--tsqd-panel-height));":"transform: translateX(var(--tsqd-panel-width));"}
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
& .tsqd-button-transition-exit-active,
|
|
@@ -141,111 +141,111 @@
|
|
|
141
141
|
|
|
142
142
|
& .tsqd-button-transition-exit-to,
|
|
143
143
|
& .tsqd-button-transition-enter {
|
|
144
|
-
transform: ${
|
|
144
|
+
transform: ${s()==="relative"?"none;":s()==="top-left"?"translateX(-72px);":s()==="top-right"?"translateX(72px);":"translateY(72px);"};
|
|
145
145
|
opacity: 0;
|
|
146
146
|
}
|
|
147
|
-
`,"tsqd-transitions-container"))),
|
|
147
|
+
`,"tsqd-transitions-container"))),c})()]},Uy=t=>{let a=Ns(),o=Ge(),r=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,n=P(()=>o()==="dark"?Lt(r):wt(r)),s=()=>{let{colors:l}=R,u=(i,d)=>o()==="dark"?d:i;return Mt()<Za?r`
|
|
148
148
|
flex-direction: column;
|
|
149
|
-
background-color: ${
|
|
150
|
-
`:
|
|
149
|
+
background-color: ${u(l.gray[300],l.gray[600])};
|
|
150
|
+
`:r`
|
|
151
151
|
flex-direction: row;
|
|
152
|
-
background-color: ${
|
|
153
|
-
`};return
|
|
152
|
+
background-color: ${u(l.gray[200],l.darkGray[900])};
|
|
153
|
+
`};return Q(()=>{let l=a().pipWindow,u=()=>{l&&rl(l.innerWidth)};l&&(l.addEventListener("resize",u),u()),Z(()=>{l&&l.removeEventListener("resize",u)})}),(()=>{var l=Rr();return l.style.setProperty("--tsqd-font-size","16px"),l.style.setProperty("max-height","100vh"),l.style.setProperty("height","100vh"),l.style.setProperty("width","100vw"),A(l,()=>t.children),W(()=>B(l,_(n().panel,s(),{[r`
|
|
154
154
|
min-width: min-content;
|
|
155
|
-
`]:
|
|
155
|
+
`]:Mt()<qs},"tsqd-main-panel"))),l})()},_c=t=>{let a=Ge(),o=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,r=P(()=>a()==="dark"?Lt(o):wt(o)),n;aa(()=>{bd(n,({width:l},u)=>{u===n&&rl(l)})});let s=()=>{let{colors:l}=R,u=(i,d)=>a()==="dark"?d:i;return Mt()<Za?o`
|
|
156
156
|
flex-direction: column;
|
|
157
|
-
background-color: ${
|
|
158
|
-
`:
|
|
157
|
+
background-color: ${u(l.gray[300],l.gray[600])};
|
|
158
|
+
`:o`
|
|
159
159
|
flex-direction: row;
|
|
160
|
-
background-color: ${
|
|
161
|
-
`};return(()=>{var
|
|
160
|
+
background-color: ${u(l.gray[200],l.darkGray[900])};
|
|
161
|
+
`};return(()=>{var l=Rr(),u=n;return typeof u=="function"?Ga(u,l):n=l,l.style.setProperty("--tsqd-font-size","16px"),A(l,()=>t.children),W(()=>B(l,_(r().parentPanel,s(),{[o`
|
|
162
162
|
min-width: min-content;
|
|
163
|
-
`]:
|
|
163
|
+
`]:Mt()<qs},"tsqd-main-panel"))),l})()},Hy=t=>{let a=Ge(),o=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,r=P(()=>a()==="dark"?Lt(o):wt(o)),[n,s]=U(!1),l=P(()=>t.localStore.position||X().position||Ms),u=c=>{let f=c.currentTarget.parentElement;if(!f)return;s(!0);let{height:p,width:m}=f.getBoundingClientRect(),g=c.clientX,h=c.clientY,x=0,y=vs(3.5),v=vs(12),C=I=>{if(I.preventDefault(),l()==="left"||l()==="right"){let O=l()==="right"?g-I.clientX:I.clientX-g;x=Math.round(m+O),x<v&&(x=v),t.setLocalStore("width",String(Math.round(x)));let E=f.getBoundingClientRect().width;Number(t.localStore.width)<E&&t.setLocalStore("width",String(E))}else{let O=l()==="bottom"?h-I.clientY:I.clientY-h;x=Math.round(p+O),x<y&&(x=y,On(null)),t.setLocalStore("height",String(Math.round(x)))}},L=()=>{n()&&s(!1),document.removeEventListener("mousemove",C,!1),document.removeEventListener("mouseUp",L,!1)};document.addEventListener("mousemove",C,!1),document.addEventListener("mouseup",L,!1)},i;aa(()=>{bd(i,({width:c},f)=>{f===i&&rl(c)})}),Q(()=>{let c=i.parentElement?.parentElement?.parentElement;if(!c)return;let f=t.localStore.position||Ms,p=fu("padding",f),m=t.localStore.position==="left"||t.localStore.position==="right",g=(({padding:h,paddingTop:x,paddingBottom:y,paddingLeft:v,paddingRight:C})=>({padding:h,paddingTop:x,paddingBottom:y,paddingLeft:v,paddingRight:C}))(c.style);c.style[p]=`${m?t.localStore.width:t.localStore.height}px`,Z(()=>{Object.entries(g).forEach(([h,x])=>{c.style[h]=x})})});let d=()=>{let{colors:c}=R,f=(p,m)=>a()==="dark"?m:p;return Mt()<Za?o`
|
|
164
164
|
flex-direction: column;
|
|
165
|
-
background-color: ${c
|
|
166
|
-
`:
|
|
165
|
+
background-color: ${f(c.gray[300],c.gray[600])};
|
|
166
|
+
`:o`
|
|
167
167
|
flex-direction: row;
|
|
168
|
-
background-color: ${c
|
|
169
|
-
`};return(()=>{var
|
|
168
|
+
background-color: ${f(c.gray[200],c.darkGray[900])};
|
|
169
|
+
`};return(()=>{var c=cy(),f=c.firstChild,p=f.nextSibling,m=i;return typeof m=="function"?Ga(m,c):i=c,f.$$mousedown=u,p.$$click=()=>t.setLocalStore("open","false"),A(p,b(yr,{})),A(c,b(Bn,t),null),W(g=>{var h=_(r().panel,r()[`panel-position-${l()}`],d(),{[o`
|
|
170
170
|
min-width: min-content;
|
|
171
|
-
`]:
|
|
171
|
+
`]:Mt()<qs&&(l()==="right"||l()==="left")},"tsqd-main-panel"),x=l()==="bottom"||l()==="top"?`${t.localStore.height||fd}px`:"auto",y=l()==="right"||l()==="left"?`${t.localStore.width||pd}px`:"auto",v=_(r().dragHandle,r()[`dragHandle-position-${l()}`],"tsqd-drag-handle"),C=_(r().closeBtn,r()[`closeBtn-position-${l()}`],"tsqd-minimize-btn");return h!==g.e&&B(c,g.e=h),x!==g.t&&((g.t=x)!=null?c.style.setProperty("height",x):c.style.removeProperty("height")),y!==g.a&&((g.a=y)!=null?c.style.setProperty("width",y):c.style.removeProperty("width")),v!==g.o&&B(f,g.o=v),C!==g.i&&B(p,g.i=C),g},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),c})()},Bn=t=>{jy(),Xy();let a,o=Ge(),r=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,n=P(()=>o()==="dark"?Lt(r):wt(r)),s=Ns(),[l,u]=U("queries"),i=P(()=>t.localStore.sort||Wg),d=P(()=>Number(t.localStore.sortOrder)||bu),c=P(()=>t.localStore.mutationSort||Qg),f=P(()=>Number(t.localStore.mutationSortOrder)||bu),p=P(()=>cn[i()]),m=P(()=>fn[c()]),g=P(()=>X().onlineManager),h=P(()=>X().client.getQueryCache()),x=P(()=>X().client.getMutationCache()),y=We(E=>E().getAll().length,!1),v=P(qt(()=>[y(),t.localStore.filter,i(),d()],()=>{let E=h().getAll(),q=t.localStore.filter?E.filter(M=>vu(M.queryHash,t.localStore.filter||"").passed):[...E];return p()?q.sort((M,T)=>p()(M,T)*d()):q})),C=Pt(E=>E().getAll().length,!1),L=P(qt(()=>[C(),t.localStore.mutationFilter,c(),f()],()=>{let E=x().getAll(),q=t.localStore.mutationFilter?E.filter(M=>{let T=`${M.options.mutationKey?JSON.stringify(M.options.mutationKey)+" - ":""}${new Date(M.state.submittedAt).toLocaleString()}`;return vu(T,t.localStore.mutationFilter||"").passed}):[...E];return m()?q.sort((M,T)=>m()(M,T)*f()):q})),I=E=>{t.setLocalStore("position",E)},O=E=>{let S=getComputedStyle(a).getPropertyValue("--tsqd-font-size");E.style.setProperty("--tsqd-font-size",S)};return[(()=>{var E=Ay(),q=E.firstChild,S=q.firstChild,M=S.firstChild,T=M.firstChild,k=T.nextSibling,Y=k.firstChild,ae=q.nextSibling,ce=ae.firstChild,fe=ce.firstChild,ye=fe.firstChild,be=fe.nextSibling,me=be.nextSibling,Ee=ce.nextSibling,ke=Ee.firstChild,Be=ke.nextSibling,tt=a;return typeof tt=="function"?Ga(tt,E):a=E,M.$$click=()=>{if(!s().pipWindow&&!t.showPanelViewOnly){t.setLocalStore("open","false");return}t.onClose&&t.onClose()},A(k,()=>X().queryFlavor,Y),A(k,()=>X().version,null),A(S,b(bt.Root,{get class(){return _(n().viewToggle)},get value(){return l()},onChange:$=>{u($),On(null),Uc(null)},get children(){return[b(bt.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return[b(bt.ItemInput,{}),b(bt.ItemControl,{get children(){return b(bt.ItemIndicator,{})}}),b(bt.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),b(bt.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return[b(bt.ItemInput,{}),b(bt.ItemControl,{get children(){return b(bt.ItemIndicator,{})}}),b(bt.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),A(q,b(j,{get when(){return l()==="queries"},get children(){return b(Ky,{})}}),null),A(q,b(j,{get when(){return l()==="mutations"},get children(){return b(Gy,{})}}),null),A(fe,b(R1,{}),ye),ye.$$input=$=>{l()==="queries"?t.setLocalStore("filter",$.currentTarget.value):t.setLocalStore("mutationFilter",$.currentTarget.value)},A(be,b(j,{get when(){return l()==="queries"},get children(){var $=fy();return $.addEventListener("change",Fe=>{t.setLocalStore("sort",Fe.currentTarget.value)}),A($,()=>Object.keys(cn).map(Fe=>(()=>{var ge=dd();return ge.firstChild,ge.value=Fe,A(ge,Fe,null),ge})())),W(()=>$.value=i()),$}}),null),A(be,b(j,{get when(){return l()==="mutations"},get children(){var $=py();return $.addEventListener("change",Fe=>{t.setLocalStore("mutationSort",Fe.currentTarget.value)}),A($,()=>Object.keys(fn).map(Fe=>(()=>{var ge=dd();return ge.firstChild,ge.value=Fe,A(ge,Fe,null),ge})())),W(()=>$.value=c()),$}}),null),A(be,b(yr,{}),null),me.$$click=()=>{l()==="queries"?t.setLocalStore("sortOrder",String(d()*-1)):t.setLocalStore("mutationSortOrder",String(f()*-1))},A(me,b(j,{get when(){return(l()==="queries"?d():f())===1},get children(){return[my(),b(od,{})]}}),null),A(me,b(j,{get when(){return(l()==="queries"?d():f())===-1},get children(){return[gy(),b(rd,{})]}}),null),ke.$$click=()=>{l()==="queries"?h().clear():x().clear()},A(ke,b(qc,{})),Be.$$click=()=>{yo()?(g().setOnline(!0),cd(!1)):(g().setOnline(!1),cd(!0))},A(Be,(()=>{var $=P(()=>!!yo());return()=>$()?b($1,{}):b(B1,{})})()),A(Ee,b(j,{get when(){return P(()=>!s().pipWindow)()&&!s().disabled},get children(){var $=hy();return $.$$click=()=>{s().requestPipWindow(Number(window.innerWidth),Number(t.localStore.height??500))},A($,b(N1,{})),W(()=>B($,_(n().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),$}}),null),A(Ee,b(ze.Root,{gutter:4,get children(){return[b(ze.Trigger,{get class(){return _(n().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},get children(){return b(q1,{})}}),b(ze.Portal,{ref:$=>O($),get mount(){return P(()=>!!s().pipWindow)()?s().pipWindow.document.body:document.body},get children(){return b(ze.Content,{get class(){return _(n().settingsMenu,"tsqd-settings-menu")},get children(){return[(()=>{var $=xy();return W(()=>B($,_(n().settingsMenuHeader,"tsqd-settings-menu-header"))),$})(),b(j,{get when(){return!t.showPanelViewOnly},get children(){return b(ze.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[b(ze.SubTrigger,{get class(){return _(n().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[yy(),b(yr,{})]}}),b(ze.Portal,{ref:$=>O($),get mount(){return P(()=>!!s().pipWindow)()?s().pipWindow.document.body:document.body},get children(){return b(ze.SubContent,{get class(){return _(n().settingsMenu,"tsqd-settings-submenu")},get children(){return[b(ze.Item,{onSelect:()=>{I("top")},as:"button",get class(){return _(n().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[by(),b(od,{})]}}),b(ze.Item,{onSelect:()=>{I("bottom")},as:"button",get class(){return _(n().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[vy(),b(rd,{})]}}),b(ze.Item,{onSelect:()=>{I("left")},as:"button",get class(){return _(n().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[Cy(),b(T1,{})]}}),b(ze.Item,{onSelect:()=>{I("right")},as:"button",get class(){return _(n().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return[wy(),b(D1,{})]}})]}})}})]}})}}),b(ze.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[b(ze.SubTrigger,{get class(){return _(n().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[Ly(),b(yr,{})]}}),b(ze.Portal,{ref:$=>O($),get mount(){return P(()=>!!s().pipWindow)()?s().pipWindow.document.body:document.body},get children(){return b(ze.SubContent,{get class(){return _(n().settingsMenu,"tsqd-settings-submenu")},get children(){return[b(ze.Item,{onSelect:()=>{t.setLocalStore("theme_preference","light")},as:"button",get class(){return _(n().settingsSubButton,t.localStore.theme_preference==="light"&&n().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[Iy(),b(E1,{})]}}),b(ze.Item,{onSelect:()=>{t.setLocalStore("theme_preference","dark")},as:"button",get class(){return _(n().settingsSubButton,t.localStore.theme_preference==="dark"&&n().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[Sy(),b(F1,{})]}}),b(ze.Item,{onSelect:()=>{t.setLocalStore("theme_preference","system")},as:"button",get class(){return _(n().settingsSubButton,t.localStore.theme_preference==="system"&&n().themeSelectedButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[ky(),b(O1,{})]}})]}})}})]}})]}})}})]}}),null),A(E,b(j,{get when(){return l()==="queries"},get children(){var $=Py(),Fe=$.firstChild;return A(Fe,b(xn,{by:ge=>ge.queryHash,get each(){return v()},children:ge=>b(_y,{get query(){return ge()}})})),W(()=>B($,_(n().overflowQueryContainer,"tsqd-queries-overflow-container"))),$}}),null),A(E,b(j,{get when(){return l()==="mutations"},get children(){var $=My(),Fe=$.firstChild;return A(Fe,b(xn,{by:ge=>ge.mutationId,get each(){return L()},children:ge=>b(Vy,{get mutation(){return ge()}})})),W(()=>B($,_(n().overflowQueryContainer,"tsqd-mutations-overflow-container"))),$}}),null),W($=>{var Fe=_(n().queriesContainer,Mt()<Za&&(ct()||Ta())&&r`
|
|
172
172
|
height: 50%;
|
|
173
173
|
max-height: 50%;
|
|
174
|
-
`,
|
|
174
|
+
`,Mt()<Za&&!(ct()||Ta())&&r`
|
|
175
175
|
height: 100%;
|
|
176
176
|
max-height: 100%;
|
|
177
|
-
`,"tsqd-queries-container"),
|
|
178
|
-
background-color: ${
|
|
179
|
-
color: ${
|
|
180
|
-
`:
|
|
181
|
-
background-color: ${
|
|
182
|
-
color: ${
|
|
183
|
-
`;return
|
|
184
|
-
background-color: ${
|
|
185
|
-
color: ${
|
|
186
|
-
`:
|
|
187
|
-
background-color: ${
|
|
188
|
-
color: ${
|
|
189
|
-
`;return
|
|
177
|
+
`,"tsqd-queries-container"),ge=_(n().row,"tsqd-header"),Ca=n().logoAndToggleContainer,ee=_(n().logo,"tsqd-text-logo-container"),St=_(n().tanstackLogo,"tsqd-text-logo-tanstack"),je=_(n().queryFlavorLogo,"tsqd-text-logo-query-flavor"),no=_(n().row,"tsqd-filters-actions-container"),ht=_(n().filtersContainer,"tsqd-filters-container"),wa=_(n().filterInput,"tsqd-query-filter-textfield-container"),Ua=_("tsqd-query-filter-textfield"),Gt=_(n().filterSelect,"tsqd-query-filter-sort-container"),Ot=`Sort order ${(l()==="queries"?d():f())===-1?"descending":"ascending"}`,Wt=(l()==="queries"?d():f())===-1,H=_(n().actionsContainer,"tsqd-actions-container"),we=_(n().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),at=`Clear ${l()} cache`,Ie=_(n().actionsBtn,yo()&&n().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),Ce=`${yo()?"Unset offline mocking behavior":"Mock offline behavior"}`,Pe=yo(),_e=`${yo()?"Unset offline mocking behavior":"Mock offline behavior"}`;return Fe!==$.e&&B(E,$.e=Fe),ge!==$.t&&B(q,$.t=ge),Ca!==$.a&&B(S,$.a=Ca),ee!==$.o&&B(M,$.o=ee),St!==$.i&&B(T,$.i=St),je!==$.n&&B(k,$.n=je),no!==$.s&&B(ae,$.s=no),ht!==$.h&&B(ce,$.h=ht),wa!==$.r&&B(fe,$.r=wa),Ua!==$.d&&B(ye,$.d=Ua),Gt!==$.l&&B(be,$.l=Gt),Ot!==$.u&&F(me,"aria-label",$.u=Ot),Wt!==$.c&&F(me,"aria-pressed",$.c=Wt),H!==$.w&&B(Ee,$.w=H),we!==$.m&&B(ke,$.m=we),at!==$.f&&F(ke,"title",$.f=at),Ie!==$.y&&B(Be,$.y=Ie),Ce!==$.g&&F(Be,"aria-label",$.g=Ce),Pe!==$.p&&F(Be,"aria-pressed",$.p=Pe),_e!==$.b&&F(Be,"title",$.b=_e),$},{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(()=>ye.value=l()==="queries"?t.localStore.filter||"":t.localStore.mutationFilter||""),E})(),b(j,{get when(){return P(()=>l()==="queries")()&&ct()},get children(){return b(Wy,{})}}),b(j,{get when(){return P(()=>l()==="mutations")()&&Ta()},get children(){return b(Qy,{})}})]},_y=t=>{let a=Ge(),o=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,r=P(()=>a()==="dark"?Lt(o):wt(o)),{colors:n,alpha:s}=R,l=(m,g)=>a()==="dark"?g:m,u=We(m=>m().find({queryKey:t.query.queryKey})?.state,!0,m=>m.query.queryHash===t.query.queryHash),i=We(m=>m().find({queryKey:t.query.queryKey})?.isDisabled()??!1,!0,m=>m.query.queryHash===t.query.queryHash),d=We(m=>m().find({queryKey:t.query.queryKey})?.isStale()??!1,!0,m=>m.query.queryHash===t.query.queryHash),c=We(m=>m().find({queryKey:t.query.queryKey})?.getObserversCount()??0,!0,m=>m.query.queryHash===t.query.queryHash),f=P(()=>pu({queryState:u(),observerCount:c(),isStale:d()})),p=()=>f()==="gray"?o`
|
|
178
|
+
background-color: ${l(n[f()][200],n[f()][700])};
|
|
179
|
+
color: ${l(n[f()][700],n[f()][300])};
|
|
180
|
+
`:o`
|
|
181
|
+
background-color: ${l(n[f()][200]+s[80],n[f()][900])};
|
|
182
|
+
color: ${l(n[f()][800],n[f()][300])};
|
|
183
|
+
`;return b(j,{get when(){return u()},get children(){var m=zc(),g=m.firstChild,h=g.nextSibling;return m.$$click=()=>On(t.query.queryHash===ct()?null:t.query.queryHash),A(g,c),A(h,()=>t.query.queryHash),A(m,b(j,{get when(){return i()},get children(){return Ry()}}),null),W(x=>{var y=_(r().queryRow,ct()===t.query.queryHash&&r().selectedQueryRow,"tsqd-query-row"),v=`Query key ${t.query.queryHash}`,C=_(p(),"tsqd-query-observer-count");return y!==x.e&&B(m,x.e=y),v!==x.t&&F(m,"aria-label",x.t=v),C!==x.a&&B(g,x.a=C),x},{e:void 0,t:void 0,a:void 0}),m}})},Vy=t=>{let a=Ge(),o=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,r=P(()=>a()==="dark"?Lt(o):wt(o)),{colors:n,alpha:s}=R,l=(p,m)=>a()==="dark"?m:p,u=Pt(p=>p().getAll().find(h=>h.mutationId===t.mutation.mutationId)?.state),i=Pt(p=>{let g=p().getAll().find(h=>h.mutationId===t.mutation.mutationId);return g?g.state.isPaused:!1}),d=Pt(p=>{let g=p().getAll().find(h=>h.mutationId===t.mutation.mutationId);return g?g.state.status:"idle"}),c=P(()=>ja({isPaused:i(),status:d()})),f=()=>c()==="gray"?o`
|
|
184
|
+
background-color: ${l(n[c()][200],n[c()][700])};
|
|
185
|
+
color: ${l(n[c()][700],n[c()][300])};
|
|
186
|
+
`:o`
|
|
187
|
+
background-color: ${l(n[c()][200]+s[80],n[c()][900])};
|
|
188
|
+
color: ${l(n[c()][800],n[c()][300])};
|
|
189
|
+
`;return b(j,{get when(){return u()},get children(){var p=zc(),m=p.firstChild,g=m.nextSibling;return p.$$click=()=>{Uc(t.mutation.mutationId===Ta()?null:t.mutation.mutationId)},A(m,b(j,{get when(){return c()==="purple"},get children(){return b(j1,{})}}),null),A(m,b(j,{get when(){return c()==="green"},get children(){return b(G1,{})}}),null),A(m,b(j,{get when(){return c()==="red"},get children(){return b(Q1,{})}}),null),A(m,b(j,{get when(){return c()==="yellow"},get children(){return b(W1,{})}}),null),A(g,b(j,{get when(){return t.mutation.options.mutationKey},get children(){return[P(()=>JSON.stringify(t.mutation.options.mutationKey))," -"," "]}}),null),A(g,()=>new Date(t.mutation.state.submittedAt).toLocaleString(),null),W(h=>{var x=_(r().queryRow,Ta()===t.mutation.mutationId&&r().selectedQueryRow,"tsqd-query-row"),y=`Mutation submitted at ${new Date(t.mutation.state.submittedAt).toLocaleString()}`,v=_(f(),"tsqd-query-observer-count");return x!==h.e&&B(p,h.e=x),y!==h.t&&F(p,"aria-label",h.t=y),v!==h.a&&B(m,h.a=v),h},{e:void 0,t:void 0,a:void 0}),p}})},Ky=()=>{let t=We(i=>i().getAll().filter(d=>Qa(d)==="stale").length),a=We(i=>i().getAll().filter(d=>Qa(d)==="fresh").length),o=We(i=>i().getAll().filter(d=>Qa(d)==="fetching").length),r=We(i=>i().getAll().filter(d=>Qa(d)==="paused").length),n=We(i=>i().getAll().filter(d=>Qa(d)==="inactive").length),s=Ge(),l=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,u=P(()=>s()==="dark"?Lt(l):wt(l));return(()=>{var i=Rr();return A(i,b(na,{label:"Fresh",color:"green",get count(){return a()}}),null),A(i,b(na,{label:"Fetching",color:"blue",get count(){return o()}}),null),A(i,b(na,{label:"Paused",color:"purple",get count(){return r()}}),null),A(i,b(na,{label:"Stale",color:"yellow",get count(){return t()}}),null),A(i,b(na,{label:"Inactive",color:"gray",get count(){return n()}}),null),W(()=>B(i,_(u().queryStatusContainer,"tsqd-query-status-container"))),i})()},Gy=()=>{let t=Pt(u=>u().getAll().filter(i=>ja({isPaused:i.state.isPaused,status:i.state.status})==="green").length),a=Pt(u=>u().getAll().filter(i=>ja({isPaused:i.state.isPaused,status:i.state.status})==="yellow").length),o=Pt(u=>u().getAll().filter(i=>ja({isPaused:i.state.isPaused,status:i.state.status})==="purple").length),r=Pt(u=>u().getAll().filter(i=>ja({isPaused:i.state.isPaused,status:i.state.status})==="red").length),n=Ge(),s=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,l=P(()=>n()==="dark"?Lt(s):wt(s));return(()=>{var u=Rr();return A(u,b(na,{label:"Paused",color:"purple",get count(){return o()}}),null),A(u,b(na,{label:"Pending",color:"yellow",get count(){return a()}}),null),A(u,b(na,{label:"Success",color:"green",get count(){return t()}}),null),A(u,b(na,{label:"Error",color:"red",get count(){return r()}}),null),W(()=>B(u,_(l().queryStatusContainer,"tsqd-query-status-container"))),u})()},na=t=>{let a=Ge(),o=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,r=P(()=>a()==="dark"?Lt(o):wt(o)),{colors:n,alpha:s}=R,l=(m,g)=>a()==="dark"?g:m,u,[i,d]=U(!1),[c,f]=U(!1),p=P(()=>!(ct()&&Mt()<_g&&Mt()>Za||Mt()<Za));return(()=>{var m=Ey(),g=m.firstChild,h=g.nextSibling,x=u;return typeof x=="function"?Ga(x,m):u=m,m.addEventListener("mouseleave",()=>{d(!1),f(!1)}),m.addEventListener("mouseenter",()=>d(!0)),m.addEventListener("blur",()=>f(!1)),m.addEventListener("focus",()=>f(!0)),xs(m,te({get disabled(){return p()},get class(){return _(r().queryStatusTag,!p()&&o`
|
|
190
190
|
cursor: pointer;
|
|
191
191
|
&:hover {
|
|
192
|
-
background: ${
|
|
192
|
+
background: ${l(n.gray[200],n.darkGray[400])}${s[80]};
|
|
193
193
|
}
|
|
194
|
-
`,"tsqd-query-status-tag",`tsqd-query-status-tag-${
|
|
195
|
-
width: ${
|
|
196
|
-
height: ${
|
|
197
|
-
border-radius: ${
|
|
198
|
-
background-color: ${
|
|
199
|
-
`,"tsqd-query-status-tag-dot"),
|
|
200
|
-
background-color: ${
|
|
201
|
-
color: ${
|
|
202
|
-
`,"tsqd-query-status-tag-count");return
|
|
203
|
-
background-color: ${r
|
|
204
|
-
color: ${r
|
|
205
|
-
border-color: ${r
|
|
206
|
-
`:
|
|
207
|
-
background-color: ${r
|
|
208
|
-
color: ${r
|
|
209
|
-
border-color: ${r
|
|
210
|
-
`;return
|
|
211
|
-
color: ${r
|
|
212
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),
|
|
213
|
-
background-color: ${r
|
|
214
|
-
`;return
|
|
215
|
-
background-color: ${
|
|
216
|
-
`,
|
|
217
|
-
color: ${r
|
|
218
|
-
`),La=
|
|
219
|
-
color: ${r
|
|
220
|
-
`);return
|
|
221
|
-
color: ${r
|
|
222
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),
|
|
223
|
-
background-color: ${r
|
|
224
|
-
`,
|
|
225
|
-
color: ${r
|
|
226
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),
|
|
227
|
-
background-color: ${r
|
|
228
|
-
`,
|
|
229
|
-
color: ${r
|
|
230
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),
|
|
231
|
-
background-color: ${r
|
|
232
|
-
`,
|
|
233
|
-
color: ${r
|
|
234
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),
|
|
235
|
-
background-color: ${r
|
|
236
|
-
`,
|
|
237
|
-
color: ${r
|
|
238
|
-
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),
|
|
239
|
-
background-color: ${r
|
|
240
|
-
`,
|
|
241
|
-
background-color: ${r
|
|
242
|
-
color: ${r
|
|
243
|
-
border-color: ${r
|
|
244
|
-
`:
|
|
245
|
-
background-color: ${r
|
|
246
|
-
color: ${r
|
|
247
|
-
border-color: ${r
|
|
248
|
-
`;return
|
|
194
|
+
`,"tsqd-query-status-tag",`tsqd-query-status-tag-${t.label.toLowerCase()}`)}},()=>i()||c()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),A(m,b(j,{get when(){return P(()=>!p())()&&(i()||c())},get children(){var y=Ty();return A(y,()=>t.label),W(()=>B(y,_(r().statusTooltip,"tsqd-query-status-tooltip"))),y}}),g),A(m,b(j,{get when(){return p()},get children(){var y=Dy();return A(y,()=>t.label),W(()=>B(y,_(r().queryStatusTagLabel,"tsqd-query-status-tag-label"))),y}}),h),A(h,()=>t.count),W(y=>{var v=_(o`
|
|
195
|
+
width: ${R.size[1.5]};
|
|
196
|
+
height: ${R.size[1.5]};
|
|
197
|
+
border-radius: ${R.border.radius.full};
|
|
198
|
+
background-color: ${R.colors[t.color][500]};
|
|
199
|
+
`,"tsqd-query-status-tag-dot"),C=_(r().queryStatusCount,t.count>0&&t.color!=="gray"&&o`
|
|
200
|
+
background-color: ${l(n[t.color][100],n[t.color][900])};
|
|
201
|
+
color: ${l(n[t.color][700],n[t.color][300])};
|
|
202
|
+
`,"tsqd-query-status-tag-count");return v!==y.e&&B(g,y.e=v),C!==y.t&&B(h,y.t=C),y},{e:void 0,t:void 0}),m})()},Wy=()=>{let t=Ge(),a=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,o=P(()=>t()==="dark"?Lt(a):wt(a)),{colors:r}=R,n=(S,M)=>t()==="dark"?M:S,s=X().client,[l,u]=U(!1),[i,d]=U("view"),[c,f]=U(!1),p=P(()=>X().errorTypes||[]),m=We(S=>S().getAll().find(M=>M.queryHash===ct()),!1),g=We(S=>S().getAll().find(M=>M.queryHash===ct()),!1),h=We(S=>S().getAll().find(M=>M.queryHash===ct())?.state,!1),x=We(S=>S().getAll().find(M=>M.queryHash===ct())?.state.data,!1),y=We(S=>{let M=S().getAll().find(T=>T.queryHash===ct());return M?Qa(M):"inactive"}),v=We(S=>{let M=S().getAll().find(T=>T.queryHash===ct());return M?M.state.status:"pending"}),C=We(S=>S().getAll().find(M=>M.queryHash===ct())?.getObserversCount()??0),L=P(()=>mu(y())),I=()=>{m()?.fetch()?.catch(()=>{})},O=S=>{let M=S?.initializer(m())??new Error("Unknown error from devtools"),T=m().options;m().setState({status:"error",error:M,fetchMeta:{...m().state.fetchMeta,__previousQueryOptions:T}})},E=()=>{let S=m(),M=S.state,T=S.state.fetchMeta?S.state.fetchMeta.__previousQueryOptions:null;S.cancel({silent:!0}),S.setState({...M,fetchStatus:"idle",fetchMeta:null}),T&&S.fetch(T)};Q(()=>{y()!=="fetching"&&u(!1)});let q=()=>L()==="gray"?a`
|
|
203
|
+
background-color: ${n(r[L()][200],r[L()][700])};
|
|
204
|
+
color: ${n(r[L()][700],r[L()][300])};
|
|
205
|
+
border-color: ${n(r[L()][400],r[L()][600])};
|
|
206
|
+
`:a`
|
|
207
|
+
background-color: ${n(r[L()][100],r[L()][900])};
|
|
208
|
+
color: ${n(r[L()][700],r[L()][300])};
|
|
209
|
+
border-color: ${n(r[L()][400],r[L()][600])};
|
|
210
|
+
`;return b(j,{get when(){return P(()=>!!m())()&&h()},get children(){var S=qy(),M=S.firstChild,T=M.nextSibling,k=T.firstChild,Y=k.firstChild,ae=Y.firstChild,ce=Y.nextSibling,fe=k.nextSibling,ye=fe.firstChild,be=ye.nextSibling,me=fe.nextSibling,Ee=me.firstChild,ke=Ee.nextSibling,Be=T.nextSibling,tt=Be.nextSibling,$=tt.firstChild,Fe=$.firstChild,ge=$.nextSibling,Ca=ge.firstChild,ee=ge.nextSibling,St=ee.firstChild,je=ee.nextSibling,no=je.firstChild,ht=je.nextSibling,wa=ht.firstChild,Ua=wa.nextSibling,Gt=tt.nextSibling;Gt.firstChild;var Ot=Gt.nextSibling,Wt=Ot.nextSibling;return A(ae,()=>cr(m().queryKey,!0)),A(ce,y),A(be,C),A(ke,()=>new Date(h().dataUpdatedAt).toLocaleTimeString()),$.$$click=I,ge.$$click=()=>s.invalidateQueries(m()),ee.$$click=()=>s.resetQueries(m()),je.$$click=()=>{s.removeQueries(m()),On(null)},ht.$$click=()=>{if(m()?.state.data===void 0)u(!0),E();else{let H=m();if(!H)return;let we=H.options;H.fetch({...we,queryFn:()=>new Promise(()=>{}),gcTime:-1}),H.setState({data:void 0,status:"pending",fetchMeta:{...H.state.fetchMeta,__previousQueryOptions:we}})}},A(ht,()=>v()==="pending"?"Restore":"Trigger",Ua),A(tt,b(j,{get when(){return p().length===0||v()==="error"},get children(){var H=Fy(),we=H.firstChild,at=we.nextSibling;return H.$$click=()=>{m().state.error?s.resetQueries(m()):O()},A(H,()=>v()==="error"?"Restore":"Trigger",at),W(Ie=>{var Ce=_(a`
|
|
211
|
+
color: ${n(r.red[500],r.red[400])};
|
|
212
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),Pe=v()==="pending",_e=a`
|
|
213
|
+
background-color: ${n(r.red[500],r.red[400])};
|
|
214
|
+
`;return Ce!==Ie.e&&B(H,Ie.e=Ce),Pe!==Ie.t&&(H.disabled=Ie.t=Pe),_e!==Ie.a&&B(we,Ie.a=_e),Ie},{e:void 0,t:void 0,a:void 0}),H}}),null),A(tt,b(j,{get when(){return!(p().length===0||v()==="error")},get children(){var H=Oy(),we=H.firstChild,at=we.nextSibling,Ie=at.nextSibling;return Ie.firstChild,Ie.addEventListener("change",Ce=>{let Pe=p().find(_e=>_e.name===Ce.currentTarget.value);O(Pe)}),A(Ie,b(_i,{get each(){return p()},children:Ce=>(()=>{var Pe=Ny();return A(Pe,()=>Ce.name),W(()=>Pe.value=Ce.name),Pe})()}),null),A(H,b(yr,{}),null),W(Ce=>{var Pe=_(o().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),_e=a`
|
|
215
|
+
background-color: ${R.colors.red[400]};
|
|
216
|
+
`,ve=v()==="pending";return Pe!==Ce.e&&B(H,Ce.e=Pe),_e!==Ce.t&&B(we,Ce.t=_e),ve!==Ce.a&&(Ie.disabled=Ce.a=ve),Ce},{e:void 0,t:void 0,a:void 0}),H}}),null),A(Gt,()=>i()==="view"?"Explorer":"Editor",null),A(S,b(j,{get when(){return i()==="view"},get children(){var H=By();return A(H,b(Ra,{label:"Data",defaultExpanded:["Data"],get value(){return x()},editable:!0,onEdit:()=>d("edit"),get activeQuery(){return m()}})),W(we=>(we=R.size[2])!=null?H.style.setProperty("padding",we):H.style.removeProperty("padding")),H}}),Ot),A(S,b(j,{get when(){return i()==="edit"},get children(){var H=$y(),we=H.firstChild,at=we.nextSibling,Ie=at.firstChild,Ce=Ie.nextSibling,Pe=Ce.firstChild,_e=Pe.nextSibling;return H.addEventListener("submit",ve=>{ve.preventDefault();let jt=new FormData(ve.currentTarget).get("data");try{let kt=JSON.parse(jt);m().setState({...m().state,data:kt}),d("view")}catch{f(!0)}}),we.addEventListener("focus",()=>f(!1)),A(Ie,()=>c()?"Invalid Value":""),Pe.$$click=()=>d("view"),W(ve=>{var Qt=_(o().devtoolsEditForm,"tsqd-query-details-data-editor"),jt=o().devtoolsEditTextarea,kt=c(),Ha=o().devtoolsEditFormActions,Xt=o().devtoolsEditFormError,_a=o().devtoolsEditFormActionContainer,Zt=_(o().devtoolsEditFormAction,a`
|
|
217
|
+
color: ${n(r.gray[600],r.gray[300])};
|
|
218
|
+
`),La=_(o().devtoolsEditFormAction,a`
|
|
219
|
+
color: ${n(r.blue[600],r.blue[400])};
|
|
220
|
+
`);return Qt!==ve.e&&B(H,ve.e=Qt),jt!==ve.t&&B(we,ve.t=jt),kt!==ve.a&&F(we,"data-error",ve.a=kt),Ha!==ve.o&&B(at,ve.o=Ha),Xt!==ve.i&&B(Ie,ve.i=Xt),_a!==ve.n&&B(Ce,ve.n=_a),Zt!==ve.s&&B(Pe,ve.s=Zt),La!==ve.h&&B(_e,ve.h=La),ve},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),W(()=>we.value=JSON.stringify(x(),null,2)),H}}),Ot),A(Wt,b(Ra,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return g()}})),W(H=>{var we=_(o().detailsContainer,"tsqd-query-details-container"),at=_(o().detailsHeader,"tsqd-query-details-header"),Ie=_(o().detailsBody,"tsqd-query-details-summary-container"),Ce=_(o().queryDetailsStatus,q()),Pe=_(o().detailsHeader,"tsqd-query-details-header"),_e=_(o().actionsBody,"tsqd-query-details-actions-container"),ve=_(a`
|
|
221
|
+
color: ${n(r.blue[600],r.blue[400])};
|
|
222
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),Qt=y()==="fetching",jt=a`
|
|
223
|
+
background-color: ${n(r.blue[600],r.blue[400])};
|
|
224
|
+
`,kt=_(a`
|
|
225
|
+
color: ${n(r.yellow[600],r.yellow[400])};
|
|
226
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),Ha=v()==="pending",Xt=a`
|
|
227
|
+
background-color: ${n(r.yellow[600],r.yellow[400])};
|
|
228
|
+
`,_a=_(a`
|
|
229
|
+
color: ${n(r.gray[600],r.gray[300])};
|
|
230
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),Zt=v()==="pending",La=a`
|
|
231
|
+
background-color: ${n(r.gray[600],r.gray[400])};
|
|
232
|
+
`,zr=_(a`
|
|
233
|
+
color: ${n(r.pink[500],r.pink[400])};
|
|
234
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),Do=y()==="fetching",Ur=a`
|
|
235
|
+
background-color: ${n(r.pink[500],r.pink[400])};
|
|
236
|
+
`,so=_(a`
|
|
237
|
+
color: ${n(r.cyan[500],r.cyan[400])};
|
|
238
|
+
`,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),Hr=l(),Eo=a`
|
|
239
|
+
background-color: ${n(r.cyan[500],r.cyan[400])};
|
|
240
|
+
`,Fo=_(o().detailsHeader,"tsqd-query-details-header"),Oo=_(o().detailsHeader,"tsqd-query-details-header"),lo=R.size[2];return we!==H.e&&B(S,H.e=we),at!==H.t&&B(M,H.t=at),Ie!==H.a&&B(T,H.a=Ie),Ce!==H.o&&B(ce,H.o=Ce),Pe!==H.i&&B(Be,H.i=Pe),_e!==H.n&&B(tt,H.n=_e),ve!==H.s&&B($,H.s=ve),Qt!==H.h&&($.disabled=H.h=Qt),jt!==H.r&&B(Fe,H.r=jt),kt!==H.d&&B(ge,H.d=kt),Ha!==H.l&&(ge.disabled=H.l=Ha),Xt!==H.u&&B(Ca,H.u=Xt),_a!==H.c&&B(ee,H.c=_a),Zt!==H.w&&(ee.disabled=H.w=Zt),La!==H.m&&B(St,H.m=La),zr!==H.f&&B(je,H.f=zr),Do!==H.y&&(je.disabled=H.y=Do),Ur!==H.g&&B(no,H.g=Ur),so!==H.p&&B(ht,H.p=so),Hr!==H.b&&(ht.disabled=H.b=Hr),Eo!==H.T&&B(wa,H.T=Eo),Fo!==H.A&&B(Gt,H.A=Fo),Oo!==H.O&&B(Ot,H.O=Oo),lo!==H.I&&((H.I=lo)!=null?Wt.style.setProperty("padding",lo):Wt.style.removeProperty("padding")),H},{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}})},Qy=()=>{let t=Ge(),a=X().shadowDOMTarget?re.bind({target:X().shadowDOMTarget}):re,o=P(()=>t()==="dark"?Lt(a):wt(a)),{colors:r}=R,n=(c,f)=>t()==="dark"?f:c,s=Pt(c=>{let p=c().getAll().find(m=>m.mutationId===Ta());return p?p.state.isPaused:!1}),l=Pt(c=>{let p=c().getAll().find(m=>m.mutationId===Ta());return p?p.state.status:"idle"}),u=P(()=>ja({isPaused:s(),status:l()})),i=Pt(c=>c().getAll().find(f=>f.mutationId===Ta()),!1),d=()=>u()==="gray"?a`
|
|
241
|
+
background-color: ${n(r[u()][200],r[u()][700])};
|
|
242
|
+
color: ${n(r[u()][700],r[u()][300])};
|
|
243
|
+
border-color: ${n(r[u()][400],r[u()][600])};
|
|
244
|
+
`:a`
|
|
245
|
+
background-color: ${n(r[u()][100],r[u()][900])};
|
|
246
|
+
color: ${n(r[u()][700],r[u()][300])};
|
|
247
|
+
border-color: ${n(r[u()][400],r[u()][600])};
|
|
248
|
+
`;return b(j,{get when(){return i()},get children(){var c=zy(),f=c.firstChild,p=f.nextSibling,m=p.firstChild,g=m.firstChild,h=g.firstChild,x=g.nextSibling,y=m.nextSibling,v=y.firstChild,C=v.nextSibling,L=p.nextSibling,I=L.nextSibling,O=I.nextSibling,E=O.nextSibling,q=E.nextSibling,S=q.nextSibling,M=S.nextSibling,T=M.nextSibling;return A(h,b(j,{get when(){return i().options.mutationKey},fallback:"No mutationKey found",get children(){return cr(i().options.mutationKey,!0)}})),A(x,b(j,{get when(){return u()==="purple"},children:"pending"}),null),A(x,b(j,{get when(){return u()!=="purple"},get children(){return l()}}),null),A(C,()=>new Date(i().state.submittedAt).toLocaleTimeString()),A(I,b(Ra,{label:"Variables",defaultExpanded:["Variables"],get value(){return i().state.variables}})),A(E,b(Ra,{label:"Context",defaultExpanded:["Context"],get value(){return i().state.context}})),A(S,b(Ra,{label:"Data",defaultExpanded:["Data"],get value(){return i().state.data}})),A(T,b(Ra,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return i()}})),W(k=>{var Y=_(o().detailsContainer,"tsqd-query-details-container"),ae=_(o().detailsHeader,"tsqd-query-details-header"),ce=_(o().detailsBody,"tsqd-query-details-summary-container"),fe=_(o().queryDetailsStatus,d()),ye=_(o().detailsHeader,"tsqd-query-details-header"),be=R.size[2],me=_(o().detailsHeader,"tsqd-query-details-header"),Ee=R.size[2],ke=_(o().detailsHeader,"tsqd-query-details-header"),Be=R.size[2],tt=_(o().detailsHeader,"tsqd-query-details-header"),$=R.size[2];return Y!==k.e&&B(c,k.e=Y),ae!==k.t&&B(f,k.t=ae),ce!==k.a&&B(p,k.a=ce),fe!==k.o&&B(x,k.o=fe),ye!==k.i&&B(L,k.i=ye),be!==k.n&&((k.n=be)!=null?I.style.setProperty("padding",be):I.style.removeProperty("padding")),me!==k.s&&B(O,k.s=me),Ee!==k.h&&((k.h=Ee)!=null?E.style.setProperty("padding",Ee):E.style.removeProperty("padding")),ke!==k.r&&B(q,k.r=ke),Be!==k.d&&((k.d=Be)!=null?S.style.setProperty("padding",Be):S.style.removeProperty("padding")),tt!==k.l&&B(M,k.l=tt),$!==k.u&&((k.u=$)!=null?T.style.setProperty("padding",$):T.style.removeProperty("padding")),k},{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}})},wn=new Map,jy=()=>{let t=P(()=>X().client.getQueryCache()),a=t().subscribe(o=>{Ei(()=>{for(let[r,n]of wn.entries())n.shouldUpdate(o)&&n.setter(r(t))})});return Z(()=>{wn.clear(),a()}),a},We=(t,a=!0,o=()=>!0)=>{let r=P(()=>X().client.getQueryCache()),[n,s]=U(t(r),a?void 0:{equals:!1});return Q(()=>{s(t(r))}),wn.set(t,{setter:s,shouldUpdate:o}),Z(()=>{wn.delete(t)}),n},Ln=new Map,Xy=()=>{let t=P(()=>X().client.getMutationCache()),a=t().subscribe(()=>{for(let[o,r]of Ln.entries())queueMicrotask(()=>{r(o(t))})});return Z(()=>{Ln.clear(),a()}),a},Pt=(t,a=!0)=>{let o=P(()=>X().client.getMutationCache()),[r,n]=U(t(o),a?void 0:{equals:!1});return Q(()=>{n(t(o))}),Ln.set(t,n),Z(()=>{Ln.delete(t)}),r},Vc=(t,a)=>{let{colors:o,font:r,size:n,alpha:s,shadow:l,border:u}=R,i=(d,c)=>t==="light"?d:c;return{devtoolsBtn:a`
|
|
249
249
|
z-index: 100000;
|
|
250
250
|
position: fixed;
|
|
251
251
|
padding: 4px;
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
align-items: center;
|
|
256
256
|
justify-content: center;
|
|
257
257
|
border-radius: 9999px;
|
|
258
|
-
box-shadow: ${
|
|
258
|
+
box-shadow: ${l.md()};
|
|
259
259
|
overflow: hidden;
|
|
260
260
|
|
|
261
261
|
& div {
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
|
|
277
277
|
&:focus-within {
|
|
278
278
|
outline-offset: 2px;
|
|
279
|
-
outline: 3px solid ${
|
|
279
|
+
outline: 3px solid ${o.green[600]};
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
& button {
|
|
@@ -298,11 +298,11 @@
|
|
|
298
298
|
height: 100%;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
`,panel:
|
|
301
|
+
`,panel:a`
|
|
302
302
|
position: fixed;
|
|
303
303
|
z-index: 9999;
|
|
304
304
|
display: flex;
|
|
305
|
-
gap: ${
|
|
305
|
+
gap: ${R.size[.5]};
|
|
306
306
|
& * {
|
|
307
307
|
box-sizing: border-box;
|
|
308
308
|
text-transform: none;
|
|
@@ -317,17 +317,17 @@
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
& *::-webkit-scrollbar-thumb {
|
|
320
|
-
background: ${
|
|
320
|
+
background: ${i(o.gray[300],o.darkGray[200])};
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
& *::-webkit-scrollbar-thumb:hover {
|
|
324
|
-
background: ${
|
|
324
|
+
background: ${i(o.gray[400],o.darkGray[300])};
|
|
325
325
|
}
|
|
326
|
-
`,parentPanel:
|
|
326
|
+
`,parentPanel:a`
|
|
327
327
|
z-index: 9999;
|
|
328
328
|
display: flex;
|
|
329
329
|
height: 100%;
|
|
330
|
-
gap: ${
|
|
330
|
+
gap: ${R.size[.5]};
|
|
331
331
|
& * {
|
|
332
332
|
box-sizing: border-box;
|
|
333
333
|
text-transform: none;
|
|
@@ -342,53 +342,53 @@
|
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
& *::-webkit-scrollbar-thumb {
|
|
345
|
-
background: ${
|
|
345
|
+
background: ${i(o.gray[300],o.darkGray[200])};
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
& *::-webkit-scrollbar-thumb:hover {
|
|
349
|
-
background: ${
|
|
349
|
+
background: ${i(o.gray[400],o.darkGray[300])};
|
|
350
350
|
}
|
|
351
|
-
`,"devtoolsBtn-position-bottom-right":
|
|
351
|
+
`,"devtoolsBtn-position-bottom-right":a`
|
|
352
352
|
bottom: 12px;
|
|
353
353
|
right: 12px;
|
|
354
|
-
`,"devtoolsBtn-position-bottom-left":
|
|
354
|
+
`,"devtoolsBtn-position-bottom-left":a`
|
|
355
355
|
bottom: 12px;
|
|
356
356
|
left: 12px;
|
|
357
|
-
`,"devtoolsBtn-position-top-left":
|
|
357
|
+
`,"devtoolsBtn-position-top-left":a`
|
|
358
358
|
top: 12px;
|
|
359
359
|
left: 12px;
|
|
360
|
-
`,"devtoolsBtn-position-top-right":
|
|
360
|
+
`,"devtoolsBtn-position-top-right":a`
|
|
361
361
|
top: 12px;
|
|
362
362
|
right: 12px;
|
|
363
|
-
`,"devtoolsBtn-position-relative":
|
|
363
|
+
`,"devtoolsBtn-position-relative":a`
|
|
364
364
|
position: relative;
|
|
365
|
-
`,"panel-position-top":
|
|
365
|
+
`,"panel-position-top":a`
|
|
366
366
|
top: 0;
|
|
367
367
|
right: 0;
|
|
368
368
|
left: 0;
|
|
369
369
|
max-height: 90%;
|
|
370
|
-
min-height: ${
|
|
371
|
-
border-bottom: ${
|
|
372
|
-
`,"panel-position-bottom":
|
|
370
|
+
min-height: ${n[14]};
|
|
371
|
+
border-bottom: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
372
|
+
`,"panel-position-bottom":a`
|
|
373
373
|
bottom: 0;
|
|
374
374
|
right: 0;
|
|
375
375
|
left: 0;
|
|
376
376
|
max-height: 90%;
|
|
377
|
-
min-height: ${
|
|
378
|
-
border-top: ${
|
|
379
|
-
`,"panel-position-right":
|
|
377
|
+
min-height: ${n[14]};
|
|
378
|
+
border-top: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
379
|
+
`,"panel-position-right":a`
|
|
380
380
|
bottom: 0;
|
|
381
381
|
right: 0;
|
|
382
382
|
top: 0;
|
|
383
|
-
border-left: ${
|
|
383
|
+
border-left: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
384
384
|
max-width: 90%;
|
|
385
|
-
`,"panel-position-left":
|
|
385
|
+
`,"panel-position-left":a`
|
|
386
386
|
bottom: 0;
|
|
387
387
|
left: 0;
|
|
388
388
|
top: 0;
|
|
389
|
-
border-right: ${
|
|
389
|
+
border-right: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
390
390
|
max-width: 90%;
|
|
391
|
-
`,closeBtn:
|
|
391
|
+
`,closeBtn:a`
|
|
392
392
|
position: absolute;
|
|
393
393
|
cursor: pointer;
|
|
394
394
|
z-index: 5;
|
|
@@ -396,242 +396,242 @@
|
|
|
396
396
|
align-items: center;
|
|
397
397
|
justify-content: center;
|
|
398
398
|
outline: none;
|
|
399
|
-
background-color: ${
|
|
399
|
+
background-color: ${i(o.gray[50],o.darkGray[700])};
|
|
400
400
|
&:hover {
|
|
401
|
-
background-color: ${
|
|
401
|
+
background-color: ${i(o.gray[200],o.darkGray[500])};
|
|
402
402
|
}
|
|
403
403
|
&:focus-visible {
|
|
404
|
-
outline: 2px solid ${
|
|
404
|
+
outline: 2px solid ${o.blue[600]};
|
|
405
405
|
}
|
|
406
406
|
& svg {
|
|
407
|
-
color: ${
|
|
408
|
-
width: ${
|
|
409
|
-
height: ${
|
|
407
|
+
color: ${i(o.gray[600],o.gray[400])};
|
|
408
|
+
width: ${n[2]};
|
|
409
|
+
height: ${n[2]};
|
|
410
410
|
}
|
|
411
|
-
`,"closeBtn-position-top":
|
|
411
|
+
`,"closeBtn-position-top":a`
|
|
412
412
|
bottom: 0;
|
|
413
|
-
right: ${
|
|
413
|
+
right: ${n[2]};
|
|
414
414
|
transform: translate(0, 100%);
|
|
415
|
-
border-right: ${
|
|
416
|
-
border-left: ${
|
|
415
|
+
border-right: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
416
|
+
border-left: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
417
417
|
border-top: none;
|
|
418
|
-
border-bottom: ${
|
|
419
|
-
border-radius: 0px 0px ${
|
|
420
|
-
padding: ${
|
|
418
|
+
border-bottom: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
419
|
+
border-radius: 0px 0px ${u.radius.sm} ${u.radius.sm};
|
|
420
|
+
padding: ${n[.5]} ${n[1.5]} ${n[1]} ${n[1.5]};
|
|
421
421
|
|
|
422
422
|
&::after {
|
|
423
423
|
content: ' ';
|
|
424
424
|
position: absolute;
|
|
425
425
|
bottom: 100%;
|
|
426
|
-
left: -${
|
|
427
|
-
height: ${
|
|
428
|
-
width: calc(100% + ${
|
|
426
|
+
left: -${n[2.5]};
|
|
427
|
+
height: ${n[1.5]};
|
|
428
|
+
width: calc(100% + ${n[5]});
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
& svg {
|
|
432
432
|
transform: rotate(180deg);
|
|
433
433
|
}
|
|
434
|
-
`,"closeBtn-position-bottom":
|
|
434
|
+
`,"closeBtn-position-bottom":a`
|
|
435
435
|
top: 0;
|
|
436
|
-
right: ${
|
|
436
|
+
right: ${n[2]};
|
|
437
437
|
transform: translate(0, -100%);
|
|
438
|
-
border-right: ${
|
|
439
|
-
border-left: ${
|
|
440
|
-
border-top: ${
|
|
438
|
+
border-right: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
439
|
+
border-left: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
440
|
+
border-top: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
441
441
|
border-bottom: none;
|
|
442
|
-
border-radius: ${
|
|
443
|
-
padding: ${
|
|
442
|
+
border-radius: ${u.radius.sm} ${u.radius.sm} 0px 0px;
|
|
443
|
+
padding: ${n[1]} ${n[1.5]} ${n[.5]} ${n[1.5]};
|
|
444
444
|
|
|
445
445
|
&::after {
|
|
446
446
|
content: ' ';
|
|
447
447
|
position: absolute;
|
|
448
448
|
top: 100%;
|
|
449
|
-
left: -${
|
|
450
|
-
height: ${
|
|
451
|
-
width: calc(100% + ${
|
|
449
|
+
left: -${n[2.5]};
|
|
450
|
+
height: ${n[1.5]};
|
|
451
|
+
width: calc(100% + ${n[5]});
|
|
452
452
|
}
|
|
453
|
-
`,"closeBtn-position-right":
|
|
454
|
-
bottom: ${
|
|
453
|
+
`,"closeBtn-position-right":a`
|
|
454
|
+
bottom: ${n[2]};
|
|
455
455
|
left: 0;
|
|
456
456
|
transform: translate(-100%, 0);
|
|
457
457
|
border-right: none;
|
|
458
|
-
border-left: ${
|
|
459
|
-
border-top: ${
|
|
460
|
-
border-bottom: ${
|
|
461
|
-
border-radius: ${
|
|
462
|
-
padding: ${
|
|
458
|
+
border-left: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
459
|
+
border-top: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
460
|
+
border-bottom: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
461
|
+
border-radius: ${u.radius.sm} 0px 0px ${u.radius.sm};
|
|
462
|
+
padding: ${n[1.5]} ${n[.5]} ${n[1.5]} ${n[1]};
|
|
463
463
|
|
|
464
464
|
&::after {
|
|
465
465
|
content: ' ';
|
|
466
466
|
position: absolute;
|
|
467
467
|
left: 100%;
|
|
468
|
-
height: calc(100% + ${
|
|
469
|
-
width: ${
|
|
468
|
+
height: calc(100% + ${n[5]});
|
|
469
|
+
width: ${n[1.5]};
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
& svg {
|
|
473
473
|
transform: rotate(-90deg);
|
|
474
474
|
}
|
|
475
|
-
`,"closeBtn-position-left":
|
|
476
|
-
bottom: ${
|
|
475
|
+
`,"closeBtn-position-left":a`
|
|
476
|
+
bottom: ${n[2]};
|
|
477
477
|
right: 0;
|
|
478
478
|
transform: translate(100%, 0);
|
|
479
479
|
border-left: none;
|
|
480
|
-
border-right: ${
|
|
481
|
-
border-top: ${
|
|
482
|
-
border-bottom: ${
|
|
483
|
-
border-radius: 0px ${
|
|
484
|
-
padding: ${
|
|
480
|
+
border-right: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
481
|
+
border-top: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
482
|
+
border-bottom: ${i(o.gray[400],o.darkGray[300])} 1px solid;
|
|
483
|
+
border-radius: 0px ${u.radius.sm} ${u.radius.sm} 0px;
|
|
484
|
+
padding: ${n[1.5]} ${n[1]} ${n[1.5]} ${n[.5]};
|
|
485
485
|
|
|
486
486
|
&::after {
|
|
487
487
|
content: ' ';
|
|
488
488
|
position: absolute;
|
|
489
489
|
right: 100%;
|
|
490
|
-
height: calc(100% + ${
|
|
491
|
-
width: ${
|
|
490
|
+
height: calc(100% + ${n[5]});
|
|
491
|
+
width: ${n[1.5]};
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
& svg {
|
|
495
495
|
transform: rotate(90deg);
|
|
496
496
|
}
|
|
497
|
-
`,queriesContainer:
|
|
497
|
+
`,queriesContainer:a`
|
|
498
498
|
flex: 1 1 700px;
|
|
499
|
-
background-color: ${
|
|
499
|
+
background-color: ${i(o.gray[50],o.darkGray[700])};
|
|
500
500
|
display: flex;
|
|
501
501
|
flex-direction: column;
|
|
502
502
|
& * {
|
|
503
503
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
504
504
|
}
|
|
505
|
-
`,dragHandle:
|
|
505
|
+
`,dragHandle:a`
|
|
506
506
|
position: absolute;
|
|
507
507
|
transition: background-color 0.125s ease;
|
|
508
508
|
&:hover {
|
|
509
|
-
background-color: ${
|
|
509
|
+
background-color: ${o.purple[400]}${i("",s[90])};
|
|
510
510
|
}
|
|
511
511
|
z-index: 4;
|
|
512
|
-
`,"dragHandle-position-top":
|
|
512
|
+
`,"dragHandle-position-top":a`
|
|
513
513
|
bottom: 0;
|
|
514
514
|
width: 100%;
|
|
515
515
|
height: 3px;
|
|
516
516
|
cursor: ns-resize;
|
|
517
|
-
`,"dragHandle-position-bottom":
|
|
517
|
+
`,"dragHandle-position-bottom":a`
|
|
518
518
|
top: 0;
|
|
519
519
|
width: 100%;
|
|
520
520
|
height: 3px;
|
|
521
521
|
cursor: ns-resize;
|
|
522
|
-
`,"dragHandle-position-right":
|
|
522
|
+
`,"dragHandle-position-right":a`
|
|
523
523
|
left: 0;
|
|
524
524
|
width: 3px;
|
|
525
525
|
height: 100%;
|
|
526
526
|
cursor: ew-resize;
|
|
527
|
-
`,"dragHandle-position-left":
|
|
527
|
+
`,"dragHandle-position-left":a`
|
|
528
528
|
right: 0;
|
|
529
529
|
width: 3px;
|
|
530
530
|
height: 100%;
|
|
531
531
|
cursor: ew-resize;
|
|
532
|
-
`,row:
|
|
532
|
+
`,row:a`
|
|
533
533
|
display: flex;
|
|
534
534
|
justify-content: space-between;
|
|
535
535
|
align-items: center;
|
|
536
|
-
padding: ${
|
|
537
|
-
gap: ${
|
|
538
|
-
border-bottom: ${
|
|
536
|
+
padding: ${R.size[2]} ${R.size[2.5]};
|
|
537
|
+
gap: ${R.size[2.5]};
|
|
538
|
+
border-bottom: ${i(o.gray[300],o.darkGray[500])} 1px solid;
|
|
539
539
|
align-items: center;
|
|
540
540
|
& > button {
|
|
541
541
|
padding: 0;
|
|
542
542
|
background: transparent;
|
|
543
543
|
border: none;
|
|
544
544
|
display: flex;
|
|
545
|
-
gap: ${
|
|
545
|
+
gap: ${n[.5]};
|
|
546
546
|
flex-direction: column;
|
|
547
547
|
}
|
|
548
|
-
`,logoAndToggleContainer:
|
|
548
|
+
`,logoAndToggleContainer:a`
|
|
549
549
|
display: flex;
|
|
550
|
-
gap: ${
|
|
550
|
+
gap: ${R.size[3]};
|
|
551
551
|
align-items: center;
|
|
552
|
-
`,logo:
|
|
552
|
+
`,logo:a`
|
|
553
553
|
cursor: pointer;
|
|
554
554
|
display: flex;
|
|
555
555
|
flex-direction: column;
|
|
556
556
|
background-color: transparent;
|
|
557
557
|
border: none;
|
|
558
|
-
gap: ${
|
|
558
|
+
gap: ${R.size[.5]};
|
|
559
559
|
padding: 0px;
|
|
560
560
|
&:hover {
|
|
561
561
|
opacity: 0.7;
|
|
562
562
|
}
|
|
563
563
|
&:focus-visible {
|
|
564
564
|
outline-offset: 4px;
|
|
565
|
-
border-radius: ${
|
|
566
|
-
outline: 2px solid ${
|
|
565
|
+
border-radius: ${u.radius.xs};
|
|
566
|
+
outline: 2px solid ${o.blue[800]};
|
|
567
567
|
}
|
|
568
|
-
`,tanstackLogo:
|
|
569
|
-
font-size: ${
|
|
570
|
-
font-weight: ${
|
|
571
|
-
line-height: ${
|
|
568
|
+
`,tanstackLogo:a`
|
|
569
|
+
font-size: ${r.size.md};
|
|
570
|
+
font-weight: ${r.weight.bold};
|
|
571
|
+
line-height: ${r.lineHeight.xs};
|
|
572
572
|
white-space: nowrap;
|
|
573
|
-
color: ${
|
|
574
|
-
`,queryFlavorLogo:
|
|
575
|
-
font-weight: ${
|
|
576
|
-
font-size: ${
|
|
573
|
+
color: ${i(o.gray[600],o.gray[300])};
|
|
574
|
+
`,queryFlavorLogo:a`
|
|
575
|
+
font-weight: ${r.weight.semibold};
|
|
576
|
+
font-size: ${r.size.xs};
|
|
577
577
|
background: linear-gradient(
|
|
578
578
|
to right,
|
|
579
|
-
${
|
|
579
|
+
${i("#ea4037, #ff9b11","#dd524b, #e9a03b")}
|
|
580
580
|
);
|
|
581
581
|
background-clip: text;
|
|
582
582
|
-webkit-background-clip: text;
|
|
583
583
|
line-height: 1;
|
|
584
584
|
-webkit-text-fill-color: transparent;
|
|
585
585
|
white-space: nowrap;
|
|
586
|
-
`,queryStatusContainer:
|
|
586
|
+
`,queryStatusContainer:a`
|
|
587
587
|
display: flex;
|
|
588
|
-
gap: ${
|
|
588
|
+
gap: ${R.size[2]};
|
|
589
589
|
height: min-content;
|
|
590
|
-
`,queryStatusTag:
|
|
590
|
+
`,queryStatusTag:a`
|
|
591
591
|
display: flex;
|
|
592
|
-
gap: ${
|
|
592
|
+
gap: ${R.size[1.5]};
|
|
593
593
|
box-sizing: border-box;
|
|
594
|
-
height: ${
|
|
595
|
-
background: ${
|
|
596
|
-
color: ${
|
|
597
|
-
border-radius: ${
|
|
598
|
-
font-size: ${
|
|
599
|
-
padding: ${
|
|
600
|
-
padding-left: ${
|
|
594
|
+
height: ${R.size[6.5]};
|
|
595
|
+
background: ${i(o.gray[50],o.darkGray[500])};
|
|
596
|
+
color: ${i(o.gray[700],o.gray[300])};
|
|
597
|
+
border-radius: ${R.border.radius.sm};
|
|
598
|
+
font-size: ${r.size.sm};
|
|
599
|
+
padding: ${R.size[1]};
|
|
600
|
+
padding-left: ${R.size[1.5]};
|
|
601
601
|
align-items: center;
|
|
602
|
-
font-weight: ${
|
|
603
|
-
border: ${
|
|
602
|
+
font-weight: ${r.weight.medium};
|
|
603
|
+
border: ${i("1px solid "+o.gray[300],"1px solid transparent")};
|
|
604
604
|
user-select: none;
|
|
605
605
|
position: relative;
|
|
606
606
|
&:focus-visible {
|
|
607
607
|
outline-offset: 2px;
|
|
608
|
-
outline: 2px solid ${
|
|
608
|
+
outline: 2px solid ${o.blue[800]};
|
|
609
609
|
}
|
|
610
|
-
`,queryStatusTagLabel:
|
|
611
|
-
font-size: ${
|
|
612
|
-
`,queryStatusCount:
|
|
613
|
-
font-size: ${
|
|
610
|
+
`,queryStatusTagLabel:a`
|
|
611
|
+
font-size: ${r.size.xs};
|
|
612
|
+
`,queryStatusCount:a`
|
|
613
|
+
font-size: ${r.size.xs};
|
|
614
614
|
padding: 0 5px;
|
|
615
615
|
display: flex;
|
|
616
616
|
align-items: center;
|
|
617
617
|
justify-content: center;
|
|
618
|
-
color: ${
|
|
619
|
-
background-color: ${
|
|
618
|
+
color: ${i(o.gray[500],o.gray[400])};
|
|
619
|
+
background-color: ${i(o.gray[200],o.darkGray[300])};
|
|
620
620
|
border-radius: 2px;
|
|
621
621
|
font-variant-numeric: tabular-nums;
|
|
622
|
-
height: ${
|
|
623
|
-
`,statusTooltip:
|
|
622
|
+
height: ${R.size[4.5]};
|
|
623
|
+
`,statusTooltip:a`
|
|
624
624
|
position: absolute;
|
|
625
625
|
z-index: 1;
|
|
626
|
-
background-color: ${
|
|
626
|
+
background-color: ${i(o.gray[50],o.darkGray[500])};
|
|
627
627
|
top: 100%;
|
|
628
628
|
left: 50%;
|
|
629
|
-
transform: translate(-50%, calc(${
|
|
630
|
-
padding: ${
|
|
631
|
-
border-radius: ${
|
|
632
|
-
font-size: ${
|
|
633
|
-
border: 1px solid ${
|
|
634
|
-
color: ${
|
|
629
|
+
transform: translate(-50%, calc(${R.size[2]}));
|
|
630
|
+
padding: ${R.size[.5]} ${R.size[2]};
|
|
631
|
+
border-radius: ${R.border.radius.sm};
|
|
632
|
+
font-size: ${r.size.xs};
|
|
633
|
+
border: 1px solid ${i(o.gray[400],o.gray[600])};
|
|
634
|
+
color: ${i(o.gray[600],o.gray[300])};
|
|
635
635
|
|
|
636
636
|
&::before {
|
|
637
637
|
top: 0px;
|
|
@@ -641,7 +641,7 @@
|
|
|
641
641
|
transform: translate(-50%, -100%);
|
|
642
642
|
position: absolute;
|
|
643
643
|
border-color: transparent transparent
|
|
644
|
-
${
|
|
644
|
+
${i(o.gray[400],o.gray[600])} transparent;
|
|
645
645
|
border-style: solid;
|
|
646
646
|
border-width: 7px;
|
|
647
647
|
/* transform: rotate(180deg); */
|
|
@@ -655,65 +655,65 @@
|
|
|
655
655
|
transform: translate(-50%, calc(-100% + 2px));
|
|
656
656
|
position: absolute;
|
|
657
657
|
border-color: transparent transparent
|
|
658
|
-
${
|
|
658
|
+
${i(o.gray[100],o.darkGray[500])} transparent;
|
|
659
659
|
border-style: solid;
|
|
660
660
|
border-width: 7px;
|
|
661
661
|
}
|
|
662
|
-
`,filtersContainer:
|
|
662
|
+
`,filtersContainer:a`
|
|
663
663
|
display: flex;
|
|
664
|
-
gap: ${
|
|
664
|
+
gap: ${R.size[2]};
|
|
665
665
|
& > button {
|
|
666
666
|
cursor: pointer;
|
|
667
|
-
padding: ${
|
|
668
|
-
${
|
|
669
|
-
border-radius: ${
|
|
670
|
-
background-color: ${
|
|
671
|
-
border: 1px solid ${
|
|
672
|
-
color: ${
|
|
673
|
-
font-size: ${
|
|
667
|
+
padding: ${R.size[.5]} ${R.size[1.5]} ${R.size[.5]}
|
|
668
|
+
${R.size[2]};
|
|
669
|
+
border-radius: ${R.border.radius.sm};
|
|
670
|
+
background-color: ${i(o.gray[100],o.darkGray[400])};
|
|
671
|
+
border: 1px solid ${i(o.gray[300],o.darkGray[200])};
|
|
672
|
+
color: ${i(o.gray[700],o.gray[300])};
|
|
673
|
+
font-size: ${r.size.xs};
|
|
674
674
|
display: flex;
|
|
675
675
|
align-items: center;
|
|
676
|
-
line-height: ${
|
|
677
|
-
gap: ${
|
|
676
|
+
line-height: ${r.lineHeight.sm};
|
|
677
|
+
gap: ${R.size[1.5]};
|
|
678
678
|
max-width: 160px;
|
|
679
679
|
&:focus-visible {
|
|
680
680
|
outline-offset: 2px;
|
|
681
|
-
border-radius: ${
|
|
682
|
-
outline: 2px solid ${
|
|
681
|
+
border-radius: ${u.radius.xs};
|
|
682
|
+
outline: 2px solid ${o.blue[800]};
|
|
683
683
|
}
|
|
684
684
|
& svg {
|
|
685
|
-
width: ${
|
|
686
|
-
height: ${
|
|
687
|
-
color: ${
|
|
685
|
+
width: ${R.size[3]};
|
|
686
|
+
height: ${R.size[3]};
|
|
687
|
+
color: ${i(o.gray[500],o.gray[400])};
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
|
-
`,filterInput:
|
|
691
|
-
padding: ${
|
|
692
|
-
border-radius: ${
|
|
693
|
-
background-color: ${
|
|
690
|
+
`,filterInput:a`
|
|
691
|
+
padding: ${n[.5]} ${n[2]};
|
|
692
|
+
border-radius: ${R.border.radius.sm};
|
|
693
|
+
background-color: ${i(o.gray[100],o.darkGray[400])};
|
|
694
694
|
display: flex;
|
|
695
695
|
box-sizing: content-box;
|
|
696
696
|
align-items: center;
|
|
697
|
-
gap: ${
|
|
697
|
+
gap: ${R.size[1.5]};
|
|
698
698
|
max-width: 160px;
|
|
699
699
|
min-width: 100px;
|
|
700
|
-
border: 1px solid ${
|
|
700
|
+
border: 1px solid ${i(o.gray[300],o.darkGray[200])};
|
|
701
701
|
height: min-content;
|
|
702
|
-
color: ${
|
|
702
|
+
color: ${i(o.gray[600],o.gray[400])};
|
|
703
703
|
& > svg {
|
|
704
|
-
width: ${
|
|
705
|
-
height: ${
|
|
704
|
+
width: ${n[3]};
|
|
705
|
+
height: ${n[3]};
|
|
706
706
|
}
|
|
707
707
|
& input {
|
|
708
|
-
font-size: ${
|
|
708
|
+
font-size: ${r.size.xs};
|
|
709
709
|
width: 100%;
|
|
710
|
-
background-color: ${
|
|
710
|
+
background-color: ${i(o.gray[100],o.darkGray[400])};
|
|
711
711
|
border: none;
|
|
712
712
|
padding: 0;
|
|
713
|
-
line-height: ${
|
|
714
|
-
color: ${
|
|
713
|
+
line-height: ${r.lineHeight.sm};
|
|
714
|
+
color: ${i(o.gray[700],o.gray[300])};
|
|
715
715
|
&::placeholder {
|
|
716
|
-
color: ${
|
|
716
|
+
color: ${i(o.gray[700],o.gray[300])};
|
|
717
717
|
}
|
|
718
718
|
&:focus {
|
|
719
719
|
outline: none;
|
|
@@ -722,32 +722,32 @@
|
|
|
722
722
|
|
|
723
723
|
&:focus-within {
|
|
724
724
|
outline-offset: 2px;
|
|
725
|
-
border-radius: ${
|
|
726
|
-
outline: 2px solid ${
|
|
725
|
+
border-radius: ${u.radius.xs};
|
|
726
|
+
outline: 2px solid ${o.blue[800]};
|
|
727
727
|
}
|
|
728
|
-
`,filterSelect:
|
|
729
|
-
padding: ${
|
|
730
|
-
border-radius: ${
|
|
731
|
-
background-color: ${
|
|
728
|
+
`,filterSelect:a`
|
|
729
|
+
padding: ${R.size[.5]} ${R.size[2]};
|
|
730
|
+
border-radius: ${R.border.radius.sm};
|
|
731
|
+
background-color: ${i(o.gray[100],o.darkGray[400])};
|
|
732
732
|
display: flex;
|
|
733
733
|
align-items: center;
|
|
734
|
-
gap: ${
|
|
734
|
+
gap: ${R.size[1.5]};
|
|
735
735
|
box-sizing: content-box;
|
|
736
736
|
max-width: 160px;
|
|
737
|
-
border: 1px solid ${
|
|
737
|
+
border: 1px solid ${i(o.gray[300],o.darkGray[200])};
|
|
738
738
|
height: min-content;
|
|
739
739
|
& > svg {
|
|
740
|
-
color: ${
|
|
741
|
-
width: ${
|
|
742
|
-
height: ${
|
|
740
|
+
color: ${i(o.gray[600],o.gray[400])};
|
|
741
|
+
width: ${R.size[2]};
|
|
742
|
+
height: ${R.size[2]};
|
|
743
743
|
}
|
|
744
744
|
& > select {
|
|
745
745
|
appearance: none;
|
|
746
|
-
color: ${
|
|
746
|
+
color: ${i(o.gray[700],o.gray[300])};
|
|
747
747
|
min-width: 100px;
|
|
748
|
-
line-height: ${
|
|
749
|
-
font-size: ${
|
|
750
|
-
background-color: ${
|
|
748
|
+
line-height: ${r.lineHeight.sm};
|
|
749
|
+
font-size: ${r.size.xs};
|
|
750
|
+
background-color: ${i(o.gray[100],o.darkGray[400])};
|
|
751
751
|
border: none;
|
|
752
752
|
&:focus {
|
|
753
753
|
outline: none;
|
|
@@ -755,96 +755,96 @@
|
|
|
755
755
|
}
|
|
756
756
|
&:focus-within {
|
|
757
757
|
outline-offset: 2px;
|
|
758
|
-
border-radius: ${
|
|
759
|
-
outline: 2px solid ${
|
|
758
|
+
border-radius: ${u.radius.xs};
|
|
759
|
+
outline: 2px solid ${o.blue[800]};
|
|
760
760
|
}
|
|
761
|
-
`,actionsContainer:
|
|
761
|
+
`,actionsContainer:a`
|
|
762
762
|
display: flex;
|
|
763
|
-
gap: ${
|
|
764
|
-
`,actionsBtn:
|
|
765
|
-
border-radius: ${
|
|
766
|
-
background-color: ${
|
|
767
|
-
border: 1px solid ${
|
|
768
|
-
width: ${
|
|
769
|
-
height: ${
|
|
763
|
+
gap: ${R.size[2]};
|
|
764
|
+
`,actionsBtn:a`
|
|
765
|
+
border-radius: ${R.border.radius.sm};
|
|
766
|
+
background-color: ${i(o.gray[100],o.darkGray[400])};
|
|
767
|
+
border: 1px solid ${i(o.gray[300],o.darkGray[200])};
|
|
768
|
+
width: ${R.size[6.5]};
|
|
769
|
+
height: ${R.size[6.5]};
|
|
770
770
|
justify-content: center;
|
|
771
771
|
display: flex;
|
|
772
772
|
align-items: center;
|
|
773
|
-
gap: ${
|
|
773
|
+
gap: ${R.size[1.5]};
|
|
774
774
|
max-width: 160px;
|
|
775
775
|
cursor: pointer;
|
|
776
776
|
padding: 0;
|
|
777
777
|
&:hover {
|
|
778
|
-
background-color: ${
|
|
778
|
+
background-color: ${i(o.gray[200],o.darkGray[500])};
|
|
779
779
|
}
|
|
780
780
|
& svg {
|
|
781
|
-
color: ${
|
|
782
|
-
width: ${
|
|
783
|
-
height: ${
|
|
781
|
+
color: ${i(o.gray[700],o.gray[300])};
|
|
782
|
+
width: ${R.size[3]};
|
|
783
|
+
height: ${R.size[3]};
|
|
784
784
|
}
|
|
785
785
|
&:focus-visible {
|
|
786
786
|
outline-offset: 2px;
|
|
787
|
-
border-radius: ${
|
|
788
|
-
outline: 2px solid ${
|
|
787
|
+
border-radius: ${u.radius.xs};
|
|
788
|
+
outline: 2px solid ${o.blue[800]};
|
|
789
789
|
}
|
|
790
|
-
`,actionsBtnOffline:
|
|
790
|
+
`,actionsBtnOffline:a`
|
|
791
791
|
& svg {
|
|
792
|
-
stroke: ${
|
|
793
|
-
fill: ${
|
|
792
|
+
stroke: ${i(o.yellow[700],o.yellow[500])};
|
|
793
|
+
fill: ${i(o.yellow[700],o.yellow[500])};
|
|
794
794
|
}
|
|
795
|
-
`,overflowQueryContainer:
|
|
795
|
+
`,overflowQueryContainer:a`
|
|
796
796
|
flex: 1;
|
|
797
797
|
overflow-y: auto;
|
|
798
798
|
& > div {
|
|
799
799
|
display: flex;
|
|
800
800
|
flex-direction: column;
|
|
801
801
|
}
|
|
802
|
-
`,queryRow:
|
|
802
|
+
`,queryRow:a`
|
|
803
803
|
display: flex;
|
|
804
804
|
align-items: center;
|
|
805
805
|
padding: 0;
|
|
806
806
|
border: none;
|
|
807
807
|
cursor: pointer;
|
|
808
|
-
color: ${
|
|
809
|
-
background-color: ${
|
|
808
|
+
color: ${i(o.gray[700],o.gray[300])};
|
|
809
|
+
background-color: ${i(o.gray[50],o.darkGray[700])};
|
|
810
810
|
line-height: 1;
|
|
811
811
|
&:focus {
|
|
812
812
|
outline: none;
|
|
813
813
|
}
|
|
814
814
|
&:focus-visible {
|
|
815
815
|
outline-offset: -2px;
|
|
816
|
-
border-radius: ${
|
|
817
|
-
outline: 2px solid ${
|
|
816
|
+
border-radius: ${u.radius.xs};
|
|
817
|
+
outline: 2px solid ${o.blue[800]};
|
|
818
818
|
}
|
|
819
819
|
&:hover .tsqd-query-hash {
|
|
820
|
-
background-color: ${
|
|
820
|
+
background-color: ${i(o.gray[200],o.darkGray[600])};
|
|
821
821
|
}
|
|
822
822
|
|
|
823
823
|
& .tsqd-query-observer-count {
|
|
824
|
-
padding: 0 ${
|
|
824
|
+
padding: 0 ${R.size[1]};
|
|
825
825
|
user-select: none;
|
|
826
|
-
min-width: ${
|
|
826
|
+
min-width: ${R.size[6.5]};
|
|
827
827
|
align-self: stretch;
|
|
828
828
|
display: flex;
|
|
829
829
|
align-items: center;
|
|
830
830
|
justify-content: center;
|
|
831
|
-
font-size: ${
|
|
832
|
-
font-weight: ${
|
|
831
|
+
font-size: ${r.size.xs};
|
|
832
|
+
font-weight: ${r.weight.medium};
|
|
833
833
|
border-bottom-width: 1px;
|
|
834
834
|
border-bottom-style: solid;
|
|
835
|
-
border-bottom: 1px solid ${
|
|
835
|
+
border-bottom: 1px solid ${i(o.gray[300],o.darkGray[700])};
|
|
836
836
|
}
|
|
837
837
|
& .tsqd-query-hash {
|
|
838
838
|
user-select: text;
|
|
839
|
-
font-size: ${
|
|
839
|
+
font-size: ${r.size.xs};
|
|
840
840
|
display: flex;
|
|
841
841
|
align-items: center;
|
|
842
|
-
min-height: ${
|
|
842
|
+
min-height: ${R.size[6]};
|
|
843
843
|
flex: 1;
|
|
844
|
-
padding: ${
|
|
844
|
+
padding: ${R.size[1]} ${R.size[2]};
|
|
845
845
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
846
846
|
'Liberation Mono', 'Courier New', monospace;
|
|
847
|
-
border-bottom: 1px solid ${
|
|
847
|
+
border-bottom: 1px solid ${i(o.gray[300],o.darkGray[400])};
|
|
848
848
|
text-align: left;
|
|
849
849
|
text-overflow: clip;
|
|
850
850
|
word-break: break-word;
|
|
@@ -854,45 +854,45 @@
|
|
|
854
854
|
align-self: stretch;
|
|
855
855
|
display: flex;
|
|
856
856
|
align-items: center;
|
|
857
|
-
padding: 0 ${
|
|
858
|
-
color: ${
|
|
859
|
-
background-color: ${
|
|
860
|
-
border-bottom: 1px solid ${
|
|
861
|
-
font-size: ${
|
|
862
|
-
}
|
|
863
|
-
`,selectedQueryRow:
|
|
864
|
-
background-color: ${
|
|
865
|
-
`,detailsContainer:
|
|
857
|
+
padding: 0 ${R.size[2]};
|
|
858
|
+
color: ${i(o.gray[800],o.gray[300])};
|
|
859
|
+
background-color: ${i(o.gray[300],o.darkGray[600])};
|
|
860
|
+
border-bottom: 1px solid ${i(o.gray[300],o.darkGray[400])};
|
|
861
|
+
font-size: ${r.size.xs};
|
|
862
|
+
}
|
|
863
|
+
`,selectedQueryRow:a`
|
|
864
|
+
background-color: ${i(o.gray[200],o.darkGray[500])};
|
|
865
|
+
`,detailsContainer:a`
|
|
866
866
|
flex: 1 1 700px;
|
|
867
|
-
background-color: ${
|
|
868
|
-
color: ${
|
|
867
|
+
background-color: ${i(o.gray[50],o.darkGray[700])};
|
|
868
|
+
color: ${i(o.gray[700],o.gray[300])};
|
|
869
869
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
870
870
|
display: flex;
|
|
871
871
|
flex-direction: column;
|
|
872
872
|
overflow-y: auto;
|
|
873
873
|
display: flex;
|
|
874
874
|
text-align: left;
|
|
875
|
-
`,detailsHeader:
|
|
875
|
+
`,detailsHeader:a`
|
|
876
876
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
877
877
|
position: sticky;
|
|
878
878
|
top: 0;
|
|
879
879
|
z-index: 2;
|
|
880
|
-
background-color: ${
|
|
881
|
-
padding: ${
|
|
882
|
-
font-weight: ${
|
|
883
|
-
font-size: ${
|
|
884
|
-
line-height: ${
|
|
880
|
+
background-color: ${i(o.gray[200],o.darkGray[600])};
|
|
881
|
+
padding: ${R.size[1.5]} ${R.size[2]};
|
|
882
|
+
font-weight: ${r.weight.medium};
|
|
883
|
+
font-size: ${r.size.xs};
|
|
884
|
+
line-height: ${r.lineHeight.xs};
|
|
885
885
|
text-align: left;
|
|
886
|
-
`,detailsBody:
|
|
887
|
-
margin: ${
|
|
886
|
+
`,detailsBody:a`
|
|
887
|
+
margin: ${R.size[1.5]} 0px ${R.size[2]} 0px;
|
|
888
888
|
& > div {
|
|
889
889
|
display: flex;
|
|
890
890
|
align-items: stretch;
|
|
891
|
-
padding: 0 ${
|
|
892
|
-
line-height: ${
|
|
891
|
+
padding: 0 ${R.size[2]};
|
|
892
|
+
line-height: ${r.lineHeight.sm};
|
|
893
893
|
justify-content: space-between;
|
|
894
894
|
& > span {
|
|
895
|
-
font-size: ${
|
|
895
|
+
font-size: ${r.size.xs};
|
|
896
896
|
}
|
|
897
897
|
& > span:nth-child(2) {
|
|
898
898
|
font-variant-numeric: tabular-nums;
|
|
@@ -900,15 +900,15 @@
|
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
& > div:first-child {
|
|
903
|
-
margin-bottom: ${
|
|
903
|
+
margin-bottom: ${R.size[1.5]};
|
|
904
904
|
}
|
|
905
905
|
|
|
906
906
|
& code {
|
|
907
907
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
908
908
|
'Liberation Mono', 'Courier New', monospace;
|
|
909
909
|
margin: 0;
|
|
910
|
-
font-size: ${
|
|
911
|
-
line-height: ${
|
|
910
|
+
font-size: ${r.size.xs};
|
|
911
|
+
line-height: ${r.lineHeight.xs};
|
|
912
912
|
}
|
|
913
913
|
|
|
914
914
|
& pre {
|
|
@@ -916,37 +916,37 @@
|
|
|
916
916
|
display: flex;
|
|
917
917
|
align-items: center;
|
|
918
918
|
}
|
|
919
|
-
`,queryDetailsStatus:
|
|
920
|
-
border: 1px solid ${
|
|
921
|
-
border-radius: ${
|
|
922
|
-
font-weight: ${
|
|
923
|
-
padding: ${
|
|
924
|
-
`,actionsBody:
|
|
919
|
+
`,queryDetailsStatus:a`
|
|
920
|
+
border: 1px solid ${o.darkGray[200]};
|
|
921
|
+
border-radius: ${R.border.radius.sm};
|
|
922
|
+
font-weight: ${r.weight.medium};
|
|
923
|
+
padding: ${R.size[1]} ${R.size[2.5]};
|
|
924
|
+
`,actionsBody:a`
|
|
925
925
|
flex-wrap: wrap;
|
|
926
|
-
margin: ${
|
|
926
|
+
margin: ${R.size[2]} 0px ${R.size[2]} 0px;
|
|
927
927
|
display: flex;
|
|
928
|
-
gap: ${
|
|
929
|
-
padding: 0px ${
|
|
928
|
+
gap: ${R.size[2]};
|
|
929
|
+
padding: 0px ${R.size[2]};
|
|
930
930
|
& > button {
|
|
931
931
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
932
|
-
font-size: ${
|
|
933
|
-
padding: ${
|
|
932
|
+
font-size: ${r.size.xs};
|
|
933
|
+
padding: ${R.size[1]} ${R.size[2]};
|
|
934
934
|
display: flex;
|
|
935
|
-
border-radius: ${
|
|
936
|
-
background-color: ${
|
|
937
|
-
border: 1px solid ${
|
|
935
|
+
border-radius: ${R.border.radius.sm};
|
|
936
|
+
background-color: ${i(o.gray[100],o.darkGray[600])};
|
|
937
|
+
border: 1px solid ${i(o.gray[300],o.darkGray[400])};
|
|
938
938
|
align-items: center;
|
|
939
|
-
gap: ${
|
|
940
|
-
font-weight: ${
|
|
941
|
-
line-height: ${
|
|
939
|
+
gap: ${R.size[2]};
|
|
940
|
+
font-weight: ${r.weight.medium};
|
|
941
|
+
line-height: ${r.lineHeight.xs};
|
|
942
942
|
cursor: pointer;
|
|
943
943
|
&:focus-visible {
|
|
944
944
|
outline-offset: 2px;
|
|
945
|
-
border-radius: ${
|
|
946
|
-
outline: 2px solid ${
|
|
945
|
+
border-radius: ${u.radius.xs};
|
|
946
|
+
outline: 2px solid ${o.blue[800]};
|
|
947
947
|
}
|
|
948
948
|
&:hover {
|
|
949
|
-
background-color: ${
|
|
949
|
+
background-color: ${i(o.gray[200],o.darkGray[500])};
|
|
950
950
|
}
|
|
951
951
|
|
|
952
952
|
&:disabled {
|
|
@@ -955,38 +955,38 @@
|
|
|
955
955
|
}
|
|
956
956
|
|
|
957
957
|
& > span {
|
|
958
|
-
width: ${
|
|
959
|
-
height: ${
|
|
960
|
-
border-radius: ${
|
|
958
|
+
width: ${n[1.5]};
|
|
959
|
+
height: ${n[1.5]};
|
|
960
|
+
border-radius: ${R.border.radius.full};
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
`,actionsSelect:
|
|
964
|
-
font-size: ${
|
|
965
|
-
padding: ${
|
|
963
|
+
`,actionsSelect:a`
|
|
964
|
+
font-size: ${r.size.xs};
|
|
965
|
+
padding: ${R.size[.5]} ${R.size[2]};
|
|
966
966
|
display: flex;
|
|
967
|
-
border-radius: ${
|
|
967
|
+
border-radius: ${R.border.radius.sm};
|
|
968
968
|
overflow: hidden;
|
|
969
|
-
background-color: ${
|
|
970
|
-
border: 1px solid ${
|
|
969
|
+
background-color: ${i(o.gray[100],o.darkGray[600])};
|
|
970
|
+
border: 1px solid ${i(o.gray[300],o.darkGray[400])};
|
|
971
971
|
align-items: center;
|
|
972
|
-
gap: ${
|
|
973
|
-
font-weight: ${
|
|
974
|
-
line-height: ${
|
|
975
|
-
color: ${
|
|
972
|
+
gap: ${R.size[2]};
|
|
973
|
+
font-weight: ${r.weight.medium};
|
|
974
|
+
line-height: ${r.lineHeight.sm};
|
|
975
|
+
color: ${i(o.red[500],o.red[400])};
|
|
976
976
|
cursor: pointer;
|
|
977
977
|
position: relative;
|
|
978
978
|
&:hover {
|
|
979
|
-
background-color: ${
|
|
979
|
+
background-color: ${i(o.gray[200],o.darkGray[500])};
|
|
980
980
|
}
|
|
981
981
|
& > span {
|
|
982
|
-
width: ${
|
|
983
|
-
height: ${
|
|
984
|
-
border-radius: ${
|
|
982
|
+
width: ${n[1.5]};
|
|
983
|
+
height: ${n[1.5]};
|
|
984
|
+
border-radius: ${R.border.radius.full};
|
|
985
985
|
}
|
|
986
986
|
&:focus-within {
|
|
987
987
|
outline-offset: 2px;
|
|
988
|
-
border-radius: ${
|
|
989
|
-
outline: 2px solid ${
|
|
988
|
+
border-radius: ${u.radius.xs};
|
|
989
|
+
outline: 2px solid ${o.blue[800]};
|
|
990
990
|
}
|
|
991
991
|
& select {
|
|
992
992
|
position: absolute;
|
|
@@ -1002,102 +1002,102 @@
|
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
1004
|
& svg path {
|
|
1005
|
-
stroke: ${
|
|
1005
|
+
stroke: ${R.colors.red[400]};
|
|
1006
1006
|
}
|
|
1007
1007
|
& svg {
|
|
1008
|
-
width: ${
|
|
1009
|
-
height: ${
|
|
1008
|
+
width: ${R.size[2]};
|
|
1009
|
+
height: ${R.size[2]};
|
|
1010
1010
|
}
|
|
1011
|
-
`,settingsMenu:
|
|
1011
|
+
`,settingsMenu:a`
|
|
1012
1012
|
display: flex;
|
|
1013
1013
|
& * {
|
|
1014
1014
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
1015
1015
|
}
|
|
1016
1016
|
flex-direction: column;
|
|
1017
|
-
gap: ${
|
|
1018
|
-
border-radius: ${
|
|
1019
|
-
border: 1px solid ${
|
|
1020
|
-
background-color: ${
|
|
1021
|
-
font-size: ${
|
|
1022
|
-
color: ${
|
|
1017
|
+
gap: ${n[.5]};
|
|
1018
|
+
border-radius: ${R.border.radius.sm};
|
|
1019
|
+
border: 1px solid ${i(o.gray[300],o.gray[700])};
|
|
1020
|
+
background-color: ${i(o.gray[50],o.darkGray[600])};
|
|
1021
|
+
font-size: ${r.size.xs};
|
|
1022
|
+
color: ${i(o.gray[700],o.gray[300])};
|
|
1023
1023
|
z-index: 99999;
|
|
1024
1024
|
min-width: 120px;
|
|
1025
|
-
padding: ${
|
|
1026
|
-
`,settingsSubTrigger:
|
|
1025
|
+
padding: ${n[.5]};
|
|
1026
|
+
`,settingsSubTrigger:a`
|
|
1027
1027
|
display: flex;
|
|
1028
1028
|
align-items: center;
|
|
1029
1029
|
justify-content: space-between;
|
|
1030
|
-
border-radius: ${
|
|
1031
|
-
padding: ${
|
|
1030
|
+
border-radius: ${R.border.radius.xs};
|
|
1031
|
+
padding: ${R.size[1]} ${R.size[1]};
|
|
1032
1032
|
cursor: pointer;
|
|
1033
1033
|
background-color: transparent;
|
|
1034
1034
|
border: none;
|
|
1035
|
-
color: ${
|
|
1035
|
+
color: ${i(o.gray[700],o.gray[300])};
|
|
1036
1036
|
& svg {
|
|
1037
|
-
color: ${
|
|
1037
|
+
color: ${i(o.gray[600],o.gray[400])};
|
|
1038
1038
|
transform: rotate(-90deg);
|
|
1039
|
-
width: ${
|
|
1040
|
-
height: ${
|
|
1039
|
+
width: ${R.size[2]};
|
|
1040
|
+
height: ${R.size[2]};
|
|
1041
1041
|
}
|
|
1042
1042
|
&:hover {
|
|
1043
|
-
background-color: ${
|
|
1043
|
+
background-color: ${i(o.gray[200],o.darkGray[500])};
|
|
1044
1044
|
}
|
|
1045
1045
|
&:focus-visible {
|
|
1046
1046
|
outline-offset: 2px;
|
|
1047
|
-
outline: 2px solid ${
|
|
1047
|
+
outline: 2px solid ${o.blue[800]};
|
|
1048
1048
|
}
|
|
1049
1049
|
&.data-disabled {
|
|
1050
1050
|
opacity: 0.6;
|
|
1051
1051
|
cursor: not-allowed;
|
|
1052
1052
|
}
|
|
1053
|
-
`,settingsMenuHeader:
|
|
1054
|
-
padding: ${
|
|
1055
|
-
font-weight: ${
|
|
1056
|
-
border-bottom: 1px solid ${
|
|
1057
|
-
color: ${
|
|
1058
|
-
font-size: ${
|
|
1059
|
-
`,settingsSubButton:
|
|
1053
|
+
`,settingsMenuHeader:a`
|
|
1054
|
+
padding: ${R.size[1]} ${R.size[1]};
|
|
1055
|
+
font-weight: ${r.weight.medium};
|
|
1056
|
+
border-bottom: 1px solid ${i(o.gray[300],o.darkGray[400])};
|
|
1057
|
+
color: ${i(o.gray[500],o.gray[400])};
|
|
1058
|
+
font-size: ${r.size.xs};
|
|
1059
|
+
`,settingsSubButton:a`
|
|
1060
1060
|
display: flex;
|
|
1061
1061
|
align-items: center;
|
|
1062
1062
|
justify-content: space-between;
|
|
1063
|
-
color: ${
|
|
1064
|
-
font-size: ${
|
|
1065
|
-
border-radius: ${
|
|
1066
|
-
padding: ${
|
|
1063
|
+
color: ${i(o.gray[700],o.gray[300])};
|
|
1064
|
+
font-size: ${r.size.xs};
|
|
1065
|
+
border-radius: ${R.border.radius.xs};
|
|
1066
|
+
padding: ${R.size[1]} ${R.size[1]};
|
|
1067
1067
|
cursor: pointer;
|
|
1068
1068
|
background-color: transparent;
|
|
1069
1069
|
border: none;
|
|
1070
1070
|
& svg {
|
|
1071
|
-
color: ${
|
|
1071
|
+
color: ${i(o.gray[600],o.gray[400])};
|
|
1072
1072
|
}
|
|
1073
1073
|
&:hover {
|
|
1074
|
-
background-color: ${
|
|
1074
|
+
background-color: ${i(o.gray[200],o.darkGray[500])};
|
|
1075
1075
|
}
|
|
1076
1076
|
&:focus-visible {
|
|
1077
1077
|
outline-offset: 2px;
|
|
1078
|
-
outline: 2px solid ${
|
|
1078
|
+
outline: 2px solid ${o.blue[800]};
|
|
1079
1079
|
}
|
|
1080
|
-
`,themeSelectedButton:
|
|
1081
|
-
background-color: ${
|
|
1082
|
-
color: ${
|
|
1080
|
+
`,themeSelectedButton:a`
|
|
1081
|
+
background-color: ${i(o.purple[100],o.purple[900])};
|
|
1082
|
+
color: ${i(o.purple[700],o.purple[300])};
|
|
1083
1083
|
& svg {
|
|
1084
|
-
color: ${
|
|
1084
|
+
color: ${i(o.purple[700],o.purple[300])};
|
|
1085
1085
|
}
|
|
1086
1086
|
&:hover {
|
|
1087
|
-
background-color: ${
|
|
1087
|
+
background-color: ${i(o.purple[100],o.purple[900])};
|
|
1088
1088
|
}
|
|
1089
|
-
`,viewToggle:
|
|
1090
|
-
border-radius: ${
|
|
1091
|
-
background-color: ${
|
|
1092
|
-
border: 1px solid ${
|
|
1089
|
+
`,viewToggle:a`
|
|
1090
|
+
border-radius: ${R.border.radius.sm};
|
|
1091
|
+
background-color: ${i(o.gray[200],o.darkGray[600])};
|
|
1092
|
+
border: 1px solid ${i(o.gray[300],o.darkGray[200])};
|
|
1093
1093
|
display: flex;
|
|
1094
1094
|
padding: 0;
|
|
1095
|
-
font-size: ${
|
|
1096
|
-
color: ${
|
|
1095
|
+
font-size: ${r.size.xs};
|
|
1096
|
+
color: ${i(o.gray[700],o.gray[300])};
|
|
1097
1097
|
overflow: hidden;
|
|
1098
1098
|
|
|
1099
1099
|
&:has(:focus-visible) {
|
|
1100
|
-
outline: 2px solid ${
|
|
1100
|
+
outline: 2px solid ${o.blue[800]};
|
|
1101
1101
|
}
|
|
1102
1102
|
|
|
1103
1103
|
& .tsqd-radio-toggle {
|
|
@@ -1107,99 +1107,99 @@
|
|
|
1107
1107
|
display: flex;
|
|
1108
1108
|
align-items: center;
|
|
1109
1109
|
cursor: pointer;
|
|
1110
|
-
line-height: ${
|
|
1110
|
+
line-height: ${r.lineHeight.md};
|
|
1111
1111
|
}
|
|
1112
1112
|
|
|
1113
1113
|
& label:hover {
|
|
1114
|
-
background-color: ${
|
|
1114
|
+
background-color: ${i(o.gray[100],o.darkGray[500])};
|
|
1115
1115
|
}
|
|
1116
1116
|
}
|
|
1117
1117
|
|
|
1118
1118
|
& > [data-checked] {
|
|
1119
1119
|
opacity: 1;
|
|
1120
|
-
background-color: ${
|
|
1120
|
+
background-color: ${i(o.gray[100],o.darkGray[400])};
|
|
1121
1121
|
& label:hover {
|
|
1122
|
-
background-color: ${
|
|
1122
|
+
background-color: ${i(o.gray[100],o.darkGray[400])};
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
1125
|
|
|
1126
1126
|
& .tsqd-radio-toggle:first-child {
|
|
1127
1127
|
& label {
|
|
1128
|
-
padding: 0 ${
|
|
1128
|
+
padding: 0 ${R.size[1.5]} 0 ${R.size[2]};
|
|
1129
1129
|
}
|
|
1130
|
-
border-right: 1px solid ${
|
|
1130
|
+
border-right: 1px solid ${i(o.gray[300],o.darkGray[200])};
|
|
1131
1131
|
}
|
|
1132
1132
|
|
|
1133
1133
|
& .tsqd-radio-toggle:nth-child(2) {
|
|
1134
1134
|
& label {
|
|
1135
|
-
padding: 0 ${
|
|
1135
|
+
padding: 0 ${R.size[2]} 0 ${R.size[1.5]};
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
`,devtoolsEditForm:
|
|
1139
|
-
padding: ${
|
|
1138
|
+
`,devtoolsEditForm:a`
|
|
1139
|
+
padding: ${n[2]};
|
|
1140
1140
|
& > [data-error='true'] {
|
|
1141
|
-
outline: 2px solid ${
|
|
1141
|
+
outline: 2px solid ${i(o.red[200],o.red[800])};
|
|
1142
1142
|
outline-offset: 2px;
|
|
1143
|
-
border-radius: ${
|
|
1143
|
+
border-radius: ${u.radius.xs};
|
|
1144
1144
|
}
|
|
1145
|
-
`,devtoolsEditTextarea:
|
|
1145
|
+
`,devtoolsEditTextarea:a`
|
|
1146
1146
|
width: 100%;
|
|
1147
1147
|
max-height: 500px;
|
|
1148
1148
|
font-family: 'Fira Code', monospace;
|
|
1149
|
-
font-size: ${
|
|
1150
|
-
border-radius: ${
|
|
1149
|
+
font-size: ${r.size.xs};
|
|
1150
|
+
border-radius: ${u.radius.sm};
|
|
1151
1151
|
field-sizing: content;
|
|
1152
|
-
padding: ${
|
|
1153
|
-
background-color: ${
|
|
1154
|
-
color: ${
|
|
1155
|
-
border: 1px solid ${
|
|
1152
|
+
padding: ${n[2]};
|
|
1153
|
+
background-color: ${i(o.gray[100],o.darkGray[800])};
|
|
1154
|
+
color: ${i(o.gray[900],o.gray[100])};
|
|
1155
|
+
border: 1px solid ${i(o.gray[200],o.gray[700])};
|
|
1156
1156
|
resize: none;
|
|
1157
1157
|
&:focus {
|
|
1158
1158
|
outline-offset: 2px;
|
|
1159
|
-
border-radius: ${
|
|
1160
|
-
outline: 2px solid ${
|
|
1159
|
+
border-radius: ${u.radius.xs};
|
|
1160
|
+
outline: 2px solid ${i(o.blue[200],o.blue[800])};
|
|
1161
1161
|
}
|
|
1162
|
-
`,devtoolsEditFormActions:
|
|
1162
|
+
`,devtoolsEditFormActions:a`
|
|
1163
1163
|
display: flex;
|
|
1164
1164
|
justify-content: space-between;
|
|
1165
|
-
gap: ${
|
|
1165
|
+
gap: ${n[2]};
|
|
1166
1166
|
align-items: center;
|
|
1167
|
-
padding-top: ${
|
|
1168
|
-
font-size: ${
|
|
1169
|
-
`,devtoolsEditFormError:
|
|
1170
|
-
color: ${
|
|
1171
|
-
`,devtoolsEditFormActionContainer:
|
|
1167
|
+
padding-top: ${n[1]};
|
|
1168
|
+
font-size: ${r.size.xs};
|
|
1169
|
+
`,devtoolsEditFormError:a`
|
|
1170
|
+
color: ${i(o.red[700],o.red[500])};
|
|
1171
|
+
`,devtoolsEditFormActionContainer:a`
|
|
1172
1172
|
display: flex;
|
|
1173
|
-
gap: ${
|
|
1174
|
-
`,devtoolsEditFormAction:
|
|
1173
|
+
gap: ${n[2]};
|
|
1174
|
+
`,devtoolsEditFormAction:a`
|
|
1175
1175
|
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
|
|
1176
|
-
font-size: ${
|
|
1177
|
-
padding: ${
|
|
1176
|
+
font-size: ${r.size.xs};
|
|
1177
|
+
padding: ${n[1]} ${R.size[2]};
|
|
1178
1178
|
display: flex;
|
|
1179
|
-
border-radius: ${
|
|
1180
|
-
background-color: ${
|
|
1181
|
-
border: 1px solid ${
|
|
1179
|
+
border-radius: ${u.radius.sm};
|
|
1180
|
+
background-color: ${i(o.gray[100],o.darkGray[600])};
|
|
1181
|
+
border: 1px solid ${i(o.gray[300],o.darkGray[400])};
|
|
1182
1182
|
align-items: center;
|
|
1183
|
-
gap: ${
|
|
1184
|
-
font-weight: ${
|
|
1185
|
-
line-height: ${
|
|
1183
|
+
gap: ${n[2]};
|
|
1184
|
+
font-weight: ${r.weight.medium};
|
|
1185
|
+
line-height: ${r.lineHeight.xs};
|
|
1186
1186
|
cursor: pointer;
|
|
1187
1187
|
&:focus-visible {
|
|
1188
1188
|
outline-offset: 2px;
|
|
1189
|
-
border-radius: ${
|
|
1190
|
-
outline: 2px solid ${
|
|
1189
|
+
border-radius: ${u.radius.xs};
|
|
1190
|
+
outline: 2px solid ${o.blue[800]};
|
|
1191
1191
|
}
|
|
1192
1192
|
&:hover {
|
|
1193
|
-
background-color: ${
|
|
1193
|
+
background-color: ${i(o.gray[200],o.darkGray[500])};
|
|
1194
1194
|
}
|
|
1195
1195
|
|
|
1196
1196
|
&:disabled {
|
|
1197
1197
|
opacity: 0.6;
|
|
1198
1198
|
cursor: not-allowed;
|
|
1199
1199
|
}
|
|
1200
|
-
`}},Ct=e=>_c("light",e),wt=e=>_c("dark",e);ur(["click","mousedown","input"]);});var Vc={};_r(Vc,{default:()=>Zy});var Xy,Zy,Kc=Oo(()=>{"use strict";C();rl();cr();Xy=e=>{let[t,a]=wn({prefix:"TanstackQueryDevtools"}),o=cn(),r=k(()=>{let n=t.theme_preference||Ln;return n!=="system"?n:o()});return y(wr.Provider,{value:e,get children(){return y(In,{localStore:t,setLocalStore:a,get children(){return y(Lr.Provider,{value:r,get children(){return y(Uc,{localStore:t,setLocalStore:a})}})}})}})},Zy=Xy});var Gc={};_r(Gc,{default:()=>Jy});var Yy,Jy,Wc=Oo(()=>{"use strict";C();rl();cr();Yy=e=>{let[t,a]=wn({prefix:"TanstackQueryDevtools"}),o=cn(),r=k(()=>{let n=t.theme_preference||Ln;return n!=="system"?n:o()});return y(wr.Provider,{value:e,get children(){return y(In,{disabled:!0,localStore:t,setLocalStore:a,get children(){return y(Lr.Provider,{value:r,get children(){return y(Hc,{get children(){return y(Fn,{localStore:t,setLocalStore:a,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},Jy=Yy});var Ub={};_r(Ub,{Studio:()=>Tp});module.exports=qp(Ub);C();C();C();var Lp=require("@tanstack/react-query"),Xn=require("react"),Ip=require("sonner");C();var ii=require("@radix-ui/react-slot"),ui=require("class-variance-authority"),di=Re(require("react"),1);C();var li=require("clsx");C();var es="-",Np=e=>{let t=Up(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{let i=s.split(es);return i[0]===""&&i.length!==1&&i.shift(),ti(i,t)||zp(s)},getConflictingClassGroupIds:(s,i)=>{let l=a[s]||[];return i&&o[s]?[...l,...o[s]]:l}}},ti=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?ti(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let n=e.join(es);return t.validators.find(({validator:s})=>s(n))?.classGroupId},Zl=/^\[(.+)\]$/,zp=e=>{if(Zl.test(e)){let t=Zl.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Up=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return _p(Object.entries(e.classGroups),a).forEach(([n,s])=>{Jn(s,o,n,t)}),o},Jn=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let n=r===""?t:Yl(t,r);n.classGroupId=a;return}if(typeof r=="function"){if(Hp(r)){Jn(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([n,s])=>{Jn(s,Yl(t,n),a,o)})})},Yl=(e,t)=>{let a=e;return t.split(es).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Hp=e=>e.isThemeGetter,_p=(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,Vp=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)}}},ai="!",Kp=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 f=l.length===0?i:i.substring(d),p=f.startsWith(ai),m=p?f.substring(1):f,g=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}};return a?i=>a({className:i,parseClassName:s}):s},Gp=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},Wp=e=>({cache:Vp(e.cacheSize),parseClassName:Kp(e),...Np(e)}),Qp=/\s+/,jp=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,n=[],s=e.trim().split(Qp),i="";for(let l=s.length-1;l>=0;l-=1){let u=s[l],{modifiers:d,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:p}=a(u),m=!!p,g=o(m?f.substring(0,p):f);if(!g){if(!m){i=u+(i.length>0?" "+i:i);continue}if(g=o(f),!g){i=u+(i.length>0?" "+i:i);continue}m=!1}let h=Gp(d).join(":"),x=c?h+ai:h,b=x+g;if(n.includes(b))continue;n.push(b);let v=r(g,m);for(let w=0;w<v.length;++w){let I=v[w];n.push(x+I)}i=u+(i.length>0?" "+i:i)}return i};function Xp(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=oi(t))&&(o&&(o+=" "),o+=a);return o}var oi=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=oi(e[o]))&&(a&&(a+=" "),a+=t);return a};function Jl(e,...t){let a,o,r,n=s;function s(l){let u=t.reduce((d,c)=>c(d),e());return a=Wp(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=jp(l,a);return r(l,d),d}return function(){return n(Xp.apply(null,arguments))}}var Ie=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},ri=/^\[(?:([a-z-]+):)?(.+)\]$/i,Zp=/^\d+\/\d+$/,Yp=new Set(["px","full","screen"]),Jp=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,em=/\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$/,tm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,am=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,om=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yt=e=>lo(e)||Yp.has(e)||Zp.test(e),Ia=e=>io(e,"length",cm),lo=e=>!!e&&!Number.isNaN(Number(e)),Yn=e=>io(e,"number",lo),Bo=e=>!!e&&Number.isInteger(Number(e)),rm=e=>e.endsWith("%")&&lo(e.slice(0,-1)),te=e=>ri.test(e),Sa=e=>Jp.test(e),nm=new Set(["length","size","percentage"]),sm=e=>io(e,nm,ni),lm=e=>io(e,"position",ni),im=new Set(["image","url"]),um=e=>io(e,im,pm),dm=e=>io(e,"",fm),$o=()=>!0,io=(e,t,a)=>{let o=ri.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},cm=e=>em.test(e)&&!tm.test(e),ni=()=>!1,fm=e=>am.test(e),pm=e=>om.test(e);var ei=()=>{let e=Ie("colors"),t=Ie("spacing"),a=Ie("blur"),o=Ie("brightness"),r=Ie("borderColor"),n=Ie("borderRadius"),s=Ie("borderSpacing"),i=Ie("borderWidth"),l=Ie("contrast"),u=Ie("grayscale"),d=Ie("hueRotate"),c=Ie("invert"),f=Ie("gap"),p=Ie("gradientColorStops"),m=Ie("gradientColorStopPositions"),g=Ie("inset"),h=Ie("margin"),x=Ie("opacity"),b=Ie("padding"),v=Ie("saturate"),w=Ie("scale"),I=Ie("sepia"),E=Ie("skew"),T=Ie("space"),$=Ie("translate"),L=()=>["auto","contain","none"],S=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",te,t],P=()=>[te,t],Y=()=>["",Yt,Ia],ae=()=>["auto",lo,te],he=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ce=()=>["solid","dashed","dotted","double","none"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>["start","end","center","between","around","evenly","stretch"],fe=()=>["","0",te],De=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Se=()=>[lo,te];return{cacheSize:500,separator:":",theme:{colors:[$o],spacing:[Yt,Ia],blur:["none","",Sa,te],brightness:Se(),borderColor:[e],borderRadius:["none","","full",Sa,te],borderSpacing:P(),borderWidth:Y(),contrast:Se(),grayscale:fe(),hueRotate:Se(),invert:fe(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[rm,Ia],inset:F(),margin:F(),opacity:Se(),padding:P(),saturate:Se(),scale:Se(),sepia:fe(),skew:Se(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[Sa]}],"break-after":[{"break-after":De()}],"break-before":[{"break-before":De()}],"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:[...he(),te]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],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",Bo,te]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:fe()}],shrink:[{shrink:fe()}],order:[{order:["first","last","none",Bo,te]}],"grid-cols":[{"grid-cols":[$o]}],"col-start-end":[{col:["auto",{span:["full",Bo,te]},te]}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":[$o]}],"row-start-end":[{row:["auto",{span:[Bo,te]},te]}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...ye()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ye(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ye(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],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":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[Sa]},Sa]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Sa,Ia]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yn]}],"font-family":[{font:[$o]}],"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",te]}],"line-clamp":[{"line-clamp":["none",lo,Yn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Yt,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"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:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Yt,Ia]}],"underline-offset":[{"underline-offset":["auto",Yt,te]}],"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:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],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",te]}],"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:[...he(),lm]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},um]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],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:[...ce(),"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:ce()}],"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:["",...ce()]}],"outline-offset":[{"outline-offset":[Yt,te]}],"outline-w":[{outline:[Yt,Ia]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Yt,Ia]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Sa,dm]}],"shadow-color":[{shadow:[$o]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...xe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":xe()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Sa,te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[v]}],sepia:[{sepia:[I]}],"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":[v]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"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",te]}],duration:[{duration:Se()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:Se()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Bo,te]}],"translate-x":[{"translate-x":[$]}],"translate-y":[{"translate-y":[$]}],"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",te]}],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",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Yt,Ia,Yn]}],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"]}}},mm=(e,{cacheSize:t,prefix:a,separator:o,experimentalParseClassName:r,extend:n={},override:s={}})=>{qo(e,"cacheSize",t),qo(e,"prefix",a),qo(e,"separator",o),qo(e,"experimentalParseClassName",r);for(let i in s)gm(e[i],s[i]);for(let i in n)hm(e[i],n[i]);return e},qo=(e,t,a)=>{a!==void 0&&(e[t]=a)},gm=(e,t)=>{if(t)for(let a in t)qo(e,a,t[a])},hm=(e,t)=>{if(t)for(let a in t){let o=t[a];o!==void 0&&(e[a]=(e[a]||[]).concat(o))}},si=(e,...t)=>typeof e=="function"?Jl(ei,e,...t):Jl(()=>mm(ei(),e),...t);var xm=si({prefix:"ps-"});function K(...e){return xm((0,li.clsx)(e))}var ci=require("react/jsx-runtime"),ym=(0,ui.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"}}),at=di.forwardRef(({className:e,variant:t,size:a,asChild:o=!1,...r},n)=>(0,ci.jsx)(o?ii.Slot:"button",{className:K(ym({variant:t,size:a,className:e})),ref:n,...r}));at.displayName="Button";C();var Zo=Re(require("@radix-ui/react-checkbox"),1);C();C();var Kr=require("react");C();var fi=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vr=(...e)=>e.filter((t,a,o)=>!!t&&o.indexOf(t)===a).join(" ");C();var No=require("react");C();var pi={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 mi=(0,No.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:s,...i},l)=>(0,No.createElement)("svg",{ref:l,...pi,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:Vr("lucide",r),...i},[...s.map(([u,d])=>(0,No.createElement)(u,d)),...Array.isArray(n)?n:[n]]));var me=(e,t)=>{let a=(0,Kr.forwardRef)(({className:o,...r},n)=>(0,Kr.createElement)(mi,{ref:n,iconNode:t,className:Vr(`lucide-${fi(e)}`,o),...r}));return a.displayName=`${e}`,a};C();var ka=me("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"}]]);C();var zo=me("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"}]]);C();var Jt=me("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);C();var Uo=me("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);C();var Ho=me("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);C();var ea=me("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);C();var _o=me("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);C();var Vo=me("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);C();var _a=me("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);C();var Ko=me("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"}]]);C();var Go=me("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);C();var Wo=me("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"}]]);C();var Qo=me("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"}]]);C();var jo=me("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"}]]);C();var Xo=me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var gi=Re(require("react"),1);var Gr=require("react/jsx-runtime"),Yo=gi.forwardRef(({className:e,...t},a)=>(0,Gr.jsx)(Zo.Root,{ref:a,className:K("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,Gr.jsx)(Zo.Indicator,{className:K("ps-flex ps-items-center ps-justify-center ps-text-current"),children:(0,Gr.jsx)(Jt,{className:"ps-h-4 ps-w-4"})})}));Yo.displayName=Zo.Root.displayName;C();var qn=require("@tanstack/react-query");C();var $n=require("@tanstack/react-query");C();C();var Rt=Re(require("react"),1),On=require("@tanstack/react-query");C();cr();var Qc=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=z(t),this.#d=a,this.#c=o,this.#u=r,this.#f=u,this.#a=d,this.#o=z(n),this.#r=z(s),this.#n=z(i),this.#s=z(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=ms(()=>{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=ps(()=>Promise.resolve().then(()=>(Kc(),Vc))),this.#l=l),vs(this.#f,this.#a),y(l,ee({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}},jc=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=z(t),this.#d=a,this.#c=o,this.#u=r,this.#f=u,this.#a=d,this.#o=z(n),this.#r=z(s),this.#n=z(i),this.#s=z(l),this.#l=z(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=ms(()=>{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=ps(()=>Promise.resolve().then(()=>(Wc(),Gc))),this.#i=u),vs(this.#f,this.#a),y(u,ee({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 Xc=require("react/jsx-runtime");function Zc(e){let t=(0,On.useQueryClient)(e.client),a=Rt.useRef(null),{buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}=e,[u]=Rt.useState(new Qc({client:t,queryFlavor:"React Query",version:"5",onlineManager:On.onlineManager,buttonPosition:o,position:r,initialIsOpen:n,errorTypes:s,styleNonce:i,shadowDOMTarget:l}));return Rt.useEffect(()=>{u.setClient(t)},[t,u]),Rt.useEffect(()=>{o&&u.setButtonPosition(o)},[o,u]),Rt.useEffect(()=>{r&&u.setPosition(r)},[r,u]),Rt.useEffect(()=>{u.setInitialIsOpen(n||!1)},[n,u]),Rt.useEffect(()=>{u.setErrorTypes(s||[])},[s,u]),Rt.useEffect(()=>(a.current&&u.mount(a.current),()=>{u.unmount()}),[u]),(0,Xc.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:a})}C();var ia=Re(require("react"),1),Bn=require("@tanstack/react-query");var Yc=require("react/jsx-runtime");function Jc(e){let t=(0,Bn.useQueryClient)(e.client),a=ia.useRef(null),{errorTypes:o,styleNonce:r,shadowDOMTarget:n}=e,[s]=ia.useState(new jc({client:t,queryFlavor:"React Query",version:"5",onlineManager:Bn.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:o,styleNonce:r,shadowDOMTarget:n,onClose:e.onClose}));return ia.useEffect(()=>{s.setClient(t)},[t,s]),ia.useEffect(()=>{s.setOnClose(e.onClose??(()=>{}))},[e.onClose,s]),ia.useEffect(()=>{s.setErrorTypes(o||[])},[o,s]),ia.useEffect(()=>(a.current&&s.mount(a.current),()=>{s.unmount()}),[s]),(0,Yc.jsx)("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:a})}var ef=process.env.NODE_ENV!=="development"?function(){return null}:Zc,ZC=process.env.NODE_ENV!=="development"?function(){return null}:Jc;var rf=require("nuqs/adapters/react"),ko=require("react"),nf=require("sonner");C();var tf=require("sonner"),of=require("react/jsx-runtime"),af=({...e})=>(0,of.jsx)(tf.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 eo=require("react/jsx-runtime"),ab=new $n.QueryClient,sf=(0,ko.createContext)(void 0);function lf(e){let{children:t,...a}=e,[o,r]=(0,ko.useState)(null),n=e.onError;return n??=s=>nf.toast.error(s.message),(0,eo.jsxs)($n.QueryClientProvider,{client:ab,children:[(0,eo.jsx)(ef,{}),(0,eo.jsx)(af,{}),(0,eo.jsx)(rf.NuqsAdapter,{children:(0,eo.jsx)(sf.Provider,{value:{...a,activeTable:o,setActiveTable:r,onError:n},children:t})})]})}function Je(){let e=(0,ko.useContext)(sf);if(!e)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return e}function uf(){let{activeTable:e,adapter:t}=Je(),a=(0,qn.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,qn.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 i},onSuccess(n){a.setQueriesData({exact:!1,queryKey:["schema",o,"table",r,"query"]},s=>s==null?s:{...s,rows:[...n.rows,...s.rows]})},retry:!1})}C();var df=require("@tanstack/react-query");function cf(e){let{pageIndex:t,pageSize:a,sortOrder:o}=e,{activeTable:r,adapter:n}=Je();return(0,df.useQuery)({enabled:!!r,gcTime:0,placeholderData:(s,i)=>{let[,l,,u]=i?.queryKey||[];if(!(l!==r?.schema||u!==r?.name))return s},queryFn:async({signal:s})=>{let[i,l]=await n.query({pageIndex:t,pageSize:a,sortOrder:o,table:r},{abortSignal:s});if(i)throw i;return l},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})}C();var Nn=require("@tanstack/react-query");C();function to(e,t){return Object.entries(Object.values(t).reduce((a,o)=>{let{isInPrimaryKey:r,name:n}=o;return r&&(a[n]=e[n]),a},{}))}function ff(){let{activeTable:e,adapter:t,onError:a}=Je(),o=(0,Nn.useQueryClient)(),r=["schema",e?.schema??null,"table",e?.name??null];return(0,Nn.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),nl({getFinderFn(){let u={...l,...i},d=to(u,e.columns);return c=>d.every(([f,p])=>c[f]===p)},queryClient:o,table:e,updaterFn:function(d){return{...d,...Object.keys(i).reduce((c,f)=>({...c,[f]:l[f]}),{})}}})},onMutate(n){let{details:s}=n;nl({getFinderFn(){let{row:i}=s,l=to(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){nl({getFinderFn(){let{changes:i,row:l}=s.details,u={...l,...i},d=to(u,e.columns);return c=>d.every(([f,p])=>c[f]===p)},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 nl(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)]}})}C();var pf=require("@tanstack/react-query");function zn(){return(0,pf.useIsMutating)({predicate({options:{mutationKey:e}}){return e?.[4]==="insert"}})}C();var mf=require("react");var We={};_r(We,{keyMap:()=>sl,urlKeys:()=>ob,useQueryState:()=>Po,useQueryStates:()=>Rr});C();var Un=require("nuqs");Zt(We,require("nuqs"));function sl(e){return e}function ob(e){return e}var Cw=Symbol("BRAND_SYMBOL");function Po(e,t){return(0,Un.useQueryState)(e,t)}function Rr(e,t){return(0,Un.useQueryStates)(e,t)}var rb=25,nb={pageIndex:We.parseAsIndex.withDefault(0),pageSize:We.parseAsInteger.withDefault(rb)};function gf(){let[{pageIndex:e,pageSize:t},a]=Rr(nb),o=(0,mf.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}}C();var _n=require("react");C();var Hn=require("@tanstack/react-query");function hf(){let{activeTable:e,adapter:t}=Je(),a=(0,Hn.useQueryClient)(),{schema:o=null,name:r=null}=e??{};return(0,Hn.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 xf(){let{activeTable:e}=Je(),[t,a]=(0,_n.useState)([]),{mutate:o}=hf();(0,_n.useEffect)(()=>a([]),[e]);function r(){o(t),a([])}return{selectedRows:t,setSelectedRows:a,deleteSelectedRows:r}}C();var Vn=require("react");function yf(){let[e,t]=Po("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,Vn.useState)(()=>a(e));return(0,Vn.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)}}}C();var Ef=require("remeda");C();var Lf=require("react");C();C();var ua=Re(require("react"),1);var Ht=require("react/jsx-runtime"),ll=ua.forwardRef(({className:e,...t},a)=>(0,Ht.jsx)("div",{className:"ps-relative ps-w-full ps-overflow-auto ps-flex ps-items-start ps-h-full",children:(0,Ht.jsx)("table",{ref:a,className:K("ps-w-full ps-caption-bottom ps-text-sm",e),...t})}));ll.displayName="Table";var il=ua.forwardRef(({className:e,...t},a)=>(0,Ht.jsx)("thead",{ref:a,className:K(e),...t}));il.displayName="TableHeader";var ul=ua.forwardRef(({className:e,...t},a)=>(0,Ht.jsx)("tbody",{ref:a,className:K("[&_tr:last-child]:ps-border-0",e),...t}));ul.displayName="TableBody";var dl=ua.forwardRef(({className:e,...t},a)=>(0,Ht.jsx)("tfoot",{ref:a,className:K("ps-border-t ps-bg-muted/50 ps-font-medium [&>tr]:last:ps-border-b-0",e),...t}));dl.displayName="TableFooter";var da=ua.forwardRef(({className:e,...t},a)=>(0,Ht.jsx)("tr",{ref:a,className:K("ps-border-b ps-transition-colors hover:ps-bg-muted/50 data-[state=selected]:ps-bg-muted",e),...t}));da.displayName="TableRow";var cl=ua.forwardRef(({className:e,...t},a)=>(0,Ht.jsx)("th",{ref:a,className:K("ps-h-10 ps-px-2 ps-text-left ps-align-middle ps-font-medium ps-text-muted-foreground [&:has([role=checkbox])]:ps-pr-0 [&>[role=checkbox]]:ps-translate-y-[2px]",e),...t}));cl.displayName="TableHead";var ca=ua.forwardRef(({className:e,...t},a)=>(0,Ht.jsx)("td",{ref:a,className:K("ps-p-2 ps-align-middle [&:has([role=checkbox])]:ps-pr-0 [&>[role=checkbox]]:ps-translate-y-[2px]",e),...t}));ca.displayName="TableCell";var sb=ua.forwardRef(({className:e,...t},a)=>(0,Ht.jsx)("caption",{ref:a,className:K("ps-mt-4 ps-text-sm ps-text-muted-foreground",e),...t}));sb.displayName="TableCaption";C();var Cf=require("react");C();var ne=Re(require("@radix-ui/react-context-menu"),1);var fa=Re(require("react"),1);var ze=require("react/jsx-runtime"),bf=ne.Root,vf=ne.Trigger;var lb=fa.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,ze.jsxs)(ne.SubTrigger,{ref:r,className:K("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,ze.jsx)(ea,{className:"ps-ml-auto ps-h-4 ps-w-4"})]}));lb.displayName=ne.SubTrigger.displayName;var ib=fa.forwardRef(({className:e,...t},a)=>(0,ze.jsx)(ne.SubContent,{ref:a,className:K("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}));ib.displayName=ne.SubContent.displayName;var fl=fa.forwardRef(({className:e,...t},a)=>(0,ze.jsx)(ne.Portal,{children:(0,ze.jsx)(ne.Content,{ref:a,className:K("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})}));fl.displayName=ne.Content.displayName;var pl=fa.forwardRef(({className:e,inset:t,...a},o)=>(0,ze.jsx)(ne.Item,{ref:o,className:K("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}));pl.displayName=ne.Item.displayName;var ub=fa.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,ze.jsxs)(ne.CheckboxItem,{ref:r,className:K("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,ze.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,ze.jsx)(ne.ItemIndicator,{children:(0,ze.jsx)(Jt,{className:"ps-h-4 ps-w-4"})})}),t]}));ub.displayName=ne.CheckboxItem.displayName;var db=fa.forwardRef(({className:e,children:t,...a},o)=>(0,ze.jsxs)(ne.RadioItem,{ref:o,className:K("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,ze.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,ze.jsx)(ne.ItemIndicator,{children:(0,ze.jsx)(_a,{className:"ps-h-4 ps-w-4 ps-fill-current"})})}),t]}));db.displayName=ne.RadioItem.displayName;var cb=fa.forwardRef(({className:e,inset:t,...a},o)=>(0,ze.jsx)(ne.Label,{ref:o,className:K("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold ps-text-foreground",t&&"ps-pl-8",e),...a}));cb.displayName=ne.Label.displayName;var fb=fa.forwardRef(({className:e,...t},a)=>(0,ze.jsx)(ne.Separator,{ref:a,className:K("ps--mx-1 ps-my-1 ps-h-px ps-bg-border",e),...t}));fb.displayName=ne.Separator.displayName;var pb=({className:e,...t})=>(0,ze.jsx)("span",{className:K("ps-ml-auto ps-text-xs ps-tracking-widest ps-text-muted-foreground",e),...t});pb.displayName="ContextMenuShortcut";var ao=require("react/jsx-runtime");function wf(e){let{children:t}=e;return(0,ao.jsxs)(bf,{children:[(0,ao.jsx)(vf,{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,ao.jsx)(fl,{children:(0,ao.jsxs)(pl,{onClick:()=>{let a=ml(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,ao.jsx)(Ko,{size:12}),"Copy"]})})]})}function ml(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(e==null)return"";if((0,Cf.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?ml(t.children):""}return Array.isArray(e)?e.map(ml).join(""):""}var gl=require("react/jsx-runtime");function st(e){let{children:t,className:a,ref:o,style:r,...n}=e;return(0,gl.jsx)(ca,{...n,className:K("ps-p-0 ps-border-r ps-border-b ps-border-table-border ps-bg-table-head last:ps-border-r-0","ps-cursor-pointer",a),ref:o,style:r,children:(0,gl.jsx)(wf,{children:t})})}var hl=require("react/jsx-runtime"),xl=(0,Lf.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,hl.jsx)(st,{...r,...a,ref:t,children:(0,hl.jsx)("div",{"data-cell-type":"boolean",children:String(!!o)})})});xl.displayName="BooleanCell";C();var If=require("react");var Sf=require("react/jsx-runtime"),yl=(0,If.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Sf.jsx)(st,{...r,...a,ref:t,children:String(o)})});yl.displayName="DateCell";C();var kf=require("react");var Pf=require("react/jsx-runtime"),bl=(0,kf.forwardRef)((e,t)=>{let{containerProps:a,value:o,options:r,...n}=e;return(0,Pf.jsx)(st,{...n,...a,ref:t,children:String(o)})});bl.displayName="EnumCell";C();var Mf=require("react");var Af=require("react/jsx-runtime"),vl=(0,Mf.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Af.jsx)(st,{...r,...a,ref:t,children:JSON.stringify(o,null,2)})});vl.displayName="JSONCell";C();var Rf=require("react");var Cl=require("react/jsx-runtime"),wl=(0,Rf.forwardRef)((e,t)=>{let{containerProps:a,...o}=e;return(0,Cl.jsx)(st,{...o,...a,ref:t,children:(0,Cl.jsx)("code",{className:"ps-text-gray-500",children:"NULL"})})});wl.displayName="NullCell";C();var Tf=require("react");var Df=require("react/jsx-runtime"),Tr=(0,Tf.forwardRef)((e,t)=>{let{containerProps:a,value:o,...r}=e;return(0,Df.jsx)(st,{...r,...a,ref:t,children:String(o)})});Tr.displayName="RawCell";var pa=require("react/jsx-runtime");function Ff(e,t,a){let o=e.getValue();if(o===null)return(0,pa.jsx)(wl,{});let{group:r,options:n}=t.datatype;if(r==="string")return(0,pa.jsx)(Tr,{containerProps:a,value:o});if(r==="enum")return(0,pa.jsx)(bl,{containerProps:a,value:o,options:n});if(r==="boolean")return(0,pa.jsx)(xl,{containerProps:a,value:o});if(r==="datetime")return(0,pa.jsx)(yl,{containerProps:a,value:o});if(r==="time")return(0,pa.jsx)(Tr,{containerProps:a,value:o});if(r==="raw")return(0,Ef.isObjectType)(o)?(0,pa.jsx)(vl,{containerProps:a,value:o}):(0,pa.jsx)(Tr,{containerProps:a,value:o});throw new Error(`Datatype group "${r}" was not handled in '/cell/get-cell.tsx'`)}C();var Of=require("react");var Ll=require("react/jsx-runtime"),Il=(0,Of.forwardRef)((e,t)=>{let{containerProps:a,row:o,...r}=e;return(0,Ll.jsx)(st,{...r,...a,ref:t,onClick:()=>{},children:(0,Ll.jsx)(Yo,{checked:o.getIsSelected(),disabled:!o.getCanSelect(),onCheckedChange:o.getToggleSelectedHandler()})})});Il.displayName="SelectRowCell";C();C();var ma=Re(require("@radix-ui/react-popover"),1),Be=Re(require("react"),1);var Mo=require("react/jsx-runtime"),Bf=Be.createContext(null),Sl=({children:e,...t})=>{let[a,o]=Be.useState(!1),r=Be.useRef(new Set),n=Be.useCallback(l=>{r.current.add(l)},[]),s=Be.useCallback(l=>{r.current.delete(l)},[]),i=Be.useCallback(l=>{!l&&a&&r.current.forEach(u=>{u()}),o(l)},[a]);return(0,Mo.jsx)(Bf.Provider,{value:{open:a,setOpen:o,registerOnBeforeClose:n,unregisterOnBeforeClose:s},children:(0,Mo.jsx)(ma.Root,{open:a,onOpenChange:i,...t,children:e})})};Sl.displayName="PopoverCell";var kl=Be.forwardRef(({children:e,onDoubleClick:t,className:a,...o},r)=>{let n=Be.useRef(null);return(0,Mo.jsx)(ma.Trigger,{ref:s=>{typeof r=="function"?r(s):r&&(r.current=s),n.current=s},className:K("w-full h-full cursor-pointer",a),...o,children:e})});kl.displayName="PopoverCellTrigger";var Pl=Be.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Mo.jsx)(ma.Portal,{children:(0,Mo.jsx)(ma.Content,{ref:r,align:t,sideOffset:a,className:K("ps-flex ps-flex-col ps-gap-2 ps-z-50 ps-w-72 ps-rounded-md ps-border ps-bg-popover ps-text-popover-foreground ps-shadow-md ps-outline-hidden 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),...o})}));Pl.displayName=ma.Content.displayName;function Ao(e){let t=Be.useContext(Bf),a=Be.useCallback(()=>{e.onSave&&e.onSave(),t&&t.setOpen(!1)},[e.onSave,t]),o=Be.useCallback(()=>{e.onCancel&&e.onCancel(),t&&t.setOpen(!1)},[e.onCancel,t]);return Be.useEffect(()=>{if(!t?.registerOnBeforeClose||!e.onSave)return;let r=()=>!!e.onSave?.();return t.registerOnBeforeClose(r),()=>t.unregisterOnBeforeClose?.(r)},[e.onSave,t]),Be.useEffect(()=>{let r=n=>{n.key==="Enter"||n.key==="Return"?(a(),n.preventDefault()):n.key==="Escape"&&(o(),n.preventDefault())};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[a,o]),{handleSave:a,handleCancel:o}}var Dr=require("react/jsx-runtime");function $f(e){let{cellComponent:t,inputComponent:a}=e;return(0,Dr.jsxs)(Sl,{children:[(0,Dr.jsx)(kl,{asChild:!0,children:t}),(0,Dr.jsx)(Pl,{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",sideOffset:-40,children:a})]})}C();var $a=require("@dnd-kit/core"),qa=require("@dnd-kit/sortable"),Jf=require("@dnd-kit/utilities"),Wn=require("@tanstack/react-table");C();var ga=Re(require("react"),1),_=Re(require("react"),1);function Ba(){return Ba=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},Ba.apply(null,arguments)}var mb=e=>{try{let t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}};function gb(e,t){let[a,o]=_.default.useState();_.default.useEffect(()=>{let n=mb(e);o(typeof n>"u"||n===null?typeof t=="function"?t():t:n)},[t,e]);let r=_.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 _t={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},zf=_.default.createContext(_t);function Uf(e){let{theme:t,...a}=e;return _.default.createElement(zf.Provider,Ba({value:t},a))}function hb(){return _.default.useContext(zf)}function xb(e){let[t,a]=_.default.useState(()=>{if(typeof window<"u")return window.matchMedia&&window.matchMedia(e).matches});return _.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 yb=typeof window>"u";function Tt(e,t,a){return a===void 0&&(a={}),_.default.forwardRef((o,r)=>{let{style:n,...s}=o,i=hb(),l=Object.entries(a).reduce((u,d)=>{let[c,f]=d;return xb(c)?{...u,...typeof f=="function"?f(s,i):f}:u},{});return _.default.createElement(e,{...s,style:{...typeof t=="function"?t(s,i):t,...n,...l},ref:r})})}function bb(){let e=_.default.useRef(!1),t=_.default.useCallback(()=>e.current,[]);return _.default[yb?"useEffect":"useLayoutEffect"](()=>(e.current=!0,()=>{e.current=!1}),[]),t}var vb=Tt("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"}});Tt("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(e,t)=>({borderTop:`2px solid ${t.gray}`})});var Cb=Tt("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"}));Tt("code",{fontSize:".9em"});Tt("input",(e,t)=>({backgroundColor:t.inputBackgroundColor,border:0,borderRadius:".2em",color:t.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}));Tt("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 qf=Tt("div",{fontFamily:"Menlo, monospace",fontSize:"0.7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Kn=Tt("span",{cursor:"pointer",color:"white"}),wb=Tt("span",(e,t)=>({color:t.danger})),Ml=Tt("div",{marginLeft:".1rem",paddingLeft:"1rem",borderLeft:"2px solid rgba(0,0,0,.15)"}),Lb=Tt("span",{color:"grey",fontSize:".7rem"}),Nf=e=>{let{expanded:t,style:a={},...o}=e;return _.default.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:`rotate(${t?90:0}deg) ${a.transform||""}`,...a}},"\u25B6")},Ib=e=>{let{handleEntry:t,label:a,value:o,subEntries:r,subEntryPages:n,type:s,expanded:i,toggle:l,pageSize:u,renderer:d}=e,[c,f]=_.default.useState(void 0),[p,m]=_.default.useState([]),g=()=>{f(o())};return _.default.createElement(qf,{key:a},n!=null&&n.length?_.default.createElement(_.default.Fragment,null,_.default.createElement(Kn,{onClick:()=>l()},_.default.createElement(Nf,{expanded:i})," ",a," ",_.default.createElement(Lb,null,String(s).toLowerCase()==="iterable"?"(Iterable) ":"",r.length," ",r.length>1?"items":"item")),i?n.length===1?_.default.createElement(Ml,null,r.map(h=>t(h))):_.default.createElement(Ml,null,n.map((h,x)=>_.default.createElement("div",{key:x},_.default.createElement(qf,null,_.default.createElement(Kn,{onClick:()=>m(b=>b.includes(x)?b.filter(v=>v!==x):[...b,x])},_.default.createElement(Nf,{expanded:i})," [",x*u," ..."," ",x*u+u-1,"]"),p.includes(x)?_.default.createElement(Ml,null,h.map(b=>t(b))):null)))):null):s==="function"?_.default.createElement(_.default.Fragment,null,_.default.createElement(Vt,{renderer:d,label:_.default.createElement("button",{onClick:g},_.default.createElement(Kn,null,a)," \u{1F504}"," "),value:c,defaultExpanded:{}})):_.default.createElement(_.default.Fragment,null,_.default.createElement(Kn,null,a,":")," ",_.default.createElement(wb,null,JSON.stringify(o,Object.getOwnPropertyNames(Object(o))))))};function Vt(e){let{value:t,defaultExpanded:a,renderer:o=Ib,pageSize:r=100,depth:n=0,...s}=e,[i,l]=_.default.useState(a),u=g=>{l(h=>typeof g<"u"?g:!h)},d=[],c=typeof t,f,p=[],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",f=t.map((g,h)=>m({label:h,value:g}))):t!==null&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"?(c="Iterable",f=Array.from(t,(g,h)=>m({label:h,value:g}))):typeof t=="function"?c="function":typeof t=="object"&&t!==null&&(c="object",f=Object.entries(t).map(g=>{let[h,x]=g;return m({label:h,value:x})})),f){let g=0;for(;g<f.length;)p.push(f.slice(g,g+r)),g=g+r}return o({handleEntry:g=>_.default.createElement(Vt,Ba({key:g.label,renderer:o},s,g)),type:c,subEntries:f,subEntryPages:p,depth:n,value:t,path:d,expanded:i,toggle:u,pageSize:r,...s})}function Hf(e){return ga.createElement("svg",Ba({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},e),ga.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ga.createElement("g",{id:"og-white",transform:"translate(-28.000000, -21.000000)"},ga.createElement("g",{id:"Group-2",transform:"translate(28.000000, 31.000000)"},ga.createElement("g",{id:"Group",transform:"translate(0.000000, 10.000000)"},ga.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) "}),ga.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"}),ga.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 _f(e){let{initialIsOpen:t,table:a,panelProps:o={},toggleButtonProps:r={},containerElement:n="footer"}=e,s=_.default.useRef(null),i=_.default.useRef(null),[l,u]=gb("reactTableDevtoolsOpen",t),d=bb(),{style:c={},...f}=o,{style:p={},onClick:m,...g}=r;return d()?_.default.createElement(n,{ref:s,className:"ReactTableDevtools"},_.default.createElement(Uf,{theme:_t},l?_.default.createElement(Sb,Ba({ref:i},f,{table:a,isOpen:l,setIsOpen:u,style:{maxHeight:"80vh",width:"100%",...c}})):_.default.createElement("button",Ba({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",...p}}),_.default.createElement(Hf,{"aria-hidden":!0})))):null}var Sb=_.default.forwardRef(function(t,a){let{table:o,isOpen:r=!0,setIsOpen:n,...s}=t;return _.default.createElement(Uf,{theme:_t},_.default.createElement(vb,Ba({ref:a,className:"ReactTableDevtoolsPanel"},s),_.default.createElement("style",{dangerouslySetInnerHTML:{__html:`
|
|
1200
|
+
`}},wt=t=>Vc("light",t),Lt=t=>Vc("dark",t);dr(["click","mousedown","input"]);});var Kc={};Kr(Kc,{default:()=>Yy});var Zy,Yy,Gc=Bo(()=>{"use strict";w();nl();fr();Zy=t=>{let[a,o]=In({prefix:"TanstackQueryDevtools"}),r=pn(),n=P(()=>{let s=a.theme_preference||Sn;return s!=="system"?s:r()});return b(Lr.Provider,{value:t,get children(){return b(kn,{localStore:a,setLocalStore:o,get children(){return b(Ir.Provider,{value:n,get children(){return b(Hc,{localStore:a,setLocalStore:o})}})}})}})},Yy=Zy});var Wc={};Kr(Wc,{default:()=>eb});var Jy,eb,Qc=Bo(()=>{"use strict";w();nl();fr();Jy=t=>{let[a,o]=In({prefix:"TanstackQueryDevtools"}),r=pn(),n=P(()=>{let s=a.theme_preference||Sn;return s!=="system"?s:r()});return b(Lr.Provider,{value:t,get children(){return b(kn,{disabled:!0,localStore:a,setLocalStore:o,get children(){return b(Ir.Provider,{value:n,get children(){return b(_c,{get children(){return b(Bn,{localStore:a,setLocalStore:o,get onClose(){return t.onClose},showPanelViewOnly:!0})}})}})}})}})},eb=Jy});var Hb={};Kr(Hb,{Studio:()=>Dp});module.exports=Np(Hb);w();w();w();var Ip=require("@tanstack/react-query"),Zn=require("react"),Sp=require("sonner");w();var ui=require("@radix-ui/react-slot"),di=require("class-variance-authority"),ci=Te(require("react"),1);w();var ii=require("clsx");w();var ts="-",zp=t=>{let a=Hp(t),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:l=>{let u=l.split(ts);return u[0]===""&&u.length!==1&&u.shift(),ai(u,a)||Up(l)},getConflictingClassGroupIds:(l,u)=>{let i=o[l]||[];return u&&r[l]?[...i,...r[l]]:i}}},ai=(t,a)=>{if(t.length===0)return a.classGroupId;let o=t[0],r=a.nextPart.get(o),n=r?ai(t.slice(1),r):void 0;if(n)return n;if(a.validators.length===0)return;let s=t.join(ts);return a.validators.find(({validator:l})=>l(s))?.classGroupId},Yl=/^\[(.+)\]$/,Up=t=>{if(Yl.test(t)){let a=Yl.exec(t)[1],o=a?.substring(0,a.indexOf(":"));if(o)return"arbitrary.."+o}},Hp=t=>{let{theme:a,prefix:o}=t,r={nextPart:new Map,validators:[]};return Vp(Object.entries(t.classGroups),o).forEach(([s,l])=>{es(l,r,s,a)}),r},es=(t,a,o,r)=>{t.forEach(n=>{if(typeof n=="string"){let s=n===""?a:Jl(a,n);s.classGroupId=o;return}if(typeof n=="function"){if(_p(n)){es(n(r),a,o,r);return}a.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([s,l])=>{es(l,Jl(a,s),o,r)})})},Jl=(t,a)=>{let o=t;return a.split(ts).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},_p=t=>t.isThemeGetter,Vp=(t,a)=>a?t.map(([o,r])=>{let n=r.map(s=>typeof s=="string"?a+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,u])=>[a+l,u])):s);return[o,n]}):t,Kp=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,o=new Map,r=new Map,n=(s,l)=>{o.set(s,l),a++,a>t&&(a=0,r=o,o=new Map)};return{get(s){let l=o.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return n(s,l),l},set(s,l){o.has(s)?o.set(s,l):n(s,l)}}},oi="!",Gp=t=>{let{separator:a,experimentalParseClassName:o}=t,r=a.length===1,n=a[0],s=a.length,l=u=>{let i=[],d=0,c=0,f;for(let x=0;x<u.length;x++){let y=u[x];if(d===0){if(y===n&&(r||u.slice(x,x+s)===a)){i.push(u.slice(c,x)),c=x+s;continue}if(y==="/"){f=x;continue}}y==="["?d++:y==="]"&&d--}let p=i.length===0?u:u.substring(c),m=p.startsWith(oi),g=m?p.substring(1):p,h=f&&f>c?f-c:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:h}};return o?u=>o({className:u,parseClassName:l}):l},Wp=t=>{if(t.length<=1)return t;let a=[],o=[];return t.forEach(r=>{r[0]==="["?(a.push(...o.sort(),r),o=[]):o.push(r)}),a.push(...o.sort()),a},Qp=t=>({cache:Kp(t.cacheSize),parseClassName:Gp(t),...zp(t)}),jp=/\s+/,Xp=(t,a)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=a,s=[],l=t.trim().split(jp),u="";for(let i=l.length-1;i>=0;i-=1){let d=l[i],{modifiers:c,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=o(d),g=!!m,h=r(g?p.substring(0,m):p);if(!h){if(!g){u=d+(u.length>0?" "+u:u);continue}if(h=r(p),!h){u=d+(u.length>0?" "+u:u);continue}g=!1}let x=Wp(c).join(":"),y=f?x+oi:x,v=y+h;if(s.includes(v))continue;s.push(v);let C=n(h,g);for(let L=0;L<C.length;++L){let I=C[L];s.push(y+I)}u=d+(u.length>0?" "+u:u)}return u};function Zp(){let t=0,a,o,r="";for(;t<arguments.length;)(a=arguments[t++])&&(o=ri(a))&&(r&&(r+=" "),r+=o);return r}var ri=t=>{if(typeof t=="string")return t;let a,o="";for(let r=0;r<t.length;r++)t[r]&&(a=ri(t[r]))&&(o&&(o+=" "),o+=a);return o};function ei(t,...a){let o,r,n,s=l;function l(i){let d=a.reduce((c,f)=>f(c),t());return o=Qp(d),r=o.cache.get,n=o.cache.set,s=u,u(i)}function u(i){let d=r(i);if(d)return d;let c=Xp(i,o);return n(i,c),c}return function(){return s(Zp.apply(null,arguments))}}var Se=t=>{let a=o=>o[t]||[];return a.isThemeGetter=!0,a},ni=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yp=/^\d+\/\d+$/,Jp=new Set(["px","full","screen"]),em=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tm=/\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$/,am=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,om=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jt=t=>io(t)||Jp.has(t)||Yp.test(t),Ia=t=>uo(t,"length",fm),io=t=>!!t&&!Number.isNaN(Number(t)),Jn=t=>uo(t,"number",io),$o=t=>!!t&&Number.isInteger(Number(t)),nm=t=>t.endsWith("%")&&io(t.slice(0,-1)),oe=t=>ni.test(t),Sa=t=>em.test(t),sm=new Set(["length","size","percentage"]),lm=t=>uo(t,sm,si),im=t=>uo(t,"position",si),um=new Set(["image","url"]),dm=t=>uo(t,um,mm),cm=t=>uo(t,"",pm),qo=()=>!0,uo=(t,a,o)=>{let r=ni.exec(t);return r?r[1]?typeof a=="string"?r[1]===a:a.has(r[1]):o(r[2]):!1},fm=t=>tm.test(t)&&!am.test(t),si=()=>!1,pm=t=>om.test(t),mm=t=>rm.test(t);var ti=()=>{let t=Se("colors"),a=Se("spacing"),o=Se("blur"),r=Se("brightness"),n=Se("borderColor"),s=Se("borderRadius"),l=Se("borderSpacing"),u=Se("borderWidth"),i=Se("contrast"),d=Se("grayscale"),c=Se("hueRotate"),f=Se("invert"),p=Se("gap"),m=Se("gradientColorStops"),g=Se("gradientColorStopPositions"),h=Se("inset"),x=Se("margin"),y=Se("opacity"),v=Se("padding"),C=Se("saturate"),L=Se("scale"),I=Se("sepia"),O=Se("skew"),E=Se("space"),q=Se("translate"),S=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",oe,a],k=()=>[oe,a],Y=()=>["",Jt,Ia],ae=()=>["auto",io,oe],ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],fe=()=>["solid","dashed","dotted","double","none"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>["start","end","center","between","around","evenly","stretch"],me=()=>["","0",oe],Ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ke=()=>[io,oe];return{cacheSize:500,separator:":",theme:{colors:[qo],spacing:[Jt,Ia],blur:["none","",Sa,oe],brightness:ke(),borderColor:[t],borderRadius:["none","","full",Sa,oe],borderSpacing:k(),borderWidth:Y(),contrast:ke(),grayscale:me(),hueRotate:ke(),invert:me(),gap:k(),gradientColorStops:[t],gradientColorStopPositions:[nm,Ia],inset:T(),margin:T(),opacity:ke(),padding:k(),saturate:ke(),scale:ke(),sepia:me(),skew:ke(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",oe]}],container:["container"],columns:[{columns:[Sa]}],"break-after":[{"break-after":Ee()}],"break-before":[{"break-before":Ee()}],"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:[...ce(),oe]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$o,oe]}],basis:[{basis:T()}],"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:me()}],shrink:[{shrink:me()}],order:[{order:["first","last","none",$o,oe]}],"grid-cols":[{"grid-cols":[qo]}],"col-start-end":[{col:["auto",{span:["full",$o,oe]},oe]}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":[qo]}],"row-start-end":[{row:["auto",{span:[$o,oe]},oe]}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"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",...be()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...be(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...be(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",oe,a]}],"min-w":[{"min-w":[oe,a,"min","max","fit"]}],"max-w":[{"max-w":[oe,a,"none","full","min","max","fit","prose",{screen:[Sa]},Sa]}],h:[{h:[oe,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[oe,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[oe,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[oe,a,"auto","min","max","fit"]}],"font-size":[{text:["base",Sa,Ia]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Jn]}],"font-family":[{font:[qo]}],"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",io,Jn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Jt,oe]}],"list-image":[{"list-image":["none",oe]}],"list-style-type":[{list:["none","disc","decimal",oe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Jt,Ia]}],"underline-offset":[{"underline-offset":["auto",Jt,oe]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"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":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ce(),im]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},dm]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...fe(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:fe()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...fe()]}],"outline-offset":[{"outline-offset":[Jt,oe]}],"outline-w":[{outline:[Jt,Ia]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Jt,Ia]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Sa,cm]}],"shadow-color":[{shadow:[qo]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ye(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",Sa,oe]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[C]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",oe]}],duration:[{duration:ke()}],ease:[{ease:["linear","in","out","in-out",oe]}],delay:[{delay:ke()}],animate:[{animate:["none","spin","ping","pulse","bounce",oe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[$o,oe]}],"translate-x":[{"translate-x":[q]}],"translate-y":[{"translate-y":[q]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",oe]}],accent:[{accent:["auto",t]}],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:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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:[t,"none"]}],"stroke-w":[{stroke:[Jt,Ia,Jn]}],stroke:[{stroke:[t,"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"]}}},gm=(t,{cacheSize:a,prefix:o,separator:r,experimentalParseClassName:n,extend:s={},override:l={}})=>{No(t,"cacheSize",a),No(t,"prefix",o),No(t,"separator",r),No(t,"experimentalParseClassName",n);for(let u in l)hm(t[u],l[u]);for(let u in s)xm(t[u],s[u]);return t},No=(t,a,o)=>{o!==void 0&&(t[a]=o)},hm=(t,a)=>{if(a)for(let o in a)No(t,o,a[o])},xm=(t,a)=>{if(a)for(let o in a){let r=a[o];r!==void 0&&(t[o]=(t[o]||[]).concat(r))}},li=(t,...a)=>typeof t=="function"?ei(ti,t,...a):ei(()=>gm(ti(),t),...a);var ym=li({prefix:"ps-"});function G(...t){return ym((0,ii.clsx)(t))}var fi=require("react/jsx-runtime"),bm=(0,di.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"}}),ot=ci.forwardRef(({className:t,variant:a,size:o,asChild:r=!1,...n},s)=>(0,fi.jsx)(r?ui.Slot:"button",{className:G(bm({variant:a,size:o,className:t})),ref:s,...n}));ot.displayName="Button";w();var Yo=Te(require("@radix-ui/react-checkbox"),1);w();w();var Wr=require("react");w();var pi=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Gr=(...t)=>t.filter((a,o,r)=>!!a&&r.indexOf(a)===o).join(" ");w();var zo=require("react");w();var mi={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 gi=(0,zo.forwardRef)(({color:t="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:n="",children:s,iconNode:l,...u},i)=>(0,zo.createElement)("svg",{ref:i,...mi,width:a,height:a,stroke:t,strokeWidth:r?Number(o)*24/Number(a):o,className:Gr("lucide",n),...u},[...l.map(([d,c])=>(0,zo.createElement)(d,c)),...Array.isArray(s)?s:[s]]));var he=(t,a)=>{let o=(0,Wr.forwardRef)(({className:r,...n},s)=>(0,Wr.createElement)(gi,{ref:s,iconNode:a,className:Gr(`lucide-${pi(t)}`,r),...n}));return o.displayName=`${t}`,o};w();var ka=he("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"}]]);w();var Uo=he("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"}]]);w();var ea=he("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);w();var Ho=he("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);w();var _o=he("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);w();var ta=he("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);w();var Vo=he("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);w();var Ko=he("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);w();var Va=he("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);w();var Go=he("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"}]]);w();var Wo=he("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);w();var Qo=he("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"}]]);w();var jo=he("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"}]]);w();var Xo=he("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"}]]);w();var Zo=he("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var hi=Te(require("react"),1);var Qr=require("react/jsx-runtime"),Jo=hi.forwardRef(({className:t,...a},o)=>(0,Qr.jsx)(Yo.Root,{ref:o,className:G("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",t),...a,children:(0,Qr.jsx)(Yo.Indicator,{className:G("ps-flex ps-items-center ps-justify-center ps-text-current"),children:(0,Qr.jsx)(ea,{className:"ps-h-4 ps-w-4"})})}));Jo.displayName=Yo.Root.displayName;w();var zn=require("@tanstack/react-query");w();var Nn=require("@tanstack/react-query");w();w();var Tt=Te(require("react"),1),$n=require("@tanstack/react-query");w();fr();var jc=class{#t;#u;#d;#c;#e=!1;#f;#a;#o;#r;#n;#s;#l;#i;constructor(t){let{client:a,queryFlavor:o,version:r,onlineManager:n,buttonPosition:s,position:l,initialIsOpen:u,errorTypes:i,styleNonce:d,shadowDOMTarget:c}=t;this.#t=U(a),this.#d=o,this.#c=r,this.#u=n,this.#f=d,this.#a=c,this.#o=U(s),this.#r=U(l),this.#n=U(u),this.#s=U(i)}setButtonPosition(t){this.#o[1](t)}setPosition(t){this.#r[1](t)}setInitialIsOpen(t){this.#n[1](t)}setErrorTypes(t){this.#s[1](t)}setClient(t){this.#t[1](t)}mount(t){if(this.#e)throw new Error("Devtools is already mounted");let a=gs(()=>{let o=this,[r]=this.#o,[n]=this.#r,[s]=this.#n,[l]=this.#s,[u]=this.#t,i;return this.#l?i=this.#l:(i=ms(()=>Promise.resolve().then(()=>(Gc(),Kc))),this.#l=i),Cs(this.#f,this.#a),b(i,te({get queryFlavor(){return o.#d},get version(){return o.#c},get onlineManager(){return o.#u},get shadowDOMTarget(){return o.#a}},{get client(){return u()},get buttonPosition(){return r()},get position(){return n()},get initialIsOpen(){return s()},get errorTypes(){return l()}}))},t);this.#e=!0,this.#i=a}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#i?.(),this.#e=!1}},Xc=class{#t;#u;#d;#c;#e=!1;#f;#a;#o;#r;#n;#s;#l;#i;#p;constructor(t){let{client:a,queryFlavor:o,version:r,onlineManager:n,buttonPosition:s,position:l,initialIsOpen:u,errorTypes:i,styleNonce:d,shadowDOMTarget:c,onClose:f}=t;this.#t=U(a),this.#d=o,this.#c=r,this.#u=n,this.#f=d,this.#a=c,this.#o=U(s),this.#r=U(l),this.#n=U(u),this.#s=U(i),this.#l=U(f)}setButtonPosition(t){this.#o[1](t)}setPosition(t){this.#r[1](t)}setInitialIsOpen(t){this.#n[1](t)}setErrorTypes(t){this.#s[1](t)}setClient(t){this.#t[1](t)}setOnClose(t){this.#l[1](()=>t)}mount(t){if(this.#e)throw new Error("Devtools is already mounted");let a=gs(()=>{let o=this,[r]=this.#o,[n]=this.#r,[s]=this.#n,[l]=this.#s,[u]=this.#t,[i]=this.#l,d;return this.#i?d=this.#i:(d=ms(()=>Promise.resolve().then(()=>(Qc(),Wc))),this.#i=d),Cs(this.#f,this.#a),b(d,te({get queryFlavor(){return o.#d},get version(){return o.#c},get onlineManager(){return o.#u},get shadowDOMTarget(){return o.#a}},{get client(){return u()},get buttonPosition(){return r()},get position(){return n()},get initialIsOpen(){return s()},get errorTypes(){return l()},get onClose(){return i()}}))},t);this.#e=!0,this.#p=a}unmount(){if(!this.#e)throw new Error("Devtools is not mounted");this.#p?.(),this.#e=!1}};var Zc=require("react/jsx-runtime");function Yc(t){let a=(0,$n.useQueryClient)(t.client),o=Tt.useRef(null),{buttonPosition:r,position:n,initialIsOpen:s,errorTypes:l,styleNonce:u,shadowDOMTarget:i}=t,[d]=Tt.useState(new jc({client:a,queryFlavor:"React Query",version:"5",onlineManager:$n.onlineManager,buttonPosition:r,position:n,initialIsOpen:s,errorTypes:l,styleNonce:u,shadowDOMTarget:i}));return Tt.useEffect(()=>{d.setClient(a)},[a,d]),Tt.useEffect(()=>{r&&d.setButtonPosition(r)},[r,d]),Tt.useEffect(()=>{n&&d.setPosition(n)},[n,d]),Tt.useEffect(()=>{d.setInitialIsOpen(s||!1)},[s,d]),Tt.useEffect(()=>{d.setErrorTypes(l||[])},[l,d]),Tt.useEffect(()=>(o.current&&d.mount(o.current),()=>{d.unmount()}),[d]),(0,Zc.jsx)("div",{dir:"ltr",className:"tsqd-parent-container",ref:o})}w();var ua=Te(require("react"),1),qn=require("@tanstack/react-query");var Jc=require("react/jsx-runtime");function ef(t){let a=(0,qn.useQueryClient)(t.client),o=ua.useRef(null),{errorTypes:r,styleNonce:n,shadowDOMTarget:s}=t,[l]=ua.useState(new Xc({client:a,queryFlavor:"React Query",version:"5",onlineManager:qn.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:r,styleNonce:n,shadowDOMTarget:s,onClose:t.onClose}));return ua.useEffect(()=>{l.setClient(a)},[a,l]),ua.useEffect(()=>{l.setOnClose(t.onClose??(()=>{}))},[t.onClose,l]),ua.useEffect(()=>{l.setErrorTypes(r||[])},[r,l]),ua.useEffect(()=>(o.current&&l.mount(o.current),()=>{l.unmount()}),[l]),(0,Jc.jsx)("div",{style:{height:"500px",...t.style},className:"tsqd-parent-container",ref:o})}var tf=process.env.NODE_ENV!=="development"?function(){return null}:Yc,YC=process.env.NODE_ENV!=="development"?function(){return null}:ef;var nf=require("nuqs/adapters/react"),Po=require("react"),sf=require("sonner");w();var af=require("sonner"),rf=require("react/jsx-runtime"),of=({...t})=>(0,rf.jsx)(af.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"}},...t});var to=require("react/jsx-runtime"),ob=new Nn.QueryClient,lf=(0,Po.createContext)(void 0);function uf(t){let{children:a,...o}=t,[r,n]=(0,Po.useState)(null),s=t.onError;return s??=l=>sf.toast.error(l.message),(0,to.jsxs)(Nn.QueryClientProvider,{client:ob,children:[(0,to.jsx)(tf,{}),(0,to.jsx)(of,{}),(0,to.jsx)(nf.NuqsAdapter,{children:(0,to.jsx)(lf.Provider,{value:{...o,activeTable:r,setActiveTable:n,onError:s},children:a})})]})}function et(){let t=(0,Po.useContext)(lf);if(!t)throw new Error("`useStudio` must be used within a `StudioContext.Provider`");return t}function df(){let{activeTable:t,adapter:a}=et(),o=(0,zn.useQueryClient)(),{schema:r=null,name:n=null}=t??{};return(0,zn.useMutation)({mutationKey:["schema",r,"table",n,"insert"],async mutationFn(s){let[l,u]=await a.insert({rows:s,table:t},{});if(l)throw l;return u},onSuccess(s){o.setQueriesData({exact:!1,queryKey:["schema",r,"table",n,"query"]},l=>l==null?l:{...l,rows:[...s.rows,...l.rows]})},retry:!1})}w();var cf=require("@tanstack/react-query");function ff(t){let{pageIndex:a,pageSize:o,sortOrder:r}=t,{activeTable:n,adapter:s}=et();return(0,cf.useQuery)({enabled:!!n,gcTime:0,placeholderData:(l,u)=>{let[,i,,d]=u?.queryKey||[];if(!(i!==n?.schema||d!==n?.name))return l},queryFn:async({signal:l})=>{let[u,i]=await s.query({pageIndex:a,pageSize:o,sortOrder:r,table:n},{abortSignal:l});if(u)throw u;return i},queryKey:["schema",n?.schema||null,"table",n?.name||null,"query","sortOrder",r.map(l=>`${l.column}:${l.direction}`).join(",")||"natural","pageIndex",a,"pageSize",o],staleTime:1/0})}w();var Un=require("@tanstack/react-query");w();function ao(t,a){return Object.entries(Object.values(a).reduce((o,r)=>{let{isInPrimaryKey:n,name:s}=r;return n&&(o[s]=t[s]),o},{}))}function pf(){let{activeTable:t,adapter:a,onError:o}=et(),r=(0,Un.useQueryClient)(),n=["schema",t?.schema??null,"table",t?.name??null];return(0,Un.useMutation)({mutationFn:async s=>{let[l,u]=await a.update(s.details,s.options);if(l)throw l;return u},mutationKey:[...n,"update"],onError(s,l){let{changes:u,row:i}=l.details;o(s),sl({getFinderFn(){let d={...i,...u},c=ao(d,t.columns);return f=>c.every(([p,m])=>f[p]===m)},queryClient:r,table:t,updaterFn:function(c){return{...c,...Object.keys(u).reduce((f,p)=>({...f,[p]:i[p]}),{})}}})},onMutate(s){let{details:l}=s;sl({getFinderFn(){let{row:u}=l,i=ao(u,t.columns);return d=>i.every(([c,f])=>d[c]===f)},queryClient:r,table:t,updaterFn:function(i){return{...i,...l.changes}}})},onSuccess(s,l){sl({getFinderFn(){let{changes:u,row:i}=l.details,d={...i,...u},c=ao(d,t.columns);return f=>c.every(([p,m])=>f[p]===m)},queryClient:r,table:t,updaterFn:function(i){let{__ps_updated_at__:d}=i,{row:c}=s;return d!=null&&c.__ps_updated_at__<=d?i:{...i,...c}}})},retry:!1})}function sl(t){let{getFinderFn:a,queryClient:o,table:r,updaterFn:n}=t,s;o.setQueriesData({exact:!1,queryKey:["schema",r.schema,"table",r.name,"query"]},l=>{let{rows:u=[]}=l||{};if(u.length===0)return l;let i=u.findIndex(s??=a());if(i===-1)return l;let d=n(u[i]);return{...l,rows:[...u.slice(0,i),d,...u.slice(i+1)]}})}w();var mf=require("@tanstack/react-query");function Hn(){return(0,mf.useIsMutating)({predicate({options:{mutationKey:t}}){return t?.[4]==="insert"}})}w();var gf=require("react");var Qe={};Kr(Qe,{keyMap:()=>ll,urlKeys:()=>rb,useQueryState:()=>Mo,useQueryStates:()=>Tr});w();var _n=require("nuqs");Yt(Qe,require("nuqs"));function ll(t){return t}function rb(t){return t}var ww=Symbol("BRAND_SYMBOL");function Mo(t,a){return(0,_n.useQueryState)(t,a)}function Tr(t,a){return(0,_n.useQueryStates)(t,a)}var nb=25,sb={pageIndex:Qe.parseAsIndex.withDefault(0),pageSize:Qe.parseAsInteger.withDefault(nb)};function hf(){let[{pageIndex:t,pageSize:a},o]=Tr(sb),r=(0,gf.useCallback)(n=>{o(typeof n=="function"?s=>{let l=n(s);return{pageIndex:l.pageIndex,pageSize:l.pageSize}}:{pageIndex:n.pageIndex,pageSize:n.pageSize})},[o]);return{paginationState:{pageIndex:t,pageSize:a},setPaginationState:r}}w();var Dr=require("react");w();var Vn=require("@tanstack/react-query");function xf(){let{activeTable:t,adapter:a}=et(),o=(0,Vn.useQueryClient)(),{schema:r=null,name:n=null}=t??{};return(0,Vn.useMutation)({mutationKey:["schema",r,"table",n,"delete"],async mutationFn(s){let[l,u]=await a.delete({rows:s,table:t},{});if(l)throw l;return u},async onSuccess(){await o.invalidateQueries({exact:!1,queryKey:["schema",r,"table",n,"query"]})},retry:!1})}function yf(){let{activeTable:t}=et(),[a,o]=(0,Dr.useState)([]),[r,n]=(0,Dr.useState)({}),{mutate:s}=xf();(0,Dr.useEffect)(()=>{o([]),n({})},[t]);function l(){s(a,{onSuccess:()=>{o([]),n({})}})}return{selectedRows:a,setSelectedRows:o,deleteSelectedRows:l,rowSelection:r,setRowSelection:n}}w();var Kn=require("react");function bf(){let[t,a]=Mo("sort",{defaultValue:""}),o=l=>{if(!l)return[];try{return l.split(",").map(u=>{let[i,d]=u.split(":");return!i||!d||!["asc","desc"].includes(d)?null:{column:i,direction:d}}).filter(Boolean)}catch(u){return console.error("Failed to parse sorting parameter:",u),[]}},[r,n]=(0,Kn.useState)(()=>o(t));return(0,Kn.useEffect)(()=>{let l=o(t);n(l)},[t]),{sortingState:r,setSortingState:l=>{let u=typeof l=="function"?l(r):l;n(u);let i=u.length>0?u.map(d=>`${d.column}:${d.direction}`).join(","):null;a(i)}}}w();var Ff=require("remeda");w();var If=require("react");w();w();var da=Te(require("react"),1);var _t=require("react/jsx-runtime"),il=da.forwardRef(({className:t,...a},o)=>(0,_t.jsx)("div",{className:"ps-relative ps-w-full ps-overflow-auto ps-flex ps-items-start ps-h-full",children:(0,_t.jsx)("table",{ref:o,className:G("ps-w-full ps-caption-bottom ps-text-sm",t),...a})}));il.displayName="Table";var ul=da.forwardRef(({className:t,...a},o)=>(0,_t.jsx)("thead",{ref:o,className:G(t),...a}));ul.displayName="TableHeader";var dl=da.forwardRef(({className:t,...a},o)=>(0,_t.jsx)("tbody",{ref:o,className:G("[&_tr:last-child]:ps-border-0",t),...a}));dl.displayName="TableBody";var cl=da.forwardRef(({className:t,...a},o)=>(0,_t.jsx)("tfoot",{ref:o,className:G("ps-border-t ps-bg-muted/50 ps-font-medium [&>tr]:last:ps-border-b-0",t),...a}));cl.displayName="TableFooter";var ca=da.forwardRef(({className:t,...a},o)=>(0,_t.jsx)("tr",{ref:o,className:G("ps-border-b ps-transition-colors hover:ps-bg-muted/50 data-[state=selected]:ps-bg-muted",t),...a}));ca.displayName="TableRow";var fl=da.forwardRef(({className:t,...a},o)=>(0,_t.jsx)("th",{ref:o,className:G("ps-h-10 ps-px-2 ps-text-left ps-align-middle ps-font-medium ps-text-muted-foreground [&:has([role=checkbox])]:ps-pr-0 [&>[role=checkbox]]:ps-translate-y-[2px]",t),...a}));fl.displayName="TableHead";var fa=da.forwardRef(({className:t,...a},o)=>(0,_t.jsx)("td",{ref:o,className:G("ps-p-2 ps-align-middle [&:has([role=checkbox])]:ps-pr-0 [&>[role=checkbox]]:ps-translate-y-[2px]",t),...a}));fa.displayName="TableCell";var lb=da.forwardRef(({className:t,...a},o)=>(0,_t.jsx)("caption",{ref:o,className:G("ps-mt-4 ps-text-sm ps-text-muted-foreground",t),...a}));lb.displayName="TableCaption";w();var wf=require("react");w();var se=Te(require("@radix-ui/react-context-menu"),1);var pa=Te(require("react"),1);var Ue=require("react/jsx-runtime"),vf=se.Root,Cf=se.Trigger;var ib=pa.forwardRef(({className:t,inset:a,children:o,...r},n)=>(0,Ue.jsxs)(se.SubTrigger,{ref:n,className:G("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",a&&"ps-pl-8",t),...r,children:[o,(0,Ue.jsx)(ta,{className:"ps-ml-auto ps-h-4 ps-w-4"})]}));ib.displayName=se.SubTrigger.displayName;var ub=pa.forwardRef(({className:t,...a},o)=>(0,Ue.jsx)(se.SubContent,{ref:o,className:G("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]",t),...a}));ub.displayName=se.SubContent.displayName;var pl=pa.forwardRef(({className:t,...a},o)=>(0,Ue.jsx)(se.Portal,{children:(0,Ue.jsx)(se.Content,{ref:o,className:G("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]",t),...a})}));pl.displayName=se.Content.displayName;var ml=pa.forwardRef(({className:t,inset:a,...o},r)=>(0,Ue.jsx)(se.Item,{ref:r,className:G("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",a&&"ps-pl-8",t),...o}));ml.displayName=se.Item.displayName;var db=pa.forwardRef(({className:t,children:a,checked:o,...r},n)=>(0,Ue.jsxs)(se.CheckboxItem,{ref:n,className:G("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",t),checked:o,...r,children:[(0,Ue.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,Ue.jsx)(se.ItemIndicator,{children:(0,Ue.jsx)(ea,{className:"ps-h-4 ps-w-4"})})}),a]}));db.displayName=se.CheckboxItem.displayName;var cb=pa.forwardRef(({className:t,children:a,...o},r)=>(0,Ue.jsxs)(se.RadioItem,{ref:r,className:G("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",t),...o,children:[(0,Ue.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,Ue.jsx)(se.ItemIndicator,{children:(0,Ue.jsx)(Va,{className:"ps-h-4 ps-w-4 ps-fill-current"})})}),a]}));cb.displayName=se.RadioItem.displayName;var fb=pa.forwardRef(({className:t,inset:a,...o},r)=>(0,Ue.jsx)(se.Label,{ref:r,className:G("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold ps-text-foreground",a&&"ps-pl-8",t),...o}));fb.displayName=se.Label.displayName;var pb=pa.forwardRef(({className:t,...a},o)=>(0,Ue.jsx)(se.Separator,{ref:o,className:G("ps--mx-1 ps-my-1 ps-h-px ps-bg-border",t),...a}));pb.displayName=se.Separator.displayName;var mb=({className:t,...a})=>(0,Ue.jsx)("span",{className:G("ps-ml-auto ps-text-xs ps-tracking-widest ps-text-muted-foreground",t),...a});mb.displayName="ContextMenuShortcut";var oo=require("react/jsx-runtime");function Lf(t){let{children:a}=t;return(0,oo.jsxs)(vf,{children:[(0,oo.jsx)(Cf,{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:a}),(0,oo.jsx)(pl,{children:(0,oo.jsxs)(ml,{onClick:()=>{let o=gl(a);navigator.clipboard.writeText(o).catch(r=>{console.error("Failed to copy to clipboard:",r)})},className:"ps-flex ps-items-center ps-gap-2",children:[(0,oo.jsx)(Go,{size:12}),"Copy"]})})]})}function gl(t){if(typeof t=="string"||typeof t=="number"||typeof t=="boolean")return String(t);if(t==null)return"";if((0,wf.isValidElement)(t)){let a=t.props;return t.type&&typeof t.type=="function"&&t.type.name==="RevealText"?a.text||"":t.type&&typeof t.type=="function"&&t.type.name==="NullValue"?"NULL":a.children?gl(a.children):""}return Array.isArray(t)?t.map(gl).join(""):""}var hl=require("react/jsx-runtime");function lt(t){let{children:a,className:o,ref:r,style:n,...s}=t;return(0,hl.jsx)(fa,{...s,className:G("ps-p-0 ps-border-r ps-border-b ps-border-table-border ps-bg-table-head last:ps-border-r-0","ps-cursor-pointer",o),ref:r,style:n,children:(0,hl.jsx)(Lf,{children:a})})}var xl=require("react/jsx-runtime"),yl=(0,If.forwardRef)((t,a)=>{let{containerProps:o,value:r,...n}=t;return(0,xl.jsx)(lt,{...n,...o,ref:a,children:(0,xl.jsx)("div",{"data-cell-type":"boolean",children:String(!!r)})})});yl.displayName="BooleanCell";w();var Sf=require("react");var kf=require("react/jsx-runtime"),bl=(0,Sf.forwardRef)((t,a)=>{let{containerProps:o,value:r,...n}=t;return(0,kf.jsx)(lt,{...n,...o,ref:a,children:String(r)})});bl.displayName="DateCell";w();var Pf=require("react");var Mf=require("react/jsx-runtime"),vl=(0,Pf.forwardRef)((t,a)=>{let{containerProps:o,value:r,options:n,...s}=t;return(0,Mf.jsx)(lt,{...s,...o,ref:a,children:String(r)})});vl.displayName="EnumCell";w();var Af=require("react");var Rf=require("react/jsx-runtime"),Cl=(0,Af.forwardRef)((t,a)=>{let{containerProps:o,value:r,...n}=t;return(0,Rf.jsx)(lt,{...n,...o,ref:a,children:JSON.stringify(r,null,2)})});Cl.displayName="JSONCell";w();var Tf=require("react");var wl=require("react/jsx-runtime"),Ll=(0,Tf.forwardRef)((t,a)=>{let{containerProps:o,...r}=t;return(0,wl.jsx)(lt,{...r,...o,ref:a,children:(0,wl.jsx)("code",{className:"ps-text-gray-500",children:"NULL"})})});Ll.displayName="NullCell";w();var Df=require("react");var Ef=require("react/jsx-runtime"),Er=(0,Df.forwardRef)((t,a)=>{let{containerProps:o,value:r,...n}=t;return(0,Ef.jsx)(lt,{...n,...o,ref:a,children:String(r)})});Er.displayName="RawCell";var ma=require("react/jsx-runtime");function Of(t,a,o){let r=t.getValue();if(r===null)return(0,ma.jsx)(Ll,{});let{group:n,options:s}=a.datatype;if(n==="string")return(0,ma.jsx)(Er,{containerProps:o,value:r});if(n==="enum")return(0,ma.jsx)(vl,{containerProps:o,value:r,options:s});if(n==="boolean")return(0,ma.jsx)(yl,{containerProps:o,value:r});if(n==="datetime")return(0,ma.jsx)(bl,{containerProps:o,value:r});if(n==="time")return(0,ma.jsx)(Er,{containerProps:o,value:r});if(n==="raw")return(0,Ff.isObjectType)(r)?(0,ma.jsx)(Cl,{containerProps:o,value:r}):(0,ma.jsx)(Er,{containerProps:o,value:r});throw new Error(`Datatype group "${n}" was not handled in '/cell/get-cell.tsx'`)}w();var Bf=require("react");var Il=require("react/jsx-runtime"),Sl=(0,Bf.forwardRef)((t,a)=>{let{containerProps:o,row:r,...n}=t;return(0,Il.jsx)(lt,{...n,...o,ref:a,onClick:()=>{},children:(0,Il.jsx)(Jo,{checked:r.getIsSelected(),disabled:!r.getCanSelect(),onCheckedChange:r.getToggleSelectedHandler()})})});Sl.displayName="SelectRowCell";w();w();var ga=Te(require("@radix-ui/react-popover"),1),$e=Te(require("react"),1);var Ao=require("react/jsx-runtime"),$f=$e.createContext(null),kl=({children:t,...a})=>{let[o,r]=$e.useState(!1),n=$e.useRef(new Set),s=$e.useCallback(i=>{n.current.add(i)},[]),l=$e.useCallback(i=>{n.current.delete(i)},[]),u=$e.useCallback(i=>{!i&&o&&n.current.forEach(d=>{d()}),r(i)},[o]);return(0,Ao.jsx)($f.Provider,{value:{open:o,setOpen:r,registerOnBeforeClose:s,unregisterOnBeforeClose:l},children:(0,Ao.jsx)(ga.Root,{open:o,onOpenChange:u,...a,children:t})})};kl.displayName="PopoverCell";var Pl=$e.forwardRef(({children:t,onDoubleClick:a,className:o,...r},n)=>{let s=$e.useRef(null);return(0,Ao.jsx)(ga.Trigger,{ref:l=>{typeof n=="function"?n(l):n&&(n.current=l),s.current=l},className:G("w-full h-full cursor-pointer",o),...r,children:t})});Pl.displayName="PopoverCellTrigger";var Ml=$e.forwardRef(({className:t,align:a="center",sideOffset:o=4,...r},n)=>(0,Ao.jsx)(ga.Portal,{children:(0,Ao.jsx)(ga.Content,{ref:n,align:a,sideOffset:o,className:G("ps-flex ps-flex-col ps-gap-2 ps-z-50 ps-w-72 ps-rounded-md ps-border ps-bg-popover ps-text-popover-foreground ps-shadow-md ps-outline-hidden 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",t),...r})}));Ml.displayName=ga.Content.displayName;function Ro(t){let a=$e.useContext($f),o=$e.useCallback(()=>{t.onSave&&t.onSave(),a&&a.setOpen(!1)},[t.onSave,a]),r=$e.useCallback(()=>{t.onCancel&&t.onCancel(),a&&a.setOpen(!1)},[t.onCancel,a]);return $e.useEffect(()=>{if(!a?.registerOnBeforeClose||!t.onSave)return;let n=()=>!!t.onSave?.();return a.registerOnBeforeClose(n),()=>a.unregisterOnBeforeClose?.(n)},[t.onSave,a]),$e.useEffect(()=>{let n=s=>{s.key==="Enter"||s.key==="Return"?(o(),s.preventDefault()):s.key==="Escape"&&(r(),s.preventDefault())};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[o,r]),{handleSave:o,handleCancel:r}}var Fr=require("react/jsx-runtime");function qf(t){let{cellComponent:a,inputComponent:o}=t;return(0,Fr.jsxs)(kl,{children:[(0,Fr.jsx)(Pl,{asChild:!0,children:a}),(0,Fr.jsx)(Ml,{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",sideOffset:-40,children:o})]})}w();var qa=require("@dnd-kit/core"),Na=require("@dnd-kit/sortable"),ep=require("@dnd-kit/utilities"),Qn=require("@tanstack/react-table");w();var ha=Te(require("react"),1),V=Te(require("react"),1);function Ba(){return Ba=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var o=arguments[a];for(var r in o)({}).hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},Ba.apply(null,arguments)}var gb=t=>{try{let a=localStorage.getItem(t);return typeof a=="string"?JSON.parse(a):void 0}catch{return}};function hb(t,a){let[o,r]=V.default.useState();V.default.useEffect(()=>{let s=gb(t);r(typeof s>"u"||s===null?typeof a=="function"?a():a:s)},[a,t]);let n=V.default.useCallback(s=>{r(l=>{let u=s;typeof s=="function"&&(u=s(l));try{localStorage.setItem(t,JSON.stringify(u))}catch{}return u})},[t]);return[o,n]}var Vt={background:"#0b1521",backgroundAlt:"#132337",foreground:"white",gray:"#3f4e60",grayAlt:"#222e3e",inputBackgroundColor:"#fff",inputTextColor:"#000",success:"#00ab52",danger:"#ff0085",active:"#006bff",warning:"#ffb200"},Uf=V.default.createContext(Vt);function Hf(t){let{theme:a,...o}=t;return V.default.createElement(Uf.Provider,Ba({value:a},o))}function xb(){return V.default.useContext(Uf)}function yb(t){let[a,o]=V.default.useState(()=>{if(typeof window<"u")return window.matchMedia&&window.matchMedia(t).matches});return V.default.useEffect(()=>{if(typeof window<"u"){if(!window.matchMedia)return;let r=window.matchMedia(t),n=s=>{let{matches:l}=s;return o(l)};return r.addListener(n),()=>{r.removeListener(n)}}},[a,t,o]),a}var bb=typeof window>"u";function Dt(t,a,o){return o===void 0&&(o={}),V.default.forwardRef((r,n)=>{let{style:s,...l}=r,u=xb(),i=Object.entries(o).reduce((d,c)=>{let[f,p]=c;return yb(f)?{...d,...typeof p=="function"?p(l,u):p}:d},{});return V.default.createElement(t,{...l,style:{...typeof a=="function"?a(l,u):a,...s,...i},ref:n})})}function vb(){let t=V.default.useRef(!1),a=V.default.useCallback(()=>t.current,[]);return V.default[bb?"useEffect":"useLayoutEffect"](()=>(t.current=!0,()=>{t.current=!1}),[]),a}var Cb=Dt("div",(t,a)=>({fontSize:"clamp(12px, 1.5vw, 14px)",fontFamily:"sans-serif",display:"flex",backgroundColor:a.background,color:a.foreground}),{"(max-width: 700px)":{flexDirection:"column"},"(max-width: 600px)":{fontSize:".9em"}});Dt("div",()=>({flex:"1 1 500px",display:"flex",flexDirection:"column",overflow:"auto",height:"100%"}),{"(max-width: 700px)":(t,a)=>({borderTop:`2px solid ${a.gray}`})});var wb=Dt("button",(t,a)=>({appearance:"none",fontSize:".9em",fontWeight:"bold",background:a.gray,border:"0",borderRadius:".3em",color:"white",padding:".5em",opacity:t.disabled?".5":void 0,cursor:"pointer"}));Dt("code",{fontSize:".9em"});Dt("input",(t,a)=>({backgroundColor:a.inputBackgroundColor,border:0,borderRadius:".2em",color:a.inputTextColor,fontSize:".9em",lineHeight:"1.3",padding:".3em .4em"}));Dt("select",(t,a)=>({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:a.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:a.inputTextColor}),{"(max-width: 500px)":{display:"none"}});var Nf=Dt("div",{fontFamily:"Menlo, monospace",fontSize:"0.7rem",lineHeight:"1.7",outline:"none",wordBreak:"break-word"}),Gn=Dt("span",{cursor:"pointer",color:"white"}),Lb=Dt("span",(t,a)=>({color:a.danger})),Al=Dt("div",{marginLeft:".1rem",paddingLeft:"1rem",borderLeft:"2px solid rgba(0,0,0,.15)"}),Ib=Dt("span",{color:"grey",fontSize:".7rem"}),zf=t=>{let{expanded:a,style:o={},...r}=t;return V.default.createElement("span",{style:{display:"inline-block",transition:"all .1s ease",transform:`rotate(${a?90:0}deg) ${o.transform||""}`,...o}},"\u25B6")},Sb=t=>{let{handleEntry:a,label:o,value:r,subEntries:n,subEntryPages:s,type:l,expanded:u,toggle:i,pageSize:d,renderer:c}=t,[f,p]=V.default.useState(void 0),[m,g]=V.default.useState([]),h=()=>{p(r())};return V.default.createElement(Nf,{key:o},s!=null&&s.length?V.default.createElement(V.default.Fragment,null,V.default.createElement(Gn,{onClick:()=>i()},V.default.createElement(zf,{expanded:u})," ",o," ",V.default.createElement(Ib,null,String(l).toLowerCase()==="iterable"?"(Iterable) ":"",n.length," ",n.length>1?"items":"item")),u?s.length===1?V.default.createElement(Al,null,n.map(x=>a(x))):V.default.createElement(Al,null,s.map((x,y)=>V.default.createElement("div",{key:y},V.default.createElement(Nf,null,V.default.createElement(Gn,{onClick:()=>g(v=>v.includes(y)?v.filter(C=>C!==y):[...v,y])},V.default.createElement(zf,{expanded:u})," [",y*d," ..."," ",y*d+d-1,"]"),m.includes(y)?V.default.createElement(Al,null,x.map(v=>a(v))):null)))):null):l==="function"?V.default.createElement(V.default.Fragment,null,V.default.createElement(Kt,{renderer:c,label:V.default.createElement("button",{onClick:h},V.default.createElement(Gn,null,o)," \u{1F504}"," "),value:f,defaultExpanded:{}})):V.default.createElement(V.default.Fragment,null,V.default.createElement(Gn,null,o,":")," ",V.default.createElement(Lb,null,JSON.stringify(r,Object.getOwnPropertyNames(Object(r))))))};function Kt(t){let{value:a,defaultExpanded:o,renderer:r=Sb,pageSize:n=100,depth:s=0,...l}=t,[u,i]=V.default.useState(o),d=h=>{i(x=>typeof h<"u"?h:!x)},c=[],f=typeof a,p,m=[],g=h=>{let x=c.concat(h.label),y=o===!0?{[h.label]:!0}:o?.[h.label];return{...h,subPath:h,path:x,depth:s+1,defaultExpanded:y}};if(Array.isArray(a)?(f="array",p=a.map((h,x)=>g({label:x,value:h}))):a!==null&&typeof a=="object"&&typeof a[Symbol.iterator]=="function"?(f="Iterable",p=Array.from(a,(h,x)=>g({label:x,value:h}))):typeof a=="function"?f="function":typeof a=="object"&&a!==null&&(f="object",p=Object.entries(a).map(h=>{let[x,y]=h;return g({label:x,value:y})})),p){let h=0;for(;h<p.length;)m.push(p.slice(h,h+n)),h=h+n}return r({handleEntry:h=>V.default.createElement(Kt,Ba({key:h.label,renderer:r},l,h)),type:f,subEntries:p,subEntryPages:m,depth:s,value:a,path:c,expanded:u,toggle:d,pageSize:n,...l})}function _f(t){return ha.createElement("svg",Ba({width:"40px",height:"40px",viewBox:"0 0 190 190",version:"1.1"},t),ha.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ha.createElement("g",{id:"og-white",transform:"translate(-28.000000, -21.000000)"},ha.createElement("g",{id:"Group-2",transform:"translate(28.000000, 31.000000)"},ha.createElement("g",{id:"Group",transform:"translate(0.000000, 10.000000)"},ha.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) "}),ha.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"}),ha.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 Vf(t){let{initialIsOpen:a,table:o,panelProps:r={},toggleButtonProps:n={},containerElement:s="footer"}=t,l=V.default.useRef(null),u=V.default.useRef(null),[i,d]=hb("reactTableDevtoolsOpen",a),c=vb(),{style:f={},...p}=r,{style:m={},onClick:g,...h}=n;return c()?V.default.createElement(s,{ref:l,className:"ReactTableDevtools"},V.default.createElement(Hf,{theme:Vt},i?V.default.createElement(kb,Ba({ref:u},p,{table:o,isOpen:i,setIsOpen:d,style:{maxHeight:"80vh",width:"100%",...f}})):V.default.createElement("button",Ba({type:"button"},h,{"aria-label":"Open React Table Devtools",onClick:x=>{d(!0),g&&g(x)},style:{background:"none",border:0,padding:0,margin:".5rem",display:"inline-flex",fontSize:"1.5em",cursor:"pointer",width:"fit-content",...m}}),V.default.createElement(_f,{"aria-hidden":!0})))):null}var kb=V.default.forwardRef(function(a,o){let{table:r,isOpen:n=!0,setIsOpen:s,...l}=a;return V.default.createElement(Hf,{theme:Vt},V.default.createElement(Cb,Ba({ref:o,className:"ReactTableDevtoolsPanel"},l),V.default.createElement("style",{dangerouslySetInnerHTML:{__html:`
|
|
1201
1201
|
.ReactTableDevtoolsPanel * {
|
|
1202
|
-
scrollbar-color: ${
|
|
1202
|
+
scrollbar-color: ${Vt.backgroundAlt} ${Vt.gray};
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
.ReactTableDevtoolsPanel *::-webkit-scrollbar, .ReactTableDevtoolsPanel scrollbar {
|
|
@@ -1208,15 +1208,15 @@
|
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
.ReactTableDevtoolsPanel *::-webkit-scrollbar-track, .ReactTableDevtoolsPanel scrollbar-track {
|
|
1211
|
-
background: ${
|
|
1211
|
+
background: ${Vt.backgroundAlt};
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
1214
|
.ReactTableDevtoolsPanel *::-webkit-scrollbar-thumb, .ReactTableDevtoolsPanel scrollbar-thumb {
|
|
1215
|
-
background: ${
|
|
1215
|
+
background: ${Vt.gray};
|
|
1216
1216
|
border-radius: .5em;
|
|
1217
|
-
border: 3px solid ${
|
|
1217
|
+
border: 3px solid ${Vt.backgroundAlt};
|
|
1218
1218
|
}
|
|
1219
|
-
`}}),_.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${_t.grayAlt}`,display:"flex",flexDirection:"column"}},_.default.createElement("div",{style:{padding:".5em",background:_t.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},_.default.createElement(Hf,{"aria-hidden":!0,style:{marginRight:".5em"},onClick:()=>n(!1)}),_.default.createElement("div",{style:{marginRight:"auto",fontSize:"clamp(.8rem, 2vw, 1.3rem)",fontWeight:"bold"}},"React Table"," ",_.default.createElement("span",{style:{fontWeight:100}},"Devtools")),_.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},r?_.default.createElement(Cb,{type:"button","aria-label":"Close React Table Devtools",onClick:()=>{n(!1)}},"Close"):null)),_.default.createElement("div",{style:{display:"flex",flexWrap:"wrap",overflowY:"auto",flex:"1"}},_.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},_.default.createElement(Vt,{label:"Instance",value:o,defaultExpanded:!1}),_.default.createElement("div",{style:{height:".5rem"}}),_.default.createElement(Vt,{label:"State",value:o.getState(),defaultExpanded:!1}),_.default.createElement("div",{style:{height:".5rem"}}),_.default.createElement(Vt,{label:"Columns",value:o.getAllColumns(),defaultExpanded:!1})),_.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},_.default.createElement(Vt,{label:"Core Model",value:o.getCoreRowModel(),defaultExpanded:!1}),_.default.createElement(Vt,{label:"Filtered Model",value:o.getFilteredRowModel(),defaultExpanded:!1}),_.default.createElement(Vt,{label:"Sorted Model",value:o.getSortedRowModel(),defaultExpanded:!1}),_.default.createElement(Vt,{label:"Grouped Model",value:o.getGroupedRowModel(),defaultExpanded:!1}),_.default.createElement(Vt,{label:"Expanded Model",value:o.getExpandedRowModel(),defaultExpanded:!1}))))))});var xa=require("react");C();C();var Gf=require("@tanstack/react-table");C();var se=Re(require("@radix-ui/react-dropdown-menu"),1);var ha=Re(require("react"),1);var Ue=require("react/jsx-runtime"),Vf=se.Root,Kf=se.Trigger;var kb=ha.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ue.jsxs)(se.SubTrigger,{ref:r,className:K("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,Ue.jsx)(ea,{className:"ps-ml-auto"})]}));kb.displayName=se.SubTrigger.displayName;var Pb=ha.forwardRef(({className:e,...t},a)=>(0,Ue.jsx)(se.SubContent,{ref:a,className:K("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}));Pb.displayName=se.SubContent.displayName;var Al=ha.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ue.jsx)(se.Portal,{children:(0,Ue.jsx)(se.Content,{ref:o,sideOffset:t,className:K("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})}));Al.displayName=se.Content.displayName;var Gn=ha.forwardRef(({className:e,inset:t,...a},o)=>(0,Ue.jsx)(se.Item,{ref:o,className:K("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}));Gn.displayName=se.Item.displayName;var Mb=ha.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ue.jsxs)(se.CheckboxItem,{ref:r,className:K("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,Ue.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,Ue.jsx)(se.ItemIndicator,{children:(0,Ue.jsx)(Jt,{className:"ps-h-4 ps-w-4"})})}),t]}));Mb.displayName=se.CheckboxItem.displayName;var Ab=ha.forwardRef(({className:e,children:t,...a},o)=>(0,Ue.jsxs)(se.RadioItem,{ref:o,className:K("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,Ue.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,Ue.jsx)(se.ItemIndicator,{children:(0,Ue.jsx)(_a,{className:"ps-h-2 ps-w-2 ps-fill-current"})})}),t]}));Ab.displayName=se.RadioItem.displayName;var Rb=ha.forwardRef(({className:e,inset:t,...a},o)=>(0,Ue.jsx)(se.Label,{ref:o,className:K("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",t&&"ps-pl-8",e),...a}));Rb.displayName=se.Label.displayName;var Tb=ha.forwardRef(({className:e,...t},a)=>(0,Ue.jsx)(se.Separator,{ref:a,className:K("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));Tb.displayName=se.Separator.displayName;var Db=({className:e,...t})=>(0,Ue.jsx)("span",{className:K("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...t});Db.displayName="DropdownMenuShortcut";var ue=require("react/jsx-runtime");function Wf(e){let{header:t}=e;return(0,ue.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-h-full ps-flex-0",children:[(0,ue.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full",children:[(0,ue.jsxs)("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,ue.jsx)("span",{className:"ps-flex ps-min-w-0",children:(0,ue.jsx)("span",{className:"ps-min-w-0 ps-overflow-hidden ps-text-ellipsis ps-text-foreground/90",children:(0,Gf.flexRender)(t.column.columnDef.header,t.getContext())})}),(0,ue.jsx)("span",{className:"ps-overflow-hidden ps-text-ellipsis ps-text-muted-foreground/70 ps-lowercase",children:t.column.columnDef.meta?.datatype?.name})]}),(0,ue.jsx)("span",{className:"ps-relative ps-gap-1",children:t.column.getCanPin()&&t.column.id!=="select"&&(0,ue.jsxs)(Vf,{children:[(0,ue.jsx)(Kf,{asChild:!0,children:(0,ue.jsx)(at,{variant:"ghost",size:"sm",className:"ps-px-0 ps-h-6 ps-w-6",children:(0,ue.jsx)(Uo,{size:12})})}),(0,ue.jsxs)(Al,{children:[t.column.getCanSort()&&(0,ue.jsx)(Gn,{onClick:()=>t.column.toggleSorting(),children:(0,ue.jsx)("span",{className:"ps-flex ps-items-center ps-gap-2",children:t.column.getNextSortingOrder()==="desc"?(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(ka,{size:16}),"Sort descending"]}):t.column.getNextSortingOrder()==="asc"?(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(zo,{size:16}),"Sort ascending"]}):(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Xo,{size:16}),"Cancel sorting"]})})}),(0,ue.jsx)(Gn,{onClick:()=>t.column.pin(t.column.getIsPinned()?!1:"left"),children:t.column.getIsPinned()?(0,ue.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ue.jsx)(Qo,{size:16}),"Unpin column"]}):(0,ue.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,ue.jsx)(jo,{size:16}),"Pin column"]})})]})]})})]}),t.column.getCanResize()&&(0,ue.jsx)("button",{type:"button",tabIndex:0,onMouseDown:a=>{a.stopPropagation(),t.getResizeHandler()(a)},onTouchStart:a=>{a.stopPropagation(),t.getResizeHandler()(a)},onClick:a=>a.stopPropagation(),onKeyDown:a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),a.stopPropagation(),t.getResizeHandler()(a))},className:K("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"})]})}C();var Rl=require("react/jsx-runtime");function Qf({className:e}){return(0,Rl.jsx)("div",{"data-loading-bar":!0,className:K("ps-h-[2px] ps-w-full ps-overflow-hidden ps-bg-gray-200 ps-z-50",e),children:(0,Rl.jsx)("div",{className:"ps-animate-indeterminate-bar ps-h-full ps-w-1/3 ps-rounded-r-full ps-bg-purple-600"})})}C();C();var jf=Re(require("react"),1);var Xf=require("react/jsx-runtime"),Er=jf.forwardRef(({className:e,type:t,...a},o)=>(0,Xf.jsx)("input",{type:t,className:K("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}));Er.displayName="Input";var Te=require("react/jsx-runtime");function Zf(e){let{table:t,variant:a="basic"}=e,{pageIndex:o}=t.getState().pagination,r=t.getPageCount(),n=t.getAllColumns().length;return(0,Te.jsx)(dl,{className:"ps-sticky ps-bottom-0 ps-border-t-0 w-full ps-z-20 ps-p-0",children:(0,Te.jsx)(da,{className:"ps-p-0 ps-bg-transparent hover:ps-bg-transparent",children:(0,Te.jsx)(ca,{colSpan:n,className:"ps-p-0",children:(0,Te.jsx)("div",{className:"ps-rounded-b-lg ps-overflow-clip",children:(0,Te.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,Te.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Te.jsx)(at,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:"Previous"}),(0,Te.jsx)(at,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:"Next"})]}):(0,Te.jsx)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:(0,Te.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,Te.jsx)(at,{variant:"outline",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:(0,Te.jsx)(_o,{className:"ps-w-4 ps-h-4"})}),(0,Te.jsx)(at,{variant:"outline",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:(0,Te.jsx)(Ho,{className:"ps-w-4 ps-h-4"})}),(0,Te.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-1 ps-text-xs ps-font-medium",children:["Page",(0,Te.jsx)(Er,{type:"number",min:1,max:r,value:o+1,className:"ps-w-16",onChange:s=>{let i=s.target.value?Number(s.target.value)-1:0;t.setPageIndex(i)}}),(0,Te.jsxs)("span",{className:"ps-shrink-0 ps-w-max",children:["of ",r]})]}),(0,Te.jsx)(at,{variant:"outline",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:(0,Te.jsx)(ea,{className:"ps-w-4 ps-h-4"})}),(0,Te.jsx)(at,{variant:"outline",onClick:()=>t.setPageIndex(r-1),disabled:!t.getCanNextPage(),children:(0,Te.jsx)(Vo,{className:"ps-w-4 ps-h-4"})})]})})})})})})})}C();function Fr(e){let t=e.getIsPinned(),a=t==="right"&&e.getIsFirstColumn("right");return{className:K("ps-group ps-border-r ps-border-b ps-border-table-border last:ps-border-r-0","ps-overflow-hidden ps-whitespace-nowrap ps-text-ellipsis",t&&["ps-sticky ps-bg-background ps-z-20",t==="left"?"ps-left-0":"ps-right-0"],!t&&"ps-relative ps-z-10",t&&a&&"ps-shadow-[-1px_0_0_0_hsl(var(--border))]"),style:{width:e.getSize(),left:t==="left"?`${e.getStart("left")}px`:void 0,right:t==="right"?`${e.getAfter("right")}px`:void 0}}}var Ae=require("react/jsx-runtime"),Eb=e=>{let{children:t,className:a,header:o,style:r}=e,{attributes:n,listeners:s,transform:i,transition:l,setNodeRef:u,isDragging:d}=(0,qa.useSortable)({id:o.id});return(0,Ae.jsx)(cl,{ref:u,...n,...s,style:{cursor:"grab",touchAction:"none",transform:Jf.CSS.Transform.toString(i),transition:l,...r,"--dragging-width":`${o.getSize()}px`},className:K(a,d&&"ps-z-50 ps-w-[var(--dragging-width)]","ps-select-none ps-touch-none ps-sticky ps-top-0 ps-z-20 ps-bg-table-head",o.column.getIsPinned()&&"ps-sticky ps-z-30"),children:(0,Ae.jsx)("div",{className:K("ps-w-full",d&&"ps-w-[var(--dragging-width)]"),children:t})})};function ep(e){let{columnDefs:t,getBeforeRows:a,introspectedTable:o,isLoading:r,isProcessing:n,onPaginationChange:s,onSortingChange:i,pageCount:l,paginationState:u,rows:d,setSelectedRows:c,sortingState:f}=e,[p,m]=(0,xa.useState)([]),[g,h]=(0,xa.useState)({left:["__ps_select"],right:[]}),[x,b]=(0,xa.useState)({}),[v,w]=(0,xa.useState)({}),I=(0,xa.useMemo)(()=>Yf(f),[f]),E=r||n;(0,xa.useEffect)(()=>m(t.map(({accessorKey:F})=>F)),[]);function T({active:F,over:P}){P&&F.id!==P.id&&m(Y=>{let ae=Y.indexOf(F.id),he=Y.indexOf(P.id);return(0,qa.arrayMove)(Y,ae,he)})}let $=(0,$a.useSensor)($a.MouseSensor,{activationConstraint:{distance:10}}),L=(0,$a.useSensors)($),S=(0,Wn.useReactTable)({columnResizeMode:"onChange",columns:t,data:d,defaultColumn:{size:200,minSize:50,maxSize:500},enableColumnPinning:!0,enableColumnResizing:!0,enableRowSelection:!0,enableSorting:!!(i&&f),getCoreRowModel:(0,Wn.getCoreRowModel)(),getRowId(F){let P={table:`${o.schema}.${o.name}`,filter:to(F,o.columns)};return JSON.stringify(P)},manualPagination:!0,manualSorting:!0,onColumnOrderChange:m,onColumnPinningChange:h,onColumnSizingChange:b,onPaginationChange:s,onRowSelectionChange(F){return w(P=>{let Y=typeof F=="function"?F(P):F;return c(Object.keys(Y).map(ae=>S.getRow(ae).original)),Y})},onSortingChange:F=>i?.(P=>(typeof F=="function"&&(F=F(Yf(P))),Fb(F))),pageCount:l,state:{columnOrder:p,columnPinning:g,columnSizing:x,pagination:u,rowSelection:v,sorting:I}});return(0,Ae.jsxs)(Ae.Fragment,{children:[process.env.NODE_ENV==="production"?null:(0,Ae.jsx)(_f,{table:S}),(0,Ae.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",children:[(0,Ae.jsx)("div",{children:E&&(0,Ae.jsx)(Qf,{className:"ps-absolute -ps-top-[1px] ps-left-0 ps-right-0"})}),(0,Ae.jsx)($a.DndContext,{sensors:L,onDragEnd:T,children:(0,Ae.jsxs)(ll,{className:"ps-min-w-full ps-table-fixed ps-border-separate ps-border-spacing-0 ps-box-border",children:[(0,Ae.jsx)(il,{children:S.getHeaderGroups().map(F=>(0,Ae.jsx)(da,{children:(0,Ae.jsx)(qa.SortableContext,{items:F.headers.map(P=>P.id),strategy:qa.horizontalListSortingStrategy,children:F.headers.map(P=>(0,Ae.jsx)(Eb,{header:P,table:S,...Fr(P.column),children:(0,Ae.jsx)(Wf,{header:P})},P.id))})},F.id))}),(0,Ae.jsxs)(ul,{children:[a?.(S),S.getRowModel().rows?.length?S.getRowModel().rows.map(F=>(0,Ae.jsx)(da,{className:K("ps-bg-table-row ps-odd:bg-table-row-odd ps-group [&:last-of-type_td]:ps-border-b-0"),children:F.getVisibleCells().map((P,Y)=>{if(typeof P.column.columnDef.cell=="function"){let ae=P.column.columnDef.cell(P.getContext());return(0,Ae.jsx)(ae,{...Fr(P.column)},Y)}return null})},F.id)):(0,Ae.jsx)(da,{children:(0,Ae.jsx)(ca,{colSpan:t.length,className:"ps-h-24 ps-text-center",children:r?"Loading...":"No results."})})]}),!l||l<2?null:(0,Ae.jsx)(Zf,{table:S,variant:"numeric"})]})})]})]})}function Yf(e){return e?.map(t=>({id:t.column,desc:t.direction==="desc"}))||[]}function Fb(e){return e.map(t=>({column:t.id,direction:t.desc?"desc":"asc"}))}C();C();var Dt=Re(require("@radix-ui/react-tooltip"),1),tp=Re(require("react"),1);var Tl=require("react/jsx-runtime"),ap=Dt.Provider,op=Dt.Root,rp=Dt.Trigger,Dl=tp.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Tl.jsx)(Dt.Portal,{children:(0,Tl.jsx)(Dt.Content,{ref:o,sideOffset:t,className:K("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})}));Dl.displayName=Dt.Content.displayName;var Lt=require("react/jsx-runtime");function np({column:e}){return e.isInPrimaryKey?(0,Lt.jsxs)("span",{className:"ps-flex ps-flex-row ps-font-medium ps-items-center ps-gap-1",children:[(0,Lt.jsx)(ap,{delayDuration:300,children:(0,Lt.jsxs)(op,{children:[(0,Lt.jsx)(rp,{asChild:!0,children:(0,Lt.jsx)(Wo,{size:12})}),(0,Lt.jsx)(Dl,{children:(0,Lt.jsx)("p",{children:"Primary Key"})})]})}),e.name]}):(0,Lt.jsxs)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",children:[(0,Lt.jsx)("span",{className:"ps-font-medium ps-truncate",children:e.name}),(0,Lt.jsx)("span",{className:"ps-overflow-hidden ps-text-ellipsis ps-text-muted-foreground/70 ps-lowercase ps-truncate",children:e.datatype.name})]})}C();var yp=require("remeda");C();var Bl=require("motion/react"),$r=Re(require("react"),1);C();var El=Re(require("@radix-ui/react-label"),1),sp=require("class-variance-authority"),lp=Re(require("react"),1);var ip=require("react/jsx-runtime"),Ob=(0,sp.cva)("ps-text-sm ps-font-medium ps-leading-none peer-disabled:ps-cursor-not-allowed peer-disabled:ps-opacity-70"),Fl=lp.forwardRef(({className:e,...t},a)=>(0,ip.jsx)(El.Root,{ref:a,className:K(Ob(),e),...t}));Fl.displayName=El.Root.displayName;C();var Or=Re(require("@radix-ui/react-switch"),1),up=Re(require("react"),1);var Ol=require("react/jsx-runtime"),Br=up.forwardRef(({className:e,...t},a)=>(0,Ol.jsx)(Or.Root,{className:K("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,Ol.jsx)(Or.Thumb,{className:K("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")})}));Br.displayName=Or.Root.displayName;C();var pt=require("react/jsx-runtime"),Ro=({onSave:e,onCancel:t,onClose:a,onNullChange:o,isNull:r=!1})=>(0,pt.jsxs)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-border-t ps-border-table-border ps-text-xs",children:[(0,pt.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-mr-auto",children:[(0,pt.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{e&&e(),a&&a()},children:[(0,pt.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,pt.jsx)(Go,{size:12,strokeWidth:2})})," ","Save changes"]}),(0,pt.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{t&&t(),a&&a()},children:[(0,pt.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,pt.jsx)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2",children:(0,pt.jsxs)("label",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",htmlFor:"set-nullable",children:[(0,pt.jsx)(Br,{id:"set-nullable",checked:r,onCheckedChange:l=>{o&&o(l)}}),(0,pt.jsx)("span",{children:"Set to NULL"})]})})]});var Et=require("react/jsx-runtime");function dp(e){let{value:t,onSubmit:a,column:o}=e,r=o.nullable===!0,[n,s]=(0,$r.useState)(t===null?!1:t),[i,l]=(0,$r.useState)(t===null),u=t===null?!1:t,d=h=>{s(h)},c=h=>{l(h)},f=$r.default.useCallback(()=>{let h=i?null:n;return h!==t?(a(h),!0):!1},[n,t,a,i]),p=()=>{s(u),l(t===null)},{handleSave:m,handleCancel:g}=Ao({onSave:f,onCancel:p});return(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.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,Et.jsx)(Fl,{htmlFor:"boolean-input",className:"ps-sr-only",children:"Boolean"}),(0,Et.jsx)(Bl.motion.div,{className:"ps-flex ps-items-center",initial:{opacity:0},animate:{opacity:1},transition:{duration:.24},children:(0,Et.jsx)(Br,{id:"boolean-input",checked:n,onCheckedChange:d,disabled:i})}),(0,Et.jsx)(Bl.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:i?"NULL":String(n)})]}),(0,Et.jsx)(Ro,{onSave:m,onCancel:g,onNullChange:r?c:void 0,isNull:i})]})}C();var Qn=require("react");C();var cp=require("class-variance-authority");var Bb=require("react/jsx-runtime"),fp=(0,cp.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 ya=require("react/jsx-runtime");function pp(e){let{onSubmit:t,value:a,options:o=[]}=e,r=String(a),[n,s]=(0,Qn.useState)(r),i=f=>{s(f)},l=(0,Qn.useCallback)(()=>n!==r?(t(n),!0):!1,[n,r,t]),u=()=>{s(r)},{handleSave:d,handleCancel:c}=Ao({onSave:l,onCancel:u});return(0,ya.jsxs)(ya.Fragment,{children:[(0,ya.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:n}),(0,ya.jsx)("div",{className:"ps-flex ps-flex-row ps-gap-2 ps-p-2",children:o.map(f=>(0,ya.jsx)("button",{onClick:()=>i(f),className:fp({variant:f===n?"default":"outline"}),children:f},f))}),(0,ya.jsx)(Ro,{onSave:d,onCancel:c})]})}C();var hp=Re(require("react"),1);C();var mp=require("react");function gp(e){let{initialValue:t}=e,[a,o]=(0,mp.useState)(t??"");return{handleOnChange:n=>{o(n.target.value)},value:a}}var ba=require("react/jsx-runtime");function xp(e){let{onSubmit:t,value:a}=e,o=String(a),{handleOnChange:r,value:n}=gp({initialValue:o});function s(c){c.preventDefault(),n!==o&&t(n)}let i=hp.default.useCallback(()=>n!==o?(t(n),!0):!1,[n,o,t]),l=()=>{},{handleSave:u,handleCancel:d}=Ao({onSave:i,onCancel:l});return(0,ba.jsxs)(ba.Fragment,{children:[(0,ba.jsxs)("form",{onSubmit:s,children:[(0,ba.jsx)(Er,{className:"ps-cell-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:r,type:"text",value:n}),(0,ba.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,ba.jsx)(Ro,{onSave:u,onCancel:d})]})}var jn=require("react/jsx-runtime");function bp(e,t,a){let{group:o,options:r}=t.datatype,n=e.getValue();return o==="boolean"?(0,jn.jsx)(dp,{onSubmit:a,value:n,column:t}):o==="enum"?(0,jn.jsx)(pp,{onSubmit:a,value:n,options:r}):(0,jn.jsx)(xp,{onSubmit:a,value:(0,yp.isObjectType)(n)?JSON.stringify(n):n})}C();var vp=require("@tanstack/react-table"),Cp=require("remeda");var oo=require("react/jsx-runtime");function wp(e){let{table:t,stagedRows:a,setStagedRows:o}=e,r=zn();function n(i,l){o(u=>{let d=[...u];return d[i]={...d[i],...l},d})}let s=(0,vp.useReactTable)({...t.options,enableSorting:!1,onPaginationChange:void 0,onSortingChange:void 0,data:a,state:(0,Cp.omit)(t.options.state,["pagination","sorting"])});return(0,oo.jsx)(oo.Fragment,{children:s.getRowModel().rows.map((i,l)=>(0,oo.jsx)(da,{children:i.getVisibleCells().map(u=>(0,oo.jsx)(ca,{className:K(Fr(u.column).className,"ps-p-0 ps-border-r ps-border-b ps-border-table-border ps-bg-table-head last:ps-border-r-0","data-[focus=true]:ps-ring-2 data-[focus=true]:ps-ring-indigo-400 data-[focus=true]:ps-ring-inset"),children:(0,oo.jsx)("input",{className:K("appearance-none ps-w-full ps-rounded-none ps-p-[var(--studio-cell-spacing)] ps-resize-none ps-bg-transparent ps-border-none ps-outline-none focus:ps-ring-2 focus:ps-ring-indigo-400 focus:ps-ring-inset",r&&"ps-opacity-50"),onChange:d=>{n(l,{[u.column.id]:d.target.value})},readOnly:r>0})},u.id))},l))})}var Fe=require("react/jsx-runtime");function Sp(e){let t=!!(0,Lp.useIsMutating)(),{activeTable:a,onError:o}=Je(),{sortingState:r,setSortingState:n}=yf(),{paginationState:s,setPaginationState:i}=gf(),[l,u]=(0,Xn.useState)([]),{selectedRows:d,setSelectedRows:c,deleteSelectedRows:f}=xf(),{data:p,isFetching:m}=cf({...s,sortOrder:r}),g=zn(),h=uf(),x=ff();if((0,Xn.useEffect)(()=>u([]),[a]),!a)return null;function b(){h.mutate(l,{onError:o,onSuccess(){Ip.toast.success("Rows inserted successfully"),u([])}})}function v(){u(L=>[...L,{}])}function w(){u([])}function I(L,S,F){x.mutate({details:{changes:{[S.name]:L},row:F,table:a},options:{}})}let E=Object.values(a?.columns??{}).map(L=>({id:L.name,accessorKey:L.name,header(){return np({column:L})},cell({cell:S}){return({props:F})=>(0,Fe.jsx)($f,{cellComponent:Ff(S,L,F),inputComponent:bp(S,L,P=>I(P,L,S.row.original))})}})),T=[{id:"__ps_select",accessorKey:"__ps_select",enablePinning:!1,size:20,header({table:L}){return(0,Fe.jsx)(Yo,{checked:L.getIsAllRowsSelected(),onCheckedChange:S=>L.toggleAllRowsSelected(!!S)})},cell({row:L}){return()=>(0,Fe.jsx)(Il,{row:L})}}],$=[...E,...T].sort(qb);return(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.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,Fe.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-gap-2",children:(0,Fe.jsx)("div",{className:"ps-flex ps-flex-grow ps-justify-between ps-items-center",children:(0,Fe.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,Fe.jsx)(at,{variant:"outline",size:"sm",onClick:v,disabled:g>0,children:"Insert row"}),l.length>0&&(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)(at,{variant:"secondary",size:"sm",onClick:b,children:"Save"}),(0,Fe.jsx)(at,{variant:"ghost",size:"sm",onClick:w,children:"Cancel"})]}),d.length>0&&(0,Fe.jsx)(Fe.Fragment,{children:(0,Fe.jsx)(at,{variant:"secondary",size:"sm",onClick:f,children:"Delete"})})]})})})}),(0,Fe.jsx)(ep,{columnDefs:$,getBeforeRows:L=>(0,Fe.jsx)(wp,{table:L,stagedRows:l,setStagedRows:u}),introspectedTable:a,isLoading:m,isProcessing:t,onPaginationChange:i,onSortingChange:n,pageCount:$b(p?.filteredRowCount??1/0,s.pageSize),paginationState:s,rows:p?.rows??[],setSelectedRows:c,sortingState:r})]})}function $b(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 qb(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)}C();var Rp=require("@radix-ui/react-slot");C();var Zn=require("react");C();var Pp=require("@tanstack/react-query");var kp=-1;function Mp(){let{adapter:e}=Je();return(0,Pp.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}},timezone:"UTC"},initialDataUpdatedAt:kp,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===kp?0:1/0})}function Ap(){let{activeTable:e,setActiveTable:t,adapter:a}=Je(),{data:o,isLoading:r}=Mp(),n=Object.values(o.schemas[a.defaultSchema||"db"]?.tables||{}),[s]=n,[i,l]=Rr({table:{defaultValue:null,parse:f=>f,serialize:f=>f??""},schema:{defaultValue:"",parse:f=>f,serialize:f=>f??""}}),[,u]=Po("pageIndex",{parse:f=>f,serialize:f=>f??""}),[,d]=Po("sort",{parse:f=>f,serialize:f=>f??""});(0,Zn.useEffect)(()=>{if(!r){if(i?.table&&n.length>0){let f=n.find(p=>p.name===i.table);if(f){t(f);return}}n.length>0&&!e&&(t(s||null),s&&l({table:s.name,schema:s.schema}))}},[r,i,n,s,e,t,l]);let c=(0,Zn.useCallback)(f=>{e!==f&&(t(f),l({table:f.name,schema:f.schema}),u(null),d(null))},[e,t,l,u,d]);return{tables:n,activeTable:e,isLoading:r,handleTableChange:c}}var mt=require("react/jsx-runtime");function Na(){let{tables:e,activeTable:t,isLoading:a,handleTableChange:o}=Ap();return(0,mt.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0",children:(0,mt.jsx)(Na.Block,{label:"Tables",children:e.length>0?e.map(r=>(0,mt.jsx)(Na.Item,{isActive:t===r,onClick:()=>{o(r)},className:"ps-capitalize 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?(0,mt.jsx)(Na.Item,{children:"Loading..."}):(0,mt.jsx)(Na.Item,{children:"No tables found"})})})}var Nb=({className:e,label:t,children:a,...o})=>(0,mt.jsxs)("div",{className:K("ps-rounded-lg ps-border ps-bg-card ps-text-card-foreground ps-shadow-xs",e),...o,children:[(0,mt.jsx)("div",{className:"ps-pt-4 ps-pb-2 ps-px-4",children:(0,mt.jsx)("h2",{className:"ps-text-sm ps-font-medium",children:t})}),(0,mt.jsx)("nav",{"aria-label":t,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:a})]}),zb=({className:e,asChild:t=!1,isActive:a,size:o,...r})=>(0,mt.jsx)(t?Rp.Slot:"button",{"data-sidebar":"menu-button","data-size":o,"data-active":a,className:K("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),...r,children:(0,mt.jsx)("span",{className:"ps-truncate",children:r.children})});Na.Block=Nb;Na.Item=zb;var va=require("react/jsx-runtime");function Tp(e){let{adapter:t,onError:a}=e;return t?(0,va.jsx)(lf,{adapter:t,onError:a,children:(0,va.jsx)("div",{className:"ps-flex ps-flex-col ps-w-full",children:(0,va.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-bg-background ps-relative ps-max-h-full",children:[(0,va.jsx)(Na,{}),(0,va.jsx)("div",{className:"ps-flex ps-w-full ps-flex-col ps-border ps-rounded-lg ps-self-start ps-max-h-full ps-overflow-clip",children:(0,va.jsx)(Sp,{})})]})})}):(console.error("No adapter provided to Studio component"),(0,va.jsx)("div",{children:"Error: No adapter provided"}))}0&&(module.exports={Studio});
|
|
1219
|
+
`}}),V.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${Vt.grayAlt}`,display:"flex",flexDirection:"column"}},V.default.createElement("div",{style:{padding:".5em",background:Vt.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},V.default.createElement(_f,{"aria-hidden":!0,style:{marginRight:".5em"},onClick:()=>s(!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"}},n?V.default.createElement(wb,{type:"button","aria-label":"Close React Table Devtools",onClick:()=>{s(!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(Kt,{label:"Instance",value:r,defaultExpanded:!1}),V.default.createElement("div",{style:{height:".5rem"}}),V.default.createElement(Kt,{label:"State",value:r.getState(),defaultExpanded:!1}),V.default.createElement("div",{style:{height:".5rem"}}),V.default.createElement(Kt,{label:"Columns",value:r.getAllColumns(),defaultExpanded:!1})),V.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},V.default.createElement(Kt,{label:"Core Model",value:r.getCoreRowModel(),defaultExpanded:!1}),V.default.createElement(Kt,{label:"Filtered Model",value:r.getFilteredRowModel(),defaultExpanded:!1}),V.default.createElement(Kt,{label:"Sorted Model",value:r.getSortedRowModel(),defaultExpanded:!1}),V.default.createElement(Kt,{label:"Grouped Model",value:r.getGroupedRowModel(),defaultExpanded:!1}),V.default.createElement(Kt,{label:"Expanded Model",value:r.getExpandedRowModel(),defaultExpanded:!1}))))))});var $a=require("react");w();w();var Wf=require("@tanstack/react-table");w();var le=Te(require("@radix-ui/react-dropdown-menu"),1);var xa=Te(require("react"),1);var He=require("react/jsx-runtime"),Kf=le.Root,Gf=le.Trigger;var Pb=xa.forwardRef(({className:t,inset:a,children:o,...r},n)=>(0,He.jsxs)(le.SubTrigger,{ref:n,className:G("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",a&&"ps-pl-8",t),...r,children:[o,(0,He.jsx)(ta,{className:"ps-ml-auto"})]}));Pb.displayName=le.SubTrigger.displayName;var Mb=xa.forwardRef(({className:t,...a},o)=>(0,He.jsx)(le.SubContent,{ref:o,className:G("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]",t),...a}));Mb.displayName=le.SubContent.displayName;var Rl=xa.forwardRef(({className:t,sideOffset:a=4,...o},r)=>(0,He.jsx)(le.Portal,{children:(0,He.jsx)(le.Content,{ref:r,sideOffset:a,className:G("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]",t),...o})}));Rl.displayName=le.Content.displayName;var Wn=xa.forwardRef(({className:t,inset:a,...o},r)=>(0,He.jsx)(le.Item,{ref:r,className:G("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",a&&"ps-pl-8",t),...o}));Wn.displayName=le.Item.displayName;var Ab=xa.forwardRef(({className:t,children:a,checked:o,...r},n)=>(0,He.jsxs)(le.CheckboxItem,{ref:n,className:G("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",t),checked:o,...r,children:[(0,He.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,He.jsx)(le.ItemIndicator,{children:(0,He.jsx)(ea,{className:"ps-h-4 ps-w-4"})})}),a]}));Ab.displayName=le.CheckboxItem.displayName;var Rb=xa.forwardRef(({className:t,children:a,...o},r)=>(0,He.jsxs)(le.RadioItem,{ref:r,className:G("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",t),...o,children:[(0,He.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,He.jsx)(le.ItemIndicator,{children:(0,He.jsx)(Va,{className:"ps-h-2 ps-w-2 ps-fill-current"})})}),a]}));Rb.displayName=le.RadioItem.displayName;var Tb=xa.forwardRef(({className:t,inset:a,...o},r)=>(0,He.jsx)(le.Label,{ref:r,className:G("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",a&&"ps-pl-8",t),...o}));Tb.displayName=le.Label.displayName;var Db=xa.forwardRef(({className:t,...a},o)=>(0,He.jsx)(le.Separator,{ref:o,className:G("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",t),...a}));Db.displayName=le.Separator.displayName;var Eb=({className:t,...a})=>(0,He.jsx)("span",{className:G("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",t),...a});Eb.displayName="DropdownMenuShortcut";var de=require("react/jsx-runtime");function Qf(t){let{header:a}=t;return(0,de.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-h-full ps-flex-0",children:[(0,de.jsxs)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full",children:[(0,de.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2 ps-overflow-hidden ps-text-ellipsis ps-font-mono ps-text-xs",children:[a.isPlaceholder?null:(0,de.jsx)("span",{className:"ps-flex ps-min-w-0",children:(0,de.jsx)("span",{className:"ps-min-w-0 ps-overflow-hidden ps-text-ellipsis ps-text-foreground/90",children:(0,Wf.flexRender)(a.column.columnDef.header,a.getContext())})}),(0,de.jsx)("span",{className:"ps-overflow-hidden ps-text-ellipsis ps-text-muted-foreground/70 ps-lowercase",children:a.column.columnDef.meta?.datatype?.name})]}),(0,de.jsx)("span",{className:"ps-relative ps-gap-1",children:a.column.getCanPin()&&a.column.id!=="select"&&(0,de.jsxs)(Kf,{children:[(0,de.jsx)(Gf,{asChild:!0,children:(0,de.jsx)(ot,{variant:"ghost",size:"sm",className:"ps-px-0 ps-h-6 ps-w-6",children:(0,de.jsx)(Ho,{size:12})})}),(0,de.jsxs)(Rl,{children:[a.column.getCanSort()&&(0,de.jsx)(Wn,{onClick:()=>a.column.toggleSorting(),children:(0,de.jsx)("span",{className:"ps-flex ps-items-center ps-gap-2",children:a.column.getNextSortingOrder()==="desc"?(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(ka,{size:16}),"Sort descending"]}):a.column.getNextSortingOrder()==="asc"?(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Uo,{size:16}),"Sort ascending"]}):(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Zo,{size:16}),"Cancel sorting"]})})}),(0,de.jsx)(Wn,{onClick:()=>a.column.pin(a.column.getIsPinned()?!1:"left"),children:a.column.getIsPinned()?(0,de.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,de.jsx)(jo,{size:16}),"Unpin column"]}):(0,de.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,de.jsx)(Xo,{size:16}),"Pin column"]})})]})]})})]}),a.column.getCanResize()&&(0,de.jsx)("button",{type:"button",tabIndex:0,onMouseDown:o=>{o.stopPropagation(),a.getResizeHandler()(o)},onTouchStart:o=>{o.stopPropagation(),a.getResizeHandler()(o)},onClick:o=>o.stopPropagation(),onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),o.stopPropagation(),a.getResizeHandler()(o))},className:G("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"})]})}w();var Tl=require("react/jsx-runtime");function jf({className:t}){return(0,Tl.jsx)("div",{"data-loading-bar":!0,className:G("ps-h-[2px] ps-w-full ps-overflow-hidden ps-bg-gray-200 ps-z-50",t),children:(0,Tl.jsx)("div",{className:"ps-animate-indeterminate-bar ps-h-full ps-w-1/3 ps-rounded-r-full ps-bg-purple-600"})})}w();w();var Xf=Te(require("react"),1);var Zf=require("react/jsx-runtime"),Or=Xf.forwardRef(({className:t,type:a,...o},r)=>(0,Zf.jsx)("input",{type:a,className:G("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",t),ref:r,...o}));Or.displayName="Input";var De=require("react/jsx-runtime");function Yf(t){let{table:a,variant:o="basic"}=t,{pageIndex:r}=a.getState().pagination,n=a.getPageCount(),s=a.getAllColumns().length;return(0,De.jsx)(cl,{className:"ps-sticky ps-bottom-0 ps-border-t-0 w-full ps-z-20 ps-p-0",children:(0,De.jsx)(ca,{className:"ps-p-0 ps-bg-transparent hover:ps-bg-transparent",children:(0,De.jsx)(fa,{colSpan:s,className:"ps-p-0",children:(0,De.jsx)("div",{className:"ps-rounded-b-lg ps-overflow-clip",children:(0,De.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:o==="basic"?(0,De.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,De.jsx)(ot,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>a.previousPage(),disabled:!a.getCanPreviousPage(),children:"Previous"}),(0,De.jsx)(ot,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>a.nextPage(),disabled:!a.getCanNextPage(),children:"Next"})]}):(0,De.jsx)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:(0,De.jsxs)("div",{className:"ps-flex ps-items-center ps-space-x-2",children:[(0,De.jsx)(ot,{variant:"outline",onClick:()=>a.setPageIndex(0),disabled:!a.getCanPreviousPage(),children:(0,De.jsx)(Vo,{className:"ps-w-4 ps-h-4"})}),(0,De.jsx)(ot,{variant:"outline",onClick:()=>a.previousPage(),disabled:!a.getCanPreviousPage(),children:(0,De.jsx)(_o,{className:"ps-w-4 ps-h-4"})}),(0,De.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-1 ps-text-xs ps-font-medium",children:["Page",(0,De.jsx)(Or,{type:"number",min:1,max:n,value:r+1,className:"ps-w-16",onChange:l=>{let u=l.target.value?Number(l.target.value)-1:0;a.setPageIndex(u)}}),(0,De.jsxs)("span",{className:"ps-shrink-0 ps-w-max",children:["of ",n]})]}),(0,De.jsx)(ot,{variant:"outline",onClick:()=>a.nextPage(),disabled:!a.getCanNextPage(),children:(0,De.jsx)(ta,{className:"ps-w-4 ps-h-4"})}),(0,De.jsx)(ot,{variant:"outline",onClick:()=>a.setPageIndex(n-1),disabled:!a.getCanNextPage(),children:(0,De.jsx)(Ko,{className:"ps-w-4 ps-h-4"})})]})})})})})})})}w();function Br(t){let a=t.getIsPinned(),o=a==="right"&&t.getIsFirstColumn("right");return{className:G("ps-group ps-border-r ps-border-b ps-border-table-border last:ps-border-r-0","ps-overflow-hidden ps-whitespace-nowrap ps-text-ellipsis",a&&["ps-sticky ps-bg-background ps-z-20",a==="left"?"ps-left-0":"ps-right-0"],!a&&"ps-relative ps-z-10",a&&o&&"ps-shadow-[-1px_0_0_0_hsl(var(--border))]"),style:{width:t.getSize(),left:a==="left"?`${t.getStart("left")}px`:void 0,right:a==="right"?`${t.getAfter("right")}px`:void 0}}}var Re=require("react/jsx-runtime"),Fb=t=>{let{children:a,className:o,header:r,style:n}=t,{attributes:s,listeners:l,transform:u,transition:i,setNodeRef:d,isDragging:c}=(0,Na.useSortable)({id:r.id});return(0,Re.jsx)(fl,{ref:d,...s,...l,style:{cursor:"grab",touchAction:"none",transform:ep.CSS.Transform.toString(u),transition:i,...n,"--dragging-width":`${r.getSize()}px`},className:G(o,c&&"ps-z-50 ps-w-[var(--dragging-width)]","ps-select-none ps-touch-none ps-sticky ps-top-0 ps-z-20 ps-bg-table-head",r.column.getIsPinned()&&"ps-sticky ps-z-30"),children:(0,Re.jsx)("div",{className:G("ps-w-full",c&&"ps-w-[var(--dragging-width)]"),children:a})})};function tp(t){let{columnDefs:a,getBeforeRows:o,introspectedTable:r,isLoading:n,isProcessing:s,onPaginationChange:l,onSortingChange:u,pageCount:i,paginationState:d,rows:c,setSelectedRows:f,rowSelection:p,setRowSelection:m,sortingState:g}=t,[h,x]=(0,$a.useState)([]),[y,v]=(0,$a.useState)({left:["__ps_select"],right:[]}),[C,L]=(0,$a.useState)({}),I=(0,$a.useMemo)(()=>Jf(g),[g]),O=n||s;(0,$a.useEffect)(()=>x(a.map(({accessorKey:T})=>T)),[]);function E({active:T,over:k}){k&&T.id!==k.id&&x(Y=>{let ae=Y.indexOf(T.id),ce=Y.indexOf(k.id);return(0,Na.arrayMove)(Y,ae,ce)})}let q=(0,qa.useSensor)(qa.MouseSensor,{activationConstraint:{distance:10}}),S=(0,qa.useSensors)(q),M=(0,Qn.useReactTable)({columnResizeMode:"onChange",columns:a,data:c,defaultColumn:{size:200,minSize:50,maxSize:500},enableColumnPinning:!0,enableColumnResizing:!0,enableRowSelection:!0,enableSorting:!!(u&&g),getCoreRowModel:(0,Qn.getCoreRowModel)(),getRowId(T){let k={table:`${r.schema}.${r.name}`,filter:ao(T,r.columns)};return JSON.stringify(k)},manualPagination:!0,manualSorting:!0,onColumnOrderChange:x,onColumnPinningChange:v,onColumnSizingChange:L,onPaginationChange:l,onRowSelectionChange(T){return m(k=>{let Y=typeof T=="function"?T(k):T;try{let ae=Object.keys(Y).map(ce=>{try{return M.getRow(ce).original}catch{return null}}).filter(Boolean);f(ae)}catch{console.error("Error mapping selected rows:",e)}return Y})},onSortingChange:T=>u?.(k=>(typeof T=="function"&&(T=T(Jf(k))),Ob(T))),pageCount:i,state:{columnOrder:h,columnPinning:y,columnSizing:C,pagination:d,rowSelection:p,sorting:I}});return(0,Re.jsxs)(Re.Fragment,{children:[process.env.NODE_ENV==="production"?null:(0,Re.jsx)(Vf,{table:M}),(0,Re.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",children:[(0,Re.jsx)("div",{children:O&&(0,Re.jsx)(jf,{className:"ps-absolute -ps-top-[1px] ps-left-0 ps-right-0"})}),(0,Re.jsx)(qa.DndContext,{sensors:S,onDragEnd:E,children:(0,Re.jsxs)(il,{className:"ps-min-w-full ps-table-fixed ps-border-separate ps-border-spacing-0 ps-box-border",children:[(0,Re.jsx)(ul,{children:M.getHeaderGroups().map(T=>(0,Re.jsx)(ca,{children:(0,Re.jsx)(Na.SortableContext,{items:T.headers.map(k=>k.id),strategy:Na.horizontalListSortingStrategy,children:T.headers.map(k=>(0,Re.jsx)(Fb,{header:k,table:M,...Br(k.column),children:(0,Re.jsx)(Qf,{header:k})},k.id))})},T.id))}),(0,Re.jsxs)(dl,{children:[o?.(M),M.getRowModel().rows?.length?M.getRowModel().rows.map(T=>(0,Re.jsx)(ca,{className:G("ps-bg-table-row ps-odd:bg-table-row-odd ps-group [&:last-of-type_td]:ps-border-b-0"),children:T.getVisibleCells().map((k,Y)=>{if(typeof k.column.columnDef.cell=="function"){let ae=k.column.columnDef.cell(k.getContext());return(0,Re.jsx)(ae,{...Br(k.column)},Y)}return null})},T.id)):(0,Re.jsx)(ca,{children:(0,Re.jsx)(fa,{colSpan:a.length,className:"ps-h-24 ps-text-center",children:n?"Loading...":"No results."})})]}),!i||i<2?null:(0,Re.jsx)(Yf,{table:M,variant:"numeric"})]})})]})]})}function Jf(t){return t?.map(a=>({id:a.column,desc:a.direction==="desc"}))||[]}function Ob(t){return t.map(a=>({column:a.id,direction:a.desc?"desc":"asc"}))}w();w();var Et=Te(require("@radix-ui/react-tooltip"),1),ap=Te(require("react"),1);var Dl=require("react/jsx-runtime"),op=Et.Provider,rp=Et.Root,np=Et.Trigger,El=ap.forwardRef(({className:t,sideOffset:a=4,...o},r)=>(0,Dl.jsx)(Et.Portal,{children:(0,Dl.jsx)(Et.Content,{ref:r,sideOffset:a,className:G("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]",t),...o})}));El.displayName=Et.Content.displayName;var It=require("react/jsx-runtime");function sp({column:t}){return t.isInPrimaryKey?(0,It.jsxs)("span",{className:"ps-flex ps-flex-row ps-font-medium ps-items-center ps-gap-1",children:[(0,It.jsx)(op,{delayDuration:300,children:(0,It.jsxs)(rp,{children:[(0,It.jsx)(np,{asChild:!0,children:(0,It.jsx)(Qo,{size:12})}),(0,It.jsx)(El,{children:(0,It.jsx)("p",{children:"Primary Key"})})]})}),t.name]}):(0,It.jsxs)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",children:[(0,It.jsx)("span",{className:"ps-font-medium ps-truncate",children:t.name}),(0,It.jsx)("span",{className:"ps-overflow-hidden ps-text-ellipsis ps-text-muted-foreground/70 ps-lowercase ps-truncate",children:t.datatype.name})]})}w();var bp=require("remeda");w();var $l=require("motion/react"),Nr=Te(require("react"),1);w();var Fl=Te(require("@radix-ui/react-label"),1),lp=require("class-variance-authority"),ip=Te(require("react"),1);var up=require("react/jsx-runtime"),Bb=(0,lp.cva)("ps-text-sm ps-font-medium ps-leading-none peer-disabled:ps-cursor-not-allowed peer-disabled:ps-opacity-70"),Ol=ip.forwardRef(({className:t,...a},o)=>(0,up.jsx)(Fl.Root,{ref:o,className:G(Bb(),t),...a}));Ol.displayName=Fl.Root.displayName;w();var $r=Te(require("@radix-ui/react-switch"),1),dp=Te(require("react"),1);var Bl=require("react/jsx-runtime"),qr=dp.forwardRef(({className:t,...a},o)=>(0,Bl.jsx)($r.Root,{className:G("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",t),...a,ref:o,children:(0,Bl.jsx)($r.Thumb,{className:G("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")})}));qr.displayName=$r.Root.displayName;w();var mt=require("react/jsx-runtime"),To=({onSave:t,onCancel:a,onClose:o,onNullChange:r,isNull:n=!1})=>(0,mt.jsxs)("div",{className:"ps-flex ps-flex-row ps-gap-1 ps-border-t ps-border-table-border ps-text-xs",children:[(0,mt.jsxs)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2 ps-mr-auto",children:[(0,mt.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{t&&t(),o&&o()},children:[(0,mt.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,mt.jsx)(Wo,{size:12,strokeWidth:2})})," ","Save changes"]}),(0,mt.jsxs)("button",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center ps-cursor-pointer",onClick:()=>{a&&a(),o&&o()},children:[(0,mt.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"]})]}),r&&(0,mt.jsx)("div",{className:"ps-flex ps-flex-col ps-gap-1 ps-p-2",children:(0,mt.jsxs)("label",{className:"ps-flex ps-flex-row ps-gap-1 ps-items-center",htmlFor:"set-nullable",children:[(0,mt.jsx)(qr,{id:"set-nullable",checked:n,onCheckedChange:i=>{r&&r(i)}}),(0,mt.jsx)("span",{children:"Set to NULL"})]})})]});var Ft=require("react/jsx-runtime");function cp(t){let{value:a,onSubmit:o,column:r}=t,n=r.nullable===!0,[s,l]=(0,Nr.useState)(a===null?!1:a),[u,i]=(0,Nr.useState)(a===null),d=a===null?!1:a,c=x=>{l(x)},f=x=>{i(x)},p=Nr.default.useCallback(()=>{let x=u?null:s;return x!==a?(o(x),!0):!1},[s,a,o,u]),m=()=>{l(d),i(a===null)},{handleSave:g,handleCancel:h}=Ro({onSave:p,onCancel:m});return(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.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,Ft.jsx)(Ol,{htmlFor:"boolean-input",className:"ps-sr-only",children:"Boolean"}),(0,Ft.jsx)($l.motion.div,{className:"ps-flex ps-items-center",initial:{opacity:0},animate:{opacity:1},transition:{duration:.24},children:(0,Ft.jsx)(qr,{id:"boolean-input",checked:s,onCheckedChange:c,disabled:u})}),(0,Ft.jsx)($l.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:u?"NULL":String(s)})]}),(0,Ft.jsx)(To,{onSave:g,onCancel:h,onNullChange:n?f:void 0,isNull:u})]})}w();var jn=require("react");w();var fp=require("class-variance-authority");var $b=require("react/jsx-runtime"),pp=(0,fp.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 ya=require("react/jsx-runtime");function mp(t){let{onSubmit:a,value:o,options:r=[]}=t,n=String(o),[s,l]=(0,jn.useState)(n),u=p=>{l(p)},i=(0,jn.useCallback)(()=>s!==n?(a(s),!0):!1,[s,n,a]),d=()=>{l(n)},{handleSave:c,handleCancel:f}=Ro({onSave:i,onCancel:d});return(0,ya.jsxs)(ya.Fragment,{children:[(0,ya.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:s}),(0,ya.jsx)("div",{className:"ps-flex ps-flex-row ps-gap-2 ps-p-2",children:r.map(p=>(0,ya.jsx)("button",{onClick:()=>u(p),className:pp({variant:p===s?"default":"outline"}),children:p},p))}),(0,ya.jsx)(To,{onSave:c,onCancel:f})]})}w();var xp=Te(require("react"),1);w();var gp=require("react");function hp(t){let{initialValue:a}=t,[o,r]=(0,gp.useState)(a??"");return{handleOnChange:s=>{r(s.target.value)},value:o}}var ba=require("react/jsx-runtime");function yp(t){let{onSubmit:a,value:o}=t,r=String(o),{handleOnChange:n,value:s}=hp({initialValue:r});function l(f){f.preventDefault(),s!==r&&a(s)}let u=xp.default.useCallback(()=>s!==r?(a(s),!0):!1,[s,r,a]),i=()=>{},{handleSave:d,handleCancel:c}=Ro({onSave:u,onCancel:i});return(0,ba.jsxs)(ba.Fragment,{children:[(0,ba.jsxs)("form",{onSubmit:l,children:[(0,ba.jsx)(Or,{className:"ps-cell-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,ba.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,ba.jsx)(To,{onSave:d,onCancel:c})]})}var Xn=require("react/jsx-runtime");function vp(t,a,o){let{group:r,options:n}=a.datatype,s=t.getValue();return r==="boolean"?(0,Xn.jsx)(cp,{onSubmit:o,value:s,column:a}):r==="enum"?(0,Xn.jsx)(mp,{onSubmit:o,value:s,options:n}):(0,Xn.jsx)(yp,{onSubmit:o,value:(0,bp.isObjectType)(s)?JSON.stringify(s):s})}w();var Cp=require("@tanstack/react-table"),wp=require("remeda");var ro=require("react/jsx-runtime");function Lp(t){let{table:a,stagedRows:o,setStagedRows:r}=t,n=Hn();function s(u,i){r(d=>{let c=[...d];return c[u]={...c[u],...i},c})}let l=(0,Cp.useReactTable)({...a.options,enableSorting:!1,onPaginationChange:void 0,onSortingChange:void 0,data:o,state:(0,wp.omit)(a.options.state,["pagination","sorting"])});return(0,ro.jsx)(ro.Fragment,{children:l.getRowModel().rows.map((u,i)=>(0,ro.jsx)(ca,{children:u.getVisibleCells().map(d=>(0,ro.jsx)(fa,{className:G(Br(d.column).className,"ps-p-0 ps-border-r ps-border-b ps-border-table-border ps-bg-table-head last:ps-border-r-0","data-[focus=true]:ps-ring-2 data-[focus=true]:ps-ring-indigo-400 data-[focus=true]:ps-ring-inset"),children:(0,ro.jsx)("input",{className:G("appearance-none ps-w-full ps-rounded-none ps-p-[var(--studio-cell-spacing)] ps-resize-none ps-bg-transparent ps-border-none ps-outline-none focus:ps-ring-2 focus:ps-ring-indigo-400 focus:ps-ring-inset",n&&"ps-opacity-50"),onChange:c=>{s(i,{[d.column.id]:c.target.value})},readOnly:n>0})},d.id))},i))})}var Oe=require("react/jsx-runtime");function kp(t){let a=!!(0,Ip.useIsMutating)(),{activeTable:o,onError:r}=et(),{sortingState:n,setSortingState:s}=bf(),{paginationState:l,setPaginationState:u}=hf(),[i,d]=(0,Zn.useState)([]),{selectedRows:c,setSelectedRows:f,deleteSelectedRows:p,rowSelection:m,setRowSelection:g}=yf(),{data:h,isFetching:x}=ff({...l,sortOrder:n}),y=Hn(),v=df(),C=pf();if((0,Zn.useEffect)(()=>d([]),[o]),!o)return null;function L(){v.mutate(i,{onError:r,onSuccess(){Sp.toast.success("Rows inserted successfully"),d([])}})}function I(){d(T=>[...T,{}])}function O(){d([])}function E(T,k,Y){C.mutate({details:{changes:{[k.name]:T},row:Y,table:o},options:{}})}let q=Object.values(o?.columns??{}).map(T=>({id:T.name,accessorKey:T.name,header(){return sp({column:T})},cell({cell:k}){return({props:Y})=>(0,Oe.jsx)(qf,{cellComponent:Of(k,T,Y),inputComponent:vp(k,T,ae=>E(ae,T,k.row.original))})}})),S=[{id:"__ps_select",accessorKey:"__ps_select",enablePinning:!1,size:20,header({table:T}){return(0,Oe.jsx)(Jo,{checked:T.getIsAllRowsSelected(),onCheckedChange:k=>T.toggleAllRowsSelected(!!k)})},cell({row:T}){return()=>(0,Oe.jsx)(Sl,{row:T})}}],M=[...q,...S].sort(Nb);return(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.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,Oe.jsx)("div",{className:"ps-flex ps-items-center ps-justify-between ps-w-full ps-gap-2",children:(0,Oe.jsx)("div",{className:"ps-flex ps-flex-grow ps-justify-between ps-items-center",children:(0,Oe.jsxs)("div",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,Oe.jsx)(ot,{variant:"outline",size:"sm",onClick:I,disabled:y>0,children:"Insert row"}),i.length>0&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)(ot,{variant:"secondary",size:"sm",onClick:L,children:"Save"}),(0,Oe.jsx)(ot,{variant:"ghost",size:"sm",onClick:O,children:"Cancel"})]}),c.length>0&&(0,Oe.jsx)(Oe.Fragment,{children:(0,Oe.jsx)(ot,{variant:"secondary",size:"sm",onClick:p,children:"Delete"})})]})})})}),(0,Oe.jsx)(tp,{columnDefs:M,getBeforeRows:T=>(0,Oe.jsx)(Lp,{table:T,stagedRows:i,setStagedRows:d}),introspectedTable:o,isLoading:x,isProcessing:a,onPaginationChange:u,onSortingChange:s,pageCount:qb(h?.filteredRowCount??1/0,l.pageSize),paginationState:l,rows:h?.rows??[],setSelectedRows:f,rowSelection:m,setRowSelection:g,sortingState:n})]})}function qb(t,a){if(t===1/0)return;let o=Number((BigInt(t)+BigInt(a)-BigInt(1))/BigInt(a));return Number.isSafeInteger(o)?o:Number.MAX_SAFE_INTEGER}function Nb(t,a){let o=t.meta,r=a.meta;return t.id==="__ps_select"||a.id==="__ps_select"?1:o===void 0||r===void 0?0:o.isInPrimaryKey&&!r.isInPrimaryKey?-1:!o.isInPrimaryKey&&r.isInPrimaryKey?1:o.name.localeCompare(r.name)}w();var Tp=require("@radix-ui/react-slot");w();var Yn=require("react");w();var Mp=require("@tanstack/react-query");var Pp=-1;function Ap(){let{adapter:t}=et();return(0,Mp.useQuery)({initialData:{schemas:{[t.defaultSchema||"db"]:{tables:{}}},timezone:"UTC"},initialDataUpdatedAt:Pp,queryFn:async({signal:a})=>{let[o,r]=await t.introspect({abortSignal:a});if(o)throw o;return r},queryKey:["introspection"],staleTime:a=>a.state.dataUpdatedAt===Pp?0:1/0})}function Rp(){let{activeTable:t,setActiveTable:a,adapter:o}=et(),{data:r,isLoading:n}=Ap(),s=Object.values(r.schemas[o.defaultSchema||"db"]?.tables||{}),[l]=s,[u,i]=Tr({table:{defaultValue:null,parse:p=>p,serialize:p=>p??""},schema:{defaultValue:"",parse:p=>p,serialize:p=>p??""}}),[,d]=Mo("pageIndex",{parse:p=>p,serialize:p=>p??""}),[,c]=Mo("sort",{parse:p=>p,serialize:p=>p??""});(0,Yn.useEffect)(()=>{if(!n){if(u?.table&&s.length>0){let p=s.find(m=>m.name===u.table);if(p){a(p);return}}s.length>0&&!t&&(a(l||null),l&&i({table:l.name,schema:l.schema}))}},[n,u,s,l,t,a,i]);let f=(0,Yn.useCallback)(p=>{t!==p&&(a(p),i({table:p.name,schema:p.schema}),d(null),c(null))},[t,a,i,d,c]);return{tables:s,activeTable:t,isLoading:n,handleTableChange:f}}var gt=require("react/jsx-runtime");function za(){let{tables:t,activeTable:a,isLoading:o,handleTableChange:r}=Rp();return(0,gt.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0",children:(0,gt.jsx)(za.Block,{label:"Tables",children:t.length>0?t.map(n=>(0,gt.jsx)(za.Item,{isActive:a===n,onClick:()=>{r(n)},className:"ps-capitalize 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:n.name},`${n.schema}-${n.name}`)):o?(0,gt.jsx)(za.Item,{children:"Loading..."}):(0,gt.jsx)(za.Item,{children:"No tables found"})})})}var zb=({className:t,label:a,children:o,...r})=>(0,gt.jsxs)("div",{className:G("ps-rounded-lg ps-border ps-bg-card ps-text-card-foreground ps-shadow-xs",t),...r,children:[(0,gt.jsx)("div",{className:"ps-pt-4 ps-pb-2 ps-px-4",children:(0,gt.jsx)("h2",{className:"ps-text-sm ps-font-medium",children:a})}),(0,gt.jsx)("nav",{"aria-label":a,className:"ps-flex ps-flex-col ps-gap-px ps-pb-3",children:o})]}),Ub=({className:t,asChild:a=!1,isActive:o,size:r,...n})=>(0,gt.jsx)(a?Tp.Slot:"button",{"data-sidebar":"menu-button","data-size":r,"data-active":o,className:G("ps-py-1.5 ps-px-4 ps-text-sm ps-font-medium ps-flex ps-gap-2 ps-items-center ps-border ps-border-transparent ps-bg-transparent ps-hover:bg-muted/50",t),...n,children:(0,gt.jsx)("span",{className:"ps-truncate",children:n.children})});za.Block=zb;za.Item=Ub;var va=require("react/jsx-runtime");function Dp(t){let{adapter:a,onError:o}=t;return a?(0,va.jsx)(uf,{adapter:a,onError:o,children:(0,va.jsx)("div",{className:"ps-flex ps-flex-col ps-w-full",children:(0,va.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-bg-background ps-relative ps-max-h-full",children:[(0,va.jsx)(za,{}),(0,va.jsx)("div",{className:"ps-flex ps-w-full ps-flex-col ps-border ps-rounded-lg ps-self-start ps-max-h-full ps-overflow-clip",children:(0,va.jsx)(kp,{})})]})})}):(console.error("No adapter provided to Studio component"),(0,va.jsx)("div",{children:"Error: No adapter provided"}))}0&&(module.exports={Studio});
|
|
1220
1220
|
/*! Bundled license information:
|
|
1221
1221
|
|
|
1222
1222
|
@tanstack/query-devtools/build/chunk/WXAWMS3D.js:
|