@prisma/studio-core 0.0.0-dev.202505020008 → 0.0.0-dev.202505020022
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 +2 -2
- package/dist/ui/index.js +2 -2
- package/package.json +1 -1
package/dist/ui/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Vp=Object.create;var jr=Object.defineProperty;var Kp=Object.getOwnPropertyDescriptor;var Gp=Object.getOwnPropertyNames;var Wp=Object.getPrototypeOf,Qp=Object.prototype.hasOwnProperty;var qo=(e,t)=>()=>(e&&(t=e(e=0)),t);var Xr=(e,t)=>{for(var a in t)jr(e,a,{get:t[a],enumerable:!0})},Qr=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Gp(t))!Qp.call(e,r)&&r!==a&&jr(e,r,{get:()=>t[r],enumerable:!(o=Kp(t,r))||o.enumerable});return e},ea=(e,t,a)=>(Qr(e,t,"default"),a&&Qr(a,t,"default")),Ie=(e,t,a)=>(a=e!=null?Vp(Wp(e)):{},Qr(t||!e||!e.__esModule?jr(a,"default",{value:e,enumerable:!0}):a,e)),jp=e=>Qr(jr({},"__esModule",{value:!0}),e);var C=qo(()=>{});function Ii(e){let t=String(e),a=t.length-1;return Z.context.id+(a?String.fromCharCode(96+a):"")+t}function Qa(e){Z.context=e}function Rm(){return{...Z.context,id:Z.getNextContextId(),count:0}}function $t(e,t){let a=ge,o=oe,r=e.length===0,n=t===void 0?o:t,s=r?Ni:{owned:null,cleanups:null,context:n?n.context:null,owner:n},i=r?e:()=>e(()=>we(()=>Ra(s)));oe=s,ge=null;try{return nt(i,!0)}finally{ge=a,oe=o}}function N(e,t){t=t?Object.assign({},nn,t):nn;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)),Ki(a,r));return[Vi.bind(a),o]}function sn(e,t,a){let o=fn(e,t,!0,lt);vo&&q&&q.running?$e.push(o):bo(o)}function G(e,t,a){let o=fn(e,t,!1,lt);vo&&q&&q.running?$e.push(o):bo(o)}function W(e,t,a){qi=qm;let o=fn(e,t,!1,lt),r=nr&&qe(nr);r&&(o.suspense=r),(!a||!a.render)&&(o.user=!0),je?je.push(o):bo(o)}function k(e,t,a){a=a?Object.assign({},nn,a):nn;let o=fn(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=a.equals||void 0,vo&&q&&q.running?(o.tState=lt,$e.push(o)):bo(o),Vi.bind(o)}function Dm(e){return e&&typeof e=="object"&&"then"in e}function Em(e,t,a){let o,r,n;o=!0,r=e,n={};let s=null,i=us,l=null,u=!1,d=!1,c="initialValue"in n,f=typeof o=="function"&&k(o),p=new Set,[m,h]=(n.storage||N)(n.initialValue),[g,x]=N(void 0),[v,b]=N(void 0,{equals:!1}),[w,S]=N(c?"ready":"unresolved");Z.context&&(l=Z.getNextContextId(),n.ssrLoadFrom==="initial"?i=n.initialValue:Z.load&&Z.has(l)&&(i=Z.load(l)));function F(I,U,R,te){return s===I&&(s=null,te!==void 0&&(c=!0),(I===i||U===i)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(te,{value:U})),i=us,q&&I&&u?(q.promises.delete(I),u=!1,nt(()=>{q.running=!0,D(U,R)},!1)):D(U,R)),U}function D(I,U){nt(()=>{U===void 0&&h(()=>I),S(U!==void 0?"errored":c?"ready":"unresolved"),x(U);for(let R of p.keys())R.decrement();p.clear()},!1)}function T(){let I=nr&&qe(nr),U=m(),R=g();if(R!==void 0&&!s)throw R;return ge&&!ge.user&&I&&sn(()=>{v(),s&&(I.resolved&&q&&u?q.promises.add(s):p.has(I)||(I.increment(),p.add(I)))}),U}function L(I=!0){if(I!==!1&&d)return;d=!1;let U=f?f():o;if(u=q&&q.running,U==null||U===!1){F(s,we(m));return}q&&s&&q.promises.delete(s);let R=i!==us?i:we(()=>r(U,{value:m(),refetching:I}));return Dm(R)?(s=R,"value"in R?(R.status==="success"?F(s,R.value,void 0,U):F(s,void 0,fs(R.value),U),R):(d=!0,queueMicrotask(()=>d=!1),nt(()=>{S(c?"refreshing":"pending"),b()},!1),R.then(te=>F(R,te,void 0,U),te=>F(R,void 0,fs(te),U)))):(F(s,R,void 0,U),R)}return Object.defineProperties(T,{state:{get:()=>w()},error:{get:()=>g()},loading:{get(){let I=w();return I==="pending"||I==="refreshing"}},latest:{get(){if(!c)return T();let I=g();if(I&&!s)throw I;return m()}}}),f?sn(()=>L(!1)):L(!1),[T,{refetch:L,mutate:h}]}function zi(e){return nt(e,!1)}function we(e){if(!xo&&ge===null)return e();let t=ge;ge=null;try{return xo?xo.untrack(e):e()}finally{ge=t}}function qt(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 ra(e){W(()=>we(e))}function X(e){return oe===null||(oe.cleanups===null?oe.cleanups=[e]:oe.cleanups.push(e)),e}function ln(){return oe}function Fm(e,t){let a=oe,o=ge;oe=e,ge=null;try{return nt(t,!0)}catch(r){pn(r)}finally{oe=a,ge=o}}function Ui(e){if(q&&q.running)return e(),q.done;let t=ge,a=oe;return Promise.resolve().then(()=>{ge=t,oe=a;let o;return(vo||nr)&&(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),nt(e,!1),ge=oe=null,o?o.done:void 0})}function Hi(){return[Om,Ui]}function _e(e,t){let a=Symbol("context");return{id:a,Provider:Nm(a),defaultValue:e}}function qe(e){let t;return oe&&oe.context&&(t=oe.context[e.id])!==void 0?t:e.defaultValue}function _i(e){let t=k(e),a=k(()=>ps(t()));return a.toArray=()=>{let o=a();return Array.isArray(o)?o:o!=null?[o]:[]},a}function Vi(){let e=q&&q.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===lt)bo(this);else{let t=$e;$e=null,nt(()=>un(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 Ki(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&&nt(()=>{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&&Wi(n)),s?n.tState=lt:n.state=lt)}if($e.length>1e6)throw $e=[],new Error},!1)}return t}function bo(e){if(!e.fn)return;Ra(e);let t=cn;Pi(e,q&&q.running&&q.sources.has(e)?e.tValue:e.value,t),q&&!q.running&&q.sources.has(e)&&queueMicrotask(()=>{nt(()=>{q&&(q.running=!0),ge=oe=e,Pi(e,e.tValue,t),ge=oe=null},!1)})}function Pi(e,t,a){let o,r=oe,n=ge;ge=oe=e;try{o=e.fn(t)}catch(s){return e.pure&&(q&&q.running?(e.tState=lt,e.tOwned&&e.tOwned.forEach(Ra),e.tOwned=void 0):(e.state=lt,e.owned&&e.owned.forEach(Ra),e.owned=null)),e.updatedAt=a+1,pn(s)}finally{ge=n,oe=r}(!e.updatedAt||e.updatedAt<=a)&&(e.updatedAt!=null&&"observers"in e?Ki(e,o,!0):q&&q.running&&e.pure?(q.sources.add(e),e.tValue=o):e.value=o,e.updatedAt=a)}function fn(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:oe,context:oe?oe.context:null,pure:a};if(q&&q.running&&(n.state=0,n.tState=o),oe===null||oe!==Ni&&(q&&q.running&&oe.pure?oe.tOwned?oe.tOwned.push(n):oe.tOwned=[n]:oe.owned?oe.owned.push(n):oe.owned=[n]),xo&&n.fn){let[s,i]=N(void 0,{equals:!1}),l=xo.factory(n.fn,i);X(()=>l.dispose());let u=()=>Ui(i).then(()=>d.dispose()),d=xo.factory(n.fn,u);n.fn=c=>(s(),q&&q.running?d.track(c):l.track(c))}return n}function sr(e){let t=q&&q.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===rr)return un(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<cn);){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)bo(e);else if((t?e.tState:e.state)===rr){let r=$e;$e=null,nt(()=>un(e,a[0]),!1),$e=r}}}function nt(e,t){if($e)return e();let a=!1;t||($e=[]),je?a=!0:je=[],cn++;try{let o=e();return Bm(a),o}catch(o){a||(je=null),$e=null,pn(o)}}function Bm(e){if($e&&(vo&&q&&q.running?$m($e):Gi($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,nt(()=>{for(let n of r)Ra(n);for(let n of o){if(n.value=n.tValue,n.owned)for(let s=0,i=n.owned.length;s<i;s++)Ra(n.owned[s]);n.tOwned&&(n.owned=n.tOwned),delete n.tValue,delete n.tOwned,n.tState=0}ki(!1)},!1)}else if(q.running){q.running=!1,q.effects.push.apply(q.effects,je),je=null,ki(!0);return}}let a=je;je=null,a.length&&nt(()=>qi(a),!1),t&&t()}function Gi(e){for(let t=0;t<e.length;t++)sr(e[t])}function $m(e){for(let t=0;t<e.length;t++){let a=e[t],o=q.queue;o.has(a)||(o.add(a),vo(()=>{o.delete(a),nt(()=>{q.running=!0,sr(a)},!1),q&&(q.running=!1)}))}}function qm(e){let t,a=0;for(t=0;t<e.length;t++){let o=e[t];o.user?e[a++]=o:sr(o)}if(Z.context){if(Z.count){Z.effects||(Z.effects=[]),Z.effects.push(...e.slice(0,a));return}Qa()}for(Z.effects&&(Z.done||!Z.count)&&(e=[...Z.effects,...e],a+=Z.effects.length,delete Z.effects),t=0;t<a;t++)sr(e[t])}function un(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<cn)&&sr(r):n===rr&&un(r,t)}}}function Wi(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=rr:o.state=rr,o.pure?$e.push(o):je.push(o),o.observers&&Wi(o))}}function Ra(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--)Ra(e.tOwned[t]);delete e.tOwned}if(q&&q.running&&e.pure)Qi(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)Ra(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 Qi(e,t){if(t||(e.tState=0,q.disposed.add(e)),e.owned)for(let a=0;a<e.owned.length;a++)Qi(e.owned[a])}function fs(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Mi(e,t,a){try{for(let o of t)o(e)}catch(o){pn(o,a&&a.owner||null)}}function pn(e,t=oe){let a=Si&&t&&t.context&&t.context[Si],o=fs(e);if(!a)throw o;je?je.push({fn(){Mi(o,a,t)},state:lt}):Mi(o,a,t)}function ps(e){if(typeof e=="function"&&!e.length)return ps(e());if(Array.isArray(e)){let t=[];for(let a=0;a<e.length;a++){let o=ps(e[a]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return t}return e}function Nm(e,t){return function(o){let r;return G(()=>r=we(()=>(oe.context={...oe.context,[e]:o.value},_i(()=>o.children))),void 0),r}}function dn(e){for(let t=0;t<e.length;t++)e[t]()}function zm(e,t,a={}){let o=[],r=[],n=[],s=0,i=t.length>1?[]:null;return X(()=>dn(n)),()=>{let l=e()||[],u=l.length,d,c;return l[cr],we(()=>{let p,m,h,g,x,v,b,w,S;if(u===0)s!==0&&(dn(n),n=[],o=[],r=[],s=0,i&&(i=[])),a.fallback&&(o=[ms],r[0]=$t(F=>(n[0]=F,a.fallback())),s=1);else if(s===0){for(r=new Array(u),c=0;c<u;c++)o[c]=l[c],r[c]=$t(f);s=u}else{for(h=new Array(u),g=new Array(u),i&&(x=new Array(u)),v=0,b=Math.min(s,u);v<b&&o[v]===l[v];v++);for(b=s-1,w=u-1;b>=v&&w>=v&&o[b]===l[w];b--,w--)h[w]=r[b],g[w]=n[b],i&&(x[w]=i[b]);for(p=new Map,m=new Array(w+1),c=w;c>=v;c--)S=l[c],d=p.get(S),m[c]=d===void 0?-1:d,p.set(S,c);for(d=v;d<=b;d++)S=o[d],c=p.get(S),c!==void 0&&c!==-1?(h[c]=r[d],g[c]=n[d],i&&(x[c]=i[d]),c=m[c],p.set(S,c)):n[d]();for(c=v;c<u;c++)c in h?(r[c]=h[c],n[c]=g[c],i&&(i[c]=x[c],i[c](c))):r[c]=$t(f);r=r.slice(0,s=u),o=l.slice(0)}return r});function f(p){if(n[c]=p,i){let[m,h]=N(c);return i[c]=h,t(l[c],m)}return t(l[c])}}}function Um(e,t,a={}){let o=[],r=[],n=[],s=[],i=0,l;return X(()=>dn(n)),()=>{let u=e()||[],d=u.length;return u[cr],we(()=>{if(d===0)return i!==0&&(dn(n),n=[],o=[],r=[],i=0,s=[]),a.fallback&&(o=[ms],r[0]=$t(f=>(n[0]=f,a.fallback())),i=1),r;for(o[0]===ms&&(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]=$t(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]=N(u[l]);return s[l]=m,t(p,l)}}}function y(e,t){if(Hm&&Z.context){let a=Z.context;Qa(Rm());let o=we(()=>e(t||{}));return Qa(a),o}return we(()=>e(t||{}))}function en(){return!0}function ds(e){return(e=typeof e=="function"?e():e)?e:{}}function _m(){for(let e=0,t=this.length;e<t;++e){let a=this[e]();if(a!==void 0)return a}}function Y(...e){let t=!1;for(let s=0;s<e.length;s++){let i=e[s];t=t||!!i&&rn in i,e[s]=typeof i=="function"?(t=!0,k(i)):i}if($i&&t)return new Proxy({get(s){for(let i=e.length-1;i>=0;i--){let l=ds(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in ds(e[i]))return!0;return!1},keys(){let s=[];for(let i=0;i<e.length;i++)s.push(...Object.keys(ds(e[i])));return[...new Set(s)]}},gs);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:_m.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($i&&rn in e){let r=new Set(t.length>1?t.flat():t[0]),n=t.map(s=>new Proxy({get(i){return s.includes(i)?e[i]:void 0},has(i){return s.includes(i)&&i in e},keys(){return s.filter(i=>i in e)}},gs));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))}},gs)),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 Cs(e){let t,a,o=r=>{let n=Z.context;if(n){let[i,l]=N();Z.count||(Z.count=0),Z.count++,(a||(a=e())).then(u=>{!Z.done&&Qa(n),Z.count--,l(()=>u.default),Qa()}),t=i}else if(!t){let[i]=Em(()=>(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;Qa(n);let l=s(r);return Qa(i),l}):"")};return o.preload=()=>a||((a=e()).then(r=>t=()=>r.default),a),o}function it(){return Z.context?Z.getNextContextId():`cl-${Vm++}`}function Xi(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(zm(()=>e.each,e.children,t||void 0))}function Zi(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(Um(()=>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 ji("Show");return a()})):n}return e.fallback},void 0,void 0)}function Ji(e){let t=_i(()=>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 ji("Match");return n()})):i},void 0,void 0)}function mn(e){return e}function Xm(e,t){let a=jm[e];return typeof a=="object"?a[t]?a.$:void 0:a}function eg(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 ws(e,t,a,o={}){let r;return $t(n=>{r=n,t===document?e():P(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 fr(e,t=window.document){let a=t[ar]||(t[ar]=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,tu))}}function eu(e=window.document){if(e[ar]){for(let t of e[ar].keys())e.removeEventListener(t,tu);delete e[ar]}}function E(e,t,a){Xa(e)||(a==null?e.removeAttribute(t):e.setAttribute(t,a))}function tg(e,t,a,o){Xa(e)||(o==null?e.removeAttributeNS(t,a):e.setAttributeNS(t,a,o))}function ag(e,t,a){Xa(e)||(a?e.setAttribute(t,""):e.removeAttribute(t))}function O(e,t){Xa(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Ls(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 og(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]||(Ai(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||(Ai(e,i,!0),a[i]=l)}return a}function rg(e,t,a){if(!t)return a?E(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 Is(e,t={},a,o){let r={};return o||G(()=>r.children=lr(e,t.children,r.children)),G(()=>typeof t.ref=="function"&&ja(t.ref,e)),G(()=>ng(e,t,a,!0,r,!0)),r}function ja(e,t,a){return we(()=>e(t,a))}function P(e,t,a,o){if(a!==void 0&&!o&&(o=[]),typeof t!="function")return lr(e,t,o,a);G(r=>lr(e,t(),r,a),o)}function ng(e,t,a,o,r={},n=!1){t||(t={});for(let s in r)if(!(s in t)){if(s==="children")continue;r[s]=Ri(e,s,null,r[s],a,n,t)}for(let s in t){if(s==="children")continue;let i=t[s];r[s]=Ri(e,s,i,r[s],a,n,t)}}function sg(e){let t,a;return!Xa()||!(t=Z.registry.get(a=ig()))?e():(Z.completed&&Z.completed.add(t),Z.registry.delete(a),t)}function Xa(e){return!!Z.context&&!Z.done&&(!e||e.isConnected)}function lg(e){return e.toLowerCase().replace(/-([a-z])/g,(t,a)=>a.toUpperCase())}function Ai(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 Ri(e,t,a,o,r,n,s){let i,l,u,d,c;if(t==="style")return rg(e,a,o);if(t==="classList")return og(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)&&(Ls(e,f,a,p),p&&fr([f]))}else if(t.slice(0,5)==="attr:")E(e,t.slice(5),a);else if(t.slice(0,5)==="bool:")ag(e,t.slice(5),a);else if((c=t.slice(0,5)==="prop:")||(u=Wm.has(t))||!r&&((d=Xm(t,e.tagName))||(l=Gm.has(t)))||(i=e.nodeName.includes("-")||"is"in s)){if(c)t=t.slice(5),l=!0;else if(Xa(e))return a;t==="class"||t==="className"?O(e,a):i&&!l&&!u?e[lg(t)]=a:e[d||t]=a}else{let f=r&&t.indexOf(":")>-1&&Ym[t.split(":")[0]];f?tg(e,f,t,a):E(e,Qm[t]||t,a)}return a}function tu(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 lr(e,t,a,o,r){let n=Xa(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=mo(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=mo(e,a,o)}else{if(s==="function")return G(()=>{let l=t();for(;typeof l=="function";)l=l();a=lr(e,l,a,o)}),()=>a;if(Array.isArray(t)){let l=[],u=a&&Array.isArray(a);if(hs(l,t,a,r))return G(()=>a=lr(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=mo(e,a,o),i)return a}else u?a.length===0?Ti(e,l,o):eg(e,a,l):(a&&mo(e),Ti(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=mo(e,a,o,t);mo(e,a,null,t)}else a==null||a===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);a=t}}return a}function hs(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=hs(e,i,l)||r;else if(u==="function")if(o){for(;typeof i=="function";)i=i();r=hs(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 Ti(e,t,a=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],a)}function mo(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 ig(){return Z.getNextContextId()}function au(e,t=!1){return t?document.createElementNS(ug,e):document.createElement(e)}function Ss(e){let{useShadow:t}=e,a=document.createTextNode(""),o=()=>e.mount||document.body,r=ln(),n,s=!!Z.context;return W(()=>{s&&(ln().user=s=!1),n||(n=Fm(r,()=>k(()=>e.children)));let i=o();if(i instanceof HTMLHeadElement){let[l,u]=N(!1),d=()=>u(!0);$t(c=>P(i,()=>l()?c():n(),null)),X(d)}else{let l=au(e.isSVG?"g":"div",e.isSVG),u=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return a.parentNode},configurable:!0}),P(u,n),i.appendChild(l),e.ref&&e.ref(l),X(()=>i.removeChild(l))}},void 0,{render:!s}),a}function dg(e,t){let a=k(e);return k(()=>{let o=a();switch(typeof o){case"function":return we(()=>o(t));case"string":let r=Jm.has(o),n=Z.context?sg():au(o,r);return Is(n,t,r),n}})}function ou(e){let[,t]=de(e,["component"]);return dg(()=>e.component,t)}function pg(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 mg(e,t){let a=pg(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 yo(e,t){Object.entries(e).forEach(([a,o])=>t(o,a))}function on(e,t){return e.indexOf(t)!==-1}function Di(e,t){for(let a=0;a<e.length;a++){let o=e[a];if(t(o))return o}}function Bt(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function gn(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function cu(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function gu(e){if(on(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(on(e,"prototype"))throw new Error("prototype is not allowed as a property");if(on(e,"constructor"))throw new Error("constructor is not allowed as a property")}function vs(e,t,a=[]){if(!e)return;if(!Ta(e)){yo(e,(n,s)=>vs(n,t,[...a,...or(s)]));return}let[o,r]=e;r&&yo(r,(n,s)=>{vs(n,t,[...a,...or(s)])}),t(o,a)}function Eg(e,t,a){return vs(t,(o,r)=>{e=ys(e,r,n=>Tg(n,o,a))}),e}function Fg(e,t){function a(o,r){let n=Dg(e,or(r));o.map(or).forEach(s=>{e=ys(e,s,()=>n)})}if(Ta(t)){let[o,r]=t;o.forEach(n=>{e=ys(e,or(n),()=>e)}),r&&yo(r,a)}else yo(t,a);return e}function Bg(e,t,a){let o=a.get(e);o?o.push(t):a.set(e,[t])}function $g(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(cs):a[cs(n)]=s.map(cs)}),o?xs(a)?[o]:[o,a]:xs(a)?void 0:a}function xu(e){return Object.prototype.toString.call(e).slice(8,-1)}function Oi(e){return xu(e)==="Array"}function qg(e){if(xu(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Ng(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 bs(e,t={}){if(Oi(e))return e.map(r=>bs(r,t));if(!qg(e))return e;let a=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...a,...o].reduce((r,n)=>{if(Oi(t.props)&&!t.props.includes(n))return r;let s=e[n],i=bs(s,t);return Ng(r,n,i,e,t.nonenumerable),r},{})}function Za(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function vu(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function bu({queryState:e,observerCount:t,isStale:a}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":a?"yellow":"green":"gray"}function Ja({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function Cu(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var Z,Bi,Tm,rn,$i,cr,nn,Si,qi,lt,rr,Ni,us,oe,q,vo,xo,ge,$e,je,cn,Om,ki,nr,ms,Hm,gs,Vm,ji,Yi,Km,Gm,Wm,Qm,jm,Zm,Jm,Ym,ar,Xe,ug,cg,ru,fg,gg,hg,nu,xg,ir,xs,Ta,yg,vg,bg,Cg,ur,dr,su,wg,Lg,Ei,Ig,Sg,kg,Pg,Mg,lu,cs,or,iu,uu,Ag,du,fu,pu,Rg,Fi,mu,Tg,go,Dg,ys,Og,hu,se,ks,yu,pr,tn,zg,wu,Ug,hn,an,Lu,Hg,xn,Ps,yn,Aa,ho,Ms,mr=qo(()=>{"use strict";C();Z={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Ii(this.context.count)},getNextContextId(){return Ii(this.context.count++)}};Bi=!1,Tm=(e,t)=>e===t,rn=Symbol("solid-proxy"),$i=typeof Proxy=="function",cr=Symbol("solid-track"),nn={equals:Tm},Si=null,qi=Gi,lt=1,rr=2,Ni={owned:null,cleanups:null,context:null,owner:null},us={},oe=null,q=null,vo=null,xo=null,ge=null,$e=null,je=null,cn=0;[Om,ki]=N(!1);ms=Symbol("fallback");Hm=!1;gs={get(e,t,a){return t===rn?a:e.get(t)},has(e,t){return t===rn?!0:e.has(t)},set:en,deleteProperty:en,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:en,deleteProperty:en}},ownKeys(e){return e.keys()}};Vm=0;ji=e=>`Stale read from <${e}>.`;Yi=void 0,Km=["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"],Gm=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Km]),Wm=new Set(["innerHTML","textContent","innerText","children"]),Qm=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),jm=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"]),Jm=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"]),Ym={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};ar="_$DX_DELEGATE";Xe=!1,ug="http://www.w3.org/2000/svg";cg=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()}},ru=class{constructor(e){this.generateIdentifier=e,this.kv=new cg}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)}},fg=class extends ru{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)}};gg=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return mg(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},hg=e=>Object.prototype.toString.call(e).slice(8,-1),nu=e=>typeof e>"u",xg=e=>e===null,ir=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,xs=e=>ir(e)&&Object.keys(e).length===0,Ta=e=>Array.isArray(e),yg=e=>typeof e=="string",vg=e=>typeof e=="number"&&!isNaN(e),bg=e=>typeof e=="boolean",Cg=e=>e instanceof RegExp,ur=e=>e instanceof Map,dr=e=>e instanceof Set,su=e=>hg(e)==="Symbol",wg=e=>e instanceof Date&&!isNaN(e.valueOf()),Lg=e=>e instanceof Error,Ei=e=>typeof e=="number"&&isNaN(e),Ig=e=>bg(e)||xg(e)||nu(e)||vg(e)||yg(e)||su(e),Sg=e=>typeof e=="bigint",kg=e=>e===1/0||e===-1/0,Pg=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Mg=e=>e instanceof URL,lu=e=>e.replace(/\./g,"\\."),cs=e=>e.map(String).map(lu).join("."),or=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};iu=[Bt(nu,"undefined",()=>null,()=>{}),Bt(Sg,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),Bt(wg,"Date",e=>e.toISOString(),e=>new Date(e)),Bt(Lg,"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}),Bt(Cg,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),Bt(dr,"set",e=>[...e.values()],e=>new Set(e)),Bt(ur,"map",e=>[...e.entries()],e=>new Map(e)),Bt(e=>Ei(e)||kg(e),"number",e=>Ei(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Bt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Bt(Mg,"URL",e=>e.toString(),e=>new URL(e))];uu=gn((e,t)=>su(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}),Ag=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),du=gn(Pg,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let a=Ag[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});fu=gn(cu,(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)}),pu=gn((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)}),Rg=[fu,uu,pu,du],Fi=(e,t)=>{let a=Di(Rg,r=>r.isApplicable(e,t));if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};let o=Di(iu,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},mu={};iu.forEach(e=>{mu[e.annotation]=e});Tg=(e,t,a)=>{if(Ta(t))switch(t[0]){case"symbol":return uu.untransform(e,t,a);case"class":return fu.untransform(e,t,a);case"custom":return pu.untransform(e,t,a);case"typed-array":return du.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{let o=mu[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,a)}},go=(e,t)=>{let a=e.keys();for(;t>0;)a.next(),t--;return a.next().value};Dg=(e,t)=>{gu(t);for(let a=0;a<t.length;a++){let o=t[a];if(dr(e))e=go(e,+o);else if(ur(e)){let r=+o,n=+t[++a]==0?"key":"value",s=go(e,r);switch(n){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[o]}return e},ys=(e,t,a)=>{if(gu(t),t.length===0)return a(e);let o=e;for(let n=0;n<t.length-1;n++){let s=t[n];if(Ta(o)){let i=+s;o=o[i]}else if(ir(o))o=o[s];else if(dr(o)){let i=+s;o=go(o,i)}else if(ur(o)){if(n===t.length-2)break;let l=+s,u=+t[++n]==0?"key":"value",d=go(o,l);switch(u){case"key":o=d;break;case"value":o=o.get(d);break}}}let r=t[t.length-1];if(Ta(o)?o[+r]=a(o[+r]):ir(o)&&(o[r]=a(o[r])),dr(o)){let n=go(o,+r),s=a(n);n!==s&&(o.delete(n),o.add(s))}if(ur(o)){let n=+t[t.length-2],s=go(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};Og=(e,t)=>ir(e)||Ta(e)||ur(e)||dr(e)||cu(e,t);hu=(e,t,a,o,r=[],n=[],s=new Map)=>{let i=Ig(e);if(!i){Bg(e,r,t);let p=s.get(e);if(p)return o?{transformedValue:null}:p}if(!Og(e,a)){let p=Fi(e,a),m=p?{transformedValue:p.value,annotations:[p.type]}:{transformedValue:e};return i||s.set(e,m),m}if(on(n,e))return{transformedValue:null};let l=Fi(e,a),u=l?.value??e,d=Ta(u)?[]:{},c={};yo(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 h=hu(p,t,a,o,[...r,m],[...n,e],s);d[m]=h.transformedValue,Ta(h.annotations)?c[m]=h.annotations:ir(h.annotations)&&yo(h.annotations,(g,x)=>{c[lu(m)+"."+x]=g})});let f=xs(c)?{transformedValue:d,annotations:l?[l.type]:void 0}:{transformedValue:d,annotations:l?[l.type,c]:c};return i||s.set(e,f),f};se=class{constructor({dedupe:e=!1}={}){this.classRegistry=new fg,this.symbolRegistry=new ru(t=>t.description??""),this.customTransformerRegistry=new gg,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,a=hu(e,t,this,this.dedupe),o={json:a.transformedValue};a.annotations&&(o.meta={...o.meta,values:a.annotations});let r=$g(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){let{json:t,meta:a}=e,o=bs(t);return a?.values&&(o=Eg(o,a.values,this)),a?.referentialEqualities&&(o=Fg(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)}};se.defaultInstance=new se;se.serialize=se.defaultInstance.serialize.bind(se.defaultInstance);se.deserialize=se.defaultInstance.deserialize.bind(se.defaultInstance);se.stringify=se.defaultInstance.stringify.bind(se.defaultInstance);se.parse=se.defaultInstance.parse.bind(se.defaultInstance);se.registerClass=se.defaultInstance.registerClass.bind(se.defaultInstance);se.registerSymbol=se.defaultInstance.registerSymbol.bind(se.defaultInstance);se.registerCustom=se.defaultInstance.registerCustom.bind(se.defaultInstance);se.allowErrorProps=se.defaultInstance.allowErrorProps.bind(se.defaultInstance);ks=se.serialize;se.deserialize;yu=se.stringify;se.parse;se.registerClass;se.registerCustom;se.registerSymbol;se.allowErrorProps;pr=(e,t=!1)=>{let{json:a}=ks(e);return JSON.stringify(a,null,t?2:void 0)},tn=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,zg=(e,t)=>e.queryHash.localeCompare(t.queryHash),wu=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Ug=(e,t)=>tn(e)===tn(t)?wu(e,t):tn(e)>tn(t)?1:-1,hn={status:Ug,"query hash":zg,"last updated":wu},an=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,Lu=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Hg=(e,t)=>an(e)===an(t)?Lu(e,t):an(e)>an(t)?1:-1,xn={status:Hg,"last updated":Lu},Ps=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),yn=()=>{let[e,t]=N("dark");return ra(()=>{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},Aa=(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,Aa(o.get(r),n,a)),o}if(e instanceof Set){let o=Aa(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]=Aa(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]=Aa(o[r],n,a),o}return e},ho=(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,ho(a.get(o),r)),a}if(e instanceof Set){let a=ho(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]=ho(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]=ho(a[o],r),a}return e},Ms=(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 Wg(e){return(...t)=>{for(let a of e)a&&a(...t)}}function Qg(e,...t){return typeof e=="function"?e(...t):e}function Xg(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]=N(),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=N(void 0,{equals:!1}),s.set(p,m)),m[0]();let h=r.reduce((g,x)=>{if(g!==null||!x)return g;try{return x.getItem(`${n}${p}`)}catch(v){return o(v,`Error reading ${n}${p} from ${x.name}`),null}},null);return h!==null&&e?.deserializer?e.deserializer(h,p,e.options):h}}),l=(f,p,m)=>{let h=e?.serializer?e.serializer(p,f,m??e.options):p,g=`${n}${f}`;r.forEach(v=>{try{v.getItem(g)!==h&&v.setItem(g,h)}catch(b){o(b,`Error setting ${n}${f} to ${h} in ${v.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,h)=>{if(!f.hasOwnProperty(m)){let g=h&&e?.deserializer?e.deserializer(h,m,e.options):h;g&&(f[m]=g)}};return r.forEach(m=>{if(typeof m.getAll=="function"){let h;try{h=m.getAll()}catch(g){o(g,`Error getting all values from in ${m.name}`)}for(let g of h)p(g,h[g])}else{let h=0,g;try{for(;g=m.key(h++);)f.hasOwnProperty(g)||p(g,m.getItem(g))}catch(x){o(x,`Error getting all values from ${m.name}`)}}}),f};return e?.sync!==!1&&ra(()=>{let f=p=>{let m=!1;r.forEach(h=>{try{h!==p.storageArea&&p.key&&p.newValue!==h.getItem(p.key)&&(p.newValue?h.setItem(p.key,p.newValue):h.removeItem(p.key),m=!0)}catch(g){o(g,`Error synching api ${h.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(Sr)}function Ke(){return qe(kr)}function lh(e){return e.replace(sh,t=>wd[t])}function Pu(e,t,a){var o;if(a=a||{},a.threshold=(o=a.threshold)!=null?o:st.MATCHES,!a.accessors){let s=Mu(e,t,a);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:a.threshold,passed:s>=a.threshold}}let r=ch(e,a.accessors),n={rankedValue:e,rank:st.NO_MATCH,accessorIndex:-1,accessorThreshold:a.threshold,passed:!1};for(let s=0;s<r.length;s++){let i=r[s],l=Mu(i.itemValue,t,a),{minRanking:u,maxRanking:d,threshold:c=a.threshold}=i.attributes;l<u&&l>=st.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 Mu(e,t,a){return e=Au(e,a),t=Au(t,a),t.length>e.length?st.NO_MATCH:e===t?st.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?st.EQUAL:e.startsWith(t)?st.STARTS_WITH:e.includes(` ${t}`)?st.WORD_STARTS_WITH:e.includes(t)?st.CONTAINS:t.length===1?st.NO_MATCH:ih(e).includes(t)?st.ACRONYM:uh(e,t))}function ih(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(n=>{t+=n.substr(0,1)})}),t}function uh(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 st.MATCHES+d*u}let s=r(t[0],e,0);if(s<0)return st.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 st.NO_MATCH}let i=o-s;return n(i)}function Au(e,t){let{keepDiacritics:a}=t;return e=`${e}`,a||(e=lh(e)),e}function dh(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 ch(e,t){let a=[];for(let o=0,r=t.length;o<r;o++){let n=t[o],s=fh(n),i=dh(e,n);for(let l=0,u=i.length;l<u;l++)a.push({itemValue:i[l],attributes:s})}return a}function fh(e){return typeof e=="function"?Ru:{...Ru,...e}}function ae(e){let t=this||{},a=e.call?e(t.p):e;return xh(a.unshift?a.raw?yh(a,[].slice.call(arguments,1),t.p):a.reduce((o,r)=>Object.assign(o,r&&r.call?r(t.p):r),{}):a,mh(t.target),t.g,t.o,t.k)}function Id(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=Id(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=Id(e))&&(o&&(o+=" "),o+=t);return o}function vh(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]=N([],{equals:!1}),[l]=Hi(),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[cr],we(l))return l(),c;if(f.length){let m=c.filter(h=>!f.includes(h));return f.length=0,o({list:m,added:[],removed:[],unchanged:m,finishRemoved:u}),m}return we(()=>{let m=new Set(p),h=p.slice(),g=[],x=[],v=[];for(let w of p)(r.has(w)?v:g).push(w);let b=!g.length;for(let w=0;w<c.length;w++){let S=c[w];m.has(S)||(n.has(S)||(x.push(S),n.add(S)),d(h,S,w)),b&&S!==h[w]&&(b=!1)}return!x.length&&b?c:(o({list:h,added:g,removed:x,unchanged:v,finishRemoved:u}),r=m,h)})},t.appear?[]:a.slice())}function rt(...e){return Wg(e)}function Bs(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return Bs(e(),t);if(Array.isArray(e)){let a=[];for(let o of e){let r=Bs(o,t);r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}return a.length?a:null}return null}function bh(e,t=Du,a=Du){let o=k(e),r=k(()=>Bs(o(),Xe?a:t));return r.toArray=()=>{let n=r();return Array.isArray(n)?n:n?[n]:[]},r}function Ch(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 Sd(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function wh(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())}),Sd(()=>{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 Lh(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()),Sd(()=>{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 Fu(e){for(let t of e)t.dispose()}function Ih(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(()=>Fu(r.values())),()=>{let s=e()||[];return s[cr],we(()=>{if(!s.length)return Fu(r.values()),r.clear(),o.fallback?[$t(c=>(r.set(As,{dispose:c}),o.fallback()))]:[];let i=new Array(s.length),l=r.get(As);if(!r.size||l){l?.dispose(),r.delete(As);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){$t(d=>{let[c,f]=N(i),p={setItem:f,dispose:d};if(a.length>1){let[m,h]=N(l);p.setIndex=h,p.mapped=a(c,m)}else p.mapped=a(c);r.set(u,p),s[l]=p.mapped})}}function wn(e){let{by:t}=e;return k(Ih(()=>e.each,typeof t=="function"?t:a=>a[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function Sh(e,t,a,o){return e.addEventListener(t,a,o),jg(e.removeEventListener.bind(e,t,a,o))}function kh(e,t,a,o){if(Xe)return;let r=()=>{Fs(A(e)).forEach(n=>{n&&Fs(A(t)).forEach(s=>Sh(n,s,a,o))})};typeof e=="function"?W(r):G(r)}function Ph(e,t){if(Xe)return{observe:Iu,unobserve:Iu};let a=new ResizeObserver(e);return X(a.disconnect.bind(a)),{observe:o=>a.observe(o,t),unobserve:a.unobserve.bind(a)}}function kd(e,t,a){if(Xe)return;let o=new WeakMap,{observe:r,unobserve:n}=Ph(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=Gg(Fs(A(e)));return Xg(i,s,r,n),i},[])}function Ou(e){let t={},a;for(;a=Mh.exec(e);)t[a[1]]=a[2];return t}function Dn(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=Ou(e)}else typeof t=="string"&&(t=Ou(t));return{...e,...t}}function Ah(e,t,a=-1){return a in e?[...e.slice(0,a),t,...e.slice(a)]:[...e,t]}function $s(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function Rh(e){return typeof e=="number"}function wo(e){return Object.prototype.toString.call(e)==="[object String]"}function Th(e){return typeof e=="function"}function Pr(e){return t=>`${e()}-${t}`}function vt(e,t){return e?e===t||e.contains(t):!1}function yr(e,t=!1){let{activeElement:a}=zt(e);if(!a?.nodeName)return null;if(Pd(a)&&a.contentDocument)return yr(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=zt(a).getElementById(o);if(r)return r}}return a}function Dh(e){return zt(e).defaultView||window}function zt(e){return e?e.ownerDocument||e:document}function Pd(e){return e.tagName==="IFRAME"}function Qs(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function En(){return Qs(/^Mac/i)}function Eh(){return Qs(/^iPhone/i)}function Fh(){return Qs(/^iPad/i)||En()&&navigator.maxTouchPoints>1}function Oh(){return Eh()||Fh()}function Bh(){return En()||Oh()}function Me(e,t){return t&&(Th(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function Ve(e){return t=>{for(let a of e)Me(t,a)}}function $h(e){return En()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function Je(e){if(e)if(qh())e.focus({preventScroll:!0});else{let t=Nh(e);e.focus(),zh(t)}}function qh(){if(vn==null){vn=!1;try{document.createElement("div").focus({get preventScroll(){return vn=!0,!0}})}catch{}}return vn}function Nh(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 zh(e){for(let{element:t,scrollTop:a,scrollLeft:o}of e)t.scrollTop=a,t.scrollLeft=o}function Ad(e,t){let o=Array.from(e.querySelectorAll(js)).filter(Bu);return t&&Bu(e)&&o.unshift(e),o.forEach((r,n)=>{if(Pd(r)&&r.contentDocument){let s=r.contentDocument.body,i=Ad(s,!1);o.splice(n,1,...i)}}),o}function Bu(e){return Rd(e)&&!_h(e)}function Rd(e){return e.matches(js)&&Xs(e)}function _h(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Xs(e,t){return e.nodeName!=="#comment"&&Vh(e)&&Kh(e,t)&&(!e.parentElement||Xs(e.parentElement,e))}function Vh(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 Kh(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Gh(e,t,a){let o=t?.tabbable?Hh:js,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(n){return t?.from?.contains(n)?NodeFilter.FILTER_REJECT:n.matches(o)&&Xs(n)&&(!t?.accept||t.accept(n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function $u(e){for(;e&&!Wh(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Wh(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Qh(){}function jh(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 le(e,t){return Y(e,t)}function Nu(){if(typeof window>"u")return;let e=a=>{if(!a.target)return;let o=gr.get(a.target);o||(o=new Set,gr.set(a.target,o),a.target.addEventListener("transitioncancel",t)),o.add(a.propertyName)},t=a=>{if(!a.target)return;let o=gr.get(a.target);if(o&&(o.delete(a.propertyName),o.size===0&&(a.target.removeEventListener("transitioncancel",t),gr.delete(a.target)),gr.size===0)){for(let r of qu)r();qu.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function qs(e,t){let a=zu(e,t,"left"),o=zu(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 zu(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 Xh(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let r=$u(e);for(;e&&r&&e!==a&&r!==a;)qs(r,e),e=r,r=$u(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 bt(e){return t=>(e(t),()=>e(void 0))}function Fn(e,t){let[a,o]=N(Uu(t?.()));return W(()=>{o(e()?.tagName.toLowerCase()||Uu(t?.()))}),a}function Uu(e){return wo(e)?e:void 0}function Ae(e){let[t,a]=de(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return y(ou,Y(a,{get component(){return t.as}}))}function Jh(e){let t=`form-control-${it()}`,a=le({id:t},e),[o,r]=N(),[n,s]=N(),[i,l]=N(),[u,d]=N(),c=(h,g,x)=>{let v=x!=null||o()!=null;return[x,o(),v&&g!=null?h:void 0].filter(Boolean).join(" ")||void 0},f=h=>[i(),u(),h].filter(Boolean).join(" ")||void 0,p=k(()=>({"data-valid":A(a.validationState)==="valid"?"":void 0,"data-invalid":A(a.validationState)==="invalid"?"":void 0,"data-required":A(a.required)?"":void 0,"data-disabled":A(a.disabled)?"":void 0,"data-readonly":A(a.readOnly)?"":void 0}));return{formControlContext:{name:()=>A(a.name)??A(a.id),dataset:p,validationState:()=>A(a.validationState),isRequired:()=>A(a.required),isDisabled:()=>A(a.disabled),isReadOnly:()=>A(a.readOnly),labelId:o,fieldId:n,descriptionId:i,errorMessageId:u,getAriaLabelledBy:c,getAriaDescribedBy:f,generateId:Pr(()=>A(a.id)),registerLabel:bt(r),registerField:bt(s),registerDescription:bt(l),registerErrorMessage:bt(d)}}}function Mr(){let e=qe(Dd);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function Ed(e){let t=Mr(),a=le({id:t.generateId("description")},e);return W(()=>X(t.registerDescription(a.id))),y(Ae,Y({as:"div"},()=>t.dataset(),a))}function Fd(e){let t=Mr(),a=le({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(Ae,Y({as:"div"},()=>t.dataset(),r))}})}function Yh(e){let t,a=Mr(),o=le({id:a.generateId("label")},e),[r,n]=de(o,["ref"]),s=Fn(()=>t,()=>"label");return W(()=>X(a.registerLabel(n.id))),y(Ae,Y({as:"label",ref(i){let l=rt(u=>t=u,r.ref);typeof l=="function"&&l(i)},get for(){return k(()=>s()==="label")()?a.fieldId():void 0}},()=>a.dataset(),n))}function e0(e,t){W(qt(e,a=>{if(a==null)return;let o=t0(a);o!=null&&(o.addEventListener("reset",t,{passive:!0}),X(()=>{o.removeEventListener("reset",t)}))}))}function t0(e){return a0(e)?e.form:e.closest("form")}function a0(e){return e.matches("textarea, input, select, button")}function Ar(e){let[t,a]=N(e.defaultValue?.()),o=k(()=>e.value?.()!==void 0),r=k(()=>o()?e.value?.():t());return[r,s=>{we(()=>{let i=Qg(s,r());return Object.is(i,r())||(o()||a(i),e.onChange?.(i)),i})}]}function Od(e){let[t,a]=Ar(e);return[()=>t()??!1,a]}function o0(e){let[t,a]=Ar(e);return[()=>t()??[],a]}function r0(e={}){let[t,a]=Od({value:()=>A(e.isSelected),defaultValue:()=>!!A(e.defaultIsSelected),onChange:n=>e.onSelectedChange?.(n)});return{isSelected:t,setIsSelected:n=>{!A(e.isReadOnly)&&!A(e.isDisabled)&&a(n)},toggle:()=>{!A(e.isReadOnly)&&!A(e.isDisabled)&&a(!t())}}}function $d(){return qe(Bd)}function s0(){let e=$d();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function qd(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function l0(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&&qd(r,a))return o+1}return 0}function i0(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:qd(i,l)?(o>n&&(a=!0),-1):(o<n&&(a=!0),1)}),a?t.map(([o,r])=>r):e}function Nd(e,t){let a=i0(e);e!==a&&t(a)}function u0(e){let t=e[0],a=e[e.length-1]?.ref(),o=t?.ref()?.parentElement;for(;o;){if(a&&o.contains(a))return o;o=o.parentElement}return zt(o).body}function d0(e,t){W(()=>{let a=setTimeout(()=>{Nd(e(),t)});X(()=>clearTimeout(a))})}function c0(e,t){if(typeof IntersectionObserver!="function"){d0(e,t);return}let a=[];W(()=>{let o=()=>{let s=!!a.length;a=e(),s&&Nd(e(),t)},r=u0(e()),n=new IntersectionObserver(o,{root:r});for(let s of e()){let i=s.ref();i&&n.observe(i)}X(()=>n.disconnect())})}function f0(e={}){let[t,a]=o0({value:()=>A(e.items),onChange:n=>e.onItemsChange?.(n)});c0(t,a);let o=n=>(a(s=>{let i=l0(s,n);return Ah(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(Bd.Provider,{value:{registerItem:o},get children(){return n.children}})}}function p0(e){let t=s0(),a=le({shouldRegisterItem:!0},e);W(()=>{if(!a.shouldRegisterItem)return;let o=t.registerItem(a.getItem());X(o)})}function zd(e){let t=e.startIndex??0,a=e.startLevel??0,o=[],r=l=>{if(l==null)return"";let u=e.getKey??"key",d=wo(u)?l[u]:u(l);return d!=null?String(d):""},n=l=>{if(l==null)return"";let u=e.getTextValue??"textValue",d=wo(u)?l[u]:u(l);return d!=null?String(d):""},s=l=>{if(l==null)return!1;let u=e.getDisabled??"disabled";return(wo(u)?l[u]:u(l))??!1},i=l=>{if(l!=null)return wo(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(wo(l)||Rh(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=zd({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 m0(e,t=[]){return k(()=>{let a=zd({dataSource:A(e.dataSource),getKey:A(e.getKey),getTextValue:A(e.getTextValue),getDisabled:A(e.getDisabled),getSectionChildren:A(e.getSectionChildren)});for(let o=0;o<t.length;o++)t[o]();return e.factory(a)})}function x0(e){if(Intl.Locale){let a=new Intl.Locale(e).maximize().script??"";return g0.has(a)}let t=e.split("-")[0];return h0.has(t)}function y0(e){return x0(e)?"rtl":"ltr"}function Ud(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:y0(e)}}function Hu(){Ns=Ud();for(let e of vr)e(Ns)}function v0(){let e={locale:"en-US",direction:"ltr"},[t,a]=N(Ns),o=k(()=>Xe?e:t());return ra(()=>{vr.size===0&&window.addEventListener("languagechange",Hu),vr.add(a),X(()=>{vr.delete(a),vr.size===0&&window.removeEventListener("languagechange",Hu)})}),{locale:()=>o().locale,direction:()=>o().direction}}function $a(){let e=v0();return qe(b0)||e}function C0(e){let{locale:t}=$a(),a=k(()=>t()+(e?Object.entries(e).sort((o,r)=>o[0]<r[0]?-1:1).join():""));return k(()=>{let o=a(),r;return Rs.has(o)&&(r=Rs.get(o)),r||(r=new Intl.Collator(t(),e),Rs.set(o,r)),r})}function w0(e){let[t,a]=Ar(e);return[()=>t()??new sa,a]}function _d(e){return Bh()?e.altKey:e.ctrlKey}function Lo(e){return En()?e.metaKey:e.ctrlKey}function _u(e){return new sa(e)}function L0(e,t){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function I0(e){let t=le({selectionMode:"none",selectionBehavior:"toggle"},e),[a,o]=N(!1),[r,n]=N(),s=k(()=>{let h=A(t.selectedKeys);return h!=null?_u(h):h}),i=k(()=>{let h=A(t.defaultSelectedKeys);return h!=null?_u(h):new sa}),[l,u]=w0({value:s,defaultValue:i,onChange:h=>t.onSelectionChange?.(h)}),[d,c]=N(A(t.selectionBehavior)),f=()=>A(t.selectionMode),p=()=>A(t.disallowEmptySelection)??!1,m=h=>{(A(t.allowDuplicateSelectionEvents)||!L0(h,l()))&&u(h)};return W(()=>{let h=l();A(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof h=="object"&&h.size===0&&c("replace")}),W(()=>{c(A(t.selectionBehavior)??"toggle")}),{selectionMode:f,disallowEmptySelection:p,selectionBehavior:d,setSelectionBehavior:c,isFocused:a,setFocused:o,focusedKey:r,setFocusedKey:n,selectedKeys:l,setSelectedKeys:m}}function S0(e){let[t,a]=N(""),[o,r]=N(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(A(e.isDisabled))return;let i=A(e.keyboardDelegate),l=A(e.selectionManager);if(!i.getKeyForSearch)return;let u=k0(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&&P0(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 k0(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function P0(e){return e.split("").every(t=>t===e[0])}function M0(e,t,a){let r=Y({selectOnFocus:()=>A(e.selectionManager).selectionBehavior()==="replace"},e),n=()=>t(),{direction:s}=$a(),i={top:0,left:0};kh(()=>A(r.isVirtualized)?void 0:n(),"scroll",()=>{let g=n();g&&(i={top:g.scrollTop,left:g.scrollLeft})});let{typeSelectHandlers:l}=S0({isDisabled:()=>A(r.disallowTypeAhead),keyboardDelegate:()=>A(r.keyboardDelegate),selectionManager:()=>A(r.selectionManager)}),u=()=>A(r.orientation)??"vertical",d=g=>{Me(g,l.onKeyDown),g.altKey&&g.key==="Tab"&&g.preventDefault();let x=t();if(!x?.contains(g.target))return;let v=A(r.selectionManager),b=A(r.selectOnFocus),w=T=>{T!=null&&(v.setFocusedKey(T),g.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(T):b&&!_d(g)&&v.replaceSelection(T))},S=A(r.keyboardDelegate),F=A(r.shouldFocusWrap),D=v.focusedKey();switch(g.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(S.getKeyBelow){g.preventDefault();let T;D!=null?T=S.getKeyBelow(D):T=S.getFirstKey?.(),T==null&&F&&(T=S.getFirstKey?.(D)),w(T)}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(S.getKeyAbove){g.preventDefault();let T;D!=null?T=S.getKeyAbove(D):T=S.getLastKey?.(),T==null&&F&&(T=S.getLastKey?.(D)),w(T)}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(S.getKeyLeftOf){g.preventDefault();let T=s()==="rtl",L;D!=null?L=S.getKeyLeftOf(D):L=T?S.getFirstKey?.():S.getLastKey?.(),w(L)}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(S.getKeyRightOf){g.preventDefault();let T=s()==="rtl",L;D!=null?L=S.getKeyRightOf(D):L=T?S.getLastKey?.():S.getFirstKey?.(),w(L)}break}case"Home":if(S.getFirstKey){g.preventDefault();let T=S.getFirstKey(D,Lo(g));T!=null&&(v.setFocusedKey(T),Lo(g)&&g.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(T):b&&v.replaceSelection(T))}break;case"End":if(S.getLastKey){g.preventDefault();let T=S.getLastKey(D,Lo(g));T!=null&&(v.setFocusedKey(T),Lo(g)&&g.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(T):b&&v.replaceSelection(T))}break;case"PageDown":if(S.getKeyPageBelow&&D!=null){g.preventDefault();let T=S.getKeyPageBelow(D);w(T)}break;case"PageUp":if(S.getKeyPageAbove&&D!=null){g.preventDefault();let T=S.getKeyPageAbove(D);w(T)}break;case"a":Lo(g)&&v.selectionMode()==="multiple"&&A(r.disallowSelectAll)!==!0&&(g.preventDefault(),v.selectAll());break;case"Escape":g.defaultPrevented||(g.preventDefault(),A(r.disallowEmptySelection)||v.clearSelection());break;case"Tab":if(!A(r.allowsTabNavigation)){if(g.shiftKey)x.focus();else{let T=Gh(x,{tabbable:!0}),L,I;do I=T.lastChild(),I&&(L=I);while(I);L&&!L.contains(document.activeElement)&&Je(L)}break}}},c=g=>{let x=A(r.selectionManager),v=A(r.keyboardDelegate),b=A(r.selectOnFocus);if(x.isFocused()){g.currentTarget.contains(g.target)||x.setFocused(!1);return}if(g.currentTarget.contains(g.target)){if(x.setFocused(!0),x.focusedKey()==null){let w=F=>{F!=null&&(x.setFocusedKey(F),b&&x.replaceSelection(F))},S=g.relatedTarget;S&&g.currentTarget.compareDocumentPosition(S)&Node.DOCUMENT_POSITION_FOLLOWING?w(x.lastSelectedKey()??v.getLastKey?.()):w(x.firstSelectedKey()??v.getFirstKey?.())}else if(!A(r.isVirtualized)){let w=n();if(w){w.scrollTop=i.top,w.scrollLeft=i.left;let S=w.querySelector(`[data-key="${x.focusedKey()}"]`);S&&(Je(S),qs(w,S))}}}},f=g=>{let x=A(r.selectionManager);g.currentTarget.contains(g.relatedTarget)||x.setFocused(!1)},p=g=>{n()===g.target&&g.preventDefault()},m=()=>{let g=A(r.autoFocus);if(!g)return;let x=A(r.selectionManager),v=A(r.keyboardDelegate),b;g==="first"&&(b=v.getFirstKey?.()),g==="last"&&(b=v.getLastKey?.());let w=x.selectedKeys();w.size&&(b=w.values().next().value),x.setFocused(!0),x.setFocusedKey(b);let S=t();S&&b==null&&!A(r.shouldUseVirtualFocus)&&Je(S)};return ra(()=>{r.deferAutoFocus?setTimeout(m,0):m()}),W(qt([n,()=>A(r.isVirtualized),()=>A(r.selectionManager).focusedKey()],g=>{let[x,v,b]=g;if(v)b&&r.scrollToKey?.(b);else if(b&&x){let w=x.querySelector(`[data-key="${b}"]`);w&&qs(x,w)}})),{tabIndex:k(()=>{if(!A(r.shouldUseVirtualFocus))return A(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:p,onFocusIn:c,onFocusOut:f}}function Vd(e,t){let a=()=>A(e.selectionManager),o=()=>A(e.key),r=()=>A(e.shouldUseVirtualFocus),n=v=>{a().selectionMode()!=="none"&&(a().selectionMode()==="single"?a().isSelected(o())&&!a().disallowEmptySelection()?a().toggleSelection(o()):a().replaceSelection(o()):v?.shiftKey?a().extendSelection(o()):a().selectionBehavior()==="toggle"||Lo(v)||"pointerType"in v&&v.pointerType==="touch"?a().toggleSelection(o()):a().replaceSelection(o()))},s=()=>a().isSelected(o()),i=()=>A(e.disabled)||a().isDisabled(o()),l=()=>!i()&&a().canSelectItem(o()),u=null,d=v=>{l()&&(u=v.pointerType,v.pointerType==="mouse"&&v.button===0&&!A(e.shouldSelectOnPressUp)&&n(v))},c=v=>{l()&&v.pointerType==="mouse"&&v.button===0&&A(e.shouldSelectOnPressUp)&&A(e.allowsDifferentPressOrigin)&&n(v)},f=v=>{l()&&(A(e.shouldSelectOnPressUp)&&!A(e.allowsDifferentPressOrigin)||u!=="mouse")&&n(v)},p=v=>{!l()||!["Enter"," "].includes(v.key)||(_d(v)?a().toggleSelection(o()):n(v))},m=v=>{i()&&v.preventDefault()},h=v=>{let b=t();r()||i()||!b||v.target===b&&a().setFocusedKey(o())},g=k(()=>{if(!(r()||i()))return o()===a().focusedKey()?0:-1}),x=k(()=>A(e.virtualized)?void 0:o());return W(qt([t,o,r,()=>a().focusedKey(),()=>a().isFocused()],([v,b,w,S,F])=>{v&&b===S&&F&&!w&&document.activeElement!==v&&(e.focus?e.focus():Je(v))})),{isSelected:s,isDisabled:i,allowsSelection:l,tabIndex:g,dataKey:x,onPointerDown:d,onPointerUp:c,onClick:f,onKeyDown:p,onMouseDown:m,onFocus:h}}function R0(e){let t=I0(e),o=m0({dataSource:()=>A(e.dataSource),getKey:()=>A(e.getKey),getTextValue:()=>A(e.getTextValue),getDisabled:()=>A(e.getDisabled),getSectionChildren:()=>A(e.getSectionChildren),factory:n=>e.filter?new Vu(e.filter(n)):new Vu(n)},[()=>e.filter]),r=new A0(o,t);return sn(()=>{let n=t.focusedKey();n!=null&&!o().getItem(n)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>r}}function Cr(e){return ia.findIndex(t=>t.node===e)}function E0(e){return ia[Cr(e)]}function F0(e){return ia[ia.length-1].node===e}function Wd(){return ia.filter(e=>e.isPointerBlocking)}function O0(){return[...Wd()].slice(-1)[0]}function Zs(){return Wd().length>0}function Qd(e){let t=Cr(O0()?.node);return Cr(e)<t}function B0(e){ia.push(e)}function $0(e){let t=Cr(e);t<0||ia.splice(t,1)}function q0(){for(let{node:e}of ia)e.style.pointerEvents=Qd(e)?"none":"auto"}function N0(e){if(Zs()&&!zs){let t=zt(e);Gd=document.body.style.pointerEvents,t.body.style.pointerEvents="none",zs=!0}}function z0(e){if(Zs())return;let t=zt(e);t.body.style.pointerEvents=Gd,t.body.style.length===0&&t.body.removeAttribute("style"),zs=!1}function _0(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?H0.indexOf(e.type)!==-1:!1}function Js(e){let t,a=le({type:"button"},e),[o,r]=de(a,["ref","type","disabled"]),n=Fn(()=>t,()=>"button"),s=k(()=>{let u=n();return u==null?!1:_0({tagName:u,type:o.type})}),i=k(()=>n()==="input"),l=k(()=>n()==="a"&&t?.getAttribute("href")!=null);return y(Ae,Y({as:"button",ref(u){let d=rt(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 Us(e,t,a){return ct(e,Nt(t,a))}function oo(e,t){return typeof e=="function"?e(t):e}function Oa(e){return e.split("-")[0]}function ko(e){return e.split("-")[1]}function jd(e){return e==="x"?"y":"x"}function Ys(e){return e==="y"?"height":"width"}function to(e){return["top","bottom"].includes(Oa(e))?"y":"x"}function el(e){return jd(to(e))}function Q0(e,t,a){a===void 0&&(a=!1);let o=ko(e),r=el(e),n=Ys(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=Sn(s)),[s,Sn(s)]}function j0(e){let t=Sn(e);return[Hs(e),t,Hs(t)]}function Hs(e){return e.replace(/start|end/g,t=>W0[t])}function X0(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=ko(e),n=X0(Oa(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(Hs)))),n}function Sn(e){return e.replace(/left|right|bottom|top/g,t=>G0[t])}function J0(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xd(e){return typeof e!="number"?J0(e):{top:e,right:e,bottom:e,left:e}}function kn(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 Ku(e,t,a){let{reference:o,floating:r}=e,n=to(t),s=el(t),i=Ys(s),l=Oa(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(ko(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 wr(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}=oo(t,e),m=Xd(p),g=i[f?c==="floating"?"reference":"floating":c],x=kn(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(g)))==null||a?g:g.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:l})),v=c==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),w=await(n.isElement==null?void 0:n.isElement(b))?await(n.getScale==null?void 0:n.getScale(b))||{x:1,y:1}:{x:1,y:1},S=kn(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:b,strategy:l}):v);return{top:(x.top-S.top+m.top)/w.y,bottom:(S.bottom-x.bottom+m.bottom)/w.y,left:(x.left-S.left+m.left)/w.x,right:(S.right-x.right+m.right)/w.x}}function Gu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wu(e){return K0.some(t=>e[t]>=0)}async function ox(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Oa(a),i=ko(a),l=to(a)==="y",u=["left","top"].includes(s)?-1:1,d=n&&l?-1:1,c=oo(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 Po(e){return Zd(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ua(e){var t;return(t=(Zd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zd(e){return e instanceof Node||e instanceof ft(e).Node}function Mt(e){return e instanceof Element||e instanceof ft(e).Element}function Ut(e){return e instanceof HTMLElement||e instanceof ft(e).HTMLElement}function Qu(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}function Rr(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 lx(e){return["table","td","th"].includes(Po(e))}function Bn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function tl(e){let t=al(),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 ix(e){let t=Ba(e);for(;Ut(t)&&!So(t);){if(tl(t))return t;if(Bn(t))return null;t=Ba(t)}return null}function al(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function So(e){return["html","body","#document"].includes(Po(e))}function At(e){return ft(e).getComputedStyle(e)}function $n(e){return Mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ba(e){if(Po(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Qu(e)&&e.host||ua(e);return Qu(t)?t.host:t}function Jd(e){let t=Ba(e);return So(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ut(t)&&Rr(t)?t:Jd(t)}function Lr(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=Jd(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=ft(r);return n?t.concat(s,s.visualViewport||[],Rr(r)?r:[],s.frameElement&&a?Lr(s.frameElement):[]):t.concat(r,Lr(r,[],a))}function Yd(e){let t=At(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=Ut(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=In(a)!==n||In(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function ol(e){return Mt(e)?e:e.contextElement}function Io(e){let t=ol(e);if(!Ut(t))return Fa(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=Yd(t),s=(n?In(a.width):a.width)/o,i=(n?In(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}function ec(e){let t=ft(e);return!al()||!t.visualViewport?ux:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dx(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==ft(e)?!1:t}function ao(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=ol(e),s=Fa(1);t&&(o?Mt(o)&&(s=Io(o)):s=Io(e));let i=dx(n,a,o)?ec(n):Fa(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,h=m.frameElement;for(;h&&o&&p!==m;){let g=Io(h),x=h.getBoundingClientRect(),v=At(h),b=x.left+(h.clientLeft+parseFloat(v.paddingLeft))*g.x,w=x.top+(h.clientTop+parseFloat(v.paddingTop))*g.y;l*=g.x,u*=g.y,d*=g.x,c*=g.y,l+=b,u+=w,m=ft(h),h=m.frameElement}}return kn({width:d,height:c,x:l,y:u})}function cx(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=ua(o),i=t?Bn(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=Fa(1),d=Fa(0),c=Ut(o);if((c||!c&&!n)&&((Po(o)!=="body"||Rr(s))&&(l=$n(o)),Ut(o))){let f=ao(o);u=Io(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 fx(e){return Array.from(e.getClientRects())}function tc(e){return ao(ua(e)).left+$n(e).scrollLeft}function px(e){let t=ua(e),a=$n(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+tc(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 mx(e,t){let a=ft(e),o=ua(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){n=r.width,s=r.height;let u=al();(!u||u&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:i,y:l}}function gx(e,t){let a=ao(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=Ut(e)?Io(e):Fa(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 ju(e,t,a){let o;if(t==="viewport")o=mx(e,a);else if(t==="document")o=px(ua(e));else if(Mt(t))o=gx(t,a);else{let r=ec(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return kn(o)}function ac(e,t){let a=Ba(e);return a===t||!Mt(a)||So(a)?!1:At(a).position==="fixed"||ac(a,t)}function hx(e,t){let a=t.get(e);if(a)return a;let o=Lr(e,[],!1).filter(i=>Mt(i)&&Po(i)!=="body"),r=null,n=At(e).position==="fixed",s=n?Ba(e):e;for(;Mt(s)&&!So(s);){let i=At(s),l=tl(s);!l&&i.position==="fixed"&&(r=null),(n?!l&&!r:!l&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Rr(s)&&!l&&ac(e,s))?o=o.filter(d=>d!==s):r=i,s=Ba(s)}return t.set(e,o),o}function xx(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?Bn(t)?[]:hx(t,this._c):[].concat(a),o],i=s[0],l=s.reduce((u,d)=>{let c=ju(t,d,r);return u.top=ct(c.top,u.top),u.right=Nt(c.right,u.right),u.bottom=Nt(c.bottom,u.bottom),u.left=ct(c.left,u.left),u},ju(t,i,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yx(e){let{width:t,height:a}=Yd(e);return{width:t,height:a}}function vx(e,t,a){let o=Ut(t),r=ua(t),n=a==="fixed",s=ao(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=Fa(0);if(o||!o&&!n)if((Po(t)!=="body"||Rr(r))&&(i=$n(t)),o){let c=ao(t,!0,n,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else r&&(l.x=tc(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 Ts(e){return At(e).position==="static"}function Xu(e,t){return!Ut(e)||At(e).position==="fixed"?null:t?t(e):e.offsetParent}function oc(e,t){let a=ft(e);if(Bn(e))return a;if(!Ut(e)){let r=Ba(e);for(;r&&!So(r);){if(Mt(r)&&!Ts(r))return r;r=Ba(r)}return a}let o=Xu(e,t);for(;o&&lx(o)&&Ts(o);)o=Xu(o,t);return o&&So(o)&&Ts(o)&&!tl(o)?a:o||ix(e)||a}function Cx(e){return At(e).direction==="rtl"}function wx(e,t){let a=null,o,r=ua(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=bn(d),m=bn(r.clientWidth-(u+c)),h=bn(r.clientHeight-(d+f)),g=bn(u),v={rootMargin:-p+"px "+-m+"px "+-h+"px "+-g+"px",threshold:ct(0,Nt(1,l))||1},b=!0;function w(S){let F=S[0].intersectionRatio;if(F!==l){if(!b)return s();F?s(!1,F):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!1}try{a=new IntersectionObserver(w,{...v,root:r.ownerDocument})}catch{a=new IntersectionObserver(w,v)}a.observe(e)}return s(!0),n}function Lx(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=ol(e),d=r||n?[...u?Lr(u):[],...Lr(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",a,{passive:!0}),n&&x.addEventListener("resize",a)});let c=u&&i?wx(u,a):null,f=-1,p=null;s&&(p=new ResizeObserver(x=>{let[v]=x;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),a()}),u&&!l&&p.observe(u),p.observe(t));let m,h=l?ao(e):null;l&&g();function g(){let x=ao(e);h&&(x.x!==h.x||x.y!==h.y||x.width!==h.width||x.height!==h.height)&&a(),h=x,m=requestAnimationFrame(g)}return a(),()=>{var x;d.forEach(v=>{r&&v.removeEventListener("scroll",a),n&&v.removeEventListener("resize",a)}),c?.(),(x=p)==null||x.disconnect(),p=null,l&&cancelAnimationFrame(m)}}function nl(){let e=qe(rl);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function sl(e){let t=nl(),a=le({size:_s},e),[o,r]=de(a,["ref","style","size"]),n=()=>t.currentPlacement().split("-")[0],s=Ex(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*(_s/o.size),c=()=>`rotate(${Dx[n()]} ${Zu} ${Zu}) translate(0 2)`;return y(Ae,Y({as:"div",ref(f){let p=rt(t.setArrowRef,o.ref);typeof p=="function"&&p(f)},"aria-hidden":"true",get style(){return Dn({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=Tx(),p=f.firstChild;return G(()=>E(p,"transform",c())),f}}))}function Ex(e){let[t,a]=N();return W(()=>{let o=e();o&&a(Dh(o).getComputedStyle(o))}),t}function Fx(e){let t=nl(),[a,o]=de(e,["ref","style"]);return y(Ae,Y({as:"div",ref(r){let n=rt(t.setPositionerRef,a.ref);typeof n=="function"&&n(r)},"data-popper-positioner":"",get style(){return Dn({position:"absolute",top:0,left:0,"min-width":"max-content"},a.style)}},o))}function Ju(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 Ox(e,t){return{contextElement:e,getBoundingClientRect:()=>{let o=t(e);return o?Ju(o):e?e.getBoundingClientRect():Ju()}}}function Bx(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function qx(e,t){let[a,o]=e.split("-"),r=$x[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 Nx(e){let t=le({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]=N(),[r,n]=N(),[s,i]=N(t.placement),l=()=>Ox(t.anchorRef?.(),t.getAnchorRect),{direction:u}=$a();async function d(){let f=l(),p=a(),m=r();if(!f||!p)return;let h=(m?.clientHeight||0)/2,g=typeof t.gutter=="number"?t.gutter+h:t.gutter??h;p.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),f.getBoundingClientRect();let x=[Ix(({placement:F})=>{let D=!!F.split("-")[1];return{mainAxis:g,crossAxis:D?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let F=typeof t.flip=="string"?t.flip.split(" "):void 0;if(F!==void 0&&!F.every(Bx))throw new Error("`flip` expects a spaced-delimited list of placements");x.push(kx({padding:t.overflowPadding,fallbackPlacements:F}))}(t.slide||t.overlap)&&x.push(Sx({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),x.push(Px({padding:t.overflowPadding,apply({availableWidth:F,availableHeight:D,rects:T}){let L=Math.round(T.reference.width);F=Math.floor(F),D=Math.floor(D),p.style.setProperty("--kb-popper-anchor-width",`${L}px`),p.style.setProperty("--kb-popper-content-available-width",`${F}px`),p.style.setProperty("--kb-popper-content-available-height",`${D}px`),t.sameWidth&&(p.style.width=`${L}px`),t.fitViewport&&(p.style.maxWidth=`${F}px`,p.style.maxHeight=`${D}px`)}})),t.hideWhenDetached&&x.push(Mx({padding:t.detachedPadding})),m&&x.push(Ax({element:m,padding:t.arrowPadding}));let v=await Rx(f,p,{placement:t.placement,strategy:"absolute",middleware:x,platform:{...rc,isRTL:()=>u()==="rtl"}});if(i(v.placement),t.onCurrentPlacementChange?.(v.placement),!p)return;p.style.setProperty("--kb-popper-content-transform-origin",qx(v.placement,u()));let b=Math.round(v.x),w=Math.round(v.y),S;if(t.hideWhenDetached&&(S=v.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(p.style,{top:"0",left:"0",transform:`translate3d(${b}px, ${w}px, 0)`,visibility:S}),m&&v.middlewareData.arrow){let{x:F,y:D}=v.middlewareData.arrow,T=v.placement.split("-")[0];Object.assign(m.style,{left:F!=null?`${F}px`:"",top:D!=null?`${D}px`:"",[T]:"100%"})}}W(()=>{let f=l(),p=a();if(!f||!p)return;let m=Lx(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(rl.Provider,{value:c,get children(){return t.children}})}function zx(e){let t=a=>{a.key===Ws.Escape&&e.onEscapeKeyDown?.(a)};W(()=>{if(Xe||A(e.isDisabled))return;let a=e.ownerDocument?.()??zt();a.addEventListener("keydown",t),X(()=>{a.removeEventListener("keydown",t)})})}function Ux(e,t){let a,o=Qh,r=()=>zt(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(`[${Ln}]`)||!vt(r(),f)||vt(t(),f)?!1:!e.shouldExcludeElement?.(f)},u=c=>{function f(){let p=t(),m=c.target;if(!p||!m||!l(c))return;let h=Ve([n,i]);m.addEventListener(Yu,h,{once:!0});let g=new CustomEvent(Yu,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:c.button===2||$h(c)&&c.button===0}});m.dispatchEvent(g)}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(ed,m,{once:!0});let h=new CustomEvent(ed,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:!1}});p.dispatchEvent(h)};W(()=>{Xe||A(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 Hx(){return qe(sc)}function _x(e){let t,a=Hx(),[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?.()}};Ux({shouldExcludeElement:c=>t?o.excludedElements?.some(f=>vt(f(),c))||[...n].some(f=>vt(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),zx({ownerDocument:()=>zt(t),onEscapeKeyDown:c=>{!t||!ut.isTopMostLayer(t)||(o.onEscapeKeyDown?.(c),!c.defaultPrevented&&o.onDismiss&&(c.preventDefault(),o.onDismiss()))}}),ra(()=>{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(qt([()=>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(sc.Provider,{value:d,get children(){return y(Ae,Y({as:"div",ref(c){let f=rt(p=>t=p,o.ref);typeof f=="function"&&f(c)}},r))}})}function lc(e={}){let[t,a]=Od({value:()=>A(e.open),defaultValue:()=>!!A(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),o=()=>{a(!0)},r=()=>{a(!1)};return{isOpen:t,setIsOpen:a,open:o,close:r,toggle:()=>{t()?r():o()}}}function uc(){let e=qe(ic);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function Tr(){let e=qe(dc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function cc(e){let t=Mr(),a=uc(),o=`${t.generateId("item")}-${it()}`,r=le({id:o},e),[n,s]=de(r,["value","disabled","onPointerDown"]),[i,l]=N(),[u,d]=N(),[c,f]=N(),[p,m]=N(),[h,g]=N(!1),x=k(()=>a.isSelectedValue(n.value)),v=k(()=>n.disabled||t.isDisabled()||!1),b=F=>{Me(F,n.onPointerDown),h()&&F.preventDefault()},w=k(()=>({...t.dataset(),"data-disabled":v()?"":void 0,"data-checked":x()?"":void 0})),S={value:()=>n.value,dataset:w,isSelected:x,isDisabled:v,inputId:i,labelId:u,descriptionId:c,inputRef:p,select:()=>a.setSelectedValue(n.value),generateId:Pr(()=>s.id),registerInput:bt(l),registerLabel:bt(d),registerDescription:bt(f),setIsFocused:g,setInputRef:m};return y(dc.Provider,{value:S,get children(){return y(Ae,Y({as:"div",role:"group",onPointerDown:b},w,s))}})}function fc(e){let t=Tr(),a=le({id:t.generateId("control")},e),[o,r]=de(a,["onClick","onKeyDown"]);return y(Ae,Y({as:"div",onClick:i=>{Me(i,o.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:i=>{Me(i,o.onKeyDown),i.key===Ws.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),r))}function pc(e){let t=Tr(),a=le({id:t.generateId("description")},e);return W(()=>X(t.registerDescription(a.id))),y(Ae,Y({as:"div"},()=>t.dataset(),a))}function mc(e){let t=Tr(),a=le({id:t.generateId("indicator")},e),[o,r]=de(a,["ref","forceMount"]),[n,s]=N(),{present:i}=Kd({show:()=>o.forceMount||t.isSelected(),element:()=>n()??null});return y(Q,{get when(){return i()},get children(){return y(Ae,Y({as:"div",ref(l){let u=rt(s,o.ref);typeof u=="function"&&u(l)}},()=>t.dataset(),r))}})}function gc(e){let t=Mr(),a=uc(),o=Tr(),r=le({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]=N(!1),c=m=>{if(Me(m,n.onChange),m.stopPropagation(),!u()){a.setSelectedValue(o.value());let h=m.target;h.checked=o.isSelected()}d(!1)},f=m=>{Me(m,n.onFocus),o.setIsFocused(!0)},p=m=>{Me(m,n.onBlur),o.setIsFocused(!1)};return W(qt([()=>o.isSelected(),()=>o.value()],m=>{if(!m[0]&&m[1]===o.value())return;d(!0);let h=o.inputRef();h?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),h?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},{defer:!0})),W(()=>X(o.registerInput(s.id))),y(Ae,Y({as:"input",ref(m){let h=rt(o.setInputRef,n.ref);typeof h=="function"&&h(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 Dn({...Td},n.style)},get"aria-labelledby"(){return i()},get"aria-describedby"(){return l()},onChange:c,onFocus:f,onBlur:p},()=>o.dataset(),s))}function hc(e){let t=Tr(),a=le({id:t.generateId("label")},e);return W(()=>X(t.registerLabel(a.id))),y(Ae,Y({as:"label",get for(){return t.inputId()}},()=>t.dataset(),a))}function xc(e){return y(Yh,Y({as:"span"},e))}function yc(e){let t,a=`radiogroup-${it()}`,o=le({id:a,orientation:"vertical"},e),[r,n,s]=de(o,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],Zh),[i,l]=Ar({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:m=>r.onChange?.(m)}),{formControlContext:u}=Jh(n);e0(()=>t,()=>l(r.defaultValue??""));let d=()=>u.getAriaLabelledBy(A(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 h of t.querySelectorAll("[type='radio']")){let g=h;g.checked=f(g.value)}}};return y(Dd.Provider,{value:u,get children(){return y(ic.Provider,{value:p,get children(){return y(Ae,Y({as:"div",ref(m){let h=rt(g=>t=g,r.ref);typeof h=="function"&&h(m)},role:"radiogroup",get id(){return A(n.id)},get"aria-invalid"(){return u.validationState()==="invalid"||void 0},get"aria-required"(){return u.isRequired()||void 0},get"aria-disabled"(){return u.isDisabled()||void 0},get"aria-readonly"(){return u.isReadOnly()||void 0},get"aria-orientation"(){return r.orientation},get"aria-labelledby"(){return d()},get"aria-describedby"(){return c()}},()=>u.dataset(),s))}})}})}function Gx(e,t,a){let o=C0({usage:"search",sensitivity:"base"}),r=k(()=>{let n=A(e.keyboardDelegate);return n||new Kx(e.collection,t,o)});return M0({selectionManager:()=>A(e.selectionManager),keyboardDelegate:r,autoFocus:()=>A(e.autoFocus),deferAutoFocus:()=>A(e.deferAutoFocus),shouldFocusWrap:()=>A(e.shouldFocusWrap),disallowEmptySelection:()=>A(e.disallowEmptySelection),selectOnFocus:()=>A(e.selectOnFocus),disallowTypeAhead:()=>A(e.disallowTypeAhead),shouldUseVirtualFocus:()=>A(e.shouldUseVirtualFocus),allowsTabNavigation:()=>A(e.allowsTabNavigation),isVirtualized:()=>A(e.isVirtualized),scrollToKey:n=>A(e.scrollToKey)?.(n),orientation:()=>A(e.orientation)},t)}function Wx(e,t){let[a,o]=N(!1),r={pause(){o(!0)},resume(){o(!1)}},n=null,s=m=>e.onMountAutoFocus?.(m),i=m=>e.onUnmountAutoFocus?.(m),l=()=>zt(t()),u=()=>{let m=l().createElement("span");return m.setAttribute("data-focus-trap",""),m.tabIndex=0,Object.assign(m.style,Td),m},d=()=>{let m=t();return m?Ad(m,!0).filter(h=>!h.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 h=yr(m);return!h||vt(m,h)?!1:Rd(h)};W(()=>{if(Xe)return;let m=t();if(!m)return;ad.add(r);let h=yr(m);if(!vt(m,h)){let x=new CustomEvent(Ds,td);m.addEventListener(Ds,s),m.dispatchEvent(x),x.defaultPrevented||setTimeout(()=>{Je(c()),yr(m)===h&&Je(m)},0)}X(()=>{m.removeEventListener(Ds,s),setTimeout(()=>{let x=new CustomEvent(Es,td);p()&&x.preventDefault(),m.addEventListener(Es,i),m.dispatchEvent(x),x.defaultPrevented||Je(h??l().body),m.removeEventListener(Es,i),ad.remove(r)},0)})}),W(()=>{if(Xe)return;let m=t();if(!m||!A(e.trapFocus)||a())return;let h=x=>{let v=x.target;v?.closest(`[${Ln}]`)||(vt(m,v)?n=v:Je(n))},g=x=>{let b=x.relatedTarget??yr(m);b?.closest(`[${Ln}]`)||vt(m,b)||Je(n)};l().addEventListener("focusin",h),l().addEventListener("focusout",g),X(()=>{l().removeEventListener("focusin",h),l().removeEventListener("focusout",g)})}),W(()=>{if(Xe)return;let m=t();if(!m||!A(e.trapFocus)||a())return;let h=u();m.insertAdjacentElement("afterbegin",h);let g=u();m.insertAdjacentElement("beforeend",g);function x(b){let w=c(),S=f();b.relatedTarget===w?Je(S):Je(w)}h.addEventListener("focusin",x),g.addEventListener("focusin",x);let v=new MutationObserver(b=>{for(let w of b)w.previousSibling===g&&(g.remove(),m.insertAdjacentElement("beforeend",g)),w.nextSibling===h&&(h.remove(),m.insertAdjacentElement("afterbegin",h))});v.observe(m,{childList:!0,subtree:!1}),X(()=>{h.removeEventListener("focusin",x),g.removeEventListener("focusin",x),h.remove(),g.remove(),v.disconnect()})})}function jx(e){W(()=>{A(e.isDisabled)||X(Xx(A(e.targets),A(e.root)))})}function Xx(e,t=document.body){let a=new Set(e),o=new Set,r=l=>{for(let f of l.querySelectorAll(`[${Qx}], [${Ln}]`))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=hr.get(l)??0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),o.add(l),hr.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=hr.get(l);if(u==null)return;u===1?(l.removeAttribute("aria-hidden"),hr.delete(l)):hr.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 bc(){return qe(vc)}function da(){let e=bc();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function ll(){let e=qe(Cc);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function Ht(){let e=qe(wc);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function il(e){let t,a=Ht(),o=da(),r=le({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]=N(),[u,d]=N(),[c,f]=N(),p=()=>o.listState().selectionManager(),m=()=>s.id,h=()=>p().focusedKey()===m(),g=()=>{n.onSelect?.(),n.closeOnSelect&&setTimeout(()=>{o.close(!0)})};p0({getItem:()=>({ref:()=>t,type:"item",key:m(),textValue:n.textValue??c()?.textContent??t?.textContent??"",disabled:n.disabled??!1})});let x=Vd({key:m,selectionManager:p,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),v=L=>{Me(L,n.onPointerMove),L.pointerType==="mouse"&&(n.disabled?o.onItemLeave(L):(o.onItemEnter(L),L.defaultPrevented||(Je(L.currentTarget),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(m()))))},b=L=>{Me(L,n.onPointerLeave),L.pointerType==="mouse"&&o.onItemLeave(L)},w=L=>{Me(L,n.onPointerUp),!n.disabled&&L.button===0&&g()},S=L=>{if(Me(L,n.onKeyDown),!L.repeat&&!n.disabled)switch(L.key){case"Enter":case" ":g();break}},F=k(()=>{if(n.indeterminate)return"mixed";if(n.checked!=null)return n.checked}),D=k(()=>({"data-indeterminate":n.indeterminate?"":void 0,"data-checked":n.checked&&!n.indeterminate?"":void 0,"data-disabled":n.disabled?"":void 0,"data-highlighted":h()?"":void 0})),T={isChecked:()=>n.checked,dataset:D,setLabelRef:f,generateId:Pr(()=>s.id),registerLabel:bt(l),registerDescription:bt(d)};return y(Cc.Provider,{value:T,get children(){return y(Ae,Y({as:"div",ref(L){let I=rt(U=>t=U,n.ref);typeof I=="function"&&I(L)},get tabIndex(){return x.tabIndex()},get"aria-checked"(){return F()},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([S,x.onKeyDown])},get onMouseDown(){return Ve([n.onMouseDown,x.onMouseDown])},get onFocus(){return Ve([n.onFocus,x.onFocus])},onPointerMove:v,onPointerLeave:b},D,s))}})}function Lc(e){let t=le({closeOnSelect:!1},e),[a,o]=de(t,["checked","defaultChecked","onChange","onSelect"]),r=r0({isSelected:()=>a.checked,defaultIsSelected:()=>a.defaultChecked,onSelectedChange:s=>a.onChange?.(s),isDisabled:()=>o.disabled});return y(il,Y({role:"menuitemcheckbox",get checked(){return r.isSelected()},onSelect:()=>{a.onSelect?.(),r.toggle()}},o))}function qn(){return qe(s1)}function Ic(e){let t=Ht(),a=da(),o=qn(),{direction:r}=$a(),n=le({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=Fn(()=>a.triggerRef(),()=>"button"),d=k(()=>u()==="a"&&a.triggerRef()?.getAttribute("href")!=null);W(qt(()=>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=>{Me(x,s.onPointerDown),x.currentTarget.dataset.pointerType=x.pointerType,!s.disabled&&x.pointerType!=="touch"&&x.button===0&&c()},p=x=>{Me(x,s.onClick),s.disabled||x.currentTarget.dataset.pointerType==="touch"&&c()},m=x=>{if(Me(x,s.onKeyDown),!s.disabled){if(d())switch(x.key){case"Enter":case" ":return}switch(x.key){case"Enter":case" ":case id.first(t.orientation()):x.stopPropagation(),x.preventDefault(),Xh(x.currentTarget),a.open("first"),o?.setAutoFocusMenu(!0),o?.setValue(l);break;case id.last(t.orientation()):x.stopPropagation(),x.preventDefault(),a.open("last");break;case Ir.next(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.nextMenu();break;case Ir.previous(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.previousMenu();break}}},h=x=>{Me(x,s.onMouseOver),a.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&o!==void 0&&o.value()!==void 0&&o.setValue(l)},g=x=>{Me(x,s.onFocus),o!==void 0&&x.currentTarget.dataset.pointerType!=="touch"&&o.setValue(l)};return W(()=>X(a.registerTriggerId(s.id))),y(Js,Y({ref(x){let v=rt(a.setTriggerRef,s.ref);typeof v=="function"&&v(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:h,onClick:p,onKeyDown:m,onFocus:g,role:o!==void 0?"menuitem":void 0},()=>a.dataset(),i))}function Sc(){return qe(l1)}function kc(e){let t,a=Ht(),o=da(),r=qn(),n=Sc(),{direction:s}=$a(),i=le({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=Gx({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);Wx({trapFocus:()=>c()&&o.isOpen(),onMountAutoFocus:b=>{r===void 0&&l.onOpenAutoFocus?.(b)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let p=b=>{if(vt(b.currentTarget,b.target)&&(b.key==="Tab"&&o.isOpen()&&b.preventDefault(),r!==void 0&&b.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(b.key){case Ir.next(s(),a.orientation()):b.stopPropagation(),b.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.nextMenu();break;case Ir.previous(s(),a.orientation()):if(b.currentTarget.hasAttribute("data-closed"))break;b.stopPropagation(),b.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.previousMenu();break}},m=b=>{l.onEscapeKeyDown?.(b),r?.setAutoFocusMenu(!1),o.close(!0)},h=b=>{l.onFocusOutside?.(b),a.isModal()&&b.preventDefault()},g=b=>{Me(b,l.onPointerEnter),o.isOpen()&&(o.parentMenuContext()?.listState().selectionManager().setFocused(!1),o.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},x=b=>{if(Me(b,l.onPointerMove),b.pointerType!=="mouse")return;let w=b.target,S=d!==b.clientX;vt(b.currentTarget,w)&&S&&(o.setPointerDir(b.clientX>d?"right":"left"),d=b.clientX)};W(()=>X(o.registerContentId(l.id)));let v={ref:rt(b=>{o.setContentRef(b),t=b},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:g,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(Ae,Y({as:"div"},()=>o.dataset(),v,u))},get children(){return y(nc.Positioner,{get children(){return y(_x,Y({get disableOutsidePointerEvents(){return k(()=>!!c())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return Dn({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},l.style)},onEscapeKeyDown:m,onFocusOutside:h,get onDismiss(){return o.close}},()=>o.dataset(),v,u))}})}})}})}function i1(e){let t,a=Ht(),o=da(),[r,n]=de(e,["ref"]);return n1({element:()=>t??null,enabled:()=>o.contentPresent()&&a.preventScroll()}),y(kc,Y({ref(s){let i=rt(l=>{t=l},r.ref);typeof i=="function"&&i(s)}},n))}function u1(){let e=qe(Pc);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function ul(e){let t=Ht(),a=le({id:t.generateId(`group-${it()}`)},e),[o,r]=N(),n={generateId:Pr(()=>a.id),registerLabelId:bt(r)};return y(Pc.Provider,{value:n,get children(){return y(Ae,Y({as:"div",role:"group",get"aria-labelledby"(){return o()}},a))}})}function Mc(e){let t=u1(),a=le({id:t.generateId("label")},e),[o,r]=de(a,["id"]);return W(()=>X(t.registerLabelId(o.id))),y(Ae,Y({as:"span",get id(){return o.id},"aria-hidden":"true"},r))}function Ac(e){let t=da(),a=le({children:"\u25BC"},e);return y(Ae,Y({as:"span","aria-hidden":"true"},()=>t.dataset(),a))}function Rc(e){return y(il,Y({role:"menuitem",closeOnSelect:!0},e))}function Tc(e){let t=ll(),a=le({id:t.generateId("description")},e),[o,r]=de(a,["id"]);return W(()=>X(t.registerDescription(o.id))),y(Ae,Y({as:"div",get id(){return o.id}},()=>t.dataset(),r))}function Dc(e){let t=ll(),a=le({id:t.generateId("indicator")},e),[o,r]=de(a,["forceMount"]);return y(Q,{get when(){return o.forceMount||t.isChecked()},get children(){return y(Ae,Y({as:"div"},()=>t.dataset(),r))}})}function Ec(e){let t=ll(),a=le({id:t.generateId("label")},e),[o,r]=de(a,["ref","id"]);return W(()=>X(t.registerLabel(o.id))),y(Ae,Y({as:"div",ref(n){let s=rt(t.setLabelRef,o.ref);typeof s=="function"&&s(n)},get id(){return o.id}},()=>t.dataset(),r))}function Fc(e){let t=da();return y(Q,{get when(){return t.contentPresent()},get children(){return y(Ss,e)}})}function d1(){let e=qe(Oc);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Bc(e){let a=Ht().generateId(`radiogroup-${it()}`),o=le({id:a},e),[r,n]=de(o,["value","defaultValue","onChange","disabled"]),[s,i]=Ar({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:u=>r.onChange?.(u)}),l={isDisabled:()=>r.disabled,isSelectedValue:u=>u===s(),setSelectedValue:i};return y(Oc.Provider,{value:l,get children(){return y(ul,n)}})}function $c(e){let t=d1(),a=le({closeOnSelect:!1},e),[o,r]=de(a,["value","onSelect"]);return y(il,Y({role:"menuitemradio",get checked(){return t.isSelectedValue(o.value)},onSelect:()=>{o.onSelect?.(),t.setSelectedValue(o.value)}},r))}function c1(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 f1(e,t){return t?jh([e.clientX,e.clientY],t):!1}function qc(e){let t=Ht(),a=$d(),o=bc(),r=qn(),n=Sc(),s=le({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[i,l]=de(s,["open","defaultOpen","onOpenChange"]),u=0,d=null,c="right",[f,p]=N(),[m,h]=N(),[g,x]=N(),[v,b]=N(),[w,S]=N(!0),[F,D]=N(l.placement),[T,L]=N([]),[I,U]=N([]),{DomCollectionProvider:R}=f0({items:I,onItemsChange:U}),te=lc({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:J=>i.onOpenChange?.(J)}),{present:ie}=Kd({show:()=>t.forceMount()||te.isOpen(),element:()=>v()??null}),ve=R0({selectionMode:"none",dataSource:I}),ce=J=>{S(J),te.open()},he=(J=!1)=>{te.close(),J&&o&&o.close(!0)},xe=J=>{S(J),te.toggle()},fe=()=>{let J=v();J&&(Je(J),ve.selectionManager().setFocused(!0),ve.selectionManager().setFocusedKey(void 0))},De=()=>{n!=null?setTimeout(()=>fe()):fe()},ke=J=>{L(Qe=>[...Qe,J]);let It=o?.registerNestedMenu(J);return()=>{L(Qe=>$s(Qe,J)),It?.()}},Oe=J=>c===d?.side&&f1(J,d?.area),tt=J=>{Oe(J)&&J.preventDefault()},B=J=>{Oe(J)||De()},Ee=J=>{Oe(J)&&J.preventDefault()};jx({isDisabled:()=>!(o==null&&te.isOpen()&&t.isModal()),targets:()=>[v(),...T()].filter(Boolean)}),W(()=>{let J=v();if(!J||!o)return;let It=o.registerNestedMenu(J);X(()=>{It()})}),W(()=>{o===void 0&&r?.registerMenu(t.value(),[v(),...T()])}),W(()=>{o!==void 0||r===void 0||(r.value()===t.value()?(g()?.focus(),r.autoFocusMenu()&&ce(!0)):he())}),W(()=>{o!==void 0||r===void 0||te.isOpen()&&r.setValue(t.value())}),X(()=>{o===void 0&&r?.unregisterMenu(t.value())});let La={dataset:k(()=>({"data-expanded":te.isOpen()?"":void 0,"data-closed":te.isOpen()?void 0:""})),isOpen:te.isOpen,contentPresent:ie,nestedMenus:T,currentPlacement:F,pointerGraceTimeoutId:()=>u,autoFocus:w,listState:()=>ve,parentMenuContext:()=>o,triggerRef:g,contentRef:v,triggerId:f,contentId:m,setTriggerRef:x,setContentRef:b,open:ce,close:he,toggle:xe,focusContent:De,onItemEnter:tt,onItemLeave:B,onTriggerLeave:Ee,setPointerDir:J=>c=J,setPointerGraceTimeoutId:J=>u=J,setPointerGraceIntent:J=>d=J,registerNestedMenu:ke,registerItemToParentDomCollection:a?.registerItem,registerTriggerId:bt(p),registerContentId:bt(h)};return y(R,{get children(){return y(vc.Provider,{value:La,get children(){return y(Q,{when:n===void 0,get fallback(){return l.children},get children(){return y(nc,Y({anchorRef:g,contentRef:v,onCurrentPlacementChange:D},l))}})}})}})}function Nc(e){let{direction:t}=$a();return y(qc,Y({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function zc(e){let t=da(),a=Ht(),[o,r]=de(e,["onFocusOutside","onKeyDown"]),{direction:n}=$a();return y(kc,Y({onOpenAutoFocus:d=>{d.preventDefault()},onCloseAutoFocus:d=>{d.preventDefault()},onFocusOutside:d=>{o.onFocusOutside?.(d);let c=d.target;vt(t.triggerRef(),c)||t.close()},onKeyDown:d=>{Me(d,o.onKeyDown);let c=vt(d.currentTarget,d.target),f=p1.close(n(),a.orientation()).includes(d.key),p=t.parentMenuContext()!=null;c&&f&&p&&(t.close(),Je(t.triggerRef()))}},r))}function Uc(e){let t,a=Ht(),o=da(),r=le({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}=$a(),d=()=>n.id,c=()=>{let b=o.parentMenuContext();if(b==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return b.listState().selectionManager()},f=()=>o.listState().collection(),p=()=>c().focusedKey()===d(),m=Vd({key:d,selectionManager:c,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),h=b=>{Me(b,n.onClick),!o.isOpen()&&!n.disabled&&o.open(!0)},g=b=>{if(Me(b,n.onPointerMove),b.pointerType!=="mouse")return;let w=o.parentMenuContext();if(w?.onItemEnter(b),!b.defaultPrevented){if(n.disabled){w?.onItemLeave(b);return}!o.isOpen()&&!i&&(o.parentMenuContext()?.setPointerGraceIntent(null),i=window.setTimeout(()=>{o.open(!1),l()},100)),w?.onItemEnter(b),b.defaultPrevented||(o.listState().selectionManager().isFocused()&&(o.listState().selectionManager().setFocused(!1),o.listState().selectionManager().setFocusedKey(void 0)),Je(b.currentTarget),w?.listState().selectionManager().setFocused(!0),w?.listState().selectionManager().setFocusedKey(d()))}},x=b=>{if(Me(b,n.onPointerLeave),b.pointerType!=="mouse")return;l();let w=o.parentMenuContext(),S=o.contentRef();if(S){w?.setPointerGraceIntent({area:c1(o.currentPlacement(),b,S),side:o.currentPlacement().split("-")[0]}),window.clearTimeout(w?.pointerGraceTimeoutId());let F=window.setTimeout(()=>{w?.setPointerGraceIntent(null)},300);w?.setPointerGraceTimeoutId(F)}else{if(w?.onTriggerLeave(b),b.defaultPrevented)return;w?.setPointerGraceIntent(null)}w?.onItemLeave(b)},v=b=>{Me(b,n.onKeyDown),!b.repeat&&(n.disabled||m1.open(u(),a.orientation()).includes(b.key)&&(b.stopPropagation(),b.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 b=o.registerItemToParentDomCollection({ref:()=>t,type:"item",key:d(),textValue:n.textValue??t?.textContent??"",disabled:n.disabled??!1});X(b)}),W(qt(()=>o.parentMenuContext()?.pointerGraceTimeoutId(),b=>{X(()=>{window.clearTimeout(b),o.parentMenuContext()?.setPointerGraceIntent(null)})})),W(()=>X(o.registerTriggerId(n.id))),X(()=>{l()}),y(Ae,Y({as:"div",ref(b){let w=rt(S=>{o.setTriggerRef(S),t=S},n.ref);typeof w=="function"&&w(b)},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([h,m.onClick])},get onKeyDown(){return Ve([v,m.onKeyDown])},get onMouseDown(){return Ve([n.onMouseDown,m.onMouseDown])},get onFocus(){return Ve([n.onFocus,m.onFocus])},onPointerMove:g,onPointerLeave:x},()=>o.dataset(),s))}function g1(e){let t=qn(),a=`menu-${it()}`,o=le({id:a,modal:!0},e),[r,n]=de(o,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=lc({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:Pr(()=>r.id),value:()=>r.value,orientation:()=>r.orientation??t?.orientation()??"horizontal"};return y(wc.Provider,{value:i,get children(){return y(qc,Y({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},n))}})}function Nn(e){let t,a=le({orientation:"horizontal"},e),[o,r]=de(a,["ref","orientation"]),n=Fn(()=>t,()=>"hr");return y(Ae,Y({as:"hr",ref(s){let i=rt(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 Hc(e){let t=Ht(),a=da(),[o,r]=de(e,["onCloseAutoFocus","onInteractOutside"]),n=!1;return y(i1,Y({onCloseAutoFocus:l=>{o.onCloseAutoFocus?.(l),n||Je(a.triggerRef()),n=!1,l.preventDefault()},onInteractOutside:l=>{o.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(n=!0)}},r))}function _c(e){let t=`dropdownmenu-${it()}`,a=le({id:t},e);return y(g1,a)}function z1(){return v1()}function Kc(){return b1()}function br(){return C1()}function dd(){return w1()}function cd(){return dl()}function U1(){return(()=>{var e=dl();return e.style.setProperty("transform","rotate(90deg)"),e})()}function H1(){return(()=>{var e=dl();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function _1(){return L1()}function V1(){return I1()}function K1(){return S1()}function G1(){return k1()}function W1(){return P1()}function Q1(){return M1()}function j1(){return A1()}function X1(){return R1()}function Z1(){return T1()}function J1(e){return(()=>{var t=Vc(),a=t.firstChild;return G(()=>E(a,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function Y1(){return D1()}function ey(){return E1()}function ty(e){return[y(Q,{get when(){return e.checked},get children(){var t=Vc(),a=t.firstChild;return G(()=>E(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),y(Q,{get when(){return!e.checked},get children(){var t=F1(),a=t.firstChild;return G(()=>E(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function ay(){return O1()}function oy(){return B1()}function ry(){return $1()}function ny(){return q1()}function fd(){let e=it();return(()=>{var t=N1(),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,h=m.firstChild,g=m.nextSibling,x=g.firstChild,v=g.nextSibling,b=v.nextSibling,w=b.firstChild,S=b.nextSibling,F=S.firstChild,D=S.nextSibling,T=D.nextSibling,L=T.firstChild,I=T.nextSibling,U=I.firstChild,R=I.nextSibling,te=R.nextSibling,ie=te.firstChild,ve=te.nextSibling,ce=ve.firstChild,he=ve.nextSibling,xe=he.nextSibling,fe=xe.firstChild,De=xe.nextSibling,ke=De.firstChild,Oe=De.nextSibling,tt=Oe.firstChild,B=tt.nextSibling,Ee=B.nextSibling,pe=Ee.nextSibling,La=pe.nextSibling,J=Oe.nextSibling,It=J.firstChild,Qe=J.nextSibling,io=Qe.firstChild,gt=Qe.nextSibling,Ia=gt.firstChild,Va=Ia.nextSibling,Qt=Va.nextSibling,Ot=Qt.firstChild,jt=Ot.nextSibling,z=jt.nextSibling,Ce=z.nextSibling,at=Ce.nextSibling,Le=at.nextSibling,be=Le.nextSibling,Pe=be.nextSibling,He=Pe.nextSibling,ye=He.nextSibling,Xt=ye.nextSibling,Zt=Xt.nextSibling,St=gt.nextSibling,Ka=St.firstChild,Jt=St.nextSibling,Ga=Jt.firstChild,Yt=Jt.nextSibling,Sa=Yt.firstChild,Kr=Sa.nextSibling,Fo=Yt.nextSibling,Gr=Fo.firstChild,uo=Fo.nextSibling,Wr=uo.firstChild,Oo=uo.nextSibling,Bo=Oo.firstChild,$o=Bo.nextSibling,co=$o.nextSibling,Kl=co.nextSibling,Gl=Kl.nextSibling,Wl=Gl.nextSibling,Ql=Wl.nextSibling,jl=Ql.nextSibling,Xl=jl.nextSibling,Zl=Xl.nextSibling,Jl=Zl.nextSibling,Yl=Jl.nextSibling,ei=Yl.nextSibling,ti=ei.nextSibling,ai=ti.nextSibling,oi=ai.nextSibling,ri=oi.nextSibling,_p=ri.nextSibling;return E(a,"id",`a-${e}`),E(o,"fill",`url(#a-${e})`),E(n,"id",`am-${e}`),E(s,"id",`b-${e}`),E(i,"filter",`url(#am-${e})`),E(l,"mask",`url(#b-${e})`),E(d,"id",`ah-${e}`),E(c,"id",`k-${e}`),E(f,"filter",`url(#ah-${e})`),E(p,"mask",`url(#k-${e})`),E(h,"id",`ae-${e}`),E(g,"id",`j-${e}`),E(x,"filter",`url(#ae-${e})`),E(v,"mask",`url(#j-${e})`),E(w,"id",`ai-${e}`),E(S,"id",`i-${e}`),E(F,"filter",`url(#ai-${e})`),E(D,"mask",`url(#i-${e})`),E(L,"id",`aj-${e}`),E(I,"id",`h-${e}`),E(U,"filter",`url(#aj-${e})`),E(R,"mask",`url(#h-${e})`),E(ie,"id",`ag-${e}`),E(ve,"id",`g-${e}`),E(ce,"filter",`url(#ag-${e})`),E(he,"mask",`url(#g-${e})`),E(fe,"id",`af-${e}`),E(De,"id",`f-${e}`),E(ke,"filter",`url(#af-${e})`),E(Oe,"mask",`url(#f-${e})`),E(pe,"id",`m-${e}`),E(La,"fill",`url(#m-${e})`),E(It,"id",`ak-${e}`),E(Qe,"id",`e-${e}`),E(io,"filter",`url(#ak-${e})`),E(gt,"mask",`url(#e-${e})`),E(Ia,"id",`n-${e}`),E(Va,"fill",`url(#n-${e})`),E(Ot,"id",`r-${e}`),E(jt,"fill",`url(#r-${e})`),E(z,"id",`s-${e}`),E(Ce,"fill",`url(#s-${e})`),E(at,"id",`q-${e}`),E(Le,"fill",`url(#q-${e})`),E(be,"id",`p-${e}`),E(Pe,"fill",`url(#p-${e})`),E(He,"id",`o-${e}`),E(ye,"fill",`url(#o-${e})`),E(Xt,"id",`l-${e}`),E(Zt,"fill",`url(#l-${e})`),E(Ka,"id",`al-${e}`),E(Jt,"id",`d-${e}`),E(Ga,"filter",`url(#al-${e})`),E(Yt,"mask",`url(#d-${e})`),E(Sa,"id",`u-${e}`),E(Kr,"fill",`url(#u-${e})`),E(Gr,"id",`ad-${e}`),E(uo,"id",`c-${e}`),E(Wr,"filter",`url(#ad-${e})`),E(Oo,"mask",`url(#c-${e})`),E(Bo,"id",`t-${e}`),E($o,"fill",`url(#t-${e})`),E(co,"id",`v-${e}`),E(Kl,"stroke",`url(#v-${e})`),E(Gl,"id",`aa-${e}`),E(Wl,"stroke",`url(#aa-${e})`),E(Ql,"id",`w-${e}`),E(jl,"stroke",`url(#w-${e})`),E(Xl,"id",`ac-${e}`),E(Zl,"stroke",`url(#ac-${e})`),E(Jl,"id",`ab-${e}`),E(Yl,"stroke",`url(#ab-${e})`),E(ei,"id",`y-${e}`),E(ti,"stroke",`url(#y-${e})`),E(ai,"id",`x-${e}`),E(oi,"stroke",`url(#x-${e})`),E(ri,"id",`z-${e}`),E(_p,"stroke",`url(#z-${e})`),t})()}function hy(e,t){let a=0,o=[];for(;a<e.length;)o.push(e.slice(a,a+t)),a=a+t;return o}function hd(e){return Symbol.iterator in e}function Da(e){let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?Ao(a):Mo(a)),r=j().client,[n,s]=N((e.defaultExpanded||[]).includes(e.label)),i=()=>s(m=>!m),[l,u]=N([]),d=k(()=>Array.isArray(e.value)?e.value.map((m,h)=>({label:h.toString(),value:m})):e.value!==null&&typeof e.value=="object"&&hd(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([m,h])=>({label:m,value:h})):Array.from(e.value,(m,h)=>({label:h.toString(),value:m})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([m,h])=>({label:m,value:h})):[]),c=k(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&hd(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),f=k(()=>hy(d(),100)),p=e.dataPath??[];return(()=>{var m=xr();return P(m,y(Q,{get when(){return f().length},get children(){return[(()=>{var h=fy(),g=h.firstChild,x=g.firstChild,v=x.nextSibling,b=v.nextSibling,w=b.nextSibling,S=w.firstChild;return g.$$click=()=>i(),P(g,y(md,{get expanded(){return n()}}),x),P(v,()=>e.label),P(w,()=>String(c()).toLowerCase()==="iterable"?"(Iterable) ":"",S),P(w,()=>d().length,S),P(w,()=>d().length>1?"items":"item",null),P(h,y(Q,{get when(){return e.editable},get children(){var F=xr();return P(F,y(xy,{get value(){return e.value}}),null),P(F,y(Q,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return y(gd,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),P(F,y(Q,{get when(){return c()==="array"&&e.activeQuery!==void 0},get children(){return y(yy,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),P(F,y(Q,{get when(){return k(()=>!!e.onEdit)()&&!ks(e.value).meta},get children(){var D=cy();return D.$$click=()=>{e.onEdit?.()},P(D,y(Z1,{})),G(()=>O(D,o().actionButton)),D}}),null),G(()=>O(F,o().actions)),F}}),null),G(F=>{var D=o().expanderButtonContainer,T=o().expanderButton,L=o().info;return D!==F.e&&O(h,F.e=D),T!==F.t&&O(g,F.t=T),L!==F.a&&O(w,F.a=L),F},{e:void 0,t:void 0,a:void 0}),h})(),y(Q,{get when(){return n()},get children(){return[y(Q,{get when(){return f().length===1},get children(){var h=xr();return P(h,y(wn,{get each(){return d()},by:g=>g.label,children:g=>y(Da,{get defaultExpanded(){return e.defaultExpanded},get label(){return g().label},get value(){return g().value},get editable(){return e.editable},get dataPath(){return[...p,g().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return c()==="array"||c()==="Iterable"||c()==="object"}})})),G(()=>O(h,o().subEntry)),h}}),y(Q,{get when(){return f().length>1},get children(){var h=xr();return P(h,y(Zi,{get each(){return f()},children:(g,x)=>(()=>{var v=gy(),b=v.firstChild,w=b.firstChild,S=w.firstChild,F=S.nextSibling,D=F.nextSibling,T=D.nextSibling;return T.nextSibling,w.$$click=()=>u(L=>L.includes(x)?L.filter(I=>I!==x):[...L,x]),P(w,y(md,{get expanded(){return l().includes(x)}}),S),P(w,x*100,F),P(w,x*100+100-1,T),P(b,y(Q,{get when(){return l().includes(x)},get children(){var L=xr();return P(L,y(wn,{get each(){return g()},by:I=>I.label,children:I=>y(Da,{get defaultExpanded(){return e.defaultExpanded},get label(){return I().label},get value(){return I().value},get editable(){return e.editable},get dataPath(){return[...p,I().label]},get activeQuery(){return e.activeQuery}})})),G(()=>O(L,o().subEntry)),L}}),null),G(L=>{var I=o().entry,U=o().expanderButton;return I!==L.e&&O(b,L.e=I),U!==L.t&&O(w,L.t=U),L},{e:void 0,t:void 0}),v})()})),G(()=>O(h,o().subEntry)),h}})]}})]}}),null),P(m,y(Q,{get when(){return f().length===0},get children(){var h=my(),g=h.firstChild,x=g.firstChild;return P(g,()=>e.label,x),P(h,y(Q,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number"||c()==="boolean")},get fallback(){return(()=>{var v=pd();return P(v,()=>pr(e.value)),G(()=>O(v,o().value)),v})()},get children(){return[y(Q,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number")},get children(){var v=py();return v.addEventListener("change",b=>{let w=e.activeQuery.state.data,S=Aa(w,p,c()==="number"?b.target.valueAsNumber:b.target.value);r.setQueryData(e.activeQuery.queryKey,S)}),G(b=>{var w=c()==="number"?"number":"text",S=H(o().value,o().editableInput);return w!==b.e&&E(v,"type",b.e=w),S!==b.t&&O(v,b.t=S),b},{e:void 0,t:void 0}),G(()=>v.value=e.value),v}}),y(Q,{get when(){return c()==="boolean"},get children(){var v=pd();return P(v,y(vy,{get activeQuery(){return e.activeQuery},dataPath:p,get value(){return e.value}}),null),P(v,()=>pr(e.value),null),G(()=>O(v,H(o().value,o().actions,o().editableInput))),v}})]}}),null),P(h,y(Q,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return y(gd,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),G(v=>{var b=o().row,w=o().label;return b!==v.e&&O(h,v.e=b),w!==v.t&&O(g,v.t=w),v},{e:void 0,t:void 0}),h}}),null),G(()=>O(m,o().entry)),m})()}var _g,Vg,Iu,Kg,Gg,A,Fs,jg,An,Jg,Su,ht,Yg,eo,Ks,eh,Os,Rn,th,vd,ah,bd,oh,ku,rh,Sr,Cd,Tn,Gs,kr,wd,nh,sh,st,Ru,ph,mh,gh,hh,Tu,Ya,na,Ld,xh,yh,Du,Eu,As,Mh,Ws,vn,Md,Uh,js,Hh,gr,qu,Td,Zh,Dd,n0,On,Bd,g0,h0,Ns,vr,b0,Rs,sa,A0,Vu,Ze,T0,D0,Kd,Ln,Gd,zs,ia,ut,U0,H0,V0,K0,Nt,ct,In,bn,Fa,G0,W0,Y0,ex,tx,ax,rx,nx,sx,ux,bx,rc,Ix,Sx,kx,Px,Mx,Ax,Rx,rl,Tx,_s,Zu,Dx,$x,nc,Yu,ed,sc,yt,ic,dc,Vx,Kx,Ds,Es,td,ad,Qx,hr,xt,Cn,Zx,od,Jx,Yx,e1,rd,nd,t1,a1,o1,sd,ld,Vs,r1,n1,vc,Cc,wc,s1,Ir,id,l1,Pc,Oc,p1,ud,m1,h1,x1,Ne,y1,M,v1,b1,C1,w1,dl,L1,I1,S1,k1,P1,M1,A1,R1,T1,Vc,D1,E1,F1,O1,B1,$1,q1,N1,sy,ly,iy,uy,dy,cy,xr,fy,py,pd,my,gy,md,xy,yy,gd,vy,Gc,Mo,Ao,by,Dr,Cy,wy,Ly,Iy,Sy,ky,Py,My,Ay,Ry,Ty,Dy,Ey,Fy,Oy,By,$y,qy,Ny,xd,zy,Wc,Uy,Hy,_y,Vy,Ky,Gy,Wy,Qy,jy,Xy,dt,zn,Ea,Qc,Pt,cl,Co,yd,jc,Zy,Xc,Jy,Un,Yy,ev,tv,av,la,ov,rv,Pn,nv,Ge,Mn,sv,kt,Zc,Ct,wt,fl=qo(()=>{"use strict";C();mr();_g=!Xe,Vg=_g&&!!Yi,Iu=()=>{},Kg=e=>e!=null,Gg=e=>e.filter(Kg);A=e=>typeof e=="function"&&!e.length?e():e,Fs=e=>Array.isArray(e)?e:e?[e]:[];jg=Vg?e=>ln()?X(e):e:X;An=Zg,Jg=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),Su=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=Jg({_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}${Su(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${Su({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}}),Yg=1024,eo=796,Ks=700,eh="bottom-right",Os="bottom",Rn="system",th=!1,vd=500,ah=500,bd=500,oh=Object.keys(hn)[0],ku=1,rh=Object.keys(xn)[0],Sr=_e({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});Cd=_e(void 0),Tn=e=>{let[t,a]=N(null),o=()=>{let s=t();s!=null&&(s.close(),a(null))},r=(s,i)=>{if(t()!=null)return;let l=window.open("","TSQD-Devtools-Panel",`width=${s},height=${i},popup`);if(!l)throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");l.document.head.innerHTML="",l.document.body.innerHTML="",eu(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)}}),fr(["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||ah))}),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(Cd.Provider,{value:n,get children(){return e.children}})},Gs=()=>k(()=>{let t=qe(Cd);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),kr=_e(()=>"dark");wd={\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"},nh=Object.keys(wd).join("|"),sh=new RegExp(nh,"g");st={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};Ru={maxRanking:1/0,minRanking:-1/0};ph={data:""},mh=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||ph,gh=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,hh=/\/\*[^]*?\*\/| +/g,Tu=/\n+/g,Ya=(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"?Ya(s,n):n+"{"+Ya(s,n[1]=="k"?"":t)+"}":typeof s=="object"?o+=Ya(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+=Ya.p?Ya.p(n,s):n+":"+s+";")}return a+(t&&r?t+"{"+r+"}":r)+o},na={},Ld=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+Ld(e[a]);return t}return e},xh=(e,t,a,o,r)=>{let n=Ld(e),s=na[n]||(na[n]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(n));if(!na[s]){let l=n!==e?e:(u=>{let d,c,f=[{}];for(;d=gh.exec(u.replace(hh,""));)d[4]?f.shift():d[3]?(c=d[3].replace(Tu," ").trim(),f.unshift(f[0][c]=f[0][c]||{})):f[0][d[1]]=d[2].replace(Tu," ").trim();return f[0]})(e);na[s]=Ya(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&na.g?na.g:null;return a&&(na.g=na[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)})(na[s],t,o,i),s},yh=(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?"":Ya(i,""):i===!1?"":i}return o+r+(s??"")},"");ae.bind({g:1});ae.bind({k:1});Du=Xe?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;Eu=e=>{let t=Ch(e);return vh(bh(()=>e.children).toArray,{appear:e.appear,onChange({added:a,removed:o,finishRemoved:r,list:n}){let s=t();for(let l of a)wh(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)Lh(s,e,l,()=>r([l]))}})},As=Symbol("fallback");Mh=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;Ws=(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))(Ws||{});vn=null;Md=["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'])"],Uh=[...Md,'[tabindex]:not([tabindex="-1"]):not([disabled])'],js=Md.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",Hh=Uh.join(':not([hidden]):not([tabindex="-1"]),');gr=new Map,qu=new Set;typeof document<"u"&&(document.readyState!=="loading"?Nu():document.addEventListener("DOMContentLoaded",Nu));Td={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"];Dd=_e();n0=Object.defineProperty,On=(e,t)=>{for(var a in t)n0(e,a,{get:t[a],enumerable:!0})},Bd=_e();g0=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),h0=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);Ns=Ud(),vr=new Set;b0=_e();Rs=new Map;sa=class Hd extends Set{anchorKey;currentKey;constructor(t,a,o){super(t),t instanceof Hd?(this.anchorKey=a||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=a,this.currentKey=o)}};A0=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 sa(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 sa(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 sa([t],t,t):new sa;this.state.setSelectedKeys(a)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new sa;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 sa)}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}},Vu=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,T0=e=>{let t=k(()=>{let s=Ze(e.element);if(s)return getComputedStyle(s)}),a=()=>t()?.animationName??"none",[o,r]=N(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}},D0=T0,Kd=D0,Ln="data-kb-top-layer",zs=!1,ia=[];ut={layers:ia,isTopMostLayer:F0,hasPointerBlockingLayer:Zs,isBelowPointerBlockingLayer:Qd,addLayer:B0,removeLayer:$0,indexOf:Cr,find:E0,assignPointerEventToLayers:q0,disableBodyPointerEvents:N0,restoreBodyPointerEvents:z0},U0={};On(U0,{Button:()=>V0,Root:()=>Js});H0=["button","color","file","image","reset","submit"];V0=Js,K0=["top","right","bottom","left"],Nt=Math.min,ct=Math.max,In=Math.round,bn=Math.floor,Fa=e=>({x:e,y:e}),G0={left:"right",right:"left",bottom:"top",top:"bottom"},W0={start:"end",end:"start"};Y0=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}=Ku(u,o,l),f=o,p={},m=0;for(let h=0;h<i.length;h++){let{name:g,fn:x}=i[h],{x:v,y:b,data:w,reset:S}=await x({x:d,y:c,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});d=v??d,c=b??c,p={...p,[g]:{...p[g],...w}},S&&m<=50&&(m++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:d,y:c}=Ku(u,f,l)),h=-1)}return{x:d,y:c,placement:f,strategy:r,middlewareData:p}};ex=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}=oo(e,t)||{};if(u==null)return{};let c=Xd(d),f={x:a,y:o},p=el(r),m=Ys(p),h=await s.getDimensions(u),g=p==="y",x=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=n.reference[m]+n.reference[p]-f[p]-n.floating[m],S=f[p]-n.reference[p],F=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),D=F?F[b]:0;(!D||!await(s.isElement==null?void 0:s.isElement(F)))&&(D=i.floating[b]||n.floating[m]);let T=w/2-S/2,L=D/2-h[m]/2-1,I=Nt(c[x],L),U=Nt(c[v],L),R=I,te=D-h[m]-U,ie=D/2-h[m]/2+T,ve=Us(R,ie,te),ce=!l.arrow&&ko(r)!=null&&ie!==ve&&n.reference[m]/2-(ie<R?I:U)-h[m]/2<0,he=ce?ie<R?ie-R:ie-te:0;return{[p]:f[p]+he,data:{[p]:ve,centerOffset:ie-ve-he,...ce&&{alignmentOffset:he}},reset:ce}}}),tx=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:h=!0,...g}=oo(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let x=Oa(r),v=to(i),b=Oa(i)===i,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(b||!h?[Sn(i)]:j0(i)),F=m!=="none";!f&&F&&S.push(...Z0(i,h,m,w));let D=[i,...S],T=await wr(t,g),L=[],I=((o=n.flip)==null?void 0:o.overflows)||[];if(d&&L.push(T[x]),c){let ie=Q0(r,s,w);L.push(T[ie[0]],T[ie[1]])}if(I=[...I,{placement:r,overflows:L}],!L.every(ie=>ie<=0)){var U,R;let ie=(((U=n.flip)==null?void 0:U.index)||0)+1,ve=D[ie];if(ve)return{data:{index:ie,overflows:I},reset:{placement:ve}};let ce=(R=I.filter(he=>he.overflows[0]<=0).sort((he,xe)=>he.overflows[1]-xe.overflows[1])[0])==null?void 0:R.placement;if(!ce)switch(p){case"bestFit":{var te;let he=(te=I.filter(xe=>{if(F){let fe=to(xe.placement);return fe===v||fe==="y"}return!0}).map(xe=>[xe.placement,xe.overflows.filter(fe=>fe>0).reduce((fe,De)=>fe+De,0)]).sort((xe,fe)=>xe[1]-fe[1])[0])==null?void 0:te[0];he&&(ce=he);break}case"initialPlacement":ce=i;break}if(r!==ce)return{reset:{placement:ce}}}return{}}}};ax=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a}=t,{strategy:o="referenceHidden",...r}=oo(e,t);switch(o){case"referenceHidden":{let n=await wr(t,{...r,elementContext:"reference"}),s=Gu(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Wu(s)}}}case"escaped":{let n=await wr(t,{...r,altBoundary:!0}),s=Gu(n,a.floating);return{data:{escapedOffsets:s,escaped:Wu(s)}}}default:return{}}}}};rx=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 ox(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}}}}},nx=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:g=>{let{x,y:v}=g;return{x,y:v}}},...l}=oo(e,t),u={x:a,y:o},d=await wr(t,l),c=to(Oa(r)),f=jd(c),p=u[f],m=u[c];if(n){let g=f==="y"?"top":"left",x=f==="y"?"bottom":"right",v=p+d[g],b=p-d[x];p=Us(v,p,b)}if(s){let g=c==="y"?"top":"left",x=c==="y"?"bottom":"right",v=m+d[g],b=m-d[x];m=Us(v,m,b)}let h=i.fn({...t,[f]:p,[c]:m});return{...h,data:{x:h.x-a,y:h.y-o}}}}},sx=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}=oo(e,t),l=await wr(t,i),u=Oa(a),d=ko(a),c=to(a)==="y",{width:f,height:p}=o.floating,m,h;u==="top"||u==="bottom"?(m=u,h=d===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(h=u,m=d==="end"?"top":"bottom");let g=p-l.top-l.bottom,x=f-l.left-l.right,v=Nt(p-l[m],g),b=Nt(f-l[h],x),w=!t.middlewareData.shift,S=v,F=b;if(c?F=d||w?Nt(b,x):x:S=d||w?Nt(v,g):g,w&&!d){let T=ct(l.left,0),L=ct(l.right,0),I=ct(l.top,0),U=ct(l.bottom,0);c?F=f-2*(T!==0||L!==0?T+L:ct(l.left,l.right)):S=p-2*(I!==0||U!==0?I+U:ct(l.top,l.bottom))}await s({...t,availableWidth:F,availableHeight:S});let D=await r.getDimensions(n.floating);return f!==D.width||p!==D.height?{reset:{rects:!0}}:{}}}};ux=Fa(0);bx=async function(e){let t=this.getOffsetParent||oc,a=this.getDimensions,o=await a(e.floating);return{reference:vx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};rc={convertOffsetParentRelativeRectToViewportRelativeRect:cx,getDocumentElement:ua,getClippingRect:xx,getOffsetParent:oc,getElementRects:bx,getClientRects:fx,getDimensions:yx,getScale:Io,isElement:Mt,isRTL:Cx};Ix=rx,Sx=nx,kx=tx,Px=sx,Mx=ax,Ax=ex,Rx=(e,t,a)=>{let o=new Map,r={platform:rc,...a},n={...r.platform,_c:o};return Y0(e,t,{...r,platform:n})},rl=_e();Tx=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">'),_s=30,Zu=_s/2,Dx={top:180,right:-90,bottom:0,left:90};$x={top:"bottom",right:"left",bottom:"top",left:"right"};nc=Object.assign(Nx,{Arrow:sl,Context:rl,usePopperContext:nl,Positioner:Fx});Yu="interactOutside.pointerDownOutside",ed="interactOutside.focusOutside";sc=_e();yt={};On(yt,{Description:()=>Ed,ErrorMessage:()=>Fd,Item:()=>cc,ItemControl:()=>fc,ItemDescription:()=>pc,ItemIndicator:()=>mc,ItemInput:()=>gc,ItemLabel:()=>hc,Label:()=>xc,RadioGroup:()=>Vx,Root:()=>yc});ic=_e();dc=_e();Vx=Object.assign(yc,{Description:Ed,ErrorMessage:Fd,Item:cc,ItemControl:fc,ItemDescription:pc,ItemIndicator:mc,ItemInput:gc,ItemLabel:hc,Label:xc}),Kx=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)}}};Ds="focusScope.autoFocusOnMount",Es="focusScope.autoFocusOnUnmount",td={bubbles:!1,cancelable:!0},ad={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=$s(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=$s(this.stack,e),this.active()?.resume()}};Qx="data-live-announcer";hr=new WeakMap,xt=[];Cn=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=Cn.get(e.key);r?r.activeCount++:Cn.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=Cn.get(e.key);if(n){if(n.activeCount!==1){n.activeCount--;return}Cn.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?.()}})})},od=Zx,Jx=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},Yx=(e,t)=>{let a=getComputedStyle(e),o=t==="x"?a.overflowX:a.overflowY;return o==="auto"||o==="scroll"||e.tagName==="HTML"&&o==="visible"},e1=(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]=Jx(r,t),c=d-l-o*u;(u!==0||c!==0)&&Yx(r,t)&&(n+=c,s+=u),r===(a??document.documentElement)?i=!0:r=r._$host??r.parentElement}while(r&&!i);return[n,s]},[rd,nd]=N([]),t1=e=>rd().indexOf(e)===rd().length-1,a1=e=>{let t=Y({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)&&(nd(u=>[...u,a]),X(()=>{nd(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;od({key:"prevent-scroll",element:u,style:c,properties:f,cleanup:()=>{Ze(t.restoreScrollPosition)&&d>0&&window.scrollTo(m,p)}})}else od({key:"prevent-scroll",element:u,style:{overflow:"hidden"}})}),W(()=>{!t1(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=sd(u),r=null,n=null},i=u=>{let d=u.target,c=Ze(t.element),f=o1(u),p=Math.abs(f[0])>Math.abs(f[1])?"x":"y",m=p==="x"?f[0]:f[1],h=ld(d,p,m,c),g;c&&Vs(c,d)?g=!h:g=!0,g&&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=sd(u).map((h,g)=>o[g]-h),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=ld(c,r,n,d);d&&Vs(d,c)?f=!p:f=!0}}f&&u.cancelable&&u.preventDefault()}},o1=e=>[e.deltaX,e.deltaY],sd=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],ld=(e,t,a,o)=>{let r=o!==null&&Vs(o,e),[n,s]=e1(e,t,r?o:void 0);return!(a>0&&Math.abs(n)<=1||a<0&&Math.abs(s)<1)},Vs=(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},r1=a1,n1=r1,vc=_e();Cc=_e();wc=_e();s1=_e();Ir={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Ir.next(e==="ltr"?"rtl":"ltr",t)},id={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};l1=_e();Pc=_e();Oc=_e();p1={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};ud=["Enter"," "],m1={open:(e,t)=>e==="ltr"?[...ud,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...ud,t==="horizontal"?"ArrowLeft":"ArrowUp"]};h1={};On(h1,{Root:()=>Nn,Separator:()=>x1});x1=Nn,Ne={};On(Ne,{Arrow:()=>sl,CheckboxItem:()=>Lc,Content:()=>Hc,DropdownMenu:()=>y1,Group:()=>ul,GroupLabel:()=>Mc,Icon:()=>Ac,Item:()=>Rc,ItemDescription:()=>Tc,ItemIndicator:()=>Dc,ItemLabel:()=>Ec,Portal:()=>Fc,RadioGroup:()=>Bc,RadioItem:()=>$c,Root:()=>_c,Separator:()=>Nn,Sub:()=>Nc,SubContent:()=>zc,SubTrigger:()=>Uc,Trigger:()=>Ic});y1=Object.assign(_c,{Arrow:sl,CheckboxItem:Lc,Content:Hc,Group:ul,GroupLabel:Mc,Icon:Ac,Item:Rc,ItemDescription:Tc,ItemIndicator:Dc,ItemLabel:Ec,Portal:Fc,RadioGroup:Bc,RadioItem:$c,Separator:Nn,Sub:Nc,SubContent:zc,SubTrigger:Uc,Trigger:Ic}),M={colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000000",white:"#ffffff",neutral:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},darkGray:{50:"#525c7a",100:"#49536e",200:"#414962",300:"#394056",400:"#313749",500:"#292e3d",600:"#212530",700:"#191c24",800:"#111318",900:"#0b0d10"},gray:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},blue:{25:"#F5FAFF",50:"#EFF8FF",100:"#D1E9FF",200:"#B2DDFF",300:"#84CAFF",400:"#53B1FD",500:"#2E90FA",600:"#1570EF",700:"#175CD3",800:"#1849A9",900:"#194185"},green:{25:"#F6FEF9",50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},yellow:{25:"#FFFCF5",50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E"},purple:{25:"#FAFAFF",50:"#F4F3FF",100:"#EBE9FE",200:"#D9D6FE",300:"#BDB4FE",400:"#9B8AFB",500:"#7A5AF8",600:"#6938EF",700:"#5925DC",800:"#4A1FB8",900:"#3E1C96"},teal:{25:"#F6FEFC",50:"#F0FDF9",100:"#CCFBEF",200:"#99F6E0",300:"#5FE9D0",400:"#2ED3B7",500:"#15B79E",600:"#0E9384",700:"#107569",800:"#125D56",900:"#134E48"},pink:{25:"#fdf2f8",50:"#fce7f3",100:"#fbcfe8",200:"#f9a8d4",300:"#f472b6",400:"#ec4899",500:"#db2777",600:"#be185d",700:"#9d174d",800:"#831843",900:"#500724"},cyan:{25:"#ecfeff",50:"#cffafe",100:"#a5f3fc",200:"#67e8f9",300:"#22d3ee",400:"#06b6d4",500:"#0891b2",600:"#0e7490",700:"#155e75",800:"#164e63",900:"#083344"}},alpha:{100:"ff",90:"e5",80:"cc",70:"b3",60:"99",50:"80",40:"66",30:"4d",20:"33",10:"1a",0:"00"},font:{size:{"2xs":"calc(var(--tsqd-font-size) * 0.625)",xs:"calc(var(--tsqd-font-size) * 0.75)",sm:"calc(var(--tsqd-font-size) * 0.875)",md:"var(--tsqd-font-size)",lg:"calc(var(--tsqd-font-size) * 1.125)",xl:"calc(var(--tsqd-font-size) * 1.25)","2xl":"calc(var(--tsqd-font-size) * 1.5)","3xl":"calc(var(--tsqd-font-size) * 1.875)","4xl":"calc(var(--tsqd-font-size) * 2.25)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.75)","7xl":"calc(var(--tsqd-font-size) * 4.5)","8xl":"calc(var(--tsqd-font-size) * 6)","9xl":"calc(var(--tsqd-font-size) * 8)"},lineHeight:{xs:"calc(var(--tsqd-font-size) * 1)",sm:"calc(var(--tsqd-font-size) * 1.25)",md:"calc(var(--tsqd-font-size) * 1.5)",lg:"calc(var(--tsqd-font-size) * 1.75)",xl:"calc(var(--tsqd-font-size) * 2)","2xl":"calc(var(--tsqd-font-size) * 2.25)","3xl":"calc(var(--tsqd-font-size) * 2.5)","4xl":"calc(var(--tsqd-font-size) * 2.75)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.25)","7xl":"calc(var(--tsqd-font-size) * 3.5)","8xl":"calc(var(--tsqd-font-size) * 3.75)","9xl":"calc(var(--tsqd-font-size) * 4)"},weight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"}},breakpoints:{xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},border:{radius:{none:"0px",xs:"calc(var(--tsqd-font-size) * 0.125)",sm:"calc(var(--tsqd-font-size) * 0.25)",md:"calc(var(--tsqd-font-size) * 0.375)",lg:"calc(var(--tsqd-font-size) * 0.5)",xl:"calc(var(--tsqd-font-size) * 0.75)","2xl":"calc(var(--tsqd-font-size) * 1)","3xl":"calc(var(--tsqd-font-size) * 1.5)",full:"9999px"}},size:{0:"0px",.25:"calc(var(--tsqd-font-size) * 0.0625)",.5:"calc(var(--tsqd-font-size) * 0.125)",1:"calc(var(--tsqd-font-size) * 0.25)",1.5:"calc(var(--tsqd-font-size) * 0.375)",2:"calc(var(--tsqd-font-size) * 0.5)",2.5:"calc(var(--tsqd-font-size) * 0.625)",3:"calc(var(--tsqd-font-size) * 0.75)",3.5:"calc(var(--tsqd-font-size) * 0.875)",4:"calc(var(--tsqd-font-size) * 1)",4.5:"calc(var(--tsqd-font-size) * 1.125)",5:"calc(var(--tsqd-font-size) * 1.25)",5.5:"calc(var(--tsqd-font-size) * 1.375)",6:"calc(var(--tsqd-font-size) * 1.5)",6.5:"calc(var(--tsqd-font-size) * 1.625)",7:"calc(var(--tsqd-font-size) * 1.75)",8:"calc(var(--tsqd-font-size) * 2)",9:"calc(var(--tsqd-font-size) * 2.25)",10:"calc(var(--tsqd-font-size) * 2.5)",11:"calc(var(--tsqd-font-size) * 2.75)",12:"calc(var(--tsqd-font-size) * 3)",14:"calc(var(--tsqd-font-size) * 3.5)",16:"calc(var(--tsqd-font-size) * 4)",20:"calc(var(--tsqd-font-size) * 5)",24:"calc(var(--tsqd-font-size) * 6)",28:"calc(var(--tsqd-font-size) * 7)",32:"calc(var(--tsqd-font-size) * 8)",36:"calc(var(--tsqd-font-size) * 9)",40:"calc(var(--tsqd-font-size) * 10)",44:"calc(var(--tsqd-font-size) * 11)",48:"calc(var(--tsqd-font-size) * 12)",52:"calc(var(--tsqd-font-size) * 13)",56:"calc(var(--tsqd-font-size) * 14)",60:"calc(var(--tsqd-font-size) * 15)",64:"calc(var(--tsqd-font-size) * 16)",72:"calc(var(--tsqd-font-size) * 18)",80:"calc(var(--tsqd-font-size) * 20)",96:"calc(var(--tsqd-font-size) * 24)"},shadow:{xs:(e="rgb(0 0 0 / 0.1)")=>"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:(e="rgb(0 0 0 / 0.1)")=>`0 1px 3px 0 ${e}, 0 1px 2px -1px ${e}`,md:(e="rgb(0 0 0 / 0.1)")=>`0 4px 6px -1px ${e}, 0 2px 4px -2px ${e}`,lg:(e="rgb(0 0 0 / 0.1)")=>`0 10px 15px -3px ${e}, 0 4px 6px -4px ${e}`,xl:(e="rgb(0 0 0 / 0.1)")=>`0 20px 25px -5px ${e}, 0 8px 10px -6px ${e}`,"2xl":(e="rgb(0 0 0 / 0.25)")=>`0 25px 50px -12px ${e}`,inner:(e="rgb(0 0 0 / 0.05)")=>`inset 0 2px 4px 0 ${e}`,none:()=>"none"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}},v1=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>'),b1=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>'),C1=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>'),w1=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>'),dl=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>'),L1=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>'),I1=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>'),S1=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>'),k1=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">'),P1=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">'),M1=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>'),A1=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>'),R1=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>'),T1=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>'),Vc=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>'),D1=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>'),E1=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>'),F1=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>'),O1=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>'),B1=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>'),$1=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>'),q1=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>'),N1=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>');sy=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>'),ly=V('<button title="Copy object to clipboard">'),iy=V('<button title="Remove all items"aria-label="Remove all items">'),uy=V('<button title="Delete item"aria-label="Delete item">'),dy=V('<button title="Toggle value"aria-label="Toggle value">'),cy=V('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),xr=V("<div>"),fy=V("<div><button> <span></span> <span> "),py=V("<input>"),pd=V("<span>"),my=V("<div><span>:"),gy=V("<div><div><button> [<!>...<!>]");md=e=>{let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?Ao(a):Mo(a));return(()=>{var r=sy();return G(()=>O(r,H(o().expander,a`
|
|
1
|
+
"use strict";var Vp=Object.create;var jr=Object.defineProperty;var Kp=Object.getOwnPropertyDescriptor;var Gp=Object.getOwnPropertyNames;var Wp=Object.getPrototypeOf,Qp=Object.prototype.hasOwnProperty;var qo=(e,t)=>()=>(e&&(t=e(e=0)),t);var Xr=(e,t)=>{for(var a in t)jr(e,a,{get:t[a],enumerable:!0})},Qr=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Gp(t))!Qp.call(e,r)&&r!==a&&jr(e,r,{get:()=>t[r],enumerable:!(o=Kp(t,r))||o.enumerable});return e},ea=(e,t,a)=>(Qr(e,t,"default"),a&&Qr(a,t,"default")),Ie=(e,t,a)=>(a=e!=null?Vp(Wp(e)):{},Qr(t||!e||!e.__esModule?jr(a,"default",{value:e,enumerable:!0}):a,e)),jp=e=>Qr(jr({},"__esModule",{value:!0}),e);var C=qo(()=>{});function Ii(e){let t=String(e),a=t.length-1;return Z.context.id+(a?String.fromCharCode(96+a):"")+t}function Qa(e){Z.context=e}function Rm(){return{...Z.context,id:Z.getNextContextId(),count:0}}function $t(e,t){let a=ge,o=oe,r=e.length===0,n=t===void 0?o:t,s=r?Ni:{owned:null,cleanups:null,context:n?n.context:null,owner:n},i=r?e:()=>e(()=>we(()=>Ra(s)));oe=s,ge=null;try{return nt(i,!0)}finally{ge=a,oe=o}}function N(e,t){t=t?Object.assign({},nn,t):nn;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)),Ki(a,r));return[Vi.bind(a),o]}function sn(e,t,a){let o=fn(e,t,!0,lt);vo&&q&&q.running?$e.push(o):bo(o)}function G(e,t,a){let o=fn(e,t,!1,lt);vo&&q&&q.running?$e.push(o):bo(o)}function W(e,t,a){qi=qm;let o=fn(e,t,!1,lt),r=nr&&qe(nr);r&&(o.suspense=r),(!a||!a.render)&&(o.user=!0),je?je.push(o):bo(o)}function k(e,t,a){a=a?Object.assign({},nn,a):nn;let o=fn(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=a.equals||void 0,vo&&q&&q.running?(o.tState=lt,$e.push(o)):bo(o),Vi.bind(o)}function Dm(e){return e&&typeof e=="object"&&"then"in e}function Em(e,t,a){let o,r,n;o=!0,r=e,n={};let s=null,i=us,l=null,u=!1,d=!1,c="initialValue"in n,f=typeof o=="function"&&k(o),p=new Set,[m,h]=(n.storage||N)(n.initialValue),[g,x]=N(void 0),[v,b]=N(void 0,{equals:!1}),[w,S]=N(c?"ready":"unresolved");Z.context&&(l=Z.getNextContextId(),n.ssrLoadFrom==="initial"?i=n.initialValue:Z.load&&Z.has(l)&&(i=Z.load(l)));function F(I,U,R,te){return s===I&&(s=null,te!==void 0&&(c=!0),(I===i||U===i)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(te,{value:U})),i=us,q&&I&&u?(q.promises.delete(I),u=!1,nt(()=>{q.running=!0,D(U,R)},!1)):D(U,R)),U}function D(I,U){nt(()=>{U===void 0&&h(()=>I),S(U!==void 0?"errored":c?"ready":"unresolved"),x(U);for(let R of p.keys())R.decrement();p.clear()},!1)}function T(){let I=nr&&qe(nr),U=m(),R=g();if(R!==void 0&&!s)throw R;return ge&&!ge.user&&I&&sn(()=>{v(),s&&(I.resolved&&q&&u?q.promises.add(s):p.has(I)||(I.increment(),p.add(I)))}),U}function L(I=!0){if(I!==!1&&d)return;d=!1;let U=f?f():o;if(u=q&&q.running,U==null||U===!1){F(s,we(m));return}q&&s&&q.promises.delete(s);let R=i!==us?i:we(()=>r(U,{value:m(),refetching:I}));return Dm(R)?(s=R,"value"in R?(R.status==="success"?F(s,R.value,void 0,U):F(s,void 0,fs(R.value),U),R):(d=!0,queueMicrotask(()=>d=!1),nt(()=>{S(c?"refreshing":"pending"),b()},!1),R.then(te=>F(R,te,void 0,U),te=>F(R,void 0,fs(te),U)))):(F(s,R,void 0,U),R)}return Object.defineProperties(T,{state:{get:()=>w()},error:{get:()=>g()},loading:{get(){let I=w();return I==="pending"||I==="refreshing"}},latest:{get(){if(!c)return T();let I=g();if(I&&!s)throw I;return m()}}}),f?sn(()=>L(!1)):L(!1),[T,{refetch:L,mutate:h}]}function zi(e){return nt(e,!1)}function we(e){if(!xo&&ge===null)return e();let t=ge;ge=null;try{return xo?xo.untrack(e):e()}finally{ge=t}}function qt(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 ra(e){W(()=>we(e))}function X(e){return oe===null||(oe.cleanups===null?oe.cleanups=[e]:oe.cleanups.push(e)),e}function ln(){return oe}function Fm(e,t){let a=oe,o=ge;oe=e,ge=null;try{return nt(t,!0)}catch(r){pn(r)}finally{oe=a,ge=o}}function Ui(e){if(q&&q.running)return e(),q.done;let t=ge,a=oe;return Promise.resolve().then(()=>{ge=t,oe=a;let o;return(vo||nr)&&(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),nt(e,!1),ge=oe=null,o?o.done:void 0})}function Hi(){return[Om,Ui]}function _e(e,t){let a=Symbol("context");return{id:a,Provider:Nm(a),defaultValue:e}}function qe(e){let t;return oe&&oe.context&&(t=oe.context[e.id])!==void 0?t:e.defaultValue}function _i(e){let t=k(e),a=k(()=>ps(t()));return a.toArray=()=>{let o=a();return Array.isArray(o)?o:o!=null?[o]:[]},a}function Vi(){let e=q&&q.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===lt)bo(this);else{let t=$e;$e=null,nt(()=>un(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 Ki(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&&nt(()=>{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&&Wi(n)),s?n.tState=lt:n.state=lt)}if($e.length>1e6)throw $e=[],new Error},!1)}return t}function bo(e){if(!e.fn)return;Ra(e);let t=cn;Pi(e,q&&q.running&&q.sources.has(e)?e.tValue:e.value,t),q&&!q.running&&q.sources.has(e)&&queueMicrotask(()=>{nt(()=>{q&&(q.running=!0),ge=oe=e,Pi(e,e.tValue,t),ge=oe=null},!1)})}function Pi(e,t,a){let o,r=oe,n=ge;ge=oe=e;try{o=e.fn(t)}catch(s){return e.pure&&(q&&q.running?(e.tState=lt,e.tOwned&&e.tOwned.forEach(Ra),e.tOwned=void 0):(e.state=lt,e.owned&&e.owned.forEach(Ra),e.owned=null)),e.updatedAt=a+1,pn(s)}finally{ge=n,oe=r}(!e.updatedAt||e.updatedAt<=a)&&(e.updatedAt!=null&&"observers"in e?Ki(e,o,!0):q&&q.running&&e.pure?(q.sources.add(e),e.tValue=o):e.value=o,e.updatedAt=a)}function fn(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:oe,context:oe?oe.context:null,pure:a};if(q&&q.running&&(n.state=0,n.tState=o),oe===null||oe!==Ni&&(q&&q.running&&oe.pure?oe.tOwned?oe.tOwned.push(n):oe.tOwned=[n]:oe.owned?oe.owned.push(n):oe.owned=[n]),xo&&n.fn){let[s,i]=N(void 0,{equals:!1}),l=xo.factory(n.fn,i);X(()=>l.dispose());let u=()=>Ui(i).then(()=>d.dispose()),d=xo.factory(n.fn,u);n.fn=c=>(s(),q&&q.running?d.track(c):l.track(c))}return n}function sr(e){let t=q&&q.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===rr)return un(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<cn);){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)bo(e);else if((t?e.tState:e.state)===rr){let r=$e;$e=null,nt(()=>un(e,a[0]),!1),$e=r}}}function nt(e,t){if($e)return e();let a=!1;t||($e=[]),je?a=!0:je=[],cn++;try{let o=e();return Bm(a),o}catch(o){a||(je=null),$e=null,pn(o)}}function Bm(e){if($e&&(vo&&q&&q.running?$m($e):Gi($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,nt(()=>{for(let n of r)Ra(n);for(let n of o){if(n.value=n.tValue,n.owned)for(let s=0,i=n.owned.length;s<i;s++)Ra(n.owned[s]);n.tOwned&&(n.owned=n.tOwned),delete n.tValue,delete n.tOwned,n.tState=0}ki(!1)},!1)}else if(q.running){q.running=!1,q.effects.push.apply(q.effects,je),je=null,ki(!0);return}}let a=je;je=null,a.length&&nt(()=>qi(a),!1),t&&t()}function Gi(e){for(let t=0;t<e.length;t++)sr(e[t])}function $m(e){for(let t=0;t<e.length;t++){let a=e[t],o=q.queue;o.has(a)||(o.add(a),vo(()=>{o.delete(a),nt(()=>{q.running=!0,sr(a)},!1),q&&(q.running=!1)}))}}function qm(e){let t,a=0;for(t=0;t<e.length;t++){let o=e[t];o.user?e[a++]=o:sr(o)}if(Z.context){if(Z.count){Z.effects||(Z.effects=[]),Z.effects.push(...e.slice(0,a));return}Qa()}for(Z.effects&&(Z.done||!Z.count)&&(e=[...Z.effects,...e],a+=Z.effects.length,delete Z.effects),t=0;t<a;t++)sr(e[t])}function un(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<cn)&&sr(r):n===rr&&un(r,t)}}}function Wi(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=rr:o.state=rr,o.pure?$e.push(o):je.push(o),o.observers&&Wi(o))}}function Ra(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--)Ra(e.tOwned[t]);delete e.tOwned}if(q&&q.running&&e.pure)Qi(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)Ra(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 Qi(e,t){if(t||(e.tState=0,q.disposed.add(e)),e.owned)for(let a=0;a<e.owned.length;a++)Qi(e.owned[a])}function fs(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Mi(e,t,a){try{for(let o of t)o(e)}catch(o){pn(o,a&&a.owner||null)}}function pn(e,t=oe){let a=Si&&t&&t.context&&t.context[Si],o=fs(e);if(!a)throw o;je?je.push({fn(){Mi(o,a,t)},state:lt}):Mi(o,a,t)}function ps(e){if(typeof e=="function"&&!e.length)return ps(e());if(Array.isArray(e)){let t=[];for(let a=0;a<e.length;a++){let o=ps(e[a]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return t}return e}function Nm(e,t){return function(o){let r;return G(()=>r=we(()=>(oe.context={...oe.context,[e]:o.value},_i(()=>o.children))),void 0),r}}function dn(e){for(let t=0;t<e.length;t++)e[t]()}function zm(e,t,a={}){let o=[],r=[],n=[],s=0,i=t.length>1?[]:null;return X(()=>dn(n)),()=>{let l=e()||[],u=l.length,d,c;return l[cr],we(()=>{let p,m,h,g,x,v,b,w,S;if(u===0)s!==0&&(dn(n),n=[],o=[],r=[],s=0,i&&(i=[])),a.fallback&&(o=[ms],r[0]=$t(F=>(n[0]=F,a.fallback())),s=1);else if(s===0){for(r=new Array(u),c=0;c<u;c++)o[c]=l[c],r[c]=$t(f);s=u}else{for(h=new Array(u),g=new Array(u),i&&(x=new Array(u)),v=0,b=Math.min(s,u);v<b&&o[v]===l[v];v++);for(b=s-1,w=u-1;b>=v&&w>=v&&o[b]===l[w];b--,w--)h[w]=r[b],g[w]=n[b],i&&(x[w]=i[b]);for(p=new Map,m=new Array(w+1),c=w;c>=v;c--)S=l[c],d=p.get(S),m[c]=d===void 0?-1:d,p.set(S,c);for(d=v;d<=b;d++)S=o[d],c=p.get(S),c!==void 0&&c!==-1?(h[c]=r[d],g[c]=n[d],i&&(x[c]=i[d]),c=m[c],p.set(S,c)):n[d]();for(c=v;c<u;c++)c in h?(r[c]=h[c],n[c]=g[c],i&&(i[c]=x[c],i[c](c))):r[c]=$t(f);r=r.slice(0,s=u),o=l.slice(0)}return r});function f(p){if(n[c]=p,i){let[m,h]=N(c);return i[c]=h,t(l[c],m)}return t(l[c])}}}function Um(e,t,a={}){let o=[],r=[],n=[],s=[],i=0,l;return X(()=>dn(n)),()=>{let u=e()||[],d=u.length;return u[cr],we(()=>{if(d===0)return i!==0&&(dn(n),n=[],o=[],r=[],i=0,s=[]),a.fallback&&(o=[ms],r[0]=$t(f=>(n[0]=f,a.fallback())),i=1),r;for(o[0]===ms&&(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]=$t(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]=N(u[l]);return s[l]=m,t(p,l)}}}function y(e,t){if(Hm&&Z.context){let a=Z.context;Qa(Rm());let o=we(()=>e(t||{}));return Qa(a),o}return we(()=>e(t||{}))}function en(){return!0}function ds(e){return(e=typeof e=="function"?e():e)?e:{}}function _m(){for(let e=0,t=this.length;e<t;++e){let a=this[e]();if(a!==void 0)return a}}function Y(...e){let t=!1;for(let s=0;s<e.length;s++){let i=e[s];t=t||!!i&&rn in i,e[s]=typeof i=="function"?(t=!0,k(i)):i}if($i&&t)return new Proxy({get(s){for(let i=e.length-1;i>=0;i--){let l=ds(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in ds(e[i]))return!0;return!1},keys(){let s=[];for(let i=0;i<e.length;i++)s.push(...Object.keys(ds(e[i])));return[...new Set(s)]}},gs);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:_m.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 ue(e,...t){if($i&&rn in e){let r=new Set(t.length>1?t.flat():t[0]),n=t.map(s=>new Proxy({get(i){return s.includes(i)?e[i]:void 0},has(i){return s.includes(i)&&i in e},keys(){return s.filter(i=>i in e)}},gs));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))}},gs)),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 Cs(e){let t,a,o=r=>{let n=Z.context;if(n){let[i,l]=N();Z.count||(Z.count=0),Z.count++,(a||(a=e())).then(u=>{!Z.done&&Qa(n),Z.count--,l(()=>u.default),Qa()}),t=i}else if(!t){let[i]=Em(()=>(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;Qa(n);let l=s(r);return Qa(i),l}):"")};return o.preload=()=>a||((a=e()).then(r=>t=()=>r.default),a),o}function it(){return Z.context?Z.getNextContextId():`cl-${Vm++}`}function Xi(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(zm(()=>e.each,e.children,t||void 0))}function Zi(e){let t="fallback"in e&&{fallback:()=>e.fallback};return k(Um(()=>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 ji("Show");return a()})):n}return e.fallback},void 0,void 0)}function Ji(e){let t=_i(()=>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 ji("Match");return n()})):i},void 0,void 0)}function mn(e){return e}function Xm(e,t){let a=jm[e];return typeof a=="object"?a[t]?a.$:void 0:a}function eg(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 ws(e,t,a,o={}){let r;return $t(n=>{r=n,t===document?e():P(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 fr(e,t=window.document){let a=t[ar]||(t[ar]=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,tu))}}function eu(e=window.document){if(e[ar]){for(let t of e[ar].keys())e.removeEventListener(t,tu);delete e[ar]}}function E(e,t,a){Xa(e)||(a==null?e.removeAttribute(t):e.setAttribute(t,a))}function tg(e,t,a,o){Xa(e)||(o==null?e.removeAttributeNS(t,a):e.setAttributeNS(t,a,o))}function ag(e,t,a){Xa(e)||(a?e.setAttribute(t,""):e.removeAttribute(t))}function O(e,t){Xa(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Ls(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 og(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]||(Ai(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||(Ai(e,i,!0),a[i]=l)}return a}function rg(e,t,a){if(!t)return a?E(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 Is(e,t={},a,o){let r={};return o||G(()=>r.children=lr(e,t.children,r.children)),G(()=>typeof t.ref=="function"&&ja(t.ref,e)),G(()=>ng(e,t,a,!0,r,!0)),r}function ja(e,t,a){return we(()=>e(t,a))}function P(e,t,a,o){if(a!==void 0&&!o&&(o=[]),typeof t!="function")return lr(e,t,o,a);G(r=>lr(e,t(),r,a),o)}function ng(e,t,a,o,r={},n=!1){t||(t={});for(let s in r)if(!(s in t)){if(s==="children")continue;r[s]=Ri(e,s,null,r[s],a,n,t)}for(let s in t){if(s==="children")continue;let i=t[s];r[s]=Ri(e,s,i,r[s],a,n,t)}}function sg(e){let t,a;return!Xa()||!(t=Z.registry.get(a=ig()))?e():(Z.completed&&Z.completed.add(t),Z.registry.delete(a),t)}function Xa(e){return!!Z.context&&!Z.done&&(!e||e.isConnected)}function lg(e){return e.toLowerCase().replace(/-([a-z])/g,(t,a)=>a.toUpperCase())}function Ai(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 Ri(e,t,a,o,r,n,s){let i,l,u,d,c;if(t==="style")return rg(e,a,o);if(t==="classList")return og(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)&&(Ls(e,f,a,p),p&&fr([f]))}else if(t.slice(0,5)==="attr:")E(e,t.slice(5),a);else if(t.slice(0,5)==="bool:")ag(e,t.slice(5),a);else if((c=t.slice(0,5)==="prop:")||(u=Wm.has(t))||!r&&((d=Xm(t,e.tagName))||(l=Gm.has(t)))||(i=e.nodeName.includes("-")||"is"in s)){if(c)t=t.slice(5),l=!0;else if(Xa(e))return a;t==="class"||t==="className"?O(e,a):i&&!l&&!u?e[lg(t)]=a:e[d||t]=a}else{let f=r&&t.indexOf(":")>-1&&Ym[t.split(":")[0]];f?tg(e,f,t,a):E(e,Qm[t]||t,a)}return a}function tu(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 lr(e,t,a,o,r){let n=Xa(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=mo(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=mo(e,a,o)}else{if(s==="function")return G(()=>{let l=t();for(;typeof l=="function";)l=l();a=lr(e,l,a,o)}),()=>a;if(Array.isArray(t)){let l=[],u=a&&Array.isArray(a);if(hs(l,t,a,r))return G(()=>a=lr(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=mo(e,a,o),i)return a}else u?a.length===0?Ti(e,l,o):eg(e,a,l):(a&&mo(e),Ti(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=mo(e,a,o,t);mo(e,a,null,t)}else a==null||a===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);a=t}}return a}function hs(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=hs(e,i,l)||r;else if(u==="function")if(o){for(;typeof i=="function";)i=i();r=hs(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 Ti(e,t,a=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],a)}function mo(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 ig(){return Z.getNextContextId()}function au(e,t=!1){return t?document.createElementNS(ug,e):document.createElement(e)}function Ss(e){let{useShadow:t}=e,a=document.createTextNode(""),o=()=>e.mount||document.body,r=ln(),n,s=!!Z.context;return W(()=>{s&&(ln().user=s=!1),n||(n=Fm(r,()=>k(()=>e.children)));let i=o();if(i instanceof HTMLHeadElement){let[l,u]=N(!1),d=()=>u(!0);$t(c=>P(i,()=>l()?c():n(),null)),X(d)}else{let l=au(e.isSVG?"g":"div",e.isSVG),u=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return a.parentNode},configurable:!0}),P(u,n),i.appendChild(l),e.ref&&e.ref(l),X(()=>i.removeChild(l))}},void 0,{render:!s}),a}function dg(e,t){let a=k(e);return k(()=>{let o=a();switch(typeof o){case"function":return we(()=>o(t));case"string":let r=Jm.has(o),n=Z.context?sg():au(o,r);return Is(n,t,r),n}})}function ou(e){let[,t]=ue(e,["component"]);return dg(()=>e.component,t)}function pg(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 mg(e,t){let a=pg(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 yo(e,t){Object.entries(e).forEach(([a,o])=>t(o,a))}function on(e,t){return e.indexOf(t)!==-1}function Di(e,t){for(let a=0;a<e.length;a++){let o=e[a];if(t(o))return o}}function Bt(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function gn(e,t,a,o){return{isApplicable:e,annotation:t,transform:a,untransform:o}}function cu(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}function gu(e){if(on(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(on(e,"prototype"))throw new Error("prototype is not allowed as a property");if(on(e,"constructor"))throw new Error("constructor is not allowed as a property")}function vs(e,t,a=[]){if(!e)return;if(!Ta(e)){yo(e,(n,s)=>vs(n,t,[...a,...or(s)]));return}let[o,r]=e;r&&yo(r,(n,s)=>{vs(n,t,[...a,...or(s)])}),t(o,a)}function Eg(e,t,a){return vs(t,(o,r)=>{e=ys(e,r,n=>Tg(n,o,a))}),e}function Fg(e,t){function a(o,r){let n=Dg(e,or(r));o.map(or).forEach(s=>{e=ys(e,s,()=>n)})}if(Ta(t)){let[o,r]=t;o.forEach(n=>{e=ys(e,or(n),()=>e)}),r&&yo(r,a)}else yo(t,a);return e}function Bg(e,t,a){let o=a.get(e);o?o.push(t):a.set(e,[t])}function $g(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(cs):a[cs(n)]=s.map(cs)}),o?xs(a)?[o]:[o,a]:xs(a)?void 0:a}function xu(e){return Object.prototype.toString.call(e).slice(8,-1)}function Oi(e){return xu(e)==="Array"}function qg(e){if(xu(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Ng(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 bs(e,t={}){if(Oi(e))return e.map(r=>bs(r,t));if(!qg(e))return e;let a=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols(e);return[...a,...o].reduce((r,n)=>{if(Oi(t.props)&&!t.props.includes(n))return r;let s=e[n],i=bs(s,t);return Ng(r,n,i,e,t.nonenumerable),r},{})}function Za(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function vu(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function bu({queryState:e,observerCount:t,isStale:a}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":a?"yellow":"green":"gray"}function Ja({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function Cu(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var Z,Bi,Tm,rn,$i,cr,nn,Si,qi,lt,rr,Ni,us,oe,q,vo,xo,ge,$e,je,cn,Om,ki,nr,ms,Hm,gs,Vm,ji,Yi,Km,Gm,Wm,Qm,jm,Zm,Jm,Ym,ar,Xe,ug,cg,ru,fg,gg,hg,nu,xg,ir,xs,Ta,yg,vg,bg,Cg,ur,dr,su,wg,Lg,Ei,Ig,Sg,kg,Pg,Mg,lu,cs,or,iu,uu,Ag,du,fu,pu,Rg,Fi,mu,Tg,go,Dg,ys,Og,hu,se,ks,yu,pr,tn,zg,wu,Ug,hn,an,Lu,Hg,xn,Ps,yn,Aa,ho,Ms,mr=qo(()=>{"use strict";C();Z={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Ii(this.context.count)},getNextContextId(){return Ii(this.context.count++)}};Bi=!1,Tm=(e,t)=>e===t,rn=Symbol("solid-proxy"),$i=typeof Proxy=="function",cr=Symbol("solid-track"),nn={equals:Tm},Si=null,qi=Gi,lt=1,rr=2,Ni={owned:null,cleanups:null,context:null,owner:null},us={},oe=null,q=null,vo=null,xo=null,ge=null,$e=null,je=null,cn=0;[Om,ki]=N(!1);ms=Symbol("fallback");Hm=!1;gs={get(e,t,a){return t===rn?a:e.get(t)},has(e,t){return t===rn?!0:e.has(t)},set:en,deleteProperty:en,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:en,deleteProperty:en}},ownKeys(e){return e.keys()}};Vm=0;ji=e=>`Stale read from <${e}>.`;Yi=void 0,Km=["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"],Gm=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Km]),Wm=new Set(["innerHTML","textContent","innerText","children"]),Qm=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),jm=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"]),Jm=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"]),Ym={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};ar="_$DX_DELEGATE";Xe=!1,ug="http://www.w3.org/2000/svg";cg=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()}},ru=class{constructor(e){this.generateIdentifier=e,this.kv=new cg}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)}},fg=class extends ru{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)}};gg=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return mg(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},hg=e=>Object.prototype.toString.call(e).slice(8,-1),nu=e=>typeof e>"u",xg=e=>e===null,ir=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,xs=e=>ir(e)&&Object.keys(e).length===0,Ta=e=>Array.isArray(e),yg=e=>typeof e=="string",vg=e=>typeof e=="number"&&!isNaN(e),bg=e=>typeof e=="boolean",Cg=e=>e instanceof RegExp,ur=e=>e instanceof Map,dr=e=>e instanceof Set,su=e=>hg(e)==="Symbol",wg=e=>e instanceof Date&&!isNaN(e.valueOf()),Lg=e=>e instanceof Error,Ei=e=>typeof e=="number"&&isNaN(e),Ig=e=>bg(e)||xg(e)||nu(e)||vg(e)||yg(e)||su(e),Sg=e=>typeof e=="bigint",kg=e=>e===1/0||e===-1/0,Pg=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Mg=e=>e instanceof URL,lu=e=>e.replace(/\./g,"\\."),cs=e=>e.map(String).map(lu).join("."),or=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};iu=[Bt(nu,"undefined",()=>null,()=>{}),Bt(Sg,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),Bt(wg,"Date",e=>e.toISOString(),e=>new Date(e)),Bt(Lg,"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}),Bt(Cg,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),Bt(dr,"set",e=>[...e.values()],e=>new Set(e)),Bt(ur,"map",e=>[...e.entries()],e=>new Map(e)),Bt(e=>Ei(e)||kg(e),"number",e=>Ei(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Bt(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Bt(Mg,"URL",e=>e.toString(),e=>new URL(e))];uu=gn((e,t)=>su(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}),Ag=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),du=gn(Pg,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let a=Ag[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});fu=gn(cu,(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)}),pu=gn((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)}),Rg=[fu,uu,pu,du],Fi=(e,t)=>{let a=Di(Rg,r=>r.isApplicable(e,t));if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};let o=Di(iu,r=>r.isApplicable(e,t));if(o)return{value:o.transform(e,t),type:o.annotation}},mu={};iu.forEach(e=>{mu[e.annotation]=e});Tg=(e,t,a)=>{if(Ta(t))switch(t[0]){case"symbol":return uu.untransform(e,t,a);case"class":return fu.untransform(e,t,a);case"custom":return pu.untransform(e,t,a);case"typed-array":return du.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{let o=mu[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,a)}},go=(e,t)=>{let a=e.keys();for(;t>0;)a.next(),t--;return a.next().value};Dg=(e,t)=>{gu(t);for(let a=0;a<t.length;a++){let o=t[a];if(dr(e))e=go(e,+o);else if(ur(e)){let r=+o,n=+t[++a]==0?"key":"value",s=go(e,r);switch(n){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[o]}return e},ys=(e,t,a)=>{if(gu(t),t.length===0)return a(e);let o=e;for(let n=0;n<t.length-1;n++){let s=t[n];if(Ta(o)){let i=+s;o=o[i]}else if(ir(o))o=o[s];else if(dr(o)){let i=+s;o=go(o,i)}else if(ur(o)){if(n===t.length-2)break;let l=+s,u=+t[++n]==0?"key":"value",d=go(o,l);switch(u){case"key":o=d;break;case"value":o=o.get(d);break}}}let r=t[t.length-1];if(Ta(o)?o[+r]=a(o[+r]):ir(o)&&(o[r]=a(o[r])),dr(o)){let n=go(o,+r),s=a(n);n!==s&&(o.delete(n),o.add(s))}if(ur(o)){let n=+t[t.length-2],s=go(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};Og=(e,t)=>ir(e)||Ta(e)||ur(e)||dr(e)||cu(e,t);hu=(e,t,a,o,r=[],n=[],s=new Map)=>{let i=Ig(e);if(!i){Bg(e,r,t);let p=s.get(e);if(p)return o?{transformedValue:null}:p}if(!Og(e,a)){let p=Fi(e,a),m=p?{transformedValue:p.value,annotations:[p.type]}:{transformedValue:e};return i||s.set(e,m),m}if(on(n,e))return{transformedValue:null};let l=Fi(e,a),u=l?.value??e,d=Ta(u)?[]:{},c={};yo(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 h=hu(p,t,a,o,[...r,m],[...n,e],s);d[m]=h.transformedValue,Ta(h.annotations)?c[m]=h.annotations:ir(h.annotations)&&yo(h.annotations,(g,x)=>{c[lu(m)+"."+x]=g})});let f=xs(c)?{transformedValue:d,annotations:l?[l.type]:void 0}:{transformedValue:d,annotations:l?[l.type,c]:c};return i||s.set(e,f),f};se=class{constructor({dedupe:e=!1}={}){this.classRegistry=new fg,this.symbolRegistry=new ru(t=>t.description??""),this.customTransformerRegistry=new gg,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,a=hu(e,t,this,this.dedupe),o={json:a.transformedValue};a.annotations&&(o.meta={...o.meta,values:a.annotations});let r=$g(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){let{json:t,meta:a}=e,o=bs(t);return a?.values&&(o=Eg(o,a.values,this)),a?.referentialEqualities&&(o=Fg(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)}};se.defaultInstance=new se;se.serialize=se.defaultInstance.serialize.bind(se.defaultInstance);se.deserialize=se.defaultInstance.deserialize.bind(se.defaultInstance);se.stringify=se.defaultInstance.stringify.bind(se.defaultInstance);se.parse=se.defaultInstance.parse.bind(se.defaultInstance);se.registerClass=se.defaultInstance.registerClass.bind(se.defaultInstance);se.registerSymbol=se.defaultInstance.registerSymbol.bind(se.defaultInstance);se.registerCustom=se.defaultInstance.registerCustom.bind(se.defaultInstance);se.allowErrorProps=se.defaultInstance.allowErrorProps.bind(se.defaultInstance);ks=se.serialize;se.deserialize;yu=se.stringify;se.parse;se.registerClass;se.registerCustom;se.registerSymbol;se.allowErrorProps;pr=(e,t=!1)=>{let{json:a}=ks(e);return JSON.stringify(a,null,t?2:void 0)},tn=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,zg=(e,t)=>e.queryHash.localeCompare(t.queryHash),wu=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Ug=(e,t)=>tn(e)===tn(t)?wu(e,t):tn(e)>tn(t)?1:-1,hn={status:Ug,"query hash":zg,"last updated":wu},an=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,Lu=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,Hg=(e,t)=>an(e)===an(t)?Lu(e,t):an(e)>an(t)?1:-1,xn={status:Hg,"last updated":Lu},Ps=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),yn=()=>{let[e,t]=N("dark");return ra(()=>{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},Aa=(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,Aa(o.get(r),n,a)),o}if(e instanceof Set){let o=Aa(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]=Aa(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]=Aa(o[r],n,a),o}return e},ho=(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,ho(a.get(o),r)),a}if(e instanceof Set){let a=ho(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]=ho(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]=ho(a[o],r),a}return e},Ms=(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 Wg(e){return(...t)=>{for(let a of e)a&&a(...t)}}function Qg(e,...t){return typeof e=="function"?e(...t):e}function Xg(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]=N(),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=N(void 0,{equals:!1}),s.set(p,m)),m[0]();let h=r.reduce((g,x)=>{if(g!==null||!x)return g;try{return x.getItem(`${n}${p}`)}catch(v){return o(v,`Error reading ${n}${p} from ${x.name}`),null}},null);return h!==null&&e?.deserializer?e.deserializer(h,p,e.options):h}}),l=(f,p,m)=>{let h=e?.serializer?e.serializer(p,f,m??e.options):p,g=`${n}${f}`;r.forEach(v=>{try{v.getItem(g)!==h&&v.setItem(g,h)}catch(b){o(b,`Error setting ${n}${f} to ${h} in ${v.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,h)=>{if(!f.hasOwnProperty(m)){let g=h&&e?.deserializer?e.deserializer(h,m,e.options):h;g&&(f[m]=g)}};return r.forEach(m=>{if(typeof m.getAll=="function"){let h;try{h=m.getAll()}catch(g){o(g,`Error getting all values from in ${m.name}`)}for(let g of h)p(g,h[g])}else{let h=0,g;try{for(;g=m.key(h++);)f.hasOwnProperty(g)||p(g,m.getItem(g))}catch(x){o(x,`Error getting all values from ${m.name}`)}}}),f};return e?.sync!==!1&&ra(()=>{let f=p=>{let m=!1;r.forEach(h=>{try{h!==p.storageArea&&p.key&&p.newValue!==h.getItem(p.key)&&(p.newValue?h.setItem(p.key,p.newValue):h.removeItem(p.key),m=!0)}catch(g){o(g,`Error synching api ${h.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(Sr)}function Ke(){return qe(kr)}function lh(e){return e.replace(sh,t=>wd[t])}function Pu(e,t,a){var o;if(a=a||{},a.threshold=(o=a.threshold)!=null?o:st.MATCHES,!a.accessors){let s=Mu(e,t,a);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:a.threshold,passed:s>=a.threshold}}let r=ch(e,a.accessors),n={rankedValue:e,rank:st.NO_MATCH,accessorIndex:-1,accessorThreshold:a.threshold,passed:!1};for(let s=0;s<r.length;s++){let i=r[s],l=Mu(i.itemValue,t,a),{minRanking:u,maxRanking:d,threshold:c=a.threshold}=i.attributes;l<u&&l>=st.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 Mu(e,t,a){return e=Au(e,a),t=Au(t,a),t.length>e.length?st.NO_MATCH:e===t?st.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?st.EQUAL:e.startsWith(t)?st.STARTS_WITH:e.includes(` ${t}`)?st.WORD_STARTS_WITH:e.includes(t)?st.CONTAINS:t.length===1?st.NO_MATCH:ih(e).includes(t)?st.ACRONYM:uh(e,t))}function ih(e){let t="";return e.split(" ").forEach(o=>{o.split("-").forEach(n=>{t+=n.substr(0,1)})}),t}function uh(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 st.MATCHES+d*u}let s=r(t[0],e,0);if(s<0)return st.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 st.NO_MATCH}let i=o-s;return n(i)}function Au(e,t){let{keepDiacritics:a}=t;return e=`${e}`,a||(e=lh(e)),e}function dh(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 ch(e,t){let a=[];for(let o=0,r=t.length;o<r;o++){let n=t[o],s=fh(n),i=dh(e,n);for(let l=0,u=i.length;l<u;l++)a.push({itemValue:i[l],attributes:s})}return a}function fh(e){return typeof e=="function"?Ru:{...Ru,...e}}function ae(e){let t=this||{},a=e.call?e(t.p):e;return xh(a.unshift?a.raw?yh(a,[].slice.call(arguments,1),t.p):a.reduce((o,r)=>Object.assign(o,r&&r.call?r(t.p):r),{}):a,mh(t.target),t.g,t.o,t.k)}function Id(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=Id(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=Id(e))&&(o&&(o+=" "),o+=t);return o}function vh(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]=N([],{equals:!1}),[l]=Hi(),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[cr],we(l))return l(),c;if(f.length){let m=c.filter(h=>!f.includes(h));return f.length=0,o({list:m,added:[],removed:[],unchanged:m,finishRemoved:u}),m}return we(()=>{let m=new Set(p),h=p.slice(),g=[],x=[],v=[];for(let w of p)(r.has(w)?v:g).push(w);let b=!g.length;for(let w=0;w<c.length;w++){let S=c[w];m.has(S)||(n.has(S)||(x.push(S),n.add(S)),d(h,S,w)),b&&S!==h[w]&&(b=!1)}return!x.length&&b?c:(o({list:h,added:g,removed:x,unchanged:v,finishRemoved:u}),r=m,h)})},t.appear?[]:a.slice())}function rt(...e){return Wg(e)}function Bs(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return Bs(e(),t);if(Array.isArray(e)){let a=[];for(let o of e){let r=Bs(o,t);r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}return a.length?a:null}return null}function bh(e,t=Du,a=Du){let o=k(e),r=k(()=>Bs(o(),Xe?a:t));return r.toArray=()=>{let n=r();return Array.isArray(n)?n:n?[n]:[]},r}function Ch(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 Sd(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function wh(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())}),Sd(()=>{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 Lh(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()),Sd(()=>{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 Fu(e){for(let t of e)t.dispose()}function Ih(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(()=>Fu(r.values())),()=>{let s=e()||[];return s[cr],we(()=>{if(!s.length)return Fu(r.values()),r.clear(),o.fallback?[$t(c=>(r.set(As,{dispose:c}),o.fallback()))]:[];let i=new Array(s.length),l=r.get(As);if(!r.size||l){l?.dispose(),r.delete(As);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){$t(d=>{let[c,f]=N(i),p={setItem:f,dispose:d};if(a.length>1){let[m,h]=N(l);p.setIndex=h,p.mapped=a(c,m)}else p.mapped=a(c);r.set(u,p),s[l]=p.mapped})}}function wn(e){let{by:t}=e;return k(Ih(()=>e.each,typeof t=="function"?t:a=>a[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function Sh(e,t,a,o){return e.addEventListener(t,a,o),jg(e.removeEventListener.bind(e,t,a,o))}function kh(e,t,a,o){if(Xe)return;let r=()=>{Fs(A(e)).forEach(n=>{n&&Fs(A(t)).forEach(s=>Sh(n,s,a,o))})};typeof e=="function"?W(r):G(r)}function Ph(e,t){if(Xe)return{observe:Iu,unobserve:Iu};let a=new ResizeObserver(e);return X(a.disconnect.bind(a)),{observe:o=>a.observe(o,t),unobserve:a.unobserve.bind(a)}}function kd(e,t,a){if(Xe)return;let o=new WeakMap,{observe:r,unobserve:n}=Ph(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=Gg(Fs(A(e)));return Xg(i,s,r,n),i},[])}function Ou(e){let t={},a;for(;a=Mh.exec(e);)t[a[1]]=a[2];return t}function Dn(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=Ou(e)}else typeof t=="string"&&(t=Ou(t));return{...e,...t}}function Ah(e,t,a=-1){return a in e?[...e.slice(0,a),t,...e.slice(a)]:[...e,t]}function $s(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function Rh(e){return typeof e=="number"}function wo(e){return Object.prototype.toString.call(e)==="[object String]"}function Th(e){return typeof e=="function"}function Pr(e){return t=>`${e()}-${t}`}function vt(e,t){return e?e===t||e.contains(t):!1}function yr(e,t=!1){let{activeElement:a}=zt(e);if(!a?.nodeName)return null;if(Pd(a)&&a.contentDocument)return yr(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let r=zt(a).getElementById(o);if(r)return r}}return a}function Dh(e){return zt(e).defaultView||window}function zt(e){return e?e.ownerDocument||e:document}function Pd(e){return e.tagName==="IFRAME"}function Qs(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function En(){return Qs(/^Mac/i)}function Eh(){return Qs(/^iPhone/i)}function Fh(){return Qs(/^iPad/i)||En()&&navigator.maxTouchPoints>1}function Oh(){return Eh()||Fh()}function Bh(){return En()||Oh()}function Me(e,t){return t&&(Th(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function Ve(e){return t=>{for(let a of e)Me(t,a)}}function $h(e){return En()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function Je(e){if(e)if(qh())e.focus({preventScroll:!0});else{let t=Nh(e);e.focus(),zh(t)}}function qh(){if(vn==null){vn=!1;try{document.createElement("div").focus({get preventScroll(){return vn=!0,!0}})}catch{}}return vn}function Nh(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 zh(e){for(let{element:t,scrollTop:a,scrollLeft:o}of e)t.scrollTop=a,t.scrollLeft=o}function Ad(e,t){let o=Array.from(e.querySelectorAll(js)).filter(Bu);return t&&Bu(e)&&o.unshift(e),o.forEach((r,n)=>{if(Pd(r)&&r.contentDocument){let s=r.contentDocument.body,i=Ad(s,!1);o.splice(n,1,...i)}}),o}function Bu(e){return Rd(e)&&!_h(e)}function Rd(e){return e.matches(js)&&Xs(e)}function _h(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Xs(e,t){return e.nodeName!=="#comment"&&Vh(e)&&Kh(e,t)&&(!e.parentElement||Xs(e.parentElement,e))}function Vh(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 Kh(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Gh(e,t,a){let o=t?.tabbable?Hh:js,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(n){return t?.from?.contains(n)?NodeFilter.FILTER_REJECT:n.matches(o)&&Xs(n)&&(!t?.accept||t.accept(n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function $u(e){for(;e&&!Wh(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Wh(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Qh(){}function jh(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 le(e,t){return Y(e,t)}function Nu(){if(typeof window>"u")return;let e=a=>{if(!a.target)return;let o=gr.get(a.target);o||(o=new Set,gr.set(a.target,o),a.target.addEventListener("transitioncancel",t)),o.add(a.propertyName)},t=a=>{if(!a.target)return;let o=gr.get(a.target);if(o&&(o.delete(a.propertyName),o.size===0&&(a.target.removeEventListener("transitioncancel",t),gr.delete(a.target)),gr.size===0)){for(let r of qu)r();qu.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}function qs(e,t){let a=zu(e,t,"left"),o=zu(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 zu(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 Xh(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let r=$u(e);for(;e&&r&&e!==a&&r!==a;)qs(r,e),e=r,r=$u(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 bt(e){return t=>(e(t),()=>e(void 0))}function Fn(e,t){let[a,o]=N(Uu(t?.()));return W(()=>{o(e()?.tagName.toLowerCase()||Uu(t?.()))}),a}function Uu(e){return wo(e)?e:void 0}function Ae(e){let[t,a]=ue(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return y(ou,Y(a,{get component(){return t.as}}))}function Jh(e){let t=`form-control-${it()}`,a=le({id:t},e),[o,r]=N(),[n,s]=N(),[i,l]=N(),[u,d]=N(),c=(h,g,x)=>{let v=x!=null||o()!=null;return[x,o(),v&&g!=null?h:void 0].filter(Boolean).join(" ")||void 0},f=h=>[i(),u(),h].filter(Boolean).join(" ")||void 0,p=k(()=>({"data-valid":A(a.validationState)==="valid"?"":void 0,"data-invalid":A(a.validationState)==="invalid"?"":void 0,"data-required":A(a.required)?"":void 0,"data-disabled":A(a.disabled)?"":void 0,"data-readonly":A(a.readOnly)?"":void 0}));return{formControlContext:{name:()=>A(a.name)??A(a.id),dataset:p,validationState:()=>A(a.validationState),isRequired:()=>A(a.required),isDisabled:()=>A(a.disabled),isReadOnly:()=>A(a.readOnly),labelId:o,fieldId:n,descriptionId:i,errorMessageId:u,getAriaLabelledBy:c,getAriaDescribedBy:f,generateId:Pr(()=>A(a.id)),registerLabel:bt(r),registerField:bt(s),registerDescription:bt(l),registerErrorMessage:bt(d)}}}function Mr(){let e=qe(Dd);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function Ed(e){let t=Mr(),a=le({id:t.generateId("description")},e);return W(()=>X(t.registerDescription(a.id))),y(Ae,Y({as:"div"},()=>t.dataset(),a))}function Fd(e){let t=Mr(),a=le({id:t.generateId("error-message")},e),[o,r]=ue(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(Ae,Y({as:"div"},()=>t.dataset(),r))}})}function Yh(e){let t,a=Mr(),o=le({id:a.generateId("label")},e),[r,n]=ue(o,["ref"]),s=Fn(()=>t,()=>"label");return W(()=>X(a.registerLabel(n.id))),y(Ae,Y({as:"label",ref(i){let l=rt(u=>t=u,r.ref);typeof l=="function"&&l(i)},get for(){return k(()=>s()==="label")()?a.fieldId():void 0}},()=>a.dataset(),n))}function e0(e,t){W(qt(e,a=>{if(a==null)return;let o=t0(a);o!=null&&(o.addEventListener("reset",t,{passive:!0}),X(()=>{o.removeEventListener("reset",t)}))}))}function t0(e){return a0(e)?e.form:e.closest("form")}function a0(e){return e.matches("textarea, input, select, button")}function Ar(e){let[t,a]=N(e.defaultValue?.()),o=k(()=>e.value?.()!==void 0),r=k(()=>o()?e.value?.():t());return[r,s=>{we(()=>{let i=Qg(s,r());return Object.is(i,r())||(o()||a(i),e.onChange?.(i)),i})}]}function Od(e){let[t,a]=Ar(e);return[()=>t()??!1,a]}function o0(e){let[t,a]=Ar(e);return[()=>t()??[],a]}function r0(e={}){let[t,a]=Od({value:()=>A(e.isSelected),defaultValue:()=>!!A(e.defaultIsSelected),onChange:n=>e.onSelectedChange?.(n)});return{isSelected:t,setIsSelected:n=>{!A(e.isReadOnly)&&!A(e.isDisabled)&&a(n)},toggle:()=>{!A(e.isReadOnly)&&!A(e.isDisabled)&&a(!t())}}}function $d(){return qe(Bd)}function s0(){let e=$d();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function qd(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function l0(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&&qd(r,a))return o+1}return 0}function i0(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:qd(i,l)?(o>n&&(a=!0),-1):(o<n&&(a=!0),1)}),a?t.map(([o,r])=>r):e}function Nd(e,t){let a=i0(e);e!==a&&t(a)}function u0(e){let t=e[0],a=e[e.length-1]?.ref(),o=t?.ref()?.parentElement;for(;o;){if(a&&o.contains(a))return o;o=o.parentElement}return zt(o).body}function d0(e,t){W(()=>{let a=setTimeout(()=>{Nd(e(),t)});X(()=>clearTimeout(a))})}function c0(e,t){if(typeof IntersectionObserver!="function"){d0(e,t);return}let a=[];W(()=>{let o=()=>{let s=!!a.length;a=e(),s&&Nd(e(),t)},r=u0(e()),n=new IntersectionObserver(o,{root:r});for(let s of e()){let i=s.ref();i&&n.observe(i)}X(()=>n.disconnect())})}function f0(e={}){let[t,a]=o0({value:()=>A(e.items),onChange:n=>e.onItemsChange?.(n)});c0(t,a);let o=n=>(a(s=>{let i=l0(s,n);return Ah(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(Bd.Provider,{value:{registerItem:o},get children(){return n.children}})}}function p0(e){let t=s0(),a=le({shouldRegisterItem:!0},e);W(()=>{if(!a.shouldRegisterItem)return;let o=t.registerItem(a.getItem());X(o)})}function zd(e){let t=e.startIndex??0,a=e.startLevel??0,o=[],r=l=>{if(l==null)return"";let u=e.getKey??"key",d=wo(u)?l[u]:u(l);return d!=null?String(d):""},n=l=>{if(l==null)return"";let u=e.getTextValue??"textValue",d=wo(u)?l[u]:u(l);return d!=null?String(d):""},s=l=>{if(l==null)return!1;let u=e.getDisabled??"disabled";return(wo(u)?l[u]:u(l))??!1},i=l=>{if(l!=null)return wo(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(let l of e.dataSource){if(wo(l)||Rh(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=zd({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 m0(e,t=[]){return k(()=>{let a=zd({dataSource:A(e.dataSource),getKey:A(e.getKey),getTextValue:A(e.getTextValue),getDisabled:A(e.getDisabled),getSectionChildren:A(e.getSectionChildren)});for(let o=0;o<t.length;o++)t[o]();return e.factory(a)})}function x0(e){if(Intl.Locale){let a=new Intl.Locale(e).maximize().script??"";return g0.has(a)}let t=e.split("-")[0];return h0.has(t)}function y0(e){return x0(e)?"rtl":"ltr"}function Ud(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:y0(e)}}function Hu(){Ns=Ud();for(let e of vr)e(Ns)}function v0(){let e={locale:"en-US",direction:"ltr"},[t,a]=N(Ns),o=k(()=>Xe?e:t());return ra(()=>{vr.size===0&&window.addEventListener("languagechange",Hu),vr.add(a),X(()=>{vr.delete(a),vr.size===0&&window.removeEventListener("languagechange",Hu)})}),{locale:()=>o().locale,direction:()=>o().direction}}function $a(){let e=v0();return qe(b0)||e}function C0(e){let{locale:t}=$a(),a=k(()=>t()+(e?Object.entries(e).sort((o,r)=>o[0]<r[0]?-1:1).join():""));return k(()=>{let o=a(),r;return Rs.has(o)&&(r=Rs.get(o)),r||(r=new Intl.Collator(t(),e),Rs.set(o,r)),r})}function w0(e){let[t,a]=Ar(e);return[()=>t()??new sa,a]}function _d(e){return Bh()?e.altKey:e.ctrlKey}function Lo(e){return En()?e.metaKey:e.ctrlKey}function _u(e){return new sa(e)}function L0(e,t){if(e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function I0(e){let t=le({selectionMode:"none",selectionBehavior:"toggle"},e),[a,o]=N(!1),[r,n]=N(),s=k(()=>{let h=A(t.selectedKeys);return h!=null?_u(h):h}),i=k(()=>{let h=A(t.defaultSelectedKeys);return h!=null?_u(h):new sa}),[l,u]=w0({value:s,defaultValue:i,onChange:h=>t.onSelectionChange?.(h)}),[d,c]=N(A(t.selectionBehavior)),f=()=>A(t.selectionMode),p=()=>A(t.disallowEmptySelection)??!1,m=h=>{(A(t.allowDuplicateSelectionEvents)||!L0(h,l()))&&u(h)};return W(()=>{let h=l();A(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof h=="object"&&h.size===0&&c("replace")}),W(()=>{c(A(t.selectionBehavior)??"toggle")}),{selectionMode:f,disallowEmptySelection:p,selectionBehavior:d,setSelectionBehavior:c,isFocused:a,setFocused:o,focusedKey:r,setFocusedKey:n,selectedKeys:l,setSelectedKeys:m}}function S0(e){let[t,a]=N(""),[o,r]=N(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(A(e.isDisabled))return;let i=A(e.keyboardDelegate),l=A(e.selectionManager);if(!i.getKeyForSearch)return;let u=k0(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&&P0(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 k0(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function P0(e){return e.split("").every(t=>t===e[0])}function M0(e,t,a){let r=Y({selectOnFocus:()=>A(e.selectionManager).selectionBehavior()==="replace"},e),n=()=>t(),{direction:s}=$a(),i={top:0,left:0};kh(()=>A(r.isVirtualized)?void 0:n(),"scroll",()=>{let g=n();g&&(i={top:g.scrollTop,left:g.scrollLeft})});let{typeSelectHandlers:l}=S0({isDisabled:()=>A(r.disallowTypeAhead),keyboardDelegate:()=>A(r.keyboardDelegate),selectionManager:()=>A(r.selectionManager)}),u=()=>A(r.orientation)??"vertical",d=g=>{Me(g,l.onKeyDown),g.altKey&&g.key==="Tab"&&g.preventDefault();let x=t();if(!x?.contains(g.target))return;let v=A(r.selectionManager),b=A(r.selectOnFocus),w=T=>{T!=null&&(v.setFocusedKey(T),g.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(T):b&&!_d(g)&&v.replaceSelection(T))},S=A(r.keyboardDelegate),F=A(r.shouldFocusWrap),D=v.focusedKey();switch(g.key){case(u()==="vertical"?"ArrowDown":"ArrowRight"):{if(S.getKeyBelow){g.preventDefault();let T;D!=null?T=S.getKeyBelow(D):T=S.getFirstKey?.(),T==null&&F&&(T=S.getFirstKey?.(D)),w(T)}break}case(u()==="vertical"?"ArrowUp":"ArrowLeft"):{if(S.getKeyAbove){g.preventDefault();let T;D!=null?T=S.getKeyAbove(D):T=S.getLastKey?.(),T==null&&F&&(T=S.getLastKey?.(D)),w(T)}break}case(u()==="vertical"?"ArrowLeft":"ArrowUp"):{if(S.getKeyLeftOf){g.preventDefault();let T=s()==="rtl",L;D!=null?L=S.getKeyLeftOf(D):L=T?S.getFirstKey?.():S.getLastKey?.(),w(L)}break}case(u()==="vertical"?"ArrowRight":"ArrowDown"):{if(S.getKeyRightOf){g.preventDefault();let T=s()==="rtl",L;D!=null?L=S.getKeyRightOf(D):L=T?S.getLastKey?.():S.getFirstKey?.(),w(L)}break}case"Home":if(S.getFirstKey){g.preventDefault();let T=S.getFirstKey(D,Lo(g));T!=null&&(v.setFocusedKey(T),Lo(g)&&g.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(T):b&&v.replaceSelection(T))}break;case"End":if(S.getLastKey){g.preventDefault();let T=S.getLastKey(D,Lo(g));T!=null&&(v.setFocusedKey(T),Lo(g)&&g.shiftKey&&v.selectionMode()==="multiple"?v.extendSelection(T):b&&v.replaceSelection(T))}break;case"PageDown":if(S.getKeyPageBelow&&D!=null){g.preventDefault();let T=S.getKeyPageBelow(D);w(T)}break;case"PageUp":if(S.getKeyPageAbove&&D!=null){g.preventDefault();let T=S.getKeyPageAbove(D);w(T)}break;case"a":Lo(g)&&v.selectionMode()==="multiple"&&A(r.disallowSelectAll)!==!0&&(g.preventDefault(),v.selectAll());break;case"Escape":g.defaultPrevented||(g.preventDefault(),A(r.disallowEmptySelection)||v.clearSelection());break;case"Tab":if(!A(r.allowsTabNavigation)){if(g.shiftKey)x.focus();else{let T=Gh(x,{tabbable:!0}),L,I;do I=T.lastChild(),I&&(L=I);while(I);L&&!L.contains(document.activeElement)&&Je(L)}break}}},c=g=>{let x=A(r.selectionManager),v=A(r.keyboardDelegate),b=A(r.selectOnFocus);if(x.isFocused()){g.currentTarget.contains(g.target)||x.setFocused(!1);return}if(g.currentTarget.contains(g.target)){if(x.setFocused(!0),x.focusedKey()==null){let w=F=>{F!=null&&(x.setFocusedKey(F),b&&x.replaceSelection(F))},S=g.relatedTarget;S&&g.currentTarget.compareDocumentPosition(S)&Node.DOCUMENT_POSITION_FOLLOWING?w(x.lastSelectedKey()??v.getLastKey?.()):w(x.firstSelectedKey()??v.getFirstKey?.())}else if(!A(r.isVirtualized)){let w=n();if(w){w.scrollTop=i.top,w.scrollLeft=i.left;let S=w.querySelector(`[data-key="${x.focusedKey()}"]`);S&&(Je(S),qs(w,S))}}}},f=g=>{let x=A(r.selectionManager);g.currentTarget.contains(g.relatedTarget)||x.setFocused(!1)},p=g=>{n()===g.target&&g.preventDefault()},m=()=>{let g=A(r.autoFocus);if(!g)return;let x=A(r.selectionManager),v=A(r.keyboardDelegate),b;g==="first"&&(b=v.getFirstKey?.()),g==="last"&&(b=v.getLastKey?.());let w=x.selectedKeys();w.size&&(b=w.values().next().value),x.setFocused(!0),x.setFocusedKey(b);let S=t();S&&b==null&&!A(r.shouldUseVirtualFocus)&&Je(S)};return ra(()=>{r.deferAutoFocus?setTimeout(m,0):m()}),W(qt([n,()=>A(r.isVirtualized),()=>A(r.selectionManager).focusedKey()],g=>{let[x,v,b]=g;if(v)b&&r.scrollToKey?.(b);else if(b&&x){let w=x.querySelector(`[data-key="${b}"]`);w&&qs(x,w)}})),{tabIndex:k(()=>{if(!A(r.shouldUseVirtualFocus))return A(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:p,onFocusIn:c,onFocusOut:f}}function Vd(e,t){let a=()=>A(e.selectionManager),o=()=>A(e.key),r=()=>A(e.shouldUseVirtualFocus),n=v=>{a().selectionMode()!=="none"&&(a().selectionMode()==="single"?a().isSelected(o())&&!a().disallowEmptySelection()?a().toggleSelection(o()):a().replaceSelection(o()):v?.shiftKey?a().extendSelection(o()):a().selectionBehavior()==="toggle"||Lo(v)||"pointerType"in v&&v.pointerType==="touch"?a().toggleSelection(o()):a().replaceSelection(o()))},s=()=>a().isSelected(o()),i=()=>A(e.disabled)||a().isDisabled(o()),l=()=>!i()&&a().canSelectItem(o()),u=null,d=v=>{l()&&(u=v.pointerType,v.pointerType==="mouse"&&v.button===0&&!A(e.shouldSelectOnPressUp)&&n(v))},c=v=>{l()&&v.pointerType==="mouse"&&v.button===0&&A(e.shouldSelectOnPressUp)&&A(e.allowsDifferentPressOrigin)&&n(v)},f=v=>{l()&&(A(e.shouldSelectOnPressUp)&&!A(e.allowsDifferentPressOrigin)||u!=="mouse")&&n(v)},p=v=>{!l()||!["Enter"," "].includes(v.key)||(_d(v)?a().toggleSelection(o()):n(v))},m=v=>{i()&&v.preventDefault()},h=v=>{let b=t();r()||i()||!b||v.target===b&&a().setFocusedKey(o())},g=k(()=>{if(!(r()||i()))return o()===a().focusedKey()?0:-1}),x=k(()=>A(e.virtualized)?void 0:o());return W(qt([t,o,r,()=>a().focusedKey(),()=>a().isFocused()],([v,b,w,S,F])=>{v&&b===S&&F&&!w&&document.activeElement!==v&&(e.focus?e.focus():Je(v))})),{isSelected:s,isDisabled:i,allowsSelection:l,tabIndex:g,dataKey:x,onPointerDown:d,onPointerUp:c,onClick:f,onKeyDown:p,onMouseDown:m,onFocus:h}}function R0(e){let t=I0(e),o=m0({dataSource:()=>A(e.dataSource),getKey:()=>A(e.getKey),getTextValue:()=>A(e.getTextValue),getDisabled:()=>A(e.getDisabled),getSectionChildren:()=>A(e.getSectionChildren),factory:n=>e.filter?new Vu(e.filter(n)):new Vu(n)},[()=>e.filter]),r=new A0(o,t);return sn(()=>{let n=t.focusedKey();n!=null&&!o().getItem(n)&&t.setFocusedKey(void 0)}),{collection:o,selectionManager:()=>r}}function Cr(e){return ia.findIndex(t=>t.node===e)}function E0(e){return ia[Cr(e)]}function F0(e){return ia[ia.length-1].node===e}function Wd(){return ia.filter(e=>e.isPointerBlocking)}function O0(){return[...Wd()].slice(-1)[0]}function Zs(){return Wd().length>0}function Qd(e){let t=Cr(O0()?.node);return Cr(e)<t}function B0(e){ia.push(e)}function $0(e){let t=Cr(e);t<0||ia.splice(t,1)}function q0(){for(let{node:e}of ia)e.style.pointerEvents=Qd(e)?"none":"auto"}function N0(e){if(Zs()&&!zs){let t=zt(e);Gd=document.body.style.pointerEvents,t.body.style.pointerEvents="none",zs=!0}}function z0(e){if(Zs())return;let t=zt(e);t.body.style.pointerEvents=Gd,t.body.style.length===0&&t.body.removeAttribute("style"),zs=!1}function _0(e){let t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?H0.indexOf(e.type)!==-1:!1}function Js(e){let t,a=le({type:"button"},e),[o,r]=ue(a,["ref","type","disabled"]),n=Fn(()=>t,()=>"button"),s=k(()=>{let u=n();return u==null?!1:_0({tagName:u,type:o.type})}),i=k(()=>n()==="input"),l=k(()=>n()==="a"&&t?.getAttribute("href")!=null);return y(Ae,Y({as:"button",ref(u){let d=rt(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 Us(e,t,a){return ct(e,Nt(t,a))}function oo(e,t){return typeof e=="function"?e(t):e}function Oa(e){return e.split("-")[0]}function ko(e){return e.split("-")[1]}function jd(e){return e==="x"?"y":"x"}function Ys(e){return e==="y"?"height":"width"}function to(e){return["top","bottom"].includes(Oa(e))?"y":"x"}function el(e){return jd(to(e))}function Q0(e,t,a){a===void 0&&(a=!1);let o=ko(e),r=el(e),n=Ys(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=Sn(s)),[s,Sn(s)]}function j0(e){let t=Sn(e);return[Hs(e),t,Hs(t)]}function Hs(e){return e.replace(/start|end/g,t=>W0[t])}function X0(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=ko(e),n=X0(Oa(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(Hs)))),n}function Sn(e){return e.replace(/left|right|bottom|top/g,t=>G0[t])}function J0(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xd(e){return typeof e!="number"?J0(e):{top:e,right:e,bottom:e,left:e}}function kn(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 Ku(e,t,a){let{reference:o,floating:r}=e,n=to(t),s=el(t),i=Ys(s),l=Oa(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(ko(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 wr(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}=oo(t,e),m=Xd(p),g=i[f?c==="floating"?"reference":"floating":c],x=kn(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(g)))==null||a?g:g.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:l})),v=c==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),w=await(n.isElement==null?void 0:n.isElement(b))?await(n.getScale==null?void 0:n.getScale(b))||{x:1,y:1}:{x:1,y:1},S=kn(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:b,strategy:l}):v);return{top:(x.top-S.top+m.top)/w.y,bottom:(S.bottom-x.bottom+m.bottom)/w.y,left:(x.left-S.left+m.left)/w.x,right:(S.right-x.right+m.right)/w.x}}function Gu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wu(e){return K0.some(t=>e[t]>=0)}async function ox(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Oa(a),i=ko(a),l=to(a)==="y",u=["left","top"].includes(s)?-1:1,d=n&&l?-1:1,c=oo(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 Po(e){return Zd(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ua(e){var t;return(t=(Zd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zd(e){return e instanceof Node||e instanceof ft(e).Node}function Mt(e){return e instanceof Element||e instanceof ft(e).Element}function Ut(e){return e instanceof HTMLElement||e instanceof ft(e).HTMLElement}function Qu(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}function Rr(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 lx(e){return["table","td","th"].includes(Po(e))}function Bn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function tl(e){let t=al(),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 ix(e){let t=Ba(e);for(;Ut(t)&&!So(t);){if(tl(t))return t;if(Bn(t))return null;t=Ba(t)}return null}function al(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function So(e){return["html","body","#document"].includes(Po(e))}function At(e){return ft(e).getComputedStyle(e)}function $n(e){return Mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ba(e){if(Po(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Qu(e)&&e.host||ua(e);return Qu(t)?t.host:t}function Jd(e){let t=Ba(e);return So(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ut(t)&&Rr(t)?t:Jd(t)}function Lr(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=Jd(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=ft(r);return n?t.concat(s,s.visualViewport||[],Rr(r)?r:[],s.frameElement&&a?Lr(s.frameElement):[]):t.concat(r,Lr(r,[],a))}function Yd(e){let t=At(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=Ut(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,i=In(a)!==n||In(o)!==s;return i&&(a=n,o=s),{width:a,height:o,$:i}}function ol(e){return Mt(e)?e:e.contextElement}function Io(e){let t=ol(e);if(!Ut(t))return Fa(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=Yd(t),s=(n?In(a.width):a.width)/o,i=(n?In(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}function ec(e){let t=ft(e);return!al()||!t.visualViewport?ux:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dx(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==ft(e)?!1:t}function ao(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=ol(e),s=Fa(1);t&&(o?Mt(o)&&(s=Io(o)):s=Io(e));let i=dx(n,a,o)?ec(n):Fa(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,h=m.frameElement;for(;h&&o&&p!==m;){let g=Io(h),x=h.getBoundingClientRect(),v=At(h),b=x.left+(h.clientLeft+parseFloat(v.paddingLeft))*g.x,w=x.top+(h.clientTop+parseFloat(v.paddingTop))*g.y;l*=g.x,u*=g.y,d*=g.x,c*=g.y,l+=b,u+=w,m=ft(h),h=m.frameElement}}return kn({width:d,height:c,x:l,y:u})}function cx(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=ua(o),i=t?Bn(t.floating):!1;if(o===s||i&&n)return a;let l={scrollLeft:0,scrollTop:0},u=Fa(1),d=Fa(0),c=Ut(o);if((c||!c&&!n)&&((Po(o)!=="body"||Rr(s))&&(l=$n(o)),Ut(o))){let f=ao(o);u=Io(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 fx(e){return Array.from(e.getClientRects())}function tc(e){return ao(ua(e)).left+$n(e).scrollLeft}function px(e){let t=ua(e),a=$n(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+tc(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 mx(e,t){let a=ft(e),o=ua(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,i=0,l=0;if(r){n=r.width,s=r.height;let u=al();(!u||u&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:i,y:l}}function gx(e,t){let a=ao(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=Ut(e)?Io(e):Fa(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 ju(e,t,a){let o;if(t==="viewport")o=mx(e,a);else if(t==="document")o=px(ua(e));else if(Mt(t))o=gx(t,a);else{let r=ec(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return kn(o)}function ac(e,t){let a=Ba(e);return a===t||!Mt(a)||So(a)?!1:At(a).position==="fixed"||ac(a,t)}function hx(e,t){let a=t.get(e);if(a)return a;let o=Lr(e,[],!1).filter(i=>Mt(i)&&Po(i)!=="body"),r=null,n=At(e).position==="fixed",s=n?Ba(e):e;for(;Mt(s)&&!So(s);){let i=At(s),l=tl(s);!l&&i.position==="fixed"&&(r=null),(n?!l&&!r:!l&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Rr(s)&&!l&&ac(e,s))?o=o.filter(d=>d!==s):r=i,s=Ba(s)}return t.set(e,o),o}function xx(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?Bn(t)?[]:hx(t,this._c):[].concat(a),o],i=s[0],l=s.reduce((u,d)=>{let c=ju(t,d,r);return u.top=ct(c.top,u.top),u.right=Nt(c.right,u.right),u.bottom=Nt(c.bottom,u.bottom),u.left=ct(c.left,u.left),u},ju(t,i,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yx(e){let{width:t,height:a}=Yd(e);return{width:t,height:a}}function vx(e,t,a){let o=Ut(t),r=ua(t),n=a==="fixed",s=ao(e,!0,n,t),i={scrollLeft:0,scrollTop:0},l=Fa(0);if(o||!o&&!n)if((Po(t)!=="body"||Rr(r))&&(i=$n(t)),o){let c=ao(t,!0,n,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else r&&(l.x=tc(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 Ts(e){return At(e).position==="static"}function Xu(e,t){return!Ut(e)||At(e).position==="fixed"?null:t?t(e):e.offsetParent}function oc(e,t){let a=ft(e);if(Bn(e))return a;if(!Ut(e)){let r=Ba(e);for(;r&&!So(r);){if(Mt(r)&&!Ts(r))return r;r=Ba(r)}return a}let o=Xu(e,t);for(;o&&lx(o)&&Ts(o);)o=Xu(o,t);return o&&So(o)&&Ts(o)&&!tl(o)?a:o||ix(e)||a}function Cx(e){return At(e).direction==="rtl"}function wx(e,t){let a=null,o,r=ua(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=bn(d),m=bn(r.clientWidth-(u+c)),h=bn(r.clientHeight-(d+f)),g=bn(u),v={rootMargin:-p+"px "+-m+"px "+-h+"px "+-g+"px",threshold:ct(0,Nt(1,l))||1},b=!0;function w(S){let F=S[0].intersectionRatio;if(F!==l){if(!b)return s();F?s(!1,F):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!1}try{a=new IntersectionObserver(w,{...v,root:r.ownerDocument})}catch{a=new IntersectionObserver(w,v)}a.observe(e)}return s(!0),n}function Lx(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=ol(e),d=r||n?[...u?Lr(u):[],...Lr(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",a,{passive:!0}),n&&x.addEventListener("resize",a)});let c=u&&i?wx(u,a):null,f=-1,p=null;s&&(p=new ResizeObserver(x=>{let[v]=x;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),a()}),u&&!l&&p.observe(u),p.observe(t));let m,h=l?ao(e):null;l&&g();function g(){let x=ao(e);h&&(x.x!==h.x||x.y!==h.y||x.width!==h.width||x.height!==h.height)&&a(),h=x,m=requestAnimationFrame(g)}return a(),()=>{var x;d.forEach(v=>{r&&v.removeEventListener("scroll",a),n&&v.removeEventListener("resize",a)}),c?.(),(x=p)==null||x.disconnect(),p=null,l&&cancelAnimationFrame(m)}}function nl(){let e=qe(rl);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}function sl(e){let t=nl(),a=le({size:_s},e),[o,r]=ue(a,["ref","style","size"]),n=()=>t.currentPlacement().split("-")[0],s=Ex(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*(_s/o.size),c=()=>`rotate(${Dx[n()]} ${Zu} ${Zu}) translate(0 2)`;return y(Ae,Y({as:"div",ref(f){let p=rt(t.setArrowRef,o.ref);typeof p=="function"&&p(f)},"aria-hidden":"true",get style(){return Dn({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=Tx(),p=f.firstChild;return G(()=>E(p,"transform",c())),f}}))}function Ex(e){let[t,a]=N();return W(()=>{let o=e();o&&a(Dh(o).getComputedStyle(o))}),t}function Fx(e){let t=nl(),[a,o]=ue(e,["ref","style"]);return y(Ae,Y({as:"div",ref(r){let n=rt(t.setPositionerRef,a.ref);typeof n=="function"&&n(r)},"data-popper-positioner":"",get style(){return Dn({position:"absolute",top:0,left:0,"min-width":"max-content"},a.style)}},o))}function Ju(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 Ox(e,t){return{contextElement:e,getBoundingClientRect:()=>{let o=t(e);return o?Ju(o):e?e.getBoundingClientRect():Ju()}}}function Bx(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function qx(e,t){let[a,o]=e.split("-"),r=$x[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 Nx(e){let t=le({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]=N(),[r,n]=N(),[s,i]=N(t.placement),l=()=>Ox(t.anchorRef?.(),t.getAnchorRect),{direction:u}=$a();async function d(){let f=l(),p=a(),m=r();if(!f||!p)return;let h=(m?.clientHeight||0)/2,g=typeof t.gutter=="number"?t.gutter+h:t.gutter??h;p.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),f.getBoundingClientRect();let x=[Ix(({placement:F})=>{let D=!!F.split("-")[1];return{mainAxis:g,crossAxis:D?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let F=typeof t.flip=="string"?t.flip.split(" "):void 0;if(F!==void 0&&!F.every(Bx))throw new Error("`flip` expects a spaced-delimited list of placements");x.push(kx({padding:t.overflowPadding,fallbackPlacements:F}))}(t.slide||t.overlap)&&x.push(Sx({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),x.push(Px({padding:t.overflowPadding,apply({availableWidth:F,availableHeight:D,rects:T}){let L=Math.round(T.reference.width);F=Math.floor(F),D=Math.floor(D),p.style.setProperty("--kb-popper-anchor-width",`${L}px`),p.style.setProperty("--kb-popper-content-available-width",`${F}px`),p.style.setProperty("--kb-popper-content-available-height",`${D}px`),t.sameWidth&&(p.style.width=`${L}px`),t.fitViewport&&(p.style.maxWidth=`${F}px`,p.style.maxHeight=`${D}px`)}})),t.hideWhenDetached&&x.push(Mx({padding:t.detachedPadding})),m&&x.push(Ax({element:m,padding:t.arrowPadding}));let v=await Rx(f,p,{placement:t.placement,strategy:"absolute",middleware:x,platform:{...rc,isRTL:()=>u()==="rtl"}});if(i(v.placement),t.onCurrentPlacementChange?.(v.placement),!p)return;p.style.setProperty("--kb-popper-content-transform-origin",qx(v.placement,u()));let b=Math.round(v.x),w=Math.round(v.y),S;if(t.hideWhenDetached&&(S=v.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(p.style,{top:"0",left:"0",transform:`translate3d(${b}px, ${w}px, 0)`,visibility:S}),m&&v.middlewareData.arrow){let{x:F,y:D}=v.middlewareData.arrow,T=v.placement.split("-")[0];Object.assign(m.style,{left:F!=null?`${F}px`:"",top:D!=null?`${D}px`:"",[T]:"100%"})}}W(()=>{let f=l(),p=a();if(!f||!p)return;let m=Lx(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(rl.Provider,{value:c,get children(){return t.children}})}function zx(e){let t=a=>{a.key===Ws.Escape&&e.onEscapeKeyDown?.(a)};W(()=>{if(Xe||A(e.isDisabled))return;let a=e.ownerDocument?.()??zt();a.addEventListener("keydown",t),X(()=>{a.removeEventListener("keydown",t)})})}function Ux(e,t){let a,o=Qh,r=()=>zt(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(`[${Ln}]`)||!vt(r(),f)||vt(t(),f)?!1:!e.shouldExcludeElement?.(f)},u=c=>{function f(){let p=t(),m=c.target;if(!p||!m||!l(c))return;let h=Ve([n,i]);m.addEventListener(Yu,h,{once:!0});let g=new CustomEvent(Yu,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:c.button===2||$h(c)&&c.button===0}});m.dispatchEvent(g)}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(ed,m,{once:!0});let h=new CustomEvent(ed,{bubbles:!1,cancelable:!0,detail:{originalEvent:c,isContextMenu:!1}});p.dispatchEvent(h)};W(()=>{Xe||A(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 Hx(){return qe(sc)}function _x(e){let t,a=Hx(),[o,r]=ue(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?.()}};Ux({shouldExcludeElement:c=>t?o.excludedElements?.some(f=>vt(f(),c))||[...n].some(f=>vt(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),zx({ownerDocument:()=>zt(t),onEscapeKeyDown:c=>{!t||!ut.isTopMostLayer(t)||(o.onEscapeKeyDown?.(c),!c.defaultPrevented&&o.onDismiss&&(c.preventDefault(),o.onDismiss()))}}),ra(()=>{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(qt([()=>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(sc.Provider,{value:d,get children(){return y(Ae,Y({as:"div",ref(c){let f=rt(p=>t=p,o.ref);typeof f=="function"&&f(c)}},r))}})}function lc(e={}){let[t,a]=Od({value:()=>A(e.open),defaultValue:()=>!!A(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),o=()=>{a(!0)},r=()=>{a(!1)};return{isOpen:t,setIsOpen:a,open:o,close:r,toggle:()=>{t()?r():o()}}}function uc(){let e=qe(ic);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}function Tr(){let e=qe(dc);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function cc(e){let t=Mr(),a=uc(),o=`${t.generateId("item")}-${it()}`,r=le({id:o},e),[n,s]=ue(r,["value","disabled","onPointerDown"]),[i,l]=N(),[u,d]=N(),[c,f]=N(),[p,m]=N(),[h,g]=N(!1),x=k(()=>a.isSelectedValue(n.value)),v=k(()=>n.disabled||t.isDisabled()||!1),b=F=>{Me(F,n.onPointerDown),h()&&F.preventDefault()},w=k(()=>({...t.dataset(),"data-disabled":v()?"":void 0,"data-checked":x()?"":void 0})),S={value:()=>n.value,dataset:w,isSelected:x,isDisabled:v,inputId:i,labelId:u,descriptionId:c,inputRef:p,select:()=>a.setSelectedValue(n.value),generateId:Pr(()=>s.id),registerInput:bt(l),registerLabel:bt(d),registerDescription:bt(f),setIsFocused:g,setInputRef:m};return y(dc.Provider,{value:S,get children(){return y(Ae,Y({as:"div",role:"group",onPointerDown:b},w,s))}})}function fc(e){let t=Tr(),a=le({id:t.generateId("control")},e),[o,r]=ue(a,["onClick","onKeyDown"]);return y(Ae,Y({as:"div",onClick:i=>{Me(i,o.onClick),t.select(),t.inputRef()?.focus()},onKeyDown:i=>{Me(i,o.onKeyDown),i.key===Ws.Space&&(t.select(),t.inputRef()?.focus())}},()=>t.dataset(),r))}function pc(e){let t=Tr(),a=le({id:t.generateId("description")},e);return W(()=>X(t.registerDescription(a.id))),y(Ae,Y({as:"div"},()=>t.dataset(),a))}function mc(e){let t=Tr(),a=le({id:t.generateId("indicator")},e),[o,r]=ue(a,["ref","forceMount"]),[n,s]=N(),{present:i}=Kd({show:()=>o.forceMount||t.isSelected(),element:()=>n()??null});return y(Q,{get when(){return i()},get children(){return y(Ae,Y({as:"div",ref(l){let u=rt(s,o.ref);typeof u=="function"&&u(l)}},()=>t.dataset(),r))}})}function gc(e){let t=Mr(),a=uc(),o=Tr(),r=le({id:o.generateId("input")},e),[n,s]=ue(r,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),i=()=>[n["aria-labelledby"],o.labelId(),n["aria-labelledby"]!=null&&s["aria-label"]!=null?s.id:void 0].filter(Boolean).join(" ")||void 0,l=()=>[n["aria-describedby"],o.descriptionId(),a.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[u,d]=N(!1),c=m=>{if(Me(m,n.onChange),m.stopPropagation(),!u()){a.setSelectedValue(o.value());let h=m.target;h.checked=o.isSelected()}d(!1)},f=m=>{Me(m,n.onFocus),o.setIsFocused(!0)},p=m=>{Me(m,n.onBlur),o.setIsFocused(!1)};return W(qt([()=>o.isSelected(),()=>o.value()],m=>{if(!m[0]&&m[1]===o.value())return;d(!0);let h=o.inputRef();h?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),h?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},{defer:!0})),W(()=>X(o.registerInput(s.id))),y(Ae,Y({as:"input",ref(m){let h=rt(o.setInputRef,n.ref);typeof h=="function"&&h(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 Dn({...Td},n.style)},get"aria-labelledby"(){return i()},get"aria-describedby"(){return l()},onChange:c,onFocus:f,onBlur:p},()=>o.dataset(),s))}function hc(e){let t=Tr(),a=le({id:t.generateId("label")},e);return W(()=>X(t.registerLabel(a.id))),y(Ae,Y({as:"label",get for(){return t.inputId()}},()=>t.dataset(),a))}function xc(e){return y(Yh,Y({as:"span"},e))}function yc(e){let t,a=`radiogroup-${it()}`,o=le({id:a,orientation:"vertical"},e),[r,n,s]=ue(o,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],Zh),[i,l]=Ar({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:m=>r.onChange?.(m)}),{formControlContext:u}=Jh(n);e0(()=>t,()=>l(r.defaultValue??""));let d=()=>u.getAriaLabelledBy(A(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 h of t.querySelectorAll("[type='radio']")){let g=h;g.checked=f(g.value)}}};return y(Dd.Provider,{value:u,get children(){return y(ic.Provider,{value:p,get children(){return y(Ae,Y({as:"div",ref(m){let h=rt(g=>t=g,r.ref);typeof h=="function"&&h(m)},role:"radiogroup",get id(){return A(n.id)},get"aria-invalid"(){return u.validationState()==="invalid"||void 0},get"aria-required"(){return u.isRequired()||void 0},get"aria-disabled"(){return u.isDisabled()||void 0},get"aria-readonly"(){return u.isReadOnly()||void 0},get"aria-orientation"(){return r.orientation},get"aria-labelledby"(){return d()},get"aria-describedby"(){return c()}},()=>u.dataset(),s))}})}})}function Gx(e,t,a){let o=C0({usage:"search",sensitivity:"base"}),r=k(()=>{let n=A(e.keyboardDelegate);return n||new Kx(e.collection,t,o)});return M0({selectionManager:()=>A(e.selectionManager),keyboardDelegate:r,autoFocus:()=>A(e.autoFocus),deferAutoFocus:()=>A(e.deferAutoFocus),shouldFocusWrap:()=>A(e.shouldFocusWrap),disallowEmptySelection:()=>A(e.disallowEmptySelection),selectOnFocus:()=>A(e.selectOnFocus),disallowTypeAhead:()=>A(e.disallowTypeAhead),shouldUseVirtualFocus:()=>A(e.shouldUseVirtualFocus),allowsTabNavigation:()=>A(e.allowsTabNavigation),isVirtualized:()=>A(e.isVirtualized),scrollToKey:n=>A(e.scrollToKey)?.(n),orientation:()=>A(e.orientation)},t)}function Wx(e,t){let[a,o]=N(!1),r={pause(){o(!0)},resume(){o(!1)}},n=null,s=m=>e.onMountAutoFocus?.(m),i=m=>e.onUnmountAutoFocus?.(m),l=()=>zt(t()),u=()=>{let m=l().createElement("span");return m.setAttribute("data-focus-trap",""),m.tabIndex=0,Object.assign(m.style,Td),m},d=()=>{let m=t();return m?Ad(m,!0).filter(h=>!h.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 h=yr(m);return!h||vt(m,h)?!1:Rd(h)};W(()=>{if(Xe)return;let m=t();if(!m)return;ad.add(r);let h=yr(m);if(!vt(m,h)){let x=new CustomEvent(Ds,td);m.addEventListener(Ds,s),m.dispatchEvent(x),x.defaultPrevented||setTimeout(()=>{Je(c()),yr(m)===h&&Je(m)},0)}X(()=>{m.removeEventListener(Ds,s),setTimeout(()=>{let x=new CustomEvent(Es,td);p()&&x.preventDefault(),m.addEventListener(Es,i),m.dispatchEvent(x),x.defaultPrevented||Je(h??l().body),m.removeEventListener(Es,i),ad.remove(r)},0)})}),W(()=>{if(Xe)return;let m=t();if(!m||!A(e.trapFocus)||a())return;let h=x=>{let v=x.target;v?.closest(`[${Ln}]`)||(vt(m,v)?n=v:Je(n))},g=x=>{let b=x.relatedTarget??yr(m);b?.closest(`[${Ln}]`)||vt(m,b)||Je(n)};l().addEventListener("focusin",h),l().addEventListener("focusout",g),X(()=>{l().removeEventListener("focusin",h),l().removeEventListener("focusout",g)})}),W(()=>{if(Xe)return;let m=t();if(!m||!A(e.trapFocus)||a())return;let h=u();m.insertAdjacentElement("afterbegin",h);let g=u();m.insertAdjacentElement("beforeend",g);function x(b){let w=c(),S=f();b.relatedTarget===w?Je(S):Je(w)}h.addEventListener("focusin",x),g.addEventListener("focusin",x);let v=new MutationObserver(b=>{for(let w of b)w.previousSibling===g&&(g.remove(),m.insertAdjacentElement("beforeend",g)),w.nextSibling===h&&(h.remove(),m.insertAdjacentElement("afterbegin",h))});v.observe(m,{childList:!0,subtree:!1}),X(()=>{h.removeEventListener("focusin",x),g.removeEventListener("focusin",x),h.remove(),g.remove(),v.disconnect()})})}function jx(e){W(()=>{A(e.isDisabled)||X(Xx(A(e.targets),A(e.root)))})}function Xx(e,t=document.body){let a=new Set(e),o=new Set,r=l=>{for(let f of l.querySelectorAll(`[${Qx}], [${Ln}]`))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=hr.get(l)??0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),o.add(l),hr.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=hr.get(l);if(u==null)return;u===1?(l.removeAttribute("aria-hidden"),hr.delete(l)):hr.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 bc(){return qe(vc)}function da(){let e=bc();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}function ll(){let e=qe(Cc);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}function Ht(){let e=qe(wc);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function il(e){let t,a=Ht(),o=da(),r=le({id:a.generateId(`item-${it()}`)},e),[n,s]=ue(r,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[i,l]=N(),[u,d]=N(),[c,f]=N(),p=()=>o.listState().selectionManager(),m=()=>s.id,h=()=>p().focusedKey()===m(),g=()=>{n.onSelect?.(),n.closeOnSelect&&setTimeout(()=>{o.close(!0)})};p0({getItem:()=>({ref:()=>t,type:"item",key:m(),textValue:n.textValue??c()?.textContent??t?.textContent??"",disabled:n.disabled??!1})});let x=Vd({key:m,selectionManager:p,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),v=L=>{Me(L,n.onPointerMove),L.pointerType==="mouse"&&(n.disabled?o.onItemLeave(L):(o.onItemEnter(L),L.defaultPrevented||(Je(L.currentTarget),o.listState().selectionManager().setFocused(!0),o.listState().selectionManager().setFocusedKey(m()))))},b=L=>{Me(L,n.onPointerLeave),L.pointerType==="mouse"&&o.onItemLeave(L)},w=L=>{Me(L,n.onPointerUp),!n.disabled&&L.button===0&&g()},S=L=>{if(Me(L,n.onKeyDown),!L.repeat&&!n.disabled)switch(L.key){case"Enter":case" ":g();break}},F=k(()=>{if(n.indeterminate)return"mixed";if(n.checked!=null)return n.checked}),D=k(()=>({"data-indeterminate":n.indeterminate?"":void 0,"data-checked":n.checked&&!n.indeterminate?"":void 0,"data-disabled":n.disabled?"":void 0,"data-highlighted":h()?"":void 0})),T={isChecked:()=>n.checked,dataset:D,setLabelRef:f,generateId:Pr(()=>s.id),registerLabel:bt(l),registerDescription:bt(d)};return y(Cc.Provider,{value:T,get children(){return y(Ae,Y({as:"div",ref(L){let I=rt(U=>t=U,n.ref);typeof I=="function"&&I(L)},get tabIndex(){return x.tabIndex()},get"aria-checked"(){return F()},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([S,x.onKeyDown])},get onMouseDown(){return Ve([n.onMouseDown,x.onMouseDown])},get onFocus(){return Ve([n.onFocus,x.onFocus])},onPointerMove:v,onPointerLeave:b},D,s))}})}function Lc(e){let t=le({closeOnSelect:!1},e),[a,o]=ue(t,["checked","defaultChecked","onChange","onSelect"]),r=r0({isSelected:()=>a.checked,defaultIsSelected:()=>a.defaultChecked,onSelectedChange:s=>a.onChange?.(s),isDisabled:()=>o.disabled});return y(il,Y({role:"menuitemcheckbox",get checked(){return r.isSelected()},onSelect:()=>{a.onSelect?.(),r.toggle()}},o))}function qn(){return qe(s1)}function Ic(e){let t=Ht(),a=da(),o=qn(),{direction:r}=$a(),n=le({id:t.generateId("trigger")},e),[s,i]=ue(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=Fn(()=>a.triggerRef(),()=>"button"),d=k(()=>u()==="a"&&a.triggerRef()?.getAttribute("href")!=null);W(qt(()=>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=>{Me(x,s.onPointerDown),x.currentTarget.dataset.pointerType=x.pointerType,!s.disabled&&x.pointerType!=="touch"&&x.button===0&&c()},p=x=>{Me(x,s.onClick),s.disabled||x.currentTarget.dataset.pointerType==="touch"&&c()},m=x=>{if(Me(x,s.onKeyDown),!s.disabled){if(d())switch(x.key){case"Enter":case" ":return}switch(x.key){case"Enter":case" ":case id.first(t.orientation()):x.stopPropagation(),x.preventDefault(),Xh(x.currentTarget),a.open("first"),o?.setAutoFocusMenu(!0),o?.setValue(l);break;case id.last(t.orientation()):x.stopPropagation(),x.preventDefault(),a.open("last");break;case Ir.next(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.nextMenu();break;case Ir.previous(r(),t.orientation()):if(o===void 0)break;x.stopPropagation(),x.preventDefault(),o.previousMenu();break}}},h=x=>{Me(x,s.onMouseOver),a.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&o!==void 0&&o.value()!==void 0&&o.setValue(l)},g=x=>{Me(x,s.onFocus),o!==void 0&&x.currentTarget.dataset.pointerType!=="touch"&&o.setValue(l)};return W(()=>X(a.registerTriggerId(s.id))),y(Js,Y({ref(x){let v=rt(a.setTriggerRef,s.ref);typeof v=="function"&&v(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:h,onClick:p,onKeyDown:m,onFocus:g,role:o!==void 0?"menuitem":void 0},()=>a.dataset(),i))}function Sc(){return qe(l1)}function kc(e){let t,a=Ht(),o=da(),r=qn(),n=Sc(),{direction:s}=$a(),i=le({id:a.generateId(`content-${it()}`)},e),[l,u]=ue(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=Gx({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);Wx({trapFocus:()=>c()&&o.isOpen(),onMountAutoFocus:b=>{r===void 0&&l.onOpenAutoFocus?.(b)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);let p=b=>{if(vt(b.currentTarget,b.target)&&(b.key==="Tab"&&o.isOpen()&&b.preventDefault(),r!==void 0&&b.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(b.key){case Ir.next(s(),a.orientation()):b.stopPropagation(),b.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.nextMenu();break;case Ir.previous(s(),a.orientation()):if(b.currentTarget.hasAttribute("data-closed"))break;b.stopPropagation(),b.preventDefault(),o.close(!0),r.setAutoFocusMenu(!0),r.previousMenu();break}},m=b=>{l.onEscapeKeyDown?.(b),r?.setAutoFocusMenu(!1),o.close(!0)},h=b=>{l.onFocusOutside?.(b),a.isModal()&&b.preventDefault()},g=b=>{Me(b,l.onPointerEnter),o.isOpen()&&(o.parentMenuContext()?.listState().selectionManager().setFocused(!1),o.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},x=b=>{if(Me(b,l.onPointerMove),b.pointerType!=="mouse")return;let w=b.target,S=d!==b.clientX;vt(b.currentTarget,w)&&S&&(o.setPointerDir(b.clientX>d?"right":"left"),d=b.clientX)};W(()=>X(o.registerContentId(l.id)));let v={ref:rt(b=>{o.setContentRef(b),t=b},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:g,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(Ae,Y({as:"div"},()=>o.dataset(),v,u))},get children(){return y(nc.Positioner,{get children(){return y(_x,Y({get disableOutsidePointerEvents(){return k(()=>!!c())()&&o.isOpen()},get excludedElements(){return[o.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return Dn({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},l.style)},onEscapeKeyDown:m,onFocusOutside:h,get onDismiss(){return o.close}},()=>o.dataset(),v,u))}})}})}})}function i1(e){let t,a=Ht(),o=da(),[r,n]=ue(e,["ref"]);return n1({element:()=>t??null,enabled:()=>o.contentPresent()&&a.preventScroll()}),y(kc,Y({ref(s){let i=rt(l=>{t=l},r.ref);typeof i=="function"&&i(s)}},n))}function u1(){let e=qe(Pc);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function ul(e){let t=Ht(),a=le({id:t.generateId(`group-${it()}`)},e),[o,r]=N(),n={generateId:Pr(()=>a.id),registerLabelId:bt(r)};return y(Pc.Provider,{value:n,get children(){return y(Ae,Y({as:"div",role:"group",get"aria-labelledby"(){return o()}},a))}})}function Mc(e){let t=u1(),a=le({id:t.generateId("label")},e),[o,r]=ue(a,["id"]);return W(()=>X(t.registerLabelId(o.id))),y(Ae,Y({as:"span",get id(){return o.id},"aria-hidden":"true"},r))}function Ac(e){let t=da(),a=le({children:"\u25BC"},e);return y(Ae,Y({as:"span","aria-hidden":"true"},()=>t.dataset(),a))}function Rc(e){return y(il,Y({role:"menuitem",closeOnSelect:!0},e))}function Tc(e){let t=ll(),a=le({id:t.generateId("description")},e),[o,r]=ue(a,["id"]);return W(()=>X(t.registerDescription(o.id))),y(Ae,Y({as:"div",get id(){return o.id}},()=>t.dataset(),r))}function Dc(e){let t=ll(),a=le({id:t.generateId("indicator")},e),[o,r]=ue(a,["forceMount"]);return y(Q,{get when(){return o.forceMount||t.isChecked()},get children(){return y(Ae,Y({as:"div"},()=>t.dataset(),r))}})}function Ec(e){let t=ll(),a=le({id:t.generateId("label")},e),[o,r]=ue(a,["ref","id"]);return W(()=>X(t.registerLabel(o.id))),y(Ae,Y({as:"div",ref(n){let s=rt(t.setLabelRef,o.ref);typeof s=="function"&&s(n)},get id(){return o.id}},()=>t.dataset(),r))}function Fc(e){let t=da();return y(Q,{get when(){return t.contentPresent()},get children(){return y(Ss,e)}})}function d1(){let e=qe(Oc);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Bc(e){let a=Ht().generateId(`radiogroup-${it()}`),o=le({id:a},e),[r,n]=ue(o,["value","defaultValue","onChange","disabled"]),[s,i]=Ar({value:()=>r.value,defaultValue:()=>r.defaultValue,onChange:u=>r.onChange?.(u)}),l={isDisabled:()=>r.disabled,isSelectedValue:u=>u===s(),setSelectedValue:i};return y(Oc.Provider,{value:l,get children(){return y(ul,n)}})}function $c(e){let t=d1(),a=le({closeOnSelect:!1},e),[o,r]=ue(a,["value","onSelect"]);return y(il,Y({role:"menuitemradio",get checked(){return t.isSelectedValue(o.value)},onSelect:()=>{o.onSelect?.(),t.setSelectedValue(o.value)}},r))}function c1(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 f1(e,t){return t?jh([e.clientX,e.clientY],t):!1}function qc(e){let t=Ht(),a=$d(),o=bc(),r=qn(),n=Sc(),s=le({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[i,l]=ue(s,["open","defaultOpen","onOpenChange"]),u=0,d=null,c="right",[f,p]=N(),[m,h]=N(),[g,x]=N(),[v,b]=N(),[w,S]=N(!0),[F,D]=N(l.placement),[T,L]=N([]),[I,U]=N([]),{DomCollectionProvider:R}=f0({items:I,onItemsChange:U}),te=lc({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:J=>i.onOpenChange?.(J)}),{present:ie}=Kd({show:()=>t.forceMount()||te.isOpen(),element:()=>v()??null}),ve=R0({selectionMode:"none",dataSource:I}),ce=J=>{S(J),te.open()},he=(J=!1)=>{te.close(),J&&o&&o.close(!0)},xe=J=>{S(J),te.toggle()},fe=()=>{let J=v();J&&(Je(J),ve.selectionManager().setFocused(!0),ve.selectionManager().setFocusedKey(void 0))},De=()=>{n!=null?setTimeout(()=>fe()):fe()},ke=J=>{L(Qe=>[...Qe,J]);let It=o?.registerNestedMenu(J);return()=>{L(Qe=>$s(Qe,J)),It?.()}},Oe=J=>c===d?.side&&f1(J,d?.area),tt=J=>{Oe(J)&&J.preventDefault()},B=J=>{Oe(J)||De()},Ee=J=>{Oe(J)&&J.preventDefault()};jx({isDisabled:()=>!(o==null&&te.isOpen()&&t.isModal()),targets:()=>[v(),...T()].filter(Boolean)}),W(()=>{let J=v();if(!J||!o)return;let It=o.registerNestedMenu(J);X(()=>{It()})}),W(()=>{o===void 0&&r?.registerMenu(t.value(),[v(),...T()])}),W(()=>{o!==void 0||r===void 0||(r.value()===t.value()?(g()?.focus(),r.autoFocusMenu()&&ce(!0)):he())}),W(()=>{o!==void 0||r===void 0||te.isOpen()&&r.setValue(t.value())}),X(()=>{o===void 0&&r?.unregisterMenu(t.value())});let La={dataset:k(()=>({"data-expanded":te.isOpen()?"":void 0,"data-closed":te.isOpen()?void 0:""})),isOpen:te.isOpen,contentPresent:ie,nestedMenus:T,currentPlacement:F,pointerGraceTimeoutId:()=>u,autoFocus:w,listState:()=>ve,parentMenuContext:()=>o,triggerRef:g,contentRef:v,triggerId:f,contentId:m,setTriggerRef:x,setContentRef:b,open:ce,close:he,toggle:xe,focusContent:De,onItemEnter:tt,onItemLeave:B,onTriggerLeave:Ee,setPointerDir:J=>c=J,setPointerGraceTimeoutId:J=>u=J,setPointerGraceIntent:J=>d=J,registerNestedMenu:ke,registerItemToParentDomCollection:a?.registerItem,registerTriggerId:bt(p),registerContentId:bt(h)};return y(R,{get children(){return y(vc.Provider,{value:La,get children(){return y(Q,{when:n===void 0,get fallback(){return l.children},get children(){return y(nc,Y({anchorRef:g,contentRef:v,onCurrentPlacementChange:D},l))}})}})}})}function Nc(e){let{direction:t}=$a();return y(qc,Y({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}function zc(e){let t=da(),a=Ht(),[o,r]=ue(e,["onFocusOutside","onKeyDown"]),{direction:n}=$a();return y(kc,Y({onOpenAutoFocus:d=>{d.preventDefault()},onCloseAutoFocus:d=>{d.preventDefault()},onFocusOutside:d=>{o.onFocusOutside?.(d);let c=d.target;vt(t.triggerRef(),c)||t.close()},onKeyDown:d=>{Me(d,o.onKeyDown);let c=vt(d.currentTarget,d.target),f=p1.close(n(),a.orientation()).includes(d.key),p=t.parentMenuContext()!=null;c&&f&&p&&(t.close(),Je(t.triggerRef()))}},r))}function Uc(e){let t,a=Ht(),o=da(),r=le({id:a.generateId(`sub-trigger-${it()}`)},e),[n,s]=ue(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}=$a(),d=()=>n.id,c=()=>{let b=o.parentMenuContext();if(b==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return b.listState().selectionManager()},f=()=>o.listState().collection(),p=()=>c().focusedKey()===d(),m=Vd({key:d,selectionManager:c,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>n.disabled},()=>t),h=b=>{Me(b,n.onClick),!o.isOpen()&&!n.disabled&&o.open(!0)},g=b=>{if(Me(b,n.onPointerMove),b.pointerType!=="mouse")return;let w=o.parentMenuContext();if(w?.onItemEnter(b),!b.defaultPrevented){if(n.disabled){w?.onItemLeave(b);return}!o.isOpen()&&!i&&(o.parentMenuContext()?.setPointerGraceIntent(null),i=window.setTimeout(()=>{o.open(!1),l()},100)),w?.onItemEnter(b),b.defaultPrevented||(o.listState().selectionManager().isFocused()&&(o.listState().selectionManager().setFocused(!1),o.listState().selectionManager().setFocusedKey(void 0)),Je(b.currentTarget),w?.listState().selectionManager().setFocused(!0),w?.listState().selectionManager().setFocusedKey(d()))}},x=b=>{if(Me(b,n.onPointerLeave),b.pointerType!=="mouse")return;l();let w=o.parentMenuContext(),S=o.contentRef();if(S){w?.setPointerGraceIntent({area:c1(o.currentPlacement(),b,S),side:o.currentPlacement().split("-")[0]}),window.clearTimeout(w?.pointerGraceTimeoutId());let F=window.setTimeout(()=>{w?.setPointerGraceIntent(null)},300);w?.setPointerGraceTimeoutId(F)}else{if(w?.onTriggerLeave(b),b.defaultPrevented)return;w?.setPointerGraceIntent(null)}w?.onItemLeave(b)},v=b=>{Me(b,n.onKeyDown),!b.repeat&&(n.disabled||m1.open(u(),a.orientation()).includes(b.key)&&(b.stopPropagation(),b.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 b=o.registerItemToParentDomCollection({ref:()=>t,type:"item",key:d(),textValue:n.textValue??t?.textContent??"",disabled:n.disabled??!1});X(b)}),W(qt(()=>o.parentMenuContext()?.pointerGraceTimeoutId(),b=>{X(()=>{window.clearTimeout(b),o.parentMenuContext()?.setPointerGraceIntent(null)})})),W(()=>X(o.registerTriggerId(n.id))),X(()=>{l()}),y(Ae,Y({as:"div",ref(b){let w=rt(S=>{o.setTriggerRef(S),t=S},n.ref);typeof w=="function"&&w(b)},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([h,m.onClick])},get onKeyDown(){return Ve([v,m.onKeyDown])},get onMouseDown(){return Ve([n.onMouseDown,m.onMouseDown])},get onFocus(){return Ve([n.onFocus,m.onFocus])},onPointerMove:g,onPointerLeave:x},()=>o.dataset(),s))}function g1(e){let t=qn(),a=`menu-${it()}`,o=le({id:a,modal:!0},e),[r,n]=ue(o,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=lc({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:Pr(()=>r.id),value:()=>r.value,orientation:()=>r.orientation??t?.orientation()??"horizontal"};return y(wc.Provider,{value:i,get children(){return y(qc,Y({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},n))}})}function Nn(e){let t,a=le({orientation:"horizontal"},e),[o,r]=ue(a,["ref","orientation"]),n=Fn(()=>t,()=>"hr");return y(Ae,Y({as:"hr",ref(s){let i=rt(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 Hc(e){let t=Ht(),a=da(),[o,r]=ue(e,["onCloseAutoFocus","onInteractOutside"]),n=!1;return y(i1,Y({onCloseAutoFocus:l=>{o.onCloseAutoFocus?.(l),n||Je(a.triggerRef()),n=!1,l.preventDefault()},onInteractOutside:l=>{o.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(n=!0)}},r))}function _c(e){let t=`dropdownmenu-${it()}`,a=le({id:t},e);return y(g1,a)}function z1(){return v1()}function Kc(){return b1()}function br(){return C1()}function dd(){return w1()}function cd(){return dl()}function U1(){return(()=>{var e=dl();return e.style.setProperty("transform","rotate(90deg)"),e})()}function H1(){return(()=>{var e=dl();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function _1(){return L1()}function V1(){return I1()}function K1(){return S1()}function G1(){return k1()}function W1(){return P1()}function Q1(){return M1()}function j1(){return A1()}function X1(){return R1()}function Z1(){return T1()}function J1(e){return(()=>{var t=Vc(),a=t.firstChild;return G(()=>E(a,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function Y1(){return D1()}function ey(){return E1()}function ty(e){return[y(Q,{get when(){return e.checked},get children(){var t=Vc(),a=t.firstChild;return G(()=>E(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),y(Q,{get when(){return!e.checked},get children(){var t=F1(),a=t.firstChild;return G(()=>E(a,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function ay(){return O1()}function oy(){return B1()}function ry(){return $1()}function ny(){return q1()}function fd(){let e=it();return(()=>{var t=N1(),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,h=m.firstChild,g=m.nextSibling,x=g.firstChild,v=g.nextSibling,b=v.nextSibling,w=b.firstChild,S=b.nextSibling,F=S.firstChild,D=S.nextSibling,T=D.nextSibling,L=T.firstChild,I=T.nextSibling,U=I.firstChild,R=I.nextSibling,te=R.nextSibling,ie=te.firstChild,ve=te.nextSibling,ce=ve.firstChild,he=ve.nextSibling,xe=he.nextSibling,fe=xe.firstChild,De=xe.nextSibling,ke=De.firstChild,Oe=De.nextSibling,tt=Oe.firstChild,B=tt.nextSibling,Ee=B.nextSibling,pe=Ee.nextSibling,La=pe.nextSibling,J=Oe.nextSibling,It=J.firstChild,Qe=J.nextSibling,io=Qe.firstChild,gt=Qe.nextSibling,Ia=gt.firstChild,Va=Ia.nextSibling,Qt=Va.nextSibling,Ot=Qt.firstChild,jt=Ot.nextSibling,z=jt.nextSibling,Ce=z.nextSibling,at=Ce.nextSibling,Le=at.nextSibling,be=Le.nextSibling,Pe=be.nextSibling,He=Pe.nextSibling,ye=He.nextSibling,Xt=ye.nextSibling,Zt=Xt.nextSibling,St=gt.nextSibling,Ka=St.firstChild,Jt=St.nextSibling,Ga=Jt.firstChild,Yt=Jt.nextSibling,Sa=Yt.firstChild,Kr=Sa.nextSibling,Fo=Yt.nextSibling,Gr=Fo.firstChild,uo=Fo.nextSibling,Wr=uo.firstChild,Oo=uo.nextSibling,Bo=Oo.firstChild,$o=Bo.nextSibling,co=$o.nextSibling,Kl=co.nextSibling,Gl=Kl.nextSibling,Wl=Gl.nextSibling,Ql=Wl.nextSibling,jl=Ql.nextSibling,Xl=jl.nextSibling,Zl=Xl.nextSibling,Jl=Zl.nextSibling,Yl=Jl.nextSibling,ei=Yl.nextSibling,ti=ei.nextSibling,ai=ti.nextSibling,oi=ai.nextSibling,ri=oi.nextSibling,_p=ri.nextSibling;return E(a,"id",`a-${e}`),E(o,"fill",`url(#a-${e})`),E(n,"id",`am-${e}`),E(s,"id",`b-${e}`),E(i,"filter",`url(#am-${e})`),E(l,"mask",`url(#b-${e})`),E(d,"id",`ah-${e}`),E(c,"id",`k-${e}`),E(f,"filter",`url(#ah-${e})`),E(p,"mask",`url(#k-${e})`),E(h,"id",`ae-${e}`),E(g,"id",`j-${e}`),E(x,"filter",`url(#ae-${e})`),E(v,"mask",`url(#j-${e})`),E(w,"id",`ai-${e}`),E(S,"id",`i-${e}`),E(F,"filter",`url(#ai-${e})`),E(D,"mask",`url(#i-${e})`),E(L,"id",`aj-${e}`),E(I,"id",`h-${e}`),E(U,"filter",`url(#aj-${e})`),E(R,"mask",`url(#h-${e})`),E(ie,"id",`ag-${e}`),E(ve,"id",`g-${e}`),E(ce,"filter",`url(#ag-${e})`),E(he,"mask",`url(#g-${e})`),E(fe,"id",`af-${e}`),E(De,"id",`f-${e}`),E(ke,"filter",`url(#af-${e})`),E(Oe,"mask",`url(#f-${e})`),E(pe,"id",`m-${e}`),E(La,"fill",`url(#m-${e})`),E(It,"id",`ak-${e}`),E(Qe,"id",`e-${e}`),E(io,"filter",`url(#ak-${e})`),E(gt,"mask",`url(#e-${e})`),E(Ia,"id",`n-${e}`),E(Va,"fill",`url(#n-${e})`),E(Ot,"id",`r-${e}`),E(jt,"fill",`url(#r-${e})`),E(z,"id",`s-${e}`),E(Ce,"fill",`url(#s-${e})`),E(at,"id",`q-${e}`),E(Le,"fill",`url(#q-${e})`),E(be,"id",`p-${e}`),E(Pe,"fill",`url(#p-${e})`),E(He,"id",`o-${e}`),E(ye,"fill",`url(#o-${e})`),E(Xt,"id",`l-${e}`),E(Zt,"fill",`url(#l-${e})`),E(Ka,"id",`al-${e}`),E(Jt,"id",`d-${e}`),E(Ga,"filter",`url(#al-${e})`),E(Yt,"mask",`url(#d-${e})`),E(Sa,"id",`u-${e}`),E(Kr,"fill",`url(#u-${e})`),E(Gr,"id",`ad-${e}`),E(uo,"id",`c-${e}`),E(Wr,"filter",`url(#ad-${e})`),E(Oo,"mask",`url(#c-${e})`),E(Bo,"id",`t-${e}`),E($o,"fill",`url(#t-${e})`),E(co,"id",`v-${e}`),E(Kl,"stroke",`url(#v-${e})`),E(Gl,"id",`aa-${e}`),E(Wl,"stroke",`url(#aa-${e})`),E(Ql,"id",`w-${e}`),E(jl,"stroke",`url(#w-${e})`),E(Xl,"id",`ac-${e}`),E(Zl,"stroke",`url(#ac-${e})`),E(Jl,"id",`ab-${e}`),E(Yl,"stroke",`url(#ab-${e})`),E(ei,"id",`y-${e}`),E(ti,"stroke",`url(#y-${e})`),E(ai,"id",`x-${e}`),E(oi,"stroke",`url(#x-${e})`),E(ri,"id",`z-${e}`),E(_p,"stroke",`url(#z-${e})`),t})()}function hy(e,t){let a=0,o=[];for(;a<e.length;)o.push(e.slice(a,a+t)),a=a+t;return o}function hd(e){return Symbol.iterator in e}function Da(e){let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?Ao(a):Mo(a)),r=j().client,[n,s]=N((e.defaultExpanded||[]).includes(e.label)),i=()=>s(m=>!m),[l,u]=N([]),d=k(()=>Array.isArray(e.value)?e.value.map((m,h)=>({label:h.toString(),value:m})):e.value!==null&&typeof e.value=="object"&&hd(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([m,h])=>({label:m,value:h})):Array.from(e.value,(m,h)=>({label:h.toString(),value:m})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([m,h])=>({label:m,value:h})):[]),c=k(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&hd(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),f=k(()=>hy(d(),100)),p=e.dataPath??[];return(()=>{var m=xr();return P(m,y(Q,{get when(){return f().length},get children(){return[(()=>{var h=fy(),g=h.firstChild,x=g.firstChild,v=x.nextSibling,b=v.nextSibling,w=b.nextSibling,S=w.firstChild;return g.$$click=()=>i(),P(g,y(md,{get expanded(){return n()}}),x),P(v,()=>e.label),P(w,()=>String(c()).toLowerCase()==="iterable"?"(Iterable) ":"",S),P(w,()=>d().length,S),P(w,()=>d().length>1?"items":"item",null),P(h,y(Q,{get when(){return e.editable},get children(){var F=xr();return P(F,y(xy,{get value(){return e.value}}),null),P(F,y(Q,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return y(gd,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),P(F,y(Q,{get when(){return c()==="array"&&e.activeQuery!==void 0},get children(){return y(yy,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),P(F,y(Q,{get when(){return k(()=>!!e.onEdit)()&&!ks(e.value).meta},get children(){var D=cy();return D.$$click=()=>{e.onEdit?.()},P(D,y(Z1,{})),G(()=>O(D,o().actionButton)),D}}),null),G(()=>O(F,o().actions)),F}}),null),G(F=>{var D=o().expanderButtonContainer,T=o().expanderButton,L=o().info;return D!==F.e&&O(h,F.e=D),T!==F.t&&O(g,F.t=T),L!==F.a&&O(w,F.a=L),F},{e:void 0,t:void 0,a:void 0}),h})(),y(Q,{get when(){return n()},get children(){return[y(Q,{get when(){return f().length===1},get children(){var h=xr();return P(h,y(wn,{get each(){return d()},by:g=>g.label,children:g=>y(Da,{get defaultExpanded(){return e.defaultExpanded},get label(){return g().label},get value(){return g().value},get editable(){return e.editable},get dataPath(){return[...p,g().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return c()==="array"||c()==="Iterable"||c()==="object"}})})),G(()=>O(h,o().subEntry)),h}}),y(Q,{get when(){return f().length>1},get children(){var h=xr();return P(h,y(Zi,{get each(){return f()},children:(g,x)=>(()=>{var v=gy(),b=v.firstChild,w=b.firstChild,S=w.firstChild,F=S.nextSibling,D=F.nextSibling,T=D.nextSibling;return T.nextSibling,w.$$click=()=>u(L=>L.includes(x)?L.filter(I=>I!==x):[...L,x]),P(w,y(md,{get expanded(){return l().includes(x)}}),S),P(w,x*100,F),P(w,x*100+100-1,T),P(b,y(Q,{get when(){return l().includes(x)},get children(){var L=xr();return P(L,y(wn,{get each(){return g()},by:I=>I.label,children:I=>y(Da,{get defaultExpanded(){return e.defaultExpanded},get label(){return I().label},get value(){return I().value},get editable(){return e.editable},get dataPath(){return[...p,I().label]},get activeQuery(){return e.activeQuery}})})),G(()=>O(L,o().subEntry)),L}}),null),G(L=>{var I=o().entry,U=o().expanderButton;return I!==L.e&&O(b,L.e=I),U!==L.t&&O(w,L.t=U),L},{e:void 0,t:void 0}),v})()})),G(()=>O(h,o().subEntry)),h}})]}})]}}),null),P(m,y(Q,{get when(){return f().length===0},get children(){var h=my(),g=h.firstChild,x=g.firstChild;return P(g,()=>e.label,x),P(h,y(Q,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number"||c()==="boolean")},get fallback(){return(()=>{var v=pd();return P(v,()=>pr(e.value)),G(()=>O(v,o().value)),v})()},get children(){return[y(Q,{get when(){return k(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(c()==="string"||c()==="number")},get children(){var v=py();return v.addEventListener("change",b=>{let w=e.activeQuery.state.data,S=Aa(w,p,c()==="number"?b.target.valueAsNumber:b.target.value);r.setQueryData(e.activeQuery.queryKey,S)}),G(b=>{var w=c()==="number"?"number":"text",S=H(o().value,o().editableInput);return w!==b.e&&E(v,"type",b.e=w),S!==b.t&&O(v,b.t=S),b},{e:void 0,t:void 0}),G(()=>v.value=e.value),v}}),y(Q,{get when(){return c()==="boolean"},get children(){var v=pd();return P(v,y(vy,{get activeQuery(){return e.activeQuery},dataPath:p,get value(){return e.value}}),null),P(v,()=>pr(e.value),null),G(()=>O(v,H(o().value,o().actions,o().editableInput))),v}})]}}),null),P(h,y(Q,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return y(gd,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),G(v=>{var b=o().row,w=o().label;return b!==v.e&&O(h,v.e=b),w!==v.t&&O(g,v.t=w),v},{e:void 0,t:void 0}),h}}),null),G(()=>O(m,o().entry)),m})()}var _g,Vg,Iu,Kg,Gg,A,Fs,jg,An,Jg,Su,ht,Yg,eo,Ks,eh,Os,Rn,th,vd,ah,bd,oh,ku,rh,Sr,Cd,Tn,Gs,kr,wd,nh,sh,st,Ru,ph,mh,gh,hh,Tu,Ya,na,Ld,xh,yh,Du,Eu,As,Mh,Ws,vn,Md,Uh,js,Hh,gr,qu,Td,Zh,Dd,n0,On,Bd,g0,h0,Ns,vr,b0,Rs,sa,A0,Vu,Ze,T0,D0,Kd,Ln,Gd,zs,ia,ut,U0,H0,V0,K0,Nt,ct,In,bn,Fa,G0,W0,Y0,ex,tx,ax,rx,nx,sx,ux,bx,rc,Ix,Sx,kx,Px,Mx,Ax,Rx,rl,Tx,_s,Zu,Dx,$x,nc,Yu,ed,sc,yt,ic,dc,Vx,Kx,Ds,Es,td,ad,Qx,hr,xt,Cn,Zx,od,Jx,Yx,e1,rd,nd,t1,a1,o1,sd,ld,Vs,r1,n1,vc,Cc,wc,s1,Ir,id,l1,Pc,Oc,p1,ud,m1,h1,x1,Ne,y1,M,v1,b1,C1,w1,dl,L1,I1,S1,k1,P1,M1,A1,R1,T1,Vc,D1,E1,F1,O1,B1,$1,q1,N1,sy,ly,iy,uy,dy,cy,xr,fy,py,pd,my,gy,md,xy,yy,gd,vy,Gc,Mo,Ao,by,Dr,Cy,wy,Ly,Iy,Sy,ky,Py,My,Ay,Ry,Ty,Dy,Ey,Fy,Oy,By,$y,qy,Ny,xd,zy,Wc,Uy,Hy,_y,Vy,Ky,Gy,Wy,Qy,jy,Xy,dt,zn,Ea,Qc,Pt,cl,Co,yd,jc,Zy,Xc,Jy,Un,Yy,ev,tv,av,la,ov,rv,Pn,nv,Ge,Mn,sv,kt,Zc,Ct,wt,fl=qo(()=>{"use strict";C();mr();_g=!Xe,Vg=_g&&!!Yi,Iu=()=>{},Kg=e=>e!=null,Gg=e=>e.filter(Kg);A=e=>typeof e=="function"&&!e.length?e():e,Fs=e=>Array.isArray(e)?e:e?[e]:[];jg=Vg?e=>ln()?X(e):e:X;An=Zg,Jg=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),Su=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=Jg({_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}${Su(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${Su({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}}),Yg=1024,eo=796,Ks=700,eh="bottom-right",Os="bottom",Rn="system",th=!1,vd=500,ah=500,bd=500,oh=Object.keys(hn)[0],ku=1,rh=Object.keys(xn)[0],Sr=_e({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});Cd=_e(void 0),Tn=e=>{let[t,a]=N(null),o=()=>{let s=t();s!=null&&(s.close(),a(null))},r=(s,i)=>{if(t()!=null)return;let l=window.open("","TSQD-Devtools-Panel",`width=${s},height=${i},popup`);if(!l)throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");l.document.head.innerHTML="",l.document.body.innerHTML="",eu(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)}}),fr(["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||ah))}),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(Cd.Provider,{value:n,get children(){return e.children}})},Gs=()=>k(()=>{let t=qe(Cd);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),kr=_e(()=>"dark");wd={\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"},nh=Object.keys(wd).join("|"),sh=new RegExp(nh,"g");st={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};Ru={maxRanking:1/0,minRanking:-1/0};ph={data:""},mh=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||ph,gh=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,hh=/\/\*[^]*?\*\/| +/g,Tu=/\n+/g,Ya=(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"?Ya(s,n):n+"{"+Ya(s,n[1]=="k"?"":t)+"}":typeof s=="object"?o+=Ya(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+=Ya.p?Ya.p(n,s):n+":"+s+";")}return a+(t&&r?t+"{"+r+"}":r)+o},na={},Ld=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+Ld(e[a]);return t}return e},xh=(e,t,a,o,r)=>{let n=Ld(e),s=na[n]||(na[n]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(n));if(!na[s]){let l=n!==e?e:(u=>{let d,c,f=[{}];for(;d=gh.exec(u.replace(hh,""));)d[4]?f.shift():d[3]?(c=d[3].replace(Tu," ").trim(),f.unshift(f[0][c]=f[0][c]||{})):f[0][d[1]]=d[2].replace(Tu," ").trim();return f[0]})(e);na[s]=Ya(r?{["@keyframes "+s]:l}:l,a?"":"."+s)}let i=a&&na.g?na.g:null;return a&&(na.g=na[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)})(na[s],t,o,i),s},yh=(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?"":Ya(i,""):i===!1?"":i}return o+r+(s??"")},"");ae.bind({g:1});ae.bind({k:1});Du=Xe?e=>e!=null&&typeof e=="object"&&"t"in e:e=>e instanceof Element;Eu=e=>{let t=Ch(e);return vh(bh(()=>e.children).toArray,{appear:e.appear,onChange({added:a,removed:o,finishRemoved:r,list:n}){let s=t();for(let l of a)wh(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)Lh(s,e,l,()=>r([l]))}})},As=Symbol("fallback");Mh=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;Ws=(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))(Ws||{});vn=null;Md=["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'])"],Uh=[...Md,'[tabindex]:not([tabindex="-1"]):not([disabled])'],js=Md.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",Hh=Uh.join(':not([hidden]):not([tabindex="-1"]),');gr=new Map,qu=new Set;typeof document<"u"&&(document.readyState!=="loading"?Nu():document.addEventListener("DOMContentLoaded",Nu));Td={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"];Dd=_e();n0=Object.defineProperty,On=(e,t)=>{for(var a in t)n0(e,a,{get:t[a],enumerable:!0})},Bd=_e();g0=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),h0=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);Ns=Ud(),vr=new Set;b0=_e();Rs=new Map;sa=class Hd extends Set{anchorKey;currentKey;constructor(t,a,o){super(t),t instanceof Hd?(this.anchorKey=a||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=a,this.currentKey=o)}};A0=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 sa(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 sa(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 sa([t],t,t):new sa;this.state.setSelectedKeys(a)}setSelectedKeys(e){if(this.selectionMode()==="none")return;let t=new sa;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 sa)}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}},Vu=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,T0=e=>{let t=k(()=>{let s=Ze(e.element);if(s)return getComputedStyle(s)}),a=()=>t()?.animationName??"none",[o,r]=N(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}},D0=T0,Kd=D0,Ln="data-kb-top-layer",zs=!1,ia=[];ut={layers:ia,isTopMostLayer:F0,hasPointerBlockingLayer:Zs,isBelowPointerBlockingLayer:Qd,addLayer:B0,removeLayer:$0,indexOf:Cr,find:E0,assignPointerEventToLayers:q0,disableBodyPointerEvents:N0,restoreBodyPointerEvents:z0},U0={};On(U0,{Button:()=>V0,Root:()=>Js});H0=["button","color","file","image","reset","submit"];V0=Js,K0=["top","right","bottom","left"],Nt=Math.min,ct=Math.max,In=Math.round,bn=Math.floor,Fa=e=>({x:e,y:e}),G0={left:"right",right:"left",bottom:"top",top:"bottom"},W0={start:"end",end:"start"};Y0=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}=Ku(u,o,l),f=o,p={},m=0;for(let h=0;h<i.length;h++){let{name:g,fn:x}=i[h],{x:v,y:b,data:w,reset:S}=await x({x:d,y:c,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});d=v??d,c=b??c,p={...p,[g]:{...p[g],...w}},S&&m<=50&&(m++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:d,y:c}=Ku(u,f,l)),h=-1)}return{x:d,y:c,placement:f,strategy:r,middlewareData:p}};ex=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}=oo(e,t)||{};if(u==null)return{};let c=Xd(d),f={x:a,y:o},p=el(r),m=Ys(p),h=await s.getDimensions(u),g=p==="y",x=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=n.reference[m]+n.reference[p]-f[p]-n.floating[m],S=f[p]-n.reference[p],F=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),D=F?F[b]:0;(!D||!await(s.isElement==null?void 0:s.isElement(F)))&&(D=i.floating[b]||n.floating[m]);let T=w/2-S/2,L=D/2-h[m]/2-1,I=Nt(c[x],L),U=Nt(c[v],L),R=I,te=D-h[m]-U,ie=D/2-h[m]/2+T,ve=Us(R,ie,te),ce=!l.arrow&&ko(r)!=null&&ie!==ve&&n.reference[m]/2-(ie<R?I:U)-h[m]/2<0,he=ce?ie<R?ie-R:ie-te:0;return{[p]:f[p]+he,data:{[p]:ve,centerOffset:ie-ve-he,...ce&&{alignmentOffset:he}},reset:ce}}}),tx=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:h=!0,...g}=oo(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let x=Oa(r),v=to(i),b=Oa(i)===i,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(b||!h?[Sn(i)]:j0(i)),F=m!=="none";!f&&F&&S.push(...Z0(i,h,m,w));let D=[i,...S],T=await wr(t,g),L=[],I=((o=n.flip)==null?void 0:o.overflows)||[];if(d&&L.push(T[x]),c){let ie=Q0(r,s,w);L.push(T[ie[0]],T[ie[1]])}if(I=[...I,{placement:r,overflows:L}],!L.every(ie=>ie<=0)){var U,R;let ie=(((U=n.flip)==null?void 0:U.index)||0)+1,ve=D[ie];if(ve)return{data:{index:ie,overflows:I},reset:{placement:ve}};let ce=(R=I.filter(he=>he.overflows[0]<=0).sort((he,xe)=>he.overflows[1]-xe.overflows[1])[0])==null?void 0:R.placement;if(!ce)switch(p){case"bestFit":{var te;let he=(te=I.filter(xe=>{if(F){let fe=to(xe.placement);return fe===v||fe==="y"}return!0}).map(xe=>[xe.placement,xe.overflows.filter(fe=>fe>0).reduce((fe,De)=>fe+De,0)]).sort((xe,fe)=>xe[1]-fe[1])[0])==null?void 0:te[0];he&&(ce=he);break}case"initialPlacement":ce=i;break}if(r!==ce)return{reset:{placement:ce}}}return{}}}};ax=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a}=t,{strategy:o="referenceHidden",...r}=oo(e,t);switch(o){case"referenceHidden":{let n=await wr(t,{...r,elementContext:"reference"}),s=Gu(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Wu(s)}}}case"escaped":{let n=await wr(t,{...r,altBoundary:!0}),s=Gu(n,a.floating);return{data:{escapedOffsets:s,escaped:Wu(s)}}}default:return{}}}}};rx=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 ox(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}}}}},nx=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:g=>{let{x,y:v}=g;return{x,y:v}}},...l}=oo(e,t),u={x:a,y:o},d=await wr(t,l),c=to(Oa(r)),f=jd(c),p=u[f],m=u[c];if(n){let g=f==="y"?"top":"left",x=f==="y"?"bottom":"right",v=p+d[g],b=p-d[x];p=Us(v,p,b)}if(s){let g=c==="y"?"top":"left",x=c==="y"?"bottom":"right",v=m+d[g],b=m-d[x];m=Us(v,m,b)}let h=i.fn({...t,[f]:p,[c]:m});return{...h,data:{x:h.x-a,y:h.y-o}}}}},sx=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}=oo(e,t),l=await wr(t,i),u=Oa(a),d=ko(a),c=to(a)==="y",{width:f,height:p}=o.floating,m,h;u==="top"||u==="bottom"?(m=u,h=d===(await(r.isRTL==null?void 0:r.isRTL(n.floating))?"start":"end")?"left":"right"):(h=u,m=d==="end"?"top":"bottom");let g=p-l.top-l.bottom,x=f-l.left-l.right,v=Nt(p-l[m],g),b=Nt(f-l[h],x),w=!t.middlewareData.shift,S=v,F=b;if(c?F=d||w?Nt(b,x):x:S=d||w?Nt(v,g):g,w&&!d){let T=ct(l.left,0),L=ct(l.right,0),I=ct(l.top,0),U=ct(l.bottom,0);c?F=f-2*(T!==0||L!==0?T+L:ct(l.left,l.right)):S=p-2*(I!==0||U!==0?I+U:ct(l.top,l.bottom))}await s({...t,availableWidth:F,availableHeight:S});let D=await r.getDimensions(n.floating);return f!==D.width||p!==D.height?{reset:{rects:!0}}:{}}}};ux=Fa(0);bx=async function(e){let t=this.getOffsetParent||oc,a=this.getDimensions,o=await a(e.floating);return{reference:vx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};rc={convertOffsetParentRelativeRectToViewportRelativeRect:cx,getDocumentElement:ua,getClippingRect:xx,getOffsetParent:oc,getElementRects:bx,getClientRects:fx,getDimensions:yx,getScale:Io,isElement:Mt,isRTL:Cx};Ix=rx,Sx=nx,kx=tx,Px=sx,Mx=ax,Ax=ex,Rx=(e,t,a)=>{let o=new Map,r={platform:rc,...a},n={...r.platform,_c:o};return Y0(e,t,{...r,platform:n})},rl=_e();Tx=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">'),_s=30,Zu=_s/2,Dx={top:180,right:-90,bottom:0,left:90};$x={top:"bottom",right:"left",bottom:"top",left:"right"};nc=Object.assign(Nx,{Arrow:sl,Context:rl,usePopperContext:nl,Positioner:Fx});Yu="interactOutside.pointerDownOutside",ed="interactOutside.focusOutside";sc=_e();yt={};On(yt,{Description:()=>Ed,ErrorMessage:()=>Fd,Item:()=>cc,ItemControl:()=>fc,ItemDescription:()=>pc,ItemIndicator:()=>mc,ItemInput:()=>gc,ItemLabel:()=>hc,Label:()=>xc,RadioGroup:()=>Vx,Root:()=>yc});ic=_e();dc=_e();Vx=Object.assign(yc,{Description:Ed,ErrorMessage:Fd,Item:cc,ItemControl:fc,ItemDescription:pc,ItemIndicator:mc,ItemInput:gc,ItemLabel:hc,Label:xc}),Kx=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)}}};Ds="focusScope.autoFocusOnMount",Es="focusScope.autoFocusOnUnmount",td={bubbles:!1,cancelable:!0},ad={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=$s(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=$s(this.stack,e),this.active()?.resume()}};Qx="data-live-announcer";hr=new WeakMap,xt=[];Cn=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=Cn.get(e.key);r?r.activeCount++:Cn.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=Cn.get(e.key);if(n){if(n.activeCount!==1){n.activeCount--;return}Cn.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?.()}})})},od=Zx,Jx=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},Yx=(e,t)=>{let a=getComputedStyle(e),o=t==="x"?a.overflowX:a.overflowY;return o==="auto"||o==="scroll"||e.tagName==="HTML"&&o==="visible"},e1=(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]=Jx(r,t),c=d-l-o*u;(u!==0||c!==0)&&Yx(r,t)&&(n+=c,s+=u),r===(a??document.documentElement)?i=!0:r=r._$host??r.parentElement}while(r&&!i);return[n,s]},[rd,nd]=N([]),t1=e=>rd().indexOf(e)===rd().length-1,a1=e=>{let t=Y({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)&&(nd(u=>[...u,a]),X(()=>{nd(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;od({key:"prevent-scroll",element:u,style:c,properties:f,cleanup:()=>{Ze(t.restoreScrollPosition)&&d>0&&window.scrollTo(m,p)}})}else od({key:"prevent-scroll",element:u,style:{overflow:"hidden"}})}),W(()=>{!t1(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=sd(u),r=null,n=null},i=u=>{let d=u.target,c=Ze(t.element),f=o1(u),p=Math.abs(f[0])>Math.abs(f[1])?"x":"y",m=p==="x"?f[0]:f[1],h=ld(d,p,m,c),g;c&&Vs(c,d)?g=!h:g=!0,g&&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=sd(u).map((h,g)=>o[g]-h),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=ld(c,r,n,d);d&&Vs(d,c)?f=!p:f=!0}}f&&u.cancelable&&u.preventDefault()}},o1=e=>[e.deltaX,e.deltaY],sd=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],ld=(e,t,a,o)=>{let r=o!==null&&Vs(o,e),[n,s]=e1(e,t,r?o:void 0);return!(a>0&&Math.abs(n)<=1||a<0&&Math.abs(s)<1)},Vs=(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},r1=a1,n1=r1,vc=_e();Cc=_e();wc=_e();s1=_e();Ir={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>Ir.next(e==="ltr"?"rtl":"ltr",t)},id={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};l1=_e();Pc=_e();Oc=_e();p1={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};ud=["Enter"," "],m1={open:(e,t)=>e==="ltr"?[...ud,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...ud,t==="horizontal"?"ArrowLeft":"ArrowUp"]};h1={};On(h1,{Root:()=>Nn,Separator:()=>x1});x1=Nn,Ne={};On(Ne,{Arrow:()=>sl,CheckboxItem:()=>Lc,Content:()=>Hc,DropdownMenu:()=>y1,Group:()=>ul,GroupLabel:()=>Mc,Icon:()=>Ac,Item:()=>Rc,ItemDescription:()=>Tc,ItemIndicator:()=>Dc,ItemLabel:()=>Ec,Portal:()=>Fc,RadioGroup:()=>Bc,RadioItem:()=>$c,Root:()=>_c,Separator:()=>Nn,Sub:()=>Nc,SubContent:()=>zc,SubTrigger:()=>Uc,Trigger:()=>Ic});y1=Object.assign(_c,{Arrow:sl,CheckboxItem:Lc,Content:Hc,Group:ul,GroupLabel:Mc,Icon:Ac,Item:Rc,ItemDescription:Tc,ItemIndicator:Dc,ItemLabel:Ec,Portal:Fc,RadioGroup:Bc,RadioItem:$c,Separator:Nn,Sub:Nc,SubContent:zc,SubTrigger:Uc,Trigger:Ic}),M={colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000000",white:"#ffffff",neutral:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},darkGray:{50:"#525c7a",100:"#49536e",200:"#414962",300:"#394056",400:"#313749",500:"#292e3d",600:"#212530",700:"#191c24",800:"#111318",900:"#0b0d10"},gray:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},blue:{25:"#F5FAFF",50:"#EFF8FF",100:"#D1E9FF",200:"#B2DDFF",300:"#84CAFF",400:"#53B1FD",500:"#2E90FA",600:"#1570EF",700:"#175CD3",800:"#1849A9",900:"#194185"},green:{25:"#F6FEF9",50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},yellow:{25:"#FFFCF5",50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E"},purple:{25:"#FAFAFF",50:"#F4F3FF",100:"#EBE9FE",200:"#D9D6FE",300:"#BDB4FE",400:"#9B8AFB",500:"#7A5AF8",600:"#6938EF",700:"#5925DC",800:"#4A1FB8",900:"#3E1C96"},teal:{25:"#F6FEFC",50:"#F0FDF9",100:"#CCFBEF",200:"#99F6E0",300:"#5FE9D0",400:"#2ED3B7",500:"#15B79E",600:"#0E9384",700:"#107569",800:"#125D56",900:"#134E48"},pink:{25:"#fdf2f8",50:"#fce7f3",100:"#fbcfe8",200:"#f9a8d4",300:"#f472b6",400:"#ec4899",500:"#db2777",600:"#be185d",700:"#9d174d",800:"#831843",900:"#500724"},cyan:{25:"#ecfeff",50:"#cffafe",100:"#a5f3fc",200:"#67e8f9",300:"#22d3ee",400:"#06b6d4",500:"#0891b2",600:"#0e7490",700:"#155e75",800:"#164e63",900:"#083344"}},alpha:{100:"ff",90:"e5",80:"cc",70:"b3",60:"99",50:"80",40:"66",30:"4d",20:"33",10:"1a",0:"00"},font:{size:{"2xs":"calc(var(--tsqd-font-size) * 0.625)",xs:"calc(var(--tsqd-font-size) * 0.75)",sm:"calc(var(--tsqd-font-size) * 0.875)",md:"var(--tsqd-font-size)",lg:"calc(var(--tsqd-font-size) * 1.125)",xl:"calc(var(--tsqd-font-size) * 1.25)","2xl":"calc(var(--tsqd-font-size) * 1.5)","3xl":"calc(var(--tsqd-font-size) * 1.875)","4xl":"calc(var(--tsqd-font-size) * 2.25)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.75)","7xl":"calc(var(--tsqd-font-size) * 4.5)","8xl":"calc(var(--tsqd-font-size) * 6)","9xl":"calc(var(--tsqd-font-size) * 8)"},lineHeight:{xs:"calc(var(--tsqd-font-size) * 1)",sm:"calc(var(--tsqd-font-size) * 1.25)",md:"calc(var(--tsqd-font-size) * 1.5)",lg:"calc(var(--tsqd-font-size) * 1.75)",xl:"calc(var(--tsqd-font-size) * 2)","2xl":"calc(var(--tsqd-font-size) * 2.25)","3xl":"calc(var(--tsqd-font-size) * 2.5)","4xl":"calc(var(--tsqd-font-size) * 2.75)","5xl":"calc(var(--tsqd-font-size) * 3)","6xl":"calc(var(--tsqd-font-size) * 3.25)","7xl":"calc(var(--tsqd-font-size) * 3.5)","8xl":"calc(var(--tsqd-font-size) * 3.75)","9xl":"calc(var(--tsqd-font-size) * 4)"},weight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"}},breakpoints:{xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},border:{radius:{none:"0px",xs:"calc(var(--tsqd-font-size) * 0.125)",sm:"calc(var(--tsqd-font-size) * 0.25)",md:"calc(var(--tsqd-font-size) * 0.375)",lg:"calc(var(--tsqd-font-size) * 0.5)",xl:"calc(var(--tsqd-font-size) * 0.75)","2xl":"calc(var(--tsqd-font-size) * 1)","3xl":"calc(var(--tsqd-font-size) * 1.5)",full:"9999px"}},size:{0:"0px",.25:"calc(var(--tsqd-font-size) * 0.0625)",.5:"calc(var(--tsqd-font-size) * 0.125)",1:"calc(var(--tsqd-font-size) * 0.25)",1.5:"calc(var(--tsqd-font-size) * 0.375)",2:"calc(var(--tsqd-font-size) * 0.5)",2.5:"calc(var(--tsqd-font-size) * 0.625)",3:"calc(var(--tsqd-font-size) * 0.75)",3.5:"calc(var(--tsqd-font-size) * 0.875)",4:"calc(var(--tsqd-font-size) * 1)",4.5:"calc(var(--tsqd-font-size) * 1.125)",5:"calc(var(--tsqd-font-size) * 1.25)",5.5:"calc(var(--tsqd-font-size) * 1.375)",6:"calc(var(--tsqd-font-size) * 1.5)",6.5:"calc(var(--tsqd-font-size) * 1.625)",7:"calc(var(--tsqd-font-size) * 1.75)",8:"calc(var(--tsqd-font-size) * 2)",9:"calc(var(--tsqd-font-size) * 2.25)",10:"calc(var(--tsqd-font-size) * 2.5)",11:"calc(var(--tsqd-font-size) * 2.75)",12:"calc(var(--tsqd-font-size) * 3)",14:"calc(var(--tsqd-font-size) * 3.5)",16:"calc(var(--tsqd-font-size) * 4)",20:"calc(var(--tsqd-font-size) * 5)",24:"calc(var(--tsqd-font-size) * 6)",28:"calc(var(--tsqd-font-size) * 7)",32:"calc(var(--tsqd-font-size) * 8)",36:"calc(var(--tsqd-font-size) * 9)",40:"calc(var(--tsqd-font-size) * 10)",44:"calc(var(--tsqd-font-size) * 11)",48:"calc(var(--tsqd-font-size) * 12)",52:"calc(var(--tsqd-font-size) * 13)",56:"calc(var(--tsqd-font-size) * 14)",60:"calc(var(--tsqd-font-size) * 15)",64:"calc(var(--tsqd-font-size) * 16)",72:"calc(var(--tsqd-font-size) * 18)",80:"calc(var(--tsqd-font-size) * 20)",96:"calc(var(--tsqd-font-size) * 24)"},shadow:{xs:(e="rgb(0 0 0 / 0.1)")=>"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:(e="rgb(0 0 0 / 0.1)")=>`0 1px 3px 0 ${e}, 0 1px 2px -1px ${e}`,md:(e="rgb(0 0 0 / 0.1)")=>`0 4px 6px -1px ${e}, 0 2px 4px -2px ${e}`,lg:(e="rgb(0 0 0 / 0.1)")=>`0 10px 15px -3px ${e}, 0 4px 6px -4px ${e}`,xl:(e="rgb(0 0 0 / 0.1)")=>`0 20px 25px -5px ${e}, 0 8px 10px -6px ${e}`,"2xl":(e="rgb(0 0 0 / 0.25)")=>`0 25px 50px -12px ${e}`,inner:(e="rgb(0 0 0 / 0.05)")=>`inset 0 2px 4px 0 ${e}`,none:()=>"none"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}},v1=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>'),b1=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>'),C1=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>'),w1=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>'),dl=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>'),L1=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>'),I1=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>'),S1=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>'),k1=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">'),P1=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">'),M1=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>'),A1=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>'),R1=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>'),T1=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>'),Vc=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>'),D1=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>'),E1=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>'),F1=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>'),O1=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>'),B1=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>'),$1=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>'),q1=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>'),N1=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>');sy=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>'),ly=V('<button title="Copy object to clipboard">'),iy=V('<button title="Remove all items"aria-label="Remove all items">'),uy=V('<button title="Delete item"aria-label="Delete item">'),dy=V('<button title="Toggle value"aria-label="Toggle value">'),cy=V('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),xr=V("<div>"),fy=V("<div><button> <span></span> <span> "),py=V("<input>"),pd=V("<span>"),my=V("<div><span>:"),gy=V("<div><div><button> [<!>...<!>]");md=e=>{let t=Ke(),a=j().shadowDOMTarget?ae.bind({target:j().shadowDOMTarget}):ae,o=k(()=>t()==="dark"?Ao(a):Mo(a));return(()=>{var r=sy();return G(()=>O(r,H(o().expander,a`
|
|
2
2
|
transform: rotate(${e.expanded?90:0}deg);
|
|
3
3
|
`,e.expanded&&a`
|
|
4
4
|
& svg {
|
|
@@ -1216,7 +1216,7 @@
|
|
|
1216
1216
|
border-radius: .5em;
|
|
1217
1217
|
border: 3px solid ${Kt.backgroundAlt};
|
|
1218
1218
|
}
|
|
1219
|
-
`}}),_.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${Kt.grayAlt}`,display:"flex",flexDirection:"column"}},_.default.createElement("div",{style:{padding:".5em",background:Kt.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},_.default.createElement(Zf,{"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(Ev,{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(Gt,{label:"Instance",value:o,defaultExpanded:!1}),_.default.createElement("div",{style:{height:".5rem"}}),_.default.createElement(Gt,{label:"State",value:o.getState(),defaultExpanded:!1}),_.default.createElement("div",{style:{height:".5rem"}}),_.default.createElement(Gt,{label:"Columns",value:o.getAllColumns(),defaultExpanded:!1})),_.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},_.default.createElement(Gt,{label:"Core Model",value:o.getCoreRowModel(),defaultExpanded:!1}),_.default.createElement(Gt,{label:"Filtered Model",value:o.getFilteredRowModel(),defaultExpanded:!1}),_.default.createElement(Gt,{label:"Sorted Model",value:o.getSortedRowModel(),defaultExpanded:!1}),_.default.createElement(Gt,{label:"Grouped Model",value:o.getGroupedRowModel(),defaultExpanded:!1}),_.default.createElement(Gt,{label:"Expanded Model",value:o.getExpandedRowModel(),defaultExpanded:!1}))))))});var Na=require("react");C();var tp=require("@tanstack/react-table");C();var ne=Ie(require("@radix-ui/react-dropdown-menu"),1);var ya=Ie(require("react"),1);var Ue=require("react/jsx-runtime"),Yf=ne.Root,ep=ne.Trigger;var qv=ya.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ue.jsxs)(ne.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)(oa,{className:"ps-ml-auto"})]}));qv.displayName=ne.SubTrigger.displayName;var Nv=ya.forwardRef(({className:e,...t},a)=>(0,Ue.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-dropdown-menu-content-transform-origin]",e),...t}));Nv.displayName=ne.SubContent.displayName;var ql=ya.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ue.jsx)(ne.Portal,{children:(0,Ue.jsx)(ne.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})}));ql.displayName=ne.Content.displayName;var as=ya.forwardRef(({className:e,inset:t,...a},o)=>(0,Ue.jsx)(ne.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}));as.displayName=ne.Item.displayName;var zv=ya.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ue.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 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)(ne.ItemIndicator,{children:(0,Ue.jsx)(aa,{className:"ps-h-4 ps-w-4"})})}),t]}));zv.displayName=ne.CheckboxItem.displayName;var Uv=ya.forwardRef(({className:e,children:t,...a},o)=>(0,Ue.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 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)(ne.ItemIndicator,{children:(0,Ue.jsx)(Wa,{className:"ps-h-2 ps-w-2 ps-fill-current"})})}),t]}));Uv.displayName=ne.RadioItem.displayName;var Hv=ya.forwardRef(({className:e,inset:t,...a},o)=>(0,Ue.jsx)(ne.Label,{ref:o,className:K("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",t&&"ps-pl-8",e),...a}));Hv.displayName=ne.Label.displayName;var _v=ya.forwardRef(({className:e,...t},a)=>(0,Ue.jsx)(ne.Separator,{ref:a,className:K("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));_v.displayName=ne.Separator.displayName;var Vv=({className:e,...t})=>(0,Ue.jsx)("span",{className:K("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...t});Vv.displayName="DropdownMenuShortcut";var ue=require("react/jsx-runtime");function ap(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,tp.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)(Yf,{children:[(0,ue.jsx)(ep,{asChild:!0,children:(0,ue.jsx)(ot,{variant:"ghost",size:"sm",className:"ps-px-0 ps-h-6 ps-w-6",children:(0,ue.jsx)(Vo,{size:12})})}),(0,ue.jsxs)(ql,{children:[t.column.getCanSort()&&(0,ue.jsx)(as,{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)(Ma,{size:16}),"Sort descending"]}):t.column.getNextSortingOrder()==="asc"?(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(_o,{size:16}),"Sort ascending"]}):(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Yo,{size:16}),"Cancel sorting"]})})}),(0,ue.jsx)(as,{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)(Zo,{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 Nl=require("react/jsx-runtime");function op({className:e}){return(0,Nl.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,Nl.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 rp=Ie(require("react"),1);var np=require("react/jsx-runtime"),Br=rp.forwardRef(({className:e,type:t,...a},o)=>(0,np.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}));Br.displayName="Input";var Te=require("react/jsx-runtime");function sp(e){let{table:t,variant:a="basic"}=e,{pageIndex:o}=t.getState().pagination,r=t.getPageCount(),n=t.getAllColumns().length;return(0,Te.jsx)(yl,{className:"ps-sticky ps-bottom-0 ps-border-t-0 w-full ps-z-20 ps-p-0",children:(0,Te.jsx)(pa,{className:"ps-p-0 ps-bg-transparent hover:ps-bg-transparent",children:(0,Te.jsx)(ma,{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)(ot,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:"Previous"}),(0,Te.jsx)(ot,{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)(ot,{variant:"outline",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:(0,Te.jsx)(Go,{className:"ps-w-4 ps-h-4"})}),(0,Te.jsx)(ot,{variant:"outline",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:(0,Te.jsx)(Ko,{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)(Br,{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)(ot,{variant:"outline",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:(0,Te.jsx)(oa,{className:"ps-w-4 ps-h-4"})}),(0,Te.jsx)(ot,{variant:"outline",onClick:()=>t.setPageIndex(r-1),disabled:!t.getCanNextPage(),children:(0,Te.jsx)(Wo,{className:"ps-w-4 ps-h-4"})})]})})})})})})})}C();function $r(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 Re=require("react/jsx-runtime"),Kv=e=>{let{children:t,className:a,header:o,style:r}=e,{attributes:n,listeners:s,transform:i,transition:l,setNodeRef:u,isDragging:d}=(0,Ua.useSortable)({id:o.id});return(0,Re.jsx)(vl,{ref:u,...n,...s,style:{cursor:"grab",touchAction:"none",transform:ip.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,Re.jsx)("div",{className:K("ps-w-full",d&&"ps-w-[var(--dragging-width)]"),children:t})})};function up(e){let{columnDefs:t,getBeforeRows:a,isLoading:o,isProcessing:r,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:i,pageCount:l,paginationState:u,rows:d,rowSelectionState:c,sortingState:f}=e,[p,m]=(0,Na.useState)([]),[h,g]=(0,Na.useState)({left:["__ps_select"],right:[]}),[x,v]=(0,Na.useState)({}),b=(0,Na.useMemo)(()=>lp(f),[f]),w=o||r;(0,Na.useEffect)(()=>m(t.map(({accessorKey:L})=>L)),[]);function S({active:L,over:I}){I&&L.id!==I.id&&m(U=>{let R=U.indexOf(L.id),te=U.indexOf(I.id);return(0,Ua.arrayMove)(U,R,te)})}let F=(0,za.useSensor)(za.MouseSensor,{activationConstraint:{distance:10}}),D=(0,za.useSensors)(F),T=(0,os.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,os.getCoreRowModel)(),getRowId:({__ps_rowid:L})=>L,manualPagination:!0,manualSorting:!0,onColumnOrderChange:m,onColumnPinningChange:g,onColumnSizingChange:v,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:L=>i?.(I=>(typeof L=="function"&&(L=L(lp(I))),Gv(L))),pageCount:l,state:{columnOrder:p,columnPinning:h,columnSizing:x,pagination:u,rowSelection:c,sorting:b}});return(0,Re.jsxs)(Re.Fragment,{children:[process.env.NODE_ENV==="production"?null:(0,Re.jsx)(Jf,{table:T}),(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:w&&(0,Re.jsx)(op,{className:"ps-absolute -ps-top-[1px] ps-left-0 ps-right-0"})}),(0,Re.jsx)(za.DndContext,{sensors:D,onDragEnd:S,children:(0,Re.jsxs)(gl,{className:"ps-min-w-full ps-table-fixed ps-border-separate ps-border-spacing-0 ps-box-border",children:[(0,Re.jsx)(hl,{children:T.getHeaderGroups().map(L=>(0,Re.jsx)(pa,{children:(0,Re.jsx)(Ua.SortableContext,{items:L.headers.map(I=>I.id),strategy:Ua.horizontalListSortingStrategy,children:L.headers.map(I=>(0,Re.jsx)(Kv,{header:I,table:T,...$r(I.column),children:(0,Re.jsx)(ap,{header:I})},I.id))})},L.id))}),(0,Re.jsxs)(xl,{children:[a?.(T),T.getRowModel().rows?.length?T.getRowModel().rows.map(L=>(0,Re.jsx)(pa,{className:K("ps-bg-table-row ps-odd:bg-table-row-odd ps-group [&:last-of-type_td]:ps-border-b-0"),children:L.getVisibleCells().map((I,U)=>{if(typeof I.column.columnDef.cell=="function"){let R=I.column.columnDef.cell(I.getContext());return(0,Re.jsx)(R,{...$r(I.column)},U)}return null})},L.id)):(0,Re.jsx)(pa,{children:(0,Re.jsx)(ma,{colSpan:t.length,className:"ps-h-24 ps-text-center",children:o?"Loading...":"No results."})})]}),!l||l<2?null:(0,Re.jsx)(sp,{table:T,variant:"numeric"})]})})]})]})}function lp(e){return e?.map(t=>({id:t.column,desc:t.direction==="desc"}))||[]}function Gv(e){return e.map(t=>({column:t.id,direction:t.desc?"desc":"asc"}))}C();C();var Et=Ie(require("@radix-ui/react-tooltip"),1),dp=Ie(require("react"),1);var zl=require("react/jsx-runtime"),cp=Et.Provider,fp=Et.Root,pp=Et.Trigger,Ul=dp.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,zl.jsx)(Et.Portal,{children:(0,zl.jsx)(Et.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})}));Ul.displayName=Et.Content.displayName;var Lt=require("react/jsx-runtime");function mp({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)(cp,{delayDuration:300,children:(0,Lt.jsxs)(fp,{children:[(0,Lt.jsx)(pp,{asChild:!0,children:(0,Lt.jsx)(Xo,{size:12})}),(0,Lt.jsx)(Ul,{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 Ap=require("remeda");C();var Vl=require("motion/react"),Ur=Ie(require("react"),1);C();var Hl=Ie(require("@radix-ui/react-label"),1),gp=require("class-variance-authority"),hp=Ie(require("react"),1);var xp=require("react/jsx-runtime"),Wv=(0,gp.cva)("ps-text-sm ps-font-medium ps-leading-none peer-disabled:ps-cursor-not-allowed peer-disabled:ps-opacity-70"),qr=hp.forwardRef(({className:e,...t},a)=>(0,xp.jsx)(Hl.Root,{ref:a,className:K(Wv(),e),...t}));qr.displayName=Hl.Root.displayName;C();var Nr=Ie(require("@radix-ui/react-switch"),1),yp=Ie(require("react"),1);var _l=require("react/jsx-runtime"),zr=yp.forwardRef(({className:e,...t},a)=>(0,_l.jsx)(Nr.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,_l.jsx)(Nr.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")})}));zr.displayName=Nr.Root.displayName;C();var pt=require("react/jsx-runtime"),Wt=({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)(jo,{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)(zr,{id:"set-nullable",checked:r,onCheckedChange:l=>{o&&o(l)}}),(0,pt.jsx)("span",{children:"Set to NULL"})]})})]});var Ft=require("react/jsx-runtime");function vp(e){let{value:t,onSubmit:a,column:o}=e,r=o.nullable===!0,[n,s]=(0,Ur.useState)(t===null?!1:t),[i,l]=(0,Ur.useState)(t===null),u=t===null?!1:t,d=g=>{s(g)},c=g=>{l(g)},f=Ur.default.useCallback(()=>{let g=i?null:n;return g!==t?(a(g),!0):!1},[n,t,a,i]),p=()=>{s(u),l(t===null)},{handleSave:m,handleCancel:h}=Vt({onSave:f,onCancel:p});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)(qr,{htmlFor:"boolean-input",className:"ps-sr-only",children:"Boolean"}),(0,Ft.jsx)(Vl.motion.div,{className:"ps-flex ps-items-center",initial:{opacity:0},animate:{opacity:1},transition:{duration:.24},children:(0,Ft.jsx)(zr,{id:"boolean-input",checked:n,onCheckedChange:d,disabled:i})}),(0,Ft.jsx)(Vl.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,Ft.jsx)(Wt,{onSave:m,onCancel:h,onNullChange:r?c:void 0,isNull:i})]})}C();var Hr=require("react");C();var bp=require("class-variance-authority");var Qv=require("react/jsx-runtime"),Cp=(0,bp.cva)("ps-inline-flex ps-items-center ps-rounded-md ps-border ps-px-2.5 ps-py-0.5 ps-text-xs ps-font-semibold ps-transition-colors focus:ps-outline-none focus:ps-ring-2 focus:ps-ring-ring focus:ps-ring-offset-2",{variants:{variant:{default:"ps-border-transparent ps-bg-primary ps-text-primary-foreground ps-shadow hover:ps-bg-primary/80",secondary:"ps-border-transparent ps-bg-secondary ps-text-secondary-foreground hover:ps-bg-secondary/80",destructive:"ps-border-transparent ps-bg-destructive ps-text-destructive-foreground ps-shadow hover:ps-bg-destructive/80",outline:"ps-text-foreground"}},defaultVariants:{variant:"default"}});var va=require("react/jsx-runtime");function wp(e){let{onSubmit:t,column:a,value:o,options:r=[]}=e,n=a.nullable===!0,s=String(o),[i,l]=(0,Hr.useState)(s),[u,d]=(0,Hr.useState)(o===null),c=x=>{l(x)},f=x=>{d(x)},p=(0,Hr.useCallback)(()=>u?o!==null?(t(null),!0):!1:i!==s?(t(i),!0):!1,[i,s,t,u,o]),m=()=>{l(s),d(o===null)},{handleSave:h,handleCancel:g}=Vt({onSave:p,onCancel:m});return(0,va.jsxs)(va.Fragment,{children:[(0,va.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:i}),(0,va.jsx)("div",{className:"ps-flex ps-flex-row ps-gap-2 ps-p-2",children:r.map(x=>(0,va.jsx)("button",{onClick:()=>c(x),className:Cp({variant:x===i?"default":"outline"}),disabled:u,children:x},x))}),(0,va.jsx)(Wt,{onSave:h,onCancel:g,onNullChange:n?f:void 0,isNull:u})]})}C();var _r=Ie(require("react"),1);var Ha=require("react/jsx-runtime");function Lp(e){let{value:t,onSubmit:a,column:o}=e,r=o.nullable===!0,n=t===null?"":JSON.stringify(t,null,2),[s,i]=(0,_r.useState)(n),[l,u]=(0,_r.useState)(t===null),d=g=>{i(g.target.value)},c=g=>{u(g)},f=_r.default.useCallback(()=>{if(l)return t!==null?(a(null),!0):!1;let g=s===""?null:JSON.parse(s);return g!==t?(a(g),!0):!1},[s,t,a,l]),p=()=>{i(n),u(t===null)},{handleSave:m,handleCancel:h}=Vt({onSave:f,onCancel:p});return(0,Ha.jsxs)(Ha.Fragment,{children:[(0,Ha.jsx)("div",{className:"ps-flex ps-flex-row ps-items-center ps-gap-4 ps-py-0",children:(0,Ha.jsx)("textarea",{rows:5,value:s,onChange:d,disabled:l,className:"ps-cell-input-base ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize ps-px-[var(--studio-cell-spacing)]",lang:"en_EN"})}),(0,Ha.jsx)(Wt,{onSave:m,onCancel:h,onNullChange:r?c:void 0,isNull:l})]})}C();var Vr=Ie(require("react"),1);var ba=require("react/jsx-runtime");function Ip(e){let{value:t,onSubmit:a,column:o}=e,r=o.nullable===!0,[n,s]=(0,Vr.useState)(t===null?"":String(t)),[i,l]=(0,Vr.useState)(t===null),u=t===null?"":String(t),d=g=>{s(g.target.value)},c=g=>{l(g)},f=Vr.default.useCallback(()=>{if(i)return t!==null?(a(null),!0):!1;let g=n===""?null:Number(n);return g!==t?(a(g),!0):!1},[n,t,a,i]),p=()=>{s(u),l(t===null)},{handleSave:m,handleCancel:h}=Vt({onSave:f,onCancel:p});return(0,ba.jsxs)(ba.Fragment,{children:[(0,ba.jsxs)("div",{className:"ps-flex ps-flex-row ps-items-center ps-h-[var(--studio-cell-height)] ps-gap-4 ps-py-0",children:[(0,ba.jsx)(qr,{htmlFor:"numeric-input",className:"ps-sr-only",children:"Numeric"}),(0,ba.jsx)("input",{type:"text",inputMode:"numeric",pattern:"\\d*",value:n,onChange:d,disabled:i,className:"ps-cell-leading ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",step:"any",lang:"en_EN"})]}),(0,ba.jsx)(Wt,{onSave:m,onCancel:h,onNullChange:r?c:void 0,isNull:i})]})}C();var Pp=Ie(require("react"),1);C();var Sp=require("react");function kp(e){let{initialValue:t}=e,[a,o]=(0,Sp.useState)(t??"");return{handleOnChange:n=>{o(n.target.value)},value:a}}var Ca=require("react/jsx-runtime");function Mp(e){let{onSubmit:t,value:a}=e,o=String(a),{handleOnChange:r,value:n}=kp({initialValue:o});function s(c){c.preventDefault(),n!==o&&t(n)}let i=Pp.default.useCallback(()=>n!==o?(t(n),!0):!1,[n,o,t]),l=()=>{},{handleSave:u,handleCancel:d}=Vt({onSave:i,onCancel:l});return(0,Ca.jsxs)(Ca.Fragment,{children:[(0,Ca.jsxs)("form",{onSubmit:s,children:[(0,Ca.jsx)(Br,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:r,type:"text",value:n}),(0,Ca.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Ca.jsx)(Wt,{onSave:u,onCancel:d})]})}var Eo=require("react/jsx-runtime");function Rp(e,t,a){let{group:o,options:r,isArray:n}=t.datatype,s=e.getValue();return o==="json"||n?(0,Eo.jsx)(Lp,{onSubmit:a,value:s,column:t}):o==="boolean"?(0,Eo.jsx)(vp,{onSubmit:a,value:s,column:t}):o==="enum"?(0,Eo.jsx)(wp,{onSubmit:a,value:s,options:r,column:t}):o==="numeric"?(0,Eo.jsx)(Ip,{onSubmit:a,value:s,column:t}):(0,Eo.jsx)(Mp,{onSubmit:a,value:(0,Ap.isObjectType)(s)?JSON.stringify(s):s})}C();var Tp=require("@tanstack/react-table"),Dp=require("remeda");var lo=require("react/jsx-runtime");function Ep(e){let{table:t,stagedRows:a,setStagedRows:o}=e,r=Qn();function n(i,l){o(u=>{let d=[...u];return d[i]={...d[i],...l},d})}let s=(0,Tp.useReactTable)({...t.options,enableSorting:!1,onPaginationChange:void 0,onSortingChange:void 0,data:a,state:(0,Dp.omit)(t.options.state,["pagination","sorting"])});return(0,lo.jsx)(lo.Fragment,{children:s.getRowModel().rows.map((i,l)=>(0,lo.jsx)(pa,{children:i.getVisibleCells().map(u=>(0,lo.jsx)(ma,{className:K($r(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,lo.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 Bp(e){let t=!!(0,Fp.useIsMutating)(),{activeTable:a,onError:o}=Ye(),{sortingState:r,setSortingState:n}=kf(),{paginationState:s,setPaginationState:i}=Xn(),[l,u]=(0,rs.useState)([]),{data:d,isFetching:c}=bf({...s,sortOrder:r}),{deleteSelection:f,isSelecting:p,rowSelectionState:m,setRowSelectionState:h}=Sf(d),g=Qn(),x=yf(),v=Cf();if((0,rs.useEffect)(()=>u([]),[a]),!a)return null;function b(){x.mutate(l,{onError:o,onSuccess(){Op.toast.success("Rows inserted successfully"),u([])}})}function w(){u(I=>[...I,{}])}function S(){u([])}function F(I,U,R){v.mutate({details:{changes:{[U.name]:I},row:R,table:a},options:{}})}let D=Object.values(a?.columns??{}).map(I=>({id:I.name,accessorKey:I.name,header(){return mp({column:I})},cell({cell:U}){return({props:R})=>(0,Fe.jsx)(Gf,{cellComponent:_f(U,I,R),inputComponent:Rp(U,I,te=>F(te,I,U.row.original))})}})),T=[{id:"__ps_select",accessorKey:"__ps_select",enablePinning:!1,size:20,header({table:I}){return(0,Fe.jsx)(tr,{checked:I.getIsAllRowsSelected(),onCheckedChange:U=>I.toggleAllRowsSelected(!!U)})},cell({row:I}){return()=>(0,Fe.jsx)(El,{row:I})}}],L=[...D,...T].sort(Xv);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)(ot,{variant:"outline",size:"sm",onClick:w,disabled:g>0,children:"Insert row"}),l.length>0&&(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)(ot,{variant:"secondary",size:"sm",onClick:b,children:"Save"}),(0,Fe.jsx)(ot,{variant:"ghost",size:"sm",onClick:S,children:"Cancel"})]}),p&&(0,Fe.jsx)(Fe.Fragment,{children:(0,Fe.jsx)(ot,{variant:"secondary",size:"sm",onClick:f,children:"Delete"})})]})})})}),(0,Fe.jsx)(up,{columnDefs:L,getBeforeRows:I=>(0,Fe.jsx)(Ep,{table:I,stagedRows:l,setStagedRows:u}),isLoading:c,isProcessing:t,onPaginationChange:i,onRowSelectionChange:h,onSortingChange:n,pageCount:jv(d?.filteredRowCount??1/0,s.pageSize),paginationState:s,rows:d?.rows??[],rowSelectionState:m,sortingState:r})]})}function jv(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 Xv(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 Up=require("@radix-ui/react-slot");C();var ns=require("react");C();var qp=require("@tanstack/react-query");var $p=-1;function Np(){let{adapter:e}=Ye();return(0,qp.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}},timezone:"UTC"},initialDataUpdatedAt:$p,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===$p?0:1/0})}function zp(){let{activeTable:e,setActiveTable:t,adapter:a}=Ye(),{data:o,isLoading:r}=Np(),n=Object.values(o.schemas[a.defaultSchema||"db"]?.tables||{}),[s]=n,[i,l]=Er({table:{defaultValue:null,parse:f=>f,serialize:f=>f??""},schema:{defaultValue:"",parse:f=>f,serialize:f=>f??""}}),[,u]=To("pageIndex",{parse:f=>f,serialize:f=>f??""}),[,d]=To("sort",{parse:f=>f,serialize:f=>f??""});(0,ns.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,ns.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 _a(){let{tables:e,activeTable:t,isLoading:a,handleTableChange:o}=zp();return(0,mt.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0",children:(0,mt.jsx)(_a.Block,{label:"Tables",children:e.length>0?e.map(r=>(0,mt.jsx)(_a.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)(_a.Item,{children:"Loading..."}):(0,mt.jsx)(_a.Item,{children:"No tables found"})})})}var Zv=({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})]}),Jv=({className:e,asChild:t=!1,isActive:a,size:o,...r})=>(0,mt.jsx)(t?Up.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})});_a.Block=Zv;_a.Item=Jv;var wa=require("react/jsx-runtime");function Hp(e){let{adapter:t,onError:a}=e;return t?(0,wa.jsx)(hf,{adapter:t,onError:a,children:(0,wa.jsx)("div",{className:"ps-flex ps-flex-col ps-w-full",children:(0,wa.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-bg-background ps-relative ps-max-h-full",children:[(0,wa.jsx)(_a,{}),(0,wa.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,wa.jsx)(Bp,{})})]})})}):(console.error("No adapter provided to Studio component"),(0,wa.jsx)("div",{children:"Error: No adapter provided"}))}0&&(module.exports={Studio});
|
|
1219
|
+
`}}),_.default.createElement("div",{style:{flex:"1 1 500px",minHeight:"40%",maxHeight:"100%",overflow:"auto",borderRight:`1px solid ${Kt.grayAlt}`,display:"flex",flexDirection:"column"}},_.default.createElement("div",{style:{padding:".5em",background:Kt.backgroundAlt,display:"flex",justifyContent:"space-between",alignItems:"center"}},_.default.createElement(Zf,{"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(Ev,{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(Gt,{label:"Instance",value:o,defaultExpanded:!1}),_.default.createElement("div",{style:{height:".5rem"}}),_.default.createElement(Gt,{label:"State",value:o.getState(),defaultExpanded:!1}),_.default.createElement("div",{style:{height:".5rem"}}),_.default.createElement(Gt,{label:"Columns",value:o.getAllColumns(),defaultExpanded:!1})),_.default.createElement("div",{style:{flex:"1 1 auto",padding:".5em"}},_.default.createElement(Gt,{label:"Core Model",value:o.getCoreRowModel(),defaultExpanded:!1}),_.default.createElement(Gt,{label:"Filtered Model",value:o.getFilteredRowModel(),defaultExpanded:!1}),_.default.createElement(Gt,{label:"Sorted Model",value:o.getSortedRowModel(),defaultExpanded:!1}),_.default.createElement(Gt,{label:"Grouped Model",value:o.getGroupedRowModel(),defaultExpanded:!1}),_.default.createElement(Gt,{label:"Expanded Model",value:o.getExpandedRowModel(),defaultExpanded:!1}))))))});var Na=require("react");C();var tp=require("@tanstack/react-table");C();var ne=Ie(require("@radix-ui/react-dropdown-menu"),1);var ya=Ie(require("react"),1);var Ue=require("react/jsx-runtime"),Yf=ne.Root,ep=ne.Trigger;var qv=ya.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ue.jsxs)(ne.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)(oa,{className:"ps-ml-auto"})]}));qv.displayName=ne.SubTrigger.displayName;var Nv=ya.forwardRef(({className:e,...t},a)=>(0,Ue.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-dropdown-menu-content-transform-origin]",e),...t}));Nv.displayName=ne.SubContent.displayName;var ql=ya.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ue.jsx)(ne.Portal,{children:(0,Ue.jsx)(ne.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})}));ql.displayName=ne.Content.displayName;var as=ya.forwardRef(({className:e,inset:t,...a},o)=>(0,Ue.jsx)(ne.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}));as.displayName=ne.Item.displayName;var zv=ya.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ue.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 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)(ne.ItemIndicator,{children:(0,Ue.jsx)(aa,{className:"ps-h-4 ps-w-4"})})}),t]}));zv.displayName=ne.CheckboxItem.displayName;var Uv=ya.forwardRef(({className:e,children:t,...a},o)=>(0,Ue.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 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)(ne.ItemIndicator,{children:(0,Ue.jsx)(Wa,{className:"ps-h-2 ps-w-2 ps-fill-current"})})}),t]}));Uv.displayName=ne.RadioItem.displayName;var Hv=ya.forwardRef(({className:e,inset:t,...a},o)=>(0,Ue.jsx)(ne.Label,{ref:o,className:K("ps-px-2 ps-py-1.5 ps-text-sm ps-font-semibold",t&&"ps-pl-8",e),...a}));Hv.displayName=ne.Label.displayName;var _v=ya.forwardRef(({className:e,...t},a)=>(0,Ue.jsx)(ne.Separator,{ref:a,className:K("ps--mx-1 ps-my-1 ps-h-px ps-bg-muted",e),...t}));_v.displayName=ne.Separator.displayName;var Vv=({className:e,...t})=>(0,Ue.jsx)("span",{className:K("ps-ml-auto ps-text-xs ps-tracking-widest ps-opacity-60",e),...t});Vv.displayName="DropdownMenuShortcut";var de=require("react/jsx-runtime");function ap(e){let{header:t}=e;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.jsx)("div",{className:"ps-flex ps-items-center ps-gap-2 ps-overflow-hidden ps-text-ellipsis ps-font-mono ps-text-xs",children:t.isPlaceholder?null:(0,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,tp.flexRender)(t.column.columnDef.header,t.getContext())})})}),(0,de.jsx)("span",{className:"ps-relative ps-gap-1",children:t.column.getCanPin()&&t.column.id!=="select"&&(0,de.jsxs)(Yf,{children:[(0,de.jsx)(ep,{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)(Vo,{size:12})})}),(0,de.jsxs)(ql,{children:[t.column.getCanSort()&&(0,de.jsx)(as,{onClick:()=>t.column.toggleSorting(),children:(0,de.jsx)("span",{className:"ps-flex ps-items-center ps-gap-2",children:t.column.getNextSortingOrder()==="desc"?(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Ma,{size:16}),"Sort descending"]}):t.column.getNextSortingOrder()==="asc"?(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(_o,{size:16}),"Sort ascending"]}):(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Yo,{size:16}),"Cancel sorting"]})})}),(0,de.jsx)(as,{onClick:()=>t.column.pin(t.column.getIsPinned()?!1:"left"),children:t.column.getIsPinned()?(0,de.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,de.jsx)(Zo,{size:16}),"Unpin column"]}):(0,de.jsxs)("span",{className:"ps-flex ps-items-center ps-gap-2",children:[(0,de.jsx)(Jo,{size:16}),"Pin column"]})})]})]})})]}),t.column.getCanResize()&&(0,de.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 Nl=require("react/jsx-runtime");function op({className:e}){return(0,Nl.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,Nl.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 rp=Ie(require("react"),1);var np=require("react/jsx-runtime"),Br=rp.forwardRef(({className:e,type:t,...a},o)=>(0,np.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}));Br.displayName="Input";var Te=require("react/jsx-runtime");function sp(e){let{table:t,variant:a="basic"}=e,{pageIndex:o}=t.getState().pagination,r=t.getPageCount(),n=t.getAllColumns().length;return(0,Te.jsx)(yl,{className:"ps-sticky ps-bottom-0 ps-border-t-0 w-full ps-z-20 ps-p-0",children:(0,Te.jsx)(pa,{className:"ps-p-0 ps-bg-transparent hover:ps-bg-transparent",children:(0,Te.jsx)(ma,{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)(ot,{variant:"outline",size:"sm",className:"ps-h-9",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:"Previous"}),(0,Te.jsx)(ot,{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)(ot,{variant:"outline",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),children:(0,Te.jsx)(Go,{className:"ps-w-4 ps-h-4"})}),(0,Te.jsx)(ot,{variant:"outline",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:(0,Te.jsx)(Ko,{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)(Br,{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)(ot,{variant:"outline",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:(0,Te.jsx)(oa,{className:"ps-w-4 ps-h-4"})}),(0,Te.jsx)(ot,{variant:"outline",onClick:()=>t.setPageIndex(r-1),disabled:!t.getCanNextPage(),children:(0,Te.jsx)(Wo,{className:"ps-w-4 ps-h-4"})})]})})})})})})})}C();function $r(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 Re=require("react/jsx-runtime"),Kv=e=>{let{children:t,className:a,header:o,style:r}=e,{attributes:n,listeners:s,transform:i,transition:l,setNodeRef:u,isDragging:d}=(0,Ua.useSortable)({id:o.id});return(0,Re.jsx)(vl,{ref:u,...n,...s,style:{cursor:"grab",touchAction:"none",transform:ip.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,Re.jsx)("div",{className:K("ps-w-full",d&&"ps-w-[var(--dragging-width)]"),children:t})})};function up(e){let{columnDefs:t,getBeforeRows:a,isLoading:o,isProcessing:r,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:i,pageCount:l,paginationState:u,rows:d,rowSelectionState:c,sortingState:f}=e,[p,m]=(0,Na.useState)([]),[h,g]=(0,Na.useState)({left:["__ps_select"],right:[]}),[x,v]=(0,Na.useState)({}),b=(0,Na.useMemo)(()=>lp(f),[f]),w=o||r;(0,Na.useEffect)(()=>m(t.map(({accessorKey:L})=>L)),[]);function S({active:L,over:I}){I&&L.id!==I.id&&m(U=>{let R=U.indexOf(L.id),te=U.indexOf(I.id);return(0,Ua.arrayMove)(U,R,te)})}let F=(0,za.useSensor)(za.MouseSensor,{activationConstraint:{distance:10}}),D=(0,za.useSensors)(F),T=(0,os.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,os.getCoreRowModel)(),getRowId:({__ps_rowid:L})=>L,manualPagination:!0,manualSorting:!0,onColumnOrderChange:m,onColumnPinningChange:g,onColumnSizingChange:v,onPaginationChange:n,onRowSelectionChange:s,onSortingChange:L=>i?.(I=>(typeof L=="function"&&(L=L(lp(I))),Gv(L))),pageCount:l,state:{columnOrder:p,columnPinning:h,columnSizing:x,pagination:u,rowSelection:c,sorting:b}});return(0,Re.jsxs)(Re.Fragment,{children:[process.env.NODE_ENV==="production"?null:(0,Re.jsx)(Jf,{table:T}),(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:w&&(0,Re.jsx)(op,{className:"ps-absolute -ps-top-[1px] ps-left-0 ps-right-0"})}),(0,Re.jsx)(za.DndContext,{sensors:D,onDragEnd:S,children:(0,Re.jsxs)(gl,{className:"ps-min-w-full ps-table-fixed ps-border-separate ps-border-spacing-0 ps-box-border",children:[(0,Re.jsx)(hl,{children:T.getHeaderGroups().map(L=>(0,Re.jsx)(pa,{children:(0,Re.jsx)(Ua.SortableContext,{items:L.headers.map(I=>I.id),strategy:Ua.horizontalListSortingStrategy,children:L.headers.map(I=>(0,Re.jsx)(Kv,{header:I,table:T,...$r(I.column),children:(0,Re.jsx)(ap,{header:I})},I.id))})},L.id))}),(0,Re.jsxs)(xl,{children:[a?.(T),T.getRowModel().rows?.length?T.getRowModel().rows.map(L=>(0,Re.jsx)(pa,{className:K("ps-bg-table-row ps-odd:bg-table-row-odd ps-group [&:last-of-type_td]:ps-border-b-0"),children:L.getVisibleCells().map((I,U)=>{if(typeof I.column.columnDef.cell=="function"){let R=I.column.columnDef.cell(I.getContext());return(0,Re.jsx)(R,{...$r(I.column)},U)}return null})},L.id)):(0,Re.jsx)(pa,{children:(0,Re.jsx)(ma,{colSpan:t.length,className:"ps-h-24 ps-text-center",children:o?"Loading...":"No results."})})]}),!l||l<2?null:(0,Re.jsx)(sp,{table:T,variant:"numeric"})]})})]})]})}function lp(e){return e?.map(t=>({id:t.column,desc:t.direction==="desc"}))||[]}function Gv(e){return e.map(t=>({column:t.id,direction:t.desc?"desc":"asc"}))}C();C();var Et=Ie(require("@radix-ui/react-tooltip"),1),dp=Ie(require("react"),1);var zl=require("react/jsx-runtime"),cp=Et.Provider,fp=Et.Root,pp=Et.Trigger,Ul=dp.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,zl.jsx)(Et.Portal,{children:(0,zl.jsx)(Et.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})}));Ul.displayName=Et.Content.displayName;var Lt=require("react/jsx-runtime");function mp({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)(cp,{delayDuration:300,children:(0,Lt.jsxs)(fp,{children:[(0,Lt.jsx)(pp,{asChild:!0,children:(0,Lt.jsx)(Xo,{size:12})}),(0,Lt.jsx)(Ul,{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 Ap=require("remeda");C();var Vl=require("motion/react"),Ur=Ie(require("react"),1);C();var Hl=Ie(require("@radix-ui/react-label"),1),gp=require("class-variance-authority"),hp=Ie(require("react"),1);var xp=require("react/jsx-runtime"),Wv=(0,gp.cva)("ps-text-sm ps-font-medium ps-leading-none peer-disabled:ps-cursor-not-allowed peer-disabled:ps-opacity-70"),qr=hp.forwardRef(({className:e,...t},a)=>(0,xp.jsx)(Hl.Root,{ref:a,className:K(Wv(),e),...t}));qr.displayName=Hl.Root.displayName;C();var Nr=Ie(require("@radix-ui/react-switch"),1),yp=Ie(require("react"),1);var _l=require("react/jsx-runtime"),zr=yp.forwardRef(({className:e,...t},a)=>(0,_l.jsx)(Nr.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,_l.jsx)(Nr.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")})}));zr.displayName=Nr.Root.displayName;C();var pt=require("react/jsx-runtime"),Wt=({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)(jo,{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)(zr,{id:"set-nullable",checked:r,onCheckedChange:l=>{o&&o(l)}}),(0,pt.jsx)("span",{children:"Set to NULL"})]})})]});var Ft=require("react/jsx-runtime");function vp(e){let{value:t,onSubmit:a,column:o}=e,r=o.nullable===!0,[n,s]=(0,Ur.useState)(t===null?!1:t),[i,l]=(0,Ur.useState)(t===null),u=t===null?!1:t,d=g=>{s(g)},c=g=>{l(g)},f=Ur.default.useCallback(()=>{let g=i?null:n;return g!==t?(a(g),!0):!1},[n,t,a,i]),p=()=>{s(u),l(t===null)},{handleSave:m,handleCancel:h}=Vt({onSave:f,onCancel:p});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)(qr,{htmlFor:"boolean-input",className:"ps-sr-only",children:"Boolean"}),(0,Ft.jsx)(Vl.motion.div,{className:"ps-flex ps-items-center",initial:{opacity:0},animate:{opacity:1},transition:{duration:.24},children:(0,Ft.jsx)(zr,{id:"boolean-input",checked:n,onCheckedChange:d,disabled:i})}),(0,Ft.jsx)(Vl.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,Ft.jsx)(Wt,{onSave:m,onCancel:h,onNullChange:r?c:void 0,isNull:i})]})}C();var Hr=require("react");C();var bp=require("class-variance-authority");var Qv=require("react/jsx-runtime"),Cp=(0,bp.cva)("ps-inline-flex ps-items-center ps-rounded-md ps-border ps-px-2.5 ps-py-0.5 ps-text-xs ps-font-semibold ps-transition-colors focus:ps-outline-none focus:ps-ring-2 focus:ps-ring-ring focus:ps-ring-offset-2",{variants:{variant:{default:"ps-border-transparent ps-bg-primary ps-text-primary-foreground ps-shadow hover:ps-bg-primary/80",secondary:"ps-border-transparent ps-bg-secondary ps-text-secondary-foreground hover:ps-bg-secondary/80",destructive:"ps-border-transparent ps-bg-destructive ps-text-destructive-foreground ps-shadow hover:ps-bg-destructive/80",outline:"ps-text-foreground"}},defaultVariants:{variant:"default"}});var va=require("react/jsx-runtime");function wp(e){let{onSubmit:t,column:a,value:o,options:r=[]}=e,n=a.nullable===!0,s=String(o),[i,l]=(0,Hr.useState)(s),[u,d]=(0,Hr.useState)(o===null),c=x=>{l(x)},f=x=>{d(x)},p=(0,Hr.useCallback)(()=>u?o!==null?(t(null),!0):!1:i!==s?(t(i),!0):!1,[i,s,t,u,o]),m=()=>{l(s),d(o===null)},{handleSave:h,handleCancel:g}=Vt({onSave:p,onCancel:m});return(0,va.jsxs)(va.Fragment,{children:[(0,va.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:i}),(0,va.jsx)("div",{className:"ps-flex ps-flex-row ps-gap-2 ps-p-2",children:r.map(x=>(0,va.jsx)("button",{onClick:()=>c(x),className:Cp({variant:x===i?"default":"outline"}),disabled:u,children:x},x))}),(0,va.jsx)(Wt,{onSave:h,onCancel:g,onNullChange:n?f:void 0,isNull:u})]})}C();var _r=Ie(require("react"),1);var Ha=require("react/jsx-runtime");function Lp(e){let{value:t,onSubmit:a,column:o}=e,r=o.nullable===!0,n=t===null?"":JSON.stringify(t,null,2),[s,i]=(0,_r.useState)(n),[l,u]=(0,_r.useState)(t===null),d=g=>{i(g.target.value)},c=g=>{u(g)},f=_r.default.useCallback(()=>{if(l)return t!==null?(a(null),!0):!1;let g=s===""?null:JSON.parse(s);return g!==t?(a(g),!0):!1},[s,t,a,l]),p=()=>{i(n),u(t===null)},{handleSave:m,handleCancel:h}=Vt({onSave:f,onCancel:p});return(0,Ha.jsxs)(Ha.Fragment,{children:[(0,Ha.jsx)("div",{className:"ps-flex ps-flex-row ps-items-center ps-gap-4 ps-py-0",children:(0,Ha.jsx)("textarea",{rows:5,value:s,onChange:d,disabled:l,className:"ps-cell-input-base ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize ps-px-[var(--studio-cell-spacing)]",lang:"en_EN"})}),(0,Ha.jsx)(Wt,{onSave:m,onCancel:h,onNullChange:r?c:void 0,isNull:l})]})}C();var Vr=Ie(require("react"),1);var ba=require("react/jsx-runtime");function Ip(e){let{value:t,onSubmit:a,column:o}=e,r=o.nullable===!0,[n,s]=(0,Vr.useState)(t===null?"":String(t)),[i,l]=(0,Vr.useState)(t===null),u=t===null?"":String(t),d=g=>{s(g.target.value)},c=g=>{l(g)},f=Vr.default.useCallback(()=>{if(i)return t!==null?(a(null),!0):!1;let g=n===""?null:Number(n);return g!==t?(a(g),!0):!1},[n,t,a,i]),p=()=>{s(u),l(t===null)},{handleSave:m,handleCancel:h}=Vt({onSave:f,onCancel:p});return(0,ba.jsxs)(ba.Fragment,{children:[(0,ba.jsxs)("div",{className:"ps-flex ps-flex-row ps-items-center ps-h-[var(--studio-cell-height)] ps-gap-4 ps-py-0",children:[(0,ba.jsx)(qr,{htmlFor:"numeric-input",className:"ps-sr-only",children:"Numeric"}),(0,ba.jsx)("input",{type:"text",inputMode:"numeric",pattern:"\\d*",value:n,onChange:d,disabled:i,className:"ps-cell-leading ps-appearance-none ps-w-full ps-font-mono ps-border-none ps-outline-none ps-shadow-none ps-bg-transparent focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",step:"any",lang:"en_EN"})]}),(0,ba.jsx)(Wt,{onSave:m,onCancel:h,onNullChange:r?c:void 0,isNull:i})]})}C();var Pp=Ie(require("react"),1);C();var Sp=require("react");function kp(e){let{initialValue:t}=e,[a,o]=(0,Sp.useState)(t??"");return{handleOnChange:n=>{o(n.target.value)},value:a}}var Ca=require("react/jsx-runtime");function Mp(e){let{onSubmit:t,value:a}=e,o=String(a),{handleOnChange:r,value:n}=kp({initialValue:o});function s(c){c.preventDefault(),n!==o&&t(n)}let i=Pp.default.useCallback(()=>n!==o?(t(n),!0):!1,[n,o,t]),l=()=>{},{handleSave:u,handleCancel:d}=Vt({onSave:i,onCancel:l});return(0,Ca.jsxs)(Ca.Fragment,{children:[(0,Ca.jsxs)("form",{onSubmit:s,children:[(0,Ca.jsx)(Br,{className:"ps-cell-input-leading ps-font-mono ps-border-none ps-shadow-none focus-visible:ps-ring-0 ps-resize-none ps-px-[var(--studio-cell-spacing)]",onChange:r,type:"text",value:n}),(0,Ca.jsx)("input",{type:"submit",className:"ps-sr-only"})]}),(0,Ca.jsx)(Wt,{onSave:u,onCancel:d})]})}var Eo=require("react/jsx-runtime");function Rp(e,t,a){let{group:o,options:r,isArray:n}=t.datatype,s=e.getValue();return o==="json"||n?(0,Eo.jsx)(Lp,{onSubmit:a,value:s,column:t}):o==="boolean"?(0,Eo.jsx)(vp,{onSubmit:a,value:s,column:t}):o==="enum"?(0,Eo.jsx)(wp,{onSubmit:a,value:s,options:r,column:t}):o==="numeric"?(0,Eo.jsx)(Ip,{onSubmit:a,value:s,column:t}):(0,Eo.jsx)(Mp,{onSubmit:a,value:(0,Ap.isObjectType)(s)?JSON.stringify(s):s})}C();var Tp=require("@tanstack/react-table"),Dp=require("remeda");var lo=require("react/jsx-runtime");function Ep(e){let{table:t,stagedRows:a,setStagedRows:o}=e,r=Qn();function n(i,l){o(u=>{let d=[...u];return d[i]={...d[i],...l},d})}let s=(0,Tp.useReactTable)({...t.options,enableSorting:!1,onPaginationChange:void 0,onSortingChange:void 0,data:a,state:(0,Dp.omit)(t.options.state,["pagination","sorting"])});return(0,lo.jsx)(lo.Fragment,{children:s.getRowModel().rows.map((i,l)=>(0,lo.jsx)(pa,{children:i.getVisibleCells().map(u=>(0,lo.jsx)(ma,{className:K($r(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,lo.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 Bp(e){let t=!!(0,Fp.useIsMutating)(),{activeTable:a,onError:o}=Ye(),{sortingState:r,setSortingState:n}=kf(),{paginationState:s,setPaginationState:i}=Xn(),[l,u]=(0,rs.useState)([]),{data:d,isFetching:c}=bf({...s,sortOrder:r}),{deleteSelection:f,isSelecting:p,rowSelectionState:m,setRowSelectionState:h}=Sf(d),g=Qn(),x=yf(),v=Cf();if((0,rs.useEffect)(()=>u([]),[a]),!a)return null;function b(){x.mutate(l,{onError:o,onSuccess(){Op.toast.success("Rows inserted successfully"),u([])}})}function w(){u(I=>[...I,{}])}function S(){u([])}function F(I,U,R){v.mutate({details:{changes:{[U.name]:I},row:R,table:a},options:{}})}let D=Object.values(a?.columns??{}).map(I=>({id:I.name,accessorKey:I.name,meta:I,header(){return mp({column:I})},cell({cell:U}){return({props:R})=>(0,Fe.jsx)(Gf,{cellComponent:_f(U,I,R),inputComponent:Rp(U,I,te=>F(te,I,U.row.original))})}})),T=[{id:"__ps_select",accessorKey:"__ps_select",enablePinning:!1,size:20,header({table:I}){return(0,Fe.jsx)(tr,{checked:I.getIsAllRowsSelected(),onCheckedChange:U=>I.toggleAllRowsSelected(!!U)})},cell({row:I}){return()=>(0,Fe.jsx)(El,{row:I})}}],L=[...D,...T].sort(Xv);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)(ot,{variant:"outline",size:"sm",onClick:w,disabled:g>0,children:"Insert row"}),l.length>0&&(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)(ot,{variant:"secondary",size:"sm",onClick:b,children:"Save"}),(0,Fe.jsx)(ot,{variant:"ghost",size:"sm",onClick:S,children:"Cancel"})]}),p&&(0,Fe.jsx)(Fe.Fragment,{children:(0,Fe.jsx)(ot,{variant:"secondary",size:"sm",onClick:f,children:"Delete"})})]})})})}),(0,Fe.jsx)(up,{columnDefs:L,getBeforeRows:I=>(0,Fe.jsx)(Ep,{table:I,stagedRows:l,setStagedRows:u}),isLoading:c,isProcessing:t,onPaginationChange:i,onRowSelectionChange:h,onSortingChange:n,pageCount:jv(d?.filteredRowCount??1/0,s.pageSize),paginationState:s,rows:d?.rows??[],rowSelectionState:m,sortingState:r})]})}function jv(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 Xv(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 Up=require("@radix-ui/react-slot");C();var ns=require("react");C();var qp=require("@tanstack/react-query");var $p=-1;function Np(){let{adapter:e}=Ye();return(0,qp.useQuery)({initialData:{schemas:{[e.defaultSchema||"db"]:{tables:{}}},timezone:"UTC"},initialDataUpdatedAt:$p,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===$p?0:1/0})}function zp(){let{activeTable:e,setActiveTable:t,adapter:a}=Ye(),{data:o,isLoading:r}=Np(),n=Object.values(o.schemas[a.defaultSchema||"db"]?.tables||{}),[s]=n,[i,l]=Er({table:{defaultValue:null,parse:f=>f,serialize:f=>f??""},schema:{defaultValue:"",parse:f=>f,serialize:f=>f??""}}),[,u]=To("pageIndex",{parse:f=>f,serialize:f=>f??""}),[,d]=To("sort",{parse:f=>f,serialize:f=>f??""});(0,ns.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,ns.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 _a(){let{tables:e,activeTable:t,isLoading:a,handleTableChange:o}=zp();return(0,mt.jsx)("div",{className:"ps-flex ps-flex-col ps-w-64 ps-gap-4 ps-shrink-0",children:(0,mt.jsx)(_a.Block,{label:"Tables",children:e.length>0?e.map(r=>(0,mt.jsx)(_a.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)(_a.Item,{children:"Loading..."}):(0,mt.jsx)(_a.Item,{children:"No tables found"})})})}var Zv=({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})]}),Jv=({className:e,asChild:t=!1,isActive:a,size:o,...r})=>(0,mt.jsx)(t?Up.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})});_a.Block=Zv;_a.Item=Jv;var wa=require("react/jsx-runtime");function Hp(e){let{adapter:t,onError:a}=e;return t?(0,wa.jsx)(hf,{adapter:t,onError:a,children:(0,wa.jsx)("div",{className:"ps-flex ps-flex-col ps-w-full",children:(0,wa.jsxs)("div",{className:"ps-flex ps-gap-4 ps-w-full ps-bg-background ps-relative ps-max-h-full",children:[(0,wa.jsx)(_a,{}),(0,wa.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,wa.jsx)(Bp,{})})]})})}):(console.error("No adapter provided to Studio component"),(0,wa.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:
|