@stokelp/ui 1.4.0 → 1.4.2

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.cjs CHANGED
@@ -173,11 +173,10 @@ Error generating stack: `+m.message+`
173
173
  */var kw=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],By=kw.join(","),Dw=typeof Element>"u",Ms=Dw?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,$y=!Dw&&Element.prototype.getRootNode?function(l){var f;return l==null||(f=l.getRootNode)===null||f===void 0?void 0:f.call(l)}:function(l){return l==null?void 0:l.ownerDocument},Yy=function l(f,c){var h;c===void 0&&(c=!0);var E=f==null||(h=f.getAttribute)===null||h===void 0?void 0:h.call(f,"inert"),T=E===""||E==="true",g=T||c&&f&&l(f.parentNode);return g},tM=function(f){var c,h=f==null||(c=f.getAttribute)===null||c===void 0?void 0:c.call(f,"contenteditable");return h===""||h==="true"},Ow=function(f,c,h){if(Yy(f))return[];var E=Array.prototype.slice.apply(f.querySelectorAll(By));return c&&Ms.call(f,By)&&E.unshift(f),E=E.filter(h),E},Nw=function l(f,c,h){for(var E=[],T=Array.from(f);T.length;){var g=T.shift();if(!Yy(g,!1))if(g.tagName==="SLOT"){var D=g.assignedElements(),L=D.length?D:g.children,x=l(L,!0,h);h.flatten?E.push.apply(E,x):E.push({scopeParent:g,candidates:x})}else{var N=Ms.call(g,By);N&&h.filter(g)&&(c||!f.includes(g))&&E.push(g);var k=g.shadowRoot||typeof h.getShadowRoot=="function"&&h.getShadowRoot(g),z=!Yy(k,!1)&&(!h.shadowRootFilter||h.shadowRootFilter(g));if(k&&z){var F=l(k===!0?g.children:k.children,!0,h);h.flatten?E.push.apply(E,F):E.push({scopeParent:g,candidates:F})}else T.unshift.apply(T,g.children)}}return E},Lw=function(f){return!isNaN(parseInt(f.getAttribute("tabindex"),10))},_s=function(f){if(!f)throw new Error("No node provided");return f.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(f.tagName)||tM(f))&&!Lw(f)?0:f.tabIndex},nM=function(f,c){var h=_s(f);return h<0&&c&&!Lw(f)?0:h},rM=function(f,c){return f.tabIndex===c.tabIndex?f.documentOrder-c.documentOrder:f.tabIndex-c.tabIndex},_w=function(f){return f.tagName==="INPUT"},aM=function(f){return _w(f)&&f.type==="hidden"},iM=function(f){var c=f.tagName==="DETAILS"&&Array.prototype.slice.apply(f.children).some(function(h){return h.tagName==="SUMMARY"});return c},oM=function(f,c){for(var h=0;h<f.length;h++)if(f[h].checked&&f[h].form===c)return f[h]},lM=function(f){if(!f.name)return!0;var c=f.form||$y(f),h=function(D){return c.querySelectorAll('input[type="radio"][name="'+D+'"]')},E;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")E=h(window.CSS.escape(f.name));else try{E=h(f.name)}catch(g){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",g.message),!1}var T=oM(E,f.form);return!T||T===f},uM=function(f){return _w(f)&&f.type==="radio"},sM=function(f){return uM(f)&&!lM(f)},cM=function(f){var c,h=f&&$y(f),E=(c=h)===null||c===void 0?void 0:c.host,T=!1;if(h&&h!==f){var g,D,L;for(T=!!((g=E)!==null&&g!==void 0&&(D=g.ownerDocument)!==null&&D!==void 0&&D.contains(E)||f!=null&&(L=f.ownerDocument)!==null&&L!==void 0&&L.contains(f));!T&&E;){var x,N,k;h=$y(E),E=(x=h)===null||x===void 0?void 0:x.host,T=!!((N=E)!==null&&N!==void 0&&(k=N.ownerDocument)!==null&&k!==void 0&&k.contains(E))}}return T},Ex=function(f){var c=f.getBoundingClientRect(),h=c.width,E=c.height;return h===0&&E===0},fM=function(f,c){var h=c.displayCheck,E=c.getShadowRoot;if(getComputedStyle(f).visibility==="hidden")return!0;var T=Ms.call(f,"details>summary:first-of-type"),g=T?f.parentElement:f;if(Ms.call(g,"details:not([open]) *"))return!0;if(!h||h==="full"||h==="legacy-full"){if(typeof E=="function"){for(var D=f;f;){var L=f.parentElement,x=$y(f);if(L&&!L.shadowRoot&&E(L)===!0)return Ex(f);f.assignedSlot?f=f.assignedSlot:!L&&x!==f.ownerDocument?f=x.host:f=L}f=D}if(cM(f))return!f.getClientRects().length;if(h!=="legacy-full")return!0}else if(h==="non-zero-area")return Ex(f);return!1},dM=function(f){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(f.tagName))for(var c=f.parentElement;c;){if(c.tagName==="FIELDSET"&&c.disabled){for(var h=0;h<c.children.length;h++){var E=c.children.item(h);if(E.tagName==="LEGEND")return Ms.call(c,"fieldset[disabled] *")?!0:!E.contains(f)}return!0}c=c.parentElement}return!1},Wy=function(f,c){return!(c.disabled||Yy(c)||aM(c)||fM(c,f)||iM(c)||dM(c))},KE=function(f,c){return!(sM(c)||_s(c)<0||!Wy(f,c))},pM=function(f){var c=parseInt(f.getAttribute("tabindex"),10);return!!(isNaN(c)||c>=0)},vM=function l(f){var c=[],h=[];return f.forEach(function(E,T){var g=!!E.scopeParent,D=g?E.scopeParent:E,L=nM(D,g),x=g?l(E.candidates):D;L===0?g?c.push.apply(c,x):c.push(D):h.push({documentOrder:T,tabIndex:L,item:E,isScope:g,content:x})}),h.sort(rM).reduce(function(E,T){return T.isScope?E.push.apply(E,T.content):E.push(T.content),E},[]).concat(c)},hM=function(f,c){c=c||{};var h;return c.getShadowRoot?h=Nw([f],c.includeContainer,{filter:KE.bind(null,c),flatten:!1,getShadowRoot:c.getShadowRoot,shadowRootFilter:pM}):h=Ow(f,c.includeContainer,KE.bind(null,c)),vM(h)},mM=function(f,c){c=c||{};var h;return c.getShadowRoot?h=Nw([f],c.includeContainer,{filter:Wy.bind(null,c),flatten:!0,getShadowRoot:c.getShadowRoot}):h=Ow(f,c.includeContainer,Wy.bind(null,c)),h},Ff=function(f,c){if(c=c||{},!f)throw new Error("No node provided");return Ms.call(f,By)===!1?!1:KE(c,f)},yM=kw.concat("iframe").join(","),VE=function(f,c){if(c=c||{},!f)throw new Error("No node provided");return Ms.call(f,yM)===!1?!1:Wy(c,f)};/*!
174
174
  * focus-trap 7.5.4
175
175
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
176
- */function bx(l,f){var c=Object.keys(l);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(l);f&&(h=h.filter(function(E){return Object.getOwnPropertyDescriptor(l,E).enumerable})),c.push.apply(c,h)}return c}function Cx(l){for(var f=1;f<arguments.length;f++){var c=arguments[f]!=null?arguments[f]:{};f%2?bx(Object(c),!0).forEach(function(h){gM(l,h,c[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):bx(Object(c)).forEach(function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(c,h))})}return l}function gM(l,f,c){return f=EM(f),f in l?Object.defineProperty(l,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[f]=c,l}function SM(l,f){if(typeof l!="object"||l===null)return l;var c=l[Symbol.toPrimitive];if(c!==void 0){var h=c.call(l,f||"default");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(l)}function EM(l){var f=SM(l,"string");return typeof f=="symbol"?f:String(f)}var Tx={activateTrap:function(f,c){if(f.length>0){var h=f[f.length-1];h!==c&&h.pause()}var E=f.indexOf(c);E===-1||f.splice(E,1),f.push(c)},deactivateTrap:function(f,c){var h=f.indexOf(c);h!==-1&&f.splice(h,1),f.length>0&&f[f.length-1].unpause()}},bM=function(f){return f.tagName&&f.tagName.toLowerCase()==="input"&&typeof f.select=="function"},CM=function(f){return(f==null?void 0:f.key)==="Escape"||(f==null?void 0:f.key)==="Esc"||(f==null?void 0:f.keyCode)===27},Sv=function(f){return(f==null?void 0:f.key)==="Tab"||(f==null?void 0:f.keyCode)===9},TM=function(f){return Sv(f)&&!f.shiftKey},xM=function(f){return Sv(f)&&f.shiftKey},xx=function(f){return setTimeout(f,0)},wx=function(f,c){var h=-1;return f.every(function(E,T){return c(E)?(h=T,!1):!0}),h},hv=function(f){for(var c=arguments.length,h=new Array(c>1?c-1:0),E=1;E<c;E++)h[E-1]=arguments[E];return typeof f=="function"?f.apply(void 0,h):f},_y=function(f){return f.target.shadowRoot&&typeof f.composedPath=="function"?f.composedPath()[0]:f.target},wM=[],RM=function(f,c){var h=(c==null?void 0:c.document)||document,E=(c==null?void 0:c.trapStack)||wM,T=Cx({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:TM,isKeyBackward:xM},c),g={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},D,L=function(K,W,ie){return K&&K[W]!==void 0?K[W]:T[ie||W]},x=function(K,W){var ie=typeof(W==null?void 0:W.composedPath)=="function"?W.composedPath():void 0;return g.containerGroups.findIndex(function(Be){var _e=Be.container,Ye=Be.tabbableNodes;return _e.contains(K)||(ie==null?void 0:ie.includes(_e))||Ye.find(function(ee){return ee===K})})},N=function(K){var W=T[K];if(typeof W=="function"){for(var ie=arguments.length,Be=new Array(ie>1?ie-1:0),_e=1;_e<ie;_e++)Be[_e-1]=arguments[_e];W=W.apply(void 0,Be)}if(W===!0&&(W=void 0),!W){if(W===void 0||W===!1)return W;throw new Error("`".concat(K,"` was specified but was not a node, or did not return a node"))}var Ye=W;if(typeof W=="string"&&(Ye=h.querySelector(W),!Ye))throw new Error("`".concat(K,"` as selector refers to no known node"));return Ye},k=function(){var K=N("initialFocus");if(K===!1)return!1;if(K===void 0||!VE(K,T.tabbableOptions))if(x(h.activeElement)>=0)K=h.activeElement;else{var W=g.tabbableGroups[0],ie=W&&W.firstTabbableNode;K=ie||N("fallbackFocus")}if(!K)throw new Error("Your focus-trap needs to have at least one focusable element");return K},z=function(){if(g.containerGroups=g.containers.map(function(K){var W=hM(K,T.tabbableOptions),ie=mM(K,T.tabbableOptions),Be=W.length>0?W[0]:void 0,_e=W.length>0?W[W.length-1]:void 0,Ye=ie.find(function(oe){return Ff(oe)}),ee=ie.slice().reverse().find(function(oe){return Ff(oe)}),ge=!!W.find(function(oe){return _s(oe)>0});return{container:K,tabbableNodes:W,focusableNodes:ie,posTabIndexesFound:ge,firstTabbableNode:Be,lastTabbableNode:_e,firstDomTabbableNode:Ye,lastDomTabbableNode:ee,nextTabbableNode:function(Je){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Pt=W.indexOf(Je);return Pt<0?lt?ie.slice(ie.indexOf(Je)+1).find(function(ln){return Ff(ln)}):ie.slice(0,ie.indexOf(Je)).reverse().find(function(ln){return Ff(ln)}):W[Pt+(lt?1:-1)]}}}),g.tabbableGroups=g.containerGroups.filter(function(K){return K.tabbableNodes.length>0}),g.tabbableGroups.length<=0&&!N("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(g.containerGroups.find(function(K){return K.posTabIndexesFound})&&g.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},F=function re(K){var W=K.activeElement;if(W)return W.shadowRoot&&W.shadowRoot.activeElement!==null?re(W.shadowRoot):W},B=function re(K){if(K!==!1&&K!==F(document)){if(!K||!K.focus){re(k());return}K.focus({preventScroll:!!T.preventScroll}),g.mostRecentlyFocusedNode=K,bM(K)&&K.select()}},Y=function(K){var W=N("setReturnFocus",K);return W||(W===!1?!1:K)},se=function(K){var W=K.target,ie=K.event,Be=K.isBackward,_e=Be===void 0?!1:Be;W=W||_y(ie),z();var Ye=null;if(g.tabbableGroups.length>0){var ee=x(W,ie),ge=ee>=0?g.containerGroups[ee]:void 0;if(ee<0)_e?Ye=g.tabbableGroups[g.tabbableGroups.length-1].lastTabbableNode:Ye=g.tabbableGroups[0].firstTabbableNode;else if(_e){var oe=wx(g.tabbableGroups,function(un){var Mr=un.firstTabbableNode;return W===Mr});if(oe<0&&(ge.container===W||VE(W,T.tabbableOptions)&&!Ff(W,T.tabbableOptions)&&!ge.nextTabbableNode(W,!1))&&(oe=ee),oe>=0){var Je=oe===0?g.tabbableGroups.length-1:oe-1,lt=g.tabbableGroups[Je];Ye=_s(W)>=0?lt.lastTabbableNode:lt.lastDomTabbableNode}else Sv(ie)||(Ye=ge.nextTabbableNode(W,!1))}else{var Pt=wx(g.tabbableGroups,function(un){var Mr=un.lastTabbableNode;return W===Mr});if(Pt<0&&(ge.container===W||VE(W,T.tabbableOptions)&&!Ff(W,T.tabbableOptions)&&!ge.nextTabbableNode(W))&&(Pt=ee),Pt>=0){var ln=Pt===g.tabbableGroups.length-1?0:Pt+1,la=g.tabbableGroups[ln];Ye=_s(W)>=0?la.firstTabbableNode:la.firstDomTabbableNode}else Sv(ie)||(Ye=ge.nextTabbableNode(W))}}else Ye=N("fallbackFocus");return Ye},we=function(K){var W=_y(K);if(!(x(W,K)>=0)){if(hv(T.clickOutsideDeactivates,K)){D.deactivate({returnFocus:T.returnFocusOnDeactivate});return}hv(T.allowOutsideClick,K)||K.preventDefault()}},yt=function(K){var W=_y(K),ie=x(W,K)>=0;if(ie||W instanceof Document)ie&&(g.mostRecentlyFocusedNode=W);else{K.stopImmediatePropagation();var Be,_e=!0;if(g.mostRecentlyFocusedNode)if(_s(g.mostRecentlyFocusedNode)>0){var Ye=x(g.mostRecentlyFocusedNode),ee=g.containerGroups[Ye].tabbableNodes;if(ee.length>0){var ge=ee.findIndex(function(oe){return oe===g.mostRecentlyFocusedNode});ge>=0&&(T.isKeyForward(g.recentNavEvent)?ge+1<ee.length&&(Be=ee[ge+1],_e=!1):ge-1>=0&&(Be=ee[ge-1],_e=!1))}}else g.containerGroups.some(function(oe){return oe.tabbableNodes.some(function(Je){return _s(Je)>0})})||(_e=!1);else _e=!1;_e&&(Be=se({target:g.mostRecentlyFocusedNode,isBackward:T.isKeyBackward(g.recentNavEvent)})),B(Be||g.mostRecentlyFocusedNode||k())}g.recentNavEvent=void 0},Ke=function(K){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;g.recentNavEvent=K;var ie=se({event:K,isBackward:W});ie&&(Sv(K)&&K.preventDefault(),B(ie))},dt=function(K){if(CM(K)&&hv(T.escapeDeactivates,K)!==!1){K.preventDefault(),D.deactivate();return}(T.isKeyForward(K)||T.isKeyBackward(K))&&Ke(K,T.isKeyBackward(K))},Xe=function(K){var W=_y(K);x(W,K)>=0||hv(T.clickOutsideDeactivates,K)||hv(T.allowOutsideClick,K)||(K.preventDefault(),K.stopImmediatePropagation())},Ct=function(){if(g.active)return Tx.activateTrap(E,D),g.delayInitialFocusTimer=T.delayInitialFocus?xx(function(){B(k())}):B(k()),h.addEventListener("focusin",yt,!0),h.addEventListener("mousedown",we,{capture:!0,passive:!1}),h.addEventListener("touchstart",we,{capture:!0,passive:!1}),h.addEventListener("click",Xe,{capture:!0,passive:!1}),h.addEventListener("keydown",dt,{capture:!0,passive:!1}),D},je=function(){if(g.active)return h.removeEventListener("focusin",yt,!0),h.removeEventListener("mousedown",we,!0),h.removeEventListener("touchstart",we,!0),h.removeEventListener("click",Xe,!0),h.removeEventListener("keydown",dt,!0),D},on=function(K){var W=K.some(function(ie){var Be=Array.from(ie.removedNodes);return Be.some(function(_e){return _e===g.mostRecentlyFocusedNode})});W&&B(k())},Pe=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(on):void 0,Te=function(){Pe&&(Pe.disconnect(),g.active&&!g.paused&&g.containers.map(function(K){Pe.observe(K,{subtree:!0,childList:!0})}))};return D={get active(){return g.active},get paused(){return g.paused},activate:function(K){if(g.active)return this;var W=L(K,"onActivate"),ie=L(K,"onPostActivate"),Be=L(K,"checkCanFocusTrap");Be||z(),g.active=!0,g.paused=!1,g.nodeFocusedBeforeActivation=h.activeElement,W==null||W();var _e=function(){Be&&z(),Ct(),Te(),ie==null||ie()};return Be?(Be(g.containers.concat()).then(_e,_e),this):(_e(),this)},deactivate:function(K){if(!g.active)return this;var W=Cx({onDeactivate:T.onDeactivate,onPostDeactivate:T.onPostDeactivate,checkCanReturnFocus:T.checkCanReturnFocus},K);clearTimeout(g.delayInitialFocusTimer),g.delayInitialFocusTimer=void 0,je(),g.active=!1,g.paused=!1,Te(),Tx.deactivateTrap(E,D);var ie=L(W,"onDeactivate"),Be=L(W,"onPostDeactivate"),_e=L(W,"checkCanReturnFocus"),Ye=L(W,"returnFocus","returnFocusOnDeactivate");ie==null||ie();var ee=function(){xx(function(){Ye&&B(Y(g.nodeFocusedBeforeActivation)),Be==null||Be()})};return Ye&&_e?(_e(Y(g.nodeFocusedBeforeActivation)).then(ee,ee),this):(ee(),this)},pause:function(K){if(g.paused||!g.active)return this;var W=L(K,"onPause"),ie=L(K,"onPostPause");return g.paused=!0,W==null||W(),je(),Te(),ie==null||ie(),this},unpause:function(K){if(!g.paused||!g.active)return this;var W=L(K,"onUnpause"),ie=L(K,"onPostUnpause");return g.paused=!1,W==null||W(),z(),Ct(),Te(),ie==null||ie(),this},updateContainerElements:function(K){var W=[].concat(K).filter(Boolean);return g.containers=W.map(function(ie){return typeof ie=="string"?h.querySelector(ie):ie}),g.active&&z(),Te(),this}},D.updateContainerElements(f),D},Aw=ul("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Os=Aw.build(),_t=If({getPositionerId:l=>{var f;return((f=l.ids)==null?void 0:f.positioner)??`dialog:${l.id}:positioner`},getBackdropId:l=>{var f;return((f=l.ids)==null?void 0:f.backdrop)??`dialog:${l.id}:backdrop`},getContentId:l=>{var f;return((f=l.ids)==null?void 0:f.content)??`dialog:${l.id}:content`},getTriggerId:l=>{var f;return((f=l.ids)==null?void 0:f.trigger)??`dialog:${l.id}:trigger`},getTitleId:l=>{var f;return((f=l.ids)==null?void 0:f.title)??`dialog:${l.id}:title`},getDescriptionId:l=>{var f;return((f=l.ids)==null?void 0:f.description)??`dialog:${l.id}:description`},getCloseTriggerId:l=>{var f;return((f=l.ids)==null?void 0:f.closeTrigger)??`dialog:${l.id}:close`},getContentEl:l=>_t.getById(l,_t.getContentId(l)),getTriggerEl:l=>_t.getById(l,_t.getTriggerId(l)),getTitleEl:l=>_t.getById(l,_t.getTitleId(l)),getDescriptionEl:l=>_t.getById(l,_t.getDescriptionId(l))});function kM(l,f,c){const h=l.context["aria-label"],E=l.matches("open"),T=l.context.renderedElements;return{isOpen:E,open(){f("OPEN")},close(){f("CLOSE")},triggerProps:c.button({...Os.trigger.attrs,dir:l.context.dir,id:_t.getTriggerId(l.context),"aria-haspopup":"dialog",type:"button","aria-expanded":E,"data-state":E?"open":"closed","aria-controls":_t.getContentId(l.context),onClick(){f("TOGGLE")}}),backdropProps:c.element({...Os.backdrop.attrs,dir:l.context.dir,hidden:!E,id:_t.getBackdropId(l.context),"data-state":E?"open":"closed"}),positionerProps:c.element({...Os.positioner.attrs,dir:l.context.dir,id:_t.getPositionerId(l.context),style:{pointerEvents:E?void 0:"none"}}),contentProps:c.element({...Os.content.attrs,dir:l.context.dir,role:l.context.role,hidden:!E,id:_t.getContentId(l.context),tabIndex:-1,"data-state":E?"open":"closed","aria-modal":!0,"aria-label":h||void 0,"aria-labelledby":h||!T.title?void 0:_t.getTitleId(l.context),"aria-describedby":T.description?_t.getDescriptionId(l.context):void 0}),titleProps:c.element({...Os.title.attrs,dir:l.context.dir,id:_t.getTitleId(l.context)}),descriptionProps:c.element({...Os.description.attrs,dir:l.context.dir,id:_t.getDescriptionId(l.context)}),closeTriggerProps:c.button({...Os.closeTrigger.attrs,dir:l.context.dir,id:_t.getCloseTriggerId(l.context),type:"button",onClick(g){g.stopPropagation(),f("CLOSE")}})}}function DM(l){const f=zs(l);return Fs({id:"dialog",initial:f.open?"open":"closed",context:{role:"dialog",renderedElements:{title:!0,description:!0},modal:!0,trapFocus:!0,preventScroll:!0,closeOnInteractOutside:!0,closeOnEscapeKeyDown:!0,restoreFocus:!0,...f},watch:{open:["toggleVisibility"]},states:{open:{entry:["checkRenderedElements"],activities:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["restoreFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","restoreFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","restoreFocus"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}}},{guards:{isOpenControlled:c=>!!c["open.controlled"]},activities:{trackDismissableElement(c,h,{send:E}){return qA(()=>_t.getContentEl(c),{defer:!0,pointerBlocking:c.modal,exclude:[_t.getTriggerEl(c)],onEscapeKeyDown(g){var D;c.closeOnEscapeKeyDown?E({type:"CLOSE",src:"escape-key"}):g.preventDefault(),(D=c.onEscapeKeyDown)==null||D.call(c,g)},onPointerDownOutside(g){var D;c.closeOnInteractOutside||g.preventDefault(),(D=c.onPointerDownOutside)==null||D.call(c,g)},onFocusOutside(g){var D;c.closeOnInteractOutside||g.preventDefault(),(D=c.onFocusOutside)==null||D.call(c,g)},onDismiss(){E({type:"CLOSE",src:"interact-outside"})}})},preventScroll(c){if(c.preventScroll)return eM(_t.getDoc(c))},trapFocus(c){if(!c.trapFocus||!c.modal)return;let h;return BE(()=>{const E=_t.getContentEl(c);if(E){h=RM(E,{document:_t.getDoc(c),escapeDeactivates:!1,preventScroll:!0,returnFocusOnDeactivate:!1,fallbackFocus:E,allowOutsideClick:!0,initialFocus:KT(c.initialFocusEl)});try{h.activate()}catch{}}}),()=>h==null?void 0:h.deactivate()},hideContentBelow(c){return c.modal?UA(()=>[_t.getContentEl(c)],{defer:!0}):void 0}},actions:{checkRenderedElements(c){Wa(()=>{c.renderedElements.title=!!_t.getTitleEl(c),c.renderedElements.description=!!_t.getDescriptionEl(c)})},invokeOnClose(c){var h;(h=c.onOpenChange)==null||h.call(c,{open:!1})},invokeOnOpen(c){var h;(h=c.onOpenChange)==null||h.call(c,{open:!0})},toggleVisibility(c,h,{send:E}){E({type:c.open?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:h})},restoreFocus(c){c.restoreFocus&&Wa(()=>{const h=KT(c.finalFocusEl)??_t.getTriggerEl(c);h==null||h.focus({preventScroll:!0})})}}})}vo()(["aria-label","closeOnEscapeKeyDown","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","open.controlled","open","preventScroll","restoreFocus","role","trapFocus"]);const OM=(l={})=>{const f={id:pe.useId(),getRootNode:jf(),...l,open:l.defaultOpen??l.open,"open.controlled":l.open!==void 0},c={...f,open:l.open,onOpenChange:Ri(l.onOpenChange,{sync:!0}),onEscapeKeyDown:Ri(l.onEscapeKeyDown),onInteractOutside:Ri(l.onInteractOutside)},[h,E]=Ps(DM(f),{context:c});return kM(h,E,Hf)},NM=l=>{const[f,{children:c,...h}]=FA(l),[E]=rb(f),T=OM(h),g=ob(At({present:T.isOpen},f)),D=Ky(c,T);return fe.jsx(zA,{value:T,children:fe.jsx(tb,{value:E,children:fe.jsx(Cw,{value:g,children:D})})})},Mw=pe.forwardRef((l,f)=>{const c=Vf(),h=At(c.titleProps,l);return fe.jsx(Mt.h2,{...h,ref:f})});Mw.displayName="DialogTitle";const zw=pe.forwardRef((l,f)=>{const c=Vf(),h=lb(),E=At({...c.triggerProps,"aria-controls":h.isUnmounted?void 0:c.triggerProps["aria-controls"]},l);return fe.jsx(Mt.button,{...E,ref:f})});zw.displayName="DialogTrigger";const{withProvider:LM,withContext:cl}=ib(Er.drawer),_M=LM(NM,void 0,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),AM=cl(bt.styled(Mt.main),"body"),MM=cl(bt.styled(bw),"closeTrigger"),zM=cl(bt.styled(Mt.footer),"footer"),FM=cl(bt.styled(Mt.header),"header"),PM=cl(bt.styled(Mw),"title"),UM=cl(bt.styled(zw),"trigger"),IM=cl(bt.styled(Tw),"positioner"),HM=cl(bt.styled(Ew),"backdrop"),Fw=pe.forwardRef(({children:l,...f},c)=>fe.jsxs(IL.Portal,{children:[fe.jsx(HM,{}),fe.jsx(IM,{children:fe.jsx(ub,{ref:c,...f,children:l})})]}));Fw.displayName=ub.displayName;const jM=cl(bt.styled(Fw),"content"),VM=bt.styled("div",Er.formControl,{defaultProps:{role:"group"}}),BM=({isInvalid:l,isRequired:f,...c})=>{const h={...l?{"aria-invalid":!0}:{},...f?{"aria-required":!0}:{}};return fe.jsx(VM,{...h,...c})},$M=bt.styled("label",Er.formLabel),YM=l=>{const[f,c]=Er.formLabel.splitVariantProps(l),[h,E]=bt.splitCssProps(c),{children:T,className:g,addon:D,...L}=E,x=Er.formLabel(f);return fe.jsxs($M,{className:Uf.cx(x.root,Uf.css(h),g),...L,children:[T,D?fe.jsx(bt.styled.span,{className:x.addon,children:D}):null]})},WM=bt.styled("p",Er.formHelperText,{dataAttr:!0}),GM=l=>{const{as:f="h2",...c}=l,h=pe.useMemo(()=>bt.styled(f,Er.heading),[f]);return fe.jsx(h,{size:f,...c})},[QM,cb]=po({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),Pw=pe.forwardRef((l,f)=>{const c=cb(),h=At(c.controlProps,l);return fe.jsxs(fe.Fragment,{children:[fe.jsx(Mt.span,{...h,ref:f}),fe.jsx("input",{...c.hiddenInputProps})]})});Pw.displayName="SwitchControl";const Uw=pe.forwardRef((l,f)=>{const c=cb(),h=At(c.labelProps,l);return fe.jsx(Mt.span,{...h,ref:f})});Uw.displayName="SwitchLabel";var Iw=ul("switch").parts("root","label","control","thumb"),Ay=Iw.build(),wa=If({getRootId:l=>{var f;return((f=l.ids)==null?void 0:f.root)??`switch:${l.id}`},getLabelId:l=>{var f;return((f=l.ids)==null?void 0:f.label)??`switch:${l.id}:label`},getThumbId:l=>{var f;return((f=l.ids)==null?void 0:f.thumb)??`switch:${l.id}:thumb`},getControlId:l=>{var f;return((f=l.ids)==null?void 0:f.control)??`switch:${l.id}:control`},getHiddenInputId:l=>{var f;return((f=l.ids)==null?void 0:f.input)??`switch:${l.id}:input`},getHiddenInputEl:l=>wa.getById(l,wa.getHiddenInputId(l))});function KM(l,f,c){const h=l.context.isDisabled,E=!h&&l.context.focused,T=l.context.checked,g={"data-active":Vt(l.context.active),"data-focus":Vt(E),"data-hover":Vt(l.context.hovered),"data-disabled":Vt(h),"data-state":l.context.checked?"checked":"unchecked","data-invalid":Vt(l.context.invalid)};return{isChecked:T,isDisabled:h,isFocused:E,setChecked(D){f({type:"CHECKED.SET",checked:D,isTrusted:!1})},toggleChecked(){f({type:"CHECKED.TOGGLE",checked:T,isTrusted:!1})},rootProps:c.label({...Ay.root.attrs,...g,dir:l.context.dir,id:wa.getRootId(l.context),htmlFor:wa.getHiddenInputId(l.context),onPointerMove(){h||f({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){h||f({type:"CONTEXT.SET",context:{hovered:!1}})},onPointerDown(D){h||(E&&D.preventDefault(),f({type:"CONTEXT.SET",context:{active:!0}}))},onPointerUp(){h||f({type:"CONTEXT.SET",context:{active:!1}})},onClick(D){D.target===wa.getHiddenInputEl(l.context)&&D.stopPropagation()}}),labelProps:c.element({...Ay.label.attrs,...g,dir:l.context.dir,id:wa.getLabelId(l.context)}),thumbProps:c.element({...Ay.thumb.attrs,...g,dir:l.context.dir,id:wa.getThumbId(l.context),"aria-hidden":!0}),controlProps:c.element({...Ay.control.attrs,...g,dir:l.context.dir,id:wa.getControlId(l.context),"aria-hidden":!0}),hiddenInputProps:c.input({id:wa.getHiddenInputId(l.context),type:"checkbox",required:l.context.required,defaultChecked:T,disabled:h,"aria-labelledby":wa.getLabelId(l.context),"aria-invalid":l.context.invalid,name:l.context.name,form:l.context.form,value:l.context.value,style:pw,onChange(D){const L=D.currentTarget.checked;f({type:"CHECKED.SET",checked:L,isTrusted:!0})},onBlur(){f({type:"CONTEXT.SET",context:{focused:!1}})},onFocus(){f({type:"CONTEXT.SET",context:{focused:!0}})},onKeyDown(D){D.key===" "&&f({type:"CONTEXT.SET",context:{active:!0}})},onKeyUp(D){D.key===" "&&f({type:"CONTEXT.SET",context:{active:!1}})}})}}var{not:Rx}=xv;function XM(l){const f=zs(l);return Fs({id:"switch",initial:"ready",context:{checked:!1,label:"switch",value:"on",disabled:!1,...f,fieldsetDisabled:!1},computed:{isDisabled:c=>c.disabled||c.fieldsetDisabled},watch:{disabled:"removeFocusIfNeeded",checked:"syncInputElement"},activities:["trackFormControlState"],on:{"CHECKED.TOGGLE":[{guard:Rx("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:Rx("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}}},{guards:{isTrusted:(c,h)=>!!h.isTrusted},activities:{trackFormControlState(c,h,{send:E,initialContext:T}){return mw(wa.getHiddenInputEl(c),{onFieldsetDisabledChange(g){c.fieldsetDisabled=g},onFormReset(){E({type:"CHECKED.SET",checked:!!T.checked,src:"form-reset"})}})}},actions:{setContext(c,h){Object.assign(c,h.context)},syncInputElement(c){const h=wa.getHiddenInputEl(c);h&&(h.checked=!!c.checked)},removeFocusIfNeeded(c){c.disabled&&c.focused&&(c.focused=!1)},setChecked(c,h){kx.checked(c,h.checked)},toggleChecked(c,h){kx.checked(c,!c.checked)},dispatchChangeEvent(c){const h=wa.getHiddenInputEl(c);hw(h,{checked:c.checked})}}})}var qM={change:l=>{var f;(f=l.onCheckedChange)==null||f.call(l,{checked:l.checked})}},kx={checked:(l,f)=>{As(l.checked,f)||(l.checked=f,qM.change(l))}};vo()(["checked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","required","value"]);const ZM=l=>{const f={id:pe.useId(),getRootNode:jf(),...l,checked:l.defaultChecked},c={...f,checked:l.checked,onCheckedChange:Ri(l.onCheckedChange,{sync:!0})},[h,E]=Ps(XM(f),{context:c});return KM(h,E,Hf)},Hw=pe.forwardRef((l,f)=>{const[c,{children:h,...E}]=sl()(l,["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","required","value"]),T=ZM(c),g=At(T.rootProps,E),D=Ky(h,T);return fe.jsx(QM,{value:T,children:fe.jsx(Mt.label,{...g,ref:f,children:D})})});Hw.displayName="SwitchRoot";const jw=pe.forwardRef((l,f)=>{const c=cb(),h=At(c.thumbProps,l);return fe.jsx(Mt.span,{...h,ref:f})});jw.displayName="SwitchThumb";const Vw=pe.forwardRef((l,f)=>{const[c,h]=Er.switchRecipe.splitVariantProps(l),[E,T]=bt.splitCssProps(h),{children:g,className:D,...L}=T,x=Er.switchRecipe(c);return fe.jsxs(Hw,{ref:f,className:Uf.cx(x.root,Uf.css(E),D),...L,children:[fe.jsx(Pw,{className:x.control,children:fe.jsx(jw,{className:x.thumb})}),g?fe.jsx(Uw,{className:x.label,children:g}):null]})});Vw.displayName="Switch";const JM=l=>{const{as:f="p",...c}=l,h=pe.useMemo(()=>bt.styled(f,Er.text),[f]);return fe.jsx(h,{...c})},ez=bt.styled(Mt.textarea,Er.textarea);var XE,Ns=new Map,tz=l=>l.getBoundingClientRect();function nz(l,f){const{scope:c="rect",getRect:h=tz,onChange:E}=f,T=rz({scope:c,getRect:h}),g=Ns.get(l);return g?(g.callbacks.push(E),E(h(l))):(Ns.set(l,{rect:{},callbacks:[E]}),Ns.size===1&&(XE=requestAnimationFrame(T))),function(){const L=Ns.get(l);if(!L)return;const x=L.callbacks.indexOf(E);x>-1&&L.callbacks.splice(x,1),L.callbacks.length===0&&(Ns.delete(l),Ns.size===0&&cancelAnimationFrame(XE))}}function rz(l){const{scope:f,getRect:c}=l,h=iz(f);return function E(){const T=[];Ns.forEach((g,D)=>{const L=c(D);h(g.rect,L)||(g.rect=L,T.push(g))}),T.forEach(g=>{g.callbacks.forEach(D=>D(g.rect))}),XE=requestAnimationFrame(E)}}var Bw=(l,f)=>l.width===f.width&&l.height===f.height,$w=(l,f)=>l.top===f.top&&l.left===f.left,az=(l,f)=>Bw(l,f)&&$w(l,f);function iz(l){return l==="size"?Bw:l==="position"?$w:az}var Yw=ul("tabs").parts("root","list","trigger","content","indicator"),mv=Yw.build(),qe=If({getRootId:l=>{var f;return((f=l.ids)==null?void 0:f.root)??`tabs:${l.id}`},getTablistId:l=>{var f;return((f=l.ids)==null?void 0:f.tablist)??`tabs:${l.id}:list`},getContentId:(l,f)=>{var c;return((c=l.ids)==null?void 0:c.content)??`tabs:${l.id}:content-${f}`},getTriggerId:(l,f)=>{var c;return((c=l.ids)==null?void 0:c.trigger)??`tabs:${l.id}:trigger-${f}`},getIndicatorId:l=>{var f;return((f=l.ids)==null?void 0:f.indicator)??`tabs:${l.id}:indicator`},getTablistEl:l=>qe.getById(l,qe.getTablistId(l)),getContentEl:(l,f)=>qe.getById(l,qe.getContentId(l,f)),getTriggerEl:(l,f)=>qe.getById(l,qe.getTriggerId(l,f)),getIndicatorEl:l=>qe.getById(l,qe.getIndicatorId(l)),getElements:l=>{const c=`[role=tab][data-ownedby='${CSS.escape(qe.getTablistId(l))}']:not([disabled])`;return Ux(qe.getTablistEl(l),c)},getFirstEl:l=>Hx(qe.getElements(l)),getLastEl:l=>jx(qe.getElements(l)),getNextEl:(l,f)=>Ax(qe.getElements(l),qe.getTriggerId(l,f),l.loop),getPrevEl:(l,f)=>Mx(qe.getElements(l),qe.getTriggerId(l,f),l.loop),getActiveContentEl:l=>{if(l.value)return qe.getContentEl(l,l.value)},getActiveTabEl:l=>{if(l.value)return qe.getTriggerEl(l,l.value)},getOffsetRect:l=>({left:(l==null?void 0:l.offsetLeft)??0,top:(l==null?void 0:l.offsetTop)??0,width:(l==null?void 0:l.offsetWidth)??0,height:(l==null?void 0:l.offsetHeight)??0}),getRectById:(l,f)=>{const c=Lx(qe.getElements(l),qe.getTriggerId(l,f));return qe.resolveRect(qe.getOffsetRect(c))},resolveRect:l=>({width:`${l.width}px`,height:`${l.height}px`,left:`${l.left}px`,top:`${l.top}px`})});function oz(l,f,c){var g,D,L,x;const h=l.context.translations,E=l.matches("focused");function T(N){return{isSelected:l.context.value===N.value,isFocused:l.context.focusedValue===N.value,isDisabled:!!N.disabled}}return{value:l.context.value,focusedValue:l.context.focusedValue,setValue(N){f({type:"SET_VALUE",value:N})},clearValue(){f({type:"CLEAR_VALUE"})},setIndicatorRect(N){const k=qe.getTriggerId(l.context,N);f({type:"SET_INDICATOR_RECT",id:k})},getTriggerState:T,rootProps:c.element({...mv.root.attrs,id:qe.getRootId(l.context),"data-orientation":l.context.orientation,"data-focus":Vt(E),dir:l.context.dir}),tablistProps:c.element({...mv.list.attrs,id:qe.getTablistId(l.context),role:"tablist",dir:l.context.dir,"data-focus":Vt(E),"aria-orientation":l.context.orientation,"data-orientation":l.context.orientation,"aria-label":h.tablistLabel,onKeyDown(N){if(!WL(N))return;const k={ArrowDown(){f("ARROW_DOWN")},ArrowUp(){f("ARROW_UP")},ArrowLeft(){f("ARROW_LEFT")},ArrowRight(){f("ARROW_RIGHT")},Home(){f("HOME")},End(){f("END")},Enter(){f({type:"ENTER",value:l.context.focusedValue})}};let z=Ix(N,l.context);const F=k[z];F&&(N.preventDefault(),F(N))}}),getTriggerProps(N){const{value:k,disabled:z}=N,F=T(N);return c.button({...mv.trigger.attrs,role:"tab",type:"button",disabled:z,dir:l.context.dir,"data-orientation":l.context.orientation,"data-disabled":Vt(z),"aria-disabled":z,"data-value":k,"aria-selected":F.isSelected,"data-selected":Vt(F.isSelected),"data-focus":Vt(F.isFocused),"aria-controls":qe.getContentId(l.context,k),"data-ownedby":qe.getTablistId(l.context),id:qe.getTriggerId(l.context,k),tabIndex:F.isSelected?0:-1,onFocus(){f({type:"TAB_FOCUS",value:k})},onBlur(B){const Y=B.relatedTarget;(Y==null?void 0:Y.getAttribute("role"))!=="tab"&&f({type:"TAB_BLUR"})},onClick(B){z||(Px()&&B.currentTarget.focus(),f({type:"TAB_CLICK",value:k}))}})},getContentProps(N){const{value:k}=N,z=l.context.value===k;return c.element({...mv.content.attrs,dir:l.context.dir,id:qe.getContentId(l.context,k),tabIndex:0,"aria-labelledby":qe.getTriggerId(l.context,k),role:"tabpanel","data-ownedby":qe.getTablistId(l.context),"data-selected":Vt(z),"data-orientation":l.context.orientation,hidden:!z})},indicatorProps:c.element({id:qe.getIndicatorId(l.context),...mv.indicator.attrs,dir:l.context.dir,"data-orientation":l.context.orientation,style:{"--transition-property":"left, right, top, bottom, width, height","--left":(g=l.context.indicatorRect)==null?void 0:g.left,"--top":(D=l.context.indicatorRect)==null?void 0:D.top,"--width":(L=l.context.indicatorRect)==null?void 0:L.width,"--height":(x=l.context.indicatorRect)==null?void 0:x.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:l.context.canIndicatorTransition?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",[l.context.orientation==="horizontal"?"left":"top"]:l.context.orientation==="horizontal"?"var(--left)":"var(--top)"}})}}var{not:lz}=xv;function uz(l){const f=zs(l);return Fs({initial:"idle",context:{dir:"ltr",orientation:"horizontal",activationMode:"automatic",value:null,focusedValue:null,indicatorRect:{left:"0px",top:"0px",width:"0px",height:"0px"},canIndicatorTransition:!1,isIndicatorRendered:!1,loop:!0,translations:{},...f},computed:{isHorizontal:c=>c.orientation==="horizontal",isVertical:c=>c.orientation==="vertical"},entry:["checkRenderedElements","syncIndicatorRect","setContentTabIndex"],exit:["cleanupObserver"],watch:{value:["enableIndicatorTransition","syncIndicatorRect","setContentTabIndex"],dir:["syncIndicatorRect"],orientation:["syncIndicatorRect"]},on:{SET_VALUE:{actions:"setValue"},CLEAR_VALUE:{actions:"clearValue"},SET_INDICATOR_RECT:{actions:"setIndicatorRect"}},states:{idle:{on:{TAB_FOCUS:[{guard:"selectOnFocus",target:"focused",actions:["setFocusedValue","setValue"]},{target:"focused",actions:"setFocusedValue"}],TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]}}},focused:{on:{TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]},ARROW_LEFT:{guard:"isHorizontal",actions:"focusPrevTab"},ARROW_RIGHT:{guard:"isHorizontal",actions:"focusNextTab"},ARROW_UP:{guard:"isVertical",actions:"focusPrevTab"},ARROW_DOWN:{guard:"isVertical",actions:"focusNextTab"},HOME:{actions:"focusFirstTab"},END:{actions:"focusLastTab"},ENTER:{guard:lz("selectOnFocus"),actions:"setValue"},TAB_FOCUS:[{guard:"selectOnFocus",actions:["setFocusedValue","setValue"]},{actions:"setFocusedValue"}],TAB_BLUR:{target:"idle",actions:"clearFocusedValue"}}}}},{guards:{isVertical:c=>c.isVertical,isHorizontal:c=>c.isHorizontal,selectOnFocus:c=>c.activationMode==="automatic"},actions:{setFocusedValue(c,h){My.focusedValue(c,h.value)},clearFocusedValue(c){My.focusedValue(c,null)},setValue(c,h){My.value(c,h.value)},clearValue(c){My.value(c,null)},focusFirstTab(c){Wa(()=>{var h;return(h=qe.getFirstEl(c))==null?void 0:h.focus()})},focusLastTab(c){Wa(()=>{var h;return(h=qe.getLastEl(c))==null?void 0:h.focus()})},focusNextTab(c){if(!c.focusedValue)return;const h=qe.getNextEl(c,c.focusedValue);Wa(()=>h==null?void 0:h.focus())},focusPrevTab(c){if(!c.focusedValue)return;const h=qe.getPrevEl(c,c.focusedValue);Wa(()=>h==null?void 0:h.focus())},checkRenderedElements(c){c.isIndicatorRendered=!!qe.getIndicatorEl(c)},setContentTabIndex(c){Wa(()=>{const h=qe.getActiveContentEl(c);if(!h)return;ww(h).length>0?h.removeAttribute("tabindex"):h.setAttribute("tabindex","0")})},cleanupObserver(c){var h;(h=c.indicatorCleanup)==null||h.call(c)},enableIndicatorTransition(c){c.canIndicatorTransition=!0},setIndicatorRect(c,h){const E=h.id??c.value;!c.isIndicatorRendered||!E||!qe.getTriggerEl(c,E)||(c.indicatorRect=qe.getRectById(c,E),BE(()=>{c.canIndicatorTransition=!1}))},syncIndicatorRect(c){var T;(T=c.indicatorCleanup)==null||T.call(c);const h=c.value;if(!c.isIndicatorRendered||!h)return;const E=qe.getActiveTabEl(c);E&&(c.indicatorCleanup=nz(E,{getRect(g){return qe.getOffsetRect(g)},onChange(g){c.indicatorRect=qe.resolveRect(g),BE(()=>{c.canIndicatorTransition=!1})}}))}}})}var Dx={change:l=>{var f;l.value!=null&&((f=l.onValueChange)==null||f.call(l,{value:l.value}))},focusChange:l=>{var f;l.focusedValue!=null&&((f=l.onFocusChange)==null||f.call(l,{focusedValue:l.focusedValue}))}},My={value:(l,f)=>{As(f,l.value)||(l.value=f,Dx.change(l))},focusedValue:(l,f)=>{As(f,l.focusedValue)||(l.focusedValue=f,Dx.focusChange(l))}};vo()(["activationMode","dir","getRootNode","id","ids","loop","onFocusChange","onValueChange","orientation","translations","value"]);vo()(["disabled","value"]);vo()(["value"]);const[sz,qy]=po({name:"TabsContext",hookName:"useTabsContext",providerName:"<TabsProvider />"}),Ww=pe.forwardRef((l,f)=>{const[c,h]=sl()(l,["value"]),E=qy(),T=nb(),g=ob({...T,present:E.value===l.value}),D=At(E.getContentProps(c),g.getPresenceProps(f),h);return fe.jsx(Cw,{value:g,children:g.isUnmounted?null:fe.jsx(Mt.div,{...D})})});Ww.displayName="TabContent";const Gw=pe.forwardRef((l,f)=>{const c=qy(),h=At(c.indicatorProps,l);return fe.jsx(Mt.div,{...h,ref:f})});Gw.displayName="TabIndicator";const fb=pe.forwardRef((l,f)=>{const c=qy(),h=At(c.tablistProps,l);return fe.jsx(Mt.div,{...h,ref:f})});fb.displayName="TabList";const Qw=pe.forwardRef((l,f)=>{const[c,h]=sl()(l,["disabled","value"]),E=qy(),T=At(E.getTriggerProps(c),h);return fe.jsx(Mt.button,{...T,ref:f})});Qw.displayName="TabTrigger";const cz=l=>{const f={id:pe.useId(),getRootNode:jf(),...l,value:l.defaultValue},c={...f,value:l.value,onValueChange:Ri(l.onValueChange,{sync:!0}),onFocusChange:Ri(l.onFocusChange)},[h,E]=Ps(uz(f),{context:c});return oz(h,E,Hf)},Kw=pe.forwardRef((l,f)=>{const[c,h]=rb(l),[E,T]=sl()(h,["activationMode","defaultValue","dir","getRootNode","id","ids","loop","onFocusChange","onValueChange","orientation","translations","value"]),g=cz(E),D=At(g.rootProps,T);return fe.jsx(sz,{value:g,children:fe.jsx(tb,{value:c,children:fe.jsx(Mt.div,{...D,ref:f})})})});Kw.displayName="TabsRoot";const{withProvider:fz,withContext:Zy}=ib(Er.tabs),dz=fz(bt.styled(Kw),"root",{defaultProps:{lazyMount:!0}}),pz=Zy(bt.styled(Ww),"content"),vz=Zy(bt.styled(Qw),"trigger"),hz=Zy(bt.styled(Gw),"indicator"),Xw=pe.forwardRef(({children:l,...f},c)=>fe.jsxs(fb,{ref:c,...f,children:[l,fe.jsx(hz,{})]}));Xw.displayName=fb.displayName;const mz=Zy(bt.styled(Xw),"list"),yz={xl:"1536px",lg:"1200px",md:"900px",sm:"600px"},gz={extend:{checked:"&:where(:checked, [data-checked], [aria-checked=true], [data-state=checked])",closed:"&:where([data-state=closed])",collapsed:'&:where([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',current:"&:is([data-current])",focus:"&:where(:focus, [data-focus], [data-focused])",groupHover:"[role=group]:where(:hover, [data-hover]) &",hidden:"&:where([hidden])",highlighted:"&:where([data-highlighted])",hover:"&:where(:hover, [data-hover], [data-hovered])",indeterminate:"&:where(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",invalid:"&:where(:invalid, [data-invalid], [aria-invalid=true])",open:"&:where([open], [data-state=open])",placeholderShown:"&:where(:placeholder-shown, [data-placeholder-shown])",today:"&:where([data-today])",underValue:'&:where([data-state="under-value"])'}},Sz={"2xl":"672px","3xl":"768px","4xl":"896px","5xl":"1024px","6xl":"1152px","7xl":"1280px","8xl":"1440px",lg:"512px",md:"448px",sm:"384px",xl:"576px",xs:"320px"},Ez=ft.defineKeyframes({blob:{"0%":{rotate:"0deg"},"100%":{rotate:"359deg"}},bounce:{"0%, 100%":{animationTimingFunction:"cubic-bezier(0.8,0,1,1)",transform:"translateY(-25%)"},"50%":{animationTimingFunction:"cubic-bezier(0,0,0.2,1)",transform:"none"}},"fade-in":{from:{opacity:"0"},to:{opacity:"1"}},"fade-out":{from:{opacity:"1"},to:{opacity:"0"}},fadeIn:{"0%":{opacity:"0",transform:"translateY(-4px)"},"100%":{opacity:"1",transform:"translateY(0)"}},fadeInFromRight:{"0%":{opacity:"0",transform:"translateX(100%)"},"100%":{opacity:"1",transform:"translateX(0)"}},fadeInSkew:{"0%":{opacity:"0",transform:"translateY(-4px) rotateX(-1deg) scale(0.95)",transformStyle:"preserve-3d"},"100%":{opacity:"1",transform:"translateY(0) rotateX(0) scale(1)",transformStyle:"preserve-3d"}},fadeOut:{"0%":{opacity:"1",transform:"translateY(0)"},"100%":{opacity:"0",transform:"translateY(-4px)"}},fadeOutFromRight:{"0%":{opacity:"1",transform:"translateX(0)"},"100%":{opacity:"0",transform:"translateX(100%)"}},fadeOutSkew:{"0%":{opacity:"1",transform:"translateY(0) rotateX(0) scale(1)",transformStyle:"preserve-3d"},"100%":{opacity:"0",transform:"translateY(-4px) rotateX(-1deg) scale(0.95)",transformStyle:"preserve-3d"}},ping:{"75%, 100%":{opacity:"0",transform:"scale(2)"}},pulse:{"50%":{opacity:".5"}},"skeleton-pulse":{"50%":{opacity:"0.5"}},"slide-in":{"0%":{opacity:"0",transform:"translateY(64px)"},"100%":{opacity:"1",transform:"translateY(0)"}},"slide-in-left":{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0%)"}},"slide-in-modal":{"0%":{opacity:"0",transform:"translateY(64px) scale(0.9)"},"100%":{opacity:"1",transform:"translateY(0) scale(1)"}},"slide-in-right":{"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0%)"}},"slide-out":{"0%":{opacity:"1",transform:"translateY(0)"},"100%":{opacity:"0",transform:"translateY(64px)"}},"slide-out-left":{"0%":{transform:"translateX(0%)"},"100%":{transform:"translateX(-100%)"}},"slide-out-modal":{"0%":{opacity:"1",transform:"translateY(0) scale(1)"},"100%":{opacity:"0",transform:"translateY(64px) scale(0.9)"}},"slide-out-right":{"0%":{transform:"translateX(0%)"},"100%":{transform:"translateX(100%)"}},slideInFromBottom:{"0%":{opacity:"0",transform:"translateY(4px)"},"100%":{opacity:"1",transform:"translateY(0)"}},slideOutToBottom:{"0%":{opacity:"1",transform:"translateY(0)"},"100%":{opacity:"0",transform:"translateY(4px)"}},"collapse-in":{"0%":{height:"0px"},"100%":{height:"var(--height)"}},"collapse-out":{"0%":{height:"var(--height)"},"100%":{height:"0px"}},spin:{to:{transform:"rotate(360deg)"}}}),bz=ft.defineRecipe({base:{_focusVisible:{ring:"2px solid {colors.primary.200}",ringOffset:"space-2"},alignItems:"center",cursor:{_disabled:"not-allowed",base:"pointer"},opacity:{_disabled:.32},display:"flex",flexDirection:"row",gap:"space-4",justifyContent:"center",transition:"color, background-color, border-color, opacity",transitionDuration:"fast",fontWeight:"bold",fontFamily:"satoshi"},className:"button",defaultVariants:{size:"lg",variant:"primary",severity:"none"},description:"The styles for the Button component",jsx:["Button"],variants:{size:{lg:{borderRadius:"radius-60",px:"space-20",py:"space-8",textStyle:"body.lg"},md:{borderRadius:"radius-60",px:"space-16",py:"space-6",textStyle:"body.md"},sm:{borderRadius:"radius-60",px:"space-12",py:"space-4",textStyle:"body.sm"}},variant:{primary:{bg:{_disabled:{_hover:"primary.500",_active:"primary.500",base:"primary.500"},_active:"primary.800",_hover:"primary.600",base:"primary.500"},color:"white"},secondary:{bg:{_disabled:{_hover:"transparent",_active:"transparent",base:"transparent"},_active:"primary.600",_hover:"primary.500",base:"transparent"},boxShadow:"inset 0 0 0 1px {colors.primary.500}",color:{_disabled:{_hover:"primary.500",_active:"primary.500",base:"primary.500"},base:"primary.500",_hover:"white",_active:"white"}},tertiary:{bg:{_disabled:{_hover:"transparent",_active:"transparent",base:"transparent"},_active:"primary.200",_hover:"primary.100",base:"transparent"},color:{_disabled:{_hover:"primary.500",_active:"primary.500",base:"primary.500"},base:"primary.500",_hover:"primary.600",_active:"primary.600"}}},severity:{none:{},danger:{}}},compoundVariants:[{variant:"primary",severity:"danger",css:{bg:{_disabled:{_hover:"error.500",_active:"error.500",base:"error.500"},_active:"error.800",_hover:"error.700",base:"error.500"}}},{variant:"secondary",severity:"danger",css:{bg:{_disabled:{_hover:"transparent",_active:"transparent",base:"transparent"},_active:"error.700",_hover:"error.500",base:"transparent"},boxShadow:{base:"inset 0 0 0 1px {colors.error.500}",_active:"inset 0 0 0 1px {colors.error.700}"},color:{_disabled:{_hover:"error.500",_active:"error.500",base:"error.500"},base:"error.500",_hover:"white",_active:"white"}}},{variant:"tertiary",severity:"danger",css:{bg:{_disabled:{_hover:"transparent",_active:"transparent",base:"transparent"},_active:"error.200",_hover:"error.100",base:"transparent"},color:{_disabled:{_hover:"error.500",_active:"error.500",base:"error.500"},base:"error.500",_hover:"error.700",_active:"error.700"}}}]}),Cz=ft.defineRecipe({className:"heading",defaultVariants:{size:"h2"},jsx:["Heading"],base:{fontFamily:"cabinet",color:"text.heading"},variants:{italic:{true:{fontStyle:"italic"}},underline:{true:{textDecoration:"underline"}},size:{h1:{textStyle:"heading.h1"},h2:{textStyle:"heading.h2"},h3:{textStyle:"heading.h3"},h4:{textStyle:"heading.h4"},h5:{textStyle:"heading.h5"},h6:{textStyle:"heading.h6"}}}}),Tz=ft.defineSlotRecipe({base:{control:{_focus:{ring:"1px solid {colors.secondary.300}"},alignItems:"center",background:{_checked:{base:"primary.500",_disabled:"grey.200"},base:"grey.100",_hover:{base:"grey.200",_checked:"primary.700"}},borderRadius:"full",cursor:"pointer",display:"inline-flex",flexShrink:"0",transitionDuration:"normal",transitionProperty:"background",transitionTimingFunction:"default"},label:{fontFamily:"satoshi",color:"text",_disabled:{color:"text.disabled",userSelect:"none"}},root:{WebkitTapHighlightColor:"transparent",_disabled:{pointerEvents:"none"},alignItems:"center",cursor:"pointer",display:"flex",position:"relative"},thumb:{background:"white",borderRadius:"full",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_checked:{transform:"translateX(16px)"}}},className:"switch",defaultVariants:{size:"md"},jsx:["Switch","SwitchField"],slots:Iw.keys(),variants:{size:{md:{control:{height:"size-16",p:"space-2",width:"size-32"},label:{textStyle:"body.md"},root:{gap:"space-4"},thumb:{height:"size-12",width:"size-12"}}}}}),xz=ft.defineRecipe({className:"text",defaultVariants:{size:"md"},jsx:["Text","AppLink"],staticCss:["*"],base:{fontFamily:"satoshi",color:"text"},variants:{bold:{true:{fontWeight:"bold"}},italic:{true:{fontStyle:"italic"}},underline:{true:{textDecoration:"underline"}},size:{lg:{textStyle:"body.lg"},md:{textStyle:"body.md"},sm:{textStyle:"body.sm"}}}}),wz=ft.defineRecipe({className:"textarea",jsx:["Textarea"],base:{px:"space-16",py:"space-8",textStyle:"body.md",fontFamily:"satoshi",color:"text",appearance:"none",background:"none",border:"1px solid {colors.grey.100}",borderRadius:"radius-8",minWidth:0,outline:0,position:"relative",transitionDuration:"normal",transitionProperty:"border-color, box-shadow",width:"full",_disabled:{cursor:"not-allowed",color:"grey.300",background:"grey.50"},_hover:{borderColor:"secondary.500",_disabled:{borderColor:"grey.100"}},_focus:{borderColor:"primary.500"},_placeholderShown:{color:"grey.400",_disabled:{color:"grey.100"}}}}),Rz=ft.defineRecipe({base:{_invalid:{'& [data-recipe="formHelperText"]':{color:"error.500"},"& input, & textarea":{borderColor:"error.500"},"& label":{color:"error.500"}},_required:{"& label::after":{content:'" *"',color:"error.500",fontWeight:"bold"}},display:"flex",flexDirection:"column",gap:"space-4",width:"full",position:"relative"},className:"form-control",description:"The styles for the FormControl component",jsx:["FormControl"]}),kz=ft.defineRecipe({base:{color:"grey.400",fontFamily:"satoshi",textStyle:"body.sm"},className:"form-helper-text",description:"The styles for the FormHelperText component",jsx:["FormHelperText"]}),Dz=Aw.extendWith("header","body","footer"),Oz=ft.defineSlotRecipe({className:"drawer",slots:Dz.keys(),jsx:["Drawer"],base:{backdrop:{backdropFilter:"blur(4px)",background:"primary.300/20",height:"100vh",position:"fixed",width:"100vw",zIndex:"overlay",inset:0,_open:{animation:"backdrop-in"},_closed:{animation:"backdrop-out"}},positioner:{alignItems:"center",display:"flex",height:"100dvh",position:"fixed",inset:0,zIndex:"modal"},content:{background:"white",display:"grid",gridTemplateColumns:"1fr",gridTemplateRows:"auto 1fr auto",gridTemplateAreas:`
176
+ */function bx(l,f){var c=Object.keys(l);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(l);f&&(h=h.filter(function(E){return Object.getOwnPropertyDescriptor(l,E).enumerable})),c.push.apply(c,h)}return c}function Cx(l){for(var f=1;f<arguments.length;f++){var c=arguments[f]!=null?arguments[f]:{};f%2?bx(Object(c),!0).forEach(function(h){gM(l,h,c[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):bx(Object(c)).forEach(function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(c,h))})}return l}function gM(l,f,c){return f=EM(f),f in l?Object.defineProperty(l,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[f]=c,l}function SM(l,f){if(typeof l!="object"||l===null)return l;var c=l[Symbol.toPrimitive];if(c!==void 0){var h=c.call(l,f||"default");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(l)}function EM(l){var f=SM(l,"string");return typeof f=="symbol"?f:String(f)}var Tx={activateTrap:function(f,c){if(f.length>0){var h=f[f.length-1];h!==c&&h.pause()}var E=f.indexOf(c);E===-1||f.splice(E,1),f.push(c)},deactivateTrap:function(f,c){var h=f.indexOf(c);h!==-1&&f.splice(h,1),f.length>0&&f[f.length-1].unpause()}},bM=function(f){return f.tagName&&f.tagName.toLowerCase()==="input"&&typeof f.select=="function"},CM=function(f){return(f==null?void 0:f.key)==="Escape"||(f==null?void 0:f.key)==="Esc"||(f==null?void 0:f.keyCode)===27},Sv=function(f){return(f==null?void 0:f.key)==="Tab"||(f==null?void 0:f.keyCode)===9},TM=function(f){return Sv(f)&&!f.shiftKey},xM=function(f){return Sv(f)&&f.shiftKey},xx=function(f){return setTimeout(f,0)},wx=function(f,c){var h=-1;return f.every(function(E,T){return c(E)?(h=T,!1):!0}),h},hv=function(f){for(var c=arguments.length,h=new Array(c>1?c-1:0),E=1;E<c;E++)h[E-1]=arguments[E];return typeof f=="function"?f.apply(void 0,h):f},_y=function(f){return f.target.shadowRoot&&typeof f.composedPath=="function"?f.composedPath()[0]:f.target},wM=[],RM=function(f,c){var h=(c==null?void 0:c.document)||document,E=(c==null?void 0:c.trapStack)||wM,T=Cx({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:TM,isKeyBackward:xM},c),g={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},D,L=function(K,W,ie){return K&&K[W]!==void 0?K[W]:T[ie||W]},x=function(K,W){var ie=typeof(W==null?void 0:W.composedPath)=="function"?W.composedPath():void 0;return g.containerGroups.findIndex(function(Be){var _e=Be.container,Ye=Be.tabbableNodes;return _e.contains(K)||(ie==null?void 0:ie.includes(_e))||Ye.find(function(ee){return ee===K})})},N=function(K){var W=T[K];if(typeof W=="function"){for(var ie=arguments.length,Be=new Array(ie>1?ie-1:0),_e=1;_e<ie;_e++)Be[_e-1]=arguments[_e];W=W.apply(void 0,Be)}if(W===!0&&(W=void 0),!W){if(W===void 0||W===!1)return W;throw new Error("`".concat(K,"` was specified but was not a node, or did not return a node"))}var Ye=W;if(typeof W=="string"&&(Ye=h.querySelector(W),!Ye))throw new Error("`".concat(K,"` as selector refers to no known node"));return Ye},k=function(){var K=N("initialFocus");if(K===!1)return!1;if(K===void 0||!VE(K,T.tabbableOptions))if(x(h.activeElement)>=0)K=h.activeElement;else{var W=g.tabbableGroups[0],ie=W&&W.firstTabbableNode;K=ie||N("fallbackFocus")}if(!K)throw new Error("Your focus-trap needs to have at least one focusable element");return K},z=function(){if(g.containerGroups=g.containers.map(function(K){var W=hM(K,T.tabbableOptions),ie=mM(K,T.tabbableOptions),Be=W.length>0?W[0]:void 0,_e=W.length>0?W[W.length-1]:void 0,Ye=ie.find(function(oe){return Ff(oe)}),ee=ie.slice().reverse().find(function(oe){return Ff(oe)}),ge=!!W.find(function(oe){return _s(oe)>0});return{container:K,tabbableNodes:W,focusableNodes:ie,posTabIndexesFound:ge,firstTabbableNode:Be,lastTabbableNode:_e,firstDomTabbableNode:Ye,lastDomTabbableNode:ee,nextTabbableNode:function(Je){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Pt=W.indexOf(Je);return Pt<0?lt?ie.slice(ie.indexOf(Je)+1).find(function(ln){return Ff(ln)}):ie.slice(0,ie.indexOf(Je)).reverse().find(function(ln){return Ff(ln)}):W[Pt+(lt?1:-1)]}}}),g.tabbableGroups=g.containerGroups.filter(function(K){return K.tabbableNodes.length>0}),g.tabbableGroups.length<=0&&!N("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(g.containerGroups.find(function(K){return K.posTabIndexesFound})&&g.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},F=function re(K){var W=K.activeElement;if(W)return W.shadowRoot&&W.shadowRoot.activeElement!==null?re(W.shadowRoot):W},B=function re(K){if(K!==!1&&K!==F(document)){if(!K||!K.focus){re(k());return}K.focus({preventScroll:!!T.preventScroll}),g.mostRecentlyFocusedNode=K,bM(K)&&K.select()}},Y=function(K){var W=N("setReturnFocus",K);return W||(W===!1?!1:K)},se=function(K){var W=K.target,ie=K.event,Be=K.isBackward,_e=Be===void 0?!1:Be;W=W||_y(ie),z();var Ye=null;if(g.tabbableGroups.length>0){var ee=x(W,ie),ge=ee>=0?g.containerGroups[ee]:void 0;if(ee<0)_e?Ye=g.tabbableGroups[g.tabbableGroups.length-1].lastTabbableNode:Ye=g.tabbableGroups[0].firstTabbableNode;else if(_e){var oe=wx(g.tabbableGroups,function(un){var Mr=un.firstTabbableNode;return W===Mr});if(oe<0&&(ge.container===W||VE(W,T.tabbableOptions)&&!Ff(W,T.tabbableOptions)&&!ge.nextTabbableNode(W,!1))&&(oe=ee),oe>=0){var Je=oe===0?g.tabbableGroups.length-1:oe-1,lt=g.tabbableGroups[Je];Ye=_s(W)>=0?lt.lastTabbableNode:lt.lastDomTabbableNode}else Sv(ie)||(Ye=ge.nextTabbableNode(W,!1))}else{var Pt=wx(g.tabbableGroups,function(un){var Mr=un.lastTabbableNode;return W===Mr});if(Pt<0&&(ge.container===W||VE(W,T.tabbableOptions)&&!Ff(W,T.tabbableOptions)&&!ge.nextTabbableNode(W))&&(Pt=ee),Pt>=0){var ln=Pt===g.tabbableGroups.length-1?0:Pt+1,la=g.tabbableGroups[ln];Ye=_s(W)>=0?la.firstTabbableNode:la.firstDomTabbableNode}else Sv(ie)||(Ye=ge.nextTabbableNode(W))}}else Ye=N("fallbackFocus");return Ye},we=function(K){var W=_y(K);if(!(x(W,K)>=0)){if(hv(T.clickOutsideDeactivates,K)){D.deactivate({returnFocus:T.returnFocusOnDeactivate});return}hv(T.allowOutsideClick,K)||K.preventDefault()}},yt=function(K){var W=_y(K),ie=x(W,K)>=0;if(ie||W instanceof Document)ie&&(g.mostRecentlyFocusedNode=W);else{K.stopImmediatePropagation();var Be,_e=!0;if(g.mostRecentlyFocusedNode)if(_s(g.mostRecentlyFocusedNode)>0){var Ye=x(g.mostRecentlyFocusedNode),ee=g.containerGroups[Ye].tabbableNodes;if(ee.length>0){var ge=ee.findIndex(function(oe){return oe===g.mostRecentlyFocusedNode});ge>=0&&(T.isKeyForward(g.recentNavEvent)?ge+1<ee.length&&(Be=ee[ge+1],_e=!1):ge-1>=0&&(Be=ee[ge-1],_e=!1))}}else g.containerGroups.some(function(oe){return oe.tabbableNodes.some(function(Je){return _s(Je)>0})})||(_e=!1);else _e=!1;_e&&(Be=se({target:g.mostRecentlyFocusedNode,isBackward:T.isKeyBackward(g.recentNavEvent)})),B(Be||g.mostRecentlyFocusedNode||k())}g.recentNavEvent=void 0},Ke=function(K){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;g.recentNavEvent=K;var ie=se({event:K,isBackward:W});ie&&(Sv(K)&&K.preventDefault(),B(ie))},dt=function(K){if(CM(K)&&hv(T.escapeDeactivates,K)!==!1){K.preventDefault(),D.deactivate();return}(T.isKeyForward(K)||T.isKeyBackward(K))&&Ke(K,T.isKeyBackward(K))},Xe=function(K){var W=_y(K);x(W,K)>=0||hv(T.clickOutsideDeactivates,K)||hv(T.allowOutsideClick,K)||(K.preventDefault(),K.stopImmediatePropagation())},Ct=function(){if(g.active)return Tx.activateTrap(E,D),g.delayInitialFocusTimer=T.delayInitialFocus?xx(function(){B(k())}):B(k()),h.addEventListener("focusin",yt,!0),h.addEventListener("mousedown",we,{capture:!0,passive:!1}),h.addEventListener("touchstart",we,{capture:!0,passive:!1}),h.addEventListener("click",Xe,{capture:!0,passive:!1}),h.addEventListener("keydown",dt,{capture:!0,passive:!1}),D},je=function(){if(g.active)return h.removeEventListener("focusin",yt,!0),h.removeEventListener("mousedown",we,!0),h.removeEventListener("touchstart",we,!0),h.removeEventListener("click",Xe,!0),h.removeEventListener("keydown",dt,!0),D},on=function(K){var W=K.some(function(ie){var Be=Array.from(ie.removedNodes);return Be.some(function(_e){return _e===g.mostRecentlyFocusedNode})});W&&B(k())},Pe=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(on):void 0,Te=function(){Pe&&(Pe.disconnect(),g.active&&!g.paused&&g.containers.map(function(K){Pe.observe(K,{subtree:!0,childList:!0})}))};return D={get active(){return g.active},get paused(){return g.paused},activate:function(K){if(g.active)return this;var W=L(K,"onActivate"),ie=L(K,"onPostActivate"),Be=L(K,"checkCanFocusTrap");Be||z(),g.active=!0,g.paused=!1,g.nodeFocusedBeforeActivation=h.activeElement,W==null||W();var _e=function(){Be&&z(),Ct(),Te(),ie==null||ie()};return Be?(Be(g.containers.concat()).then(_e,_e),this):(_e(),this)},deactivate:function(K){if(!g.active)return this;var W=Cx({onDeactivate:T.onDeactivate,onPostDeactivate:T.onPostDeactivate,checkCanReturnFocus:T.checkCanReturnFocus},K);clearTimeout(g.delayInitialFocusTimer),g.delayInitialFocusTimer=void 0,je(),g.active=!1,g.paused=!1,Te(),Tx.deactivateTrap(E,D);var ie=L(W,"onDeactivate"),Be=L(W,"onPostDeactivate"),_e=L(W,"checkCanReturnFocus"),Ye=L(W,"returnFocus","returnFocusOnDeactivate");ie==null||ie();var ee=function(){xx(function(){Ye&&B(Y(g.nodeFocusedBeforeActivation)),Be==null||Be()})};return Ye&&_e?(_e(Y(g.nodeFocusedBeforeActivation)).then(ee,ee),this):(ee(),this)},pause:function(K){if(g.paused||!g.active)return this;var W=L(K,"onPause"),ie=L(K,"onPostPause");return g.paused=!0,W==null||W(),je(),Te(),ie==null||ie(),this},unpause:function(K){if(!g.paused||!g.active)return this;var W=L(K,"onUnpause"),ie=L(K,"onPostUnpause");return g.paused=!1,W==null||W(),z(),Ct(),Te(),ie==null||ie(),this},updateContainerElements:function(K){var W=[].concat(K).filter(Boolean);return g.containers=W.map(function(ie){return typeof ie=="string"?h.querySelector(ie):ie}),g.active&&z(),Te(),this}},D.updateContainerElements(f),D},Aw=ul("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Os=Aw.build(),_t=If({getPositionerId:l=>{var f;return((f=l.ids)==null?void 0:f.positioner)??`dialog:${l.id}:positioner`},getBackdropId:l=>{var f;return((f=l.ids)==null?void 0:f.backdrop)??`dialog:${l.id}:backdrop`},getContentId:l=>{var f;return((f=l.ids)==null?void 0:f.content)??`dialog:${l.id}:content`},getTriggerId:l=>{var f;return((f=l.ids)==null?void 0:f.trigger)??`dialog:${l.id}:trigger`},getTitleId:l=>{var f;return((f=l.ids)==null?void 0:f.title)??`dialog:${l.id}:title`},getDescriptionId:l=>{var f;return((f=l.ids)==null?void 0:f.description)??`dialog:${l.id}:description`},getCloseTriggerId:l=>{var f;return((f=l.ids)==null?void 0:f.closeTrigger)??`dialog:${l.id}:close`},getContentEl:l=>_t.getById(l,_t.getContentId(l)),getTriggerEl:l=>_t.getById(l,_t.getTriggerId(l)),getTitleEl:l=>_t.getById(l,_t.getTitleId(l)),getDescriptionEl:l=>_t.getById(l,_t.getDescriptionId(l))});function kM(l,f,c){const h=l.context["aria-label"],E=l.matches("open"),T=l.context.renderedElements;return{isOpen:E,open(){f("OPEN")},close(){f("CLOSE")},triggerProps:c.button({...Os.trigger.attrs,dir:l.context.dir,id:_t.getTriggerId(l.context),"aria-haspopup":"dialog",type:"button","aria-expanded":E,"data-state":E?"open":"closed","aria-controls":_t.getContentId(l.context),onClick(){f("TOGGLE")}}),backdropProps:c.element({...Os.backdrop.attrs,dir:l.context.dir,hidden:!E,id:_t.getBackdropId(l.context),"data-state":E?"open":"closed"}),positionerProps:c.element({...Os.positioner.attrs,dir:l.context.dir,id:_t.getPositionerId(l.context),style:{pointerEvents:E?void 0:"none"}}),contentProps:c.element({...Os.content.attrs,dir:l.context.dir,role:l.context.role,hidden:!E,id:_t.getContentId(l.context),tabIndex:-1,"data-state":E?"open":"closed","aria-modal":!0,"aria-label":h||void 0,"aria-labelledby":h||!T.title?void 0:_t.getTitleId(l.context),"aria-describedby":T.description?_t.getDescriptionId(l.context):void 0}),titleProps:c.element({...Os.title.attrs,dir:l.context.dir,id:_t.getTitleId(l.context)}),descriptionProps:c.element({...Os.description.attrs,dir:l.context.dir,id:_t.getDescriptionId(l.context)}),closeTriggerProps:c.button({...Os.closeTrigger.attrs,dir:l.context.dir,id:_t.getCloseTriggerId(l.context),type:"button",onClick(g){g.stopPropagation(),f("CLOSE")}})}}function DM(l){const f=zs(l);return Fs({id:"dialog",initial:f.open?"open":"closed",context:{role:"dialog",renderedElements:{title:!0,description:!0},modal:!0,trapFocus:!0,preventScroll:!0,closeOnInteractOutside:!0,closeOnEscapeKeyDown:!0,restoreFocus:!0,...f},watch:{open:["toggleVisibility"]},states:{open:{entry:["checkRenderedElements"],activities:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["restoreFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","restoreFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","restoreFocus"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}}},{guards:{isOpenControlled:c=>!!c["open.controlled"]},activities:{trackDismissableElement(c,h,{send:E}){return qA(()=>_t.getContentEl(c),{defer:!0,pointerBlocking:c.modal,exclude:[_t.getTriggerEl(c)],onEscapeKeyDown(g){var D;c.closeOnEscapeKeyDown?E({type:"CLOSE",src:"escape-key"}):g.preventDefault(),(D=c.onEscapeKeyDown)==null||D.call(c,g)},onPointerDownOutside(g){var D;c.closeOnInteractOutside||g.preventDefault(),(D=c.onPointerDownOutside)==null||D.call(c,g)},onFocusOutside(g){var D;c.closeOnInteractOutside||g.preventDefault(),(D=c.onFocusOutside)==null||D.call(c,g)},onDismiss(){E({type:"CLOSE",src:"interact-outside"})}})},preventScroll(c){if(c.preventScroll)return eM(_t.getDoc(c))},trapFocus(c){if(!c.trapFocus||!c.modal)return;let h;return BE(()=>{const E=_t.getContentEl(c);if(E){h=RM(E,{document:_t.getDoc(c),escapeDeactivates:!1,preventScroll:!0,returnFocusOnDeactivate:!1,fallbackFocus:E,allowOutsideClick:!0,initialFocus:KT(c.initialFocusEl)});try{h.activate()}catch{}}}),()=>h==null?void 0:h.deactivate()},hideContentBelow(c){return c.modal?UA(()=>[_t.getContentEl(c)],{defer:!0}):void 0}},actions:{checkRenderedElements(c){Wa(()=>{c.renderedElements.title=!!_t.getTitleEl(c),c.renderedElements.description=!!_t.getDescriptionEl(c)})},invokeOnClose(c){var h;(h=c.onOpenChange)==null||h.call(c,{open:!1})},invokeOnOpen(c){var h;(h=c.onOpenChange)==null||h.call(c,{open:!0})},toggleVisibility(c,h,{send:E}){E({type:c.open?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:h})},restoreFocus(c){c.restoreFocus&&Wa(()=>{const h=KT(c.finalFocusEl)??_t.getTriggerEl(c);h==null||h.focus({preventScroll:!0})})}}})}vo()(["aria-label","closeOnEscapeKeyDown","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","open.controlled","open","preventScroll","restoreFocus","role","trapFocus"]);const OM=(l={})=>{const f={id:pe.useId(),getRootNode:jf(),...l,open:l.defaultOpen??l.open,"open.controlled":l.open!==void 0},c={...f,open:l.open,onOpenChange:Ri(l.onOpenChange,{sync:!0}),onEscapeKeyDown:Ri(l.onEscapeKeyDown),onInteractOutside:Ri(l.onInteractOutside)},[h,E]=Ps(DM(f),{context:c});return kM(h,E,Hf)},NM=l=>{const[f,{children:c,...h}]=FA(l),[E]=rb(f),T=OM(h),g=ob(At({present:T.isOpen},f)),D=Ky(c,T);return fe.jsx(zA,{value:T,children:fe.jsx(tb,{value:E,children:fe.jsx(Cw,{value:g,children:D})})})},Mw=pe.forwardRef((l,f)=>{const c=Vf(),h=At(c.titleProps,l);return fe.jsx(Mt.h2,{...h,ref:f})});Mw.displayName="DialogTitle";const zw=pe.forwardRef((l,f)=>{const c=Vf(),h=lb(),E=At({...c.triggerProps,"aria-controls":h.isUnmounted?void 0:c.triggerProps["aria-controls"]},l);return fe.jsx(Mt.button,{...E,ref:f})});zw.displayName="DialogTrigger";const{withProvider:LM,withContext:cl}=ib(Er.drawer),_M=LM(NM,void 0,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),AM=cl(bt.styled(Mt.main),"body"),MM=cl(bt.styled(bw),"closeTrigger"),zM=cl(bt.styled(Mt.footer),"footer"),FM=cl(bt.styled(Mt.header),"header"),PM=cl(bt.styled(Mw),"title"),UM=cl(bt.styled(zw),"trigger"),IM=cl(bt.styled(Tw),"positioner"),HM=cl(bt.styled(Ew),"backdrop"),Fw=pe.forwardRef(({children:l,...f},c)=>fe.jsxs(IL.Portal,{children:[fe.jsx(HM,{}),fe.jsx(IM,{children:fe.jsx(ub,{ref:c,...f,children:l})})]}));Fw.displayName=ub.displayName;const jM=cl(bt.styled(Fw),"content"),VM=bt.styled("div",Er.formControl,{defaultProps:{role:"group"}}),BM=({isInvalid:l,isRequired:f,...c})=>{const h={...l?{"aria-invalid":!0}:{},...f?{"aria-required":!0}:{}};return fe.jsx(VM,{...h,...c})},$M=bt.styled("label",Er.formLabel),YM=l=>{const[f,c]=Er.formLabel.splitVariantProps(l),[h,E]=bt.splitCssProps(c),{children:T,className:g,addon:D,...L}=E,x=Er.formLabel(f);return fe.jsxs($M,{className:Uf.cx(x.root,Uf.css(h),g),...L,children:[T,D?fe.jsx(bt.styled.span,{className:x.addon,children:D}):null]})},WM=bt.styled("p",Er.formHelperText,{dataAttr:!0}),GM=l=>{const{as:f="h2",...c}=l,h=pe.useMemo(()=>bt.styled(f,Er.heading),[f]);return fe.jsx(h,{size:f,...c})},[QM,cb]=po({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),Pw=pe.forwardRef((l,f)=>{const c=cb(),h=At(c.controlProps,l);return fe.jsxs(fe.Fragment,{children:[fe.jsx(Mt.span,{...h,ref:f}),fe.jsx("input",{...c.hiddenInputProps})]})});Pw.displayName="SwitchControl";const Uw=pe.forwardRef((l,f)=>{const c=cb(),h=At(c.labelProps,l);return fe.jsx(Mt.span,{...h,ref:f})});Uw.displayName="SwitchLabel";var Iw=ul("switch").parts("root","label","control","thumb"),Ay=Iw.build(),wa=If({getRootId:l=>{var f;return((f=l.ids)==null?void 0:f.root)??`switch:${l.id}`},getLabelId:l=>{var f;return((f=l.ids)==null?void 0:f.label)??`switch:${l.id}:label`},getThumbId:l=>{var f;return((f=l.ids)==null?void 0:f.thumb)??`switch:${l.id}:thumb`},getControlId:l=>{var f;return((f=l.ids)==null?void 0:f.control)??`switch:${l.id}:control`},getHiddenInputId:l=>{var f;return((f=l.ids)==null?void 0:f.input)??`switch:${l.id}:input`},getHiddenInputEl:l=>wa.getById(l,wa.getHiddenInputId(l))});function KM(l,f,c){const h=l.context.isDisabled,E=!h&&l.context.focused,T=l.context.checked,g={"data-active":Vt(l.context.active),"data-focus":Vt(E),"data-hover":Vt(l.context.hovered),"data-disabled":Vt(h),"data-state":l.context.checked?"checked":"unchecked","data-invalid":Vt(l.context.invalid)};return{isChecked:T,isDisabled:h,isFocused:E,setChecked(D){f({type:"CHECKED.SET",checked:D,isTrusted:!1})},toggleChecked(){f({type:"CHECKED.TOGGLE",checked:T,isTrusted:!1})},rootProps:c.label({...Ay.root.attrs,...g,dir:l.context.dir,id:wa.getRootId(l.context),htmlFor:wa.getHiddenInputId(l.context),onPointerMove(){h||f({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){h||f({type:"CONTEXT.SET",context:{hovered:!1}})},onPointerDown(D){h||(E&&D.preventDefault(),f({type:"CONTEXT.SET",context:{active:!0}}))},onPointerUp(){h||f({type:"CONTEXT.SET",context:{active:!1}})},onClick(D){D.target===wa.getHiddenInputEl(l.context)&&D.stopPropagation()}}),labelProps:c.element({...Ay.label.attrs,...g,dir:l.context.dir,id:wa.getLabelId(l.context)}),thumbProps:c.element({...Ay.thumb.attrs,...g,dir:l.context.dir,id:wa.getThumbId(l.context),"aria-hidden":!0}),controlProps:c.element({...Ay.control.attrs,...g,dir:l.context.dir,id:wa.getControlId(l.context),"aria-hidden":!0}),hiddenInputProps:c.input({id:wa.getHiddenInputId(l.context),type:"checkbox",required:l.context.required,defaultChecked:T,disabled:h,"aria-labelledby":wa.getLabelId(l.context),"aria-invalid":l.context.invalid,name:l.context.name,form:l.context.form,value:l.context.value,style:pw,onChange(D){const L=D.currentTarget.checked;f({type:"CHECKED.SET",checked:L,isTrusted:!0})},onBlur(){f({type:"CONTEXT.SET",context:{focused:!1}})},onFocus(){f({type:"CONTEXT.SET",context:{focused:!0}})},onKeyDown(D){D.key===" "&&f({type:"CONTEXT.SET",context:{active:!0}})},onKeyUp(D){D.key===" "&&f({type:"CONTEXT.SET",context:{active:!1}})}})}}var{not:Rx}=xv;function XM(l){const f=zs(l);return Fs({id:"switch",initial:"ready",context:{checked:!1,label:"switch",value:"on",disabled:!1,...f,fieldsetDisabled:!1},computed:{isDisabled:c=>c.disabled||c.fieldsetDisabled},watch:{disabled:"removeFocusIfNeeded",checked:"syncInputElement"},activities:["trackFormControlState"],on:{"CHECKED.TOGGLE":[{guard:Rx("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:Rx("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}}},{guards:{isTrusted:(c,h)=>!!h.isTrusted},activities:{trackFormControlState(c,h,{send:E,initialContext:T}){return mw(wa.getHiddenInputEl(c),{onFieldsetDisabledChange(g){c.fieldsetDisabled=g},onFormReset(){E({type:"CHECKED.SET",checked:!!T.checked,src:"form-reset"})}})}},actions:{setContext(c,h){Object.assign(c,h.context)},syncInputElement(c){const h=wa.getHiddenInputEl(c);h&&(h.checked=!!c.checked)},removeFocusIfNeeded(c){c.disabled&&c.focused&&(c.focused=!1)},setChecked(c,h){kx.checked(c,h.checked)},toggleChecked(c,h){kx.checked(c,!c.checked)},dispatchChangeEvent(c){const h=wa.getHiddenInputEl(c);hw(h,{checked:c.checked})}}})}var qM={change:l=>{var f;(f=l.onCheckedChange)==null||f.call(l,{checked:l.checked})}},kx={checked:(l,f)=>{As(l.checked,f)||(l.checked=f,qM.change(l))}};vo()(["checked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","required","value"]);const ZM=l=>{const f={id:pe.useId(),getRootNode:jf(),...l,checked:l.defaultChecked},c={...f,checked:l.checked,onCheckedChange:Ri(l.onCheckedChange,{sync:!0})},[h,E]=Ps(XM(f),{context:c});return KM(h,E,Hf)},Hw=pe.forwardRef((l,f)=>{const[c,{children:h,...E}]=sl()(l,["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","required","value"]),T=ZM(c),g=At(T.rootProps,E),D=Ky(h,T);return fe.jsx(QM,{value:T,children:fe.jsx(Mt.label,{...g,ref:f,children:D})})});Hw.displayName="SwitchRoot";const jw=pe.forwardRef((l,f)=>{const c=cb(),h=At(c.thumbProps,l);return fe.jsx(Mt.span,{...h,ref:f})});jw.displayName="SwitchThumb";const Vw=pe.forwardRef((l,f)=>{const[c,h]=Er.switchRecipe.splitVariantProps(l),[E,T]=bt.splitCssProps(h),{children:g,className:D,...L}=T,x=Er.switchRecipe(c);return fe.jsxs(Hw,{ref:f,className:Uf.cx(x.root,Uf.css(E),D),...L,children:[fe.jsx(Pw,{className:x.control,children:fe.jsx(jw,{className:x.thumb})}),g?fe.jsx(Uw,{className:x.label,children:g}):null]})});Vw.displayName="Switch";const JM=l=>{const{as:f="p",...c}=l,h=pe.useMemo(()=>bt.styled(f,Er.text),[f]);return fe.jsx(h,{...c})},ez=bt.styled(Mt.textarea,Er.textarea);var XE,Ns=new Map,tz=l=>l.getBoundingClientRect();function nz(l,f){const{scope:c="rect",getRect:h=tz,onChange:E}=f,T=rz({scope:c,getRect:h}),g=Ns.get(l);return g?(g.callbacks.push(E),E(h(l))):(Ns.set(l,{rect:{},callbacks:[E]}),Ns.size===1&&(XE=requestAnimationFrame(T))),function(){const L=Ns.get(l);if(!L)return;const x=L.callbacks.indexOf(E);x>-1&&L.callbacks.splice(x,1),L.callbacks.length===0&&(Ns.delete(l),Ns.size===0&&cancelAnimationFrame(XE))}}function rz(l){const{scope:f,getRect:c}=l,h=iz(f);return function E(){const T=[];Ns.forEach((g,D)=>{const L=c(D);h(g.rect,L)||(g.rect=L,T.push(g))}),T.forEach(g=>{g.callbacks.forEach(D=>D(g.rect))}),XE=requestAnimationFrame(E)}}var Bw=(l,f)=>l.width===f.width&&l.height===f.height,$w=(l,f)=>l.top===f.top&&l.left===f.left,az=(l,f)=>Bw(l,f)&&$w(l,f);function iz(l){return l==="size"?Bw:l==="position"?$w:az}var Yw=ul("tabs").parts("root","list","trigger","content","indicator"),mv=Yw.build(),qe=If({getRootId:l=>{var f;return((f=l.ids)==null?void 0:f.root)??`tabs:${l.id}`},getTablistId:l=>{var f;return((f=l.ids)==null?void 0:f.tablist)??`tabs:${l.id}:list`},getContentId:(l,f)=>{var c;return((c=l.ids)==null?void 0:c.content)??`tabs:${l.id}:content-${f}`},getTriggerId:(l,f)=>{var c;return((c=l.ids)==null?void 0:c.trigger)??`tabs:${l.id}:trigger-${f}`},getIndicatorId:l=>{var f;return((f=l.ids)==null?void 0:f.indicator)??`tabs:${l.id}:indicator`},getTablistEl:l=>qe.getById(l,qe.getTablistId(l)),getContentEl:(l,f)=>qe.getById(l,qe.getContentId(l,f)),getTriggerEl:(l,f)=>qe.getById(l,qe.getTriggerId(l,f)),getIndicatorEl:l=>qe.getById(l,qe.getIndicatorId(l)),getElements:l=>{const c=`[role=tab][data-ownedby='${CSS.escape(qe.getTablistId(l))}']:not([disabled])`;return Ux(qe.getTablistEl(l),c)},getFirstEl:l=>Hx(qe.getElements(l)),getLastEl:l=>jx(qe.getElements(l)),getNextEl:(l,f)=>Ax(qe.getElements(l),qe.getTriggerId(l,f),l.loop),getPrevEl:(l,f)=>Mx(qe.getElements(l),qe.getTriggerId(l,f),l.loop),getActiveContentEl:l=>{if(l.value)return qe.getContentEl(l,l.value)},getActiveTabEl:l=>{if(l.value)return qe.getTriggerEl(l,l.value)},getOffsetRect:l=>({left:(l==null?void 0:l.offsetLeft)??0,top:(l==null?void 0:l.offsetTop)??0,width:(l==null?void 0:l.offsetWidth)??0,height:(l==null?void 0:l.offsetHeight)??0}),getRectById:(l,f)=>{const c=Lx(qe.getElements(l),qe.getTriggerId(l,f));return qe.resolveRect(qe.getOffsetRect(c))},resolveRect:l=>({width:`${l.width}px`,height:`${l.height}px`,left:`${l.left}px`,top:`${l.top}px`})});function oz(l,f,c){var g,D,L,x;const h=l.context.translations,E=l.matches("focused");function T(N){return{isSelected:l.context.value===N.value,isFocused:l.context.focusedValue===N.value,isDisabled:!!N.disabled}}return{value:l.context.value,focusedValue:l.context.focusedValue,setValue(N){f({type:"SET_VALUE",value:N})},clearValue(){f({type:"CLEAR_VALUE"})},setIndicatorRect(N){const k=qe.getTriggerId(l.context,N);f({type:"SET_INDICATOR_RECT",id:k})},getTriggerState:T,rootProps:c.element({...mv.root.attrs,id:qe.getRootId(l.context),"data-orientation":l.context.orientation,"data-focus":Vt(E),dir:l.context.dir}),tablistProps:c.element({...mv.list.attrs,id:qe.getTablistId(l.context),role:"tablist",dir:l.context.dir,"data-focus":Vt(E),"aria-orientation":l.context.orientation,"data-orientation":l.context.orientation,"aria-label":h.tablistLabel,onKeyDown(N){if(!WL(N))return;const k={ArrowDown(){f("ARROW_DOWN")},ArrowUp(){f("ARROW_UP")},ArrowLeft(){f("ARROW_LEFT")},ArrowRight(){f("ARROW_RIGHT")},Home(){f("HOME")},End(){f("END")},Enter(){f({type:"ENTER",value:l.context.focusedValue})}};let z=Ix(N,l.context);const F=k[z];F&&(N.preventDefault(),F(N))}}),getTriggerProps(N){const{value:k,disabled:z}=N,F=T(N);return c.button({...mv.trigger.attrs,role:"tab",type:"button",disabled:z,dir:l.context.dir,"data-orientation":l.context.orientation,"data-disabled":Vt(z),"aria-disabled":z,"data-value":k,"aria-selected":F.isSelected,"data-selected":Vt(F.isSelected),"data-focus":Vt(F.isFocused),"aria-controls":qe.getContentId(l.context,k),"data-ownedby":qe.getTablistId(l.context),id:qe.getTriggerId(l.context,k),tabIndex:F.isSelected?0:-1,onFocus(){f({type:"TAB_FOCUS",value:k})},onBlur(B){const Y=B.relatedTarget;(Y==null?void 0:Y.getAttribute("role"))!=="tab"&&f({type:"TAB_BLUR"})},onClick(B){z||(Px()&&B.currentTarget.focus(),f({type:"TAB_CLICK",value:k}))}})},getContentProps(N){const{value:k}=N,z=l.context.value===k;return c.element({...mv.content.attrs,dir:l.context.dir,id:qe.getContentId(l.context,k),tabIndex:0,"aria-labelledby":qe.getTriggerId(l.context,k),role:"tabpanel","data-ownedby":qe.getTablistId(l.context),"data-selected":Vt(z),"data-orientation":l.context.orientation,hidden:!z})},indicatorProps:c.element({id:qe.getIndicatorId(l.context),...mv.indicator.attrs,dir:l.context.dir,"data-orientation":l.context.orientation,style:{"--transition-property":"left, right, top, bottom, width, height","--left":(g=l.context.indicatorRect)==null?void 0:g.left,"--top":(D=l.context.indicatorRect)==null?void 0:D.top,"--width":(L=l.context.indicatorRect)==null?void 0:L.width,"--height":(x=l.context.indicatorRect)==null?void 0:x.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:l.context.canIndicatorTransition?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",[l.context.orientation==="horizontal"?"left":"top"]:l.context.orientation==="horizontal"?"var(--left)":"var(--top)"}})}}var{not:lz}=xv;function uz(l){const f=zs(l);return Fs({initial:"idle",context:{dir:"ltr",orientation:"horizontal",activationMode:"automatic",value:null,focusedValue:null,indicatorRect:{left:"0px",top:"0px",width:"0px",height:"0px"},canIndicatorTransition:!1,isIndicatorRendered:!1,loop:!0,translations:{},...f},computed:{isHorizontal:c=>c.orientation==="horizontal",isVertical:c=>c.orientation==="vertical"},entry:["checkRenderedElements","syncIndicatorRect","setContentTabIndex"],exit:["cleanupObserver"],watch:{value:["enableIndicatorTransition","syncIndicatorRect","setContentTabIndex"],dir:["syncIndicatorRect"],orientation:["syncIndicatorRect"]},on:{SET_VALUE:{actions:"setValue"},CLEAR_VALUE:{actions:"clearValue"},SET_INDICATOR_RECT:{actions:"setIndicatorRect"}},states:{idle:{on:{TAB_FOCUS:[{guard:"selectOnFocus",target:"focused",actions:["setFocusedValue","setValue"]},{target:"focused",actions:"setFocusedValue"}],TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]}}},focused:{on:{TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]},ARROW_LEFT:{guard:"isHorizontal",actions:"focusPrevTab"},ARROW_RIGHT:{guard:"isHorizontal",actions:"focusNextTab"},ARROW_UP:{guard:"isVertical",actions:"focusPrevTab"},ARROW_DOWN:{guard:"isVertical",actions:"focusNextTab"},HOME:{actions:"focusFirstTab"},END:{actions:"focusLastTab"},ENTER:{guard:lz("selectOnFocus"),actions:"setValue"},TAB_FOCUS:[{guard:"selectOnFocus",actions:["setFocusedValue","setValue"]},{actions:"setFocusedValue"}],TAB_BLUR:{target:"idle",actions:"clearFocusedValue"}}}}},{guards:{isVertical:c=>c.isVertical,isHorizontal:c=>c.isHorizontal,selectOnFocus:c=>c.activationMode==="automatic"},actions:{setFocusedValue(c,h){My.focusedValue(c,h.value)},clearFocusedValue(c){My.focusedValue(c,null)},setValue(c,h){My.value(c,h.value)},clearValue(c){My.value(c,null)},focusFirstTab(c){Wa(()=>{var h;return(h=qe.getFirstEl(c))==null?void 0:h.focus()})},focusLastTab(c){Wa(()=>{var h;return(h=qe.getLastEl(c))==null?void 0:h.focus()})},focusNextTab(c){if(!c.focusedValue)return;const h=qe.getNextEl(c,c.focusedValue);Wa(()=>h==null?void 0:h.focus())},focusPrevTab(c){if(!c.focusedValue)return;const h=qe.getPrevEl(c,c.focusedValue);Wa(()=>h==null?void 0:h.focus())},checkRenderedElements(c){c.isIndicatorRendered=!!qe.getIndicatorEl(c)},setContentTabIndex(c){Wa(()=>{const h=qe.getActiveContentEl(c);if(!h)return;ww(h).length>0?h.removeAttribute("tabindex"):h.setAttribute("tabindex","0")})},cleanupObserver(c){var h;(h=c.indicatorCleanup)==null||h.call(c)},enableIndicatorTransition(c){c.canIndicatorTransition=!0},setIndicatorRect(c,h){const E=h.id??c.value;!c.isIndicatorRendered||!E||!qe.getTriggerEl(c,E)||(c.indicatorRect=qe.getRectById(c,E),BE(()=>{c.canIndicatorTransition=!1}))},syncIndicatorRect(c){var T;(T=c.indicatorCleanup)==null||T.call(c);const h=c.value;if(!c.isIndicatorRendered||!h)return;const E=qe.getActiveTabEl(c);E&&(c.indicatorCleanup=nz(E,{getRect(g){return qe.getOffsetRect(g)},onChange(g){c.indicatorRect=qe.resolveRect(g),BE(()=>{c.canIndicatorTransition=!1})}}))}}})}var Dx={change:l=>{var f;l.value!=null&&((f=l.onValueChange)==null||f.call(l,{value:l.value}))},focusChange:l=>{var f;l.focusedValue!=null&&((f=l.onFocusChange)==null||f.call(l,{focusedValue:l.focusedValue}))}},My={value:(l,f)=>{As(f,l.value)||(l.value=f,Dx.change(l))},focusedValue:(l,f)=>{As(f,l.focusedValue)||(l.focusedValue=f,Dx.focusChange(l))}};vo()(["activationMode","dir","getRootNode","id","ids","loop","onFocusChange","onValueChange","orientation","translations","value"]);vo()(["disabled","value"]);vo()(["value"]);const[sz,qy]=po({name:"TabsContext",hookName:"useTabsContext",providerName:"<TabsProvider />"}),Ww=pe.forwardRef((l,f)=>{const[c,h]=sl()(l,["value"]),E=qy(),T=nb(),g=ob({...T,present:E.value===l.value}),D=At(E.getContentProps(c),g.getPresenceProps(f),h);return fe.jsx(Cw,{value:g,children:g.isUnmounted?null:fe.jsx(Mt.div,{...D})})});Ww.displayName="TabContent";const Gw=pe.forwardRef((l,f)=>{const c=qy(),h=At(c.indicatorProps,l);return fe.jsx(Mt.div,{...h,ref:f})});Gw.displayName="TabIndicator";const fb=pe.forwardRef((l,f)=>{const c=qy(),h=At(c.tablistProps,l);return fe.jsx(Mt.div,{...h,ref:f})});fb.displayName="TabList";const Qw=pe.forwardRef((l,f)=>{const[c,h]=sl()(l,["disabled","value"]),E=qy(),T=At(E.getTriggerProps(c),h);return fe.jsx(Mt.button,{...T,ref:f})});Qw.displayName="TabTrigger";const cz=l=>{const f={id:pe.useId(),getRootNode:jf(),...l,value:l.defaultValue},c={...f,value:l.value,onValueChange:Ri(l.onValueChange,{sync:!0}),onFocusChange:Ri(l.onFocusChange)},[h,E]=Ps(uz(f),{context:c});return oz(h,E,Hf)},Kw=pe.forwardRef((l,f)=>{const[c,h]=rb(l),[E,T]=sl()(h,["activationMode","defaultValue","dir","getRootNode","id","ids","loop","onFocusChange","onValueChange","orientation","translations","value"]),g=cz(E),D=At(g.rootProps,T);return fe.jsx(sz,{value:g,children:fe.jsx(tb,{value:c,children:fe.jsx(Mt.div,{...D,ref:f})})})});Kw.displayName="TabsRoot";const{withProvider:fz,withContext:Zy}=ib(Er.tabs),dz=fz(bt.styled(Kw),"root",{defaultProps:{lazyMount:!0}}),pz=Zy(bt.styled(Ww),"content"),vz=Zy(bt.styled(Qw),"trigger"),hz=Zy(bt.styled(Gw),"indicator"),Xw=pe.forwardRef(({children:l,...f},c)=>fe.jsxs(fb,{ref:c,...f,children:[l,fe.jsx(hz,{})]}));Xw.displayName=fb.displayName;const mz=Zy(bt.styled(Xw),"list"),yz={xl:"1536px",lg:"1200px",md:"900px",sm:"600px"},gz={extend:{checked:"&:where(:checked, [data-checked], [aria-checked=true], [data-state=checked])",closed:"&:where([data-state=closed])",collapsed:'&:where([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',current:"&:is([data-current])",focus:"&:where(:focus, [data-focus], [data-focused])",groupHover:"[role=group]:where(:hover, [data-hover]) &",hidden:"&:where([hidden])",highlighted:"&:where([data-highlighted])",hover:"&:where(:hover, [data-hover], [data-hovered])",indeterminate:"&:where(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",invalid:"&:where(:invalid, [data-invalid], [aria-invalid=true])",open:"&:where([open], [data-state=open])",placeholderShown:"&:where(:placeholder-shown, [data-placeholder-shown])",today:"&:where([data-today])",underValue:'&:where([data-state="under-value"])'}},Sz={"2xl":"672px","3xl":"768px","4xl":"896px","5xl":"1024px","6xl":"1152px","7xl":"1280px","8xl":"1440px",lg:"512px",md:"448px",sm:"384px",xl:"576px",xs:"320px"},Ez=ft.defineKeyframes({blob:{"0%":{rotate:"0deg"},"100%":{rotate:"359deg"}},bounce:{"0%, 100%":{animationTimingFunction:"cubic-bezier(0.8,0,1,1)",transform:"translateY(-25%)"},"50%":{animationTimingFunction:"cubic-bezier(0,0,0.2,1)",transform:"none"}},"fade-in":{from:{opacity:"0"},to:{opacity:"1"}},"fade-out":{from:{opacity:"1"},to:{opacity:"0"}},fadeIn:{"0%":{opacity:"0",transform:"translateY(-4px)"},"100%":{opacity:"1",transform:"translateY(0)"}},fadeInFromRight:{"0%":{opacity:"0",transform:"translateX(100%)"},"100%":{opacity:"1",transform:"translateX(0)"}},fadeInSkew:{"0%":{opacity:"0",transform:"translateY(-4px) rotateX(-1deg) scale(0.95)",transformStyle:"preserve-3d"},"100%":{opacity:"1",transform:"translateY(0) rotateX(0) scale(1)",transformStyle:"preserve-3d"}},fadeOut:{"0%":{opacity:"1",transform:"translateY(0)"},"100%":{opacity:"0",transform:"translateY(-4px)"}},fadeOutFromRight:{"0%":{opacity:"1",transform:"translateX(0)"},"100%":{opacity:"0",transform:"translateX(100%)"}},fadeOutSkew:{"0%":{opacity:"1",transform:"translateY(0) rotateX(0) scale(1)",transformStyle:"preserve-3d"},"100%":{opacity:"0",transform:"translateY(-4px) rotateX(-1deg) scale(0.95)",transformStyle:"preserve-3d"}},ping:{"75%, 100%":{opacity:"0",transform:"scale(2)"}},pulse:{"50%":{opacity:".5"}},"skeleton-pulse":{"50%":{opacity:"0.5"}},"slide-in":{"0%":{opacity:"0",transform:"translateY(64px)"},"100%":{opacity:"1",transform:"translateY(0)"}},"slide-in-left":{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(0%)"}},"slide-in-modal":{"0%":{opacity:"0",transform:"translateY(64px) scale(0.9)"},"100%":{opacity:"1",transform:"translateY(0) scale(1)"}},"slide-in-right":{"0%":{transform:"translateX(100%)"},"100%":{transform:"translateX(0%)"}},"slide-out":{"0%":{opacity:"1",transform:"translateY(0)"},"100%":{opacity:"0",transform:"translateY(64px)"}},"slide-out-left":{"0%":{transform:"translateX(0%)"},"100%":{transform:"translateX(-100%)"}},"slide-out-modal":{"0%":{opacity:"1",transform:"translateY(0) scale(1)"},"100%":{opacity:"0",transform:"translateY(64px) scale(0.9)"}},"slide-out-right":{"0%":{transform:"translateX(0%)"},"100%":{transform:"translateX(100%)"}},slideInFromBottom:{"0%":{opacity:"0",transform:"translateY(4px)"},"100%":{opacity:"1",transform:"translateY(0)"}},slideOutToBottom:{"0%":{opacity:"1",transform:"translateY(0)"},"100%":{opacity:"0",transform:"translateY(4px)"}},"collapse-in":{"0%":{height:"0px"},"100%":{height:"var(--height)"}},"collapse-out":{"0%":{height:"var(--height)"},"100%":{height:"0px"}},spin:{to:{transform:"rotate(360deg)"}}}),bz=ft.defineRecipe({base:{_focusVisible:{ring:"2px solid {colors.primary.200}",ringOffset:"space-2"},alignItems:"center",cursor:{_disabled:"not-allowed",base:"pointer"},opacity:{_disabled:.32},display:"flex",flexDirection:"row",gap:"space-4",justifyContent:"center",transition:"color, background-color, border-color, opacity",transitionDuration:"fast",fontWeight:"bold",fontFamily:"satoshi"},className:"button",defaultVariants:{size:"lg",variant:"primary",severity:"none"},description:"The styles for the Button component",jsx:["Button"],variants:{size:{lg:{borderRadius:"radius-60",px:"space-20",py:"space-8",textStyle:"body.lg"},md:{borderRadius:"radius-60",px:"space-16",py:"space-6",textStyle:"body.md"},sm:{borderRadius:"radius-60",px:"space-12",py:"space-4",textStyle:"body.sm"}},variant:{primary:{bg:{_disabled:{_hover:"primary.500",_active:"primary.500",base:"primary.500"},_active:"primary.800",_hover:"primary.600",base:"primary.500"},color:"white"},secondary:{bg:{_disabled:{_hover:"transparent",_active:"transparent",base:"transparent"},_active:"primary.600",_hover:"primary.500",base:"transparent"},boxShadow:"inset 0 0 0 1px {colors.primary.500}",color:{_disabled:{_hover:"primary.500",_active:"primary.500",base:"primary.500"},base:"primary.500",_hover:"white",_active:"white"}},tertiary:{bg:{_disabled:{_hover:"transparent",_active:"transparent",base:"transparent"},_active:"primary.200",_hover:"primary.100",base:"transparent"},color:{_disabled:{_hover:"primary.500",_active:"primary.500",base:"primary.500"},base:"primary.500",_hover:"primary.600",_active:"primary.600"}}},severity:{none:{},danger:{}}},compoundVariants:[{variant:"primary",severity:"danger",css:{bg:{_disabled:{_hover:"error.500",_active:"error.500",base:"error.500"},_active:"error.800",_hover:"error.700",base:"error.500"}}},{variant:"secondary",severity:"danger",css:{bg:{_disabled:{_hover:"transparent",_active:"transparent",base:"transparent"},_active:"error.700",_hover:"error.500",base:"transparent"},boxShadow:{base:"inset 0 0 0 1px {colors.error.500}",_active:"inset 0 0 0 1px {colors.error.700}"},color:{_disabled:{_hover:"error.500",_active:"error.500",base:"error.500"},base:"error.500",_hover:"white",_active:"white"}}},{variant:"tertiary",severity:"danger",css:{bg:{_disabled:{_hover:"transparent",_active:"transparent",base:"transparent"},_active:"error.200",_hover:"error.100",base:"transparent"},color:{_disabled:{_hover:"error.500",_active:"error.500",base:"error.500"},base:"error.500",_hover:"error.700",_active:"error.700"}}}]}),Cz=ft.defineRecipe({className:"heading",defaultVariants:{size:"h2"},jsx:["Heading"],base:{fontFamily:"cabinet",color:"text.heading"},variants:{italic:{true:{fontStyle:"italic"}},underline:{true:{textDecoration:"underline"}},size:{h1:{textStyle:"heading.h1"},h2:{textStyle:"heading.h2"},h3:{textStyle:"heading.h3"},h4:{textStyle:"heading.h4"},h5:{textStyle:"heading.h5"},h6:{textStyle:"heading.h6"}}}}),Tz=ft.defineSlotRecipe({base:{control:{_focus:{ring:"1px solid {colors.secondary.300}"},alignItems:"center",background:{_checked:{base:"primary.500",_disabled:"grey.200"},base:"grey.100",_hover:{base:"grey.200",_checked:"primary.700"}},borderRadius:"full",cursor:"pointer",display:"inline-flex",flexShrink:"0",transitionDuration:"normal",transitionProperty:"background",transitionTimingFunction:"default"},label:{fontFamily:"satoshi",color:"text",_disabled:{color:"text.disabled",userSelect:"none"}},root:{WebkitTapHighlightColor:"transparent",_disabled:{pointerEvents:"none"},alignItems:"center",cursor:"pointer",display:"flex",position:"relative"},thumb:{background:"white",borderRadius:"full",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_checked:{transform:"translateX(16px)"}}},className:"switch",defaultVariants:{size:"md"},jsx:["Switch","SwitchField"],slots:Iw.keys(),variants:{size:{md:{control:{height:"size-16",p:"space-2",width:"size-32"},label:{textStyle:"body.md"},root:{gap:"space-4"},thumb:{height:"size-12",width:"size-12"}}}}}),xz=ft.defineRecipe({className:"text",defaultVariants:{size:"md"},jsx:["Text","AppLink"],staticCss:["*"],base:{fontFamily:"satoshi",color:"text"},variants:{bold:{true:{fontWeight:"bold"}},italic:{true:{fontStyle:"italic"}},underline:{true:{textDecoration:"underline"}},size:{lg:{textStyle:"body.lg"},md:{textStyle:"body.md"},sm:{textStyle:"body.sm"}}}}),wz=ft.defineRecipe({className:"textarea",jsx:["Textarea"],base:{px:"space-16",py:"space-8",textStyle:"body.md",fontFamily:"satoshi",color:"text",appearance:"none",background:"none",border:"1px solid {colors.grey.100}",borderRadius:"radius-8",minWidth:0,outline:0,position:"relative",transitionDuration:"normal",transitionProperty:"border-color, box-shadow",width:"full",_disabled:{cursor:"not-allowed",color:"grey.300",background:"grey.50"},_hover:{borderColor:"secondary.500",_disabled:{borderColor:"grey.100"}},_focus:{borderColor:"primary.500"},_placeholderShown:{color:"grey.400",_disabled:{color:"grey.100"}}}}),Rz=ft.defineRecipe({base:{_invalid:{'& [data-recipe="formHelperText"]':{color:"error.500"},"& input, & textarea":{borderColor:"error.500"},"& label":{color:"error.500"}},_required:{"& label::after":{content:'" *"',color:"error.500",fontWeight:"bold"}},display:"flex",flexDirection:"column",gap:"space-4",width:"full",position:"relative"},className:"form-control",description:"The styles for the FormControl component",jsx:["FormControl"]}),kz=ft.defineRecipe({base:{color:"grey.400",fontFamily:"satoshi",textStyle:"body.sm"},className:"form-helper-text",description:"The styles for the FormHelperText component",jsx:["FormHelperText"]}),Dz=Aw.extendWith("header","body","footer"),Oz=ft.defineSlotRecipe({className:"drawer",slots:Dz.keys(),jsx:["Drawer"],base:{backdrop:{backdropFilter:"blur(4px)",background:"primary.300/20",height:"100vh",position:"fixed",width:"100vw",zIndex:"overlay",inset:0,_open:{animation:"backdrop-in"},_closed:{animation:"backdrop-out"}},positioner:{alignItems:"center",display:"flex",height:"100dvh",position:"fixed",inset:0,zIndex:"modal"},content:{position:"relative",background:"white",display:"grid",gridTemplateColumns:"1fr",gridTemplateRows:"auto 1fr",gridTemplateAreas:`
177
177
  'header'
178
178
  'body'
179
- 'footer'
180
- `,height:"full",width:"full"},header:{display:"flex",flexDirection:"column",gridArea:"header",px:"space-24",py:"space-16"},body:{display:"flex",flexDirection:"column",gridArea:"body",overflow:"auto",px:"space-24",py:"space-16"},footer:{display:"flex",gridArea:"footer",justifyContent:"flex-end",px:"space-24",py:"space-16",gap:"space-16"},title:{color:"primary.900",fontFamily:"cabinet",textStyle:"heading.h4"}},defaultVariants:{variant:"right"},variants:{variant:{left:{positioner:{justifyContent:"flex-start"},content:{_open:{animation:"drawer-in-left"},_closed:{animation:"drawer-out-left"}}},right:{positioner:{justifyContent:"flex-end"},content:{_open:{animation:"drawer-in-right"},_closed:{animation:"drawer-out-right"}}}}}}),Nz=ft.defineSlotRecipe({className:"accordion",jsx:["Accordion"],slots:Xx.keys(),base:{root:{borderRadius:"radius-8",border:"1px solid {colors.primary.100}"},itemTrigger:{alignItems:"center",color:"primary.900",cursor:"pointer",display:"flex",fontWeight:"bold",gap:"space-4",justifyContent:"space-between",textStyle:"body.md",fontFamily:"satoshi",textAlign:"left",width:"full",_disabled:{color:"grey.200",cursor:"not-allowed"}},itemIndicator:{color:"primary.900",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(-180deg)"}},itemContent:{overflow:"hidden",'& [data-part="root"]':{border:"none",borderRadius:"radius-0"},'& [data-part="item-trigger"]':{textStyle:"body.sm"},_open:{animation:"collapse-in"},_closed:{animation:"collapse-out"}}},defaultVariants:{size:"md"},variants:{size:{md:{root:{padding:"space-12"},itemContent:{mt:"space-16",px:"space-16"}}}}}),Lz=ft.defineSlotRecipe({base:{root:{color:"grey.400",fontFamily:"satoshi",textStyle:"body.sm"},addon:{ml:"space-4",bg:"primary.100",color:"secondary.800",borderRadius:"radius-2",px:"space-2"}},variants:{variant:{static:{},absolute:{root:{position:"absolute",left:"space-12",top:"-space-8",zIndex:1,bg:"white"}}}},defaultVariants:{variant:"absolute"},slots:["root","addon"],className:"form-label",description:"The styles for the FormLabel component",jsx:["FormLabel"]}),_z=ft.defineSlotRecipe({className:"checkbox",slots:yw.keys(),jsx:["Checkbox"],base:{root:{alignItems:"center",display:"flex",cursor:{base:"pointer",_disabled:"not-allowed"},_disabled:{userSelect:"none"}},label:{color:{base:"text",_disabled:"grey.300"},fontFamily:"satoshi"},control:{alignItems:"center",borderColor:"grey.100",borderWidth:"1px",color:"white",display:"flex",justifyContent:"center",transitionDuration:"normal",transitionProperty:"border-color, background",transitionTimingFunction:"default",_hover:{borderColor:"secondary.500"},_checked:{background:"primary.500",borderColor:"primary.500",_hover:{background:"primary.500"}},_disabled:{background:"grey.50",borderColor:"grey.100",_checked:{background:"grey.200",borderColor:"grey.200"},_indeterminate:{background:"grey.200",borderColor:"grey.200"}},_invalid:{borderColor:"error.500",_checked:{background:"error.500",borderColor:"error.500"},_indeterminate:{background:"error.500",borderColor:"error.500"}},_indeterminate:{background:"primary.500",borderColor:"primary.500",_hover:{background:"primary.500"}},"&:has(+ :focus-visible)":{outline:"1px solid",outlineColor:"secondary.300",_checked:{outlineColor:"secondary.300"},_hover:{borderColor:"grey.100",_checked:{borderColor:"primary.500",background:"primary.500"},_indeterminate:{borderColor:"primary.500",background:"primary.500"}}}}},defaultVariants:{size:"md"},variants:{size:{md:{root:{gap:"space-4"},control:{width:"size-16",height:"size-16",borderRadius:"radius-4","& svg":{width:"size-12",height:"size-12"}},label:{textStyle:"body.md"}}}}}),Az=ft.defineSlotRecipe({className:"tabs",slots:Yw.keys(),base:{root:{display:"flex",_horizontal:{flexDirection:"column"},_vertical:{flexDirection:"row"}},list:{display:"flex",flexShrink:"0",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"},overflow:"auto",position:"relative",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},trigger:{alignItems:"center",color:"grey.400",cursor:"pointer",display:"inline-flex",flexShrink:"0",textStyle:"body.md",fontFamily:"satoshi",gap:"space-4",justifyContent:"center",transitionDuration:"normal",transitionProperty:"color, background, border-color",transitionTimingFunction:"default",whiteSpace:"nowrap",zIndex:"1",_disabled:{color:"grey.100",cursor:"not-allowed",_hover:{color:"grey.100"}},_hover:{color:"secondary.500"},_selected:{color:"secondary.500",fontWeight:"bold",_hover:{color:"secondary.500"}},_vertical:{justifyContent:"flex-start"}}},defaultVariants:{variant:"line"},variants:{variant:{line:{list:{_horizontal:{boxShadow:"0 -2px 0 0 inset {colors.primary.100}"},_vertical:{boxShadow:"2px 0 0 0 inset {colors.primary.100}"}},indicator:{background:"secondary.500",_horizontal:{bottom:0,height:"2px",width:"var(--width)"},_vertical:{height:"var(--height)",left:0,width:"2px"}},content:{pt:"space-4"},trigger:{_horizontal:{px:"space-24",pb:"space-8"}}}}}}),Mz={button:bz,heading:Cz,switchRecipe:Tz,text:xz,textarea:wz,formControl:Rz,formHelperText:kz},zz={drawer:Oz,accordion:Nz,formLabel:Lz,checkbox:_z,tabs:Az},Fz=ft.defineSemanticTokens.colors({decorative:{red:{light:{value:"#FFB5AD"},mid:{value:"#EA4F42"},dark:{value:"#752821"}},blue:{light:{value:"#B8FFFF"},mid:{value:"#54D2D2"},dark:{value:"#2A6969"}},yellow:{light:{value:"#FFFFAC"},mid:{value:"#FFCB00"},dark:{value:"#806600"}},purple:{light:{value:"#D1B8FF"},mid:{value:"#8C61FF"},dark:{value:"#463180"}},green:{light:{value:"#BEF1C7"},mid:{value:"#58B368"},dark:{value:"#2C5A34"}},brown:{light:{value:"#E4CEB9"},mid:{value:"#8F6944"},dark:{value:"#483522"}}},primary:{900:{value:"{colors.purple.900}"},800:{value:"{colors.purple.800}"},700:{value:"{colors.purple.700}"},600:{value:"{colors.purple.600}"},500:{value:"{colors.purple.500}"},400:{value:"{colors.purple.400}"},300:{value:"{colors.purple.300}"},200:{value:"{colors.purple.200}"},100:{value:"{colors.purple.100}"}},secondary:{900:{value:"{colors.blue.900}"},800:{value:"{colors.blue.800}"},700:{value:"{colors.blue.700}"},600:{value:"{colors.blue.600}"},500:{value:"{colors.blue.500}"},400:{value:"{colors.blue.400}"},300:{value:"{colors.blue.300}"},200:{value:"{colors.blue.200}"},100:{value:"{colors.blue.100}"}},error:{900:{value:"{colors.red.900}"},800:{value:"{colors.red.800}"},700:{value:"{colors.red.700}"},600:{value:"{colors.red.600}"},500:{value:"{colors.red.500}"},400:{value:"{colors.red.400}"},300:{value:"{colors.red.300}"},200:{value:"{colors.red.200}"},100:{value:"{colors.red.100}"}},success:{900:{value:"{colors.green.900}"},800:{value:"{colors.green.800}"},700:{value:"{colors.green.700}"},600:{value:"{colors.green.600}"},500:{value:"{colors.green.500}"},400:{value:"{colors.green.400}"},300:{value:"{colors.green.300}"},200:{value:"{colors.green.200}"},100:{value:"{colors.green.100}"}},warning:{900:{value:"{colors.yellow.900}"},800:{value:"{colors.yellow.800}"},700:{value:"{colors.yellow.700}"},600:{value:"{colors.yellow.600}"},500:{value:"{colors.yellow.500}"},400:{value:"{colors.yellow.400}"},300:{value:"{colors.yellow.300}"},200:{value:"{colors.yellow.200}"},100:{value:"{colors.yellow.100}"}},text:{DEFAULT:{value:"{colors.grey.800}"},disabled:{value:"{colors.grey.300}"},heading:{value:"{colors.primary.900}"}}}),Pz={colors:Fz},Uz=ft.defineTextStyles({body:{lg:{value:{fontSize:"body.lg",lineHeight:"normal"}},md:{value:{fontSize:"body.md",lineHeight:"normal"}},sm:{value:{fontSize:"body.sm",lineHeight:"normal"}}},heading:{h1:{value:{fontSize:{base:"heading.mobile.2xl",sm:"heading.desktop.2xl"},fontWeight:"bold",lineHeight:"normal"}},h2:{value:{fontSize:{base:"heading.mobile.lg",sm:"heading.desktop.lg"},fontWeight:"bold",lineHeight:"normal"}},h3:{value:{fontSize:{base:"heading.mobile.md",sm:"heading.desktop.md"},fontWeight:"bold",lineHeight:"normal"}},h4:{value:{fontSize:{base:"heading.mobile.sm",sm:"heading.desktop.sm"},fontWeight:"bold",lineHeight:"normal"}},h5:{value:{fontSize:{base:"heading.mobile.xs",sm:"heading.desktop.xs"},fontWeight:"black",lineHeight:"normal"}},h6:{value:{fontSize:{base:"heading.mobile.xs",sm:"heading.desktop.xs"},fontWeight:"bold",lineHeight:"normal"}}}}),Iz=ft.defineTokens.animations({"backdrop-in":{value:"fade-in 250ms {easings.emphasized-in}"},"backdrop-out":{value:"fade-out 200ms {easings.emphasized-out}"},bounce:{value:"bounce 1s infinite"},"dialog-in":{value:"slide-in-modal 400ms {easings.emphasized-in}"},"dialog-out":{value:"slide-out-modal 200ms {easings.emphasized-out}"},"drawer-in-left":{value:"slide-in-left 400ms {easings.emphasized-in}"},"drawer-in-right":{value:"slide-in-right 400ms {easings.emphasized-in}"},"drawer-out-left":{value:"slide-out-left 200ms {easings.emphasized-out}"},"drawer-out-right":{value:"slide-out-right 200ms {easings.emphasized-out}"},"fade-in":{value:"fade-in 400ms {easings.emphasized-in}"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},"skeleton-pulse":{value:"skeleton-pulse 2s {easings.pulse} infinite"},spin:{value:"spin 1s linear infinite"},"collapse-in":{value:"collapse-in 150ms {easings.in}"},"collapse-out":{value:"collapse-out 150ms {easings.in-out}"}}),Hz=ft.defineTokens.borders({golden:{value:"1.618 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},square:{value:"1 / 1"},ultrawide:{value:"18 / 5"},wide:{value:"16 / 9"}}),jz=ft.defineTokens.blurs({"2xl":{value:"40px"},"3xl":{value:"64px"},base:{value:"8px"},lg:{value:"16px"},md:{value:"12px"},sm:{value:"4px"},xl:{value:"24px"}}),Vz=ft.defineTokens.borders({border:{none:{value:"none"}}}),Bz=ft.defineTokens.colors({black:{value:"#000"},current:{value:"currentColor"},transparent:{value:"rgb(0 0 0 / 0)"},white:{value:"#fff"},purple:{900:{value:"#0B1243"},800:{value:"#0E1754"},700:{value:"#111B65"},600:{value:"#132075"},500:{value:"#162486"},400:{value:"#4350AD"},300:{value:"#7981CE"},200:{value:"#B6B7E8"},100:{value:"#F2F2FC"}},blue:{900:{value:"#1E3A76"},800:{value:"#264993"},700:{value:"#2D57B0"},600:{value:"#3566CE"},500:{value:"#3C74EB"},400:{value:"#578DFF"},300:{value:"#7CAAFF"},200:{value:"#ACCAFF"},100:{value:"#E6EEFF"}},grey:{900:{value:"#252227"},800:{value:"#2D2A31"},700:{value:"#34323B"},600:{value:"#3B3B44"},500:{value:"#43454e"},400:{value:"#666871"},300:{value:"#898B93"},200:{value:"#ADAEB4"},100:{value:"#D1D2D6"},50:{value:"#F5F6F6"}},red:{900:{value:"#802727"},800:{value:"#9F3131"},700:{value:"#BF3B3B"},600:{value:"#DF4444"},500:{value:"#Ff4e4e"},400:{value:"#FF6565"},300:{value:"#FF8585"},200:{value:"#FFB0B0"},100:{value:"#FFE6E6"}},green:{900:{value:"#24644D"},800:{value:"#2C7C60"},700:{value:"#359573"},600:{value:"#3EAE86"},500:{value:"#47c799"},400:{value:"#64E0B3"},300:{value:"#88F2CC"},200:{value:"#B4FCE2"},100:{value:"#E6FFF7"}},yellow:{900:{value:"#80581C"},800:{value:"#9F6D22"},700:{value:"#BF8329"},600:{value:"#DF9930"},500:{value:"#ffaf37"},400:{value:"#FFC551"},300:{value:"#FFD976"},200:{value:"#FFEAAC"},100:{value:"#FFF9E6"}}}),$z=ft.defineTokens.durations({fast:{value:"150ms"},faster:{value:"100ms"},fastest:{value:"50ms"},normal:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),Yz=ft.defineTokens.easings({default:{value:"cubic-bezier(0.2, 0.0, 0, 1.0)"},"ease-bounce-1":{value:`linear(
179
+ `,height:"full",width:"full"},header:{display:"flex",flexDirection:"column",gridArea:"header",px:"space-24",py:"space-16"},body:{display:"flex",flexDirection:"column",gridArea:"body",overflow:"auto",px:"space-24",py:"space-16",pb:"70px"},footer:{display:"flex",position:"absolute",bottom:0,left:0,right:0,bg:"white/50",backdropFilter:"auto",backdropBlur:"4px",justifyContent:"flex-end",px:"space-24",py:"space-16",gap:"space-16"},title:{color:"primary.900",fontFamily:"cabinet",textStyle:"heading.h4"}},defaultVariants:{variant:"right"},variants:{variant:{left:{positioner:{justifyContent:"flex-start"},content:{_open:{animation:"drawer-in-left"},_closed:{animation:"drawer-out-left"}}},right:{positioner:{justifyContent:"flex-end"},content:{_open:{animation:"drawer-in-right"},_closed:{animation:"drawer-out-right"}}}}}}),Nz=ft.defineSlotRecipe({className:"accordion",jsx:["Accordion"],slots:Xx.keys(),base:{root:{borderRadius:"radius-8",border:"1px solid {colors.primary.100}"},itemTrigger:{alignItems:"center",color:"primary.900",cursor:"pointer",display:"flex",fontWeight:"bold",gap:"space-4",justifyContent:"space-between",textStyle:"body.md",fontFamily:"satoshi",textAlign:"left",width:"full",_disabled:{color:"grey.200",cursor:"not-allowed"}},itemIndicator:{color:"primary.900",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(-180deg)"}},itemContent:{overflow:"hidden",transitionProperty:"padding-bottom, margin-top",transitionDuration:"normal",transitionTimingFunction:"default",'& [data-scope="accordion"][data-part="root"]':{border:"none",borderRadius:"radius-0",p:"space-12",pr:"space-24!"},'& [data-scope="accordion"][data-part="item-trigger"]':{textStyle:"body.sm",p:"space-0!"},'& [data-scope="accordion"][data-part="item-content"]':{px:"space-16!",mt:"space-16!"},'& [data-scope="accordion"][data-part="item"]':{pb:"space-0!"},_open:{animation:"collapse-in"},_closed:{animation:"collapse-out"}}},defaultVariants:{size:"md"},variants:{size:{md:{itemTrigger:{padding:"space-12"},item:{_open:{pb:"space-12"}},itemContent:{_closed:{pb:"space-0",mt:"space-0"},mt:"space-4",pr:"space-16",pl:"space-28"}}}}}),Lz=ft.defineSlotRecipe({base:{root:{color:"grey.400",fontFamily:"satoshi",textStyle:"body.sm"},addon:{ml:"space-4",bg:"primary.100",color:"secondary.800",borderRadius:"radius-2",px:"space-2"}},variants:{variant:{static:{},absolute:{root:{position:"absolute",left:"space-12",top:"-space-8",zIndex:1,bg:"white"}}}},defaultVariants:{variant:"absolute"},slots:["root","addon"],className:"form-label",description:"The styles for the FormLabel component",jsx:["FormLabel"]}),_z=ft.defineSlotRecipe({className:"checkbox",slots:yw.keys(),jsx:["Checkbox"],base:{root:{alignItems:"center",display:"flex",cursor:{base:"pointer",_disabled:"not-allowed"},_disabled:{userSelect:"none"}},label:{color:{base:"text",_disabled:"grey.300"},fontFamily:"satoshi"},control:{alignItems:"center",borderColor:"grey.100",borderWidth:"1px",color:"white",display:"flex",justifyContent:"center",transitionDuration:"normal",transitionProperty:"border-color, background",transitionTimingFunction:"default",_hover:{borderColor:"secondary.500"},_checked:{background:"primary.500",borderColor:"primary.500",_hover:{background:"primary.500"}},_disabled:{background:"grey.50",borderColor:"grey.100",_checked:{background:"grey.200",borderColor:"grey.200"},_indeterminate:{background:"grey.200",borderColor:"grey.200"}},_invalid:{borderColor:"error.500",_checked:{background:"error.500",borderColor:"error.500"},_indeterminate:{background:"error.500",borderColor:"error.500"}},_indeterminate:{background:"primary.500",borderColor:"primary.500",_hover:{background:"primary.500"}},"&:has(+ :focus-visible)":{outline:"1px solid",outlineColor:"secondary.300",_checked:{outlineColor:"secondary.300"},_hover:{borderColor:"grey.100",_checked:{borderColor:"primary.500",background:"primary.500"},_indeterminate:{borderColor:"primary.500",background:"primary.500"}}}}},defaultVariants:{size:"md"},variants:{size:{md:{root:{gap:"space-4"},control:{width:"size-16",height:"size-16",borderRadius:"radius-4","& svg":{width:"size-12",height:"size-12"}},label:{textStyle:"body.md"}}}}}),Az=ft.defineSlotRecipe({className:"tabs",slots:Yw.keys(),base:{root:{display:"flex",_horizontal:{flexDirection:"column"},_vertical:{flexDirection:"row"}},list:{display:"flex",flexShrink:"0",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"},overflow:"auto",position:"relative",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},trigger:{alignItems:"center",color:"grey.400",cursor:"pointer",display:"inline-flex",flexShrink:"0",textStyle:"body.md",fontFamily:"satoshi",gap:"space-4",justifyContent:"center",transitionDuration:"normal",transitionProperty:"color, background, border-color",transitionTimingFunction:"default",whiteSpace:"nowrap",zIndex:"1",_disabled:{color:"grey.100",cursor:"not-allowed",_hover:{color:"grey.100"}},_hover:{color:"secondary.500"},_selected:{color:"secondary.500",fontWeight:"bold",_hover:{color:"secondary.500"}},_vertical:{justifyContent:"flex-start"}}},defaultVariants:{variant:"line"},variants:{variant:{line:{list:{_horizontal:{boxShadow:"0 -2px 0 0 inset {colors.primary.100}"},_vertical:{boxShadow:"2px 0 0 0 inset {colors.primary.100}"}},indicator:{background:"secondary.500",_horizontal:{bottom:0,height:"2px",width:"var(--width)"},_vertical:{height:"var(--height)",left:0,width:"2px"}},content:{pt:"space-4"},trigger:{_horizontal:{px:"space-24",pb:"space-8"}}}}}}),Mz={button:bz,heading:Cz,switchRecipe:Tz,text:xz,textarea:wz,formControl:Rz,formHelperText:kz},zz={drawer:Oz,accordion:Nz,formLabel:Lz,checkbox:_z,tabs:Az},Fz=ft.defineSemanticTokens.colors({decorative:{red:{light:{value:"#FFB5AD"},mid:{value:"#EA4F42"},dark:{value:"#752821"}},blue:{light:{value:"#B8FFFF"},mid:{value:"#54D2D2"},dark:{value:"#2A6969"}},yellow:{light:{value:"#FFFFAC"},mid:{value:"#FFCB00"},dark:{value:"#806600"}},purple:{light:{value:"#D1B8FF"},mid:{value:"#8C61FF"},dark:{value:"#463180"}},green:{light:{value:"#BEF1C7"},mid:{value:"#58B368"},dark:{value:"#2C5A34"}},brown:{light:{value:"#E4CEB9"},mid:{value:"#8F6944"},dark:{value:"#483522"}}},primary:{900:{value:"{colors.purple.900}"},800:{value:"{colors.purple.800}"},700:{value:"{colors.purple.700}"},600:{value:"{colors.purple.600}"},500:{value:"{colors.purple.500}"},400:{value:"{colors.purple.400}"},300:{value:"{colors.purple.300}"},200:{value:"{colors.purple.200}"},100:{value:"{colors.purple.100}"}},secondary:{900:{value:"{colors.blue.900}"},800:{value:"{colors.blue.800}"},700:{value:"{colors.blue.700}"},600:{value:"{colors.blue.600}"},500:{value:"{colors.blue.500}"},400:{value:"{colors.blue.400}"},300:{value:"{colors.blue.300}"},200:{value:"{colors.blue.200}"},100:{value:"{colors.blue.100}"}},error:{900:{value:"{colors.red.900}"},800:{value:"{colors.red.800}"},700:{value:"{colors.red.700}"},600:{value:"{colors.red.600}"},500:{value:"{colors.red.500}"},400:{value:"{colors.red.400}"},300:{value:"{colors.red.300}"},200:{value:"{colors.red.200}"},100:{value:"{colors.red.100}"}},success:{900:{value:"{colors.green.900}"},800:{value:"{colors.green.800}"},700:{value:"{colors.green.700}"},600:{value:"{colors.green.600}"},500:{value:"{colors.green.500}"},400:{value:"{colors.green.400}"},300:{value:"{colors.green.300}"},200:{value:"{colors.green.200}"},100:{value:"{colors.green.100}"}},warning:{900:{value:"{colors.yellow.900}"},800:{value:"{colors.yellow.800}"},700:{value:"{colors.yellow.700}"},600:{value:"{colors.yellow.600}"},500:{value:"{colors.yellow.500}"},400:{value:"{colors.yellow.400}"},300:{value:"{colors.yellow.300}"},200:{value:"{colors.yellow.200}"},100:{value:"{colors.yellow.100}"}},text:{DEFAULT:{value:"{colors.grey.800}"},disabled:{value:"{colors.grey.300}"},heading:{value:"{colors.primary.900}"}}}),Pz={colors:Fz},Uz=ft.defineTextStyles({body:{lg:{value:{fontSize:"body.lg",lineHeight:"normal"}},md:{value:{fontSize:"body.md",lineHeight:"normal"}},sm:{value:{fontSize:"body.sm",lineHeight:"normal"}}},heading:{h1:{value:{fontSize:{base:"heading.mobile.2xl",sm:"heading.desktop.2xl"},fontWeight:"bold",lineHeight:"normal"}},h2:{value:{fontSize:{base:"heading.mobile.lg",sm:"heading.desktop.lg"},fontWeight:"bold",lineHeight:"normal"}},h3:{value:{fontSize:{base:"heading.mobile.md",sm:"heading.desktop.md"},fontWeight:"bold",lineHeight:"normal"}},h4:{value:{fontSize:{base:"heading.mobile.sm",sm:"heading.desktop.sm"},fontWeight:"bold",lineHeight:"normal"}},h5:{value:{fontSize:{base:"heading.mobile.xs",sm:"heading.desktop.xs"},fontWeight:"black",lineHeight:"normal"}},h6:{value:{fontSize:{base:"heading.mobile.xs",sm:"heading.desktop.xs"},fontWeight:"bold",lineHeight:"normal"}}}}),Iz=ft.defineTokens.animations({"backdrop-in":{value:"fade-in 250ms {easings.emphasized-in}"},"backdrop-out":{value:"fade-out 200ms {easings.emphasized-out}"},bounce:{value:"bounce 1s infinite"},"dialog-in":{value:"slide-in-modal 400ms {easings.emphasized-in}"},"dialog-out":{value:"slide-out-modal 200ms {easings.emphasized-out}"},"drawer-in-left":{value:"slide-in-left 400ms {easings.emphasized-in}"},"drawer-in-right":{value:"slide-in-right 400ms {easings.emphasized-in}"},"drawer-out-left":{value:"slide-out-left 200ms {easings.emphasized-out}"},"drawer-out-right":{value:"slide-out-right 200ms {easings.emphasized-out}"},"fade-in":{value:"fade-in 400ms {easings.emphasized-in}"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},"skeleton-pulse":{value:"skeleton-pulse 2s {easings.pulse} infinite"},spin:{value:"spin 1s linear infinite"},"collapse-in":{value:"collapse-in 150ms {easings.in}"},"collapse-out":{value:"collapse-out 150ms {easings.in-out}"}}),Hz=ft.defineTokens.borders({golden:{value:"1.618 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},square:{value:"1 / 1"},ultrawide:{value:"18 / 5"},wide:{value:"16 / 9"}}),jz=ft.defineTokens.blurs({"2xl":{value:"40px"},"3xl":{value:"64px"},base:{value:"8px"},lg:{value:"16px"},md:{value:"12px"},sm:{value:"4px"},xl:{value:"24px"}}),Vz=ft.defineTokens.borders({border:{none:{value:"none"}}}),Bz=ft.defineTokens.colors({black:{value:"#000"},current:{value:"currentColor"},transparent:{value:"rgb(0 0 0 / 0)"},white:{value:"#fff"},purple:{900:{value:"#0B1243"},800:{value:"#0E1754"},700:{value:"#111B65"},600:{value:"#132075"},500:{value:"#162486"},400:{value:"#4350AD"},300:{value:"#7981CE"},200:{value:"#B6B7E8"},100:{value:"#F2F2FC"}},blue:{900:{value:"#1E3A76"},800:{value:"#264993"},700:{value:"#2D57B0"},600:{value:"#3566CE"},500:{value:"#3C74EB"},400:{value:"#578DFF"},300:{value:"#7CAAFF"},200:{value:"#ACCAFF"},100:{value:"#E6EEFF"}},grey:{900:{value:"#252227"},800:{value:"#2D2A31"},700:{value:"#34323B"},600:{value:"#3B3B44"},500:{value:"#43454e"},400:{value:"#666871"},300:{value:"#898B93"},200:{value:"#ADAEB4"},100:{value:"#D1D2D6"},50:{value:"#F5F6F6"}},red:{900:{value:"#802727"},800:{value:"#9F3131"},700:{value:"#BF3B3B"},600:{value:"#DF4444"},500:{value:"#Ff4e4e"},400:{value:"#FF6565"},300:{value:"#FF8585"},200:{value:"#FFB0B0"},100:{value:"#FFE6E6"}},green:{900:{value:"#24644D"},800:{value:"#2C7C60"},700:{value:"#359573"},600:{value:"#3EAE86"},500:{value:"#47c799"},400:{value:"#64E0B3"},300:{value:"#88F2CC"},200:{value:"#B4FCE2"},100:{value:"#E6FFF7"}},yellow:{900:{value:"#80581C"},800:{value:"#9F6D22"},700:{value:"#BF8329"},600:{value:"#DF9930"},500:{value:"#ffaf37"},400:{value:"#FFC551"},300:{value:"#FFD976"},200:{value:"#FFEAAC"},100:{value:"#FFF9E6"}}}),$z=ft.defineTokens.durations({fast:{value:"150ms"},faster:{value:"100ms"},fastest:{value:"50ms"},normal:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),Yz=ft.defineTokens.easings({default:{value:"cubic-bezier(0.2, 0.0, 0, 1.0)"},"ease-bounce-1":{value:`linear(
181
180
  0, 0.004, 0.016, 0.035, 0.063, 0.098, 0.141, 0.191, 0.25, 0.316, 0.391 36.8%,
182
181
  0.563, 0.766, 1 58.8%, 0.946, 0.908 69.1%, 0.895, 0.885, 0.879, 0.878, 0.879,
183
182
  0.885, 0.895, 0.908 89.7%, 0.946, 1